@@ -15,52 +15,80 @@ export const ValidationExceptionReason = {
1515 */
1616export type ValidationExceptionReason = ( typeof ValidationExceptionReason ) [ keyof typeof ValidationExceptionReason ] ;
1717
18+ /**
19+ * @public
20+ * @enum
21+ */
22+ export const ResourceType = {
23+ AWS_DYNAMODB_STREAM : "AWS::DynamoDB::Stream" ,
24+ AWS_DYNAMODB_TABLE : "AWS::DynamoDB::Table" ,
25+ AWS_EC2_SNAPSHOT : "AWS::EC2::Snapshot" ,
26+ AWS_ECR_REPOSITORY : "AWS::ECR::Repository" ,
27+ AWS_EFS_FILESYSTEM : "AWS::EFS::FileSystem" ,
28+ AWS_IAM_ROLE : "AWS::IAM::Role" ,
29+ AWS_IAM_USER : "AWS::IAM::User" ,
30+ AWS_KMS_KEY : "AWS::KMS::Key" ,
31+ AWS_LAMBDA_FUNCTION : "AWS::Lambda::Function" ,
32+ AWS_LAMBDA_LAYERVERSION : "AWS::Lambda::LayerVersion" ,
33+ AWS_RDS_DBCLUSTERSNAPSHOT : "AWS::RDS::DBClusterSnapshot" ,
34+ AWS_RDS_DBSNAPSHOT : "AWS::RDS::DBSnapshot" ,
35+ AWS_S3EXPRESS_DIRECTORYBUCKET : "AWS::S3Express::DirectoryBucket" ,
36+ AWS_S3_BUCKET : "AWS::S3::Bucket" ,
37+ AWS_SECRETSMANAGER_SECRET : "AWS::SecretsManager::Secret" ,
38+ AWS_SNS_TOPIC : "AWS::SNS::Topic" ,
39+ AWS_SQS_QUEUE : "AWS::SQS::Queue" ,
40+ } as const ;
1841/**
1942 * @public
2043 */
21- export type ResourceType =
22- | "AWS::DynamoDB::Stream"
23- | "AWS::DynamoDB::Table"
24- | "AWS::EC2::Snapshot"
25- | "AWS::ECR::Repository"
26- | "AWS::EFS::FileSystem"
27- | "AWS::IAM::Role"
28- | "AWS::IAM::User"
29- | "AWS::KMS::Key"
30- | "AWS::Lambda::Function"
31- | "AWS::Lambda::LayerVersion"
32- | "AWS::RDS::DBClusterSnapshot"
33- | "AWS::RDS::DBSnapshot"
34- | "AWS::S3::Bucket"
35- | "AWS::S3Express::DirectoryBucket"
36- | "AWS::SNS::Topic"
37- | "AWS::SQS::Queue"
38- | "AWS::SecretsManager::Secret" ;
44+ export type ResourceType = ( typeof ResourceType ) [ keyof typeof ResourceType ] ;
3945
4046/**
4147 * @public
48+ * @enum
4249 */
43- export type Type =
44- | "ACCOUNT"
45- | "ACCOUNT_INTERNAL_ACCESS"
46- | "ACCOUNT_UNUSED_ACCESS"
47- | "ORGANIZATION"
48- | "ORGANIZATION_INTERNAL_ACCESS"
49- | "ORGANIZATION_UNUSED_ACCESS" ;
50+ export const Type = {
51+ ACCOUNT : "ACCOUNT" ,
52+ ACCOUNT_INTERNAL_ACCESS : "ACCOUNT_INTERNAL_ACCESS" ,
53+ ACCOUNT_UNUSED_ACCESS : "ACCOUNT_UNUSED_ACCESS" ,
54+ ORGANIZATION : "ORGANIZATION" ,
55+ ORGANIZATION_INTERNAL_ACCESS : "ORGANIZATION_INTERNAL_ACCESS" ,
56+ ORGANIZATION_UNUSED_ACCESS : "ORGANIZATION_UNUSED_ACCESS" ,
57+ } as const ;
58+ /**
59+ * @public
60+ */
61+ export type Type = ( typeof Type ) [ keyof typeof Type ] ;
5062
5163/**
5264 * @public
65+ * @enum
5366 */
54- export type AnalyzerStatus = "ACTIVE" | "CREATING" | "DISABLED" | "FAILED" ;
67+ export const AnalyzerStatus = {
68+ ACTIVE : "ACTIVE" ,
69+ CREATING : "CREATING" ,
70+ DISABLED : "DISABLED" ,
71+ FAILED : "FAILED" ,
72+ } as const ;
73+ /**
74+ * @public
75+ */
76+ export type AnalyzerStatus = ( typeof AnalyzerStatus ) [ keyof typeof AnalyzerStatus ] ;
5577
78+ /**
79+ * @public
80+ * @enum
81+ */
82+ export const ReasonCode = {
83+ AWS_SERVICE_ACCESS_DISABLED : "AWS_SERVICE_ACCESS_DISABLED" ,
84+ DELEGATED_ADMINISTRATOR_DEREGISTERED : "DELEGATED_ADMINISTRATOR_DEREGISTERED" ,
85+ ORGANIZATION_DELETED : "ORGANIZATION_DELETED" ,
86+ SERVICE_LINKED_ROLE_CREATION_FAILED : "SERVICE_LINKED_ROLE_CREATION_FAILED" ,
87+ } as const ;
5688/**
5789 * @public
5890 */
59- export type ReasonCode =
60- | "AWS_SERVICE_ACCESS_DISABLED"
61- | "DELEGATED_ADMINISTRATOR_DEREGISTERED"
62- | "ORGANIZATION_DELETED"
63- | "SERVICE_LINKED_ROLE_CREATION_FAILED" ;
91+ export type ReasonCode = ( typeof ReasonCode ) [ keyof typeof ReasonCode ] ;
6492
6593/**
6694 * @public
@@ -221,10 +249,19 @@ export const AccessPreviewStatusReasonCode = {
221249export type AccessPreviewStatusReasonCode =
222250 ( typeof AccessPreviewStatusReasonCode ) [ keyof typeof AccessPreviewStatusReasonCode ] ;
223251
252+ /**
253+ * @public
254+ * @enum
255+ */
256+ export const FindingStatus = {
257+ ACTIVE : "ACTIVE" ,
258+ ARCHIVED : "ARCHIVED" ,
259+ RESOLVED : "RESOLVED" ,
260+ } as const ;
224261/**
225262 * @public
226263 */
227- export type FindingStatus = "ACTIVE" | "ARCHIVED" | "RESOLVED" ;
264+ export type FindingStatus = ( typeof FindingStatus ) [ keyof typeof FindingStatus ] ;
228265
229266/**
230267 * @public
@@ -242,10 +279,20 @@ export const ResourceControlPolicyRestriction = {
242279export type ResourceControlPolicyRestriction =
243280 ( typeof ResourceControlPolicyRestriction ) [ keyof typeof ResourceControlPolicyRestriction ] ;
244281
282+ /**
283+ * @public
284+ * @enum
285+ */
286+ export const FindingSourceType = {
287+ BUCKET_ACL : "BUCKET_ACL" ,
288+ POLICY : "POLICY" ,
289+ S3_ACCESS_POINT : "S3_ACCESS_POINT" ,
290+ S3_ACCESS_POINT_ACCOUNT : "S3_ACCESS_POINT_ACCOUNT" ,
291+ } as const ;
245292/**
246293 * @public
247294 */
248- export type FindingSourceType = "BUCKET_ACL" | "POLICY" | "S3_ACCESS_POINT" | "S3_ACCESS_POINT_ACCOUNT" ;
295+ export type FindingSourceType = ( typeof FindingSourceType ) [ keyof typeof FindingSourceType ] ;
249296
250297/**
251298 * @public
@@ -390,15 +437,31 @@ export const FindingChangeType = {
390437 */
391438export type FindingChangeType = ( typeof FindingChangeType ) [ keyof typeof FindingChangeType ] ;
392439
440+ /**
441+ * @public
442+ * @enum
443+ */
444+ export const OrderBy = {
445+ ASC : "ASC" ,
446+ DESC : "DESC" ,
447+ } as const ;
393448/**
394449 * @public
395450 */
396- export type OrderBy = "ASC" | "DESC" ;
451+ export type OrderBy = ( typeof OrderBy ) [ keyof typeof OrderBy ] ;
397452
453+ /**
454+ * @public
455+ * @enum
456+ */
457+ export const FindingStatusUpdate = {
458+ ACTIVE : "ACTIVE" ,
459+ ARCHIVED : "ARCHIVED" ,
460+ } as const ;
398461/**
399462 * @public
400463 */
401- export type FindingStatusUpdate = "ACTIVE" | "ARCHIVED" ;
464+ export type FindingStatusUpdate = ( typeof FindingStatusUpdate ) [ keyof typeof FindingStatusUpdate ] ;
402465
403466/**
404467 * @public
0 commit comments