Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 98 additions & 35 deletions clients/client-accessanalyzer/src/models/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,52 +15,80 @@ export const ValidationExceptionReason = {
*/
export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];

/**
* @public
* @enum
*/
export const ResourceType = {
AWS_DYNAMODB_STREAM: "AWS::DynamoDB::Stream",
AWS_DYNAMODB_TABLE: "AWS::DynamoDB::Table",
AWS_EC2_SNAPSHOT: "AWS::EC2::Snapshot",
AWS_ECR_REPOSITORY: "AWS::ECR::Repository",
AWS_EFS_FILESYSTEM: "AWS::EFS::FileSystem",
AWS_IAM_ROLE: "AWS::IAM::Role",
AWS_IAM_USER: "AWS::IAM::User",
AWS_KMS_KEY: "AWS::KMS::Key",
AWS_LAMBDA_FUNCTION: "AWS::Lambda::Function",
AWS_LAMBDA_LAYERVERSION: "AWS::Lambda::LayerVersion",
AWS_RDS_DBCLUSTERSNAPSHOT: "AWS::RDS::DBClusterSnapshot",
AWS_RDS_DBSNAPSHOT: "AWS::RDS::DBSnapshot",
AWS_S3EXPRESS_DIRECTORYBUCKET: "AWS::S3Express::DirectoryBucket",
AWS_S3_BUCKET: "AWS::S3::Bucket",
AWS_SECRETSMANAGER_SECRET: "AWS::SecretsManager::Secret",
AWS_SNS_TOPIC: "AWS::SNS::Topic",
AWS_SQS_QUEUE: "AWS::SQS::Queue",
} as const;
/**
* @public
*/
export type ResourceType =
| "AWS::DynamoDB::Stream"
| "AWS::DynamoDB::Table"
| "AWS::EC2::Snapshot"
| "AWS::ECR::Repository"
| "AWS::EFS::FileSystem"
| "AWS::IAM::Role"
| "AWS::IAM::User"
| "AWS::KMS::Key"
| "AWS::Lambda::Function"
| "AWS::Lambda::LayerVersion"
| "AWS::RDS::DBClusterSnapshot"
| "AWS::RDS::DBSnapshot"
| "AWS::S3::Bucket"
| "AWS::S3Express::DirectoryBucket"
| "AWS::SNS::Topic"
| "AWS::SQS::Queue"
| "AWS::SecretsManager::Secret";
export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];

/**
* @public
* @enum
*/
export type Type =
| "ACCOUNT"
| "ACCOUNT_INTERNAL_ACCESS"
| "ACCOUNT_UNUSED_ACCESS"
| "ORGANIZATION"
| "ORGANIZATION_INTERNAL_ACCESS"
| "ORGANIZATION_UNUSED_ACCESS";
export const Type = {
ACCOUNT: "ACCOUNT",
ACCOUNT_INTERNAL_ACCESS: "ACCOUNT_INTERNAL_ACCESS",
ACCOUNT_UNUSED_ACCESS: "ACCOUNT_UNUSED_ACCESS",
ORGANIZATION: "ORGANIZATION",
ORGANIZATION_INTERNAL_ACCESS: "ORGANIZATION_INTERNAL_ACCESS",
ORGANIZATION_UNUSED_ACCESS: "ORGANIZATION_UNUSED_ACCESS",
} as const;
/**
* @public
*/
export type Type = (typeof Type)[keyof typeof Type];

/**
* @public
* @enum
*/
export type AnalyzerStatus = "ACTIVE" | "CREATING" | "DISABLED" | "FAILED";
export const AnalyzerStatus = {
ACTIVE: "ACTIVE",
CREATING: "CREATING",
DISABLED: "DISABLED",
FAILED: "FAILED",
} as const;
/**
* @public
*/
export type AnalyzerStatus = (typeof AnalyzerStatus)[keyof typeof AnalyzerStatus];

/**
* @public
* @enum
*/
export const ReasonCode = {
AWS_SERVICE_ACCESS_DISABLED: "AWS_SERVICE_ACCESS_DISABLED",
DELEGATED_ADMINISTRATOR_DEREGISTERED: "DELEGATED_ADMINISTRATOR_DEREGISTERED",
ORGANIZATION_DELETED: "ORGANIZATION_DELETED",
SERVICE_LINKED_ROLE_CREATION_FAILED: "SERVICE_LINKED_ROLE_CREATION_FAILED",
} as const;
/**
* @public
*/
export type ReasonCode =
| "AWS_SERVICE_ACCESS_DISABLED"
| "DELEGATED_ADMINISTRATOR_DEREGISTERED"
| "ORGANIZATION_DELETED"
| "SERVICE_LINKED_ROLE_CREATION_FAILED";
export type ReasonCode = (typeof ReasonCode)[keyof typeof ReasonCode];

/**
* @public
Expand Down Expand Up @@ -221,10 +249,19 @@ export const AccessPreviewStatusReasonCode = {
export type AccessPreviewStatusReasonCode =
(typeof AccessPreviewStatusReasonCode)[keyof typeof AccessPreviewStatusReasonCode];

/**
* @public
* @enum
*/
export const FindingStatus = {
ACTIVE: "ACTIVE",
ARCHIVED: "ARCHIVED",
RESOLVED: "RESOLVED",
} as const;
/**
* @public
*/
export type FindingStatus = "ACTIVE" | "ARCHIVED" | "RESOLVED";
export type FindingStatus = (typeof FindingStatus)[keyof typeof FindingStatus];

/**
* @public
Expand All @@ -242,10 +279,20 @@ export const ResourceControlPolicyRestriction = {
export type ResourceControlPolicyRestriction =
(typeof ResourceControlPolicyRestriction)[keyof typeof ResourceControlPolicyRestriction];

/**
* @public
* @enum
*/
export const FindingSourceType = {
BUCKET_ACL: "BUCKET_ACL",
POLICY: "POLICY",
S3_ACCESS_POINT: "S3_ACCESS_POINT",
S3_ACCESS_POINT_ACCOUNT: "S3_ACCESS_POINT_ACCOUNT",
} as const;
/**
* @public
*/
export type FindingSourceType = "BUCKET_ACL" | "POLICY" | "S3_ACCESS_POINT" | "S3_ACCESS_POINT_ACCOUNT";
export type FindingSourceType = (typeof FindingSourceType)[keyof typeof FindingSourceType];

/**
* @public
Expand Down Expand Up @@ -390,15 +437,31 @@ export const FindingChangeType = {
*/
export type FindingChangeType = (typeof FindingChangeType)[keyof typeof FindingChangeType];

/**
* @public
* @enum
*/
export const OrderBy = {
ASC: "ASC",
DESC: "DESC",
} as const;
/**
* @public
*/
export type OrderBy = "ASC" | "DESC";
export type OrderBy = (typeof OrderBy)[keyof typeof OrderBy];

/**
* @public
* @enum
*/
export const FindingStatusUpdate = {
ACTIVE: "ACTIVE",
ARCHIVED: "ARCHIVED",
} as const;
/**
* @public
*/
export type FindingStatusUpdate = "ACTIVE" | "ARCHIVED";
export type FindingStatusUpdate = (typeof FindingStatusUpdate)[keyof typeof FindingStatusUpdate];

/**
* @public
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ software.amazon.smithy.aws.typescript.codegen.AddWebsocketPlugin
software.amazon.smithy.aws.typescript.codegen.AddTranscribeStreamingDependency
software.amazon.smithy.aws.typescript.codegen.AddUserAgentDependency
software.amazon.smithy.aws.typescript.codegen.AddOmitRetryHeadersDependency
software.amazon.smithy.aws.typescript.codegen.StripNewEnumNames
software.amazon.smithy.aws.typescript.codegen.AddCrossRegionCopyingPlugin
software.amazon.smithy.aws.typescript.codegen.AddDocumentClientPlugin
software.amazon.smithy.aws.typescript.codegen.AddEndpointDiscoveryPlugin
Expand Down
Loading
Loading