diff --git a/clients/client-accessanalyzer/src/index.ts b/clients/client-accessanalyzer/src/index.ts index 07910f595e91..5dbfe17f03a1 100644 --- a/clients/client-accessanalyzer/src/index.ts +++ b/clients/client-accessanalyzer/src/index.ts @@ -13,6 +13,7 @@ export type { AccessAnalyzerExtensionConfiguration } from "./extensionConfigurat export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-accessanalyzer/src/models/enums.ts b/clients/client-accessanalyzer/src/models/enums.ts new file mode 100644 index 000000000000..6648af663c79 --- /dev/null +++ b/clients/client-accessanalyzer/src/models/enums.ts @@ -0,0 +1,469 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + CANNOT_PARSE: "cannotParse", + FIELD_VALIDATION_FAILED: "fieldValidationFailed", + NOT_SUPPORTED: "notSupported", + OTHER: "other", + UNKNOWN_OPERATION: "unknownOperation", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @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"; + +/** + * @public + */ +export type Type = + | "ACCOUNT" + | "ACCOUNT_INTERNAL_ACCESS" + | "ACCOUNT_UNUSED_ACCESS" + | "ORGANIZATION" + | "ORGANIZATION_INTERNAL_ACCESS" + | "ORGANIZATION_UNUSED_ACCESS"; + +/** + * @public + */ +export type AnalyzerStatus = "ACTIVE" | "CREATING" | "DISABLED" | "FAILED"; + +/** + * @public + */ +export type ReasonCode = + | "AWS_SERVICE_ACCESS_DISABLED" + | "DELEGATED_ADMINISTRATOR_DEREGISTERED" + | "ORGANIZATION_DELETED" + | "SERVICE_LINKED_ROLE_CREATION_FAILED"; + +/** + * @public + * @enum + */ +export const AccessCheckPolicyType = { + IDENTITY_POLICY: "IDENTITY_POLICY", + RESOURCE_POLICY: "RESOURCE_POLICY", +} as const; +/** + * @public + */ +export type AccessCheckPolicyType = (typeof AccessCheckPolicyType)[keyof typeof AccessCheckPolicyType]; + +/** + * @public + * @enum + */ +export const CheckAccessNotGrantedResult = { + FAIL: "FAIL", + PASS: "PASS", +} as const; +/** + * @public + */ +export type CheckAccessNotGrantedResult = + (typeof CheckAccessNotGrantedResult)[keyof typeof CheckAccessNotGrantedResult]; + +/** + * @public + * @enum + */ +export const CheckNoNewAccessResult = { + FAIL: "FAIL", + PASS: "PASS", +} as const; +/** + * @public + */ +export type CheckNoNewAccessResult = (typeof CheckNoNewAccessResult)[keyof typeof CheckNoNewAccessResult]; + +/** + * @public + * @enum + */ +export const AccessCheckResourceType = { + API_GATEWAY_REST_API: "AWS::ApiGateway::RestApi", + BACKUP_VAULT: "AWS::Backup::BackupVault", + CLOUDTRAIL_DASHBOARD: "AWS::CloudTrail::Dashboard", + CLOUDTRAIL_EVENT_DATA_STORE: "AWS::CloudTrail::EventDataStore", + CODE_ARTIFACT_DOMAIN: "AWS::CodeArtifact::Domain", + DYNAMODB_STREAM: "AWS::DynamoDB::Stream", + DYNAMODB_TABLE: "AWS::DynamoDB::Table", + EFS_FILESYSTEM: "AWS::EFS::FileSystem", + KINESIS_DATA_STREAM: "AWS::Kinesis::Stream", + KINESIS_STREAM_CONSUMER: "AWS::Kinesis::StreamConsumer", + KMS_KEY: "AWS::KMS::Key", + LAMBDA_FUNCTION: "AWS::Lambda::Function", + OPENSEARCHSERVICE_DOMAIN: "AWS::OpenSearchService::Domain", + ROLE_TRUST: "AWS::IAM::AssumeRolePolicyDocument", + S3EXPRESS_DIRECTORYBUCKET: "AWS::S3Express::DirectoryBucket", + S3_ACCESS_POINT: "AWS::S3::AccessPoint", + S3_BUCKET: "AWS::S3::Bucket", + S3_EXPRESS_ACCESS_POINT: "AWS::S3Express::AccessPoint", + S3_GLACIER: "AWS::S3::Glacier", + S3_OUTPOSTS_ACCESS_POINT: "AWS::S3Outposts::AccessPoint", + S3_OUTPOSTS_BUCKET: "AWS::S3Outposts::Bucket", + S3_TABLE: "AWS::S3Tables::Table", + S3_TABLE_BUCKET: "AWS::S3Tables::TableBucket", + SECRETSMANAGER_SECRET: "AWS::SecretsManager::Secret", + SNS_TOPIC: "AWS::SNS::Topic", + SQS_QUEUE: "AWS::SQS::Queue", +} as const; +/** + * @public + */ +export type AccessCheckResourceType = (typeof AccessCheckResourceType)[keyof typeof AccessCheckResourceType]; + +/** + * @public + * @enum + */ +export const CheckNoPublicAccessResult = { + FAIL: "FAIL", + PASS: "PASS", +} as const; +/** + * @public + */ +export type CheckNoPublicAccessResult = (typeof CheckNoPublicAccessResult)[keyof typeof CheckNoPublicAccessResult]; + +/** + * @public + * @enum + */ +export const KmsGrantOperation = { + CREATE_GRANT: "CreateGrant", + DECRYPT: "Decrypt", + DESCRIBE_KEY: "DescribeKey", + ENCRYPT: "Encrypt", + GENERATE_DATA_KEY: "GenerateDataKey", + GENERATE_DATA_KEY_PAIR: "GenerateDataKeyPair", + GENERATE_DATA_KEY_PAIR_WITHOUT_PLAINTEXT: "GenerateDataKeyPairWithoutPlaintext", + GENERATE_DATA_KEY_WITHOUT_PLAINTEXT: "GenerateDataKeyWithoutPlaintext", + GET_PUBLIC_KEY: "GetPublicKey", + REENCRYPT_FROM: "ReEncryptFrom", + REENCRYPT_TO: "ReEncryptTo", + RETIRE_GRANT: "RetireGrant", + SIGN: "Sign", + VERIFY: "Verify", +} as const; +/** + * @public + */ +export type KmsGrantOperation = (typeof KmsGrantOperation)[keyof typeof KmsGrantOperation]; + +/** + * @public + * @enum + */ +export const AclPermission = { + FULL_CONTROL: "FULL_CONTROL", + READ: "READ", + READ_ACP: "READ_ACP", + WRITE: "WRITE", + WRITE_ACP: "WRITE_ACP", +} as const; +/** + * @public + */ +export type AclPermission = (typeof AclPermission)[keyof typeof AclPermission]; + +/** + * @public + * @enum + */ +export const AccessPreviewStatus = { + COMPLETED: "COMPLETED", + CREATING: "CREATING", + FAILED: "FAILED", +} as const; +/** + * @public + */ +export type AccessPreviewStatus = (typeof AccessPreviewStatus)[keyof typeof AccessPreviewStatus]; + +/** + * @public + * @enum + */ +export const AccessPreviewStatusReasonCode = { + INTERNAL_ERROR: "INTERNAL_ERROR", + INVALID_CONFIGURATION: "INVALID_CONFIGURATION", +} as const; +/** + * @public + */ +export type AccessPreviewStatusReasonCode = + (typeof AccessPreviewStatusReasonCode)[keyof typeof AccessPreviewStatusReasonCode]; + +/** + * @public + */ +export type FindingStatus = "ACTIVE" | "ARCHIVED" | "RESOLVED"; + +/** + * @public + * @enum + */ +export const ResourceControlPolicyRestriction = { + APPLICABLE: "APPLICABLE", + APPLIED: "APPLIED", + FAILED_TO_EVALUATE_RCP: "FAILED_TO_EVALUATE_RCP", + NOT_APPLICABLE: "NOT_APPLICABLE", +} as const; +/** + * @public + */ +export type ResourceControlPolicyRestriction = + (typeof ResourceControlPolicyRestriction)[keyof typeof ResourceControlPolicyRestriction]; + +/** + * @public + */ +export type FindingSourceType = "BUCKET_ACL" | "POLICY" | "S3_ACCESS_POINT" | "S3_ACCESS_POINT_ACCOUNT"; + +/** + * @public + * @enum + */ +export const RecommendationType = { + UNUSED_PERMISSION_RECOMMENDATION: "UnusedPermissionRecommendation", +} as const; +/** + * @public + */ +export type RecommendationType = (typeof RecommendationType)[keyof typeof RecommendationType]; + +/** + * @public + * @enum + */ +export const RecommendedRemediationAction = { + CREATE_POLICY: "CREATE_POLICY", + DETACH_POLICY: "DETACH_POLICY", +} as const; +/** + * @public + */ +export type RecommendedRemediationAction = + (typeof RecommendedRemediationAction)[keyof typeof RecommendedRemediationAction]; + +/** + * @public + * @enum + */ +export const Status = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type Status = (typeof Status)[keyof typeof Status]; + +/** + * @public + * @enum + */ +export const InternalAccessType = { + INTRA_ACCOUNT: "INTRA_ACCOUNT", + INTRA_ORG: "INTRA_ORG", +} as const; +/** + * @public + */ +export type InternalAccessType = (typeof InternalAccessType)[keyof typeof InternalAccessType]; + +/** + * @public + * @enum + */ +export const PrincipalType = { + IAM_ROLE: "IAM_ROLE", + IAM_USER: "IAM_USER", +} as const; +/** + * @public + */ +export type PrincipalType = (typeof PrincipalType)[keyof typeof PrincipalType]; + +/** + * @public + * @enum + */ +export const ServiceControlPolicyRestriction = { + APPLICABLE: "APPLICABLE", + APPLIED: "APPLIED", + FAILED_TO_EVALUATE_SCP: "FAILED_TO_EVALUATE_SCP", + NOT_APPLICABLE: "NOT_APPLICABLE", +} as const; +/** + * @public + */ +export type ServiceControlPolicyRestriction = + (typeof ServiceControlPolicyRestriction)[keyof typeof ServiceControlPolicyRestriction]; + +/** + * @public + * @enum + */ +export const FindingType = { + EXTERNAL_ACCESS: "ExternalAccess", + INTERNAL_ACCESS: "InternalAccess", + UNUSED_IAM_ROLE: "UnusedIAMRole", + UNUSED_IAM_USER_ACCESS_KEY: "UnusedIAMUserAccessKey", + UNUSED_IAM_USER_PASSWORD: "UnusedIAMUserPassword", + UNUSED_PERMISSION: "UnusedPermission", +} as const; +/** + * @public + */ +export type FindingType = (typeof FindingType)[keyof typeof FindingType]; + +/** + * @public + * @enum + */ +export const JobErrorCode = { + AUTHORIZATION_ERROR: "AUTHORIZATION_ERROR", + RESOURCE_NOT_FOUND_ERROR: "RESOURCE_NOT_FOUND_ERROR", + SERVICE_ERROR: "SERVICE_ERROR", + SERVICE_QUOTA_EXCEEDED_ERROR: "SERVICE_QUOTA_EXCEEDED_ERROR", +} as const; +/** + * @public + */ +export type JobErrorCode = (typeof JobErrorCode)[keyof typeof JobErrorCode]; + +/** + * @public + * @enum + */ +export const JobStatus = { + CANCELED: "CANCELED", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus]; + +/** + * @public + * @enum + */ +export const FindingChangeType = { + CHANGED: "CHANGED", + NEW: "NEW", + UNCHANGED: "UNCHANGED", +} as const; +/** + * @public + */ +export type FindingChangeType = (typeof FindingChangeType)[keyof typeof FindingChangeType]; + +/** + * @public + */ +export type OrderBy = "ASC" | "DESC"; + +/** + * @public + */ +export type FindingStatusUpdate = "ACTIVE" | "ARCHIVED"; + +/** + * @public + * @enum + */ +export const Locale = { + DE: "DE", + EN: "EN", + ES: "ES", + FR: "FR", + IT: "IT", + JA: "JA", + KO: "KO", + PT_BR: "PT_BR", + ZH_CN: "ZH_CN", + ZH_TW: "ZH_TW", +} as const; +/** + * @public + */ +export type Locale = (typeof Locale)[keyof typeof Locale]; + +/** + * @public + * @enum + */ +export const PolicyType = { + IDENTITY_POLICY: "IDENTITY_POLICY", + RESOURCE_CONTROL_POLICY: "RESOURCE_CONTROL_POLICY", + RESOURCE_POLICY: "RESOURCE_POLICY", + SERVICE_CONTROL_POLICY: "SERVICE_CONTROL_POLICY", +} as const; +/** + * @public + */ +export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType]; + +/** + * @public + * @enum + */ +export const ValidatePolicyResourceType = { + DYNAMODB_TABLE: "AWS::DynamoDB::Table", + ROLE_TRUST: "AWS::IAM::AssumeRolePolicyDocument", + S3_ACCESS_POINT: "AWS::S3::AccessPoint", + S3_BUCKET: "AWS::S3::Bucket", + S3_MULTI_REGION_ACCESS_POINT: "AWS::S3::MultiRegionAccessPoint", + S3_OBJECT_LAMBDA_ACCESS_POINT: "AWS::S3ObjectLambda::AccessPoint", +} as const; +/** + * @public + */ +export type ValidatePolicyResourceType = (typeof ValidatePolicyResourceType)[keyof typeof ValidatePolicyResourceType]; + +/** + * @public + * @enum + */ +export const ValidatePolicyFindingType = { + ERROR: "ERROR", + SECURITY_WARNING: "SECURITY_WARNING", + SUGGESTION: "SUGGESTION", + WARNING: "WARNING", +} as const; +/** + * @public + */ +export type ValidatePolicyFindingType = (typeof ValidatePolicyFindingType)[keyof typeof ValidatePolicyFindingType]; diff --git a/clients/client-accessanalyzer/src/models/errors.ts b/clients/client-accessanalyzer/src/models/errors.ts index 98bad8906199..2c6d33769485 100644 --- a/clients/client-accessanalyzer/src/models/errors.ts +++ b/clients/client-accessanalyzer/src/models/errors.ts @@ -2,7 +2,8 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { AccessAnalyzerServiceException as __BaseException } from "./AccessAnalyzerServiceException"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionReason } from "./enums"; +import { ValidationExceptionField } from "./models_0"; /** *

You do not have sufficient access to perform this action.

diff --git a/clients/client-accessanalyzer/src/models/models_0.ts b/clients/client-accessanalyzer/src/models/models_0.ts index 8dcc5fc5d8e5..feb5af9cc8ef 100644 --- a/clients/client-accessanalyzer/src/models/models_0.ts +++ b/clients/client-accessanalyzer/src/models/models_0.ts @@ -1,4 +1,39 @@ // smithy-typescript generated code +import { + AccessCheckPolicyType, + AccessCheckResourceType, + AccessPreviewStatus, + AccessPreviewStatusReasonCode, + AclPermission, + AnalyzerStatus, + CheckAccessNotGrantedResult, + CheckNoNewAccessResult, + CheckNoPublicAccessResult, + FindingChangeType, + FindingSourceType, + FindingStatus, + FindingStatusUpdate, + FindingType, + InternalAccessType, + JobErrorCode, + JobStatus, + KmsGrantOperation, + Locale, + OrderBy, + PolicyType, + PrincipalType, + ReasonCode, + RecommendationType, + RecommendedRemediationAction, + ResourceControlPolicyRestriction, + ResourceType, + ServiceControlPolicyRestriction, + Status, + Type, + ValidatePolicyFindingType, + ValidatePolicyResourceType, +} from "./enums"; + /** *

Contains information about actions and resources that define permissions to check against a policy.

* @public @@ -95,23 +130,6 @@ export interface ValidationExceptionField { message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - CANNOT_PARSE: "cannotParse", - FIELD_VALIDATION_FAILED: "fieldValidationFailed", - NOT_SUPPORTED: "notSupported", - OTHER: "other", - UNKNOWN_OPERATION: "unknownOperation", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** *

Deletes an archive rule.

* @public @@ -286,28 +304,6 @@ export interface InlineArchiveRule { filter: Record | undefined; } -/** - * @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"; - /** *

The criteria for an analysis rule for an internal access analyzer.

* @public @@ -457,17 +453,6 @@ export namespace AnalyzerConfiguration { } } -/** - * @public - */ -export type Type = - | "ACCOUNT" - | "ACCOUNT_INTERNAL_ACCESS" - | "ACCOUNT_UNUSED_ACCESS" - | "ORGANIZATION" - | "ORGANIZATION_INTERNAL_ACCESS" - | "ORGANIZATION_UNUSED_ACCESS"; - /** *

Creates an analyzer.

* @public @@ -552,20 +537,6 @@ export interface GetAnalyzerRequest { analyzerName: string | undefined; } -/** - * @public - */ -export type AnalyzerStatus = "ACTIVE" | "CREATING" | "DISABLED" | "FAILED"; - -/** - * @public - */ -export type ReasonCode = - | "AWS_SERVICE_ACCESS_DISABLED" - | "DELEGATED_ADMINISTRATOR_DEREGISTERED" - | "ORGANIZATION_DELETED" - | "SERVICE_LINKED_ROLE_CREATION_FAILED"; - /** *

Provides more details about the current status of the analyzer. For example, if the creation for the analyzer fails, a Failed status is returned. For an analyzer with organization as the type, this failure can be due to an issue with creating the service-linked roles required in the member accounts of the Amazon Web Services organization.

* @public @@ -766,20 +737,6 @@ export interface CancelPolicyGenerationRequest { */ export interface CancelPolicyGenerationResponse {} -/** - * @public - * @enum - */ -export const AccessCheckPolicyType = { - IDENTITY_POLICY: "IDENTITY_POLICY", - RESOURCE_POLICY: "RESOURCE_POLICY", -} as const; - -/** - * @public - */ -export type AccessCheckPolicyType = (typeof AccessCheckPolicyType)[keyof typeof AccessCheckPolicyType]; - /** * @public */ @@ -827,21 +784,6 @@ export interface ReasonSummary { statementId?: string | undefined; } -/** - * @public - * @enum - */ -export const CheckAccessNotGrantedResult = { - FAIL: "FAIL", - PASS: "PASS", -} as const; - -/** - * @public - */ -export type CheckAccessNotGrantedResult = - (typeof CheckAccessNotGrantedResult)[keyof typeof CheckAccessNotGrantedResult]; - /** * @public */ @@ -888,20 +830,6 @@ export interface CheckNoNewAccessRequest { policyType: AccessCheckPolicyType | undefined; } -/** - * @public - * @enum - */ -export const CheckNoNewAccessResult = { - FAIL: "FAIL", - PASS: "PASS", -} as const; - -/** - * @public - */ -export type CheckNoNewAccessResult = (typeof CheckNoNewAccessResult)[keyof typeof CheckNoNewAccessResult]; - /** * @public */ @@ -925,44 +853,6 @@ export interface CheckNoNewAccessResponse { reasons?: ReasonSummary[] | undefined; } -/** - * @public - * @enum - */ -export const AccessCheckResourceType = { - API_GATEWAY_REST_API: "AWS::ApiGateway::RestApi", - BACKUP_VAULT: "AWS::Backup::BackupVault", - CLOUDTRAIL_DASHBOARD: "AWS::CloudTrail::Dashboard", - CLOUDTRAIL_EVENT_DATA_STORE: "AWS::CloudTrail::EventDataStore", - CODE_ARTIFACT_DOMAIN: "AWS::CodeArtifact::Domain", - DYNAMODB_STREAM: "AWS::DynamoDB::Stream", - DYNAMODB_TABLE: "AWS::DynamoDB::Table", - EFS_FILESYSTEM: "AWS::EFS::FileSystem", - KINESIS_DATA_STREAM: "AWS::Kinesis::Stream", - KINESIS_STREAM_CONSUMER: "AWS::Kinesis::StreamConsumer", - KMS_KEY: "AWS::KMS::Key", - LAMBDA_FUNCTION: "AWS::Lambda::Function", - OPENSEARCHSERVICE_DOMAIN: "AWS::OpenSearchService::Domain", - ROLE_TRUST: "AWS::IAM::AssumeRolePolicyDocument", - S3EXPRESS_DIRECTORYBUCKET: "AWS::S3Express::DirectoryBucket", - S3_ACCESS_POINT: "AWS::S3::AccessPoint", - S3_BUCKET: "AWS::S3::Bucket", - S3_EXPRESS_ACCESS_POINT: "AWS::S3Express::AccessPoint", - S3_GLACIER: "AWS::S3::Glacier", - S3_OUTPOSTS_ACCESS_POINT: "AWS::S3Outposts::AccessPoint", - S3_OUTPOSTS_BUCKET: "AWS::S3Outposts::Bucket", - S3_TABLE: "AWS::S3Tables::Table", - S3_TABLE_BUCKET: "AWS::S3Tables::TableBucket", - SECRETSMANAGER_SECRET: "AWS::SecretsManager::Secret", - SNS_TOPIC: "AWS::SNS::Topic", - SQS_QUEUE: "AWS::SQS::Queue", -} as const; - -/** - * @public - */ -export type AccessCheckResourceType = (typeof AccessCheckResourceType)[keyof typeof AccessCheckResourceType]; - /** * @public */ @@ -980,20 +870,6 @@ export interface CheckNoPublicAccessRequest { resourceType: AccessCheckResourceType | undefined; } -/** - * @public - * @enum - */ -export const CheckNoPublicAccessResult = { - FAIL: "FAIL", - PASS: "PASS", -} as const; - -/** - * @public - */ -export type CheckNoPublicAccessResult = (typeof CheckNoPublicAccessResult)[keyof typeof CheckNoPublicAccessResult]; - /** * @public */ @@ -1119,32 +995,6 @@ export interface KmsGrantConstraints { encryptionContextSubset?: Record | undefined; } -/** - * @public - * @enum - */ -export const KmsGrantOperation = { - CREATE_GRANT: "CreateGrant", - DECRYPT: "Decrypt", - DESCRIBE_KEY: "DescribeKey", - ENCRYPT: "Encrypt", - GENERATE_DATA_KEY: "GenerateDataKey", - GENERATE_DATA_KEY_PAIR: "GenerateDataKeyPair", - GENERATE_DATA_KEY_PAIR_WITHOUT_PLAINTEXT: "GenerateDataKeyPairWithoutPlaintext", - GENERATE_DATA_KEY_WITHOUT_PLAINTEXT: "GenerateDataKeyWithoutPlaintext", - GET_PUBLIC_KEY: "GetPublicKey", - REENCRYPT_FROM: "ReEncryptFrom", - REENCRYPT_TO: "ReEncryptTo", - RETIRE_GRANT: "RetireGrant", - SIGN: "Sign", - VERIFY: "Verify", -} as const; - -/** - * @public - */ -export type KmsGrantOperation = (typeof KmsGrantOperation)[keyof typeof KmsGrantOperation]; - /** *

A proposed grant configuration for a KMS key. For more information, see CreateGrant.

* @public @@ -1476,23 +1326,6 @@ export namespace AclGrantee { } } -/** - * @public - * @enum - */ -export const AclPermission = { - FULL_CONTROL: "FULL_CONTROL", - READ: "READ", - READ_ACP: "READ_ACP", - WRITE: "WRITE", - WRITE_ACP: "WRITE_ACP", -} as const; - -/** - * @public - */ -export type AclPermission = (typeof AclPermission)[keyof typeof AclPermission]; - /** *

A proposed access control list grant configuration for an Amazon S3 bucket. For more information, see How to Specify an ACL.

* @public @@ -2064,36 +1897,6 @@ export interface GetAccessPreviewRequest { analyzerArn: string | undefined; } -/** - * @public - * @enum - */ -export const AccessPreviewStatus = { - COMPLETED: "COMPLETED", - CREATING: "CREATING", - FAILED: "FAILED", -} as const; - -/** - * @public - */ -export type AccessPreviewStatus = (typeof AccessPreviewStatus)[keyof typeof AccessPreviewStatus]; - -/** - * @public - * @enum - */ -export const AccessPreviewStatusReasonCode = { - INTERNAL_ERROR: "INTERNAL_ERROR", - INVALID_CONFIGURATION: "INVALID_CONFIGURATION", -} as const; - -/** - * @public - */ -export type AccessPreviewStatusReasonCode = - (typeof AccessPreviewStatusReasonCode)[keyof typeof AccessPreviewStatusReasonCode]; - /** *

Provides more details about the current status of the access preview. For example, if the creation of the access preview fails, a Failed status is returned. This failure can be due to an internal issue with the analysis or due to an invalid proposed resource configuration.

* @public @@ -2177,11 +1980,6 @@ export interface GetAnalyzedResourceRequest { resourceArn: string | undefined; } -/** - * @public - */ -export type FindingStatus = "ACTIVE" | "ARCHIVED" | "RESOLVED"; - /** *

Contains details about the analyzed resource.

* @public @@ -2284,23 +2082,6 @@ export interface GetFindingRequest { id: string | undefined; } -/** - * @public - * @enum - */ -export const ResourceControlPolicyRestriction = { - APPLICABLE: "APPLICABLE", - APPLIED: "APPLIED", - FAILED_TO_EVALUATE_RCP: "FAILED_TO_EVALUATE_RCP", - NOT_APPLICABLE: "NOT_APPLICABLE", -} as const; - -/** - * @public - */ -export type ResourceControlPolicyRestriction = - (typeof ResourceControlPolicyRestriction)[keyof typeof ResourceControlPolicyRestriction]; - /** *

Includes details about how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.

* @public @@ -2319,11 +2100,6 @@ export interface FindingSourceDetail { accessPointAccount?: string | undefined; } -/** - * @public - */ -export type FindingSourceType = "BUCKET_ACL" | "POLICY" | "S3_ACCESS_POINT" | "S3_ACCESS_POINT_ACCOUNT"; - /** *

The source of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.

* @public @@ -2497,34 +2273,6 @@ export interface RecommendationError { message: string | undefined; } -/** - * @public - * @enum - */ -export const RecommendationType = { - UNUSED_PERMISSION_RECOMMENDATION: "UnusedPermissionRecommendation", -} as const; - -/** - * @public - */ -export type RecommendationType = (typeof RecommendationType)[keyof typeof RecommendationType]; - -/** - * @public - * @enum - */ -export const RecommendedRemediationAction = { - CREATE_POLICY: "CREATE_POLICY", - DETACH_POLICY: "DETACH_POLICY", -} as const; - -/** - * @public - */ -export type RecommendedRemediationAction = - (typeof RecommendedRemediationAction)[keyof typeof RecommendedRemediationAction]; - /** *

Contains information about the action to take for a policy in an unused permissions finding.

* @public @@ -2592,21 +2340,6 @@ export namespace RecommendedStep { } } -/** - * @public - * @enum - */ -export const Status = { - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type Status = (typeof Status)[keyof typeof Status]; - /** * @public */ @@ -3014,51 +2747,6 @@ export interface ExternalAccessDetails { resourceControlPolicyRestriction?: ResourceControlPolicyRestriction | undefined; } -/** - * @public - * @enum - */ -export const InternalAccessType = { - INTRA_ACCOUNT: "INTRA_ACCOUNT", - INTRA_ORG: "INTRA_ORG", -} as const; - -/** - * @public - */ -export type InternalAccessType = (typeof InternalAccessType)[keyof typeof InternalAccessType]; - -/** - * @public - * @enum - */ -export const PrincipalType = { - IAM_ROLE: "IAM_ROLE", - IAM_USER: "IAM_USER", -} as const; - -/** - * @public - */ -export type PrincipalType = (typeof PrincipalType)[keyof typeof PrincipalType]; - -/** - * @public - * @enum - */ -export const ServiceControlPolicyRestriction = { - APPLICABLE: "APPLICABLE", - APPLIED: "APPLIED", - FAILED_TO_EVALUATE_SCP: "FAILED_TO_EVALUATE_SCP", - NOT_APPLICABLE: "NOT_APPLICABLE", -} as const; - -/** - * @public - */ -export type ServiceControlPolicyRestriction = - (typeof ServiceControlPolicyRestriction)[keyof typeof ServiceControlPolicyRestriction]; - /** *

Contains information about an internal access finding. This includes details about the access that was identified within your Amazon Web Services organization or account.

* @public @@ -3332,24 +3020,6 @@ export namespace FindingDetails { } } -/** - * @public - * @enum - */ -export const FindingType = { - EXTERNAL_ACCESS: "ExternalAccess", - INTERNAL_ACCESS: "InternalAccess", - UNUSED_IAM_ROLE: "UnusedIAMRole", - UNUSED_IAM_USER_ACCESS_KEY: "UnusedIAMUserAccessKey", - UNUSED_IAM_USER_PASSWORD: "UnusedIAMUserPassword", - UNUSED_PERMISSION: "UnusedPermission", -} as const; - -/** - * @public - */ -export type FindingType = (typeof FindingType)[keyof typeof FindingType]; - /** * @public */ @@ -3552,22 +3222,6 @@ export interface GeneratedPolicyResult { generatedPolicies?: GeneratedPolicy[] | undefined; } -/** - * @public - * @enum - */ -export const JobErrorCode = { - AUTHORIZATION_ERROR: "AUTHORIZATION_ERROR", - RESOURCE_NOT_FOUND_ERROR: "RESOURCE_NOT_FOUND_ERROR", - SERVICE_ERROR: "SERVICE_ERROR", - SERVICE_QUOTA_EXCEEDED_ERROR: "SERVICE_QUOTA_EXCEEDED_ERROR", -} as const; - -/** - * @public - */ -export type JobErrorCode = (typeof JobErrorCode)[keyof typeof JobErrorCode]; - /** *

Contains the details about the policy generation error.

* @public @@ -3586,22 +3240,6 @@ export interface JobError { message: string | undefined; } -/** - * @public - * @enum - */ -export const JobStatus = { - CANCELED: "CANCELED", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus]; - /** *

Contains details about the policy generation request.

* @public @@ -3690,21 +3328,6 @@ export interface ListAccessPreviewFindingsRequest { maxResults?: number | undefined; } -/** - * @public - * @enum - */ -export const FindingChangeType = { - CHANGED: "CHANGED", - NEW: "NEW", - UNCHANGED: "UNCHANGED", -} as const; - -/** - * @public - */ -export type FindingChangeType = (typeof FindingChangeType)[keyof typeof FindingChangeType]; - /** *

An access preview finding generated by the access preview.

* @public @@ -3972,11 +3595,6 @@ export interface ListAnalyzedResourcesResponse { nextToken?: string | undefined; } -/** - * @public - */ -export type OrderBy = "ASC" | "DESC"; - /** *

The criteria used to sort.

* @public @@ -4535,11 +4153,6 @@ export interface UntagResourceRequest { */ export interface UntagResourceResponse {} -/** - * @public - */ -export type FindingStatusUpdate = "ACTIVE" | "ARCHIVED"; - /** *

Updates findings with the new values provided in the request.

* @public @@ -4576,62 +4189,6 @@ export interface UpdateFindingsRequest { clientToken?: string | undefined; } -/** - * @public - * @enum - */ -export const Locale = { - DE: "DE", - EN: "EN", - ES: "ES", - FR: "FR", - IT: "IT", - JA: "JA", - KO: "KO", - PT_BR: "PT_BR", - ZH_CN: "ZH_CN", - ZH_TW: "ZH_TW", -} as const; - -/** - * @public - */ -export type Locale = (typeof Locale)[keyof typeof Locale]; - -/** - * @public - * @enum - */ -export const PolicyType = { - IDENTITY_POLICY: "IDENTITY_POLICY", - RESOURCE_CONTROL_POLICY: "RESOURCE_CONTROL_POLICY", - RESOURCE_POLICY: "RESOURCE_POLICY", - SERVICE_CONTROL_POLICY: "SERVICE_CONTROL_POLICY", -} as const; - -/** - * @public - */ -export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType]; - -/** - * @public - * @enum - */ -export const ValidatePolicyResourceType = { - DYNAMODB_TABLE: "AWS::DynamoDB::Table", - ROLE_TRUST: "AWS::IAM::AssumeRolePolicyDocument", - S3_ACCESS_POINT: "AWS::S3::AccessPoint", - S3_BUCKET: "AWS::S3::Bucket", - S3_MULTI_REGION_ACCESS_POINT: "AWS::S3::MultiRegionAccessPoint", - S3_OBJECT_LAMBDA_ACCESS_POINT: "AWS::S3ObjectLambda::AccessPoint", -} as const; - -/** - * @public - */ -export type ValidatePolicyResourceType = (typeof ValidatePolicyResourceType)[keyof typeof ValidatePolicyResourceType]; - /** * @public */ @@ -4673,22 +4230,6 @@ export interface ValidatePolicyRequest { validatePolicyResourceType?: ValidatePolicyResourceType | undefined; } -/** - * @public - * @enum - */ -export const ValidatePolicyFindingType = { - ERROR: "ERROR", - SECURITY_WARNING: "SECURITY_WARNING", - SUGGESTION: "SUGGESTION", - WARNING: "WARNING", -} as const; - -/** - * @public - */ -export type ValidatePolicyFindingType = (typeof ValidatePolicyFindingType)[keyof typeof ValidatePolicyFindingType]; - /** *

A reference to a substring of a literal string in a JSON document.

* @public diff --git a/clients/client-account/src/index.ts b/clients/client-account/src/index.ts index 14df8b623b9f..66b106419b4e 100644 --- a/clients/client-account/src/index.ts +++ b/clients/client-account/src/index.ts @@ -13,6 +13,7 @@ export type { AccountExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-account/src/models/enums.ts b/clients/client-account/src/models/enums.ts new file mode 100644 index 000000000000..8455b7de2f8d --- /dev/null +++ b/clients/client-account/src/models/enums.ts @@ -0,0 +1,56 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const PrimaryEmailUpdateStatus = { + ACCEPTED: "ACCEPTED", + PENDING: "PENDING", +} as const; +/** + * @public + */ +export type PrimaryEmailUpdateStatus = (typeof PrimaryEmailUpdateStatus)[keyof typeof PrimaryEmailUpdateStatus]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + FIELD_VALIDATION_FAILED: "fieldValidationFailed", + INVALID_REGION_OPT_TARGET: "invalidRegionOptTarget", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const AlternateContactType = { + BILLING: "BILLING", + OPERATIONS: "OPERATIONS", + SECURITY: "SECURITY", +} as const; +/** + * @public + */ +export type AlternateContactType = (typeof AlternateContactType)[keyof typeof AlternateContactType]; + +/** + * @public + * @enum + */ +export const RegionOptStatus = { + DISABLED: "DISABLED", + DISABLING: "DISABLING", + ENABLED: "ENABLED", + ENABLED_BY_DEFAULT: "ENABLED_BY_DEFAULT", + ENABLING: "ENABLING", +} as const; +/** + * @public + */ +export type RegionOptStatus = (typeof RegionOptStatus)[keyof typeof RegionOptStatus]; diff --git a/clients/client-account/src/models/errors.ts b/clients/client-account/src/models/errors.ts index 284a041d1226..25230b32bdc8 100644 --- a/clients/client-account/src/models/errors.ts +++ b/clients/client-account/src/models/errors.ts @@ -2,7 +2,8 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { AccountServiceException as __BaseException } from "./AccountServiceException"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionReason } from "./enums"; +import { ValidationExceptionField } from "./models_0"; /** *

The operation failed because the calling identity doesn't have the minimum required permissions.

diff --git a/clients/client-account/src/models/models_0.ts b/clients/client-account/src/models/models_0.ts index fafeb81c7530..71bd1aef67cc 100644 --- a/clients/client-account/src/models/models_0.ts +++ b/clients/client-account/src/models/models_0.ts @@ -1,4 +1,6 @@ // smithy-typescript generated code +import { AlternateContactType, PrimaryEmailUpdateStatus, RegionOptStatus } from "./enums"; + /** * @public */ @@ -22,20 +24,6 @@ export interface AcceptPrimaryEmailUpdateRequest { Otp: string | undefined; } -/** - * @public - * @enum - */ -export const PrimaryEmailUpdateStatus = { - ACCEPTED: "ACCEPTED", - PENDING: "PENDING", -} as const; - -/** - * @public - */ -export type PrimaryEmailUpdateStatus = (typeof PrimaryEmailUpdateStatus)[keyof typeof PrimaryEmailUpdateStatus]; - /** * @public */ @@ -65,20 +53,6 @@ export interface ValidationExceptionField { message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - FIELD_VALIDATION_FAILED: "fieldValidationFailed", - INVALID_REGION_OPT_TARGET: "invalidRegionOptTarget", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** * @public */ @@ -130,21 +104,6 @@ export interface PutAccountNameRequest { AccountId?: string | undefined; } -/** - * @public - * @enum - */ -export const AlternateContactType = { - BILLING: "BILLING", - OPERATIONS: "OPERATIONS", - SECURITY: "SECURITY", -} as const; - -/** - * @public - */ -export type AlternateContactType = (typeof AlternateContactType)[keyof typeof AlternateContactType]; - /** * @public */ @@ -485,23 +444,6 @@ export interface GetRegionOptStatusRequest { RegionName: string | undefined; } -/** - * @public - * @enum - */ -export const RegionOptStatus = { - DISABLED: "DISABLED", - DISABLING: "DISABLING", - ENABLED: "ENABLED", - ENABLED_BY_DEFAULT: "ENABLED_BY_DEFAULT", - ENABLING: "ENABLING", -} as const; - -/** - * @public - */ -export type RegionOptStatus = (typeof RegionOptStatus)[keyof typeof RegionOptStatus]; - /** * @public */ diff --git a/clients/client-amp/src/models/enums.ts b/clients/client-amp/src/models/enums.ts index 7c7699a621ee..82a4d7754a2f 100644 --- a/clients/client-amp/src/models/enums.ts +++ b/clients/client-amp/src/models/enums.ts @@ -1,4 +1,153 @@ // smithy-typescript generated code +/** + * @public + * @enum + */ +export const AlertManagerDefinitionStatusCode = { + /** + * Definition has been created/updated. Update/Deletion is disallowed until definition is ACTIVE and workspace status is ACTIVE. + */ + ACTIVE: "ACTIVE", + /** + * Definition is being created. Update/Deletion is disallowed until definition is ACTIVE and workspace status is ACTIVE. + */ + CREATING: "CREATING", + /** + * Definition creation failed. + */ + CREATION_FAILED: "CREATION_FAILED", + /** + * Definition is being deleting. Update/Deletion is disallowed until definition is ACTIVE and workspace status is ACTIVE. + */ + DELETING: "DELETING", + /** + * Definition update failed. + */ + UPDATE_FAILED: "UPDATE_FAILED", + /** + * Definition is being updated. Update/Deletion is disallowed until definition is ACTIVE and workspace status is ACTIVE. + */ + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type AlertManagerDefinitionStatusCode = + (typeof AlertManagerDefinitionStatusCode)[keyof typeof AlertManagerDefinitionStatusCode]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + CANNOT_PARSE: "CANNOT_PARSE", + FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", + OTHER: "OTHER", + UNKNOWN_OPERATION: "UNKNOWN_OPERATION", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const ScraperStatusCode = { + /** + * Scraper has been created and is usable. + */ + ACTIVE: "ACTIVE", + /** + * Scraper is being created. Deletion is disallowed until status is ACTIVE. + */ + CREATING: "CREATING", + /** + * Scraper creation failed. + */ + CREATION_FAILED: "CREATION_FAILED", + /** + * Scraper is being deleted. Deletions are allowed only when status is ACTIVE. + */ + DELETING: "DELETING", + /** + * Scraper deletion failed. + */ + DELETION_FAILED: "DELETION_FAILED", + /** + * Scraper update failed. + */ + UPDATE_FAILED: "UPDATE_FAILED", + /** + * Scraper is being updated. Deletion is disallowed until status is ACTIVE. + */ + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type ScraperStatusCode = (typeof ScraperStatusCode)[keyof typeof ScraperStatusCode]; + +/** + * @public + * @enum + */ +export const ScraperComponentType = { + /** + * Scraper collector component + */ + COLLECTOR: "COLLECTOR", + /** + * Scraper exporter component + */ + EXPORTER: "EXPORTER", + /** + * Scraper service discoverer component + */ + SERVICE_DISCOVERY: "SERVICE_DISCOVERY", +} as const; +/** + * @public + */ +export type ScraperComponentType = (typeof ScraperComponentType)[keyof typeof ScraperComponentType]; + +/** + * @public + * @enum + */ +export const ScraperLoggingConfigurationStatusCode = { + /** + * Scraper logging configuration is active. + */ + ACTIVE: "ACTIVE", + /** + * Scraper logging configuration is being created. + */ + CREATING: "CREATING", + /** + * Scraper logging configuration creation failed. + */ + CREATION_FAILED: "CREATION_FAILED", + /** + * Scraper logging configuration is being deleted. + */ + DELETING: "DELETING", + /** + * Scraper logging configuration update failed. + */ + UPDATE_FAILED: "UPDATE_FAILED", + /** + * Scraper logging configuration is being updated. + */ + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type ScraperLoggingConfigurationStatusCode = + (typeof ScraperLoggingConfigurationStatusCode)[keyof typeof ScraperLoggingConfigurationStatusCode]; + /** * @public * @enum @@ -16,3 +165,193 @@ export const AnomalyDetectorStatusCode = { * @public */ export type AnomalyDetectorStatusCode = (typeof AnomalyDetectorStatusCode)[keyof typeof AnomalyDetectorStatusCode]; + +/** + * @public + * @enum + */ +export const WorkspaceStatusCode = { + /** + * Workspace has been created and is usable. + */ + ACTIVE: "ACTIVE", + /** + * Workspace is being created. Deletion is disallowed until status is ACTIVE. + */ + CREATING: "CREATING", + /** + * Workspace creation failed. Refer to WorkspaceStatus.failureReason for more details. + */ + CREATION_FAILED: "CREATION_FAILED", + /** + * Workspace is being deleted. Deletions are allowed only when status is ACTIVE. + */ + DELETING: "DELETING", + /** + * Workspace is being updated. Updates are allowed only when status is ACTIVE. + */ + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type WorkspaceStatusCode = (typeof WorkspaceStatusCode)[keyof typeof WorkspaceStatusCode]; + +/** + * @public + * @enum + */ +export const LoggingConfigurationStatusCode = { + /** + * Logging configuration has been created/updated. Update/Deletion is disallowed until logging configuration is ACTIVE and workspace status is ACTIVE. + */ + ACTIVE: "ACTIVE", + /** + * Logging configuration is being created. Update/Deletion is disallowed until logging configuration is ACTIVE and workspace status is ACTIVE. + */ + CREATING: "CREATING", + /** + * Logging configuration creation failed. + */ + CREATION_FAILED: "CREATION_FAILED", + /** + * Logging configuration is being deleting. Update/Deletion is disallowed until logging configuration is ACTIVE and workspace status is ACTIVE. + */ + DELETING: "DELETING", + /** + * Logging configuration update failed. + */ + UPDATE_FAILED: "UPDATE_FAILED", + /** + * Logging configuration is being updated. Update/Deletion is disallowed until logging configuration is ACTIVE and workspace status is ACTIVE. + */ + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type LoggingConfigurationStatusCode = + (typeof LoggingConfigurationStatusCode)[keyof typeof LoggingConfigurationStatusCode]; + +/** + * @public + * @enum + */ +export const QueryLoggingConfigurationStatusCode = { + /** + * Query logging configuration is active. + */ + ACTIVE: "ACTIVE", + /** + * Query logging configuration is being created. + */ + CREATING: "CREATING", + /** + * Query logging configuration creation failed. + */ + CREATION_FAILED: "CREATION_FAILED", + /** + * Query logging configuration is being deleted. + */ + DELETING: "DELETING", + /** + * Query logging configuration update failed. + */ + UPDATE_FAILED: "UPDATE_FAILED", + /** + * Query logging configuration is being updated. + */ + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type QueryLoggingConfigurationStatusCode = + (typeof QueryLoggingConfigurationStatusCode)[keyof typeof QueryLoggingConfigurationStatusCode]; + +/** + * @public + * @enum + */ +export const RuleGroupsNamespaceStatusCode = { + /** + * Namespace has been created/updated. Update/Deletion is disallowed until namespace is ACTIVE and workspace status is ACTIVE. + */ + ACTIVE: "ACTIVE", + /** + * Namespace is being created. Update/Deletion is disallowed until namespace is ACTIVE and workspace status is ACTIVE. + */ + CREATING: "CREATING", + /** + * Namespace creation failed. + */ + CREATION_FAILED: "CREATION_FAILED", + /** + * Namespace is being deleting. Update/Deletion is disallowed until namespace is ACTIVE and workspace status is ACTIVE. + */ + DELETING: "DELETING", + /** + * Namespace update failed. + */ + UPDATE_FAILED: "UPDATE_FAILED", + /** + * Namespace is being updated. Update/Deletion is disallowed until namespace is ACTIVE and workspace status is ACTIVE. + */ + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type RuleGroupsNamespaceStatusCode = + (typeof RuleGroupsNamespaceStatusCode)[keyof typeof RuleGroupsNamespaceStatusCode]; + +/** + * @public + * @enum + */ +export const WorkspaceConfigurationStatusCode = { + /** + * Workspace configuration has been updated. Update is disallowed until workspace configuration is ACTIVE and workspace status is ACTIVE. + */ + ACTIVE: "ACTIVE", + /** + * Workspace configuration update failed. + */ + UPDATE_FAILED: "UPDATE_FAILED", + /** + * Workspace configuration is being updated. Update is disallowed until workspace configuration is ACTIVE and workspace status is ACTIVE. + */ + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type WorkspaceConfigurationStatusCode = + (typeof WorkspaceConfigurationStatusCode)[keyof typeof WorkspaceConfigurationStatusCode]; + +/** + * @public + * @enum + */ +export const WorkspacePolicyStatusCode = { + /** + * Resource-based Policy has been created/updated. Update/Deletion is disallowed until Resource-based Policy is ACTIVE and Workspace is ACTIVE. + */ + ACTIVE: "ACTIVE", + /** + * Resource-based Policy is being created. Update/Deletion is disallowed until Resource-based Policy is ACTIVE and Workspace is ACTIVE. + */ + CREATING: "CREATING", + /** + * Resource-based Policy is being deleting. Update/Deletion is disallowed until Resource-based Policy is ACTIVE and Workspace is ACTIVE. + */ + DELETING: "DELETING", + /** + * Resource-based Policy is being updated. Update/Deletion is disallowed until Resource-based Policy is ACTIVE and Workspace is ACTIVE. + */ + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type WorkspacePolicyStatusCode = (typeof WorkspacePolicyStatusCode)[keyof typeof WorkspacePolicyStatusCode]; diff --git a/clients/client-amp/src/models/errors.ts b/clients/client-amp/src/models/errors.ts index a15476e3726b..f3e71607a0d3 100644 --- a/clients/client-amp/src/models/errors.ts +++ b/clients/client-amp/src/models/errors.ts @@ -2,7 +2,8 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { AmpServiceException as __BaseException } from "./AmpServiceException"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionReason } from "./enums"; +import { ValidationExceptionField } from "./models_0"; /** *

You do not have sufficient access to perform this action.

diff --git a/clients/client-amp/src/models/models_0.ts b/clients/client-amp/src/models/models_0.ts index 637a1bcfda5e..e5632bc6c9a8 100644 --- a/clients/client-amp/src/models/models_0.ts +++ b/clients/client-amp/src/models/models_0.ts @@ -1,5 +1,17 @@ // smithy-typescript generated code -import { AnomalyDetectorStatusCode } from "./enums"; +import { + AlertManagerDefinitionStatusCode, + AnomalyDetectorStatusCode, + LoggingConfigurationStatusCode, + QueryLoggingConfigurationStatusCode, + RuleGroupsNamespaceStatusCode, + ScraperComponentType, + ScraperLoggingConfigurationStatusCode, + ScraperStatusCode, + WorkspaceConfigurationStatusCode, + WorkspacePolicyStatusCode, + WorkspaceStatusCode, +} from "./enums"; /** *

Represents the input of a CreateAlertManagerDefinition operation.

@@ -25,43 +37,6 @@ export interface CreateAlertManagerDefinitionRequest { clientToken?: string | undefined; } -/** - * @public - * @enum - */ -export const AlertManagerDefinitionStatusCode = { - /** - * Definition has been created/updated. Update/Deletion is disallowed until definition is ACTIVE and workspace status is ACTIVE. - */ - ACTIVE: "ACTIVE", - /** - * Definition is being created. Update/Deletion is disallowed until definition is ACTIVE and workspace status is ACTIVE. - */ - CREATING: "CREATING", - /** - * Definition creation failed. - */ - CREATION_FAILED: "CREATION_FAILED", - /** - * Definition is being deleting. Update/Deletion is disallowed until definition is ACTIVE and workspace status is ACTIVE. - */ - DELETING: "DELETING", - /** - * Definition update failed. - */ - UPDATE_FAILED: "UPDATE_FAILED", - /** - * Definition is being updated. Update/Deletion is disallowed until definition is ACTIVE and workspace status is ACTIVE. - */ - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type AlertManagerDefinitionStatusCode = - (typeof AlertManagerDefinitionStatusCode)[keyof typeof AlertManagerDefinitionStatusCode]; - /** *

The status of the alert manager.

* @public @@ -110,22 +85,6 @@ export interface ValidationExceptionField { message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - CANNOT_PARSE: "CANNOT_PARSE", - FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", - OTHER: "OTHER", - UNKNOWN_OPERATION: "UNKNOWN_OPERATION", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** *

Represents the input of a DeleteAlertManagerDefinition operation.

* @public @@ -518,46 +477,6 @@ export interface CreateScraperRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const ScraperStatusCode = { - /** - * Scraper has been created and is usable. - */ - ACTIVE: "ACTIVE", - /** - * Scraper is being created. Deletion is disallowed until status is ACTIVE. - */ - CREATING: "CREATING", - /** - * Scraper creation failed. - */ - CREATION_FAILED: "CREATION_FAILED", - /** - * Scraper is being deleted. Deletions are allowed only when status is ACTIVE. - */ - DELETING: "DELETING", - /** - * Scraper deletion failed. - */ - DELETION_FAILED: "DELETION_FAILED", - /** - * Scraper update failed. - */ - UPDATE_FAILED: "UPDATE_FAILED", - /** - * Scraper is being updated. Deletion is disallowed until status is ACTIVE. - */ - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type ScraperStatusCode = (typeof ScraperStatusCode)[keyof typeof ScraperStatusCode]; - /** *

The ScraperStatus structure contains status information about the scraper.

* @public @@ -955,30 +874,6 @@ export interface ComponentConfig { options?: Record | undefined; } -/** - * @public - * @enum - */ -export const ScraperComponentType = { - /** - * Scraper collector component - */ - COLLECTOR: "COLLECTOR", - /** - * Scraper exporter component - */ - EXPORTER: "EXPORTER", - /** - * Scraper service discoverer component - */ - SERVICE_DISCOVERY: "SERVICE_DISCOVERY", -} as const; - -/** - * @public - */ -export type ScraperComponentType = (typeof ScraperComponentType)[keyof typeof ScraperComponentType]; - /** *

A component of a Amazon Managed Service for Prometheus scraper that can be configured for logging.

* @public @@ -997,43 +892,6 @@ export interface ScraperComponent { config?: ComponentConfig | undefined; } -/** - * @public - * @enum - */ -export const ScraperLoggingConfigurationStatusCode = { - /** - * Scraper logging configuration is active. - */ - ACTIVE: "ACTIVE", - /** - * Scraper logging configuration is being created. - */ - CREATING: "CREATING", - /** - * Scraper logging configuration creation failed. - */ - CREATION_FAILED: "CREATION_FAILED", - /** - * Scraper logging configuration is being deleted. - */ - DELETING: "DELETING", - /** - * Scraper logging configuration update failed. - */ - UPDATE_FAILED: "UPDATE_FAILED", - /** - * Scraper logging configuration is being updated. - */ - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type ScraperLoggingConfigurationStatusCode = - (typeof ScraperLoggingConfigurationStatusCode)[keyof typeof ScraperLoggingConfigurationStatusCode]; - /** *

The status of a scraper logging configuration.

* @public @@ -1839,38 +1697,6 @@ export interface CreateWorkspaceRequest { kmsKeyArn?: string | undefined; } -/** - * @public - * @enum - */ -export const WorkspaceStatusCode = { - /** - * Workspace has been created and is usable. - */ - ACTIVE: "ACTIVE", - /** - * Workspace is being created. Deletion is disallowed until status is ACTIVE. - */ - CREATING: "CREATING", - /** - * Workspace creation failed. Refer to WorkspaceStatus.failureReason for more details. - */ - CREATION_FAILED: "CREATION_FAILED", - /** - * Workspace is being deleted. Deletions are allowed only when status is ACTIVE. - */ - DELETING: "DELETING", - /** - * Workspace is being updated. Updates are allowed only when status is ACTIVE. - */ - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type WorkspaceStatusCode = (typeof WorkspaceStatusCode)[keyof typeof WorkspaceStatusCode]; - /** *

The status of the workspace.

* @public @@ -2129,43 +1955,6 @@ export interface CreateLoggingConfigurationRequest { clientToken?: string | undefined; } -/** - * @public - * @enum - */ -export const LoggingConfigurationStatusCode = { - /** - * Logging configuration has been created/updated. Update/Deletion is disallowed until logging configuration is ACTIVE and workspace status is ACTIVE. - */ - ACTIVE: "ACTIVE", - /** - * Logging configuration is being created. Update/Deletion is disallowed until logging configuration is ACTIVE and workspace status is ACTIVE. - */ - CREATING: "CREATING", - /** - * Logging configuration creation failed. - */ - CREATION_FAILED: "CREATION_FAILED", - /** - * Logging configuration is being deleting. Update/Deletion is disallowed until logging configuration is ACTIVE and workspace status is ACTIVE. - */ - DELETING: "DELETING", - /** - * Logging configuration update failed. - */ - UPDATE_FAILED: "UPDATE_FAILED", - /** - * Logging configuration is being updated. Update/Deletion is disallowed until logging configuration is ACTIVE and workspace status is ACTIVE. - */ - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type LoggingConfigurationStatusCode = - (typeof LoggingConfigurationStatusCode)[keyof typeof LoggingConfigurationStatusCode]; - /** *

The status of the logging configuration.

* @public @@ -2363,43 +2152,6 @@ export interface CreateQueryLoggingConfigurationRequest { clientToken?: string | undefined; } -/** - * @public - * @enum - */ -export const QueryLoggingConfigurationStatusCode = { - /** - * Query logging configuration is active. - */ - ACTIVE: "ACTIVE", - /** - * Query logging configuration is being created. - */ - CREATING: "CREATING", - /** - * Query logging configuration creation failed. - */ - CREATION_FAILED: "CREATION_FAILED", - /** - * Query logging configuration is being deleted. - */ - DELETING: "DELETING", - /** - * Query logging configuration update failed. - */ - UPDATE_FAILED: "UPDATE_FAILED", - /** - * Query logging configuration is being updated. - */ - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type QueryLoggingConfigurationStatusCode = - (typeof QueryLoggingConfigurationStatusCode)[keyof typeof QueryLoggingConfigurationStatusCode]; - /** *

The status information for a query logging configuration.

* @public @@ -2574,43 +2326,6 @@ export interface CreateRuleGroupsNamespaceRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const RuleGroupsNamespaceStatusCode = { - /** - * Namespace has been created/updated. Update/Deletion is disallowed until namespace is ACTIVE and workspace status is ACTIVE. - */ - ACTIVE: "ACTIVE", - /** - * Namespace is being created. Update/Deletion is disallowed until namespace is ACTIVE and workspace status is ACTIVE. - */ - CREATING: "CREATING", - /** - * Namespace creation failed. - */ - CREATION_FAILED: "CREATION_FAILED", - /** - * Namespace is being deleting. Update/Deletion is disallowed until namespace is ACTIVE and workspace status is ACTIVE. - */ - DELETING: "DELETING", - /** - * Namespace update failed. - */ - UPDATE_FAILED: "UPDATE_FAILED", - /** - * Namespace is being updated. Update/Deletion is disallowed until namespace is ACTIVE and workspace status is ACTIVE. - */ - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type RuleGroupsNamespaceStatusCode = - (typeof RuleGroupsNamespaceStatusCode)[keyof typeof RuleGroupsNamespaceStatusCode]; - /** *

The status information about a rule groups namespace.

* @public @@ -2976,31 +2691,6 @@ export interface LimitsPerLabelSet { labelSet: Record | undefined; } -/** - * @public - * @enum - */ -export const WorkspaceConfigurationStatusCode = { - /** - * Workspace configuration has been updated. Update is disallowed until workspace configuration is ACTIVE and workspace status is ACTIVE. - */ - ACTIVE: "ACTIVE", - /** - * Workspace configuration update failed. - */ - UPDATE_FAILED: "UPDATE_FAILED", - /** - * Workspace configuration is being updated. Update is disallowed until workspace configuration is ACTIVE and workspace status is ACTIVE. - */ - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type WorkspaceConfigurationStatusCode = - (typeof WorkspaceConfigurationStatusCode)[keyof typeof WorkspaceConfigurationStatusCode]; - /** *

This structure displays the current status of the workspace configuration, and might also contain a reason for that status.

* @public @@ -3128,34 +2818,6 @@ export interface DescribeResourcePolicyRequest { workspaceId: string | undefined; } -/** - * @public - * @enum - */ -export const WorkspacePolicyStatusCode = { - /** - * Resource-based Policy has been created/updated. Update/Deletion is disallowed until Resource-based Policy is ACTIVE and Workspace is ACTIVE. - */ - ACTIVE: "ACTIVE", - /** - * Resource-based Policy is being created. Update/Deletion is disallowed until Resource-based Policy is ACTIVE and Workspace is ACTIVE. - */ - CREATING: "CREATING", - /** - * Resource-based Policy is being deleting. Update/Deletion is disallowed until Resource-based Policy is ACTIVE and Workspace is ACTIVE. - */ - DELETING: "DELETING", - /** - * Resource-based Policy is being updated. Update/Deletion is disallowed until Resource-based Policy is ACTIVE and Workspace is ACTIVE. - */ - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type WorkspacePolicyStatusCode = (typeof WorkspacePolicyStatusCode)[keyof typeof WorkspacePolicyStatusCode]; - /** * @public */ diff --git a/clients/client-amplifyuibuilder/src/models/enums.ts b/clients/client-amplifyuibuilder/src/models/enums.ts index 56f0079cd585..ff031bb68d31 100644 --- a/clients/client-amplifyuibuilder/src/models/enums.ts +++ b/clients/client-amplifyuibuilder/src/models/enums.ts @@ -123,6 +123,21 @@ export const SortDirection = { */ export type SortDirection = (typeof SortDirection)[keyof typeof SortDirection]; +/** + * @public + * @enum + */ +export const TokenProviders = { + /** + * The figma token provider. + */ + FIGMA: "figma", +} as const; +/** + * @public + */ +export type TokenProviders = (typeof TokenProviders)[keyof typeof TokenProviders]; + /** * @public * @enum @@ -149,6 +164,25 @@ export const FormButtonsPosition = { */ export type FormButtonsPosition = (typeof FormButtonsPosition)[keyof typeof FormButtonsPosition]; +/** + * @public + * @enum + */ +export const FormDataSourceType = { + /** + * Will use passed in hooks to use when creating a form from scratch + */ + CUSTOM: "Custom", + /** + * Will use a provided Amplify DataStore enabled API + */ + DATASTORE: "DataStore", +} as const; +/** + * @public + */ +export type FormDataSourceType = (typeof FormDataSourceType)[keyof typeof FormDataSourceType]; + /** * @public * @enum @@ -175,3 +209,17 @@ export const FormActionType = { * @public */ export type FormActionType = (typeof FormActionType)[keyof typeof FormActionType]; + +/** + * @public + * @enum + */ +export const LabelDecorator = { + NONE: "none", + OPTIONAL: "optional", + REQUIRED: "required", +} as const; +/** + * @public + */ +export type LabelDecorator = (typeof LabelDecorator)[keyof typeof LabelDecorator]; diff --git a/clients/client-amplifyuibuilder/src/models/models_0.ts b/clients/client-amplifyuibuilder/src/models/models_0.ts index 53801dbafc66..b240eab14a03 100644 --- a/clients/client-amplifyuibuilder/src/models/models_0.ts +++ b/clients/client-amplifyuibuilder/src/models/models_0.ts @@ -6,12 +6,15 @@ import { FixedPosition, FormActionType, FormButtonsPosition, + FormDataSourceType, GenericDataRelationshipType, JSModule, JSScript, JSTarget, + LabelDecorator, SortDirection, StorageAccessLevel, + TokenProviders, } from "./enums"; /** @@ -971,22 +974,6 @@ export interface ListComponentsResponse { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const TokenProviders = { - /** - * The figma token provider. - */ - FIGMA: "figma", -} as const; - -/** - * @public - */ -export type TokenProviders = (typeof TokenProviders)[keyof typeof TokenProviders]; - /** *

Describes the configuration of a request to exchange an access code for a token.

* @public @@ -1175,26 +1162,6 @@ export interface FormCTA { submit?: FormButton | undefined; } -/** - * @public - * @enum - */ -export const FormDataSourceType = { - /** - * Will use passed in hooks to use when creating a form from scratch - */ - CUSTOM: "Custom", - /** - * Will use a provided Amplify DataStore enabled API - */ - DATASTORE: "DataStore", -} as const; - -/** - * @public - */ -export type FormDataSourceType = (typeof FormDataSourceType)[keyof typeof FormDataSourceType]; - /** *

Describes the data type configuration for the data source associated with a form.

* @public @@ -1351,21 +1318,6 @@ export interface FieldValidationConfiguration { validationMessage?: string | undefined; } -/** - * @public - * @enum - */ -export const LabelDecorator = { - NONE: "none", - OPTIONAL: "optional", - REQUIRED: "required", -} as const; - -/** - * @public - */ -export type LabelDecorator = (typeof LabelDecorator)[keyof typeof LabelDecorator]; - /** *

Stores the configuration information for a visual helper element for a form. A sectional * element can be a header, a text block, or a divider. These elements are static and not diff --git a/clients/client-app-mesh/src/index.ts b/clients/client-app-mesh/src/index.ts index 19ce2e2d4188..e9e83e01b057 100644 --- a/clients/client-app-mesh/src/index.ts +++ b/clients/client-app-mesh/src/index.ts @@ -27,6 +27,7 @@ export type { AppMeshExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-app-mesh/src/models/enums.ts b/clients/client-app-mesh/src/models/enums.ts new file mode 100644 index 000000000000..fb0013d9289f --- /dev/null +++ b/clients/client-app-mesh/src/models/enums.ts @@ -0,0 +1,284 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const EgressFilterType = { + ALLOW_ALL: "ALLOW_ALL", + DROP_ALL: "DROP_ALL", +} as const; +/** + * @public + */ +export type EgressFilterType = (typeof EgressFilterType)[keyof typeof EgressFilterType]; + +/** + * @public + * @enum + */ +export const IpPreference = { + IPv4_ONLY: "IPv4_ONLY", + IPv4_PREFERRED: "IPv4_PREFERRED", + IPv6_ONLY: "IPv6_ONLY", + IPv6_PREFERRED: "IPv6_PREFERRED", +} as const; +/** + * @public + */ +export type IpPreference = (typeof IpPreference)[keyof typeof IpPreference]; + +/** + * @public + * @enum + */ +export const MeshStatusCode = { + ACTIVE: "ACTIVE", + DELETED: "DELETED", + INACTIVE: "INACTIVE", +} as const; +/** + * @public + */ +export type MeshStatusCode = (typeof MeshStatusCode)[keyof typeof MeshStatusCode]; + +/** + * @public + * @enum + */ +export const VirtualGatewayPortProtocol = { + GRPC: "grpc", + HTTP: "http", + HTTP2: "http2", +} as const; +/** + * @public + */ +export type VirtualGatewayPortProtocol = (typeof VirtualGatewayPortProtocol)[keyof typeof VirtualGatewayPortProtocol]; + +/** + * @public + * @enum + */ +export const VirtualGatewayListenerTlsMode = { + DISABLED: "DISABLED", + PERMISSIVE: "PERMISSIVE", + STRICT: "STRICT", +} as const; +/** + * @public + */ +export type VirtualGatewayListenerTlsMode = + (typeof VirtualGatewayListenerTlsMode)[keyof typeof VirtualGatewayListenerTlsMode]; + +/** + * @public + * @enum + */ +export const VirtualGatewayStatusCode = { + ACTIVE: "ACTIVE", + DELETED: "DELETED", + INACTIVE: "INACTIVE", +} as const; +/** + * @public + */ +export type VirtualGatewayStatusCode = (typeof VirtualGatewayStatusCode)[keyof typeof VirtualGatewayStatusCode]; + +/** + * @public + * @enum + */ +export const DefaultGatewayRouteRewrite = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +} as const; +/** + * @public + */ +export type DefaultGatewayRouteRewrite = (typeof DefaultGatewayRouteRewrite)[keyof typeof DefaultGatewayRouteRewrite]; + +/** + * @public + * @enum + */ +export const HttpMethod = { + CONNECT: "CONNECT", + DELETE: "DELETE", + GET: "GET", + HEAD: "HEAD", + OPTIONS: "OPTIONS", + PATCH: "PATCH", + POST: "POST", + PUT: "PUT", + TRACE: "TRACE", +} as const; +/** + * @public + */ +export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod]; + +/** + * @public + * @enum + */ +export const GatewayRouteStatusCode = { + ACTIVE: "ACTIVE", + DELETED: "DELETED", + INACTIVE: "INACTIVE", +} as const; +/** + * @public + */ +export type GatewayRouteStatusCode = (typeof GatewayRouteStatusCode)[keyof typeof GatewayRouteStatusCode]; + +/** + * @public + * @enum + */ +export const PortProtocol = { + GRPC: "grpc", + HTTP: "http", + HTTP2: "http2", + TCP: "tcp", +} as const; +/** + * @public + */ +export type PortProtocol = (typeof PortProtocol)[keyof typeof PortProtocol]; + +/** + * @public + * @enum + */ +export const DurationUnit = { + MS: "ms", + S: "s", +} as const; +/** + * @public + */ +export type DurationUnit = (typeof DurationUnit)[keyof typeof DurationUnit]; + +/** + * @public + * @enum + */ +export const ListenerTlsMode = { + DISABLED: "DISABLED", + PERMISSIVE: "PERMISSIVE", + STRICT: "STRICT", +} as const; +/** + * @public + */ +export type ListenerTlsMode = (typeof ListenerTlsMode)[keyof typeof ListenerTlsMode]; + +/** + * @public + * @enum + */ +export const DnsResponseType = { + ENDPOINTS: "ENDPOINTS", + LOADBALANCER: "LOADBALANCER", +} as const; +/** + * @public + */ +export type DnsResponseType = (typeof DnsResponseType)[keyof typeof DnsResponseType]; + +/** + * @public + * @enum + */ +export const VirtualNodeStatusCode = { + ACTIVE: "ACTIVE", + DELETED: "DELETED", + INACTIVE: "INACTIVE", +} as const; +/** + * @public + */ +export type VirtualNodeStatusCode = (typeof VirtualNodeStatusCode)[keyof typeof VirtualNodeStatusCode]; + +/** + * @public + * @enum + */ +export const VirtualRouterStatusCode = { + ACTIVE: "ACTIVE", + DELETED: "DELETED", + INACTIVE: "INACTIVE", +} as const; +/** + * @public + */ +export type VirtualRouterStatusCode = (typeof VirtualRouterStatusCode)[keyof typeof VirtualRouterStatusCode]; + +/** + * @public + * @enum + */ +export const GrpcRetryPolicyEvent = { + CANCELLED: "cancelled", + DEADLINE_EXCEEDED: "deadline-exceeded", + INTERNAL: "internal", + RESOURCE_EXHAUSTED: "resource-exhausted", + UNAVAILABLE: "unavailable", +} as const; +/** + * @public + */ +export type GrpcRetryPolicyEvent = (typeof GrpcRetryPolicyEvent)[keyof typeof GrpcRetryPolicyEvent]; + +/** + * @public + * @enum + */ +export const TcpRetryPolicyEvent = { + CONNECTION_ERROR: "connection-error", +} as const; +/** + * @public + */ +export type TcpRetryPolicyEvent = (typeof TcpRetryPolicyEvent)[keyof typeof TcpRetryPolicyEvent]; + +/** + * @public + * @enum + */ +export const HttpScheme = { + HTTP: "http", + HTTPS: "https", +} as const; +/** + * @public + */ +export type HttpScheme = (typeof HttpScheme)[keyof typeof HttpScheme]; + +/** + * @public + * @enum + */ +export const RouteStatusCode = { + ACTIVE: "ACTIVE", + DELETED: "DELETED", + INACTIVE: "INACTIVE", +} as const; +/** + * @public + */ +export type RouteStatusCode = (typeof RouteStatusCode)[keyof typeof RouteStatusCode]; + +/** + * @public + * @enum + */ +export const VirtualServiceStatusCode = { + ACTIVE: "ACTIVE", + DELETED: "DELETED", + INACTIVE: "INACTIVE", +} as const; +/** + * @public + */ +export type VirtualServiceStatusCode = (typeof VirtualServiceStatusCode)[keyof typeof VirtualServiceStatusCode]; diff --git a/clients/client-app-mesh/src/models/models_0.ts b/clients/client-app-mesh/src/models/models_0.ts index d2189cc3d1ea..9dbd27ca2599 100644 --- a/clients/client-app-mesh/src/models/models_0.ts +++ b/clients/client-app-mesh/src/models/models_0.ts @@ -1,4 +1,27 @@ // smithy-typescript generated code +import { + DefaultGatewayRouteRewrite, + DnsResponseType, + DurationUnit, + EgressFilterType, + GatewayRouteStatusCode, + GrpcRetryPolicyEvent, + HttpMethod, + HttpScheme, + IpPreference, + ListenerTlsMode, + MeshStatusCode, + PortProtocol, + RouteStatusCode, + TcpRetryPolicyEvent, + VirtualGatewayListenerTlsMode, + VirtualGatewayPortProtocol, + VirtualGatewayStatusCode, + VirtualNodeStatusCode, + VirtualRouterStatusCode, + VirtualServiceStatusCode, +} from "./enums"; + /** *

An object that represents the key value pairs for the JSON.

* @public @@ -209,20 +232,6 @@ export interface ListTagsForResourceOutput { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const EgressFilterType = { - ALLOW_ALL: "ALLOW_ALL", - DROP_ALL: "DROP_ALL", -} as const; - -/** - * @public - */ -export type EgressFilterType = (typeof EgressFilterType)[keyof typeof EgressFilterType]; - /** *

An object that represents the egress filter rules for a service mesh.

* @public @@ -239,22 +248,6 @@ export interface EgressFilter { type: EgressFilterType | undefined; } -/** - * @public - * @enum - */ -export const IpPreference = { - IPv4_ONLY: "IPv4_ONLY", - IPv4_PREFERRED: "IPv4_PREFERRED", - IPv6_ONLY: "IPv6_ONLY", - IPv6_PREFERRED: "IPv6_PREFERRED", -} as const; - -/** - * @public - */ -export type IpPreference = (typeof IpPreference)[keyof typeof IpPreference]; - /** *

An object that represents the service discovery information for a service mesh.

* @public @@ -369,21 +362,6 @@ export interface ResourceMetadata { resourceOwner: string | undefined; } -/** - * @public - * @enum - */ -export const MeshStatusCode = { - ACTIVE: "ACTIVE", - DELETED: "DELETED", - INACTIVE: "INACTIVE", -} as const; - -/** - * @public - */ -export type MeshStatusCode = (typeof MeshStatusCode)[keyof typeof MeshStatusCode]; - /** *

An object that represents the status of a service mesh.

* @public @@ -1061,21 +1039,6 @@ export namespace VirtualGatewayConnectionPool { } } -/** - * @public - * @enum - */ -export const VirtualGatewayPortProtocol = { - GRPC: "grpc", - HTTP: "http", - HTTP2: "http2", -} as const; - -/** - * @public - */ -export type VirtualGatewayPortProtocol = (typeof VirtualGatewayPortProtocol)[keyof typeof VirtualGatewayPortProtocol]; - /** *

An object that represents the health check policy for a virtual gateway's * listener.

@@ -1232,22 +1195,6 @@ export namespace VirtualGatewayListenerTlsCertificate { } } -/** - * @public - * @enum - */ -export const VirtualGatewayListenerTlsMode = { - DISABLED: "DISABLED", - PERMISSIVE: "PERMISSIVE", - STRICT: "STRICT", -} as const; - -/** - * @public - */ -export type VirtualGatewayListenerTlsMode = - (typeof VirtualGatewayListenerTlsMode)[keyof typeof VirtualGatewayListenerTlsMode]; - /** *

An object that represents a virtual gateway's listener's Transport Layer Security (TLS) validation context * trust.

@@ -1540,21 +1487,6 @@ export interface CreateVirtualGatewayInput { meshOwner?: string | undefined; } -/** - * @public - * @enum - */ -export const VirtualGatewayStatusCode = { - ACTIVE: "ACTIVE", - DELETED: "DELETED", - INACTIVE: "INACTIVE", -} as const; - -/** - * @public - */ -export type VirtualGatewayStatusCode = (typeof VirtualGatewayStatusCode)[keyof typeof VirtualGatewayStatusCode]; - /** *

An object that represents the status of the mesh resource.

* @public @@ -1684,20 +1616,6 @@ export interface DescribeVirtualGatewayOutput { virtualGateway: VirtualGatewayData | undefined; } -/** - * @public - * @enum - */ -export const DefaultGatewayRouteRewrite = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type DefaultGatewayRouteRewrite = (typeof DefaultGatewayRouteRewrite)[keyof typeof DefaultGatewayRouteRewrite]; - /** *

An object representing the gateway route host name to rewrite.

* @public @@ -2192,27 +2110,6 @@ export interface HttpGatewayRouteHeader { match?: HeaderMatchMethod | undefined; } -/** - * @public - * @enum - */ -export const HttpMethod = { - CONNECT: "CONNECT", - DELETE: "DELETE", - GET: "GET", - HEAD: "HEAD", - OPTIONS: "OPTIONS", - PATCH: "PATCH", - POST: "POST", - PUT: "PUT", - TRACE: "TRACE", -} as const; - -/** - * @public - */ -export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod]; - /** *

An object representing the path to match in the request.

* @public @@ -2418,21 +2315,6 @@ export interface CreateGatewayRouteInput { meshOwner?: string | undefined; } -/** - * @public - * @enum - */ -export const GatewayRouteStatusCode = { - ACTIVE: "ACTIVE", - DELETED: "DELETED", - INACTIVE: "INACTIVE", -} as const; - -/** - * @public - */ -export type GatewayRouteStatusCode = (typeof GatewayRouteStatusCode)[keyof typeof GatewayRouteStatusCode]; - /** *

An object that represents the current status of a gateway route.

* @public @@ -3420,22 +3302,6 @@ export namespace VirtualNodeConnectionPool { } } -/** - * @public - * @enum - */ -export const PortProtocol = { - GRPC: "grpc", - HTTP: "http", - HTTP2: "http2", - TCP: "tcp", -} as const; - -/** - * @public - */ -export type PortProtocol = (typeof PortProtocol)[keyof typeof PortProtocol]; - /** *

An object that represents the health check policy for a virtual node's listener.

* @public @@ -3491,20 +3357,6 @@ export interface HealthCheckPolicy { unhealthyThreshold: number | undefined; } -/** - * @public - * @enum - */ -export const DurationUnit = { - MS: "ms", - S: "s", -} as const; - -/** - * @public - */ -export type DurationUnit = (typeof DurationUnit)[keyof typeof DurationUnit]; - /** *

An object that represents a duration of time.

* @public @@ -3793,21 +3645,6 @@ export namespace ListenerTlsCertificate { } } -/** - * @public - * @enum - */ -export const ListenerTlsMode = { - DISABLED: "DISABLED", - PERMISSIVE: "PERMISSIVE", - STRICT: "STRICT", -} as const; - -/** - * @public - */ -export type ListenerTlsMode = (typeof ListenerTlsMode)[keyof typeof ListenerTlsMode]; - /** *

An object that represents a listener's Transport Layer Security (TLS) validation context trust.

* @public @@ -4039,20 +3876,6 @@ export interface AwsCloudMapServiceDiscovery { ipPreference?: IpPreference | undefined; } -/** - * @public - * @enum - */ -export const DnsResponseType = { - ENDPOINTS: "ENDPOINTS", - LOADBALANCER: "LOADBALANCER", -} as const; - -/** - * @public - */ -export type DnsResponseType = (typeof DnsResponseType)[keyof typeof DnsResponseType]; - /** *

An object that represents the DNS service discovery information for your virtual * node.

@@ -4220,21 +4043,6 @@ export interface CreateVirtualNodeInput { meshOwner?: string | undefined; } -/** - * @public - * @enum - */ -export const VirtualNodeStatusCode = { - ACTIVE: "ACTIVE", - DELETED: "DELETED", - INACTIVE: "INACTIVE", -} as const; - -/** - * @public - */ -export type VirtualNodeStatusCode = (typeof VirtualNodeStatusCode)[keyof typeof VirtualNodeStatusCode]; - /** *

An object that represents the current status of the virtual node.

* @public @@ -4610,21 +4418,6 @@ export interface CreateVirtualRouterInput { meshOwner?: string | undefined; } -/** - * @public - * @enum - */ -export const VirtualRouterStatusCode = { - ACTIVE: "ACTIVE", - DELETED: "DELETED", - INACTIVE: "INACTIVE", -} as const; - -/** - * @public - */ -export type VirtualRouterStatusCode = (typeof VirtualRouterStatusCode)[keyof typeof VirtualRouterStatusCode]; - /** *

An object that represents the status of a virtual router.

* @public @@ -5078,36 +4871,6 @@ export interface GrpcRouteMatch { port?: number | undefined; } -/** - * @public - * @enum - */ -export const GrpcRetryPolicyEvent = { - CANCELLED: "cancelled", - DEADLINE_EXCEEDED: "deadline-exceeded", - INTERNAL: "internal", - RESOURCE_EXHAUSTED: "resource-exhausted", - UNAVAILABLE: "unavailable", -} as const; - -/** - * @public - */ -export type GrpcRetryPolicyEvent = (typeof GrpcRetryPolicyEvent)[keyof typeof GrpcRetryPolicyEvent]; - -/** - * @public - * @enum - */ -export const TcpRetryPolicyEvent = { - CONNECTION_ERROR: "connection-error", -} as const; - -/** - * @public - */ -export type TcpRetryPolicyEvent = (typeof TcpRetryPolicyEvent)[keyof typeof TcpRetryPolicyEvent]; - /** *

An object that represents a retry policy. Specify at least one value for at least one of the types of RetryEvents, a value for maxRetries, and a value for perRetryTimeout. * Both server-error and gateway-error under httpRetryEvents include the Envoy reset policy. For more information on the @@ -5233,20 +4996,6 @@ export interface HttpRouteHeader { match?: HeaderMatchMethod | undefined; } -/** - * @public - * @enum - */ -export const HttpScheme = { - HTTP: "http", - HTTPS: "https", -} as const; - -/** - * @public - */ -export type HttpScheme = (typeof HttpScheme)[keyof typeof HttpScheme]; - /** *

An object that represents the requirements for a route to match HTTP requests for a * virtual router.

@@ -5525,21 +5274,6 @@ export interface CreateRouteInput { meshOwner?: string | undefined; } -/** - * @public - * @enum - */ -export const RouteStatusCode = { - ACTIVE: "ACTIVE", - DELETED: "DELETED", - INACTIVE: "INACTIVE", -} as const; - -/** - * @public - */ -export type RouteStatusCode = (typeof RouteStatusCode)[keyof typeof RouteStatusCode]; - /** *

An object that represents the current status of a route.

* @public @@ -6066,21 +5800,6 @@ export interface CreateVirtualServiceInput { meshOwner?: string | undefined; } -/** - * @public - * @enum - */ -export const VirtualServiceStatusCode = { - ACTIVE: "ACTIVE", - DELETED: "DELETED", - INACTIVE: "INACTIVE", -} as const; - -/** - * @public - */ -export type VirtualServiceStatusCode = (typeof VirtualServiceStatusCode)[keyof typeof VirtualServiceStatusCode]; - /** *

An object that represents the status of a virtual service.

* @public diff --git a/clients/client-appconfigdata/src/index.ts b/clients/client-appconfigdata/src/index.ts index 60e8a20c6f6d..0bf2a70f663c 100644 --- a/clients/client-appconfigdata/src/index.ts +++ b/clients/client-appconfigdata/src/index.ts @@ -70,6 +70,7 @@ export type { RuntimeExtension } from "./runtimeExtensions"; export type { AppConfigDataExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-appconfigdata/src/models/enums.ts b/clients/client-appconfigdata/src/models/enums.ts new file mode 100644 index 000000000000..b372d5f3019d --- /dev/null +++ b/clients/client-appconfigdata/src/models/enums.ts @@ -0,0 +1,70 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const InvalidParameterProblem = { + /** + * The parameter was corrupted and could not be understood by the service. + */ + CORRUPTED: "Corrupted", + /** + * The parameter was expired and can no longer be used. + */ + EXPIRED: "Expired", + /** + * The client called the service before the time specified in the poll interval. + */ + POLL_INTERVAL_NOT_SATISFIED: "PollIntervalNotSatisfied", +} as const; +/** + * @public + */ +export type InvalidParameterProblem = (typeof InvalidParameterProblem)[keyof typeof InvalidParameterProblem]; + +/** + * @public + * @enum + */ +export const BadRequestReason = { + /** + * Indicates there was a problem with one or more of the parameters. + * See InvalidParameters in the BadRequestDetails for more information. + */ + INVALID_PARAMETERS: "InvalidParameters", +} as const; +/** + * @public + */ +export type BadRequestReason = (typeof BadRequestReason)[keyof typeof BadRequestReason]; + +/** + * @public + * @enum + */ +export const ResourceType = { + /** + * Resource type value for the Application resource. + */ + APPLICATION: "Application", + /** + * Resource type value for the Configuration resource. + */ + CONFIGURATION: "Configuration", + /** + * Resource type value for the ConfigurationProfile resource. + */ + CONFIGURATION_PROFILE: "ConfigurationProfile", + /** + * Resource type value for the Deployment resource. + */ + DEPLOYMENT: "Deployment", + /** + * Resource type value for the Environment resource. + */ + ENVIRONMENT: "Environment", +} as const; +/** + * @public + */ +export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; diff --git a/clients/client-appconfigdata/src/models/errors.ts b/clients/client-appconfigdata/src/models/errors.ts index 2e160a3ced1c..fc7cbbae8c44 100644 --- a/clients/client-appconfigdata/src/models/errors.ts +++ b/clients/client-appconfigdata/src/models/errors.ts @@ -2,7 +2,8 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { AppConfigDataServiceException as __BaseException } from "./AppConfigDataServiceException"; -import { BadRequestDetails, BadRequestReason, ResourceType } from "./models_0"; +import { BadRequestReason, ResourceType } from "./enums"; +import { BadRequestDetails } from "./models_0"; /** *

The input fails to satisfy the constraints specified by the service.

diff --git a/clients/client-appconfigdata/src/models/models_0.ts b/clients/client-appconfigdata/src/models/models_0.ts index 0c5a4512c014..3fc2d8e10419 100644 --- a/clients/client-appconfigdata/src/models/models_0.ts +++ b/clients/client-appconfigdata/src/models/models_0.ts @@ -1,27 +1,5 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const InvalidParameterProblem = { - /** - * The parameter was corrupted and could not be understood by the service. - */ - CORRUPTED: "Corrupted", - /** - * The parameter was expired and can no longer be used. - */ - EXPIRED: "Expired", - /** - * The client called the service before the time specified in the poll interval. - */ - POLL_INTERVAL_NOT_SATISFIED: "PollIntervalNotSatisfied", -} as const; - -/** - * @public - */ -export type InvalidParameterProblem = (typeof InvalidParameterProblem)[keyof typeof InvalidParameterProblem]; +import { InvalidParameterProblem } from "./enums"; /** *

Information about an invalid parameter.

@@ -73,55 +51,6 @@ export namespace BadRequestDetails { } } -/** - * @public - * @enum - */ -export const BadRequestReason = { - /** - * Indicates there was a problem with one or more of the parameters. - * See InvalidParameters in the BadRequestDetails for more information. - */ - INVALID_PARAMETERS: "InvalidParameters", -} as const; - -/** - * @public - */ -export type BadRequestReason = (typeof BadRequestReason)[keyof typeof BadRequestReason]; - -/** - * @public - * @enum - */ -export const ResourceType = { - /** - * Resource type value for the Application resource. - */ - APPLICATION: "Application", - /** - * Resource type value for the Configuration resource. - */ - CONFIGURATION: "Configuration", - /** - * Resource type value for the ConfigurationProfile resource. - */ - CONFIGURATION_PROFILE: "ConfigurationProfile", - /** - * Resource type value for the Deployment resource. - */ - DEPLOYMENT: "Deployment", - /** - * Resource type value for the Environment resource. - */ - ENVIRONMENT: "Environment", -} as const; - -/** - * @public - */ -export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; - /** * @public */ diff --git a/clients/client-artifact/src/models/enums.ts b/clients/client-artifact/src/models/enums.ts index 9aded905e3db..b1efad7d9a75 100644 --- a/clients/client-artifact/src/models/enums.ts +++ b/clients/client-artifact/src/models/enums.ts @@ -34,6 +34,22 @@ export const NotificationSubscriptionStatus = { export type NotificationSubscriptionStatus = (typeof NotificationSubscriptionStatus)[keyof typeof NotificationSubscriptionStatus]; +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + CANNOT_PARSE: "cannotParse", + FIELD_VALIDATION_FAILED: "fieldValidationFailed", + INVALID_TOKEN: "invalidToken", + OTHER: "other", + UNKNOWN_OPERATION: "unknownOperation", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + /** * @public * @enum diff --git a/clients/client-artifact/src/models/errors.ts b/clients/client-artifact/src/models/errors.ts index ac7f509aaf6c..27f04a36115b 100644 --- a/clients/client-artifact/src/models/errors.ts +++ b/clients/client-artifact/src/models/errors.ts @@ -2,7 +2,8 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { ArtifactServiceException as __BaseException } from "./ArtifactServiceException"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionReason } from "./enums"; +import { ValidationExceptionField } from "./models_0"; /** *

User does not have sufficient access to perform this action.

diff --git a/clients/client-artifact/src/models/models_0.ts b/clients/client-artifact/src/models/models_0.ts index 97b0f31ee731..a632fd9580d1 100644 --- a/clients/client-artifact/src/models/models_0.ts +++ b/clients/client-artifact/src/models/models_0.ts @@ -54,23 +54,6 @@ export interface ValidationExceptionField { message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - CANNOT_PARSE: "cannotParse", - FIELD_VALIDATION_FAILED: "fieldValidationFailed", - INVALID_TOKEN: "invalidToken", - OTHER: "other", - UNKNOWN_OPERATION: "unknownOperation", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** * @public */ diff --git a/clients/client-backup-gateway/src/index.ts b/clients/client-backup-gateway/src/index.ts index cb0807c9c4e7..5af9dc8cb401 100644 --- a/clients/client-backup-gateway/src/index.ts +++ b/clients/client-backup-gateway/src/index.ts @@ -21,6 +21,7 @@ export type { BackupGatewayExtensionConfiguration } from "./extensionConfigurati export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-backup-gateway/src/models/enums.ts b/clients/client-backup-gateway/src/models/enums.ts new file mode 100644 index 000000000000..7d0ff45fc5b7 --- /dev/null +++ b/clients/client-backup-gateway/src/models/enums.ts @@ -0,0 +1,43 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const GatewayType = { + BACKUP_VM: "BACKUP_VM", +} as const; +/** + * @public + */ +export type GatewayType = (typeof GatewayType)[keyof typeof GatewayType]; + +/** + * @public + * @enum + */ +export const SyncMetadataStatus = { + CREATED: "CREATED", + FAILED: "FAILED", + PARTIALLY_FAILED: "PARTIALLY_FAILED", + RUNNING: "RUNNING", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type SyncMetadataStatus = (typeof SyncMetadataStatus)[keyof typeof SyncMetadataStatus]; + +/** + * @public + * @enum + */ +export const HypervisorState = { + ERROR: "ERROR", + OFFLINE: "OFFLINE", + ONLINE: "ONLINE", + PENDING: "PENDING", +} as const; +/** + * @public + */ +export type HypervisorState = (typeof HypervisorState)[keyof typeof HypervisorState]; diff --git a/clients/client-backup-gateway/src/models/models_0.ts b/clients/client-backup-gateway/src/models/models_0.ts index 4f137f9dd462..42173b9c3fe7 100644 --- a/clients/client-backup-gateway/src/models/models_0.ts +++ b/clients/client-backup-gateway/src/models/models_0.ts @@ -1,4 +1,6 @@ // smithy-typescript generated code +import { GatewayType, HypervisorState, SyncMetadataStatus } from "./enums"; + /** * @public */ @@ -161,19 +163,6 @@ export interface PutBandwidthRateLimitScheduleOutput { GatewayArn?: string | undefined; } -/** - * @public - * @enum - */ -export const GatewayType = { - BACKUP_VM: "BACKUP_VM", -} as const; - -/** - * @public - */ -export type GatewayType = (typeof GatewayType)[keyof typeof GatewayType]; - /** *

A key-value pair you can use to manage, filter, and search for your resources. Allowed * characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : @@ -645,39 +634,6 @@ export interface GetHypervisorInput { HypervisorArn: string | undefined; } -/** - * @public - * @enum - */ -export const SyncMetadataStatus = { - CREATED: "CREATED", - FAILED: "FAILED", - PARTIALLY_FAILED: "PARTIALLY_FAILED", - RUNNING: "RUNNING", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type SyncMetadataStatus = (typeof SyncMetadataStatus)[keyof typeof SyncMetadataStatus]; - -/** - * @public - * @enum - */ -export const HypervisorState = { - ERROR: "ERROR", - OFFLINE: "OFFLINE", - ONLINE: "ONLINE", - PENDING: "PENDING", -} as const; - -/** - * @public - */ -export type HypervisorState = (typeof HypervisorState)[keyof typeof HypervisorState]; - /** *

These are the details of the specified hypervisor. A hypervisor is hardware, * software, or firmware that creates and manages virtual machines, and allocates diff --git a/clients/client-bedrock/src/commands/ListInferenceProfilesCommand.ts b/clients/client-bedrock/src/commands/ListInferenceProfilesCommand.ts index 62d3b7579ce5..cc17a32a9cdd 100644 --- a/clients/client-bedrock/src/commands/ListInferenceProfilesCommand.ts +++ b/clients/client-bedrock/src/commands/ListInferenceProfilesCommand.ts @@ -5,8 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient"; import { commonParams } from "../endpoint/EndpointParameters"; -import { ListInferenceProfilesRequest } from "../models/models_0"; -import { ListInferenceProfilesResponse } from "../models/models_1"; +import { ListInferenceProfilesRequest, ListInferenceProfilesResponse } from "../models/models_0"; import { ListInferenceProfiles } from "../schemas/schemas_0"; /** diff --git a/clients/client-bedrock/src/models/enums.ts b/clients/client-bedrock/src/models/enums.ts index be3a6dfdbd95..0b7b7f459e04 100644 --- a/clients/client-bedrock/src/models/enums.ts +++ b/clients/client-bedrock/src/models/enums.ts @@ -12,6 +12,21 @@ export const InputTags = { */ export type InputTags = (typeof InputTags)[keyof typeof InputTags]; +/** + * @public + * @enum + */ +export const ConfigurationOwner = { + /** + * Configuration owned by the account + */ + ACCOUNT: "ACCOUNT", +} as const; +/** + * @public + */ +export type ConfigurationOwner = (typeof ConfigurationOwner)[keyof typeof ConfigurationOwner]; + /** * @public * @enum diff --git a/clients/client-bedrock/src/models/models_0.ts b/clients/client-bedrock/src/models/models_0.ts index 17890bb78e91..7bc26d41f128 100644 --- a/clients/client-bedrock/src/models/models_0.ts +++ b/clients/client-bedrock/src/models/models_0.ts @@ -15,6 +15,7 @@ import { AutomatedReasoningPolicyBuildWorkflowType, AutomatedReasoningPolicyTestRunResult, AutomatedReasoningPolicyTestRunStatus, + ConfigurationOwner, CustomizationType, CustomModelDeploymentStatus, EvaluationJobStatus, @@ -74,22 +75,6 @@ export interface AccountEnforcedGuardrailInferenceInputConfiguration { inputTags: InputTags | undefined; } -/** - * @public - * @enum - */ -export const ConfigurationOwner = { - /** - * Configuration owned by the account - */ - ACCOUNT: "ACCOUNT", -} as const; - -/** - * @public - */ -export type ConfigurationOwner = (typeof ConfigurationOwner)[keyof typeof ConfigurationOwner]; - /** *

Account enforced guardrail output configuration.

* @public @@ -8192,3 +8177,20 @@ export interface InferenceProfileSummary { */ type: InferenceProfileType | undefined; } + +/** + * @public + */ +export interface ListInferenceProfilesResponse { + /** + *

A list of information about each inference profile that you can use.

+ * @public + */ + inferenceProfileSummaries?: InferenceProfileSummary[] | undefined; + + /** + *

If the total number of results is greater than the maxResults value provided in the request, use this token when making another request in the nextToken field to return the next batch of results.

+ * @public + */ + nextToken?: string | undefined; +} diff --git a/clients/client-bedrock/src/models/models_1.ts b/clients/client-bedrock/src/models/models_1.ts index 4775327d9524..a84ad468ddd5 100644 --- a/clients/client-bedrock/src/models/models_1.ts +++ b/clients/client-bedrock/src/models/models_1.ts @@ -42,7 +42,6 @@ import { FilterAttribute, GenerationConfiguration, ImplicitFilterConfiguration, - InferenceProfileSummary, ModelDataSource, OrchestrationConfiguration, OutputDataConfig, @@ -55,23 +54,6 @@ import { VpcConfig, } from "./models_0"; -/** - * @public - */ -export interface ListInferenceProfilesResponse { - /** - *

A list of information about each inference profile that you can use.

- * @public - */ - inferenceProfileSummaries?: InferenceProfileSummary[] | undefined; - - /** - *

If the total number of results is greater than the maxResults value provided in the request, use this token when making another request in the nextToken field to return the next batch of results.

- * @public - */ - nextToken?: string | undefined; -} - /** * @public */ diff --git a/clients/client-braket/src/index.ts b/clients/client-braket/src/index.ts index 4f22ada1f6db..cadc1cfefdf3 100644 --- a/clients/client-braket/src/index.ts +++ b/clients/client-braket/src/index.ts @@ -13,6 +13,7 @@ export type { BraketExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-braket/src/models/enums.ts b/clients/client-braket/src/models/enums.ts new file mode 100644 index 000000000000..5dd3b8e5b737 --- /dev/null +++ b/clients/client-braket/src/models/enums.ts @@ -0,0 +1,299 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const CompressionType = { + GZIP: "GZIP", + NONE: "NONE", +} as const; +/** + * @public + */ +export type CompressionType = (typeof CompressionType)[keyof typeof CompressionType]; + +/** + * @public + * @enum + */ +export const AssociationType = { + RESERVATION_TIME_WINDOW_ARN: "RESERVATION_TIME_WINDOW_ARN", +} as const; +/** + * @public + */ +export type AssociationType = (typeof AssociationType)[keyof typeof AssociationType]; + +/** + * @public + * @enum + */ +export const QueueName = { + JOBS_QUEUE: "JOBS_QUEUE", + QUANTUM_TASKS_QUEUE: "QUANTUM_TASKS_QUEUE", +} as const; +/** + * @public + */ +export type QueueName = (typeof QueueName)[keyof typeof QueueName]; + +/** + * @public + * @enum + */ +export const QueuePriority = { + NORMAL: "Normal", + PRIORITY: "Priority", +} as const; +/** + * @public + */ +export type QueuePriority = (typeof QueuePriority)[keyof typeof QueuePriority]; + +/** + * @public + * @enum + */ +export const DeviceStatus = { + OFFLINE: "OFFLINE", + ONLINE: "ONLINE", + RETIRED: "RETIRED", +} as const; +/** + * @public + */ +export type DeviceStatus = (typeof DeviceStatus)[keyof typeof DeviceStatus]; + +/** + * @public + * @enum + */ +export const DeviceType = { + QPU: "QPU", + SIMULATOR: "SIMULATOR", +} as const; +/** + * @public + */ +export type DeviceType = (typeof DeviceType)[keyof typeof DeviceType]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + PROGRAM_SET_VALIDATION_FAILED: "ProgramSetValidationFailed", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const CancellationStatus = { + CANCELLED: "CANCELLED", + CANCELLING: "CANCELLING", +} as const; +/** + * @public + */ +export type CancellationStatus = (typeof CancellationStatus)[keyof typeof CancellationStatus]; + +/** + * @public + * @enum + */ +export const _InstanceType = { + ML_C4_2XLARGE: "ml.c4.2xlarge", + ML_C4_4XLARGE: "ml.c4.4xlarge", + ML_C4_8XLARGE: "ml.c4.8xlarge", + ML_C4_XLARGE: "ml.c4.xlarge", + ML_C5N_18XLARGE: "ml.c5n.18xlarge", + ML_C5N_2XLARGE: "ml.c5n.2xlarge", + ML_C5N_4XLARGE: "ml.c5n.4xlarge", + ML_C5N_9XLARGE: "ml.c5n.9xlarge", + ML_C5N_XLARGE: "ml.c5n.xlarge", + ML_C5_18XLARGE: "ml.c5.18xlarge", + ML_C5_2XLARGE: "ml.c5.2xlarge", + ML_C5_4XLARGE: "ml.c5.4xlarge", + ML_C5_9XLARGE: "ml.c5.9xlarge", + ML_C5_XLARGE: "ml.c5.xlarge", + ML_G4DN_12XLARGE: "ml.g4dn.12xlarge", + ML_G4DN_16XLARGE: "ml.g4dn.16xlarge", + ML_G4DN_2XLARGE: "ml.g4dn.2xlarge", + ML_G4DN_4XLARGE: "ml.g4dn.4xlarge", + ML_G4DN_8XLARGE: "ml.g4dn.8xlarge", + ML_G4DN_XLARGE: "ml.g4dn.xlarge", + ML_M4_10XLARGE: "ml.m4.10xlarge", + ML_M4_16XLARGE: "ml.m4.16xlarge", + ML_M4_2XLARGE: "ml.m4.2xlarge", + ML_M4_4XLARGE: "ml.m4.4xlarge", + ML_M4_XLARGE: "ml.m4.xlarge", + ML_M5_12XLARGE: "ml.m5.12xlarge", + ML_M5_24XLARGE: "ml.m5.24xlarge", + ML_M5_2XLARGE: "ml.m5.2xlarge", + ML_M5_4XLARGE: "ml.m5.4xlarge", + ML_M5_LARGE: "ml.m5.large", + ML_M5_XLARGE: "ml.m5.xlarge", + ML_P2_16XLARGE: "ml.p2.16xlarge", + ML_P2_8XLARGE: "ml.p2.8xlarge", + ML_P2_XLARGE: "ml.p2.xlarge", + ML_P3DN_24XLARGE: "ml.p3dn.24xlarge", + ML_P3_16XLARGE: "ml.p3.16xlarge", + ML_P3_2XLARGE: "ml.p3.2xlarge", + ML_P3_8XLARGE: "ml.p3.8xlarge", + ML_P4D_24XLARGE: "ml.p4d.24xlarge", +} as const; +/** + * @public + */ +export type _InstanceType = (typeof _InstanceType)[keyof typeof _InstanceType]; + +/** + * @public + * @enum + */ +export const HybridJobAdditionalAttributeName = { + QUEUE_INFO: "QueueInfo", +} as const; +/** + * @public + */ +export type HybridJobAdditionalAttributeName = + (typeof HybridJobAdditionalAttributeName)[keyof typeof HybridJobAdditionalAttributeName]; + +/** + * @public + * @enum + */ +export const JobEventType = { + CANCELLED: "CANCELLED", + COMPLETED: "COMPLETED", + DEPRIORITIZED_DUE_TO_INACTIVITY: "DEPRIORITIZED_DUE_TO_INACTIVITY", + DOWNLOADING_DATA: "DOWNLOADING_DATA", + FAILED: "FAILED", + MAX_RUNTIME_EXCEEDED: "MAX_RUNTIME_EXCEEDED", + QUEUED_FOR_EXECUTION: "QUEUED_FOR_EXECUTION", + RUNNING: "RUNNING", + STARTING_INSTANCE: "STARTING_INSTANCE", + UPLOADING_RESULTS: "UPLOADING_RESULTS", + WAITING_FOR_PRIORITY: "WAITING_FOR_PRIORITY", +} as const; +/** + * @public + */ +export type JobEventType = (typeof JobEventType)[keyof typeof JobEventType]; + +/** + * @public + * @enum + */ +export const JobPrimaryStatus = { + CANCELLED: "CANCELLED", + CANCELLING: "CANCELLING", + COMPLETED: "COMPLETED", + FAILED: "FAILED", + QUEUED: "QUEUED", + RUNNING: "RUNNING", +} as const; +/** + * @public + */ +export type JobPrimaryStatus = (typeof JobPrimaryStatus)[keyof typeof JobPrimaryStatus]; + +/** + * @public + * @enum + */ +export const SearchJobsFilterOperator = { + BETWEEN: "BETWEEN", + CONTAINS: "CONTAINS", + EQUAL: "EQUAL", + GT: "GT", + GTE: "GTE", + LT: "LT", + LTE: "LTE", +} as const; +/** + * @public + */ +export type SearchJobsFilterOperator = (typeof SearchJobsFilterOperator)[keyof typeof SearchJobsFilterOperator]; + +/** + * @public + * @enum + */ +export const ExperimentalCapabilitiesEnablementType = { + ALL: "ALL", + NONE: "NONE", +} as const; +/** + * @public + */ +export type ExperimentalCapabilitiesEnablementType = + (typeof ExperimentalCapabilitiesEnablementType)[keyof typeof ExperimentalCapabilitiesEnablementType]; + +/** + * @public + * @enum + */ +export const QuantumTaskAdditionalAttributeName = { + QUEUE_INFO: "QueueInfo", +} as const; +/** + * @public + */ +export type QuantumTaskAdditionalAttributeName = + (typeof QuantumTaskAdditionalAttributeName)[keyof typeof QuantumTaskAdditionalAttributeName]; + +/** + * @public + * @enum + */ +export const QuantumTaskStatus = { + CANCELLED: "CANCELLED", + CANCELLING: "CANCELLING", + COMPLETED: "COMPLETED", + CREATED: "CREATED", + FAILED: "FAILED", + QUEUED: "QUEUED", + RUNNING: "RUNNING", +} as const; +/** + * @public + */ +export type QuantumTaskStatus = (typeof QuantumTaskStatus)[keyof typeof QuantumTaskStatus]; + +/** + * @public + * @enum + */ +export const SearchQuantumTasksFilterOperator = { + BETWEEN: "BETWEEN", + EQUAL: "EQUAL", + GT: "GT", + GTE: "GTE", + LT: "LT", + LTE: "LTE", +} as const; +/** + * @public + */ +export type SearchQuantumTasksFilterOperator = + (typeof SearchQuantumTasksFilterOperator)[keyof typeof SearchQuantumTasksFilterOperator]; + +/** + * @public + * @enum + */ +export const SearchSpendingLimitsFilterOperator = { + EQUAL: "EQUAL", +} as const; +/** + * @public + */ +export type SearchSpendingLimitsFilterOperator = + (typeof SearchSpendingLimitsFilterOperator)[keyof typeof SearchSpendingLimitsFilterOperator]; diff --git a/clients/client-braket/src/models/errors.ts b/clients/client-braket/src/models/errors.ts index a2c379893fc0..fb3f518d2cbf 100644 --- a/clients/client-braket/src/models/errors.ts +++ b/clients/client-braket/src/models/errors.ts @@ -2,7 +2,8 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { BraketServiceException as __BaseException } from "./BraketServiceException"; -import { ProgramSetValidationFailure, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionReason } from "./enums"; +import { ProgramSetValidationFailure } from "./models_0"; /** *

You do not have sufficient permissions to perform this action.

diff --git a/clients/client-braket/src/models/models_0.ts b/clients/client-braket/src/models/models_0.ts index c333ee00466d..3c394f90b3c3 100644 --- a/clients/client-braket/src/models/models_0.ts +++ b/clients/client-braket/src/models/models_0.ts @@ -1,6 +1,26 @@ // smithy-typescript generated code import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/smithy-client"; +import { + _InstanceType, + AssociationType, + CancellationStatus, + CompressionType, + DeviceStatus, + DeviceType, + ExperimentalCapabilitiesEnablementType, + HybridJobAdditionalAttributeName, + JobEventType, + JobPrimaryStatus, + QuantumTaskAdditionalAttributeName, + QuantumTaskStatus, + QueueName, + QueuePriority, + SearchJobsFilterOperator, + SearchQuantumTasksFilterOperator, + SearchSpendingLimitsFilterOperator, +} from "./enums"; + /** *

Contains metadata about the quantum task action, including the action type and program statistics.

* @public @@ -37,20 +57,6 @@ export interface ContainerImage { uri: string | undefined; } -/** - * @public - * @enum - */ -export const CompressionType = { - GZIP: "GZIP", - NONE: "NONE", -} as const; - -/** - * @public - */ -export type CompressionType = (typeof CompressionType)[keyof typeof CompressionType]; - /** *

Contains information about algorithm scripts used for the Amazon Braket hybrid job.

* @public @@ -93,19 +99,6 @@ export interface AlgorithmSpecification { containerImage?: ContainerImage | undefined; } -/** - * @public - * @enum - */ -export const AssociationType = { - RESERVATION_TIME_WINDOW_ARN: "RESERVATION_TIME_WINDOW_ARN", -} as const; - -/** - * @public - */ -export type AssociationType = (typeof AssociationType)[keyof typeof AssociationType]; - /** *

The Amazon Braket resource and the association type.

* @public @@ -135,34 +128,6 @@ export interface GetDeviceRequest { deviceArn: string | undefined; } -/** - * @public - * @enum - */ -export const QueueName = { - JOBS_QUEUE: "JOBS_QUEUE", - QUANTUM_TASKS_QUEUE: "QUANTUM_TASKS_QUEUE", -} as const; - -/** - * @public - */ -export type QueueName = (typeof QueueName)[keyof typeof QueueName]; - -/** - * @public - * @enum - */ -export const QueuePriority = { - NORMAL: "Normal", - PRIORITY: "Priority", -} as const; - -/** - * @public - */ -export type QueuePriority = (typeof QueuePriority)[keyof typeof QueuePriority]; - /** *

Information about quantum tasks and hybrid jobs queued on a device.

* @public @@ -187,35 +152,6 @@ export interface DeviceQueueInfo { queuePriority?: QueuePriority | undefined; } -/** - * @public - * @enum - */ -export const DeviceStatus = { - OFFLINE: "OFFLINE", - ONLINE: "ONLINE", - RETIRED: "RETIRED", -} as const; - -/** - * @public - */ -export type DeviceStatus = (typeof DeviceStatus)[keyof typeof DeviceStatus]; - -/** - * @public - * @enum - */ -export const DeviceType = { - QPU: "QPU", - SIMULATOR: "SIMULATOR", -} as const; - -/** - * @public - */ -export type DeviceType = (typeof DeviceType)[keyof typeof DeviceType]; - /** * @public */ @@ -287,19 +223,6 @@ export interface ProgramSetValidationFailure { errors?: string[] | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - PROGRAM_SET_VALIDATION_FAILED: "ProgramSetValidationFailed", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** *

The filter used to search for devices.

* @public @@ -405,20 +328,6 @@ export interface CancelJobRequest { jobArn: string | undefined; } -/** - * @public - * @enum - */ -export const CancellationStatus = { - CANCELLED: "CANCELLED", - CANCELLING: "CANCELLING", -} as const; - -/** - * @public - */ -export type CancellationStatus = (typeof CancellationStatus)[keyof typeof CancellationStatus]; - /** * @public */ @@ -514,57 +423,6 @@ export interface InputFileConfig { dataSource: DataSource | undefined; } -/** - * @public - * @enum - */ -export const _InstanceType = { - ML_C4_2XLARGE: "ml.c4.2xlarge", - ML_C4_4XLARGE: "ml.c4.4xlarge", - ML_C4_8XLARGE: "ml.c4.8xlarge", - ML_C4_XLARGE: "ml.c4.xlarge", - ML_C5N_18XLARGE: "ml.c5n.18xlarge", - ML_C5N_2XLARGE: "ml.c5n.2xlarge", - ML_C5N_4XLARGE: "ml.c5n.4xlarge", - ML_C5N_9XLARGE: "ml.c5n.9xlarge", - ML_C5N_XLARGE: "ml.c5n.xlarge", - ML_C5_18XLARGE: "ml.c5.18xlarge", - ML_C5_2XLARGE: "ml.c5.2xlarge", - ML_C5_4XLARGE: "ml.c5.4xlarge", - ML_C5_9XLARGE: "ml.c5.9xlarge", - ML_C5_XLARGE: "ml.c5.xlarge", - ML_G4DN_12XLARGE: "ml.g4dn.12xlarge", - ML_G4DN_16XLARGE: "ml.g4dn.16xlarge", - ML_G4DN_2XLARGE: "ml.g4dn.2xlarge", - ML_G4DN_4XLARGE: "ml.g4dn.4xlarge", - ML_G4DN_8XLARGE: "ml.g4dn.8xlarge", - ML_G4DN_XLARGE: "ml.g4dn.xlarge", - ML_M4_10XLARGE: "ml.m4.10xlarge", - ML_M4_16XLARGE: "ml.m4.16xlarge", - ML_M4_2XLARGE: "ml.m4.2xlarge", - ML_M4_4XLARGE: "ml.m4.4xlarge", - ML_M4_XLARGE: "ml.m4.xlarge", - ML_M5_12XLARGE: "ml.m5.12xlarge", - ML_M5_24XLARGE: "ml.m5.24xlarge", - ML_M5_2XLARGE: "ml.m5.2xlarge", - ML_M5_4XLARGE: "ml.m5.4xlarge", - ML_M5_LARGE: "ml.m5.large", - ML_M5_XLARGE: "ml.m5.xlarge", - ML_P2_16XLARGE: "ml.p2.16xlarge", - ML_P2_8XLARGE: "ml.p2.8xlarge", - ML_P2_XLARGE: "ml.p2.xlarge", - ML_P3DN_24XLARGE: "ml.p3dn.24xlarge", - ML_P3_16XLARGE: "ml.p3.16xlarge", - ML_P3_2XLARGE: "ml.p3.2xlarge", - ML_P3_8XLARGE: "ml.p3.8xlarge", - ML_P4D_24XLARGE: "ml.p4d.24xlarge", -} as const; - -/** - * @public - */ -export type _InstanceType = (typeof _InstanceType)[keyof typeof _InstanceType]; - /** *

Configures the resource instances to use while running the Amazon Braket hybrid job on Amazon Braket.

* @public @@ -713,20 +571,6 @@ export interface CreateJobResponse { jobArn: string | undefined; } -/** - * @public - * @enum - */ -export const HybridJobAdditionalAttributeName = { - QUEUE_INFO: "QueueInfo", -} as const; - -/** - * @public - */ -export type HybridJobAdditionalAttributeName = - (typeof HybridJobAdditionalAttributeName)[keyof typeof HybridJobAdditionalAttributeName]; - /** * @public */ @@ -744,29 +588,6 @@ export interface GetJobRequest { additionalAttributeNames?: HybridJobAdditionalAttributeName[] | undefined; } -/** - * @public - * @enum - */ -export const JobEventType = { - CANCELLED: "CANCELLED", - COMPLETED: "COMPLETED", - DEPRIORITIZED_DUE_TO_INACTIVITY: "DEPRIORITIZED_DUE_TO_INACTIVITY", - DOWNLOADING_DATA: "DOWNLOADING_DATA", - FAILED: "FAILED", - MAX_RUNTIME_EXCEEDED: "MAX_RUNTIME_EXCEEDED", - QUEUED_FOR_EXECUTION: "QUEUED_FOR_EXECUTION", - RUNNING: "RUNNING", - STARTING_INSTANCE: "STARTING_INSTANCE", - UPLOADING_RESULTS: "UPLOADING_RESULTS", - WAITING_FOR_PRIORITY: "WAITING_FOR_PRIORITY", -} as const; - -/** - * @public - */ -export type JobEventType = (typeof JobEventType)[keyof typeof JobEventType]; - /** *

Details about the type and time events that occurred related to the Amazon Braket hybrid job.

* @public @@ -815,24 +636,6 @@ export interface HybridJobQueueInfo { message?: string | undefined; } -/** - * @public - * @enum - */ -export const JobPrimaryStatus = { - CANCELLED: "CANCELLED", - CANCELLING: "CANCELLING", - COMPLETED: "COMPLETED", - FAILED: "FAILED", - QUEUED: "QUEUED", - RUNNING: "RUNNING", -} as const; - -/** - * @public - */ -export type JobPrimaryStatus = (typeof JobPrimaryStatus)[keyof typeof JobPrimaryStatus]; - /** * @public */ @@ -964,25 +767,6 @@ export interface GetJobResponse { associations?: Association[] | undefined; } -/** - * @public - * @enum - */ -export const SearchJobsFilterOperator = { - BETWEEN: "BETWEEN", - CONTAINS: "CONTAINS", - EQUAL: "EQUAL", - GT: "GT", - GTE: "GTE", - LT: "LT", - LTE: "LTE", -} as const; - -/** - * @public - */ -export type SearchJobsFilterOperator = (typeof SearchJobsFilterOperator)[keyof typeof SearchJobsFilterOperator]; - /** *

A filter used to search for Amazon Braket hybrid jobs.

* @public @@ -1157,21 +941,6 @@ export interface CancelQuantumTaskResponse { cancellationStatus: CancellationStatus | undefined; } -/** - * @public - * @enum - */ -export const ExperimentalCapabilitiesEnablementType = { - ALL: "ALL", - NONE: "NONE", -} as const; - -/** - * @public - */ -export type ExperimentalCapabilitiesEnablementType = - (typeof ExperimentalCapabilitiesEnablementType)[keyof typeof ExperimentalCapabilitiesEnablementType]; - /** *

Enabled experimental capabilities for quantum hardware. Note that the use of these features may impact device capabilities and performance beyond its standard specifications.

* @public @@ -1291,20 +1060,6 @@ export interface CreateQuantumTaskResponse { quantumTaskArn: string | undefined; } -/** - * @public - * @enum - */ -export const QuantumTaskAdditionalAttributeName = { - QUEUE_INFO: "QueueInfo", -} as const; - -/** - * @public - */ -export type QuantumTaskAdditionalAttributeName = - (typeof QuantumTaskAdditionalAttributeName)[keyof typeof QuantumTaskAdditionalAttributeName]; - /** * @public */ @@ -1352,25 +1107,6 @@ export interface QuantumTaskQueueInfo { message?: string | undefined; } -/** - * @public - * @enum - */ -export const QuantumTaskStatus = { - CANCELLED: "CANCELLED", - CANCELLING: "CANCELLING", - COMPLETED: "COMPLETED", - CREATED: "CREATED", - FAILED: "FAILED", - QUEUED: "QUEUED", - RUNNING: "RUNNING", -} as const; - -/** - * @public - */ -export type QuantumTaskStatus = (typeof QuantumTaskStatus)[keyof typeof QuantumTaskStatus]; - /** * @public */ @@ -1478,25 +1214,6 @@ export interface GetQuantumTaskResponse { experimentalCapabilities?: ExperimentalCapabilities | undefined; } -/** - * @public - * @enum - */ -export const SearchQuantumTasksFilterOperator = { - BETWEEN: "BETWEEN", - EQUAL: "EQUAL", - GT: "GT", - GTE: "GTE", - LT: "LT", - LTE: "LTE", -} as const; - -/** - * @public - */ -export type SearchQuantumTasksFilterOperator = - (typeof SearchQuantumTasksFilterOperator)[keyof typeof SearchQuantumTasksFilterOperator]; - /** *

A filter used to search for quantum tasks.

* @public @@ -1701,20 +1418,6 @@ export interface DeleteSpendingLimitRequest { */ export interface DeleteSpendingLimitResponse {} -/** - * @public - * @enum - */ -export const SearchSpendingLimitsFilterOperator = { - EQUAL: "EQUAL", -} as const; - -/** - * @public - */ -export type SearchSpendingLimitsFilterOperator = - (typeof SearchSpendingLimitsFilterOperator)[keyof typeof SearchSpendingLimitsFilterOperator]; - /** *

Specifies filter criteria for searching spending limits. Use filters to narrow down results based on specific attributes.

* @public diff --git a/clients/client-cleanrooms/src/models/enums.ts b/clients/client-cleanrooms/src/models/enums.ts index 0982891f6c2c..33256847e31e 100644 --- a/clients/client-cleanrooms/src/models/enums.ts +++ b/clients/client-cleanrooms/src/models/enums.ts @@ -27,6 +27,19 @@ export const AccessBudgetType = { */ export type AccessBudgetType = (typeof AccessBudgetType)[keyof typeof AccessBudgetType]; +/** + * @public + * @enum + */ +export const AccessDeniedExceptionReason = { + INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS", +} as const; +/** + * @public + */ +export type AccessDeniedExceptionReason = + (typeof AccessDeniedExceptionReason)[keyof typeof AccessDeniedExceptionReason]; + /** * @public * @enum @@ -41,6 +54,34 @@ export const AdditionalAnalyses = { */ export type AdditionalAnalyses = (typeof AdditionalAnalyses)[keyof typeof AdditionalAnalyses]; +/** + * @public + * @enum + */ +export const AggregateFunctionName = { + AVG: "AVG", + COUNT: "COUNT", + COUNT_DISTINCT: "COUNT_DISTINCT", + SUM: "SUM", + SUM_DISTINCT: "SUM_DISTINCT", +} as const; +/** + * @public + */ +export type AggregateFunctionName = (typeof AggregateFunctionName)[keyof typeof AggregateFunctionName]; + +/** + * @public + * @enum + */ +export const AggregationType = { + COUNT_DISTINCT: "COUNT_DISTINCT", +} as const; +/** + * @public + */ +export type AggregationType = (typeof AggregationType)[keyof typeof AggregationType]; + /** * @public * @enum @@ -151,6 +192,66 @@ export const ParameterType = { */ export type ParameterType = (typeof ParameterType)[keyof typeof ParameterType]; +/** + * @public + * @enum + */ +export const JoinOperator = { + AND: "AND", + OR: "OR", +} as const; +/** + * @public + */ +export type JoinOperator = (typeof JoinOperator)[keyof typeof JoinOperator]; + +/** + * @public + * @enum + */ +export const JoinRequiredOption = { + QUERY_RUNNER: "QUERY_RUNNER", +} as const; +/** + * @public + */ +export type JoinRequiredOption = (typeof JoinRequiredOption)[keyof typeof JoinRequiredOption]; + +/** + * @public + * @enum + */ +export const ScalarFunctions = { + ABS: "ABS", + CAST: "CAST", + CEILING: "CEILING", + COALESCE: "COALESCE", + CONVERT: "CONVERT", + CURRENT_DATE: "CURRENT_DATE", + DATEADD: "DATEADD", + EXTRACT: "EXTRACT", + FLOOR: "FLOOR", + GETDATE: "GETDATE", + LN: "LN", + LOG: "LOG", + LOWER: "LOWER", + ROUND: "ROUND", + RTRIM: "RTRIM", + SQRT: "SQRT", + SUBSTRING: "SUBSTRING", + TO_CHAR: "TO_CHAR", + TO_DATE: "TO_DATE", + TO_NUMBER: "TO_NUMBER", + TO_TIMESTAMP: "TO_TIMESTAMP", + TRIM: "TRIM", + TRUNC: "TRUNC", + UPPER: "UPPER", +} as const; +/** + * @public + */ +export type ScalarFunctions = (typeof ScalarFunctions)[keyof typeof ScalarFunctions]; + /** * @public * @enum @@ -206,6 +307,50 @@ export const AnalysisTemplateValidationType = { export type AnalysisTemplateValidationType = (typeof AnalysisTemplateValidationType)[keyof typeof AnalysisTemplateValidationType]; +/** + * @public + * @enum + */ +export const ConflictExceptionReason = { + ALREADY_EXISTS: "ALREADY_EXISTS", + INVALID_STATE: "INVALID_STATE", + SUBRESOURCES_EXIST: "SUBRESOURCES_EXIST", +} as const; +/** + * @public + */ +export type ConflictExceptionReason = (typeof ConflictExceptionReason)[keyof typeof ConflictExceptionReason]; + +/** + * @public + * @enum + */ +export const ResourceType = { + COLLABORATION: "COLLABORATION", + CONFIGURED_TABLE: "CONFIGURED_TABLE", + CONFIGURED_TABLE_ASSOCIATION: "CONFIGURED_TABLE_ASSOCIATION", + MEMBERSHIP: "MEMBERSHIP", +} as const; +/** + * @public + */ +export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", + IAM_SYNCHRONIZATION_DELAY: "IAM_SYNCHRONIZATION_DELAY", + INVALID_CONFIGURATION: "INVALID_CONFIGURATION", + INVALID_QUERY: "INVALID_QUERY", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + /** * @public * @enum @@ -428,6 +573,21 @@ export const CollaborationQueryLogStatus = { export type CollaborationQueryLogStatus = (typeof CollaborationQueryLogStatus)[keyof typeof CollaborationQueryLogStatus]; +/** + * @public + * @enum + */ +export const MemberStatus = { + ACTIVE: "ACTIVE", + INVITED: "INVITED", + LEFT: "LEFT", + REMOVED: "REMOVED", +} as const; +/** + * @public + */ +export type MemberStatus = (typeof MemberStatus)[keyof typeof MemberStatus]; + /** * @public * @enum @@ -512,6 +672,19 @@ export const DifferentialPrivacyAggregationType = { export type DifferentialPrivacyAggregationType = (typeof DifferentialPrivacyAggregationType)[keyof typeof DifferentialPrivacyAggregationType]; +/** + * @public + * @enum + */ +export const FilterableMemberStatus = { + ACTIVE: "ACTIVE", + INVITED: "INVITED", +} as const; +/** + * @public + */ +export type FilterableMemberStatus = (typeof FilterableMemberStatus)[keyof typeof FilterableMemberStatus]; + /** * @public * @enum @@ -556,6 +729,19 @@ export const JobType = { */ export type JobType = (typeof JobType)[keyof typeof JobType]; +/** + * @public + * @enum + */ +export const ResultFormat = { + CSV: "CSV", + PARQUET: "PARQUET", +} as const; +/** + * @public + */ +export type ResultFormat = (typeof ResultFormat)[keyof typeof ResultFormat]; + /** * @public * @enum @@ -582,6 +768,20 @@ export const MembershipQueryLogStatus = { */ export type MembershipQueryLogStatus = (typeof MembershipQueryLogStatus)[keyof typeof MembershipQueryLogStatus]; +/** + * @public + * @enum + */ +export const MembershipStatus = { + ACTIVE: "ACTIVE", + COLLABORATION_DELETED: "COLLABORATION_DELETED", + REMOVED: "REMOVED", +} as const; +/** + * @public + */ +export type MembershipStatus = (typeof MembershipStatus)[keyof typeof MembershipStatus]; + /** * @public * @enum @@ -626,6 +826,24 @@ export const WorkerComputeType = { */ export type WorkerComputeType = (typeof WorkerComputeType)[keyof typeof WorkerComputeType]; +/** + * @public + * @enum + */ +export const ProtectedQueryStatus = { + CANCELLED: "CANCELLED", + CANCELLING: "CANCELLING", + FAILED: "FAILED", + STARTED: "STARTED", + SUBMITTED: "SUBMITTED", + SUCCESS: "SUCCESS", + TIMED_OUT: "TIMED_OUT", +} as const; +/** + * @public + */ +export type ProtectedQueryStatus = (typeof ProtectedQueryStatus)[keyof typeof ProtectedQueryStatus]; + /** * @public * @enum @@ -650,6 +868,18 @@ export const ProtectedJobType = { */ export type ProtectedJobType = (typeof ProtectedJobType)[keyof typeof ProtectedJobType]; +/** + * @public + * @enum + */ +export const ProtectedQueryType = { + SQL: "SQL", +} as const; +/** + * @public + */ +export type ProtectedQueryType = (typeof ProtectedQueryType)[keyof typeof ProtectedQueryType]; + /** * @public * @enum @@ -661,3 +891,15 @@ export const TargetProtectedJobStatus = { * @public */ export type TargetProtectedJobStatus = (typeof TargetProtectedJobStatus)[keyof typeof TargetProtectedJobStatus]; + +/** + * @public + * @enum + */ +export const TargetProtectedQueryStatus = { + CANCELLED: "CANCELLED", +} as const; +/** + * @public + */ +export type TargetProtectedQueryStatus = (typeof TargetProtectedQueryStatus)[keyof typeof TargetProtectedQueryStatus]; diff --git a/clients/client-cleanrooms/src/models/errors.ts b/clients/client-cleanrooms/src/models/errors.ts index 57fed3218524..a0c628ec3c02 100644 --- a/clients/client-cleanrooms/src/models/errors.ts +++ b/clients/client-cleanrooms/src/models/errors.ts @@ -2,13 +2,8 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { CleanRoomsServiceException as __BaseException } from "./CleanRoomsServiceException"; -import { - AccessDeniedExceptionReason, - ConflictExceptionReason, - ResourceType, - ValidationExceptionField, - ValidationExceptionReason, -} from "./models_0"; +import { AccessDeniedExceptionReason, ConflictExceptionReason, ResourceType, ValidationExceptionReason } from "./enums"; +import { ValidationExceptionField } from "./models_0"; /** *

Caller does not have sufficient access to perform this action.

diff --git a/clients/client-cleanrooms/src/models/models_0.ts b/clients/client-cleanrooms/src/models/models_0.ts index 59763df03d29..ff7a4d52c87a 100644 --- a/clients/client-cleanrooms/src/models/models_0.ts +++ b/clients/client-cleanrooms/src/models/models_0.ts @@ -4,6 +4,8 @@ import { DocumentType as __DocumentType } from "@smithy/types"; import { AccessBudgetType, AdditionalAnalyses, + AggregateFunctionName, + AggregationType, AnalysisFormat, AnalysisMethod, AnalysisRuleType, @@ -24,16 +26,23 @@ import { CustomMLMemberAbility, DifferentialPrivacyAggregationType, ErrorMessageType, + FilterableMemberStatus, IdNamespaceType, JobType, + JoinOperator, + JoinRequiredOption, MemberAbility, MembershipJobLogStatus, MembershipQueryLogStatus, + MembershipStatus, + MemberStatus, ParameterType, PrivacyBudgetTemplateAutoRefresh, PrivacyBudgetType, ProtectedJobStatus, ProtectedJobWorkerComputeType, + ResultFormat, + ScalarFunctions, SchemaConfiguration, SchemaStatus, SchemaStatusReasonCode, @@ -181,37 +190,6 @@ export interface AccessBudgetsPrivacyTemplateUpdateParameters { budgetParameters: BudgetParameter[] | undefined; } -/** - * @public - * @enum - */ -export const AccessDeniedExceptionReason = { - INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS", -} as const; - -/** - * @public - */ -export type AccessDeniedExceptionReason = - (typeof AccessDeniedExceptionReason)[keyof typeof AccessDeniedExceptionReason]; - -/** - * @public - * @enum - */ -export const AggregateFunctionName = { - AVG: "AVG", - COUNT: "COUNT", - COUNT_DISTINCT: "COUNT_DISTINCT", - SUM: "SUM", - SUM_DISTINCT: "SUM_DISTINCT", -} as const; - -/** - * @public - */ -export type AggregateFunctionName = (typeof AggregateFunctionName)[keyof typeof AggregateFunctionName]; - /** *

Column in configured table that can be used in aggregate function in query.

* @public @@ -230,19 +208,6 @@ export interface AggregateColumn { function: AggregateFunctionName | undefined; } -/** - * @public - * @enum - */ -export const AggregationType = { - COUNT_DISTINCT: "COUNT_DISTINCT", -} as const; - -/** - * @public - */ -export type AggregationType = (typeof AggregationType)[keyof typeof AggregationType]; - /** *

Constraint on query output removing output rows that do not meet a minimum number of distinct values of a specified column.

* @public @@ -453,69 +418,6 @@ export namespace ConfiguredTableAssociationAnalysisRulePolicy { } } -/** - * @public - * @enum - */ -export const JoinOperator = { - AND: "AND", - OR: "OR", -} as const; - -/** - * @public - */ -export type JoinOperator = (typeof JoinOperator)[keyof typeof JoinOperator]; - -/** - * @public - * @enum - */ -export const JoinRequiredOption = { - QUERY_RUNNER: "QUERY_RUNNER", -} as const; - -/** - * @public - */ -export type JoinRequiredOption = (typeof JoinRequiredOption)[keyof typeof JoinRequiredOption]; - -/** - * @public - * @enum - */ -export const ScalarFunctions = { - ABS: "ABS", - CAST: "CAST", - CEILING: "CEILING", - COALESCE: "COALESCE", - CONVERT: "CONVERT", - CURRENT_DATE: "CURRENT_DATE", - DATEADD: "DATEADD", - EXTRACT: "EXTRACT", - FLOOR: "FLOOR", - GETDATE: "GETDATE", - LN: "LN", - LOG: "LOG", - LOWER: "LOWER", - ROUND: "ROUND", - RTRIM: "RTRIM", - SQRT: "SQRT", - SUBSTRING: "SUBSTRING", - TO_CHAR: "TO_CHAR", - TO_DATE: "TO_DATE", - TO_NUMBER: "TO_NUMBER", - TO_TIMESTAMP: "TO_TIMESTAMP", - TRIM: "TRIM", - TRUNC: "TRUNC", - UPPER: "UPPER", -} as const; - -/** - * @public - */ -export type ScalarFunctions = (typeof ScalarFunctions)[keyof typeof ScalarFunctions]; - /** *

Controls on the analysis specifications that can be run on a configured table.

* @public @@ -1512,37 +1414,6 @@ export interface AnalysisTemplate { errorMessageConfiguration?: ErrorMessageConfiguration | undefined; } -/** - * @public - * @enum - */ -export const ConflictExceptionReason = { - ALREADY_EXISTS: "ALREADY_EXISTS", - INVALID_STATE: "INVALID_STATE", - SUBRESOURCES_EXIST: "SUBRESOURCES_EXIST", -} as const; - -/** - * @public - */ -export type ConflictExceptionReason = (typeof ConflictExceptionReason)[keyof typeof ConflictExceptionReason]; - -/** - * @public - * @enum - */ -export const ResourceType = { - COLLABORATION: "COLLABORATION", - CONFIGURED_TABLE: "CONFIGURED_TABLE", - CONFIGURED_TABLE_ASSOCIATION: "CONFIGURED_TABLE_ASSOCIATION", - MEMBERSHIP: "MEMBERSHIP", -} as const; - -/** - * @public - */ -export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; - /** * @public */ @@ -1631,22 +1502,6 @@ export interface ValidationExceptionField { message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", - IAM_SYNCHRONIZATION_DELAY: "IAM_SYNCHRONIZATION_DELAY", - INVALID_CONFIGURATION: "INVALID_CONFIGURATION", - INVALID_QUERY: "INVALID_QUERY", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** * @public */ @@ -2671,22 +2526,6 @@ export interface CreateCollaborationInput { allowedResultRegions?: SupportedS3Region[] | undefined; } -/** - * @public - * @enum - */ -export const MemberStatus = { - ACTIVE: "ACTIVE", - INVITED: "INVITED", - LEFT: "LEFT", - REMOVED: "REMOVED", -} as const; - -/** - * @public - */ -export type MemberStatus = (typeof MemberStatus)[keyof typeof MemberStatus]; - /** *

The multi-party data share environment. The collaboration contains metadata about its purpose and participants.

* @public @@ -4303,20 +4142,6 @@ export interface ListCollaborationPrivacyBudgetTemplatesOutput { collaborationPrivacyBudgetTemplateSummaries: CollaborationPrivacyBudgetTemplateSummary[] | undefined; } -/** - * @public - * @enum - */ -export const FilterableMemberStatus = { - ACTIVE: "ACTIVE", - INVITED: "INVITED", -} as const; - -/** - * @public - */ -export type FilterableMemberStatus = (typeof FilterableMemberStatus)[keyof typeof FilterableMemberStatus]; - /** * @public */ @@ -7158,20 +6983,6 @@ export interface MembershipProtectedJobResultConfiguration { roleArn: string | undefined; } -/** - * @public - * @enum - */ -export const ResultFormat = { - CSV: "CSV", - PARQUET: "PARQUET", -} as const; - -/** - * @public - */ -export type ResultFormat = (typeof ResultFormat)[keyof typeof ResultFormat]; - /** *

Contains the configuration to write the query results to S3.

* @public @@ -7396,21 +7207,6 @@ export interface CreateMembershipInput { paymentConfiguration?: MembershipPaymentConfiguration | undefined; } -/** - * @public - * @enum - */ -export const MembershipStatus = { - ACTIVE: "ACTIVE", - COLLABORATION_DELETED: "COLLABORATION_DELETED", - REMOVED: "REMOVED", -} as const; - -/** - * @public - */ -export type MembershipStatus = (typeof MembershipStatus)[keyof typeof MembershipStatus]; - /** *

The membership object.

* @public @@ -8151,3 +7947,338 @@ export interface ProtectedQueryError { */ code: string | undefined; } + +/** + *

Details about the member who received the query result.

+ * @public + */ +export interface ProtectedQuerySingleMemberOutput { + /** + *

The Amazon Web Services account ID of the member in the collaboration who can receive results for the query.

+ * @public + */ + accountId: string | undefined; +} + +/** + *

Contains output information for protected queries with an S3 output type.

+ * @public + */ +export interface ProtectedQueryS3Output { + /** + *

The S3 location of the result.

+ * @public + */ + location: string | undefined; +} + +/** + *

Contains the output information for a protected query with a distribute output configuration.

This output type allows query results to be distributed to multiple receivers, including S3 and collaboration members. It is only available for queries using the Spark analytics engine.

+ * @public + */ +export interface ProtectedQueryDistributeOutput { + /** + *

Contains output information for protected queries with an S3 output type.

+ * @public + */ + s3?: ProtectedQueryS3Output | undefined; + + /** + *

Contains the output results for each member location specified in the distribute output configuration. Each entry provides details about the result distribution to a specific collaboration member.

+ * @public + */ + memberList?: ProtectedQuerySingleMemberOutput[] | undefined; +} + +/** + *

Contains details about the protected query output.

+ * @public + */ +export type ProtectedQueryOutput = + | ProtectedQueryOutput.DistributeMember + | ProtectedQueryOutput.MemberListMember + | ProtectedQueryOutput.S3Member + | ProtectedQueryOutput.$UnknownMember; + +/** + * @public + */ +export namespace ProtectedQueryOutput { + /** + *

If present, the output for a protected query with an S3 output type.

+ * @public + */ + export interface S3Member { + s3: ProtectedQueryS3Output; + memberList?: never; + distribute?: never; + $unknown?: never; + } + + /** + *

The list of member Amazon Web Services account(s) that received the results of the query.

+ * @public + */ + export interface MemberListMember { + s3?: never; + memberList: ProtectedQuerySingleMemberOutput[]; + distribute?: never; + $unknown?: never; + } + + /** + *

Contains output information for protected queries that use a distribute output type. This output type lets you send query results to multiple locations - either to S3 or to collaboration members.

You can only use the distribute output type with the Spark analytics engine.

+ * @public + */ + export interface DistributeMember { + s3?: never; + memberList?: never; + distribute: ProtectedQueryDistributeOutput; + $unknown?: never; + } + + /** + * @public + */ + export interface $UnknownMember { + s3?: never; + memberList?: never; + distribute?: never; + $unknown: [string, any]; + } + + /** + * @deprecated unused in schema-serde mode. + * + */ + export interface Visitor { + s3: (value: ProtectedQueryS3Output) => T; + memberList: (value: ProtectedQuerySingleMemberOutput[]) => T; + distribute: (value: ProtectedQueryDistributeOutput) => T; + _: (name: string, value: any) => T; + } +} + +/** + *

Details about the query results.

+ * @public + */ +export interface ProtectedQueryResult { + /** + *

The output of the protected query.

+ * @public + */ + output: ProtectedQueryOutput | undefined; +} + +/** + *

Contains configuration details for the protected query member output.

+ * @public + */ +export interface ProtectedQueryMemberOutputConfiguration { + /** + *

The unique identifier for the account.

+ * @public + */ + accountId: string | undefined; +} + +/** + *

Specifies where you'll distribute the results of your protected query. You must configure either an S3 destination or a collaboration member destination.

+ * @public + */ +export type ProtectedQueryDistributeOutputConfigurationLocation = + | ProtectedQueryDistributeOutputConfigurationLocation.MemberMember + | ProtectedQueryDistributeOutputConfigurationLocation.S3Member + | ProtectedQueryDistributeOutputConfigurationLocation.$UnknownMember; + +/** + * @public + */ +export namespace ProtectedQueryDistributeOutputConfigurationLocation { + /** + *

Contains the configuration to write the query results to S3.

+ * @public + */ + export interface S3Member { + s3: ProtectedQueryS3OutputConfiguration; + member?: never; + $unknown?: never; + } + + /** + *

Contains configuration details for the protected query member output.

+ * @public + */ + export interface MemberMember { + s3?: never; + member: ProtectedQueryMemberOutputConfiguration; + $unknown?: never; + } + + /** + * @public + */ + export interface $UnknownMember { + s3?: never; + member?: never; + $unknown: [string, any]; + } + + /** + * @deprecated unused in schema-serde mode. + * + */ + export interface Visitor { + s3: (value: ProtectedQueryS3OutputConfiguration) => T; + member: (value: ProtectedQueryMemberOutputConfiguration) => T; + _: (name: string, value: any) => T; + } +} + +/** + *

Specifies the configuration for distributing protected query results to multiple receivers, including S3 and collaboration members.

+ * @public + */ +export interface ProtectedQueryDistributeOutputConfiguration { + /** + *

A list of locations where you want to distribute the protected query results. Each location must specify either an S3 destination or a collaboration member destination.

You can't specify more than one S3 location.

You can't specify the query runner's account as a member location.

You must include either an S3 or member output configuration for each location, but not both.

+ * @public + */ + locations: ProtectedQueryDistributeOutputConfigurationLocation[] | undefined; +} + +/** + *

Contains configuration details for protected query output.

+ * @public + */ +export type ProtectedQueryOutputConfiguration = + | ProtectedQueryOutputConfiguration.DistributeMember + | ProtectedQueryOutputConfiguration.MemberMember + | ProtectedQueryOutputConfiguration.S3Member + | ProtectedQueryOutputConfiguration.$UnknownMember; + +/** + * @public + */ +export namespace ProtectedQueryOutputConfiguration { + /** + *

Required configuration for a protected query with an s3 output type.

+ * @public + */ + export interface S3Member { + s3: ProtectedQueryS3OutputConfiguration; + member?: never; + distribute?: never; + $unknown?: never; + } + + /** + *

Required configuration for a protected query with a member output type.

+ * @public + */ + export interface MemberMember { + s3?: never; + member: ProtectedQueryMemberOutputConfiguration; + distribute?: never; + $unknown?: never; + } + + /** + *

Required configuration for a protected query with a distribute output type.

+ * @public + */ + export interface DistributeMember { + s3?: never; + member?: never; + distribute: ProtectedQueryDistributeOutputConfiguration; + $unknown?: never; + } + + /** + * @public + */ + export interface $UnknownMember { + s3?: never; + member?: never; + distribute?: never; + $unknown: [string, any]; + } + + /** + * @deprecated unused in schema-serde mode. + * + */ + export interface Visitor { + s3: (value: ProtectedQueryS3OutputConfiguration) => T; + member: (value: ProtectedQueryMemberOutputConfiguration) => T; + distribute: (value: ProtectedQueryDistributeOutputConfiguration) => T; + _: (name: string, value: any) => T; + } +} + +/** + *

Contains configurations for protected query results.

+ * @public + */ +export interface ProtectedQueryResultConfiguration { + /** + *

Configuration for protected query results.

+ * @public + */ + outputConfiguration: ProtectedQueryOutputConfiguration | undefined; +} + +/** + *

The parameters for the SQL type Protected Query.

+ * @public + */ +export interface ProtectedQuerySQLParameters { + /** + *

The query string to be submitted.

+ * @public + */ + queryString?: string | undefined; + + /** + *

The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.

+ * @public + */ + analysisTemplateArn?: string | undefined; + + /** + *

The protected query SQL parameters.

+ * @public + */ + parameters?: Record | undefined; +} + +/** + *

Information related to the utilization of resources that have been billed or charged for in a given context, such as a protected query.

+ * @public + */ +export interface BilledResourceUtilization { + /** + *

The number of Clean Rooms Processing Unit (CRPU) hours that have been billed.

+ * @public + */ + units: number | undefined; +} + +/** + *

Contains statistics about the execution of the protected query.

+ * @public + */ +export interface ProtectedQueryStatistics { + /** + *

The duration of the protected query, from creation until query completion, in milliseconds.

+ * @public + */ + totalDurationInMillis?: number | undefined; + + /** + *

The billed resource utilization.

+ * @public + */ + billedResourceUtilization?: BilledResourceUtilization | undefined; +} diff --git a/clients/client-cleanrooms/src/models/models_1.ts b/clients/client-cleanrooms/src/models/models_1.ts index 45825e2b36e2..28228ce78904 100644 --- a/clients/client-cleanrooms/src/models/models_1.ts +++ b/clients/client-cleanrooms/src/models/models_1.ts @@ -5,12 +5,16 @@ import { MemberAbility, MembershipJobLogStatus, MembershipQueryLogStatus, + MembershipStatus, PrivacyBudgetTemplateAutoRefresh, PrivacyBudgetType, ProtectedJobAnalysisType, ProtectedJobStatus, ProtectedJobType, + ProtectedQueryStatus, + ProtectedQueryType, TargetProtectedJobStatus, + TargetProtectedQueryStatus, } from "./enums"; import { @@ -22,7 +26,6 @@ import { MembershipPaymentConfiguration, MembershipProtectedJobResultConfiguration, MembershipProtectedQueryResultConfiguration, - MembershipStatus, MLMemberAbilities, PrivacyBudget, PrivacyBudgetTemplateParametersOutput, @@ -30,363 +33,12 @@ import { ProtectedJobComputeConfiguration, ProtectedJobParameters, ProtectedQueryError, - ProtectedQueryS3OutputConfiguration, + ProtectedQueryResult, + ProtectedQueryResultConfiguration, + ProtectedQuerySQLParameters, + ProtectedQueryStatistics, } from "./models_0"; -/** - *

Details about the member who received the query result.

- * @public - */ -export interface ProtectedQuerySingleMemberOutput { - /** - *

The Amazon Web Services account ID of the member in the collaboration who can receive results for the query.

- * @public - */ - accountId: string | undefined; -} - -/** - *

Contains output information for protected queries with an S3 output type.

- * @public - */ -export interface ProtectedQueryS3Output { - /** - *

The S3 location of the result.

- * @public - */ - location: string | undefined; -} - -/** - *

Contains the output information for a protected query with a distribute output configuration.

This output type allows query results to be distributed to multiple receivers, including S3 and collaboration members. It is only available for queries using the Spark analytics engine.

- * @public - */ -export interface ProtectedQueryDistributeOutput { - /** - *

Contains output information for protected queries with an S3 output type.

- * @public - */ - s3?: ProtectedQueryS3Output | undefined; - - /** - *

Contains the output results for each member location specified in the distribute output configuration. Each entry provides details about the result distribution to a specific collaboration member.

- * @public - */ - memberList?: ProtectedQuerySingleMemberOutput[] | undefined; -} - -/** - *

Contains details about the protected query output.

- * @public - */ -export type ProtectedQueryOutput = - | ProtectedQueryOutput.DistributeMember - | ProtectedQueryOutput.MemberListMember - | ProtectedQueryOutput.S3Member - | ProtectedQueryOutput.$UnknownMember; - -/** - * @public - */ -export namespace ProtectedQueryOutput { - /** - *

If present, the output for a protected query with an S3 output type.

- * @public - */ - export interface S3Member { - s3: ProtectedQueryS3Output; - memberList?: never; - distribute?: never; - $unknown?: never; - } - - /** - *

The list of member Amazon Web Services account(s) that received the results of the query.

- * @public - */ - export interface MemberListMember { - s3?: never; - memberList: ProtectedQuerySingleMemberOutput[]; - distribute?: never; - $unknown?: never; - } - - /** - *

Contains output information for protected queries that use a distribute output type. This output type lets you send query results to multiple locations - either to S3 or to collaboration members.

You can only use the distribute output type with the Spark analytics engine.

- * @public - */ - export interface DistributeMember { - s3?: never; - memberList?: never; - distribute: ProtectedQueryDistributeOutput; - $unknown?: never; - } - - /** - * @public - */ - export interface $UnknownMember { - s3?: never; - memberList?: never; - distribute?: never; - $unknown: [string, any]; - } - - /** - * @deprecated unused in schema-serde mode. - * - */ - export interface Visitor { - s3: (value: ProtectedQueryS3Output) => T; - memberList: (value: ProtectedQuerySingleMemberOutput[]) => T; - distribute: (value: ProtectedQueryDistributeOutput) => T; - _: (name: string, value: any) => T; - } -} - -/** - *

Details about the query results.

- * @public - */ -export interface ProtectedQueryResult { - /** - *

The output of the protected query.

- * @public - */ - output: ProtectedQueryOutput | undefined; -} - -/** - *

Contains configuration details for the protected query member output.

- * @public - */ -export interface ProtectedQueryMemberOutputConfiguration { - /** - *

The unique identifier for the account.

- * @public - */ - accountId: string | undefined; -} - -/** - *

Specifies where you'll distribute the results of your protected query. You must configure either an S3 destination or a collaboration member destination.

- * @public - */ -export type ProtectedQueryDistributeOutputConfigurationLocation = - | ProtectedQueryDistributeOutputConfigurationLocation.MemberMember - | ProtectedQueryDistributeOutputConfigurationLocation.S3Member - | ProtectedQueryDistributeOutputConfigurationLocation.$UnknownMember; - -/** - * @public - */ -export namespace ProtectedQueryDistributeOutputConfigurationLocation { - /** - *

Contains the configuration to write the query results to S3.

- * @public - */ - export interface S3Member { - s3: ProtectedQueryS3OutputConfiguration; - member?: never; - $unknown?: never; - } - - /** - *

Contains configuration details for the protected query member output.

- * @public - */ - export interface MemberMember { - s3?: never; - member: ProtectedQueryMemberOutputConfiguration; - $unknown?: never; - } - - /** - * @public - */ - export interface $UnknownMember { - s3?: never; - member?: never; - $unknown: [string, any]; - } - - /** - * @deprecated unused in schema-serde mode. - * - */ - export interface Visitor { - s3: (value: ProtectedQueryS3OutputConfiguration) => T; - member: (value: ProtectedQueryMemberOutputConfiguration) => T; - _: (name: string, value: any) => T; - } -} - -/** - *

Specifies the configuration for distributing protected query results to multiple receivers, including S3 and collaboration members.

- * @public - */ -export interface ProtectedQueryDistributeOutputConfiguration { - /** - *

A list of locations where you want to distribute the protected query results. Each location must specify either an S3 destination or a collaboration member destination.

You can't specify more than one S3 location.

You can't specify the query runner's account as a member location.

You must include either an S3 or member output configuration for each location, but not both.

- * @public - */ - locations: ProtectedQueryDistributeOutputConfigurationLocation[] | undefined; -} - -/** - *

Contains configuration details for protected query output.

- * @public - */ -export type ProtectedQueryOutputConfiguration = - | ProtectedQueryOutputConfiguration.DistributeMember - | ProtectedQueryOutputConfiguration.MemberMember - | ProtectedQueryOutputConfiguration.S3Member - | ProtectedQueryOutputConfiguration.$UnknownMember; - -/** - * @public - */ -export namespace ProtectedQueryOutputConfiguration { - /** - *

Required configuration for a protected query with an s3 output type.

- * @public - */ - export interface S3Member { - s3: ProtectedQueryS3OutputConfiguration; - member?: never; - distribute?: never; - $unknown?: never; - } - - /** - *

Required configuration for a protected query with a member output type.

- * @public - */ - export interface MemberMember { - s3?: never; - member: ProtectedQueryMemberOutputConfiguration; - distribute?: never; - $unknown?: never; - } - - /** - *

Required configuration for a protected query with a distribute output type.

- * @public - */ - export interface DistributeMember { - s3?: never; - member?: never; - distribute: ProtectedQueryDistributeOutputConfiguration; - $unknown?: never; - } - - /** - * @public - */ - export interface $UnknownMember { - s3?: never; - member?: never; - distribute?: never; - $unknown: [string, any]; - } - - /** - * @deprecated unused in schema-serde mode. - * - */ - export interface Visitor { - s3: (value: ProtectedQueryS3OutputConfiguration) => T; - member: (value: ProtectedQueryMemberOutputConfiguration) => T; - distribute: (value: ProtectedQueryDistributeOutputConfiguration) => T; - _: (name: string, value: any) => T; - } -} - -/** - *

Contains configurations for protected query results.

- * @public - */ -export interface ProtectedQueryResultConfiguration { - /** - *

Configuration for protected query results.

- * @public - */ - outputConfiguration: ProtectedQueryOutputConfiguration | undefined; -} - -/** - *

The parameters for the SQL type Protected Query.

- * @public - */ -export interface ProtectedQuerySQLParameters { - /** - *

The query string to be submitted.

- * @public - */ - queryString?: string | undefined; - - /** - *

The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.

- * @public - */ - analysisTemplateArn?: string | undefined; - - /** - *

The protected query SQL parameters.

- * @public - */ - parameters?: Record | undefined; -} - -/** - *

Information related to the utilization of resources that have been billed or charged for in a given context, such as a protected query.

- * @public - */ -export interface BilledResourceUtilization { - /** - *

The number of Clean Rooms Processing Unit (CRPU) hours that have been billed.

- * @public - */ - units: number | undefined; -} - -/** - *

Contains statistics about the execution of the protected query.

- * @public - */ -export interface ProtectedQueryStatistics { - /** - *

The duration of the protected query, from creation until query completion, in milliseconds.

- * @public - */ - totalDurationInMillis?: number | undefined; - - /** - *

The billed resource utilization.

- * @public - */ - billedResourceUtilization?: BilledResourceUtilization | undefined; -} - -/** - * @public - * @enum - */ -export const ProtectedQueryStatus = { - CANCELLED: "CANCELLED", - CANCELLING: "CANCELLING", - FAILED: "FAILED", - STARTED: "STARTED", - SUBMITTED: "SUBMITTED", - SUCCESS: "SUCCESS", - TIMED_OUT: "TIMED_OUT", -} as const; - -/** - * @public - */ -export type ProtectedQueryStatus = (typeof ProtectedQueryStatus)[keyof typeof ProtectedQueryStatus]; - /** *

The parameters for an Clean Rooms protected query.

* @public @@ -1299,19 +951,6 @@ export interface StartProtectedJobOutput { protectedJob: ProtectedJob | undefined; } -/** - * @public - * @enum - */ -export const ProtectedQueryType = { - SQL: "SQL", -} as const; - -/** - * @public - */ -export type ProtectedQueryType = (typeof ProtectedQueryType)[keyof typeof ProtectedQueryType]; - /** * @public */ @@ -1438,19 +1077,6 @@ export interface UpdateProtectedJobOutput { protectedJob: ProtectedJob | undefined; } -/** - * @public - * @enum - */ -export const TargetProtectedQueryStatus = { - CANCELLED: "CANCELLED", -} as const; - -/** - * @public - */ -export type TargetProtectedQueryStatus = (typeof TargetProtectedQueryStatus)[keyof typeof TargetProtectedQueryStatus]; - /** * @public */ diff --git a/clients/client-cloudcontrol/src/index.ts b/clients/client-cloudcontrol/src/index.ts index ef7be3e24b0c..5c344e8ef4d3 100644 --- a/clients/client-cloudcontrol/src/index.ts +++ b/clients/client-cloudcontrol/src/index.ts @@ -15,6 +15,7 @@ export * from "./commands"; export * from "./pagination"; export * from "./waiters"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-cloudcontrol/src/models/enums.ts b/clients/client-cloudcontrol/src/models/enums.ts new file mode 100644 index 000000000000..5683f0d3b5fc --- /dev/null +++ b/clients/client-cloudcontrol/src/models/enums.ts @@ -0,0 +1,58 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const HandlerErrorCode = { + ACCESS_DENIED: "AccessDenied", + ALREADY_EXISTS: "AlreadyExists", + GENERAL_SERVICE_EXCEPTION: "GeneralServiceException", + INTERNAL_FAILURE: "InternalFailure", + INVALID_CREDENTIALS: "InvalidCredentials", + INVALID_REQUEST: "InvalidRequest", + NETWORK_FAILURE: "NetworkFailure", + NOT_FOUND: "NotFound", + NOT_STABILIZED: "NotStabilized", + NOT_UPDATABLE: "NotUpdatable", + RESOURCE_CONFLICT: "ResourceConflict", + SERVICE_INTERNAL_ERROR: "ServiceInternalError", + SERVICE_LIMIT_EXCEEDED: "ServiceLimitExceeded", + SERVICE_TIMEOUT: "ServiceTimeout", + THROTTLING: "Throttling", + UNAUTHORIZED_TAGGING_OPERATION: "UnauthorizedTaggingOperation", +} as const; +/** + * @public + */ +export type HandlerErrorCode = (typeof HandlerErrorCode)[keyof typeof HandlerErrorCode]; + +/** + * @public + * @enum + */ +export const Operation = { + CREATE: "CREATE", + DELETE: "DELETE", + UPDATE: "UPDATE", +} as const; +/** + * @public + */ +export type Operation = (typeof Operation)[keyof typeof Operation]; + +/** + * @public + * @enum + */ +export const OperationStatus = { + CANCEL_COMPLETE: "CANCEL_COMPLETE", + CANCEL_IN_PROGRESS: "CANCEL_IN_PROGRESS", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + PENDING: "PENDING", + SUCCESS: "SUCCESS", +} as const; +/** + * @public + */ +export type OperationStatus = (typeof OperationStatus)[keyof typeof OperationStatus]; diff --git a/clients/client-cloudcontrol/src/models/models_0.ts b/clients/client-cloudcontrol/src/models/models_0.ts index a87e498af5d3..27338a74cac9 100644 --- a/clients/client-cloudcontrol/src/models/models_0.ts +++ b/clients/client-cloudcontrol/src/models/models_0.ts @@ -1,4 +1,6 @@ // smithy-typescript generated code +import { HandlerErrorCode, Operation, OperationStatus } from "./enums"; + /** * @public */ @@ -11,67 +13,6 @@ export interface CancelResourceRequestInput { RequestToken: string | undefined; } -/** - * @public - * @enum - */ -export const HandlerErrorCode = { - ACCESS_DENIED: "AccessDenied", - ALREADY_EXISTS: "AlreadyExists", - GENERAL_SERVICE_EXCEPTION: "GeneralServiceException", - INTERNAL_FAILURE: "InternalFailure", - INVALID_CREDENTIALS: "InvalidCredentials", - INVALID_REQUEST: "InvalidRequest", - NETWORK_FAILURE: "NetworkFailure", - NOT_FOUND: "NotFound", - NOT_STABILIZED: "NotStabilized", - NOT_UPDATABLE: "NotUpdatable", - RESOURCE_CONFLICT: "ResourceConflict", - SERVICE_INTERNAL_ERROR: "ServiceInternalError", - SERVICE_LIMIT_EXCEEDED: "ServiceLimitExceeded", - SERVICE_TIMEOUT: "ServiceTimeout", - THROTTLING: "Throttling", - UNAUTHORIZED_TAGGING_OPERATION: "UnauthorizedTaggingOperation", -} as const; - -/** - * @public - */ -export type HandlerErrorCode = (typeof HandlerErrorCode)[keyof typeof HandlerErrorCode]; - -/** - * @public - * @enum - */ -export const Operation = { - CREATE: "CREATE", - DELETE: "DELETE", - UPDATE: "UPDATE", -} as const; - -/** - * @public - */ -export type Operation = (typeof Operation)[keyof typeof Operation]; - -/** - * @public - * @enum - */ -export const OperationStatus = { - CANCEL_COMPLETE: "CANCEL_COMPLETE", - CANCEL_IN_PROGRESS: "CANCEL_IN_PROGRESS", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - PENDING: "PENDING", - SUCCESS: "SUCCESS", -} as const; - -/** - * @public - */ -export type OperationStatus = (typeof OperationStatus)[keyof typeof OperationStatus]; - /** *

Represents the current status of a resource operation request. For more information, see * Managing resource operation requests in the diff --git a/clients/client-codecatalyst/src/index.ts b/clients/client-codecatalyst/src/index.ts index be1b560eec15..0aad35cb5911 100644 --- a/clients/client-codecatalyst/src/index.ts +++ b/clients/client-codecatalyst/src/index.ts @@ -187,6 +187,7 @@ export type { CodeCatalystExtensionConfiguration } from "./extensionConfiguratio export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-codecatalyst/src/models/enums.ts b/clients/client-codecatalyst/src/models/enums.ts new file mode 100644 index 000000000000..c67dd150f6a7 --- /dev/null +++ b/clients/client-codecatalyst/src/models/enums.ts @@ -0,0 +1,153 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const OperationType = { + MUTATION: "MUTATION", + READONLY: "READONLY", +} as const; +/** + * @public + */ +export type OperationType = (typeof OperationType)[keyof typeof OperationType]; + +/** + * @public + * @enum + */ +export const UserType = { + AWS_ACCOUNT: "AWS_ACCOUNT", + UNKNOWN: "UNKNOWN", + USER: "USER", +} as const; +/** + * @public + */ +export type UserType = (typeof UserType)[keyof typeof UserType]; + +/** + * @public + * @enum + */ +export const _InstanceType = { + DEV_STANDARD1_LARGE: "dev.standard1.large", + DEV_STANDARD1_MEDIUM: "dev.standard1.medium", + DEV_STANDARD1_SMALL: "dev.standard1.small", + DEV_STANDARD1_XLARGE: "dev.standard1.xlarge", +} as const; +/** + * @public + */ +export type _InstanceType = (typeof _InstanceType)[keyof typeof _InstanceType]; + +/** + * @public + * @enum + */ +export const DevEnvironmentStatus = { + DELETED: "DELETED", + DELETING: "DELETING", + FAILED: "FAILED", + PENDING: "PENDING", + RUNNING: "RUNNING", + STARTING: "STARTING", + STOPPED: "STOPPED", + STOPPING: "STOPPING", +} as const; +/** + * @public + */ +export type DevEnvironmentStatus = (typeof DevEnvironmentStatus)[keyof typeof DevEnvironmentStatus]; + +/** + * @public + * @enum + */ +export const DevEnvironmentSessionType = { + SSH: "SSH", + SSM: "SSM", +} as const; +/** + * @public + */ +export type DevEnvironmentSessionType = (typeof DevEnvironmentSessionType)[keyof typeof DevEnvironmentSessionType]; + +/** + * @public + * @enum + */ +export const ComparisonOperator = { + BEGINS_WITH: "BEGINS_WITH", + EQUALS: "EQ", + GREATER_THAN: "GT", + GREATER_THAN_OR_EQUALS: "GE", + LESS_THAN: "LT", + LESS_THAN_OR_EQUALS: "LE", +} as const; +/** + * @public + */ +export type ComparisonOperator = (typeof ComparisonOperator)[keyof typeof ComparisonOperator]; + +/** + * @public + * @enum + */ +export const FilterKey = { + HAS_ACCESS_TO: "hasAccessTo", + NAME: "name", +} as const; +/** + * @public + */ +export type FilterKey = (typeof FilterKey)[keyof typeof FilterKey]; + +/** + * @public + * @enum + */ +export const WorkflowRunMode = { + PARALLEL: "PARALLEL", + QUEUED: "QUEUED", + SUPERSEDED: "SUPERSEDED", +} as const; +/** + * @public + */ +export type WorkflowRunMode = (typeof WorkflowRunMode)[keyof typeof WorkflowRunMode]; + +/** + * @public + * @enum + */ +export const WorkflowStatus = { + ACTIVE: "ACTIVE", + INVALID: "INVALID", +} as const; +/** + * @public + */ +export type WorkflowStatus = (typeof WorkflowStatus)[keyof typeof WorkflowStatus]; + +/** + * @public + * @enum + */ +export const WorkflowRunStatus = { + ABANDONED: "ABANDONED", + CANCELLED: "CANCELLED", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + NOT_RUN: "NOT_RUN", + PROVISIONING: "PROVISIONING", + STOPPED: "STOPPED", + STOPPING: "STOPPING", + SUCCEEDED: "SUCCEEDED", + SUPERSEDED: "SUPERSEDED", + VALIDATING: "VALIDATING", +} as const; +/** + * @public + */ +export type WorkflowRunStatus = (typeof WorkflowRunStatus)[keyof typeof WorkflowRunStatus]; diff --git a/clients/client-codecatalyst/src/models/models_0.ts b/clients/client-codecatalyst/src/models/models_0.ts index c4e910ce5771..c5a5965522e4 100644 --- a/clients/client-codecatalyst/src/models/models_0.ts +++ b/clients/client-codecatalyst/src/models/models_0.ts @@ -1,4 +1,17 @@ // smithy-typescript generated code +import { + _InstanceType, + ComparisonOperator, + DevEnvironmentSessionType, + DevEnvironmentStatus, + FilterKey, + OperationType, + UserType, + WorkflowRunMode, + WorkflowRunStatus, + WorkflowStatus, +} from "./enums"; + /** * @public */ @@ -258,20 +271,6 @@ export interface ListEventLogsRequest { maxResults?: number | undefined; } -/** - * @public - * @enum - */ -export const OperationType = { - MUTATION: "MUTATION", - READONLY: "READONLY", -} as const; - -/** - * @public - */ -export type OperationType = (typeof OperationType)[keyof typeof OperationType]; - /** *

Information about a project in a space.

* @public @@ -308,21 +307,6 @@ export interface EventPayload { data?: string | undefined; } -/** - * @public - * @enum - */ -export const UserType = { - AWS_ACCOUNT: "AWS_ACCOUNT", - UNKNOWN: "UNKNOWN", - USER: "USER", -} as const; - -/** - * @public - */ -export type UserType = (typeof UserType)[keyof typeof UserType]; - /** *

Information about a user whose activity is recorded in an event for a space.

* @public @@ -583,22 +567,6 @@ export interface Ide { name?: string | undefined; } -/** - * @public - * @enum - */ -export const _InstanceType = { - DEV_STANDARD1_LARGE: "dev.standard1.large", - DEV_STANDARD1_MEDIUM: "dev.standard1.medium", - DEV_STANDARD1_SMALL: "dev.standard1.small", - DEV_STANDARD1_XLARGE: "dev.standard1.xlarge", -} as const; - -/** - * @public - */ -export type _InstanceType = (typeof _InstanceType)[keyof typeof _InstanceType]; - /** *

Information about the persistent storage for a Dev Environment.

* @public @@ -633,26 +601,6 @@ export interface DevEnvironmentRepositorySummary { branchName?: string | undefined; } -/** - * @public - * @enum - */ -export const DevEnvironmentStatus = { - DELETED: "DELETED", - DELETING: "DELETING", - FAILED: "FAILED", - PENDING: "PENDING", - RUNNING: "RUNNING", - STARTING: "STARTING", - STOPPED: "STOPPED", - STOPPING: "STOPPING", -} as const; - -/** - * @public - */ -export type DevEnvironmentStatus = (typeof DevEnvironmentStatus)[keyof typeof DevEnvironmentStatus]; - /** *

Information about a Dev Environment.

* @public @@ -1407,20 +1355,6 @@ export interface ExecuteCommandSessionConfiguration { arguments?: string[] | undefined; } -/** - * @public - * @enum - */ -export const DevEnvironmentSessionType = { - SSH: "SSH", - SSM: "SSM", -} as const; - -/** - * @public - */ -export type DevEnvironmentSessionType = (typeof DevEnvironmentSessionType)[keyof typeof DevEnvironmentSessionType]; - /** *

Information about the configuration of a Dev Environment session.

* @public @@ -1792,38 +1726,6 @@ export interface GetProjectResponse { description?: string | undefined; } -/** - * @public - * @enum - */ -export const ComparisonOperator = { - BEGINS_WITH: "BEGINS_WITH", - EQUALS: "EQ", - GREATER_THAN: "GT", - GREATER_THAN_OR_EQUALS: "GE", - LESS_THAN: "LT", - LESS_THAN_OR_EQUALS: "LE", -} as const; - -/** - * @public - */ -export type ComparisonOperator = (typeof ComparisonOperator)[keyof typeof ComparisonOperator]; - -/** - * @public - * @enum - */ -export const FilterKey = { - HAS_ACCESS_TO: "hasAccessTo", - NAME: "name", -} as const; - -/** - * @public - */ -export type FilterKey = (typeof FilterKey)[keyof typeof FilterKey]; - /** *

nformation about the filter used to narrow the results returned in a list of projects.

* @public @@ -2435,35 +2337,6 @@ export interface WorkflowDefinition { path: string | undefined; } -/** - * @public - * @enum - */ -export const WorkflowRunMode = { - PARALLEL: "PARALLEL", - QUEUED: "QUEUED", - SUPERSEDED: "SUPERSEDED", -} as const; - -/** - * @public - */ -export type WorkflowRunMode = (typeof WorkflowRunMode)[keyof typeof WorkflowRunMode]; - -/** - * @public - * @enum - */ -export const WorkflowStatus = { - ACTIVE: "ACTIVE", - INVALID: "INVALID", -} as const; - -/** - * @public - */ -export type WorkflowStatus = (typeof WorkflowStatus)[keyof typeof WorkflowStatus]; - /** * @public */ @@ -2693,29 +2566,6 @@ export interface GetWorkflowRunRequest { projectName: string | undefined; } -/** - * @public - * @enum - */ -export const WorkflowRunStatus = { - ABANDONED: "ABANDONED", - CANCELLED: "CANCELLED", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - NOT_RUN: "NOT_RUN", - PROVISIONING: "PROVISIONING", - STOPPED: "STOPPED", - STOPPING: "STOPPING", - SUCCEEDED: "SUCCEEDED", - SUPERSEDED: "SUPERSEDED", - VALIDATING: "VALIDATING", -} as const; - -/** - * @public - */ -export type WorkflowRunStatus = (typeof WorkflowRunStatus)[keyof typeof WorkflowRunStatus]; - /** *

Information about the status of a workflow run.

* @public diff --git a/clients/client-codeguruprofiler/src/index.ts b/clients/client-codeguruprofiler/src/index.ts index cb714496d21f..392b56bf7b41 100644 --- a/clients/client-codeguruprofiler/src/index.ts +++ b/clients/client-codeguruprofiler/src/index.ts @@ -35,6 +35,7 @@ export type { CodeGuruProfilerExtensionConfiguration } from "./extensionConfigur export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-codeguruprofiler/src/models/enums.ts b/clients/client-codeguruprofiler/src/models/enums.ts new file mode 100644 index 000000000000..c9dc9370a4ff --- /dev/null +++ b/clients/client-codeguruprofiler/src/models/enums.ts @@ -0,0 +1,203 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ActionGroup = { + /** + * Permission group type for Agent APIs - ConfigureAgent, PostAgentProfile + */ + AGENT_PERMISSIONS: "agentPermissions", +} as const; +/** + * @public + */ +export type ActionGroup = (typeof ActionGroup)[keyof typeof ActionGroup]; + +/** + * @public + * @enum + */ +export const EventPublisher = { + /** + * Notifications for Anomaly Detection + */ + ANOMALY_DETECTION: "AnomalyDetection", +} as const; +/** + * @public + */ +export type EventPublisher = (typeof EventPublisher)[keyof typeof EventPublisher]; + +/** + * @public + * @enum + */ +export const AgentParameterField = { + /** + * Maximum stack depth to be captured by the CodeGuru Profiler. + */ + MAX_STACK_DEPTH: "MaxStackDepth", + /** + * Percentage of memory to be used by CodeGuru profiler. Minimum of 30MB is required for the agent. + */ + MEMORY_USAGE_LIMIT_PERCENT: "MemoryUsageLimitPercent", + /** + * Minimum time in milliseconds between sending reports. + */ + MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS: "MinimumTimeForReportingInMilliseconds", + /** + * Reporting interval in milliseconds used to report profiles. + */ + REPORTING_INTERVAL_IN_MILLISECONDS: "ReportingIntervalInMilliseconds", + /** + * Sampling interval in milliseconds used to sample profiles. + */ + SAMPLING_INTERVAL_IN_MILLISECONDS: "SamplingIntervalInMilliseconds", +} as const; +/** + * @public + */ +export type AgentParameterField = (typeof AgentParameterField)[keyof typeof AgentParameterField]; + +/** + * @public + * @enum + */ +export const AggregationPeriod = { + /** + * Period of one day. + */ + P1D: "P1D", + /** + * Period of one hour. + */ + PT1H: "PT1H", + /** + * Period of five minutes. + */ + PT5M: "PT5M", +} as const; +/** + * @public + */ +export type AggregationPeriod = (typeof AggregationPeriod)[keyof typeof AggregationPeriod]; + +/** + * @public + * @enum + */ +export const FeedbackType = { + /** + * Profiler recommendation flagged as not useful. + */ + Negative: "Negative", + /** + * Profiler recommendation flagged as useful. + */ + Positive: "Positive", +} as const; +/** + * @public + */ +export type FeedbackType = (typeof FeedbackType)[keyof typeof FeedbackType]; + +/** + * @public + * @enum + */ +export const MetricType = { + /** + * Metric value aggregated for all instances of a frame name in a profile relative to the root frame. + */ + AggregatedRelativeTotalTime: "AggregatedRelativeTotalTime", +} as const; +/** + * @public + */ +export type MetricType = (typeof MetricType)[keyof typeof MetricType]; + +/** + * @public + * @enum + */ +export const MetadataField = { + /** + * Unique identifier for the agent instance. + */ + AGENT_ID: "AgentId", + /** + * AWS requestId of the Lambda invocation. + */ + AWS_REQUEST_ID: "AwsRequestId", + /** + * Compute platform on which agent is running. + */ + COMPUTE_PLATFORM: "ComputePlatform", + /** + * Execution environment on which Lambda function is running. + */ + EXECUTION_ENVIRONMENT: "ExecutionEnvironment", + /** + * Function ARN that's used to invoke the Lambda function. + */ + LAMBDA_FUNCTION_ARN: "LambdaFunctionArn", + /** + * Memory allocated for the Lambda function. + */ + LAMBDA_MEMORY_LIMIT_IN_MB: "LambdaMemoryLimitInMB", + /** + * Time in milliseconds for the previous Lambda invocation. + */ + LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS: "LambdaPreviousExecutionTimeInMilliseconds", + /** + * Time in milliseconds left before the execution times out. + */ + LAMBDA_REMAINING_TIME_IN_MILLISECONDS: "LambdaRemainingTimeInMilliseconds", + /** + * Time in milliseconds between two invocations of the Lambda function. + */ + LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS: "LambdaTimeGapBetweenInvokesInMilliseconds", +} as const; +/** + * @public + */ +export type MetadataField = (typeof MetadataField)[keyof typeof MetadataField]; + +/** + * @public + * @enum + */ +export const ComputePlatform = { + /** + * Compute platform meant to used for AWS Lambda. + */ + AWSLAMBDA: "AWSLambda", + /** + * Compute platform meant to used for all usecases (like EC2, Fargate, physical servers etc.) but AWS Lambda. + */ + DEFAULT: "Default", +} as const; +/** + * @public + */ +export type ComputePlatform = (typeof ComputePlatform)[keyof typeof ComputePlatform]; + +/** + * @public + * @enum + */ +export const OrderBy = { + /** + * Order by timestamp in ascending order. + */ + TIMESTAMP_ASCENDING: "TimestampAscending", + /** + * Order by timestamp in descending order. + */ + TIMESTAMP_DESCENDING: "TimestampDescending", +} as const; +/** + * @public + */ +export type OrderBy = (typeof OrderBy)[keyof typeof OrderBy]; diff --git a/clients/client-codeguruprofiler/src/models/models_0.ts b/clients/client-codeguruprofiler/src/models/models_0.ts index 5291e32b785e..2f966f5a9c17 100644 --- a/clients/client-codeguruprofiler/src/models/models_0.ts +++ b/clients/client-codeguruprofiler/src/models/models_0.ts @@ -1,35 +1,15 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const ActionGroup = { - /** - * Permission group type for Agent APIs - ConfigureAgent, PostAgentProfile - */ - AGENT_PERMISSIONS: "agentPermissions", -} as const; - -/** - * @public - */ -export type ActionGroup = (typeof ActionGroup)[keyof typeof ActionGroup]; - -/** - * @public - * @enum - */ -export const EventPublisher = { - /** - * Notifications for Anomaly Detection - */ - ANOMALY_DETECTION: "AnomalyDetection", -} as const; - -/** - * @public - */ -export type EventPublisher = (typeof EventPublisher)[keyof typeof EventPublisher]; +import { + ActionGroup, + AgentParameterField, + AggregationPeriod, + ComputePlatform, + EventPublisher, + FeedbackType, + MetadataField, + MetricType, + OrderBy, +} from "./enums"; /** *

Notification medium for users to get alerted for events that occur in application profile. We support SNS topic as a notification channel.

@@ -99,38 +79,6 @@ export interface AddNotificationChannelsResponse { notificationConfiguration?: NotificationConfiguration | undefined; } -/** - * @public - * @enum - */ -export const AgentParameterField = { - /** - * Maximum stack depth to be captured by the CodeGuru Profiler. - */ - MAX_STACK_DEPTH: "MaxStackDepth", - /** - * Percentage of memory to be used by CodeGuru profiler. Minimum of 30MB is required for the agent. - */ - MEMORY_USAGE_LIMIT_PERCENT: "MemoryUsageLimitPercent", - /** - * Minimum time in milliseconds between sending reports. - */ - MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS: "MinimumTimeForReportingInMilliseconds", - /** - * Reporting interval in milliseconds used to report profiles. - */ - REPORTING_INTERVAL_IN_MILLISECONDS: "ReportingIntervalInMilliseconds", - /** - * Sampling interval in milliseconds used to sample profiles. - */ - SAMPLING_INTERVAL_IN_MILLISECONDS: "SamplingIntervalInMilliseconds", -} as const; - -/** - * @public - */ -export type AgentParameterField = (typeof AgentParameterField)[keyof typeof AgentParameterField]; - /** *

* The response of @@ -229,30 +177,6 @@ export interface AgentOrchestrationConfig { profilingEnabled: boolean | undefined; } -/** - * @public - * @enum - */ -export const AggregationPeriod = { - /** - * Period of one day. - */ - P1D: "P1D", - /** - * Period of one hour. - */ - PT1H: "PT1H", - /** - * Period of five minutes. - */ - PT5M: "PT5M", -} as const; - -/** - * @public - */ -export type AggregationPeriod = (typeof AggregationPeriod)[keyof typeof AggregationPeriod]; - /** *

* Specifies the aggregation period and aggregation start time for @@ -306,26 +230,6 @@ export interface AggregatedProfileTime { period?: AggregationPeriod | undefined; } -/** - * @public - * @enum - */ -export const FeedbackType = { - /** - * Profiler recommendation flagged as not useful. - */ - Negative: "Negative", - /** - * Profiler recommendation flagged as useful. - */ - Positive: "Positive", -} as const; - -/** - * @public - */ -export type FeedbackType = (typeof FeedbackType)[keyof typeof FeedbackType]; - /** *

Feedback that can be submitted for each instance of an anomaly by the user. * Feedback is be used for improvements in generating recommendations for the application.

@@ -382,22 +286,6 @@ export interface AnomalyInstance { userFeedback?: UserFeedback | undefined; } -/** - * @public - * @enum - */ -export const MetricType = { - /** - * Metric value aggregated for all instances of a frame name in a profile relative to the root frame. - */ - AggregatedRelativeTotalTime: "AggregatedRelativeTotalTime", -} as const; - -/** - * @public - */ -export type MetricType = (typeof MetricType)[keyof typeof MetricType]; - /** *

* Details about the metric that the analysis used when it detected the anomaly. @@ -839,54 +727,6 @@ export interface ListTagsForResourceResponse { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const MetadataField = { - /** - * Unique identifier for the agent instance. - */ - AGENT_ID: "AgentId", - /** - * AWS requestId of the Lambda invocation. - */ - AWS_REQUEST_ID: "AwsRequestId", - /** - * Compute platform on which agent is running. - */ - COMPUTE_PLATFORM: "ComputePlatform", - /** - * Execution environment on which Lambda function is running. - */ - EXECUTION_ENVIRONMENT: "ExecutionEnvironment", - /** - * Function ARN that's used to invoke the Lambda function. - */ - LAMBDA_FUNCTION_ARN: "LambdaFunctionArn", - /** - * Memory allocated for the Lambda function. - */ - LAMBDA_MEMORY_LIMIT_IN_MB: "LambdaMemoryLimitInMB", - /** - * Time in milliseconds for the previous Lambda invocation. - */ - LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS: "LambdaPreviousExecutionTimeInMilliseconds", - /** - * Time in milliseconds left before the execution times out. - */ - LAMBDA_REMAINING_TIME_IN_MILLISECONDS: "LambdaRemainingTimeInMilliseconds", - /** - * Time in milliseconds between two invocations of the Lambda function. - */ - LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS: "LambdaTimeGapBetweenInvokesInMilliseconds", -} as const; - -/** - * @public - */ -export type MetadataField = (typeof MetadataField)[keyof typeof MetadataField]; - /** *

The structure representing the configureAgentRequest.

* @public @@ -980,26 +820,6 @@ export interface ConfigureAgentResponse { configuration: AgentConfiguration | undefined; } -/** - * @public - * @enum - */ -export const ComputePlatform = { - /** - * Compute platform meant to used for AWS Lambda. - */ - AWSLAMBDA: "AWSLambda", - /** - * Compute platform meant to used for all usecases (like EC2, Fargate, physical servers etc.) but AWS Lambda. - */ - DEFAULT: "Default", -} as const; - -/** - * @public - */ -export type ComputePlatform = (typeof ComputePlatform)[keyof typeof ComputePlatform]; - /** *

The structure representing the createProfiliingGroupRequest.

* @public @@ -1769,26 +1589,6 @@ export interface ListFindingsReportsResponse { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const OrderBy = { - /** - * Order by timestamp in ascending order. - */ - TIMESTAMP_ASCENDING: "TimestampAscending", - /** - * Order by timestamp in descending order. - */ - TIMESTAMP_DESCENDING: "TimestampDescending", -} as const; - -/** - * @public - */ -export type OrderBy = (typeof OrderBy)[keyof typeof OrderBy]; - /** *

The structure representing the listProfileTimesRequest.

* @public diff --git a/clients/client-compute-optimizer-automation/src/models/enums.ts b/clients/client-compute-optimizer-automation/src/models/enums.ts index c8ce950b4c24..f4a360d01051 100644 --- a/clients/client-compute-optimizer-automation/src/models/enums.ts +++ b/clients/client-compute-optimizer-automation/src/models/enums.ts @@ -85,6 +85,21 @@ export const ResourceType = { */ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; +/** + * @public + * @enum + */ +export const AutomationEventFilterName = { + ACCOUNT_ID: "AccountId", + EVENT_STATUS: "EventStatus", + EVENT_TYPE: "EventType", + RESOURCE_TYPE: "ResourceType", +} as const; +/** + * @public + */ +export type AutomationEventFilterName = (typeof AutomationEventFilterName)[keyof typeof AutomationEventFilterName]; + /** * @public * @enum @@ -115,6 +130,18 @@ export const StepType = { */ export type StepType = (typeof StepType)[keyof typeof StepType]; +/** + * @public + * @enum + */ +export const SummaryDimensionKey = { + EVENT_STATUS: "EventStatus", +} as const; +/** + * @public + */ +export type SummaryDimensionKey = (typeof SummaryDimensionKey)[keyof typeof SummaryDimensionKey]; + /** * @public * @enum @@ -167,6 +194,23 @@ export const RuleStatus = { */ export type RuleStatus = (typeof RuleStatus)[keyof typeof RuleStatus]; +/** + * @public + * @enum + */ +export const AutomationRuleFilterName = { + ACCOUNT_ID: "AccountId", + NAME: "Name", + ORGANIZATION_CONFIGURATION_RULE_APPLY_ORDER: "OrganizationConfigurationRuleApplyOrder", + RECOMMENDED_ACTION_TYPE: "RecommendedActionType", + RULE_TYPE: "RuleType", + STATUS: "Status", +} as const; +/** + * @public + */ +export type AutomationRuleFilterName = (typeof AutomationRuleFilterName)[keyof typeof AutomationRuleFilterName]; + /** * @public * @enum @@ -189,3 +233,24 @@ export const ComparisonOperator = { * @public */ export type ComparisonOperator = (typeof ComparisonOperator)[keyof typeof ComparisonOperator]; + +/** + * @public + * @enum + */ +export const RecommendedActionFilterName = { + ACCOUNT_ID: "AccountId", + CURRENT_RESOURCE_DETAILS_EBS_VOLUME_TYPE: "CurrentResourceDetailsEbsVolumeType", + LOOK_BACK_PERIOD_IN_DAYS: "LookBackPeriodInDays", + RECOMMENDED_ACTION_TYPE: "RecommendedActionType", + RESOURCE_ID: "ResourceId", + RESOURCE_TAGS_KEY: "ResourceTagsKey", + RESOURCE_TAGS_VALUE: "ResourceTagsValue", + RESOURCE_TYPE: "ResourceType", + RESTART_NEEDED: "RestartNeeded", +} as const; +/** + * @public + */ +export type RecommendedActionFilterName = + (typeof RecommendedActionFilterName)[keyof typeof RecommendedActionFilterName]; diff --git a/clients/client-compute-optimizer-automation/src/models/models_0.ts b/clients/client-compute-optimizer-automation/src/models/models_0.ts index 5d67cbdaf000..07fb86bdaebb 100644 --- a/clients/client-compute-optimizer-automation/src/models/models_0.ts +++ b/clients/client-compute-optimizer-automation/src/models/models_0.ts @@ -1,10 +1,13 @@ // smithy-typescript generated code import { + AutomationEventFilterName, + AutomationRuleFilterName, ComparisonOperator, EnrollmentStatus, EventStatus, EventType, OrganizationRuleMode, + RecommendedActionFilterName, RecommendedActionType, ResourceType, RuleApplyOrder, @@ -13,6 +16,7 @@ import { SavingsEstimationMode, StepStatus, StepType, + SummaryDimensionKey, } from "./enums"; /** @@ -211,22 +215,6 @@ export interface AutomationEvent { estimatedMonthlySavings?: EstimatedMonthlySavings | undefined; } -/** - * @public - * @enum - */ -export const AutomationEventFilterName = { - ACCOUNT_ID: "AccountId", - EVENT_STATUS: "EventStatus", - EVENT_TYPE: "EventType", - RESOURCE_TYPE: "ResourceType", -} as const; - -/** - * @public - */ -export type AutomationEventFilterName = (typeof AutomationEventFilterName)[keyof typeof AutomationEventFilterName]; - /** *

A filter to apply when listing automation events.

* @public @@ -299,19 +287,6 @@ export interface AutomationEventStep { estimatedMonthlySavings?: EstimatedMonthlySavings | undefined; } -/** - * @public - * @enum - */ -export const SummaryDimensionKey = { - EVENT_STATUS: "EventStatus", -} as const; - -/** - * @public - */ -export type SummaryDimensionKey = (typeof SummaryDimensionKey)[keyof typeof SummaryDimensionKey]; - /** *

A key-value pair used to categorize and group summary data for analysis and reporting.

* @public @@ -528,24 +503,6 @@ export interface AutomationRule { lastUpdatedTimestamp?: Date | undefined; } -/** - * @public - * @enum - */ -export const AutomationRuleFilterName = { - ACCOUNT_ID: "AccountId", - NAME: "Name", - ORGANIZATION_CONFIGURATION_RULE_APPLY_ORDER: "OrganizationConfigurationRuleApplyOrder", - RECOMMENDED_ACTION_TYPE: "RecommendedActionType", - RULE_TYPE: "RuleType", - STATUS: "Status", -} as const; - -/** - * @public - */ -export type AutomationRuleFilterName = (typeof AutomationRuleFilterName)[keyof typeof AutomationRuleFilterName]; - /** *

Defines a condition for filtering based on integer values with comparison operators.

* @public @@ -1745,28 +1702,6 @@ export interface ListAutomationRulesResponse { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const RecommendedActionFilterName = { - ACCOUNT_ID: "AccountId", - CURRENT_RESOURCE_DETAILS_EBS_VOLUME_TYPE: "CurrentResourceDetailsEbsVolumeType", - LOOK_BACK_PERIOD_IN_DAYS: "LookBackPeriodInDays", - RECOMMENDED_ACTION_TYPE: "RecommendedActionType", - RESOURCE_ID: "ResourceId", - RESOURCE_TAGS_KEY: "ResourceTagsKey", - RESOURCE_TAGS_VALUE: "ResourceTagsValue", - RESOURCE_TYPE: "ResourceType", - RESTART_NEEDED: "RestartNeeded", -} as const; - -/** - * @public - */ -export type RecommendedActionFilterName = - (typeof RecommendedActionFilterName)[keyof typeof RecommendedActionFilterName]; - /** *

A filter used to narrow down recommended action results based on specific criteria.

* @public diff --git a/clients/client-connectcampaigns/src/index.ts b/clients/client-connectcampaigns/src/index.ts index 7b5141e635ec..34991b1eeae3 100644 --- a/clients/client-connectcampaigns/src/index.ts +++ b/clients/client-connectcampaigns/src/index.ts @@ -13,6 +13,7 @@ export type { ConnectCampaignsExtensionConfiguration } from "./extensionConfigur export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-connectcampaigns/src/models/enums.ts b/clients/client-connectcampaigns/src/models/enums.ts new file mode 100644 index 000000000000..a8134cb4631d --- /dev/null +++ b/clients/client-connectcampaigns/src/models/enums.ts @@ -0,0 +1,134 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const CampaignState = { + /** + * Campaign is in failed state + */ + FAILED: "Failed", + /** + * Campaign is in initialized state + */ + INITIALIZED: "Initialized", + /** + * Campaign is in paused state + */ + PAUSED: "Paused", + /** + * Campaign is in running state + */ + RUNNING: "Running", + /** + * Campaign is in stopped state + */ + STOPPED: "Stopped", +} as const; +/** + * @public + */ +export type CampaignState = (typeof CampaignState)[keyof typeof CampaignState]; + +/** + * @public + * @enum + */ +export const GetCampaignStateBatchFailureCode = { + /** + * The specified resource was not found + */ + RESOURCE_NOT_FOUND: "ResourceNotFound", + /** + * Unexpected error during processing of request + */ + UNKNOWN_ERROR: "UnknownError", +} as const; +/** + * @public + */ +export type GetCampaignStateBatchFailureCode = + (typeof GetCampaignStateBatchFailureCode)[keyof typeof GetCampaignStateBatchFailureCode]; + +/** + * @public + * @enum + */ +export const EncryptionType = { + KMS: "KMS", +} as const; +/** + * @public + */ +export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType]; + +/** + * @public + * @enum + */ +export const InstanceOnboardingJobFailureCode = { + EVENT_BRIDGE_ACCESS_DENIED: "EVENT_BRIDGE_ACCESS_DENIED", + EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED: "EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED", + IAM_ACCESS_DENIED: "IAM_ACCESS_DENIED", + INTERNAL_FAILURE: "INTERNAL_FAILURE", + KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED", + KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND", +} as const; +/** + * @public + */ +export type InstanceOnboardingJobFailureCode = + (typeof InstanceOnboardingJobFailureCode)[keyof typeof InstanceOnboardingJobFailureCode]; + +/** + * @public + * @enum + */ +export const InstanceOnboardingJobStatusCode = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type InstanceOnboardingJobStatusCode = + (typeof InstanceOnboardingJobStatusCode)[keyof typeof InstanceOnboardingJobStatusCode]; + +/** + * @public + * @enum + */ +export const InstanceIdFilterOperator = { + /** + * Equals operator + */ + EQ: "Eq", +} as const; +/** + * @public + */ +export type InstanceIdFilterOperator = (typeof InstanceIdFilterOperator)[keyof typeof InstanceIdFilterOperator]; + +/** + * @public + * @enum + */ +export const FailureCode = { + /** + * The request failed to satisfy the constraints specified by the service + */ + INVALID_INPUT: "InvalidInput", + /** + * Request throttled due to large number of pending dial requests + */ + REQUEST_THROTTLED: "RequestThrottled", + /** + * Unexpected error during processing of request + */ + UNKNOWN_ERROR: "UnknownError", +} as const; +/** + * @public + */ +export type FailureCode = (typeof FailureCode)[keyof typeof FailureCode]; diff --git a/clients/client-connectcampaigns/src/models/errors.ts b/clients/client-connectcampaigns/src/models/errors.ts index 0a53b45578d7..27cb1cd5cdaa 100644 --- a/clients/client-connectcampaigns/src/models/errors.ts +++ b/clients/client-connectcampaigns/src/models/errors.ts @@ -2,7 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { ConnectCampaignsServiceException as __BaseException } from "./ConnectCampaignsServiceException"; -import { CampaignState } from "./models_0"; +import { CampaignState } from "./enums"; /** * You do not have sufficient access to perform this action. diff --git a/clients/client-connectcampaigns/src/models/models_0.ts b/clients/client-connectcampaigns/src/models/models_0.ts index 6e9180654ebb..94a7777d0c29 100644 --- a/clients/client-connectcampaigns/src/models/models_0.ts +++ b/clients/client-connectcampaigns/src/models/models_0.ts @@ -1,4 +1,14 @@ // smithy-typescript generated code +import { + CampaignState, + EncryptionType, + FailureCode, + GetCampaignStateBatchFailureCode, + InstanceIdFilterOperator, + InstanceOnboardingJobFailureCode, + InstanceOnboardingJobStatusCode, +} from "./enums"; + /** * Agentless Dialer config * @public @@ -344,38 +354,6 @@ export interface GetCampaignStateRequest { id: string | undefined; } -/** - * @public - * @enum - */ -export const CampaignState = { - /** - * Campaign is in failed state - */ - FAILED: "Failed", - /** - * Campaign is in initialized state - */ - INITIALIZED: "Initialized", - /** - * Campaign is in paused state - */ - PAUSED: "Paused", - /** - * Campaign is in running state - */ - RUNNING: "Running", - /** - * Campaign is in stopped state - */ - STOPPED: "Stopped", -} as const; - -/** - * @public - */ -export type CampaignState = (typeof CampaignState)[keyof typeof CampaignState]; - /** * GetCampaignStateResponse * @public @@ -400,27 +378,6 @@ export interface GetCampaignStateBatchRequest { campaignIds: string[] | undefined; } -/** - * @public - * @enum - */ -export const GetCampaignStateBatchFailureCode = { - /** - * The specified resource was not found - */ - RESOURCE_NOT_FOUND: "ResourceNotFound", - /** - * Unexpected error during processing of request - */ - UNKNOWN_ERROR: "UnknownError", -} as const; - -/** - * @public - */ -export type GetCampaignStateBatchFailureCode = - (typeof GetCampaignStateBatchFailureCode)[keyof typeof GetCampaignStateBatchFailureCode]; - /** * Failed response of campaign state * @public @@ -487,19 +444,6 @@ export interface GetConnectInstanceConfigRequest { connectInstanceId: string | undefined; } -/** - * @public - * @enum - */ -export const EncryptionType = { - KMS: "KMS", -} as const; - -/** - * @public - */ -export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType]; - /** * Encryption config for Connect Instance. Note that sensitive data will always be encrypted. * If disabled, service will perform encryption with its own key. @@ -578,41 +522,6 @@ export interface GetInstanceOnboardingJobStatusRequest { connectInstanceId: string | undefined; } -/** - * @public - * @enum - */ -export const InstanceOnboardingJobFailureCode = { - EVENT_BRIDGE_ACCESS_DENIED: "EVENT_BRIDGE_ACCESS_DENIED", - EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED: "EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED", - IAM_ACCESS_DENIED: "IAM_ACCESS_DENIED", - INTERNAL_FAILURE: "INTERNAL_FAILURE", - KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED", - KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND", -} as const; - -/** - * @public - */ -export type InstanceOnboardingJobFailureCode = - (typeof InstanceOnboardingJobFailureCode)[keyof typeof InstanceOnboardingJobFailureCode]; - -/** - * @public - * @enum - */ -export const InstanceOnboardingJobStatusCode = { - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type InstanceOnboardingJobStatusCode = - (typeof InstanceOnboardingJobStatusCode)[keyof typeof InstanceOnboardingJobStatusCode]; - /** * Instance onboarding job status object * @public @@ -649,22 +558,6 @@ export interface GetInstanceOnboardingJobStatusResponse { connectInstanceOnboardingJobStatus?: InstanceOnboardingJobStatus | undefined; } -/** - * @public - * @enum - */ -export const InstanceIdFilterOperator = { - /** - * Equals operator - */ - EQ: "Eq", -} as const; - -/** - * @public - */ -export type InstanceIdFilterOperator = (typeof InstanceIdFilterOperator)[keyof typeof InstanceIdFilterOperator]; - /** * Connect instance identifier filter * @public @@ -851,30 +744,6 @@ export interface PutDialRequestBatchRequest { dialRequests: DialRequest[] | undefined; } -/** - * @public - * @enum - */ -export const FailureCode = { - /** - * The request failed to satisfy the constraints specified by the service - */ - INVALID_INPUT: "InvalidInput", - /** - * Request throttled due to large number of pending dial requests - */ - REQUEST_THROTTLED: "RequestThrottled", - /** - * Unexpected error during processing of request - */ - UNKNOWN_ERROR: "UnknownError", -} as const; - -/** - * @public - */ -export type FailureCode = (typeof FailureCode)[keyof typeof FailureCode]; - /** * A failed request identified by the unique client token. * @public diff --git a/clients/client-connectcampaignsv2/src/index.ts b/clients/client-connectcampaignsv2/src/index.ts index 79a4b73dd4ce..bb1ffd4f5654 100644 --- a/clients/client-connectcampaignsv2/src/index.ts +++ b/clients/client-connectcampaignsv2/src/index.ts @@ -13,6 +13,7 @@ export type { ConnectCampaignsV2ExtensionConfiguration } from "./extensionConfig export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-connectcampaignsv2/src/models/enums.ts b/clients/client-connectcampaignsv2/src/models/enums.ts new file mode 100644 index 000000000000..61859369e64b --- /dev/null +++ b/clients/client-connectcampaignsv2/src/models/enums.ts @@ -0,0 +1,312 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const AgentAction = { + DISCARD: "DISCARD", +} as const; +/** + * @public + */ +export type AgentAction = (typeof AgentAction)[keyof typeof AgentAction]; + +/** + * @public + * @enum + */ +export const CommunicationLimitTimeUnit = { + DAY: "DAY", +} as const; +/** + * @public + */ +export type CommunicationLimitTimeUnit = (typeof CommunicationLimitTimeUnit)[keyof typeof CommunicationLimitTimeUnit]; + +/** + * @public + * @enum + */ +export const InstanceLimitsHandling = { + OPT_IN: "OPT_IN", + OPT_OUT: "OPT_OUT", +} as const; +/** + * @public + */ +export type InstanceLimitsHandling = (typeof InstanceLimitsHandling)[keyof typeof InstanceLimitsHandling]; + +/** + * @public + * @enum + */ +export const DayOfWeek = { + FRIDAY: "FRIDAY", + MONDAY: "MONDAY", + SATURDAY: "SATURDAY", + SUNDAY: "SUNDAY", + THURSDAY: "THURSDAY", + TUESDAY: "TUESDAY", + WEDNESDAY: "WEDNESDAY", +} as const; +/** + * @public + */ +export type DayOfWeek = (typeof DayOfWeek)[keyof typeof DayOfWeek]; + +/** + * @public + * @enum + */ +export const LocalTimeZoneDetectionType = { + AREA_CODE: "AREA_CODE", + ZIP_CODE: "ZIP_CODE", +} as const; +/** + * @public + */ +export type LocalTimeZoneDetectionType = (typeof LocalTimeZoneDetectionType)[keyof typeof LocalTimeZoneDetectionType]; + +/** + * @public + * @enum + */ +export const ChannelSubtype = { + EMAIL: "EMAIL", + SMS: "SMS", + TELEPHONY: "TELEPHONY", +} as const; +/** + * @public + */ +export type ChannelSubtype = (typeof ChannelSubtype)[keyof typeof ChannelSubtype]; + +/** + * @public + * @enum + */ +export const CommunicationLimitsConfigType = { + ALL_CHANNEL_SUBTYPES: "ALL_CHANNEL_SUBTYPES", +} as const; +/** + * @public + */ +export type CommunicationLimitsConfigType = + (typeof CommunicationLimitsConfigType)[keyof typeof CommunicationLimitsConfigType]; + +/** + * @public + * @enum + */ +export const CampaignState = { + /** + * Campaign is in completed state + */ + COMPLETED: "Completed", + /** + * Campaign is in failed state + */ + FAILED: "Failed", + /** + * Campaign is in initialized state + */ + INITIALIZED: "Initialized", + /** + * Campaign is in paused state + */ + PAUSED: "Paused", + /** + * Campaign is in running state + */ + RUNNING: "Running", + /** + * Campaign is in stopped state + */ + STOPPED: "Stopped", +} as const; +/** + * @public + */ +export type CampaignState = (typeof CampaignState)[keyof typeof CampaignState]; + +/** + * @public + * @enum + */ +export const CommunicationTimeConfigType = { + EMAIL: "EMAIL", + SMS: "SMS", + TELEPHONY: "TELEPHONY", +} as const; +/** + * @public + */ +export type CommunicationTimeConfigType = + (typeof CommunicationTimeConfigType)[keyof typeof CommunicationTimeConfigType]; + +/** + * @public + * @enum + */ +export const CampaignDeletionPolicy = { + DELETE_ALL: "DELETE_ALL", + RETAIN_ALL: "RETAIN_ALL", +} as const; +/** + * @public + */ +export type CampaignDeletionPolicy = (typeof CampaignDeletionPolicy)[keyof typeof CampaignDeletionPolicy]; + +/** + * @public + * @enum + */ +export const GetCampaignStateBatchFailureCode = { + /** + * The specified resource was not found + */ + RESOURCE_NOT_FOUND: "ResourceNotFound", + /** + * Unexpected error during processing of request + */ + UNKNOWN_ERROR: "UnknownError", +} as const; +/** + * @public + */ +export type GetCampaignStateBatchFailureCode = + (typeof GetCampaignStateBatchFailureCode)[keyof typeof GetCampaignStateBatchFailureCode]; + +/** + * @public + * @enum + */ +export const EncryptionType = { + KMS: "KMS", +} as const; +/** + * @public + */ +export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType]; + +/** + * @public + * @enum + */ +export const InstanceOnboardingJobFailureCode = { + EVENT_BRIDGE_ACCESS_DENIED: "EVENT_BRIDGE_ACCESS_DENIED", + EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED: "EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED", + IAM_ACCESS_DENIED: "IAM_ACCESS_DENIED", + INTERNAL_FAILURE: "INTERNAL_FAILURE", + KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED", + KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND", +} as const; +/** + * @public + */ +export type InstanceOnboardingJobFailureCode = + (typeof InstanceOnboardingJobFailureCode)[keyof typeof InstanceOnboardingJobFailureCode]; + +/** + * @public + * @enum + */ +export const InstanceOnboardingJobStatusCode = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type InstanceOnboardingJobStatusCode = + (typeof InstanceOnboardingJobStatusCode)[keyof typeof InstanceOnboardingJobStatusCode]; + +/** + * @public + * @enum + */ +export const InstanceIdFilterOperator = { + /** + * Equals operator + */ + EQ: "Eq", +} as const; +/** + * @public + */ +export type InstanceIdFilterOperator = (typeof InstanceIdFilterOperator)[keyof typeof InstanceIdFilterOperator]; + +/** + * @public + * @enum + */ +export const EventType = { + CAMPAIGN_EMAIL: "Campaign-Email", + CAMPAIGN_ORCHESTRATION: "Campaign-Orchestration", + CAMPAIGN_SMS: "Campaign-SMS", + CAMPAIGN_TELEPHONY: "Campaign-Telephony", +} as const; +/** + * @public + */ +export type EventType = (typeof EventType)[keyof typeof EventType]; + +/** + * @public + * @enum + */ +export const FailureCode = { + /** + * Request throttled due to large number of pending dial requests + */ + BUFFER_LIMIT_EXCEEDED: "BufferLimitExceeded", + /** + * The request failed to satisfy the constraints specified by the service + */ + INVALID_INPUT: "InvalidInput", + /** + * The request was throttled due to excessive usage + */ + REQUEST_THROTTLED: "RequestThrottled", + /** + * Unexpected error during processing of request + */ + UNKNOWN_ERROR: "UnknownError", +} as const; +/** + * @public + */ +export type FailureCode = (typeof FailureCode)[keyof typeof FailureCode]; + +/** + * @public + * @enum + */ +export const ProfileOutboundRequestFailureCode = { + /** + * The specified resource conflicts with another resource + */ + CONFLICT: "Conflict", + /** + * The request failed to satisfy the constraints specified by the service + */ + INVALID_INPUT: "InvalidInput", + /** + * Request throttled due to large number of requests + */ + REQUEST_THROTTLED: "RequestThrottled", + /** + * The specified resource was not found + */ + RESOURCE_NOT_FOUND: "ResourceNotFound", + /** + * Unexpected error during processing of request + */ + UNKNOWN_ERROR: "UnknownError", +} as const; +/** + * @public + */ +export type ProfileOutboundRequestFailureCode = + (typeof ProfileOutboundRequestFailureCode)[keyof typeof ProfileOutboundRequestFailureCode]; diff --git a/clients/client-connectcampaignsv2/src/models/errors.ts b/clients/client-connectcampaignsv2/src/models/errors.ts index 09385d6fc660..e37e0cf07c8d 100644 --- a/clients/client-connectcampaignsv2/src/models/errors.ts +++ b/clients/client-connectcampaignsv2/src/models/errors.ts @@ -2,7 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { ConnectCampaignsV2ServiceException as __BaseException } from "./ConnectCampaignsV2ServiceException"; -import { CampaignState } from "./models_0"; +import { CampaignState } from "./enums"; /** * You do not have sufficient access to perform this action. diff --git a/clients/client-connectcampaignsv2/src/models/models_0.ts b/clients/client-connectcampaignsv2/src/models/models_0.ts index 3813af9e429d..5c088cd245b0 100644 --- a/clients/client-connectcampaignsv2/src/models/models_0.ts +++ b/clients/client-connectcampaignsv2/src/models/models_0.ts @@ -1,16 +1,24 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const AgentAction = { - DISCARD: "DISCARD", -} as const; - -/** - * @public - */ -export type AgentAction = (typeof AgentAction)[keyof typeof AgentAction]; +import { + AgentAction, + CampaignDeletionPolicy, + CampaignState, + ChannelSubtype, + CommunicationLimitsConfigType, + CommunicationLimitTimeUnit, + CommunicationTimeConfigType, + DayOfWeek, + EncryptionType, + EventType, + FailureCode, + GetCampaignStateBatchFailureCode, + InstanceIdFilterOperator, + InstanceLimitsHandling, + InstanceOnboardingJobFailureCode, + InstanceOnboardingJobStatusCode, + LocalTimeZoneDetectionType, + ProfileOutboundRequestFailureCode, +} from "./enums"; /** * Agentless config @@ -431,19 +439,6 @@ export interface ChannelSubtypeConfig { email?: EmailChannelSubtypeConfig | undefined; } -/** - * @public - * @enum - */ -export const CommunicationLimitTimeUnit = { - DAY: "DAY", -} as const; - -/** - * @public - */ -export type CommunicationLimitTimeUnit = (typeof CommunicationLimitTimeUnit)[keyof typeof CommunicationLimitTimeUnit]; - /** * Communication Limit * @public @@ -507,20 +502,6 @@ export namespace CommunicationLimits { } } -/** - * @public - * @enum - */ -export const InstanceLimitsHandling = { - OPT_IN: "OPT_IN", - OPT_OUT: "OPT_OUT", -} as const; - -/** - * @public - */ -export type InstanceLimitsHandling = (typeof InstanceLimitsHandling)[keyof typeof InstanceLimitsHandling]; - /** * Communication limits config * @public @@ -539,25 +520,6 @@ export interface CommunicationLimitsConfig { instanceLimitsHandling?: InstanceLimitsHandling | undefined; } -/** - * @public - * @enum - */ -export const DayOfWeek = { - FRIDAY: "FRIDAY", - MONDAY: "MONDAY", - SATURDAY: "SATURDAY", - SUNDAY: "SUNDAY", - THURSDAY: "THURSDAY", - TUESDAY: "TUESDAY", - WEDNESDAY: "WEDNESDAY", -} as const; - -/** - * @public - */ -export type DayOfWeek = (typeof DayOfWeek)[keyof typeof DayOfWeek]; - /** * Time range in 24 hour format * @public @@ -692,20 +654,6 @@ export interface TimeWindow { restrictedPeriods?: RestrictedPeriods | undefined; } -/** - * @public - * @enum - */ -export const LocalTimeZoneDetectionType = { - AREA_CODE: "AREA_CODE", - ZIP_CODE: "ZIP_CODE", -} as const; - -/** - * @public - */ -export type LocalTimeZoneDetectionType = (typeof LocalTimeZoneDetectionType)[keyof typeof LocalTimeZoneDetectionType]; - /** * Local time zone config * @public @@ -936,21 +884,6 @@ export interface DeleteCampaignRequest { id: string | undefined; } -/** - * @public - * @enum - */ -export const ChannelSubtype = { - EMAIL: "EMAIL", - SMS: "SMS", - TELEPHONY: "TELEPHONY", -} as const; - -/** - * @public - */ -export type ChannelSubtype = (typeof ChannelSubtype)[keyof typeof ChannelSubtype]; - /** * The request for DeleteCampaignChannelSubtypeConfig API. * @public @@ -969,20 +902,6 @@ export interface DeleteCampaignChannelSubtypeConfigRequest { channelSubtype: ChannelSubtype | undefined; } -/** - * @public - * @enum - */ -export const CommunicationLimitsConfigType = { - ALL_CHANNEL_SUBTYPES: "ALL_CHANNEL_SUBTYPES", -} as const; - -/** - * @public - */ -export type CommunicationLimitsConfigType = - (typeof CommunicationLimitsConfigType)[keyof typeof CommunicationLimitsConfigType]; - /** * The request for DeleteCampaignCommunicationLimits API. * @public @@ -1001,58 +920,6 @@ export interface DeleteCampaignCommunicationLimitsRequest { config: CommunicationLimitsConfigType | undefined; } -/** - * @public - * @enum - */ -export const CampaignState = { - /** - * Campaign is in completed state - */ - COMPLETED: "Completed", - /** - * Campaign is in failed state - */ - FAILED: "Failed", - /** - * Campaign is in initialized state - */ - INITIALIZED: "Initialized", - /** - * Campaign is in paused state - */ - PAUSED: "Paused", - /** - * Campaign is in running state - */ - RUNNING: "Running", - /** - * Campaign is in stopped state - */ - STOPPED: "Stopped", -} as const; - -/** - * @public - */ -export type CampaignState = (typeof CampaignState)[keyof typeof CampaignState]; - -/** - * @public - * @enum - */ -export const CommunicationTimeConfigType = { - EMAIL: "EMAIL", - SMS: "SMS", - TELEPHONY: "TELEPHONY", -} as const; - -/** - * @public - */ -export type CommunicationTimeConfigType = - (typeof CommunicationTimeConfigType)[keyof typeof CommunicationTimeConfigType]; - /** * The request for DeleteCampaignCommunicationTime API. * @public @@ -1071,20 +938,6 @@ export interface DeleteCampaignCommunicationTimeRequest { config: CommunicationTimeConfigType | undefined; } -/** - * @public - * @enum - */ -export const CampaignDeletionPolicy = { - DELETE_ALL: "DELETE_ALL", - RETAIN_ALL: "RETAIN_ALL", -} as const; - -/** - * @public - */ -export type CampaignDeletionPolicy = (typeof CampaignDeletionPolicy)[keyof typeof CampaignDeletionPolicy]; - /** * The request for DeleteConnectInstanceConfig API. * @public @@ -1342,27 +1195,6 @@ export interface GetCampaignStateBatchRequest { campaignIds: string[] | undefined; } -/** - * @public - * @enum - */ -export const GetCampaignStateBatchFailureCode = { - /** - * The specified resource was not found - */ - RESOURCE_NOT_FOUND: "ResourceNotFound", - /** - * Unexpected error during processing of request - */ - UNKNOWN_ERROR: "UnknownError", -} as const; - -/** - * @public - */ -export type GetCampaignStateBatchFailureCode = - (typeof GetCampaignStateBatchFailureCode)[keyof typeof GetCampaignStateBatchFailureCode]; - /** * Failed response of campaign state * @public @@ -1429,19 +1261,6 @@ export interface GetConnectInstanceConfigRequest { connectInstanceId: string | undefined; } -/** - * @public - * @enum - */ -export const EncryptionType = { - KMS: "KMS", -} as const; - -/** - * @public - */ -export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType]; - /** * Encryption config for Connect Instance. Note that sensitive data will always be encrypted. * If disabled, service will perform encryption with its own key. @@ -1556,41 +1375,6 @@ export interface GetInstanceOnboardingJobStatusRequest { connectInstanceId: string | undefined; } -/** - * @public - * @enum - */ -export const InstanceOnboardingJobFailureCode = { - EVENT_BRIDGE_ACCESS_DENIED: "EVENT_BRIDGE_ACCESS_DENIED", - EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED: "EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED", - IAM_ACCESS_DENIED: "IAM_ACCESS_DENIED", - INTERNAL_FAILURE: "INTERNAL_FAILURE", - KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED", - KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND", -} as const; - -/** - * @public - */ -export type InstanceOnboardingJobFailureCode = - (typeof InstanceOnboardingJobFailureCode)[keyof typeof InstanceOnboardingJobFailureCode]; - -/** - * @public - * @enum - */ -export const InstanceOnboardingJobStatusCode = { - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type InstanceOnboardingJobStatusCode = - (typeof InstanceOnboardingJobStatusCode)[keyof typeof InstanceOnboardingJobStatusCode]; - /** * Instance onboarding job status object * @public @@ -1627,22 +1411,6 @@ export interface GetInstanceOnboardingJobStatusResponse { connectInstanceOnboardingJobStatus?: InstanceOnboardingJobStatus | undefined; } -/** - * @public - * @enum - */ -export const InstanceIdFilterOperator = { - /** - * Equals operator - */ - EQ: "Eq", -} as const; - -/** - * @public - */ -export type InstanceIdFilterOperator = (typeof InstanceIdFilterOperator)[keyof typeof InstanceIdFilterOperator]; - /** * Connect instance identifier filter * @public @@ -1787,22 +1555,6 @@ export interface ListConnectInstanceIntegrationsRequest { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const EventType = { - CAMPAIGN_EMAIL: "Campaign-Email", - CAMPAIGN_ORCHESTRATION: "Campaign-Orchestration", - CAMPAIGN_SMS: "Campaign-SMS", - CAMPAIGN_TELEPHONY: "Campaign-Telephony", -} as const; - -/** - * @public - */ -export type EventType = (typeof EventType)[keyof typeof EventType]; - /** * Customer Profiles integration summary * @public @@ -2266,34 +2018,6 @@ export interface PutOutboundRequestBatchRequest { outboundRequests: OutboundRequest[] | undefined; } -/** - * @public - * @enum - */ -export const FailureCode = { - /** - * Request throttled due to large number of pending dial requests - */ - BUFFER_LIMIT_EXCEEDED: "BufferLimitExceeded", - /** - * The request failed to satisfy the constraints specified by the service - */ - INVALID_INPUT: "InvalidInput", - /** - * The request was throttled due to excessive usage - */ - REQUEST_THROTTLED: "RequestThrottled", - /** - * Unexpected error during processing of request - */ - UNKNOWN_ERROR: "UnknownError", -} as const; - -/** - * @public - */ -export type FailureCode = (typeof FailureCode)[keyof typeof FailureCode]; - /** * A failed request identified by the unique client token. * @public @@ -2396,39 +2120,6 @@ export interface PutProfileOutboundRequestBatchRequest { profileOutboundRequests: ProfileOutboundRequest[] | undefined; } -/** - * @public - * @enum - */ -export const ProfileOutboundRequestFailureCode = { - /** - * The specified resource conflicts with another resource - */ - CONFLICT: "Conflict", - /** - * The request failed to satisfy the constraints specified by the service - */ - INVALID_INPUT: "InvalidInput", - /** - * Request throttled due to large number of requests - */ - REQUEST_THROTTLED: "RequestThrottled", - /** - * The specified resource was not found - */ - RESOURCE_NOT_FOUND: "ResourceNotFound", - /** - * Unexpected error during processing of request - */ - UNKNOWN_ERROR: "UnknownError", -} as const; - -/** - * @public - */ -export type ProfileOutboundRequestFailureCode = - (typeof ProfileOutboundRequestFailureCode)[keyof typeof ProfileOutboundRequestFailureCode]; - /** * Failure details for a profile outbound request * @public diff --git a/clients/client-connectcases/src/index.ts b/clients/client-connectcases/src/index.ts index b9cf650df2b5..cb0c9793ed60 100644 --- a/clients/client-connectcases/src/index.ts +++ b/clients/client-connectcases/src/index.ts @@ -13,6 +13,7 @@ export type { ConnectCasesExtensionConfiguration } from "./extensionConfiguratio export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-connectcases/src/models/enums.ts b/clients/client-connectcases/src/models/enums.ts new file mode 100644 index 000000000000..a00f3089e9bc --- /dev/null +++ b/clients/client-connectcases/src/models/enums.ts @@ -0,0 +1,169 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const RelatedItemType = { + COMMENT: "Comment", + CONNECT_CASE: "ConnectCase", + CONTACT: "Contact", + CUSTOM: "Custom", + FILE: "File", + SLA: "Sla", +} as const; +/** + * @public + */ +export type RelatedItemType = (typeof RelatedItemType)[keyof typeof RelatedItemType]; + +/** + * @public + * @enum + */ +export const AuditEventType = { + CASE_CREATED: "Case.Created", + CASE_UPDATED: "Case.Updated", + RELATED_ITEM_CREATED: "RelatedItem.Created", +} as const; +/** + * @public + */ +export type AuditEventType = (typeof AuditEventType)[keyof typeof AuditEventType]; + +/** + * @public + * @enum + */ +export const CommentBodyTextType = { + PLAINTEXT: "Text/Plain", +} as const; +/** + * @public + */ +export type CommentBodyTextType = (typeof CommentBodyTextType)[keyof typeof CommentBodyTextType]; + +/** + * @public + * @enum + */ +export const SlaType = { + CASE_FIELD: "CaseField", +} as const; +/** + * @public + */ +export type SlaType = (typeof SlaType)[keyof typeof SlaType]; + +/** + * @public + * @enum + */ +export const SlaStatus = { + ACTIVE: "Active", + MET: "Met", + NOT_MET: "NotMet", + OVERDUE: "Overdue", +} as const; +/** + * @public + */ +export type SlaStatus = (typeof SlaStatus)[keyof typeof SlaStatus]; + +/** + * @public + * @enum + */ +export const Order = { + ASCENDING: "Asc", + DESCENDING: "Desc", +} as const; +/** + * @public + */ +export type Order = (typeof Order)[keyof typeof Order]; + +/** + * @public + * @enum + */ +export const RuleType = { + FIELD_OPTIONS: "FieldOptions", + HIDDEN: "Hidden", + REQUIRED: "Required", +} as const; +/** + * @public + */ +export type RuleType = (typeof RuleType)[keyof typeof RuleType]; + +/** + * @public + * @enum + */ +export const DomainStatus = { + ACTIVE: "Active", + CREATION_FAILED: "CreationFailed", + CREATION_IN_PROGRESS: "CreationInProgress", +} as const; +/** + * @public + */ +export type DomainStatus = (typeof DomainStatus)[keyof typeof DomainStatus]; + +/** + * @public + * @enum + */ +export const SearchAllRelatedItemsSortProperty = { + ASSOCIATION_TIME: "AssociationTime", + CASE_ID: "CaseId", +} as const; +/** + * @public + */ +export type SearchAllRelatedItemsSortProperty = + (typeof SearchAllRelatedItemsSortProperty)[keyof typeof SearchAllRelatedItemsSortProperty]; + +/** + * @public + * @enum + */ +export const FieldNamespace = { + CUSTOM: "Custom", + SYSTEM: "System", +} as const; +/** + * @public + */ +export type FieldNamespace = (typeof FieldNamespace)[keyof typeof FieldNamespace]; + +/** + * @public + * @enum + */ +export const FieldType = { + BOOLEAN: "Boolean", + DATE_TIME: "DateTime", + NUMBER: "Number", + SINGLE_SELECT: "SingleSelect", + TEXT: "Text", + URL: "Url", + USER: "User", +} as const; +/** + * @public + */ +export type FieldType = (typeof FieldType)[keyof typeof FieldType]; + +/** + * @public + * @enum + */ +export const TemplateStatus = { + ACTIVE: "Active", + INACTIVE: "Inactive", +} as const; +/** + * @public + */ +export type TemplateStatus = (typeof TemplateStatus)[keyof typeof TemplateStatus]; diff --git a/clients/client-connectcases/src/models/models_0.ts b/clients/client-connectcases/src/models/models_0.ts index 05e7993b2583..0eefdc4ae996 100644 --- a/clients/client-connectcases/src/models/models_0.ts +++ b/clients/client-connectcases/src/models/models_0.ts @@ -1,4 +1,19 @@ // smithy-typescript generated code +import { + AuditEventType, + CommentBodyTextType, + DomainStatus, + FieldNamespace, + FieldType, + Order, + RelatedItemType, + RuleType, + SearchAllRelatedItemsSortProperty, + SlaStatus, + SlaType, + TemplateStatus, +} from "./enums"; + /** *

An empty value. You cannot set EmptyFieldValue on a field that is required on a case template.

This structure will never have any data members. It signifies an empty value on a case field.

* @public @@ -502,39 +517,6 @@ export interface AuditEventPerformedBy { iamPrincipalArn: string | undefined; } -/** - * @public - * @enum - */ -export const RelatedItemType = { - COMMENT: "Comment", - CONNECT_CASE: "ConnectCase", - CONTACT: "Contact", - CUSTOM: "Custom", - FILE: "File", - SLA: "Sla", -} as const; - -/** - * @public - */ -export type RelatedItemType = (typeof RelatedItemType)[keyof typeof RelatedItemType]; - -/** - * @public - * @enum - */ -export const AuditEventType = { - CASE_CREATED: "Case.Created", - CASE_UPDATED: "Case.Updated", - RELATED_ITEM_CREATED: "RelatedItem.Created", -} as const; - -/** - * @public - */ -export type AuditEventType = (typeof AuditEventType)[keyof typeof AuditEventType]; - /** *

Represents the content of a particular audit event.

* @public @@ -658,19 +640,6 @@ export interface ListCasesForContactResponse { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const CommentBodyTextType = { - PLAINTEXT: "Text/Plain", -} as const; - -/** - * @public - */ -export type CommentBodyTextType = (typeof CommentBodyTextType)[keyof typeof CommentBodyTextType]; - /** *

Represents the content of a Comment to be returned to agents.

* @public @@ -737,19 +706,6 @@ export interface FileContent { fileArn: string | undefined; } -/** - * @public - * @enum - */ -export const SlaType = { - CASE_FIELD: "CaseField", -} as const; - -/** - * @public - */ -export type SlaType = (typeof SlaType)[keyof typeof SlaType]; - /** *

Represents the input configuration of an SLA being created.

* @public @@ -1209,22 +1165,6 @@ export interface FileFilter { fileArn?: string | undefined; } -/** - * @public - * @enum - */ -export const SlaStatus = { - ACTIVE: "Active", - MET: "Met", - NOT_MET: "NotMet", - OVERDUE: "Overdue", -} as const; - -/** - * @public - */ -export type SlaStatus = (typeof SlaStatus)[keyof typeof SlaStatus]; - /** *

A filter for related items of type SLA.

* @public @@ -1539,20 +1479,6 @@ export interface SearchRelatedItemsResponse { relatedItems: SearchRelatedItemsResponseItem[] | undefined; } -/** - * @public - * @enum - */ -export const Order = { - ASCENDING: "Asc", - DESCENDING: "Desc", -} as const; - -/** - * @public - */ -export type Order = (typeof Order)[keyof typeof Order]; - /** *

A structured set of sort terms.

* @public @@ -2233,21 +2159,6 @@ export interface ListCaseRulesRequest { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const RuleType = { - FIELD_OPTIONS: "FieldOptions", - HIDDEN: "Hidden", - REQUIRED: "Required", -} as const; - -/** - * @public - */ -export type RuleType = (typeof RuleType)[keyof typeof RuleType]; - /** *

Summary information of this case rule. In the Amazon Connect admin website, case rules are known as case field conditions. For more information about case field conditions, see Add case field conditions to a case template.

* @public @@ -2352,21 +2263,6 @@ export interface CreateDomainRequest { name: string | undefined; } -/** - * @public - * @enum - */ -export const DomainStatus = { - ACTIVE: "Active", - CREATION_FAILED: "CreationFailed", - CREATION_IN_PROGRESS: "CreationInProgress", -} as const; - -/** - * @public - */ -export type DomainStatus = (typeof DomainStatus)[keyof typeof DomainStatus]; - /** * @public */ @@ -2620,21 +2516,6 @@ export interface PutCaseEventConfigurationRequest { */ export interface PutCaseEventConfigurationResponse {} -/** - * @public - * @enum - */ -export const SearchAllRelatedItemsSortProperty = { - ASSOCIATION_TIME: "AssociationTime", - CASE_ID: "CaseId", -} as const; - -/** - * @public - */ -export type SearchAllRelatedItemsSortProperty = - (typeof SearchAllRelatedItemsSortProperty)[keyof typeof SearchAllRelatedItemsSortProperty]; - /** *

The order in which all returned related items should be sorted.

* @public @@ -2759,39 +2640,6 @@ export interface FieldError { message?: string | undefined; } -/** - * @public - * @enum - */ -export const FieldNamespace = { - CUSTOM: "Custom", - SYSTEM: "System", -} as const; - -/** - * @public - */ -export type FieldNamespace = (typeof FieldNamespace)[keyof typeof FieldNamespace]; - -/** - * @public - * @enum - */ -export const FieldType = { - BOOLEAN: "Boolean", - DATE_TIME: "DateTime", - NUMBER: "Number", - SINGLE_SELECT: "SingleSelect", - TEXT: "Text", - URL: "Url", - USER: "User", -} as const; - -/** - * @public - */ -export type FieldType = (typeof FieldType)[keyof typeof FieldType]; - /** *

Object to store detailed field information.

* @public @@ -3632,20 +3480,6 @@ export interface TemplateRule { fieldId?: string | undefined; } -/** - * @public - * @enum - */ -export const TemplateStatus = { - ACTIVE: "Active", - INACTIVE: "Inactive", -} as const; - -/** - * @public - */ -export type TemplateStatus = (typeof TemplateStatus)[keyof typeof TemplateStatus]; - /** * @public */ diff --git a/clients/client-dataexchange/src/index.ts b/clients/client-dataexchange/src/index.ts index e04b5cec9cd9..b6635c1038d6 100644 --- a/clients/client-dataexchange/src/index.ts +++ b/clients/client-dataexchange/src/index.ts @@ -30,6 +30,7 @@ export type { DataExchangeExtensionConfiguration } from "./extensionConfiguratio export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-dataexchange/src/models/enums.ts b/clients/client-dataexchange/src/models/enums.ts new file mode 100644 index 000000000000..35b067989381 --- /dev/null +++ b/clients/client-dataexchange/src/models/enums.ts @@ -0,0 +1,354 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const AcceptanceStateFilterValue = { + ACCEPTED: "ACCEPTED", + PENDING_RECEIVER_ACCEPTANCE: "PENDING_RECEIVER_ACCEPTANCE", +} as const; +/** + * @public + */ +export type AcceptanceStateFilterValue = (typeof AcceptanceStateFilterValue)[keyof typeof AcceptanceStateFilterValue]; + +/** + * @public + * @enum + */ +export const DataGrantAcceptanceState = { + ACCEPTED: "ACCEPTED", + PENDING_RECEIVER_ACCEPTANCE: "PENDING_RECEIVER_ACCEPTANCE", +} as const; +/** + * @public + */ +export type DataGrantAcceptanceState = (typeof DataGrantAcceptanceState)[keyof typeof DataGrantAcceptanceState]; + +/** + * @public + * @enum + */ +export const GrantDistributionScope = { + AWS_ORGANIZATION: "AWS_ORGANIZATION", + NONE: "NONE", +} as const; +/** + * @public + */ +export type GrantDistributionScope = (typeof GrantDistributionScope)[keyof typeof GrantDistributionScope]; + +/** + * @public + * @enum + */ +export const ResourceType = { + ASSET: "ASSET", + DATA_GRANT: "DATA_GRANT", + DATA_SET: "DATA_SET", + EVENT_ACTION: "EVENT_ACTION", + JOB: "JOB", + REVISION: "REVISION", +} as const; +/** + * @public + */ +export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; + +/** + * @public + * @enum + */ +export const ExceptionCause = { + InsufficientS3BucketPolicy: "InsufficientS3BucketPolicy", + S3AccessDenied: "S3AccessDenied", +} as const; +/** + * @public + */ +export type ExceptionCause = (typeof ExceptionCause)[keyof typeof ExceptionCause]; + +/** + * @public + * @enum + */ +export const ServerSideEncryptionTypes = { + AES256: "AES256", + aws_kms: "aws:kms", +} as const; +/** + * @public + */ +export type ServerSideEncryptionTypes = (typeof ServerSideEncryptionTypes)[keyof typeof ServerSideEncryptionTypes]; + +/** + * @public + * @enum + */ +export const ProtocolType = { + REST: "REST", +} as const; +/** + * @public + */ +export type ProtocolType = (typeof ProtocolType)[keyof typeof ProtocolType]; + +/** + * @public + * @enum + */ +export const LFResourceType = { + DATABASE: "DATABASE", + TABLE: "TABLE", +} as const; +/** + * @public + */ +export type LFResourceType = (typeof LFResourceType)[keyof typeof LFResourceType]; + +/** + * @public + * @enum + */ +export const LakeFormationDataPermissionType = { + LFTagPolicy: "LFTagPolicy", +} as const; +/** + * @public + */ +export type LakeFormationDataPermissionType = + (typeof LakeFormationDataPermissionType)[keyof typeof LakeFormationDataPermissionType]; + +/** + * @public + * @enum + */ +export const LFPermission = { + DESCRIBE: "DESCRIBE", + SELECT: "SELECT", +} as const; +/** + * @public + */ +export type LFPermission = (typeof LFPermission)[keyof typeof LFPermission]; + +/** + * @public + * @enum + */ +export const AssetType = { + API_GATEWAY_API: "API_GATEWAY_API", + LAKE_FORMATION_DATA_PERMISSION: "LAKE_FORMATION_DATA_PERMISSION", + REDSHIFT_DATA_SHARE: "REDSHIFT_DATA_SHARE", + S3_DATA_ACCESS: "S3_DATA_ACCESS", + S3_SNAPSHOT: "S3_SNAPSHOT", +} as const; +/** + * @public + */ +export type AssetType = (typeof AssetType)[keyof typeof AssetType]; + +/** + * @public + * @enum + */ +export const Code = { + ACCESS_DENIED_EXCEPTION: "ACCESS_DENIED_EXCEPTION", + INTERNAL_SERVER_EXCEPTION: "INTERNAL_SERVER_EXCEPTION", + MALWARE_DETECTED: "MALWARE_DETECTED", + MALWARE_SCAN_ENCRYPTED_FILE: "MALWARE_SCAN_ENCRYPTED_FILE", + RESOURCE_NOT_FOUND_EXCEPTION: "RESOURCE_NOT_FOUND_EXCEPTION", + SERVICE_QUOTA_EXCEEDED_EXCEPTION: "SERVICE_QUOTA_EXCEEDED_EXCEPTION", + VALIDATION_EXCEPTION: "VALIDATION_EXCEPTION", +} as const; +/** + * @public + */ +export type Code = (typeof Code)[keyof typeof Code]; + +/** + * @public + * @enum + */ +export const LimitName = { + AWS_Lake_Formation_data_permission_assets_per_revision: "AWS Lake Formation data permission assets per revision", + Active_and_pending_data_grants: "Active and pending data grants", + Amazon_API_Gateway_API_assets_per_revision: "Amazon API Gateway API assets per revision", + Amazon_Redshift_datashare_assets_per_import_job_from_Redshift: + "Amazon Redshift datashare assets per import job from Redshift", + Amazon_Redshift_datashare_assets_per_revision: "Amazon Redshift datashare assets per revision", + Amazon_S3_data_access_assets_per_revision: "Amazon S3 data access assets per revision", + Asset_per_export_job_from_Amazon_S3: "Asset per export job from Amazon S3", + Asset_size_in_GB: "Asset size in GB", + Assets_per_import_job_from_Amazon_S3: "Assets per import job from Amazon S3", + Assets_per_revision: "Assets per revision", + Auto_export_event_actions_per_data_set: "Auto export event actions per data set", + Concurrent_in_progress_jobs_to_create_Amazon_S3_data_access_assets_from_S3_buckets: + "Concurrent in progress jobs to create Amazon S3 data access assets from S3 buckets", + Concurrent_in_progress_jobs_to_export_assets_to_Amazon_S3: + "Concurrent in progress jobs to export assets to Amazon S3", + Concurrent_in_progress_jobs_to_export_assets_to_a_signed_URL: + "Concurrent in progress jobs to export assets to a signed URL", + Concurrent_in_progress_jobs_to_export_revisions_to_Amazon_S3: + "Concurrent in progress jobs to export revisions to Amazon S3", + Concurrent_in_progress_jobs_to_import_assets_from_Amazon_Redshift_datashares: + "Concurrent in progress jobs to import assets from Amazon Redshift datashares", + Concurrent_in_progress_jobs_to_import_assets_from_Amazon_S3: + "Concurrent in progress jobs to import assets from Amazon S3", + Concurrent_in_progress_jobs_to_import_assets_from_a_signed_URL: + "Concurrent in progress jobs to import assets from a signed URL", + Concurrent_in_progress_jobs_to_import_assets_from_an_API_Gateway_API: + "Concurrent in progress jobs to import assets from an API Gateway API", + Concurrent_in_progress_jobs_to_import_assets_from_an_AWS_Lake_Formation_tag_policy: + "Concurrent in progress jobs to import assets from an AWS Lake Formation tag policy", + Data_sets_per_account: "Data sets per account", + Data_sets_per_product: "Data sets per product", + Event_actions_per_account: "Event actions per account", + Pending_data_grants_per_consumer: "Pending data grants per consumer", + Products_per_account: "Products per account", + Revisions_per_AWS_Lake_Formation_data_permission_data_set: + "Revisions per AWS Lake Formation data permission data set", + Revisions_per_Amazon_API_Gateway_API_data_set: "Revisions per Amazon API Gateway API data set", + Revisions_per_Amazon_Redshift_datashare_data_set: "Revisions per Amazon Redshift datashare data set", + Revisions_per_Amazon_S3_data_access_data_set: "Revisions per Amazon S3 data access data set", + Revisions_per_data_set: "Revisions per data set", +} as const; +/** + * @public + */ +export type LimitName = (typeof LimitName)[keyof typeof LimitName]; + +/** + * @public + * @enum + */ +export const Origin = { + ENTITLED: "ENTITLED", + OWNED: "OWNED", +} as const; +/** + * @public + */ +export type Origin = (typeof Origin)[keyof typeof Origin]; + +/** + * @public + * @enum + */ +export const DatabaseLFTagPolicyPermission = { + DESCRIBE: "DESCRIBE", +} as const; +/** + * @public + */ +export type DatabaseLFTagPolicyPermission = + (typeof DatabaseLFTagPolicyPermission)[keyof typeof DatabaseLFTagPolicyPermission]; + +/** + * @public + * @enum + */ +export const TableTagPolicyLFPermission = { + DESCRIBE: "DESCRIBE", + SELECT: "SELECT", +} as const; +/** + * @public + */ +export type TableTagPolicyLFPermission = (typeof TableTagPolicyLFPermission)[keyof typeof TableTagPolicyLFPermission]; + +/** + * @public + * @enum + */ +export const Type = { + CREATE_S3_DATA_ACCESS_FROM_S3_BUCKET: "CREATE_S3_DATA_ACCESS_FROM_S3_BUCKET", + EXPORT_ASSETS_TO_S3: "EXPORT_ASSETS_TO_S3", + EXPORT_ASSET_TO_SIGNED_URL: "EXPORT_ASSET_TO_SIGNED_URL", + EXPORT_REVISIONS_TO_S3: "EXPORT_REVISIONS_TO_S3", + IMPORT_ASSETS_FROM_LAKE_FORMATION_TAG_POLICY: "IMPORT_ASSETS_FROM_LAKE_FORMATION_TAG_POLICY", + IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES: "IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES", + IMPORT_ASSETS_FROM_S3: "IMPORT_ASSETS_FROM_S3", + IMPORT_ASSET_FROM_API_GATEWAY_API: "IMPORT_ASSET_FROM_API_GATEWAY_API", + IMPORT_ASSET_FROM_SIGNED_URL: "IMPORT_ASSET_FROM_SIGNED_URL", +} as const; +/** + * @public + */ +export type Type = (typeof Type)[keyof typeof Type]; + +/** + * @public + * @enum + */ +export const JobErrorLimitName = { + AWS_Lake_Formation_data_permission_assets_per_revision: "AWS Lake Formation data permission assets per revision", + Amazon_Redshift_datashare_assets_per_revision: "Amazon Redshift datashare assets per revision", + Amazon_S3_data_access_assets_per_revision: "Amazon S3 data access assets per revision", + Asset_size_in_GB: "Asset size in GB", + Assets_per_revision: "Assets per revision", +} as const; +/** + * @public + */ +export type JobErrorLimitName = (typeof JobErrorLimitName)[keyof typeof JobErrorLimitName]; + +/** + * @public + * @enum + */ +export const JobErrorResourceTypes = { + ASSET: "ASSET", + DATA_SET: "DATA_SET", + REVISION: "REVISION", +} as const; +/** + * @public + */ +export type JobErrorResourceTypes = (typeof JobErrorResourceTypes)[keyof typeof JobErrorResourceTypes]; + +/** + * @public + * @enum + */ +export const State = { + CANCELLED: "CANCELLED", + COMPLETED: "COMPLETED", + ERROR: "ERROR", + IN_PROGRESS: "IN_PROGRESS", + TIMED_OUT: "TIMED_OUT", + WAITING: "WAITING", +} as const; +/** + * @public + */ +export type State = (typeof State)[keyof typeof State]; + +/** + * @public + * @enum + */ +export const SchemaChangeType = { + ADD: "ADD", + MODIFY: "MODIFY", + REMOVE: "REMOVE", +} as const; +/** + * @public + */ +export type SchemaChangeType = (typeof SchemaChangeType)[keyof typeof SchemaChangeType]; + +/** + * @public + * @enum + */ +export const NotificationType = { + DATA_DELAY: "DATA_DELAY", + DATA_UPDATE: "DATA_UPDATE", + DEPRECATION: "DEPRECATION", + SCHEMA_CHANGE: "SCHEMA_CHANGE", +} as const; +/** + * @public + */ +export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType]; diff --git a/clients/client-dataexchange/src/models/errors.ts b/clients/client-dataexchange/src/models/errors.ts index 40ce7a7abf14..a520ee878a18 100644 --- a/clients/client-dataexchange/src/models/errors.ts +++ b/clients/client-dataexchange/src/models/errors.ts @@ -2,7 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { DataExchangeServiceException as __BaseException } from "./DataExchangeServiceException"; -import { ExceptionCause, LimitName, ResourceType } from "./models_0"; +import { ExceptionCause, LimitName, ResourceType } from "./enums"; /** *

Access to the resource is denied.

diff --git a/clients/client-dataexchange/src/models/models_0.ts b/clients/client-dataexchange/src/models/models_0.ts index bc6a40012589..ac799e62a5a7 100644 --- a/clients/client-dataexchange/src/models/models_0.ts +++ b/clients/client-dataexchange/src/models/models_0.ts @@ -1,17 +1,25 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const AcceptanceStateFilterValue = { - ACCEPTED: "ACCEPTED", - PENDING_RECEIVER_ACCEPTANCE: "PENDING_RECEIVER_ACCEPTANCE", -} as const; - -/** - * @public - */ -export type AcceptanceStateFilterValue = (typeof AcceptanceStateFilterValue)[keyof typeof AcceptanceStateFilterValue]; +import { + AcceptanceStateFilterValue, + AssetType, + Code, + DatabaseLFTagPolicyPermission, + DataGrantAcceptanceState, + GrantDistributionScope, + JobErrorLimitName, + JobErrorResourceTypes, + LakeFormationDataPermissionType, + LFPermission, + LFResourceType, + NotificationType, + Origin, + ProtocolType, + SchemaChangeType, + ServerSideEncryptionTypes, + State, + TableTagPolicyLFPermission, + Type, +} from "./enums"; /** * @public @@ -24,34 +32,6 @@ export interface AcceptDataGrantRequest { DataGrantArn: string | undefined; } -/** - * @public - * @enum - */ -export const DataGrantAcceptanceState = { - ACCEPTED: "ACCEPTED", - PENDING_RECEIVER_ACCEPTANCE: "PENDING_RECEIVER_ACCEPTANCE", -} as const; - -/** - * @public - */ -export type DataGrantAcceptanceState = (typeof DataGrantAcceptanceState)[keyof typeof DataGrantAcceptanceState]; - -/** - * @public - * @enum - */ -export const GrantDistributionScope = { - AWS_ORGANIZATION: "AWS_ORGANIZATION", - NONE: "NONE", -} as const; - -/** - * @public - */ -export type GrantDistributionScope = (typeof GrantDistributionScope)[keyof typeof GrantDistributionScope]; - /** * @public */ @@ -135,52 +115,6 @@ export interface AcceptDataGrantResponse { UpdatedAt: Date | undefined; } -/** - * @public - * @enum - */ -export const ResourceType = { - ASSET: "ASSET", - DATA_GRANT: "DATA_GRANT", - DATA_SET: "DATA_SET", - EVENT_ACTION: "EVENT_ACTION", - JOB: "JOB", - REVISION: "REVISION", -} as const; - -/** - * @public - */ -export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; - -/** - * @public - * @enum - */ -export const ExceptionCause = { - InsufficientS3BucketPolicy: "InsufficientS3BucketPolicy", - S3AccessDenied: "S3AccessDenied", -} as const; - -/** - * @public - */ -export type ExceptionCause = (typeof ExceptionCause)[keyof typeof ExceptionCause]; - -/** - * @public - * @enum - */ -export const ServerSideEncryptionTypes = { - AES256: "AES256", - aws_kms: "aws:kms", -} as const; - -/** - * @public - */ -export type ServerSideEncryptionTypes = (typeof ServerSideEncryptionTypes)[keyof typeof ServerSideEncryptionTypes]; - /** *

Encryption configuration of the export job. Includes the encryption type in addition to * the AWS KMS key. The KMS key is only necessary if you chose the KMS encryption type.

@@ -252,19 +186,6 @@ export interface Action { ExportRevisionToS3?: AutoExportRevisionToS3RequestDetails | undefined; } -/** - * @public - * @enum - */ -export const ProtocolType = { - REST: "REST", -} as const; - -/** - * @public - */ -export type ProtocolType = (typeof ProtocolType)[keyof typeof ProtocolType]; - /** *

The API Gateway API that is the asset.

* @public @@ -412,20 +333,6 @@ export interface LFResourceDetails { Table?: TableLFTagPolicy | undefined; } -/** - * @public - * @enum - */ -export const LFResourceType = { - DATABASE: "DATABASE", - TABLE: "TABLE", -} as const; - -/** - * @public - */ -export type LFResourceType = (typeof LFResourceType)[keyof typeof LFResourceType]; - /** *

Details about the LF-tag policy.

* @public @@ -462,34 +369,6 @@ export interface LakeFormationDataPermissionDetails { LFTagPolicy?: LFTagPolicyDetails | undefined; } -/** - * @public - * @enum - */ -export const LakeFormationDataPermissionType = { - LFTagPolicy: "LFTagPolicy", -} as const; - -/** - * @public - */ -export type LakeFormationDataPermissionType = - (typeof LakeFormationDataPermissionType)[keyof typeof LakeFormationDataPermissionType]; - -/** - * @public - * @enum - */ -export const LFPermission = { - DESCRIBE: "DESCRIBE", - SELECT: "SELECT", -} as const; - -/** - * @public - */ -export type LFPermission = (typeof LFPermission)[keyof typeof LFPermission]; - /** *

The AWS Lake Formation data permission asset.

* @public @@ -643,23 +522,6 @@ export interface AssetDetails { LakeFormationDataPermissionAsset?: LakeFormationDataPermissionAsset | undefined; } -/** - * @public - * @enum - */ -export const AssetType = { - API_GATEWAY_API: "API_GATEWAY_API", - LAKE_FORMATION_DATA_PERMISSION: "LAKE_FORMATION_DATA_PERMISSION", - REDSHIFT_DATA_SHARE: "REDSHIFT_DATA_SHARE", - S3_DATA_ACCESS: "S3_DATA_ACCESS", - S3_SNAPSHOT: "S3_SNAPSHOT", -} as const; - -/** - * @public - */ -export type AssetType = (typeof AssetType)[keyof typeof AssetType]; - /** *

An asset in AWS Data Exchange is a piece of data (Amazon S3 object) or a means of * fulfilling data (Amazon Redshift datashare or Amazon API Gateway API, AWS Lake Formation @@ -770,25 +632,6 @@ export interface CancelJobRequest { JobId: string | undefined; } -/** - * @public - * @enum - */ -export const Code = { - ACCESS_DENIED_EXCEPTION: "ACCESS_DENIED_EXCEPTION", - INTERNAL_SERVER_EXCEPTION: "INTERNAL_SERVER_EXCEPTION", - MALWARE_DETECTED: "MALWARE_DETECTED", - MALWARE_SCAN_ENCRYPTED_FILE: "MALWARE_SCAN_ENCRYPTED_FILE", - RESOURCE_NOT_FOUND_EXCEPTION: "RESOURCE_NOT_FOUND_EXCEPTION", - SERVICE_QUOTA_EXCEEDED_EXCEPTION: "SERVICE_QUOTA_EXCEEDED_EXCEPTION", - VALIDATION_EXCEPTION: "VALIDATION_EXCEPTION", -} as const; - -/** - * @public - */ -export type Code = (typeof Code)[keyof typeof Code]; - /** * @public */ @@ -931,59 +774,6 @@ export interface CreateDataGrantResponse { Tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const LimitName = { - AWS_Lake_Formation_data_permission_assets_per_revision: "AWS Lake Formation data permission assets per revision", - Active_and_pending_data_grants: "Active and pending data grants", - Amazon_API_Gateway_API_assets_per_revision: "Amazon API Gateway API assets per revision", - Amazon_Redshift_datashare_assets_per_import_job_from_Redshift: - "Amazon Redshift datashare assets per import job from Redshift", - Amazon_Redshift_datashare_assets_per_revision: "Amazon Redshift datashare assets per revision", - Amazon_S3_data_access_assets_per_revision: "Amazon S3 data access assets per revision", - Asset_per_export_job_from_Amazon_S3: "Asset per export job from Amazon S3", - Asset_size_in_GB: "Asset size in GB", - Assets_per_import_job_from_Amazon_S3: "Assets per import job from Amazon S3", - Assets_per_revision: "Assets per revision", - Auto_export_event_actions_per_data_set: "Auto export event actions per data set", - Concurrent_in_progress_jobs_to_create_Amazon_S3_data_access_assets_from_S3_buckets: - "Concurrent in progress jobs to create Amazon S3 data access assets from S3 buckets", - Concurrent_in_progress_jobs_to_export_assets_to_Amazon_S3: - "Concurrent in progress jobs to export assets to Amazon S3", - Concurrent_in_progress_jobs_to_export_assets_to_a_signed_URL: - "Concurrent in progress jobs to export assets to a signed URL", - Concurrent_in_progress_jobs_to_export_revisions_to_Amazon_S3: - "Concurrent in progress jobs to export revisions to Amazon S3", - Concurrent_in_progress_jobs_to_import_assets_from_Amazon_Redshift_datashares: - "Concurrent in progress jobs to import assets from Amazon Redshift datashares", - Concurrent_in_progress_jobs_to_import_assets_from_Amazon_S3: - "Concurrent in progress jobs to import assets from Amazon S3", - Concurrent_in_progress_jobs_to_import_assets_from_a_signed_URL: - "Concurrent in progress jobs to import assets from a signed URL", - Concurrent_in_progress_jobs_to_import_assets_from_an_API_Gateway_API: - "Concurrent in progress jobs to import assets from an API Gateway API", - Concurrent_in_progress_jobs_to_import_assets_from_an_AWS_Lake_Formation_tag_policy: - "Concurrent in progress jobs to import assets from an AWS Lake Formation tag policy", - Data_sets_per_account: "Data sets per account", - Data_sets_per_product: "Data sets per product", - Event_actions_per_account: "Event actions per account", - Pending_data_grants_per_consumer: "Pending data grants per consumer", - Products_per_account: "Products per account", - Revisions_per_AWS_Lake_Formation_data_permission_data_set: - "Revisions per AWS Lake Formation data permission data set", - Revisions_per_Amazon_API_Gateway_API_data_set: "Revisions per Amazon API Gateway API data set", - Revisions_per_Amazon_Redshift_datashare_data_set: "Revisions per Amazon Redshift datashare data set", - Revisions_per_Amazon_S3_data_access_data_set: "Revisions per Amazon S3 data access data set", - Revisions_per_data_set: "Revisions per data set", -} as const; - -/** - * @public - */ -export type LimitName = (typeof LimitName)[keyof typeof LimitName]; - /** * @public */ @@ -1016,20 +806,6 @@ export interface CreateDataSetRequest { Tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const Origin = { - ENTITLED: "ENTITLED", - OWNED: "OWNED", -} as const; - -/** - * @public - */ -export type Origin = (typeof Origin)[keyof typeof Origin]; - /** *

Details about the origin of the data set.

* @public @@ -1469,20 +1245,6 @@ export interface ImportAssetFromSignedUrlRequestDetails { RevisionId: string | undefined; } -/** - * @public - * @enum - */ -export const DatabaseLFTagPolicyPermission = { - DESCRIBE: "DESCRIBE", -} as const; - -/** - * @public - */ -export type DatabaseLFTagPolicyPermission = - (typeof DatabaseLFTagPolicyPermission)[keyof typeof DatabaseLFTagPolicyPermission]; - /** *

The LF-tag policy and permissions for database resources.

* @public @@ -1501,20 +1263,6 @@ export interface DatabaseLFTagPolicyAndPermissions { Permissions: DatabaseLFTagPolicyPermission[] | undefined; } -/** - * @public - * @enum - */ -export const TableTagPolicyLFPermission = { - DESCRIBE: "DESCRIBE", - SELECT: "SELECT", -} as const; - -/** - * @public - */ -export type TableTagPolicyLFPermission = (typeof TableTagPolicyLFPermission)[keyof typeof TableTagPolicyLFPermission]; - /** *

The LF-tag policy and permissions that apply to table resources.

* @public @@ -1696,27 +1444,6 @@ export interface RequestDetails { ImportAssetsFromLakeFormationTagPolicy?: ImportAssetsFromLakeFormationTagPolicyRequestDetails | undefined; } -/** - * @public - * @enum - */ -export const Type = { - CREATE_S3_DATA_ACCESS_FROM_S3_BUCKET: "CREATE_S3_DATA_ACCESS_FROM_S3_BUCKET", - EXPORT_ASSETS_TO_S3: "EXPORT_ASSETS_TO_S3", - EXPORT_ASSET_TO_SIGNED_URL: "EXPORT_ASSET_TO_SIGNED_URL", - EXPORT_REVISIONS_TO_S3: "EXPORT_REVISIONS_TO_S3", - IMPORT_ASSETS_FROM_LAKE_FORMATION_TAG_POLICY: "IMPORT_ASSETS_FROM_LAKE_FORMATION_TAG_POLICY", - IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES: "IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES", - IMPORT_ASSETS_FROM_S3: "IMPORT_ASSETS_FROM_S3", - IMPORT_ASSET_FROM_API_GATEWAY_API: "IMPORT_ASSET_FROM_API_GATEWAY_API", - IMPORT_ASSET_FROM_SIGNED_URL: "IMPORT_ASSET_FROM_SIGNED_URL", -} as const; - -/** - * @public - */ -export type Type = (typeof Type)[keyof typeof Type]; - /** * @public */ @@ -2153,38 +1880,6 @@ export interface Details { ImportAssetsFromS3JobErrorDetails?: AssetSourceEntry[] | undefined; } -/** - * @public - * @enum - */ -export const JobErrorLimitName = { - AWS_Lake_Formation_data_permission_assets_per_revision: "AWS Lake Formation data permission assets per revision", - Amazon_Redshift_datashare_assets_per_revision: "Amazon Redshift datashare assets per revision", - Amazon_S3_data_access_assets_per_revision: "Amazon S3 data access assets per revision", - Asset_size_in_GB: "Asset size in GB", - Assets_per_revision: "Assets per revision", -} as const; - -/** - * @public - */ -export type JobErrorLimitName = (typeof JobErrorLimitName)[keyof typeof JobErrorLimitName]; - -/** - * @public - * @enum - */ -export const JobErrorResourceTypes = { - ASSET: "ASSET", - DATA_SET: "DATA_SET", - REVISION: "REVISION", -} as const; - -/** - * @public - */ -export type JobErrorResourceTypes = (typeof JobErrorResourceTypes)[keyof typeof JobErrorResourceTypes]; - /** *

An error that occurred with the job request.

* @public @@ -2233,24 +1928,6 @@ export interface JobError { ResourceType?: JobErrorResourceTypes | undefined; } -/** - * @public - * @enum - */ -export const State = { - CANCELLED: "CANCELLED", - COMPLETED: "COMPLETED", - ERROR: "ERROR", - IN_PROGRESS: "IN_PROGRESS", - TIMED_OUT: "TIMED_OUT", - WAITING: "WAITING", -} as const; - -/** - * @public - */ -export type State = (typeof State)[keyof typeof State]; - /** * @public */ @@ -4024,21 +3701,6 @@ export interface DeprecationRequestDetails { DeprecationAt: Date | undefined; } -/** - * @public - * @enum - */ -export const SchemaChangeType = { - ADD: "ADD", - MODIFY: "MODIFY", - REMOVE: "REMOVE", -} as const; - -/** - * @public - */ -export type SchemaChangeType = (typeof SchemaChangeType)[keyof typeof SchemaChangeType]; - /** *

Object encompassing information about a schema change to a single, particular field, a * notification can have up to 100 of these.

@@ -4241,22 +3903,6 @@ export interface ScopeDetails { S3DataAccesses?: S3DataAccessDetails[] | undefined; } -/** - * @public - * @enum - */ -export const NotificationType = { - DATA_DELAY: "DATA_DELAY", - DATA_UPDATE: "DATA_UPDATE", - DEPRECATION: "DEPRECATION", - SCHEMA_CHANGE: "SCHEMA_CHANGE", -} as const; - -/** - * @public - */ -export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType]; - /** * @public */ diff --git a/clients/client-datazone/src/schemas/schemas_0.ts b/clients/client-datazone/src/schemas/schemas_0.ts index e4bce7ded794..3ace144701b2 100644 --- a/clients/client-datazone/src/schemas/schemas_0.ts +++ b/clients/client-datazone/src/schemas/schemas_0.ts @@ -7017,7 +7017,7 @@ export var UnauthorizedException: StaticErrorSchema = [ ]; TypeRegistry.for(n0).registerError(UnauthorizedException, __UnauthorizedException); -export var Unit_n0: StaticStructureSchema = [3, n0, _U, 0, [], []]; +export var Unit: StaticStructureSchema = [3, n0, _U, 0, [], []]; export var UntagResourceRequest: StaticStructureSchema = [ 3, n0, @@ -7999,9 +7999,9 @@ export var PolicyGrantDetail: StaticStructureSchema = [ () => CreateAssetTypePolicyGrantDetail, () => CreateProjectPolicyGrantDetail, () => CreateEnvironmentProfilePolicyGrantDetail, - () => Unit_n0, - () => Unit_n0, - () => Unit_n0, + () => Unit, + () => Unit, + () => Unit, () => CreateProjectFromProjectProfilePolicyGrantDetail, () => UseAssetTypePolicyGrantDetail, ], diff --git a/clients/client-docdb-elastic/src/index.ts b/clients/client-docdb-elastic/src/index.ts index 58cbea0ef049..588b098f4eb2 100644 --- a/clients/client-docdb-elastic/src/index.ts +++ b/clients/client-docdb-elastic/src/index.ts @@ -27,6 +27,7 @@ export type { DocDBElasticExtensionConfiguration } from "./extensionConfiguratio export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-docdb-elastic/src/models/enums.ts b/clients/client-docdb-elastic/src/models/enums.ts new file mode 100644 index 000000000000..5d9998e7cbf7 --- /dev/null +++ b/clients/client-docdb-elastic/src/models/enums.ts @@ -0,0 +1,88 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const OptInType = { + APPLY_ON: "APPLY_ON", + IMMEDIATE: "IMMEDIATE", + NEXT_MAINTENANCE: "NEXT_MAINTENANCE", + UNDO_OPT_IN: "UNDO_OPT_IN", +} as const; +/** + * @public + */ +export type OptInType = (typeof OptInType)[keyof typeof OptInType]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + CANNOT_PARSE: "cannotParse", + FIELD_VALIDATION_FAILED: "fieldValidationFailed", + OTHER: "other", + UNKNOWN_OPERATION: "unknownOperation", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const Auth = { + PLAIN_TEXT: "PLAIN_TEXT", + SECRET_ARN: "SECRET_ARN", +} as const; +/** + * @public + */ +export type Auth = (typeof Auth)[keyof typeof Auth]; + +/** + * @public + * @enum + */ +export const SnapshotType = { + AUTOMATED: "AUTOMATED", + MANUAL: "MANUAL", +} as const; +/** + * @public + */ +export type SnapshotType = (typeof SnapshotType)[keyof typeof SnapshotType]; + +/** + * @public + * @enum + */ +export const Status = { + ACTIVE: "ACTIVE", + COPYING: "COPYING", + CREATING: "CREATING", + DELETING: "DELETING", + INACCESSIBLE_ENCRYPTION_CREDENTIALS_RECOVERABLE: "INACCESSIBLE_ENCRYPTION_CREDENTIALS_RECOVERABLE", + INACCESSIBLE_ENCRYPTION_CREDS: "INACCESSIBLE_ENCRYPTION_CREDS", + INACCESSIBLE_SECRET_ARN: "INACCESSIBLE_SECRET_ARN", + INACCESSIBLE_VPC_ENDPOINT: "INACCESSIBLE_VPC_ENDPOINT", + INCOMPATIBLE_NETWORK: "INCOMPATIBLE_NETWORK", + INVALID_SECURITY_GROUP_ID: "INVALID_SECURITY_GROUP_ID", + INVALID_SUBNET_ID: "INVALID_SUBNET_ID", + IP_ADDRESS_LIMIT_EXCEEDED: "IP_ADDRESS_LIMIT_EXCEEDED", + MAINTENANCE: "MAINTENANCE", + MERGING: "MERGING", + MODIFYING: "MODIFYING", + SPLITTING: "SPLITTING", + STARTING: "STARTING", + STOPPED: "STOPPED", + STOPPING: "STOPPING", + UPDATING: "UPDATING", + VPC_ENDPOINT_LIMIT_EXCEEDED: "VPC_ENDPOINT_LIMIT_EXCEEDED", +} as const; +/** + * @public + */ +export type Status = (typeof Status)[keyof typeof Status]; diff --git a/clients/client-docdb-elastic/src/models/errors.ts b/clients/client-docdb-elastic/src/models/errors.ts index 1be40b906e27..c6c9be351bdb 100644 --- a/clients/client-docdb-elastic/src/models/errors.ts +++ b/clients/client-docdb-elastic/src/models/errors.ts @@ -2,7 +2,8 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { DocDBElasticServiceException as __BaseException } from "./DocDBElasticServiceException"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionReason } from "./enums"; +import { ValidationExceptionField } from "./models_0"; /** *

An exception that occurs when there are not sufficient permissions to perform an action.

diff --git a/clients/client-docdb-elastic/src/models/models_0.ts b/clients/client-docdb-elastic/src/models/models_0.ts index 47182fd6fded..909e6f5dbefc 100644 --- a/clients/client-docdb-elastic/src/models/models_0.ts +++ b/clients/client-docdb-elastic/src/models/models_0.ts @@ -1,19 +1,5 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const OptInType = { - APPLY_ON: "APPLY_ON", - IMMEDIATE: "IMMEDIATE", - NEXT_MAINTENANCE: "NEXT_MAINTENANCE", - UNDO_OPT_IN: "UNDO_OPT_IN", -} as const; - -/** - * @public - */ -export type OptInType = (typeof OptInType)[keyof typeof OptInType]; +import { Auth, OptInType, SnapshotType, Status } from "./enums"; /** * @public @@ -169,36 +155,6 @@ export interface ValidationExceptionField { message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - CANNOT_PARSE: "cannotParse", - FIELD_VALIDATION_FAILED: "fieldValidationFailed", - OTHER: "other", - UNKNOWN_OPERATION: "unknownOperation", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - -/** - * @public - * @enum - */ -export const Auth = { - PLAIN_TEXT: "PLAIN_TEXT", - SECRET_ARN: "SECRET_ARN", -} as const; - -/** - * @public - */ -export type Auth = (typeof Auth)[keyof typeof Auth]; - /** * @public */ @@ -256,53 +212,6 @@ export interface CopyClusterSnapshotInput { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const SnapshotType = { - AUTOMATED: "AUTOMATED", - MANUAL: "MANUAL", -} as const; - -/** - * @public - */ -export type SnapshotType = (typeof SnapshotType)[keyof typeof SnapshotType]; - -/** - * @public - * @enum - */ -export const Status = { - ACTIVE: "ACTIVE", - COPYING: "COPYING", - CREATING: "CREATING", - DELETING: "DELETING", - INACCESSIBLE_ENCRYPTION_CREDENTIALS_RECOVERABLE: "INACCESSIBLE_ENCRYPTION_CREDENTIALS_RECOVERABLE", - INACCESSIBLE_ENCRYPTION_CREDS: "INACCESSIBLE_ENCRYPTION_CREDS", - INACCESSIBLE_SECRET_ARN: "INACCESSIBLE_SECRET_ARN", - INACCESSIBLE_VPC_ENDPOINT: "INACCESSIBLE_VPC_ENDPOINT", - INCOMPATIBLE_NETWORK: "INCOMPATIBLE_NETWORK", - INVALID_SECURITY_GROUP_ID: "INVALID_SECURITY_GROUP_ID", - INVALID_SUBNET_ID: "INVALID_SUBNET_ID", - IP_ADDRESS_LIMIT_EXCEEDED: "IP_ADDRESS_LIMIT_EXCEEDED", - MAINTENANCE: "MAINTENANCE", - MERGING: "MERGING", - MODIFYING: "MODIFYING", - SPLITTING: "SPLITTING", - STARTING: "STARTING", - STOPPED: "STOPPED", - STOPPING: "STOPPING", - UPDATING: "UPDATING", - VPC_ENDPOINT_LIMIT_EXCEEDED: "VPC_ENDPOINT_LIMIT_EXCEEDED", -} as const; - -/** - * @public - */ -export type Status = (typeof Status)[keyof typeof Status]; - /** *

Returns information about a specific elastic cluster snapshot.

* @public diff --git a/clients/client-drs/src/index.ts b/clients/client-drs/src/index.ts index cfd14b8a5b13..9c1aecdef91b 100644 --- a/clients/client-drs/src/index.ts +++ b/clients/client-drs/src/index.ts @@ -13,6 +13,7 @@ export type { DrsExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-drs/src/models/enums.ts b/clients/client-drs/src/models/enums.ts new file mode 100644 index 000000000000..daa4bcb8c8a2 --- /dev/null +++ b/clients/client-drs/src/models/enums.ts @@ -0,0 +1,662 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const InitiatedBy = { + ASSOCIATE_NETWORK_RECOVERY: "ASSOCIATE_NETWORK_RECOVERY", + CREATE_NETWORK_RECOVERY: "CREATE_NETWORK_RECOVERY", + DIAGNOSTIC: "DIAGNOSTIC", + FAILBACK: "FAILBACK", + START_DRILL: "START_DRILL", + START_RECOVERY: "START_RECOVERY", + TARGET_ACCOUNT: "TARGET_ACCOUNT", + TERMINATE_RECOVERY_INSTANCES: "TERMINATE_RECOVERY_INSTANCES", + UPDATE_NETWORK_RECOVERY: "UPDATE_NETWORK_RECOVERY", +} as const; +/** + * @public + */ +export type InitiatedBy = (typeof InitiatedBy)[keyof typeof InitiatedBy]; + +/** + * @public + * @enum + */ +export const LaunchStatus = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + LAUNCHED: "LAUNCHED", + PENDING: "PENDING", + TERMINATED: "TERMINATED", +} as const; +/** + * @public + */ +export type LaunchStatus = (typeof LaunchStatus)[keyof typeof LaunchStatus]; + +/** + * @public + * @enum + */ +export const LaunchActionCategory = { + CONFIGURATION: "CONFIGURATION", + MONITORING: "MONITORING", + OTHER: "OTHER", + SECURITY: "SECURITY", + VALIDATION: "VALIDATION", +} as const; +/** + * @public + */ +export type LaunchActionCategory = (typeof LaunchActionCategory)[keyof typeof LaunchActionCategory]; + +/** + * @public + * @enum + */ +export const LaunchActionParameterType = { + DYNAMIC: "DYNAMIC", + SSM_STORE: "SSM_STORE", +} as const; +/** + * @public + */ +export type LaunchActionParameterType = (typeof LaunchActionParameterType)[keyof typeof LaunchActionParameterType]; + +/** + * @public + * @enum + */ +export const LaunchActionType = { + SSM_AUTOMATION: "SSM_AUTOMATION", + SSM_COMMAND: "SSM_COMMAND", +} as const; +/** + * @public + */ +export type LaunchActionType = (typeof LaunchActionType)[keyof typeof LaunchActionType]; + +/** + * @public + * @enum + */ +export const LaunchActionRunStatus = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type LaunchActionRunStatus = (typeof LaunchActionRunStatus)[keyof typeof LaunchActionRunStatus]; + +/** + * @public + * @enum + */ +export const JobStatus = { + COMPLETED: "COMPLETED", + PENDING: "PENDING", + STARTED: "STARTED", +} as const; +/** + * @public + */ +export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus]; + +/** + * @public + * @enum + */ +export const JobType = { + CREATE_CONVERTED_SNAPSHOT: "CREATE_CONVERTED_SNAPSHOT", + LAUNCH: "LAUNCH", + TERMINATE: "TERMINATE", +} as const; +/** + * @public + */ +export type JobType = (typeof JobType)[keyof typeof JobType]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + CANNOT_PARSE: "cannotParse", + FIELD_VALIDATION_FAILED: "fieldValidationFailed", + OTHER: "other", + UNKNOWN_OPERATION: "unknownOperation", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const ProductCodeMode = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +} as const; +/** + * @public + */ +export type ProductCodeMode = (typeof ProductCodeMode)[keyof typeof ProductCodeMode]; + +/** + * @public + * @enum + */ +export const DataReplicationErrorString = { + AGENT_NOT_SEEN: "AGENT_NOT_SEEN", + FAILED_TO_ATTACH_STAGING_DISKS: "FAILED_TO_ATTACH_STAGING_DISKS", + FAILED_TO_AUTHENTICATE_WITH_SERVICE: "FAILED_TO_AUTHENTICATE_WITH_SERVICE", + FAILED_TO_BOOT_REPLICATION_SERVER: "FAILED_TO_BOOT_REPLICATION_SERVER", + FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER: "FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER", + FAILED_TO_CREATE_SECURITY_GROUP: "FAILED_TO_CREATE_SECURITY_GROUP", + FAILED_TO_CREATE_STAGING_DISKS: "FAILED_TO_CREATE_STAGING_DISKS", + FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE: "FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE", + FAILED_TO_LAUNCH_REPLICATION_SERVER: "FAILED_TO_LAUNCH_REPLICATION_SERVER", + FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT: "FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT", + FAILED_TO_START_DATA_TRANSFER: "FAILED_TO_START_DATA_TRANSFER", + NOT_CONVERGING: "NOT_CONVERGING", + SNAPSHOTS_FAILURE: "SNAPSHOTS_FAILURE", + UNSTABLE_NETWORK: "UNSTABLE_NETWORK", +} as const; +/** + * @public + */ +export type DataReplicationErrorString = (typeof DataReplicationErrorString)[keyof typeof DataReplicationErrorString]; + +/** + * @public + * @enum + */ +export const DataReplicationInitiationStepName = { + ATTACH_STAGING_DISKS: "ATTACH_STAGING_DISKS", + AUTHENTICATE_WITH_SERVICE: "AUTHENTICATE_WITH_SERVICE", + BOOT_REPLICATION_SERVER: "BOOT_REPLICATION_SERVER", + CONNECT_AGENT_TO_REPLICATION_SERVER: "CONNECT_AGENT_TO_REPLICATION_SERVER", + CREATE_SECURITY_GROUP: "CREATE_SECURITY_GROUP", + CREATE_STAGING_DISKS: "CREATE_STAGING_DISKS", + DOWNLOAD_REPLICATION_SOFTWARE: "DOWNLOAD_REPLICATION_SOFTWARE", + LAUNCH_REPLICATION_SERVER: "LAUNCH_REPLICATION_SERVER", + PAIR_REPLICATION_SERVER_WITH_AGENT: "PAIR_REPLICATION_SERVER_WITH_AGENT", + START_DATA_TRANSFER: "START_DATA_TRANSFER", + WAIT: "WAIT", +} as const; +/** + * @public + */ +export type DataReplicationInitiationStepName = + (typeof DataReplicationInitiationStepName)[keyof typeof DataReplicationInitiationStepName]; + +/** + * @public + * @enum + */ +export const DataReplicationInitiationStepStatus = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + NOT_STARTED: "NOT_STARTED", + SKIPPED: "SKIPPED", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type DataReplicationInitiationStepStatus = + (typeof DataReplicationInitiationStepStatus)[keyof typeof DataReplicationInitiationStepStatus]; + +/** + * @public + * @enum + */ +export const DataReplicationState = { + BACKLOG: "BACKLOG", + CONTINUOUS: "CONTINUOUS", + CREATING_SNAPSHOT: "CREATING_SNAPSHOT", + DISCONNECTED: "DISCONNECTED", + INITIAL_SYNC: "INITIAL_SYNC", + INITIATING: "INITIATING", + PAUSED: "PAUSED", + RESCAN: "RESCAN", + STALLED: "STALLED", + STOPPED: "STOPPED", +} as const; +/** + * @public + */ +export type DataReplicationState = (typeof DataReplicationState)[keyof typeof DataReplicationState]; + +/** + * @public + * @enum + */ +export const VolumeStatus = { + CONTAINS_MARKETPLACE_PRODUCT_CODES: "CONTAINS_MARKETPLACE_PRODUCT_CODES", + MISSING_VOLUME_ATTRIBUTES: "MISSING_VOLUME_ATTRIBUTES", + MISSING_VOLUME_ATTRIBUTES_AND_PRECHECK_UNAVAILABLE: "MISSING_VOLUME_ATTRIBUTES_AND_PRECHECK_UNAVAILABLE", + PENDING: "PENDING", + REGULAR: "REGULAR", +} as const; +/** + * @public + */ +export type VolumeStatus = (typeof VolumeStatus)[keyof typeof VolumeStatus]; + +/** + * @public + * @enum + */ +export const LastLaunchResult = { + FAILED: "FAILED", + NOT_STARTED: "NOT_STARTED", + PENDING: "PENDING", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type LastLaunchResult = (typeof LastLaunchResult)[keyof typeof LastLaunchResult]; + +/** + * @public + * @enum + */ +export const LastLaunchType = { + DRILL: "DRILL", + RECOVERY: "RECOVERY", +} as const; +/** + * @public + */ +export type LastLaunchType = (typeof LastLaunchType)[keyof typeof LastLaunchType]; + +/** + * @public + * @enum + */ +export const ReplicationDirection = { + FAILBACK: "FAILBACK", + FAILOVER: "FAILOVER", +} as const; +/** + * @public + */ +export type ReplicationDirection = (typeof ReplicationDirection)[keyof typeof ReplicationDirection]; + +/** + * @public + * @enum + */ +export const ExtensionStatus = { + EXTENDED: "EXTENDED", + EXTENSION_ERROR: "EXTENSION_ERROR", + NOT_EXTENDED: "NOT_EXTENDED", +} as const; +/** + * @public + */ +export type ExtensionStatus = (typeof ExtensionStatus)[keyof typeof ExtensionStatus]; + +/** + * @public + * @enum + */ +export const LaunchDisposition = { + STARTED: "STARTED", + STOPPED: "STOPPED", +} as const; +/** + * @public + */ +export type LaunchDisposition = (typeof LaunchDisposition)[keyof typeof LaunchDisposition]; + +/** + * @public + * @enum + */ +export const TargetInstanceTypeRightSizingMethod = { + BASIC: "BASIC", + IN_AWS: "IN_AWS", + NONE: "NONE", +} as const; +/** + * @public + */ +export type TargetInstanceTypeRightSizingMethod = + (typeof TargetInstanceTypeRightSizingMethod)[keyof typeof TargetInstanceTypeRightSizingMethod]; + +/** + * @public + * @enum + */ +export const ReplicationConfigurationDataPlaneRouting = { + PRIVATE_IP: "PRIVATE_IP", + PUBLIC_IP: "PUBLIC_IP", +} as const; +/** + * @public + */ +export type ReplicationConfigurationDataPlaneRouting = + (typeof ReplicationConfigurationDataPlaneRouting)[keyof typeof ReplicationConfigurationDataPlaneRouting]; + +/** + * @public + * @enum + */ +export const ReplicationConfigurationDefaultLargeStagingDiskType = { + AUTO: "AUTO", + GP2: "GP2", + GP3: "GP3", + ST1: "ST1", +} as const; +/** + * @public + */ +export type ReplicationConfigurationDefaultLargeStagingDiskType = + (typeof ReplicationConfigurationDefaultLargeStagingDiskType)[keyof typeof ReplicationConfigurationDefaultLargeStagingDiskType]; + +/** + * @public + * @enum + */ +export const ReplicationConfigurationEbsEncryption = { + CUSTOM: "CUSTOM", + DEFAULT: "DEFAULT", + NONE: "NONE", +} as const; +/** + * @public + */ +export type ReplicationConfigurationEbsEncryption = + (typeof ReplicationConfigurationEbsEncryption)[keyof typeof ReplicationConfigurationEbsEncryption]; + +/** + * @public + * @enum + */ +export const PITPolicyRuleUnits = { + DAY: "DAY", + HOUR: "HOUR", + MINUTE: "MINUTE", +} as const; +/** + * @public + */ +export type PITPolicyRuleUnits = (typeof PITPolicyRuleUnits)[keyof typeof PITPolicyRuleUnits]; + +/** + * @public + * @enum + */ +export const JobLogEvent = { + CLEANUP_END: "CLEANUP_END", + CLEANUP_FAIL: "CLEANUP_FAIL", + CLEANUP_START: "CLEANUP_START", + CONVERSION_END: "CONVERSION_END", + CONVERSION_FAIL: "CONVERSION_FAIL", + CONVERSION_START: "CONVERSION_START", + DEPLOY_NETWORK_CONFIGURATION_END: "DEPLOY_NETWORK_CONFIGURATION_END", + DEPLOY_NETWORK_CONFIGURATION_FAILED: "DEPLOY_NETWORK_CONFIGURATION_FAILED", + DEPLOY_NETWORK_CONFIGURATION_START: "DEPLOY_NETWORK_CONFIGURATION_START", + JOB_CANCEL: "JOB_CANCEL", + JOB_END: "JOB_END", + JOB_START: "JOB_START", + LAUNCH_FAILED: "LAUNCH_FAILED", + LAUNCH_START: "LAUNCH_START", + NETWORK_RECOVERY_FAIL: "NETWORK_RECOVERY_FAIL", + SERVER_SKIPPED: "SERVER_SKIPPED", + SNAPSHOT_END: "SNAPSHOT_END", + SNAPSHOT_FAIL: "SNAPSHOT_FAIL", + SNAPSHOT_START: "SNAPSHOT_START", + UPDATE_LAUNCH_TEMPLATE_END: "UPDATE_LAUNCH_TEMPLATE_END", + UPDATE_LAUNCH_TEMPLATE_FAILED: "UPDATE_LAUNCH_TEMPLATE_FAILED", + UPDATE_LAUNCH_TEMPLATE_START: "UPDATE_LAUNCH_TEMPLATE_START", + UPDATE_NETWORK_CONFIGURATION_END: "UPDATE_NETWORK_CONFIGURATION_END", + UPDATE_NETWORK_CONFIGURATION_FAILED: "UPDATE_NETWORK_CONFIGURATION_FAILED", + UPDATE_NETWORK_CONFIGURATION_START: "UPDATE_NETWORK_CONFIGURATION_START", + USING_PREVIOUS_SNAPSHOT: "USING_PREVIOUS_SNAPSHOT", + USING_PREVIOUS_SNAPSHOT_FAILED: "USING_PREVIOUS_SNAPSHOT_FAILED", +} as const; +/** + * @public + */ +export type JobLogEvent = (typeof JobLogEvent)[keyof typeof JobLogEvent]; + +/** + * @public + * @enum + */ +export const FailbackReplicationError = { + AGENT_NOT_SEEN: "AGENT_NOT_SEEN", + FAILBACK_CLIENT_NOT_SEEN: "FAILBACK_CLIENT_NOT_SEEN", + FAILED_GETTING_REPLICATION_STATE: "FAILED_GETTING_REPLICATION_STATE", + FAILED_TO_ATTACH_STAGING_DISKS: "FAILED_TO_ATTACH_STAGING_DISKS", + FAILED_TO_AUTHENTICATE_WITH_SERVICE: "FAILED_TO_AUTHENTICATE_WITH_SERVICE", + FAILED_TO_BOOT_REPLICATION_SERVER: "FAILED_TO_BOOT_REPLICATION_SERVER", + FAILED_TO_CONFIGURE_REPLICATION_SOFTWARE: "FAILED_TO_CONFIGURE_REPLICATION_SOFTWARE", + FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER: "FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER", + FAILED_TO_CREATE_SECURITY_GROUP: "FAILED_TO_CREATE_SECURITY_GROUP", + FAILED_TO_CREATE_STAGING_DISKS: "FAILED_TO_CREATE_STAGING_DISKS", + FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE: "FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE", + FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE_TO_FAILBACK_CLIENT: + "FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE_TO_FAILBACK_CLIENT", + FAILED_TO_ESTABLISH_AGENT_REPLICATOR_SOFTWARE_COMMUNICATION: + "FAILED_TO_ESTABLISH_AGENT_REPLICATOR_SOFTWARE_COMMUNICATION", + FAILED_TO_ESTABLISH_RECOVERY_INSTANCE_COMMUNICATION: "FAILED_TO_ESTABLISH_RECOVERY_INSTANCE_COMMUNICATION", + FAILED_TO_LAUNCH_REPLICATION_SERVER: "FAILED_TO_LAUNCH_REPLICATION_SERVER", + FAILED_TO_PAIR_AGENT_WITH_REPLICATION_SOFTWARE: "FAILED_TO_PAIR_AGENT_WITH_REPLICATION_SOFTWARE", + FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT: "FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT", + FAILED_TO_START_DATA_TRANSFER: "FAILED_TO_START_DATA_TRANSFER", + NOT_CONVERGING: "NOT_CONVERGING", + SNAPSHOTS_FAILURE: "SNAPSHOTS_FAILURE", + UNSTABLE_NETWORK: "UNSTABLE_NETWORK", +} as const; +/** + * @public + */ +export type FailbackReplicationError = (typeof FailbackReplicationError)[keyof typeof FailbackReplicationError]; + +/** + * @public + * @enum + */ +export const RecoveryInstanceDataReplicationInitiationStepName = { + ATTACH_STAGING_DISKS: "ATTACH_STAGING_DISKS", + AUTHENTICATE_WITH_SERVICE: "AUTHENTICATE_WITH_SERVICE", + BOOT_REPLICATION_SERVER: "BOOT_REPLICATION_SERVER", + COMPLETE_VOLUME_MAPPING: "COMPLETE_VOLUME_MAPPING", + CONFIGURE_REPLICATION_SOFTWARE: "CONFIGURE_REPLICATION_SOFTWARE", + CONNECT_AGENT_TO_REPLICATION_SERVER: "CONNECT_AGENT_TO_REPLICATION_SERVER", + CREATE_SECURITY_GROUP: "CREATE_SECURITY_GROUP", + CREATE_STAGING_DISKS: "CREATE_STAGING_DISKS", + DOWNLOAD_REPLICATION_SOFTWARE: "DOWNLOAD_REPLICATION_SOFTWARE", + DOWNLOAD_REPLICATION_SOFTWARE_TO_FAILBACK_CLIENT: "DOWNLOAD_REPLICATION_SOFTWARE_TO_FAILBACK_CLIENT", + ESTABLISH_AGENT_REPLICATOR_SOFTWARE_COMMUNICATION: "ESTABLISH_AGENT_REPLICATOR_SOFTWARE_COMMUNICATION", + ESTABLISH_RECOVERY_INSTANCE_COMMUNICATION: "ESTABLISH_RECOVERY_INSTANCE_COMMUNICATION", + LAUNCH_REPLICATION_SERVER: "LAUNCH_REPLICATION_SERVER", + LINK_FAILBACK_CLIENT_WITH_RECOVERY_INSTANCE: "LINK_FAILBACK_CLIENT_WITH_RECOVERY_INSTANCE", + PAIR_AGENT_WITH_REPLICATION_SOFTWARE: "PAIR_AGENT_WITH_REPLICATION_SOFTWARE", + PAIR_REPLICATION_SERVER_WITH_AGENT: "PAIR_REPLICATION_SERVER_WITH_AGENT", + START_DATA_TRANSFER: "START_DATA_TRANSFER", + WAIT: "WAIT", +} as const; +/** + * @public + */ +export type RecoveryInstanceDataReplicationInitiationStepName = + (typeof RecoveryInstanceDataReplicationInitiationStepName)[keyof typeof RecoveryInstanceDataReplicationInitiationStepName]; + +/** + * @public + * @enum + */ +export const RecoveryInstanceDataReplicationInitiationStepStatus = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + NOT_STARTED: "NOT_STARTED", + SKIPPED: "SKIPPED", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type RecoveryInstanceDataReplicationInitiationStepStatus = + (typeof RecoveryInstanceDataReplicationInitiationStepStatus)[keyof typeof RecoveryInstanceDataReplicationInitiationStepStatus]; + +/** + * @public + * @enum + */ +export const RecoveryInstanceDataReplicationState = { + BACKLOG: "BACKLOG", + CONTINUOUS: "CONTINUOUS", + CREATING_SNAPSHOT: "CREATING_SNAPSHOT", + DISCONNECTED: "DISCONNECTED", + INITIAL_SYNC: "INITIAL_SYNC", + INITIATING: "INITIATING", + NOT_STARTED: "NOT_STARTED", + PAUSED: "PAUSED", + REPLICATION_STATE_NOT_AVAILABLE: "REPLICATION_STATE_NOT_AVAILABLE", + RESCAN: "RESCAN", + STALLED: "STALLED", + STOPPED: "STOPPED", +} as const; +/** + * @public + */ +export type RecoveryInstanceDataReplicationState = + (typeof RecoveryInstanceDataReplicationState)[keyof typeof RecoveryInstanceDataReplicationState]; + +/** + * @public + * @enum + */ +export const EC2InstanceState = { + NOT_FOUND: "NOT_FOUND", + PENDING: "PENDING", + RUNNING: "RUNNING", + SHUTTING_DOWN: "SHUTTING-DOWN", + STOPPED: "STOPPED", + STOPPING: "STOPPING", + TERMINATED: "TERMINATED", +} as const; +/** + * @public + */ +export type EC2InstanceState = (typeof EC2InstanceState)[keyof typeof EC2InstanceState]; + +/** + * @public + * @enum + */ +export const FailbackLaunchType = { + DRILL: "DRILL", + RECOVERY: "RECOVERY", +} as const; +/** + * @public + */ +export type FailbackLaunchType = (typeof FailbackLaunchType)[keyof typeof FailbackLaunchType]; + +/** + * @public + * @enum + */ +export const FailbackState = { + FAILBACK_COMPLETED: "FAILBACK_COMPLETED", + FAILBACK_ERROR: "FAILBACK_ERROR", + FAILBACK_IN_PROGRESS: "FAILBACK_IN_PROGRESS", + FAILBACK_LAUNCH_STATE_NOT_AVAILABLE: "FAILBACK_LAUNCH_STATE_NOT_AVAILABLE", + FAILBACK_NOT_READY_FOR_LAUNCH: "FAILBACK_NOT_READY_FOR_LAUNCH", + FAILBACK_NOT_STARTED: "FAILBACK_NOT_STARTED", + FAILBACK_READY_FOR_LAUNCH: "FAILBACK_READY_FOR_LAUNCH", +} as const; +/** + * @public + */ +export type FailbackState = (typeof FailbackState)[keyof typeof FailbackState]; + +/** + * @public + * @enum + */ +export const OriginEnvironment = { + AWS: "AWS", + ON_PREMISES: "ON_PREMISES", +} as const; +/** + * @public + */ +export type OriginEnvironment = (typeof OriginEnvironment)[keyof typeof OriginEnvironment]; + +/** + * @public + * @enum + */ +export const RecoverySnapshotsOrder = { + ASC: "ASC", + DESC: "DESC", +} as const; +/** + * @public + */ +export type RecoverySnapshotsOrder = (typeof RecoverySnapshotsOrder)[keyof typeof RecoverySnapshotsOrder]; + +/** + * @public + * @enum + */ +export const RecoveryResult = { + ASSOCIATE_FAIL: "ASSOCIATE_FAIL", + ASSOCIATE_SUCCESS: "ASSOCIATE_SUCCESS", + FAIL: "FAIL", + IN_PROGRESS: "IN_PROGRESS", + NOT_STARTED: "NOT_STARTED", + PARTIAL_SUCCESS: "PARTIAL_SUCCESS", + SUCCESS: "SUCCESS", +} as const; +/** + * @public + */ +export type RecoveryResult = (typeof RecoveryResult)[keyof typeof RecoveryResult]; + +/** + * @public + * @enum + */ +export const ReplicationStatus = { + ERROR: "ERROR", + IN_PROGRESS: "IN_PROGRESS", + PROTECTED: "PROTECTED", + STOPPED: "STOPPED", +} as const; +/** + * @public + */ +export type ReplicationStatus = (typeof ReplicationStatus)[keyof typeof ReplicationStatus]; + +/** + * @public + * @enum + */ +export const ReplicationConfigurationReplicatedDiskStagingDiskType = { + AUTO: "AUTO", + GP2: "GP2", + GP3: "GP3", + IO1: "IO1", + SC1: "SC1", + ST1: "ST1", + STANDARD: "STANDARD", +} as const; +/** + * @public + */ +export type ReplicationConfigurationReplicatedDiskStagingDiskType = + (typeof ReplicationConfigurationReplicatedDiskStagingDiskType)[keyof typeof ReplicationConfigurationReplicatedDiskStagingDiskType]; diff --git a/clients/client-drs/src/models/errors.ts b/clients/client-drs/src/models/errors.ts index 185104c325ef..a9da97b01d4c 100644 --- a/clients/client-drs/src/models/errors.ts +++ b/clients/client-drs/src/models/errors.ts @@ -2,7 +2,8 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; import { DrsServiceException as __BaseException } from "./DrsServiceException"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionReason } from "./enums"; +import { ValidationExceptionField } from "./models_0"; /** *

You do not have sufficient access to perform this action.

diff --git a/clients/client-drs/src/models/models_0.ts b/clients/client-drs/src/models/models_0.ts index 3299ba1b580c..ea59cc0e3469 100644 --- a/clients/client-drs/src/models/models_0.ts +++ b/clients/client-drs/src/models/models_0.ts @@ -1,4 +1,44 @@ // smithy-typescript generated code +import { + DataReplicationErrorString, + DataReplicationInitiationStepName, + DataReplicationInitiationStepStatus, + DataReplicationState, + EC2InstanceState, + ExtensionStatus, + FailbackLaunchType, + FailbackReplicationError, + FailbackState, + InitiatedBy, + JobLogEvent, + JobStatus, + JobType, + LastLaunchResult, + LastLaunchType, + LaunchActionCategory, + LaunchActionParameterType, + LaunchActionRunStatus, + LaunchActionType, + LaunchDisposition, + LaunchStatus, + OriginEnvironment, + PITPolicyRuleUnits, + ProductCodeMode, + RecoveryInstanceDataReplicationInitiationStepName, + RecoveryInstanceDataReplicationInitiationStepStatus, + RecoveryInstanceDataReplicationState, + RecoveryResult, + RecoverySnapshotsOrder, + ReplicationConfigurationDataPlaneRouting, + ReplicationConfigurationDefaultLargeStagingDiskType, + ReplicationConfigurationEbsEncryption, + ReplicationConfigurationReplicatedDiskStagingDiskType, + ReplicationDirection, + ReplicationStatus, + TargetInstanceTypeRightSizingMethod, + VolumeStatus, +} from "./enums"; + /** *

AWS account.

* @public @@ -28,44 +68,6 @@ export interface AssociateSourceNetworkStackRequest { cfnStackName: string | undefined; } -/** - * @public - * @enum - */ -export const InitiatedBy = { - ASSOCIATE_NETWORK_RECOVERY: "ASSOCIATE_NETWORK_RECOVERY", - CREATE_NETWORK_RECOVERY: "CREATE_NETWORK_RECOVERY", - DIAGNOSTIC: "DIAGNOSTIC", - FAILBACK: "FAILBACK", - START_DRILL: "START_DRILL", - START_RECOVERY: "START_RECOVERY", - TARGET_ACCOUNT: "TARGET_ACCOUNT", - TERMINATE_RECOVERY_INSTANCES: "TERMINATE_RECOVERY_INSTANCES", - UPDATE_NETWORK_RECOVERY: "UPDATE_NETWORK_RECOVERY", -} as const; - -/** - * @public - */ -export type InitiatedBy = (typeof InitiatedBy)[keyof typeof InitiatedBy]; - -/** - * @public - * @enum - */ -export const LaunchStatus = { - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - LAUNCHED: "LAUNCHED", - PENDING: "PENDING", - TERMINATED: "TERMINATED", -} as const; - -/** - * @public - */ -export type LaunchStatus = (typeof LaunchStatus)[keyof typeof LaunchStatus]; - /** *

ID of a resource participating in an asynchronous Job.

* @public @@ -123,37 +125,6 @@ export interface ParticipatingResource { launchStatus?: LaunchStatus | undefined; } -/** - * @public - * @enum - */ -export const LaunchActionCategory = { - CONFIGURATION: "CONFIGURATION", - MONITORING: "MONITORING", - OTHER: "OTHER", - SECURITY: "SECURITY", - VALIDATION: "VALIDATION", -} as const; - -/** - * @public - */ -export type LaunchActionCategory = (typeof LaunchActionCategory)[keyof typeof LaunchActionCategory]; - -/** - * @public - * @enum - */ -export const LaunchActionParameterType = { - DYNAMIC: "DYNAMIC", - SSM_STORE: "SSM_STORE", -} as const; - -/** - * @public - */ -export type LaunchActionParameterType = (typeof LaunchActionParameterType)[keyof typeof LaunchActionParameterType]; - /** *

Launch action parameter.

* @public @@ -172,20 +143,6 @@ export interface LaunchActionParameter { type?: LaunchActionParameterType | undefined; } -/** - * @public - * @enum - */ -export const LaunchActionType = { - SSM_AUTOMATION: "SSM_AUTOMATION", - SSM_COMMAND: "SSM_COMMAND", -} as const; - -/** - * @public - */ -export type LaunchActionType = (typeof LaunchActionType)[keyof typeof LaunchActionType]; - /** *

Launch action.

* @public @@ -258,21 +215,6 @@ export interface LaunchAction { category?: LaunchActionCategory | undefined; } -/** - * @public - * @enum - */ -export const LaunchActionRunStatus = { - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type LaunchActionRunStatus = (typeof LaunchActionRunStatus)[keyof typeof LaunchActionRunStatus]; - /** *

Launch action run.

* @public @@ -351,36 +293,6 @@ export interface ParticipatingServer { launchActionsStatus?: LaunchActionsStatus | undefined; } -/** - * @public - * @enum - */ -export const JobStatus = { - COMPLETED: "COMPLETED", - PENDING: "PENDING", - STARTED: "STARTED", -} as const; - -/** - * @public - */ -export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus]; - -/** - * @public - * @enum - */ -export const JobType = { - CREATE_CONVERTED_SNAPSHOT: "CREATE_CONVERTED_SNAPSHOT", - LAUNCH: "LAUNCH", - TERMINATE: "TERMINATE", -} as const; - -/** - * @public - */ -export type JobType = (typeof JobType)[keyof typeof JobType]; - /** *

A job is an asynchronous workflow.

* @public @@ -476,36 +388,6 @@ export interface ValidationExceptionField { message?: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - CANNOT_PARSE: "cannotParse", - FIELD_VALIDATION_FAILED: "fieldValidationFailed", - OTHER: "other", - UNKNOWN_OPERATION: "unknownOperation", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - -/** - * @public - * @enum - */ -export const ProductCodeMode = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type ProductCodeMode = (typeof ProductCodeMode)[keyof typeof ProductCodeMode]; - /** *

Properties of a product code associated with a volume.

* @public @@ -601,32 +483,6 @@ export interface CreateExtendedSourceServerRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const DataReplicationErrorString = { - AGENT_NOT_SEEN: "AGENT_NOT_SEEN", - FAILED_TO_ATTACH_STAGING_DISKS: "FAILED_TO_ATTACH_STAGING_DISKS", - FAILED_TO_AUTHENTICATE_WITH_SERVICE: "FAILED_TO_AUTHENTICATE_WITH_SERVICE", - FAILED_TO_BOOT_REPLICATION_SERVER: "FAILED_TO_BOOT_REPLICATION_SERVER", - FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER: "FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER", - FAILED_TO_CREATE_SECURITY_GROUP: "FAILED_TO_CREATE_SECURITY_GROUP", - FAILED_TO_CREATE_STAGING_DISKS: "FAILED_TO_CREATE_STAGING_DISKS", - FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE: "FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE", - FAILED_TO_LAUNCH_REPLICATION_SERVER: "FAILED_TO_LAUNCH_REPLICATION_SERVER", - FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT: "FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT", - FAILED_TO_START_DATA_TRANSFER: "FAILED_TO_START_DATA_TRANSFER", - NOT_CONVERGING: "NOT_CONVERGING", - SNAPSHOTS_FAILURE: "SNAPSHOTS_FAILURE", - UNSTABLE_NETWORK: "UNSTABLE_NETWORK", -} as const; - -/** - * @public - */ -export type DataReplicationErrorString = (typeof DataReplicationErrorString)[keyof typeof DataReplicationErrorString]; - /** *

Error in data replication.

* @public @@ -645,48 +501,6 @@ export interface DataReplicationError { rawError?: string | undefined; } -/** - * @public - * @enum - */ -export const DataReplicationInitiationStepName = { - ATTACH_STAGING_DISKS: "ATTACH_STAGING_DISKS", - AUTHENTICATE_WITH_SERVICE: "AUTHENTICATE_WITH_SERVICE", - BOOT_REPLICATION_SERVER: "BOOT_REPLICATION_SERVER", - CONNECT_AGENT_TO_REPLICATION_SERVER: "CONNECT_AGENT_TO_REPLICATION_SERVER", - CREATE_SECURITY_GROUP: "CREATE_SECURITY_GROUP", - CREATE_STAGING_DISKS: "CREATE_STAGING_DISKS", - DOWNLOAD_REPLICATION_SOFTWARE: "DOWNLOAD_REPLICATION_SOFTWARE", - LAUNCH_REPLICATION_SERVER: "LAUNCH_REPLICATION_SERVER", - PAIR_REPLICATION_SERVER_WITH_AGENT: "PAIR_REPLICATION_SERVER_WITH_AGENT", - START_DATA_TRANSFER: "START_DATA_TRANSFER", - WAIT: "WAIT", -} as const; - -/** - * @public - */ -export type DataReplicationInitiationStepName = - (typeof DataReplicationInitiationStepName)[keyof typeof DataReplicationInitiationStepName]; - -/** - * @public - * @enum - */ -export const DataReplicationInitiationStepStatus = { - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - NOT_STARTED: "NOT_STARTED", - SKIPPED: "SKIPPED", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type DataReplicationInitiationStepStatus = - (typeof DataReplicationInitiationStepStatus)[keyof typeof DataReplicationInitiationStepStatus]; - /** *

Data replication initiation step.

* @public @@ -729,45 +543,6 @@ export interface DataReplicationInitiation { steps?: DataReplicationInitiationStep[] | undefined; } -/** - * @public - * @enum - */ -export const DataReplicationState = { - BACKLOG: "BACKLOG", - CONTINUOUS: "CONTINUOUS", - CREATING_SNAPSHOT: "CREATING_SNAPSHOT", - DISCONNECTED: "DISCONNECTED", - INITIAL_SYNC: "INITIAL_SYNC", - INITIATING: "INITIATING", - PAUSED: "PAUSED", - RESCAN: "RESCAN", - STALLED: "STALLED", - STOPPED: "STOPPED", -} as const; - -/** - * @public - */ -export type DataReplicationState = (typeof DataReplicationState)[keyof typeof DataReplicationState]; - -/** - * @public - * @enum - */ -export const VolumeStatus = { - CONTAINS_MARKETPLACE_PRODUCT_CODES: "CONTAINS_MARKETPLACE_PRODUCT_CODES", - MISSING_VOLUME_ATTRIBUTES: "MISSING_VOLUME_ATTRIBUTES", - MISSING_VOLUME_ATTRIBUTES_AND_PRECHECK_UNAVAILABLE: "MISSING_VOLUME_ATTRIBUTES_AND_PRECHECK_UNAVAILABLE", - PENDING: "PENDING", - REGULAR: "REGULAR", -} as const; - -/** - * @public - */ -export type VolumeStatus = (typeof VolumeStatus)[keyof typeof VolumeStatus]; - /** *

A disk that should be replicated.

* @public @@ -864,36 +639,6 @@ export interface DataReplicationInfo { stagingOutpostArn?: string | undefined; } -/** - * @public - * @enum - */ -export const LastLaunchResult = { - FAILED: "FAILED", - NOT_STARTED: "NOT_STARTED", - PENDING: "PENDING", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type LastLaunchResult = (typeof LastLaunchResult)[keyof typeof LastLaunchResult]; - -/** - * @public - * @enum - */ -export const LastLaunchType = { - DRILL: "DRILL", - RECOVERY: "RECOVERY", -} as const; - -/** - * @public - */ -export type LastLaunchType = (typeof LastLaunchType)[keyof typeof LastLaunchType]; - /** *

An object containing information regarding the initiation of the last launch of a Source Server.

* @public @@ -972,20 +717,6 @@ export interface LifeCycle { lastLaunch?: LifeCycleLastLaunch | undefined; } -/** - * @public - * @enum - */ -export const ReplicationDirection = { - FAILBACK: "FAILBACK", - FAILOVER: "FAILOVER", -} as const; - -/** - * @public - */ -export type ReplicationDirection = (typeof ReplicationDirection)[keyof typeof ReplicationDirection]; - /** *

Properties of the cloud environment where this Source Server originated from.

* @public @@ -1160,21 +891,6 @@ export interface SourceProperties { supportsNitroInstances?: boolean | undefined; } -/** - * @public - * @enum - */ -export const ExtensionStatus = { - EXTENDED: "EXTENDED", - EXTENSION_ERROR: "EXTENSION_ERROR", - NOT_EXTENDED: "NOT_EXTENDED", -} as const; - -/** - * @public - */ -export type ExtensionStatus = (typeof ExtensionStatus)[keyof typeof ExtensionStatus]; - /** *

Staging information related to source server.

* @public @@ -1308,20 +1024,6 @@ export interface CreateExtendedSourceServerResponse { sourceServer?: SourceServer | undefined; } -/** - * @public - * @enum - */ -export const LaunchDisposition = { - STARTED: "STARTED", - STOPPED: "STOPPED", -} as const; - -/** - * @public - */ -export type LaunchDisposition = (typeof LaunchDisposition)[keyof typeof LaunchDisposition]; - /** *

Configuration of a machine's license.

* @public @@ -1334,22 +1036,6 @@ export interface Licensing { osByol?: boolean | undefined; } -/** - * @public - * @enum - */ -export const TargetInstanceTypeRightSizingMethod = { - BASIC: "BASIC", - IN_AWS: "IN_AWS", - NONE: "NONE", -} as const; - -/** - * @public - */ -export type TargetInstanceTypeRightSizingMethod = - (typeof TargetInstanceTypeRightSizingMethod)[keyof typeof TargetInstanceTypeRightSizingMethod]; - /** * @public */ @@ -1492,69 +1178,6 @@ export interface CreateLaunchConfigurationTemplateResponse { launchConfigurationTemplate?: LaunchConfigurationTemplate | undefined; } -/** - * @public - * @enum - */ -export const ReplicationConfigurationDataPlaneRouting = { - PRIVATE_IP: "PRIVATE_IP", - PUBLIC_IP: "PUBLIC_IP", -} as const; - -/** - * @public - */ -export type ReplicationConfigurationDataPlaneRouting = - (typeof ReplicationConfigurationDataPlaneRouting)[keyof typeof ReplicationConfigurationDataPlaneRouting]; - -/** - * @public - * @enum - */ -export const ReplicationConfigurationDefaultLargeStagingDiskType = { - AUTO: "AUTO", - GP2: "GP2", - GP3: "GP3", - ST1: "ST1", -} as const; - -/** - * @public - */ -export type ReplicationConfigurationDefaultLargeStagingDiskType = - (typeof ReplicationConfigurationDefaultLargeStagingDiskType)[keyof typeof ReplicationConfigurationDefaultLargeStagingDiskType]; - -/** - * @public - * @enum - */ -export const ReplicationConfigurationEbsEncryption = { - CUSTOM: "CUSTOM", - DEFAULT: "DEFAULT", - NONE: "NONE", -} as const; - -/** - * @public - */ -export type ReplicationConfigurationEbsEncryption = - (typeof ReplicationConfigurationEbsEncryption)[keyof typeof ReplicationConfigurationEbsEncryption]; - -/** - * @public - * @enum - */ -export const PITPolicyRuleUnits = { - DAY: "DAY", - HOUR: "HOUR", - MINUTE: "MINUTE", -} as const; - -/** - * @public - */ -export type PITPolicyRuleUnits = (typeof PITPolicyRuleUnits)[keyof typeof PITPolicyRuleUnits]; - /** *

A rule in the Point in Time (PIT) policy representing when to take snapshots and how long to retain them for.

* @public @@ -1969,45 +1592,6 @@ export interface DescribeJobLogItemsRequest { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const JobLogEvent = { - CLEANUP_END: "CLEANUP_END", - CLEANUP_FAIL: "CLEANUP_FAIL", - CLEANUP_START: "CLEANUP_START", - CONVERSION_END: "CONVERSION_END", - CONVERSION_FAIL: "CONVERSION_FAIL", - CONVERSION_START: "CONVERSION_START", - DEPLOY_NETWORK_CONFIGURATION_END: "DEPLOY_NETWORK_CONFIGURATION_END", - DEPLOY_NETWORK_CONFIGURATION_FAILED: "DEPLOY_NETWORK_CONFIGURATION_FAILED", - DEPLOY_NETWORK_CONFIGURATION_START: "DEPLOY_NETWORK_CONFIGURATION_START", - JOB_CANCEL: "JOB_CANCEL", - JOB_END: "JOB_END", - JOB_START: "JOB_START", - LAUNCH_FAILED: "LAUNCH_FAILED", - LAUNCH_START: "LAUNCH_START", - NETWORK_RECOVERY_FAIL: "NETWORK_RECOVERY_FAIL", - SERVER_SKIPPED: "SERVER_SKIPPED", - SNAPSHOT_END: "SNAPSHOT_END", - SNAPSHOT_FAIL: "SNAPSHOT_FAIL", - SNAPSHOT_START: "SNAPSHOT_START", - UPDATE_LAUNCH_TEMPLATE_END: "UPDATE_LAUNCH_TEMPLATE_END", - UPDATE_LAUNCH_TEMPLATE_FAILED: "UPDATE_LAUNCH_TEMPLATE_FAILED", - UPDATE_LAUNCH_TEMPLATE_START: "UPDATE_LAUNCH_TEMPLATE_START", - UPDATE_NETWORK_CONFIGURATION_END: "UPDATE_NETWORK_CONFIGURATION_END", - UPDATE_NETWORK_CONFIGURATION_FAILED: "UPDATE_NETWORK_CONFIGURATION_FAILED", - UPDATE_NETWORK_CONFIGURATION_START: "UPDATE_NETWORK_CONFIGURATION_START", - USING_PREVIOUS_SNAPSHOT: "USING_PREVIOUS_SNAPSHOT", - USING_PREVIOUS_SNAPSHOT_FAILED: "USING_PREVIOUS_SNAPSHOT_FAILED", -} as const; - -/** - * @public - */ -export type JobLogEvent = (typeof JobLogEvent)[keyof typeof JobLogEvent]; - /** *

Properties of Source Network related to a job event.

* @public @@ -2303,41 +1887,6 @@ export interface DescribeRecoveryInstancesRequest { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const FailbackReplicationError = { - AGENT_NOT_SEEN: "AGENT_NOT_SEEN", - FAILBACK_CLIENT_NOT_SEEN: "FAILBACK_CLIENT_NOT_SEEN", - FAILED_GETTING_REPLICATION_STATE: "FAILED_GETTING_REPLICATION_STATE", - FAILED_TO_ATTACH_STAGING_DISKS: "FAILED_TO_ATTACH_STAGING_DISKS", - FAILED_TO_AUTHENTICATE_WITH_SERVICE: "FAILED_TO_AUTHENTICATE_WITH_SERVICE", - FAILED_TO_BOOT_REPLICATION_SERVER: "FAILED_TO_BOOT_REPLICATION_SERVER", - FAILED_TO_CONFIGURE_REPLICATION_SOFTWARE: "FAILED_TO_CONFIGURE_REPLICATION_SOFTWARE", - FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER: "FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER", - FAILED_TO_CREATE_SECURITY_GROUP: "FAILED_TO_CREATE_SECURITY_GROUP", - FAILED_TO_CREATE_STAGING_DISKS: "FAILED_TO_CREATE_STAGING_DISKS", - FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE: "FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE", - FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE_TO_FAILBACK_CLIENT: - "FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE_TO_FAILBACK_CLIENT", - FAILED_TO_ESTABLISH_AGENT_REPLICATOR_SOFTWARE_COMMUNICATION: - "FAILED_TO_ESTABLISH_AGENT_REPLICATOR_SOFTWARE_COMMUNICATION", - FAILED_TO_ESTABLISH_RECOVERY_INSTANCE_COMMUNICATION: "FAILED_TO_ESTABLISH_RECOVERY_INSTANCE_COMMUNICATION", - FAILED_TO_LAUNCH_REPLICATION_SERVER: "FAILED_TO_LAUNCH_REPLICATION_SERVER", - FAILED_TO_PAIR_AGENT_WITH_REPLICATION_SOFTWARE: "FAILED_TO_PAIR_AGENT_WITH_REPLICATION_SOFTWARE", - FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT: "FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT", - FAILED_TO_START_DATA_TRANSFER: "FAILED_TO_START_DATA_TRANSFER", - NOT_CONVERGING: "NOT_CONVERGING", - SNAPSHOTS_FAILURE: "SNAPSHOTS_FAILURE", - UNSTABLE_NETWORK: "UNSTABLE_NETWORK", -} as const; - -/** - * @public - */ -export type FailbackReplicationError = (typeof FailbackReplicationError)[keyof typeof FailbackReplicationError]; - /** *

Error in data replication.

* @public @@ -2356,55 +1905,6 @@ export interface RecoveryInstanceDataReplicationError { rawError?: string | undefined; } -/** - * @public - * @enum - */ -export const RecoveryInstanceDataReplicationInitiationStepName = { - ATTACH_STAGING_DISKS: "ATTACH_STAGING_DISKS", - AUTHENTICATE_WITH_SERVICE: "AUTHENTICATE_WITH_SERVICE", - BOOT_REPLICATION_SERVER: "BOOT_REPLICATION_SERVER", - COMPLETE_VOLUME_MAPPING: "COMPLETE_VOLUME_MAPPING", - CONFIGURE_REPLICATION_SOFTWARE: "CONFIGURE_REPLICATION_SOFTWARE", - CONNECT_AGENT_TO_REPLICATION_SERVER: "CONNECT_AGENT_TO_REPLICATION_SERVER", - CREATE_SECURITY_GROUP: "CREATE_SECURITY_GROUP", - CREATE_STAGING_DISKS: "CREATE_STAGING_DISKS", - DOWNLOAD_REPLICATION_SOFTWARE: "DOWNLOAD_REPLICATION_SOFTWARE", - DOWNLOAD_REPLICATION_SOFTWARE_TO_FAILBACK_CLIENT: "DOWNLOAD_REPLICATION_SOFTWARE_TO_FAILBACK_CLIENT", - ESTABLISH_AGENT_REPLICATOR_SOFTWARE_COMMUNICATION: "ESTABLISH_AGENT_REPLICATOR_SOFTWARE_COMMUNICATION", - ESTABLISH_RECOVERY_INSTANCE_COMMUNICATION: "ESTABLISH_RECOVERY_INSTANCE_COMMUNICATION", - LAUNCH_REPLICATION_SERVER: "LAUNCH_REPLICATION_SERVER", - LINK_FAILBACK_CLIENT_WITH_RECOVERY_INSTANCE: "LINK_FAILBACK_CLIENT_WITH_RECOVERY_INSTANCE", - PAIR_AGENT_WITH_REPLICATION_SOFTWARE: "PAIR_AGENT_WITH_REPLICATION_SOFTWARE", - PAIR_REPLICATION_SERVER_WITH_AGENT: "PAIR_REPLICATION_SERVER_WITH_AGENT", - START_DATA_TRANSFER: "START_DATA_TRANSFER", - WAIT: "WAIT", -} as const; - -/** - * @public - */ -export type RecoveryInstanceDataReplicationInitiationStepName = - (typeof RecoveryInstanceDataReplicationInitiationStepName)[keyof typeof RecoveryInstanceDataReplicationInitiationStepName]; - -/** - * @public - * @enum - */ -export const RecoveryInstanceDataReplicationInitiationStepStatus = { - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - NOT_STARTED: "NOT_STARTED", - SKIPPED: "SKIPPED", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type RecoveryInstanceDataReplicationInitiationStepStatus = - (typeof RecoveryInstanceDataReplicationInitiationStepStatus)[keyof typeof RecoveryInstanceDataReplicationInitiationStepStatus]; - /** *

Data replication initiation step.

* @public @@ -2441,31 +1941,6 @@ export interface RecoveryInstanceDataReplicationInitiation { steps?: RecoveryInstanceDataReplicationInitiationStep[] | undefined; } -/** - * @public - * @enum - */ -export const RecoveryInstanceDataReplicationState = { - BACKLOG: "BACKLOG", - CONTINUOUS: "CONTINUOUS", - CREATING_SNAPSHOT: "CREATING_SNAPSHOT", - DISCONNECTED: "DISCONNECTED", - INITIAL_SYNC: "INITIAL_SYNC", - INITIATING: "INITIATING", - NOT_STARTED: "NOT_STARTED", - PAUSED: "PAUSED", - REPLICATION_STATE_NOT_AVAILABLE: "REPLICATION_STATE_NOT_AVAILABLE", - RESCAN: "RESCAN", - STALLED: "STALLED", - STOPPED: "STOPPED", -} as const; - -/** - * @public - */ -export type RecoveryInstanceDataReplicationState = - (typeof RecoveryInstanceDataReplicationState)[keyof typeof RecoveryInstanceDataReplicationState]; - /** *

A disk that should be replicated.

* @public @@ -2556,58 +2031,6 @@ export interface RecoveryInstanceDataReplicationInfo { stagingOutpostArn?: string | undefined; } -/** - * @public - * @enum - */ -export const EC2InstanceState = { - NOT_FOUND: "NOT_FOUND", - PENDING: "PENDING", - RUNNING: "RUNNING", - SHUTTING_DOWN: "SHUTTING-DOWN", - STOPPED: "STOPPED", - STOPPING: "STOPPING", - TERMINATED: "TERMINATED", -} as const; - -/** - * @public - */ -export type EC2InstanceState = (typeof EC2InstanceState)[keyof typeof EC2InstanceState]; - -/** - * @public - * @enum - */ -export const FailbackLaunchType = { - DRILL: "DRILL", - RECOVERY: "RECOVERY", -} as const; - -/** - * @public - */ -export type FailbackLaunchType = (typeof FailbackLaunchType)[keyof typeof FailbackLaunchType]; - -/** - * @public - * @enum - */ -export const FailbackState = { - FAILBACK_COMPLETED: "FAILBACK_COMPLETED", - FAILBACK_ERROR: "FAILBACK_ERROR", - FAILBACK_IN_PROGRESS: "FAILBACK_IN_PROGRESS", - FAILBACK_LAUNCH_STATE_NOT_AVAILABLE: "FAILBACK_LAUNCH_STATE_NOT_AVAILABLE", - FAILBACK_NOT_READY_FOR_LAUNCH: "FAILBACK_NOT_READY_FOR_LAUNCH", - FAILBACK_NOT_STARTED: "FAILBACK_NOT_STARTED", - FAILBACK_READY_FOR_LAUNCH: "FAILBACK_READY_FOR_LAUNCH", -} as const; - -/** - * @public - */ -export type FailbackState = (typeof FailbackState)[keyof typeof FailbackState]; - /** *

An object representing failback related information of the Recovery Instance.

* @public @@ -2674,20 +2097,6 @@ export interface RecoveryInstanceFailback { failbackLaunchType?: FailbackLaunchType | undefined; } -/** - * @public - * @enum - */ -export const OriginEnvironment = { - AWS: "AWS", - ON_PREMISES: "ON_PREMISES", -} as const; - -/** - * @public - */ -export type OriginEnvironment = (typeof OriginEnvironment)[keyof typeof OriginEnvironment]; - /** *

An object representing a block storage device on the Recovery Instance.

* @public @@ -2897,20 +2306,6 @@ export interface DescribeRecoverySnapshotsRequestFilters { toDateTime?: string | undefined; } -/** - * @public - * @enum - */ -export const RecoverySnapshotsOrder = { - ASC: "ASC", - DESC: "DESC", -} as const; - -/** - * @public - */ -export type RecoverySnapshotsOrder = (typeof RecoverySnapshotsOrder)[keyof typeof RecoverySnapshotsOrder]; - /** * @public */ @@ -3086,25 +2481,6 @@ export interface DescribeSourceNetworksRequest { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const RecoveryResult = { - ASSOCIATE_FAIL: "ASSOCIATE_FAIL", - ASSOCIATE_SUCCESS: "ASSOCIATE_SUCCESS", - FAIL: "FAIL", - IN_PROGRESS: "IN_PROGRESS", - NOT_STARTED: "NOT_STARTED", - PARTIAL_SUCCESS: "PARTIAL_SUCCESS", - SUCCESS: "SUCCESS", -} as const; - -/** - * @public - */ -export type RecoveryResult = (typeof RecoveryResult)[keyof typeof RecoveryResult]; - /** *

An object representing the Source Network recovery Lifecycle.

* @public @@ -3129,22 +2505,6 @@ export interface RecoveryLifeCycle { lastRecoveryResult?: RecoveryResult | undefined; } -/** - * @public - * @enum - */ -export const ReplicationStatus = { - ERROR: "ERROR", - IN_PROGRESS: "IN_PROGRESS", - PROTECTED: "PROTECTED", - STOPPED: "STOPPED", -} as const; - -/** - * @public - */ -export type ReplicationStatus = (typeof ReplicationStatus)[keyof typeof ReplicationStatus]; - /** *

The ARN of the Source Network.

* @public @@ -4200,26 +3560,6 @@ export interface GetReplicationConfigurationRequest { sourceServerID: string | undefined; } -/** - * @public - * @enum - */ -export const ReplicationConfigurationReplicatedDiskStagingDiskType = { - AUTO: "AUTO", - GP2: "GP2", - GP3: "GP3", - IO1: "IO1", - SC1: "SC1", - ST1: "ST1", - STANDARD: "STANDARD", -} as const; - -/** - * @public - */ -export type ReplicationConfigurationReplicatedDiskStagingDiskType = - (typeof ReplicationConfigurationReplicatedDiskStagingDiskType)[keyof typeof ReplicationConfigurationReplicatedDiskStagingDiskType]; - /** *

The configuration of a disk of the Source Server to be replicated.

* @public diff --git a/clients/client-emr-serverless/src/index.ts b/clients/client-emr-serverless/src/index.ts index 00fbeb117647..91f3a03b7862 100644 --- a/clients/client-emr-serverless/src/index.ts +++ b/clients/client-emr-serverless/src/index.ts @@ -13,6 +13,7 @@ export type { EMRServerlessExtensionConfiguration } from "./extensionConfigurati export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-emr-serverless/src/models/enums.ts b/clients/client-emr-serverless/src/models/enums.ts new file mode 100644 index 000000000000..59e32b51e1ce --- /dev/null +++ b/clients/client-emr-serverless/src/models/enums.ts @@ -0,0 +1,64 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const Architecture = { + ARM64: "ARM64", + X86_64: "X86_64", +} as const; +/** + * @public + */ +export type Architecture = (typeof Architecture)[keyof typeof Architecture]; + +/** + * @public + * @enum + */ +export const ApplicationState = { + CREATED: "CREATED", + CREATING: "CREATING", + STARTED: "STARTED", + STARTING: "STARTING", + STOPPED: "STOPPED", + STOPPING: "STOPPING", + TERMINATED: "TERMINATED", +} as const; +/** + * @public + */ +export type ApplicationState = (typeof ApplicationState)[keyof typeof ApplicationState]; + +/** + * @public + * @enum + */ +export const JobRunMode = { + BATCH: "BATCH", + STREAMING: "STREAMING", +} as const; +/** + * @public + */ +export type JobRunMode = (typeof JobRunMode)[keyof typeof JobRunMode]; + +/** + * @public + * @enum + */ +export const JobRunState = { + CANCELLED: "CANCELLED", + CANCELLING: "CANCELLING", + FAILED: "FAILED", + PENDING: "PENDING", + QUEUED: "QUEUED", + RUNNING: "RUNNING", + SCHEDULED: "SCHEDULED", + SUBMITTED: "SUBMITTED", + SUCCESS: "SUCCESS", +} as const; +/** + * @public + */ +export type JobRunState = (typeof JobRunState)[keyof typeof JobRunState]; diff --git a/clients/client-emr-serverless/src/models/models_0.ts b/clients/client-emr-serverless/src/models/models_0.ts index 66e049446fa2..3d7c059b62d4 100644 --- a/clients/client-emr-serverless/src/models/models_0.ts +++ b/clients/client-emr-serverless/src/models/models_0.ts @@ -1,17 +1,5 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const Architecture = { - ARM64: "ARM64", - X86_64: "X86_64", -} as const; - -/** - * @public - */ -export type Architecture = (typeof Architecture)[keyof typeof Architecture]; +import { ApplicationState, Architecture, JobRunMode, JobRunState } from "./enums"; /** *

The configuration for an application to automatically start on job submission.

@@ -325,25 +313,6 @@ export interface SchedulerConfiguration { maxConcurrentRuns?: number | undefined; } -/** - * @public - * @enum - */ -export const ApplicationState = { - CREATED: "CREATED", - CREATING: "CREATING", - STARTED: "STARTED", - STARTING: "STARTING", - STOPPED: "STOPPED", - STOPPING: "STOPPING", - TERMINATED: "TERMINATED", -} as const; - -/** - * @public - */ -export type ApplicationState = (typeof ApplicationState)[keyof typeof ApplicationState]; - /** *

The specifications for a worker type.

* @public @@ -829,20 +798,6 @@ export namespace JobDriver { } } -/** - * @public - * @enum - */ -export const JobRunMode = { - BATCH: "BATCH", - STREAMING: "STREAMING", -} as const; - -/** - * @public - */ -export type JobRunMode = (typeof JobRunMode)[keyof typeof JobRunMode]; - /** *

The retry policy to use for a job run.

* @public @@ -861,27 +816,6 @@ export interface RetryPolicy { maxFailedAttemptsPerHour?: number | undefined; } -/** - * @public - * @enum - */ -export const JobRunState = { - CANCELLED: "CANCELLED", - CANCELLING: "CANCELLING", - FAILED: "FAILED", - PENDING: "PENDING", - QUEUED: "QUEUED", - RUNNING: "RUNNING", - SCHEDULED: "SCHEDULED", - SUBMITTED: "SUBMITTED", - SUCCESS: "SUCCESS", -} as const; - -/** - * @public - */ -export type JobRunState = (typeof JobRunState)[keyof typeof JobRunState]; - /** *

The aggregate vCPU, memory, and storage resources used from the time job start executing till the time job is terminated, rounded up to the nearest second.

* @public diff --git a/clients/client-evidently/src/index.ts b/clients/client-evidently/src/index.ts index 4962ac5eebee..2a0974302d6d 100644 --- a/clients/client-evidently/src/index.ts +++ b/clients/client-evidently/src/index.ts @@ -22,6 +22,7 @@ export type { EvidentlyExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-evidently/src/models/enums.ts b/clients/client-evidently/src/models/enums.ts new file mode 100644 index 000000000000..1753e6798a4d --- /dev/null +++ b/clients/client-evidently/src/models/enums.ts @@ -0,0 +1,248 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + CANNOT_PARSE: "cannotParse", + FIELD_VALIDATION_FAILED: "fieldValidationFailed", + OTHER: "other", + UNKNOWN_OPERATION: "unknownOperation", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const ChangeDirectionEnum = { + DECREASE: "DECREASE", + INCREASE: "INCREASE", +} as const; +/** + * @public + */ +export type ChangeDirectionEnum = (typeof ChangeDirectionEnum)[keyof typeof ChangeDirectionEnum]; + +/** + * @public + * @enum + */ +export const ExperimentStatus = { + CANCELLED: "CANCELLED", + COMPLETED: "COMPLETED", + CREATED: "CREATED", + RUNNING: "RUNNING", + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type ExperimentStatus = (typeof ExperimentStatus)[keyof typeof ExperimentStatus]; + +/** + * @public + * @enum + */ +export const ExperimentType = { + ONLINE_AB_EXPERIMENT: "aws.evidently.onlineab", +} as const; +/** + * @public + */ +export type ExperimentType = (typeof ExperimentType)[keyof typeof ExperimentType]; + +/** + * @public + * @enum + */ +export const FeatureEvaluationStrategy = { + ALL_RULES: "ALL_RULES", + DEFAULT_VARIATION: "DEFAULT_VARIATION", +} as const; +/** + * @public + */ +export type FeatureEvaluationStrategy = (typeof FeatureEvaluationStrategy)[keyof typeof FeatureEvaluationStrategy]; + +/** + * @public + * @enum + */ +export const FeatureStatus = { + AVAILABLE: "AVAILABLE", + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type FeatureStatus = (typeof FeatureStatus)[keyof typeof FeatureStatus]; + +/** + * @public + * @enum + */ +export const VariationValueType = { + BOOLEAN: "BOOLEAN", + DOUBLE: "DOUBLE", + LONG: "LONG", + STRING: "STRING", +} as const; +/** + * @public + */ +export type VariationValueType = (typeof VariationValueType)[keyof typeof VariationValueType]; + +/** + * @public + * @enum + */ +export const LaunchStatus = { + CANCELLED: "CANCELLED", + COMPLETED: "COMPLETED", + CREATED: "CREATED", + RUNNING: "RUNNING", + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type LaunchStatus = (typeof LaunchStatus)[keyof typeof LaunchStatus]; + +/** + * @public + * @enum + */ +export const LaunchType = { + SCHEDULED_SPLITS_LAUNCH: "aws.evidently.splits", +} as const; +/** + * @public + */ +export type LaunchType = (typeof LaunchType)[keyof typeof LaunchType]; + +/** + * @public + * @enum + */ +export const ProjectStatus = { + AVAILABLE: "AVAILABLE", + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type ProjectStatus = (typeof ProjectStatus)[keyof typeof ProjectStatus]; + +/** + * @public + * @enum + */ +export const EventType = { + CUSTOM: "aws.evidently.custom", + EVALUATION: "aws.evidently.evaluation", +} as const; +/** + * @public + */ +export type EventType = (typeof EventType)[keyof typeof EventType]; + +/** + * @public + * @enum + */ +export const ExperimentBaseStat = { + MEAN: "Mean", +} as const; +/** + * @public + */ +export type ExperimentBaseStat = (typeof ExperimentBaseStat)[keyof typeof ExperimentBaseStat]; + +/** + * @public + * @enum + */ +export const ExperimentReportName = { + BAYESIAN_INFERENCE: "BayesianInference", +} as const; +/** + * @public + */ +export type ExperimentReportName = (typeof ExperimentReportName)[keyof typeof ExperimentReportName]; + +/** + * @public + * @enum + */ +export const ExperimentResultRequestType = { + BASE_STAT: "BaseStat", + CONFIDENCE_INTERVAL: "ConfidenceInterval", + P_VALUE: "PValue", + TREATMENT_EFFECT: "TreatmentEffect", +} as const; +/** + * @public + */ +export type ExperimentResultRequestType = + (typeof ExperimentResultRequestType)[keyof typeof ExperimentResultRequestType]; + +/** + * @public + * @enum + */ +export const ExperimentResultResponseType = { + CONFIDENCE_INTERVAL_LOWERBOUND: "ConfidenceIntervalLowerBound", + CONFIDENCE_INTERVAL_UPPERBOUND: "ConfidenceIntervalUpperBound", + MEAN: "Mean", + P_VALUE: "PValue", + TREATMENT_EFFECT: "TreatmentEffect", +} as const; +/** + * @public + */ +export type ExperimentResultResponseType = + (typeof ExperimentResultResponseType)[keyof typeof ExperimentResultResponseType]; + +/** + * @public + * @enum + */ +export const ExperimentStopDesiredState = { + CANCELLED: "CANCELLED", + COMPLETED: "COMPLETED", +} as const; +/** + * @public + */ +export type ExperimentStopDesiredState = (typeof ExperimentStopDesiredState)[keyof typeof ExperimentStopDesiredState]; + +/** + * @public + * @enum + */ +export const LaunchStopDesiredState = { + CANCELLED: "CANCELLED", + COMPLETED: "COMPLETED", +} as const; +/** + * @public + */ +export type LaunchStopDesiredState = (typeof LaunchStopDesiredState)[keyof typeof LaunchStopDesiredState]; + +/** + * @public + * @enum + */ +export const SegmentReferenceResourceType = { + EXPERIMENT: "EXPERIMENT", + LAUNCH: "LAUNCH", +} as const; +/** + * @public + */ +export type SegmentReferenceResourceType = + (typeof SegmentReferenceResourceType)[keyof typeof SegmentReferenceResourceType]; diff --git a/clients/client-evidently/src/models/errors.ts b/clients/client-evidently/src/models/errors.ts index 3591286ede41..7728aacf1f25 100644 --- a/clients/client-evidently/src/models/errors.ts +++ b/clients/client-evidently/src/models/errors.ts @@ -1,8 +1,9 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; +import { ValidationExceptionReason } from "./enums"; import { EvidentlyServiceException as __BaseException } from "./EvidentlyServiceException"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionField } from "./models_0"; /** *

You do not have sufficient permissions to perform this action.

diff --git a/clients/client-evidently/src/models/models_0.ts b/clients/client-evidently/src/models/models_0.ts index 3d35b56fe041..718c1de68c2d 100644 --- a/clients/client-evidently/src/models/models_0.ts +++ b/clients/client-evidently/src/models/models_0.ts @@ -1,6 +1,26 @@ // smithy-typescript generated code import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/smithy-client"; +import { + ChangeDirectionEnum, + EventType, + ExperimentBaseStat, + ExperimentReportName, + ExperimentResultRequestType, + ExperimentResultResponseType, + ExperimentStatus, + ExperimentStopDesiredState, + ExperimentType, + FeatureEvaluationStrategy, + FeatureStatus, + LaunchStatus, + LaunchStopDesiredState, + LaunchType, + ProjectStatus, + SegmentReferenceResourceType, + VariationValueType, +} from "./enums"; + /** *

This structure assigns a feature variation to one user session.

* @public @@ -221,36 +241,6 @@ export interface ValidationExceptionField { message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - CANNOT_PARSE: "cannotParse", - FIELD_VALIDATION_FAILED: "fieldValidationFailed", - OTHER: "other", - UNKNOWN_OPERATION: "unknownOperation", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - -/** - * @public - * @enum - */ -export const ChangeDirectionEnum = { - DECREASE: "DECREASE", - INCREASE: "INCREASE", -} as const; - -/** - * @public - */ -export type ChangeDirectionEnum = (typeof ChangeDirectionEnum)[keyof typeof ChangeDirectionEnum]; - /** *

A structure containing the CloudWatch Logs log group where the project stores evaluation * events.

@@ -595,23 +585,6 @@ export interface ExperimentSchedule { analysisCompleteTime?: Date | undefined; } -/** - * @public - * @enum - */ -export const ExperimentStatus = { - CANCELLED: "CANCELLED", - COMPLETED: "COMPLETED", - CREATED: "CREATED", - RUNNING: "RUNNING", - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type ExperimentStatus = (typeof ExperimentStatus)[keyof typeof ExperimentStatus]; - /** *

A structure that defines one treatment in an experiment. A treatment is a variation of the feature * that you are including in the experiment.

@@ -638,19 +611,6 @@ export interface Treatment { featureVariations?: Record | undefined; } -/** - * @public - * @enum - */ -export const ExperimentType = { - ONLINE_AB_EXPERIMENT: "aws.evidently.onlineab", -} as const; - -/** - * @public - */ -export type ExperimentType = (typeof ExperimentType)[keyof typeof ExperimentType]; - /** *

A structure containing the configuration details of an experiment.

* @public @@ -787,20 +747,6 @@ export interface CreateExperimentResponse { experiment: Experiment | undefined; } -/** - * @public - * @enum - */ -export const FeatureEvaluationStrategy = { - ALL_RULES: "ALL_RULES", - DEFAULT_VARIATION: "DEFAULT_VARIATION", -} as const; - -/** - * @public - */ -export type FeatureEvaluationStrategy = (typeof FeatureEvaluationStrategy)[keyof typeof FeatureEvaluationStrategy]; - /** *

This structure contains the name and variation value of one variation of a feature.

* @public @@ -910,36 +856,6 @@ export interface EvaluationRule { type: string | undefined; } -/** - * @public - * @enum - */ -export const FeatureStatus = { - AVAILABLE: "AVAILABLE", - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type FeatureStatus = (typeof FeatureStatus)[keyof typeof FeatureStatus]; - -/** - * @public - * @enum - */ -export const VariationValueType = { - BOOLEAN: "BOOLEAN", - DOUBLE: "DOUBLE", - LONG: "LONG", - STRING: "STRING", -} as const; - -/** - * @public - */ -export type VariationValueType = (typeof VariationValueType)[keyof typeof VariationValueType]; - /** *

This structure contains the name and variation value of one variation of a feature.

* @public @@ -1370,36 +1286,6 @@ export interface ScheduledSplitsLaunchDefinition { steps?: ScheduledSplit[] | undefined; } -/** - * @public - * @enum - */ -export const LaunchStatus = { - CANCELLED: "CANCELLED", - COMPLETED: "COMPLETED", - CREATED: "CREATED", - RUNNING: "RUNNING", - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type LaunchStatus = (typeof LaunchStatus)[keyof typeof LaunchStatus]; - -/** - * @public - * @enum - */ -export const LaunchType = { - SCHEDULED_SPLITS_LAUNCH: "aws.evidently.splits", -} as const; - -/** - * @public - */ -export type LaunchType = (typeof LaunchType)[keyof typeof LaunchType]; - /** *

This structure contains the configuration details of one Evidently launch.

* @public @@ -1696,20 +1582,6 @@ export interface ProjectDataDelivery { cloudWatchLogs?: CloudWatchLogsDestination | undefined; } -/** - * @public - * @enum - */ -export const ProjectStatus = { - AVAILABLE: "AVAILABLE", - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type ProjectStatus = (typeof ProjectStatus)[keyof typeof ProjectStatus]; - /** *

This structure defines a project, which is the logical object in Evidently that can contain features, launches, and * experiments. Use projects to group similar features together.

@@ -2098,20 +1970,6 @@ export interface EvaluateFeatureResponse { details?: __AutomaticJsonStringConversion | string | undefined; } -/** - * @public - * @enum - */ -export const EventType = { - CUSTOM: "aws.evidently.custom", - EVALUATION: "aws.evidently.evaluation", -} as const; - -/** - * @public - */ -export type EventType = (typeof EventType)[keyof typeof EventType]; - /** *

A structure that contains the information about one evaluation event or custom event sent to Evidently. * This is a JSON payload. If this event specifies a pre-defined event type, the payload must follow the @@ -2191,49 +2049,6 @@ export interface GetExperimentResponse { experiment?: Experiment | undefined; } -/** - * @public - * @enum - */ -export const ExperimentBaseStat = { - MEAN: "Mean", -} as const; - -/** - * @public - */ -export type ExperimentBaseStat = (typeof ExperimentBaseStat)[keyof typeof ExperimentBaseStat]; - -/** - * @public - * @enum - */ -export const ExperimentReportName = { - BAYESIAN_INFERENCE: "BayesianInference", -} as const; - -/** - * @public - */ -export type ExperimentReportName = (typeof ExperimentReportName)[keyof typeof ExperimentReportName]; - -/** - * @public - * @enum - */ -export const ExperimentResultRequestType = { - BASE_STAT: "BaseStat", - CONFIDENCE_INTERVAL: "ConfidenceInterval", - P_VALUE: "PValue", - TREATMENT_EFFECT: "TreatmentEffect", -} as const; - -/** - * @public - */ -export type ExperimentResultRequestType = - (typeof ExperimentResultRequestType)[keyof typeof ExperimentResultRequestType]; - /** * @public */ @@ -2360,24 +2175,6 @@ export interface ExperimentReport { content?: __AutomaticJsonStringConversion | string | undefined; } -/** - * @public - * @enum - */ -export const ExperimentResultResponseType = { - CONFIDENCE_INTERVAL_LOWERBOUND: "ConfidenceIntervalLowerBound", - CONFIDENCE_INTERVAL_UPPERBOUND: "ConfidenceIntervalUpperBound", - MEAN: "Mean", - P_VALUE: "PValue", - TREATMENT_EFFECT: "TreatmentEffect", -} as const; - -/** - * @public - */ -export type ExperimentResultResponseType = - (typeof ExperimentResultResponseType)[keyof typeof ExperimentResultResponseType]; - /** *

A structure that contains experiment results for one metric that is monitored in * the experiment.

@@ -2524,20 +2321,6 @@ export interface StartExperimentResponse { startedTime?: Date | undefined; } -/** - * @public - * @enum - */ -export const ExperimentStopDesiredState = { - CANCELLED: "CANCELLED", - COMPLETED: "COMPLETED", -} as const; - -/** - * @public - */ -export type ExperimentStopDesiredState = (typeof ExperimentStopDesiredState)[keyof typeof ExperimentStopDesiredState]; - /** * @public */ @@ -3016,20 +2799,6 @@ export interface StartLaunchResponse { launch: Launch | undefined; } -/** - * @public - * @enum - */ -export const LaunchStopDesiredState = { - CANCELLED: "CANCELLED", - COMPLETED: "COMPLETED", -} as const; - -/** - * @public - */ -export type LaunchStopDesiredState = (typeof LaunchStopDesiredState)[keyof typeof LaunchStopDesiredState]; - /** * @public */ @@ -3408,21 +3177,6 @@ export interface GetSegmentResponse { segment: Segment | undefined; } -/** - * @public - * @enum - */ -export const SegmentReferenceResourceType = { - EXPERIMENT: "EXPERIMENT", - LAUNCH: "LAUNCH", -} as const; - -/** - * @public - */ -export type SegmentReferenceResourceType = - (typeof SegmentReferenceResourceType)[keyof typeof SegmentReferenceResourceType]; - /** * @public */ diff --git a/clients/client-geo-maps/src/index.ts b/clients/client-geo-maps/src/index.ts index 48ad66081ca1..6ec0b4c53011 100644 --- a/clients/client-geo-maps/src/index.ts +++ b/clients/client-geo-maps/src/index.ts @@ -12,6 +12,7 @@ export type { RuntimeExtension } from "./runtimeExtensions"; export type { GeoMapsExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-geo-maps/src/models/enums.ts b/clients/client-geo-maps/src/models/enums.ts new file mode 100644 index 000000000000..5df13f5ae99a --- /dev/null +++ b/clients/client-geo-maps/src/models/enums.ts @@ -0,0 +1,209 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ColorScheme = { + DARK: "Dark", + LIGHT: "Light", +} as const; +/** + * @public + */ +export type ColorScheme = (typeof ColorScheme)[keyof typeof ColorScheme]; + +/** + * @public + * @enum + */ +export const ContourDensity = { + MEDIUM: "Medium", +} as const; +/** + * @public + */ +export type ContourDensity = (typeof ContourDensity)[keyof typeof ContourDensity]; + +/** + * @public + * @enum + */ +export const MapStyle = { + HYBRID: "Hybrid", + MONOCHROME: "Monochrome", + SATELLITE: "Satellite", + STANDARD: "Standard", +} as const; +/** + * @public + */ +export type MapStyle = (typeof MapStyle)[keyof typeof MapStyle]; + +/** + * @public + * @enum + */ +export const Variant = { + DEFAULT: "Default", +} as const; +/** + * @public + */ +export type Variant = (typeof Variant)[keyof typeof Variant]; + +/** + * @public + * @enum + */ +export const LabelSize = { + LARGE: "Large", + SMALL: "Small", +} as const; +/** + * @public + */ +export type LabelSize = (typeof LabelSize)[keyof typeof LabelSize]; + +/** + * @public + * @enum + */ +export const MapFeatureMode = { + DISABLED: "Disabled", + ENABLED: "Enabled", +} as const; +/** + * @public + */ +export type MapFeatureMode = (typeof MapFeatureMode)[keyof typeof MapFeatureMode]; + +/** + * @public + * @enum + */ +export const ScaleBarUnit = { + KILOMETERS: "Kilometers", + KILOMETERS_MILES: "KilometersMiles", + MILES: "Miles", + MILES_KILOMETERS: "MilesKilometers", +} as const; +/** + * @public + */ +export type ScaleBarUnit = (typeof ScaleBarUnit)[keyof typeof ScaleBarUnit]; + +/** + * @public + * @enum + */ +export const StaticMapStyle = { + SATELLITE: "Satellite", + STANDARD: "Standard", +} as const; +/** + * @public + */ +export type StaticMapStyle = (typeof StaticMapStyle)[keyof typeof StaticMapStyle]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + /** + * The input cannot be parsed. For example a required JSON document, ARN identifier, + * date value, or numeric field cannot be parsed. + * + */ + CANNOT_PARSE: "CannotParse", + /** + * The input is present and parsable, but it is otherwise invalid. For example, a + * required numeric argument is outside the allowed range. + * + */ + FIELD_VALIDATION_FAILED: "FieldValidationFailed", + /** + * The required input is missing. + */ + MISSING: "Missing", + /** + * The input is invalid but no more specific reason is applicable. + */ + OTHER: "Other", + /** + * No such field is supported. + */ + UNKNOWN_FIELD: "UnknownField", + /** + * No such operation is supported. + */ + UNKNOWN_OPERATION: "UnknownOperation", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const Terrain = { + HILLSHADE: "Hillshade", +} as const; +/** + * @public + */ +export type Terrain = (typeof Terrain)[keyof typeof Terrain]; + +/** + * @public + * @enum + */ +export const Traffic = { + ALL: "All", +} as const; +/** + * @public + */ +export type Traffic = (typeof Traffic)[keyof typeof Traffic]; + +/** + * @public + * @enum + */ +export const TravelMode = { + TRANSIT: "Transit", + TRUCK: "Truck", +} as const; +/** + * @public + */ +export type TravelMode = (typeof TravelMode)[keyof typeof TravelMode]; + +/** + * @public + * @enum + */ +export const TileAdditionalFeature = { + /** + * Map elevation contour lines. + */ + CONTOUR_LINES: "ContourLines", + /** + * Map hillshading details for shading elevation changes. + */ + HILLSHADE: "Hillshade", + /** + * Map logistics details, including advanced pois and road networks. + */ + LOGISTICS: "Logistics", + /** + * Map transit details. + */ + TRANSIT: "Transit", +} as const; +/** + * @public + */ +export type TileAdditionalFeature = (typeof TileAdditionalFeature)[keyof typeof TileAdditionalFeature]; diff --git a/clients/client-geo-maps/src/models/errors.ts b/clients/client-geo-maps/src/models/errors.ts index abee67e030c0..e4362d6d78a3 100644 --- a/clients/client-geo-maps/src/models/errors.ts +++ b/clients/client-geo-maps/src/models/errors.ts @@ -1,8 +1,9 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; +import { ValidationExceptionReason } from "./enums"; import { GeoMapsServiceException as __BaseException } from "./GeoMapsServiceException"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionField } from "./models_0"; /** *

The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.

diff --git a/clients/client-geo-maps/src/models/models_0.ts b/clients/client-geo-maps/src/models/models_0.ts index 635e7b60a714..83bfbb3562b6 100644 --- a/clients/client-geo-maps/src/models/models_0.ts +++ b/clients/client-geo-maps/src/models/models_0.ts @@ -1,30 +1,18 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const ColorScheme = { - DARK: "Dark", - LIGHT: "Light", -} as const; - -/** - * @public - */ -export type ColorScheme = (typeof ColorScheme)[keyof typeof ColorScheme]; - -/** - * @public - * @enum - */ -export const ContourDensity = { - MEDIUM: "Medium", -} as const; - -/** - * @public - */ -export type ContourDensity = (typeof ContourDensity)[keyof typeof ContourDensity]; +import { + ColorScheme, + ContourDensity, + LabelSize, + MapFeatureMode, + MapStyle, + ScaleBarUnit, + StaticMapStyle, + Terrain, + TileAdditionalFeature, + Traffic, + TravelMode, + Variant, +} from "./enums"; /** * @public @@ -72,35 +60,6 @@ export interface GetGlyphsResponse { ETag?: string | undefined; } -/** - * @public - * @enum - */ -export const MapStyle = { - HYBRID: "Hybrid", - MONOCHROME: "Monochrome", - SATELLITE: "Satellite", - STANDARD: "Standard", -} as const; - -/** - * @public - */ -export type MapStyle = (typeof MapStyle)[keyof typeof MapStyle]; - -/** - * @public - * @enum - */ -export const Variant = { - DEFAULT: "Default", -} as const; - -/** - * @public - */ -export type Variant = (typeof Variant)[keyof typeof Variant]; - /** * @public */ @@ -159,64 +118,6 @@ export interface GetSpritesResponse { ETag?: string | undefined; } -/** - * @public - * @enum - */ -export const LabelSize = { - LARGE: "Large", - SMALL: "Small", -} as const; - -/** - * @public - */ -export type LabelSize = (typeof LabelSize)[keyof typeof LabelSize]; - -/** - * @public - * @enum - */ -export const MapFeatureMode = { - DISABLED: "Disabled", - ENABLED: "Enabled", -} as const; - -/** - * @public - */ -export type MapFeatureMode = (typeof MapFeatureMode)[keyof typeof MapFeatureMode]; - -/** - * @public - * @enum - */ -export const ScaleBarUnit = { - KILOMETERS: "Kilometers", - KILOMETERS_MILES: "KilometersMiles", - MILES: "Miles", - MILES_KILOMETERS: "MilesKilometers", -} as const; - -/** - * @public - */ -export type ScaleBarUnit = (typeof ScaleBarUnit)[keyof typeof ScaleBarUnit]; - -/** - * @public - * @enum - */ -export const StaticMapStyle = { - SATELLITE: "Satellite", - STANDARD: "Standard", -} as const; - -/** - * @public - */ -export type StaticMapStyle = (typeof StaticMapStyle)[keyof typeof StaticMapStyle]; - /** * @public */ @@ -395,86 +296,6 @@ export interface ValidationExceptionField { Message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - /** - * The input cannot be parsed. For example a required JSON document, ARN identifier, - * date value, or numeric field cannot be parsed. - * - */ - CANNOT_PARSE: "CannotParse", - /** - * The input is present and parsable, but it is otherwise invalid. For example, a - * required numeric argument is outside the allowed range. - * - */ - FIELD_VALIDATION_FAILED: "FieldValidationFailed", - /** - * The required input is missing. - */ - MISSING: "Missing", - /** - * The input is invalid but no more specific reason is applicable. - */ - OTHER: "Other", - /** - * No such field is supported. - */ - UNKNOWN_FIELD: "UnknownField", - /** - * No such operation is supported. - */ - UNKNOWN_OPERATION: "UnknownOperation", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - -/** - * @public - * @enum - */ -export const Terrain = { - HILLSHADE: "Hillshade", -} as const; - -/** - * @public - */ -export type Terrain = (typeof Terrain)[keyof typeof Terrain]; - -/** - * @public - * @enum - */ -export const Traffic = { - ALL: "All", -} as const; - -/** - * @public - */ -export type Traffic = (typeof Traffic)[keyof typeof Traffic]; - -/** - * @public - * @enum - */ -export const TravelMode = { - TRANSIT: "Transit", - TRUCK: "Truck", -} as const; - -/** - * @public - */ -export type TravelMode = (typeof TravelMode)[keyof typeof TravelMode]; - /** * @public */ @@ -557,34 +378,6 @@ export interface GetStyleDescriptorResponse { ETag?: string | undefined; } -/** - * @public - * @enum - */ -export const TileAdditionalFeature = { - /** - * Map elevation contour lines. - */ - CONTOUR_LINES: "ContourLines", - /** - * Map hillshading details for shading elevation changes. - */ - HILLSHADE: "Hillshade", - /** - * Map logistics details, including advanced pois and road networks. - */ - LOGISTICS: "Logistics", - /** - * Map transit details. - */ - TRANSIT: "Transit", -} as const; - -/** - * @public - */ -export type TileAdditionalFeature = (typeof TileAdditionalFeature)[keyof typeof TileAdditionalFeature]; - /** * @public */ diff --git a/clients/client-geo-places/src/index.ts b/clients/client-geo-places/src/index.ts index 7b0334eded99..1678ead2d8a7 100644 --- a/clients/client-geo-places/src/index.ts +++ b/clients/client-geo-places/src/index.ts @@ -12,6 +12,7 @@ export type { RuntimeExtension } from "./runtimeExtensions"; export type { GeoPlacesExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-geo-places/src/models/enums.ts b/clients/client-geo-places/src/models/enums.ts new file mode 100644 index 000000000000..97618ac54987 --- /dev/null +++ b/clients/client-geo-places/src/models/enums.ts @@ -0,0 +1,452 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const TypePlacement = { + AFTER_BASE_NAME: "AfterBaseName", + BEFORE_BASE_NAME: "BeforeBaseName", +} as const; +/** + * @public + */ +export type TypePlacement = (typeof TypePlacement)[keyof typeof TypePlacement]; + +/** + * @public + * @enum + */ +export const AutocompleteAdditionalFeature = { + CORE: "Core", +} as const; +/** + * @public + */ +export type AutocompleteAdditionalFeature = + (typeof AutocompleteAdditionalFeature)[keyof typeof AutocompleteAdditionalFeature]; + +/** + * @public + * @enum + */ +export const AutocompleteFilterPlaceType = { + LOCALITY: "Locality", + POSTAL_CODE: "PostalCode", +} as const; +/** + * @public + */ +export type AutocompleteFilterPlaceType = + (typeof AutocompleteFilterPlaceType)[keyof typeof AutocompleteFilterPlaceType]; + +/** + * @public + * @enum + */ +export const AutocompleteIntendedUse = { + /** + * Indicates that results of the operation are for single use, e.g., displaying results on a map or presenting options to users. + */ + SINGLE_USE: "SingleUse", +} as const; +/** + * @public + */ +export type AutocompleteIntendedUse = (typeof AutocompleteIntendedUse)[keyof typeof AutocompleteIntendedUse]; + +/** + * @public + * @enum + */ +export const PostalCodeMode = { + ENUMERATE_SPANNED_LOCALITIES: "EnumerateSpannedLocalities", + MERGE_ALL_SPANNED_LOCALITIES: "MergeAllSpannedLocalities", +} as const; +/** + * @public + */ +export type PostalCodeMode = (typeof PostalCodeMode)[keyof typeof PostalCodeMode]; + +/** + * @public + * @enum + */ +export const PlaceType = { + BLOCK: "Block", + COUNTRY: "Country", + DISTRICT: "District", + INTERPOLATED_ADDRESS: "InterpolatedAddress", + INTERSECTION: "Intersection", + LOCALITY: "Locality", + POINT_ADDRESS: "PointAddress", + POINT_OF_INTEREST: "PointOfInterest", + POSTAL_CODE: "PostalCode", + REGION: "Region", + SECONDARY_ADDRESS: "SecondaryAddress", + STREET: "Street", + SUB_BLOCK: "SubBlock", + SUB_DISTRICT: "SubDistrict", + SUB_REGION: "SubRegion", +} as const; +/** + * @public + */ +export type PlaceType = (typeof PlaceType)[keyof typeof PlaceType]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + /** + * The input cannot be parsed. For example a required JSON document, ARN identifier, + * date value, or numeric field cannot be parsed. + * + */ + CANNOT_PARSE: "CannotParse", + /** + * The input is present and parsable, but it is otherwise invalid. For example, a + * required numeric argument is outside the allowed range. + * + */ + FIELD_VALIDATION_FAILED: "FieldValidationFailed", + /** + * The required input is missing. + */ + MISSING: "Missing", + /** + * The input is invalid but no more specific reason is applicable. + */ + OTHER: "Other", + /** + * No such field is supported. + */ + UNKNOWN_FIELD: "UnknownField", + /** + * No such operation is supported. + */ + UNKNOWN_OPERATION: "UnknownOperation", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const GeocodeAdditionalFeature = { + ACCESS: "Access", + INTERSECTIONS: "Intersections", + SECONDARY_ADDRESSES: "SecondaryAddresses", + TIME_ZONE: "TimeZone", +} as const; +/** + * @public + */ +export type GeocodeAdditionalFeature = (typeof GeocodeAdditionalFeature)[keyof typeof GeocodeAdditionalFeature]; + +/** + * @public + * @enum + */ +export const GeocodeFilterPlaceType = { + INTERPOLATED_ADDRESS: "InterpolatedAddress", + INTERSECTION: "Intersection", + LOCALITY: "Locality", + POINT_ADDRESS: "PointAddress", + POSTAL_CODE: "PostalCode", + STREET: "Street", +} as const; +/** + * @public + */ +export type GeocodeFilterPlaceType = (typeof GeocodeFilterPlaceType)[keyof typeof GeocodeFilterPlaceType]; + +/** + * @public + * @enum + */ +export const GeocodeIntendedUse = { + /** + * Indicates that results of the operation are for single use, e.g., displaying results on a map or presenting options to users. + */ + SINGLE_USE: "SingleUse", + /** + * Indicates that results of the operation may be stored locally. + */ + STORAGE: "Storage", +} as const; +/** + * @public + */ +export type GeocodeIntendedUse = (typeof GeocodeIntendedUse)[keyof typeof GeocodeIntendedUse]; + +/** + * @public + * @enum + */ +export const PostalAuthority = { + USPS: "Usps", +} as const; +/** + * @public + */ +export type PostalAuthority = (typeof PostalAuthority)[keyof typeof PostalAuthority]; + +/** + * @public + * @enum + */ +export const PostalCodeType = { + USPS_ZIP: "UspsZip", + USPS_ZIP_PLUS_4: "UspsZipPlus4", +} as const; +/** + * @public + */ +export type PostalCodeType = (typeof PostalCodeType)[keyof typeof PostalCodeType]; + +/** + * @public + * @enum + */ +export const ZipClassificationCode = { + MILITARY: "Military", + POST_OFFICE_BOXES: "PostOfficeBoxes", + UNIQUE: "Unique", +} as const; +/** + * @public + */ +export type ZipClassificationCode = (typeof ZipClassificationCode)[keyof typeof ZipClassificationCode]; + +/** + * @public + * @enum + */ +export const RecordTypeCode = { + FIRM: "Firm", + GENERAL: "General", + HIGH_RISE: "HighRise", + POST_OFFICE_BOX: "PostOfficeBox", + RURAL: "Rural", + STREET: "Street", +} as const; +/** + * @public + */ +export type RecordTypeCode = (typeof RecordTypeCode)[keyof typeof RecordTypeCode]; + +/** + * @public + * @enum + */ +export const GetPlaceAdditionalFeature = { + ACCESS: "Access", + CONTACT: "Contact", + PHONEMES: "Phonemes", + SECONDARY_ADDRESSES: "SecondaryAddresses", + TIME_ZONE: "TimeZone", +} as const; +/** + * @public + */ +export type GetPlaceAdditionalFeature = (typeof GetPlaceAdditionalFeature)[keyof typeof GetPlaceAdditionalFeature]; + +/** + * @public + * @enum + */ +export const GetPlaceIntendedUse = { + /** + * Indicates that results of the operation are for single use, e.g., displaying results on a map or presenting options to users. + */ + SINGLE_USE: "SingleUse", + /** + * Indicates that results of the operation may be stored locally. + */ + STORAGE: "Storage", +} as const; +/** + * @public + */ +export type GetPlaceIntendedUse = (typeof GetPlaceIntendedUse)[keyof typeof GetPlaceIntendedUse]; + +/** + * @public + * @enum + */ +export const ReverseGeocodeAdditionalFeature = { + ACCESS: "Access", + INTERSECTIONS: "Intersections", + TIME_ZONE: "TimeZone", +} as const; +/** + * @public + */ +export type ReverseGeocodeAdditionalFeature = + (typeof ReverseGeocodeAdditionalFeature)[keyof typeof ReverseGeocodeAdditionalFeature]; + +/** + * @public + * @enum + */ +export const ReverseGeocodeFilterPlaceType = { + INTERPOLATED_ADDRESS: "InterpolatedAddress", + INTERSECTION: "Intersection", + LOCALITY: "Locality", + POINT_ADDRESS: "PointAddress", + STREET: "Street", +} as const; +/** + * @public + */ +export type ReverseGeocodeFilterPlaceType = + (typeof ReverseGeocodeFilterPlaceType)[keyof typeof ReverseGeocodeFilterPlaceType]; + +/** + * @public + * @enum + */ +export const ReverseGeocodeIntendedUse = { + /** + * Indicates that results of the operation are for single use, e.g., displaying results on a map or presenting options to users. + */ + SINGLE_USE: "SingleUse", + /** + * Indicates that results of the operation may be stored locally. + */ + STORAGE: "Storage", +} as const; +/** + * @public + */ +export type ReverseGeocodeIntendedUse = (typeof ReverseGeocodeIntendedUse)[keyof typeof ReverseGeocodeIntendedUse]; + +/** + * @public + * @enum + */ +export const SearchNearbyAdditionalFeature = { + ACCESS: "Access", + CONTACT: "Contact", + PHONEMES: "Phonemes", + TIME_ZONE: "TimeZone", +} as const; +/** + * @public + */ +export type SearchNearbyAdditionalFeature = + (typeof SearchNearbyAdditionalFeature)[keyof typeof SearchNearbyAdditionalFeature]; + +/** + * @public + * @enum + */ +export const SearchNearbyIntendedUse = { + /** + * Indicates that results of the operation are for single use, e.g., displaying results on a map or presenting options to users. + */ + SINGLE_USE: "SingleUse", + /** + * Indicates that results of the operation may be stored locally. + */ + STORAGE: "Storage", +} as const; +/** + * @public + */ +export type SearchNearbyIntendedUse = (typeof SearchNearbyIntendedUse)[keyof typeof SearchNearbyIntendedUse]; + +/** + * @public + * @enum + */ +export const SearchTextAdditionalFeature = { + ACCESS: "Access", + CONTACT: "Contact", + PHONEMES: "Phonemes", + TIME_ZONE: "TimeZone", +} as const; +/** + * @public + */ +export type SearchTextAdditionalFeature = + (typeof SearchTextAdditionalFeature)[keyof typeof SearchTextAdditionalFeature]; + +/** + * @public + * @enum + */ +export const SearchTextIntendedUse = { + /** + * Indicates that results of the operation are for single use, e.g., displaying results on a map or presenting options to users. + */ + SINGLE_USE: "SingleUse", + /** + * Indicates that results of the operation may be stored locally. + */ + STORAGE: "Storage", +} as const; +/** + * @public + */ +export type SearchTextIntendedUse = (typeof SearchTextIntendedUse)[keyof typeof SearchTextIntendedUse]; + +/** + * @public + * @enum + */ +export const SuggestAdditionalFeature = { + ACCESS: "Access", + CORE: "Core", + PHONEMES: "Phonemes", + TIME_ZONE: "TimeZone", +} as const; +/** + * @public + */ +export type SuggestAdditionalFeature = (typeof SuggestAdditionalFeature)[keyof typeof SuggestAdditionalFeature]; + +/** + * @public + * @enum + */ +export const SuggestIntendedUse = { + /** + * Indicates that results of the operation are for single use, e.g., displaying results on a map or presenting options to users. + */ + SINGLE_USE: "SingleUse", +} as const; +/** + * @public + */ +export type SuggestIntendedUse = (typeof SuggestIntendedUse)[keyof typeof SuggestIntendedUse]; + +/** + * @public + * @enum + */ +export const QueryType = { + BUSINESS_CHAIN: "BusinessChain", + CATEGORY: "Category", +} as const; +/** + * @public + */ +export type QueryType = (typeof QueryType)[keyof typeof QueryType]; + +/** + * @public + * @enum + */ +export const SuggestResultItemType = { + PLACE: "Place", + QUERY: "Query", +} as const; +/** + * @public + */ +export type SuggestResultItemType = (typeof SuggestResultItemType)[keyof typeof SuggestResultItemType]; diff --git a/clients/client-geo-places/src/models/errors.ts b/clients/client-geo-places/src/models/errors.ts index 7ff1e28a2dac..b23e80c94207 100644 --- a/clients/client-geo-places/src/models/errors.ts +++ b/clients/client-geo-places/src/models/errors.ts @@ -1,8 +1,9 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; +import { ValidationExceptionReason } from "./enums"; import { GeoPlacesServiceException as __BaseException } from "./GeoPlacesServiceException"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionField } from "./models_0"; /** *

You don't have sufficient access to perform this action.

diff --git a/clients/client-geo-places/src/models/models_0.ts b/clients/client-geo-places/src/models/models_0.ts index a8bdbaccc2e3..76f93009c401 100644 --- a/clients/client-geo-places/src/models/models_0.ts +++ b/clients/client-geo-places/src/models/models_0.ts @@ -1,4 +1,33 @@ // smithy-typescript generated code +import { + AutocompleteAdditionalFeature, + AutocompleteFilterPlaceType, + AutocompleteIntendedUse, + GeocodeAdditionalFeature, + GeocodeFilterPlaceType, + GeocodeIntendedUse, + GetPlaceAdditionalFeature, + GetPlaceIntendedUse, + PlaceType, + PostalAuthority, + PostalCodeMode, + PostalCodeType, + QueryType, + RecordTypeCode, + ReverseGeocodeAdditionalFeature, + ReverseGeocodeFilterPlaceType, + ReverseGeocodeIntendedUse, + SearchNearbyAdditionalFeature, + SearchNearbyIntendedUse, + SearchTextAdditionalFeature, + SearchTextIntendedUse, + SuggestAdditionalFeature, + SuggestIntendedUse, + SuggestResultItemType, + TypePlacement, + ZipClassificationCode, +} from "./enums"; + /** *

Position of the access point represented by longitude and latitude for a vehicle.

* @public @@ -113,20 +142,6 @@ export interface SecondaryAddressComponent { Number: string | undefined; } -/** - * @public - * @enum - */ -export const TypePlacement = { - AFTER_BASE_NAME: "AfterBaseName", - BEFORE_BASE_NAME: "BeforeBaseName", -} as const; - -/** - * @public - */ -export type TypePlacement = (typeof TypePlacement)[keyof typeof TypePlacement]; - /** *

Components of a street.

* @public @@ -481,20 +496,6 @@ export interface AddressComponentPhonemes { Street?: PhonemeTranscription[] | undefined; } -/** - * @public - * @enum - */ -export const AutocompleteAdditionalFeature = { - CORE: "Core", -} as const; - -/** - * @public - */ -export type AutocompleteAdditionalFeature = - (typeof AutocompleteAdditionalFeature)[keyof typeof AutocompleteAdditionalFeature]; - /** *

The Circle that all results must be in.

* @public @@ -513,21 +514,6 @@ export interface FilterCircle { Radius: number | undefined; } -/** - * @public - * @enum - */ -export const AutocompleteFilterPlaceType = { - LOCALITY: "Locality", - POSTAL_CODE: "PostalCode", -} as const; - -/** - * @public - */ -export type AutocompleteFilterPlaceType = - (typeof AutocompleteFilterPlaceType)[keyof typeof AutocompleteFilterPlaceType]; - /** *

Autocomplete structure which contains a set of inclusion/exclusion properties that results must possess in order to be returned as a result.

* @public @@ -558,36 +544,6 @@ export interface AutocompleteFilter { IncludePlaceTypes?: AutocompleteFilterPlaceType[] | undefined; } -/** - * @public - * @enum - */ -export const AutocompleteIntendedUse = { - /** - * Indicates that results of the operation are for single use, e.g., displaying results on a map or presenting options to users. - */ - SINGLE_USE: "SingleUse", -} as const; - -/** - * @public - */ -export type AutocompleteIntendedUse = (typeof AutocompleteIntendedUse)[keyof typeof AutocompleteIntendedUse]; - -/** - * @public - * @enum - */ -export const PostalCodeMode = { - ENUMERATE_SPANNED_LOCALITIES: "EnumerateSpannedLocalities", - MERGE_ALL_SPANNED_LOCALITIES: "MergeAllSpannedLocalities", -} as const; - -/** - * @public - */ -export type PostalCodeMode = (typeof PostalCodeMode)[keyof typeof PostalCodeMode]; - /** * @public */ @@ -839,33 +795,6 @@ export interface AutocompleteHighlights { Address?: AutocompleteAddressHighlights | undefined; } -/** - * @public - * @enum - */ -export const PlaceType = { - BLOCK: "Block", - COUNTRY: "Country", - DISTRICT: "District", - INTERPOLATED_ADDRESS: "InterpolatedAddress", - INTERSECTION: "Intersection", - LOCALITY: "Locality", - POINT_ADDRESS: "PointAddress", - POINT_OF_INTEREST: "PointOfInterest", - POSTAL_CODE: "PostalCode", - REGION: "Region", - SECONDARY_ADDRESS: "SecondaryAddress", - STREET: "Street", - SUB_BLOCK: "SubBlock", - SUB_DISTRICT: "SubDistrict", - SUB_REGION: "SubRegion", -} as const; - -/** - * @public - */ -export type PlaceType = (typeof PlaceType)[keyof typeof PlaceType]; - /** *

A result matching the input query text.

* @public @@ -955,46 +884,6 @@ export interface ValidationExceptionField { Message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - /** - * The input cannot be parsed. For example a required JSON document, ARN identifier, - * date value, or numeric field cannot be parsed. - * - */ - CANNOT_PARSE: "CannotParse", - /** - * The input is present and parsable, but it is otherwise invalid. For example, a - * required numeric argument is outside the allowed range. - * - */ - FIELD_VALIDATION_FAILED: "FieldValidationFailed", - /** - * The required input is missing. - */ - MISSING: "Missing", - /** - * The input is invalid but no more specific reason is applicable. - */ - OTHER: "Other", - /** - * No such field is supported. - */ - UNKNOWN_FIELD: "UnknownField", - /** - * No such operation is supported. - */ - UNKNOWN_OPERATION: "UnknownOperation", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** *

A businesschain is a chain of businesses that belong to the same brand. For example 7-11.

* @public @@ -1109,40 +998,6 @@ export interface FoodType { Primary?: boolean | undefined; } -/** - * @public - * @enum - */ -export const GeocodeAdditionalFeature = { - ACCESS: "Access", - INTERSECTIONS: "Intersections", - SECONDARY_ADDRESSES: "SecondaryAddresses", - TIME_ZONE: "TimeZone", -} as const; - -/** - * @public - */ -export type GeocodeAdditionalFeature = (typeof GeocodeAdditionalFeature)[keyof typeof GeocodeAdditionalFeature]; - -/** - * @public - * @enum - */ -export const GeocodeFilterPlaceType = { - INTERPOLATED_ADDRESS: "InterpolatedAddress", - INTERSECTION: "Intersection", - LOCALITY: "Locality", - POINT_ADDRESS: "PointAddress", - POSTAL_CODE: "PostalCode", - STREET: "Street", -} as const; - -/** - * @public - */ -export type GeocodeFilterPlaceType = (typeof GeocodeFilterPlaceType)[keyof typeof GeocodeFilterPlaceType]; - /** *

Geocode structure which contains a set of inclusion/exclusion properties that results must possess in order to be returned as a result.

* @public @@ -1161,26 +1016,6 @@ export interface GeocodeFilter { IncludePlaceTypes?: GeocodeFilterPlaceType[] | undefined; } -/** - * @public - * @enum - */ -export const GeocodeIntendedUse = { - /** - * Indicates that results of the operation are for single use, e.g., displaying results on a map or presenting options to users. - */ - SINGLE_USE: "SingleUse", - /** - * Indicates that results of the operation may be stored locally. - */ - STORAGE: "Storage", -} as const; - -/** - * @public - */ -export type GeocodeIntendedUse = (typeof GeocodeIntendedUse)[keyof typeof GeocodeIntendedUse]; - /** *

A structured free text query allows you to search for places by the name or text representation of specific properties of the place.

* @public @@ -1582,48 +1417,6 @@ export interface GeocodeParsedQuery { Address?: GeocodeParsedQueryAddressComponents | undefined; } -/** - * @public - * @enum - */ -export const PostalAuthority = { - USPS: "Usps", -} as const; - -/** - * @public - */ -export type PostalAuthority = (typeof PostalAuthority)[keyof typeof PostalAuthority]; - -/** - * @public - * @enum - */ -export const PostalCodeType = { - USPS_ZIP: "UspsZip", - USPS_ZIP_PLUS_4: "UspsZipPlus4", -} as const; - -/** - * @public - */ -export type PostalCodeType = (typeof PostalCodeType)[keyof typeof PostalCodeType]; - -/** - * @public - * @enum - */ -export const ZipClassificationCode = { - MILITARY: "Military", - POST_OFFICE_BOXES: "PostOfficeBoxes", - UNIQUE: "Unique", -} as const; - -/** - * @public - */ -export type ZipClassificationCode = (typeof ZipClassificationCode)[keyof typeof ZipClassificationCode]; - /** *

The USPS zip code.

* @public @@ -1636,24 +1429,6 @@ export interface UspsZip { ZipClassificationCode?: ZipClassificationCode | undefined; } -/** - * @public - * @enum - */ -export const RecordTypeCode = { - FIRM: "Firm", - GENERAL: "General", - HIGH_RISE: "HighRise", - POST_OFFICE_BOX: "PostOfficeBox", - RURAL: "Rural", - STREET: "Street", -} as const; - -/** - * @public - */ -export type RecordTypeCode = (typeof RecordTypeCode)[keyof typeof RecordTypeCode]; - /** *

The USPS zip+4 code.

* @public @@ -1863,43 +1638,6 @@ export interface GeocodeResponse { ResultItems?: GeocodeResultItem[] | undefined; } -/** - * @public - * @enum - */ -export const GetPlaceAdditionalFeature = { - ACCESS: "Access", - CONTACT: "Contact", - PHONEMES: "Phonemes", - SECONDARY_ADDRESSES: "SecondaryAddresses", - TIME_ZONE: "TimeZone", -} as const; - -/** - * @public - */ -export type GetPlaceAdditionalFeature = (typeof GetPlaceAdditionalFeature)[keyof typeof GetPlaceAdditionalFeature]; - -/** - * @public - * @enum - */ -export const GetPlaceIntendedUse = { - /** - * Indicates that results of the operation are for single use, e.g., displaying results on a map or presenting options to users. - */ - SINGLE_USE: "SingleUse", - /** - * Indicates that results of the operation may be stored locally. - */ - STORAGE: "Storage", -} as const; - -/** - * @public - */ -export type GetPlaceIntendedUse = (typeof GetPlaceIntendedUse)[keyof typeof GetPlaceIntendedUse]; - /** * @public */ @@ -2144,40 +1882,6 @@ export interface GetPlaceResponse { SecondaryAddresses?: RelatedPlace[] | undefined; } -/** - * @public - * @enum - */ -export const ReverseGeocodeAdditionalFeature = { - ACCESS: "Access", - INTERSECTIONS: "Intersections", - TIME_ZONE: "TimeZone", -} as const; - -/** - * @public - */ -export type ReverseGeocodeAdditionalFeature = - (typeof ReverseGeocodeAdditionalFeature)[keyof typeof ReverseGeocodeAdditionalFeature]; - -/** - * @public - * @enum - */ -export const ReverseGeocodeFilterPlaceType = { - INTERPOLATED_ADDRESS: "InterpolatedAddress", - INTERSECTION: "Intersection", - LOCALITY: "Locality", - POINT_ADDRESS: "PointAddress", - STREET: "Street", -} as const; - -/** - * @public - */ -export type ReverseGeocodeFilterPlaceType = - (typeof ReverseGeocodeFilterPlaceType)[keyof typeof ReverseGeocodeFilterPlaceType]; - /** *

The included place types.

* @public @@ -2190,26 +1894,6 @@ export interface ReverseGeocodeFilter { IncludePlaceTypes?: ReverseGeocodeFilterPlaceType[] | undefined; } -/** - * @public - * @enum - */ -export const ReverseGeocodeIntendedUse = { - /** - * Indicates that results of the operation are for single use, e.g., displaying results on a map or presenting options to users. - */ - SINGLE_USE: "SingleUse", - /** - * Indicates that results of the operation may be stored locally. - */ - STORAGE: "Storage", -} as const; - -/** - * @public - */ -export type ReverseGeocodeIntendedUse = (typeof ReverseGeocodeIntendedUse)[keyof typeof ReverseGeocodeIntendedUse]; - /** * @public */ @@ -2382,23 +2066,6 @@ export interface ReverseGeocodeResponse { ResultItems?: ReverseGeocodeResultItem[] | undefined; } -/** - * @public - * @enum - */ -export const SearchNearbyAdditionalFeature = { - ACCESS: "Access", - CONTACT: "Contact", - PHONEMES: "Phonemes", - TIME_ZONE: "TimeZone", -} as const; - -/** - * @public - */ -export type SearchNearbyAdditionalFeature = - (typeof SearchNearbyAdditionalFeature)[keyof typeof SearchNearbyAdditionalFeature]; - /** *

SearchNearby structure which contains a set of inclusion/exclusion properties that results must possess in order to be returned as a result.

* @public @@ -2453,26 +2120,6 @@ export interface SearchNearbyFilter { ExcludeFoodTypes?: string[] | undefined; } -/** - * @public - * @enum - */ -export const SearchNearbyIntendedUse = { - /** - * Indicates that results of the operation are for single use, e.g., displaying results on a map or presenting options to users. - */ - SINGLE_USE: "SingleUse", - /** - * Indicates that results of the operation may be stored locally. - */ - STORAGE: "Storage", -} as const; - -/** - * @public - */ -export type SearchNearbyIntendedUse = (typeof SearchNearbyIntendedUse)[keyof typeof SearchNearbyIntendedUse]; - /** * @public */ @@ -2675,23 +2322,6 @@ export interface SearchNearbyResponse { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const SearchTextAdditionalFeature = { - ACCESS: "Access", - CONTACT: "Contact", - PHONEMES: "Phonemes", - TIME_ZONE: "TimeZone", -} as const; - -/** - * @public - */ -export type SearchTextAdditionalFeature = - (typeof SearchTextAdditionalFeature)[keyof typeof SearchTextAdditionalFeature]; - /** *

SearchText structure which contains a set of inclusion/exclusion properties that results must possess in order to be returned as a result.

* @public @@ -2716,26 +2346,6 @@ export interface SearchTextFilter { IncludeCountries?: string[] | undefined; } -/** - * @public - * @enum - */ -export const SearchTextIntendedUse = { - /** - * Indicates that results of the operation are for single use, e.g., displaying results on a map or presenting options to users. - */ - SINGLE_USE: "SingleUse", - /** - * Indicates that results of the operation may be stored locally. - */ - STORAGE: "Storage", -} as const; - -/** - * @public - */ -export type SearchTextIntendedUse = (typeof SearchTextIntendedUse)[keyof typeof SearchTextIntendedUse]; - /** * @public */ @@ -2944,22 +2554,6 @@ export interface SearchTextResponse { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const SuggestAdditionalFeature = { - ACCESS: "Access", - CORE: "Core", - PHONEMES: "Phonemes", - TIME_ZONE: "TimeZone", -} as const; - -/** - * @public - */ -export type SuggestAdditionalFeature = (typeof SuggestAdditionalFeature)[keyof typeof SuggestAdditionalFeature]; - /** *

SuggestFilter structure which contains a set of inclusion/exclusion properties that results must possess in order to be returned as a result.

* @public @@ -2984,22 +2578,6 @@ export interface SuggestFilter { IncludeCountries?: string[] | undefined; } -/** - * @public - * @enum - */ -export const SuggestIntendedUse = { - /** - * Indicates that results of the operation are for single use, e.g., displaying results on a map or presenting options to users. - */ - SINGLE_USE: "SingleUse", -} as const; - -/** - * @public - */ -export type SuggestIntendedUse = (typeof SuggestIntendedUse)[keyof typeof SuggestIntendedUse]; - /** * @public */ @@ -3215,20 +2793,6 @@ export interface SuggestPlaceResult { Phonemes?: PhonemeDetails | undefined; } -/** - * @public - * @enum - */ -export const QueryType = { - BUSINESS_CHAIN: "BusinessChain", - CATEGORY: "Category", -} as const; - -/** - * @public - */ -export type QueryType = (typeof QueryType)[keyof typeof QueryType]; - /** *

The suggested query results.

* @public @@ -3247,20 +2811,6 @@ export interface SuggestQueryResult { QueryType?: QueryType | undefined; } -/** - * @public - * @enum - */ -export const SuggestResultItemType = { - PLACE: "Place", - QUERY: "Query", -} as const; - -/** - * @public - */ -export type SuggestResultItemType = (typeof SuggestResultItemType)[keyof typeof SuggestResultItemType]; - /** *

The resulting item from the suggested query.

* @public diff --git a/clients/client-geo-routes/src/index.ts b/clients/client-geo-routes/src/index.ts index 075c72652276..09fbbbeac960 100644 --- a/clients/client-geo-routes/src/index.ts +++ b/clients/client-geo-routes/src/index.ts @@ -12,6 +12,7 @@ export type { RuntimeExtension } from "./runtimeExtensions"; export type { GeoRoutesExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-geo-routes/src/models/enums.ts b/clients/client-geo-routes/src/models/enums.ts new file mode 100644 index 000000000000..6cd3f76f4b9f --- /dev/null +++ b/clients/client-geo-routes/src/models/enums.ts @@ -0,0 +1,1132 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const IsolineZoneCategory = { + CONGESTION_PRICING: "CongestionPricing", + ENVIRONMENTAL: "Environmental", + VIGNETTE: "Vignette", +} as const; +/** + * @public + */ +export type IsolineZoneCategory = (typeof IsolineZoneCategory)[keyof typeof IsolineZoneCategory]; + +/** + * @public + * @enum + */ +export const MatchingStrategy = { + MATCH_ANY: "MatchAny", + MATCH_MOST_SIGNIFICANT_ROAD: "MatchMostSignificantRoad", +} as const; +/** + * @public + */ +export type MatchingStrategy = (typeof MatchingStrategy)[keyof typeof MatchingStrategy]; + +/** + * @public + * @enum + */ +export const SideOfStreetMatchingStrategy = { + ANY_STREET: "AnyStreet", + DIVIDED_STREET_ONLY: "DividedStreetOnly", +} as const; +/** + * @public + */ +export type SideOfStreetMatchingStrategy = + (typeof SideOfStreetMatchingStrategy)[keyof typeof SideOfStreetMatchingStrategy]; + +/** + * @public + * @enum + */ +export const GeometryFormat = { + FLEXIBLE_POLYLINE: "FlexiblePolyline", + SIMPLE: "Simple", +} as const; +/** + * @public + */ +export type GeometryFormat = (typeof GeometryFormat)[keyof typeof GeometryFormat]; + +/** + * @public + * @enum + */ +export const IsolineOptimizationObjective = { + ACCURATE_CALCULATION: "AccurateCalculation", + BALANCED_CALCULATION: "BalancedCalculation", + FAST_CALCULATION: "FastCalculation", +} as const; +/** + * @public + */ +export type IsolineOptimizationObjective = + (typeof IsolineOptimizationObjective)[keyof typeof IsolineOptimizationObjective]; + +/** + * @public + * @enum + */ +export const RoutingObjective = { + FASTEST_ROUTE: "FastestRoute", + SHORTEST_ROUTE: "ShortestRoute", +} as const; +/** + * @public + */ +export type RoutingObjective = (typeof RoutingObjective)[keyof typeof RoutingObjective]; + +/** + * @public + * @enum + */ +export const TrafficUsage = { + IGNORE_TRAFFIC_DATA: "IgnoreTrafficData", + USE_TRAFFIC_DATA: "UseTrafficData", +} as const; +/** + * @public + */ +export type TrafficUsage = (typeof TrafficUsage)[keyof typeof TrafficUsage]; + +/** + * @public + * @enum + */ +export const IsolineTravelMode = { + CAR: "Car", + PEDESTRIAN: "Pedestrian", + SCOOTER: "Scooter", + TRUCK: "Truck", +} as const; +/** + * @public + */ +export type IsolineTravelMode = (typeof IsolineTravelMode)[keyof typeof IsolineTravelMode]; + +/** + * @public + * @enum + */ +export const IsolineEngineType = { + ELECTRIC: "Electric", + INTERNAL_COMBUSTION: "InternalCombustion", + PLUGIN_HYBRID: "PluginHybrid", +} as const; +/** + * @public + */ +export type IsolineEngineType = (typeof IsolineEngineType)[keyof typeof IsolineEngineType]; + +/** + * @public + * @enum + */ +export const IsolineHazardousCargoType = { + COMBUSTIBLE: "Combustible", + CORROSIVE: "Corrosive", + EXPLOSIVE: "Explosive", + FLAMMABLE: "Flammable", + GAS: "Gas", + HARMFUL_TO_WATER: "HarmfulToWater", + ORGANIC: "Organic", + OTHER: "Other", + POISON: "Poison", + POISONOUS_INHALATION: "PoisonousInhalation", + RADIOACTIVE: "Radioactive", +} as const; +/** + * @public + */ +export type IsolineHazardousCargoType = (typeof IsolineHazardousCargoType)[keyof typeof IsolineHazardousCargoType]; + +/** + * @public + * @enum + */ +export const IsolineTruckType = { + LIGHT_TRUCK: "LightTruck", + STRAIGHT_TRUCK: "StraightTruck", + TRACTOR: "Tractor", +} as const; +/** + * @public + */ +export type IsolineTruckType = (typeof IsolineTruckType)[keyof typeof IsolineTruckType]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + /** + * The input cannot be parsed. For example a required JSON document, ARN identifier, + * date value, or numeric field cannot be parsed. + * + */ + CANNOT_PARSE: "CannotParse", + /** + * The input is present and parsable, but it is otherwise invalid. For example, a + * required numeric argument is outside the allowed range. + * + */ + FIELD_VALIDATION_FAILED: "FieldValidationFailed", + /** + * The required input is missing. + */ + MISSING: "Missing", + /** + * The input is invalid but no more specific reason is applicable. + */ + OTHER: "Other", + /** + * No such field is supported. + */ + UNKNOWN_FIELD: "UnknownField", + /** + * No such operation is supported. + */ + UNKNOWN_OPERATION: "UnknownOperation", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const RouteMatrixZoneCategory = { + CONGESTION_PRICING: "CongestionPricing", + ENVIRONMENTAL: "Environmental", + VIGNETTE: "Vignette", +} as const; +/** + * @public + */ +export type RouteMatrixZoneCategory = (typeof RouteMatrixZoneCategory)[keyof typeof RouteMatrixZoneCategory]; + +/** + * @public + * @enum + */ +export const RouteMatrixTravelMode = { + CAR: "Car", + PEDESTRIAN: "Pedestrian", + SCOOTER: "Scooter", + TRUCK: "Truck", +} as const; +/** + * @public + */ +export type RouteMatrixTravelMode = (typeof RouteMatrixTravelMode)[keyof typeof RouteMatrixTravelMode]; + +/** + * @public + * @enum + */ +export const RouteMatrixHazardousCargoType = { + COMBUSTIBLE: "Combustible", + CORROSIVE: "Corrosive", + EXPLOSIVE: "Explosive", + FLAMMABLE: "Flammable", + GAS: "Gas", + HARMFUL_TO_WATER: "HarmfulToWater", + ORGANIC: "Organic", + OTHER: "Other", + POISON: "Poison", + POISONOUS_INHALATION: "PoisonousInhalation", + RADIOACTIVE: "Radioactive", +} as const; +/** + * @public + */ +export type RouteMatrixHazardousCargoType = + (typeof RouteMatrixHazardousCargoType)[keyof typeof RouteMatrixHazardousCargoType]; + +/** + * @public + * @enum + */ +export const RouteMatrixTruckType = { + LIGHT_TRUCK: "LightTruck", + STRAIGHT_TRUCK: "StraightTruck", + TRACTOR: "Tractor", +} as const; +/** + * @public + */ +export type RouteMatrixTruckType = (typeof RouteMatrixTruckType)[keyof typeof RouteMatrixTruckType]; + +/** + * @public + * @enum + */ +export const RouteMatrixErrorCode = { + NO_MATCH: "NoMatch", + NO_MATCH_DESTINATION: "NoMatchDestination", + NO_MATCH_ORIGIN: "NoMatchOrigin", + NO_ROUTE: "NoRoute", + OTHER: "Other", + OUT_OF_BOUNDS: "OutOfBounds", + OUT_OF_BOUNDS_DESTINATION: "OutOfBoundsDestination", + OUT_OF_BOUNDS_ORIGIN: "OutOfBoundsOrigin", + VIOLATION: "Violation", +} as const; +/** + * @public + */ +export type RouteMatrixErrorCode = (typeof RouteMatrixErrorCode)[keyof typeof RouteMatrixErrorCode]; + +/** + * @public + * @enum + */ +export const RouteZoneCategory = { + CONGESTION_PRICING: "CongestionPricing", + ENVIRONMENTAL: "Environmental", + VIGNETTE: "Vignette", +} as const; +/** + * @public + */ +export type RouteZoneCategory = (typeof RouteZoneCategory)[keyof typeof RouteZoneCategory]; + +/** + * @public + * @enum + */ +export const MeasurementSystem = { + IMPERIAL: "Imperial", + METRIC: "Metric", +} as const; +/** + * @public + */ +export type MeasurementSystem = (typeof MeasurementSystem)[keyof typeof MeasurementSystem]; + +/** + * @public + * @enum + */ +export const RouteLegAdditionalFeature = { + ELEVATION: "Elevation", + INCIDENTS: "Incidents", + PASS_THROUGH_WAYPOINTS: "PassThroughWaypoints", + SUMMARY: "Summary", + TOLLS: "Tolls", + TRAVEL_STEP_INSTRUCTIONS: "TravelStepInstructions", + TRUCK_ROAD_TYPES: "TruckRoadTypes", + TYPICAL_DURATION: "TypicalDuration", + ZONES: "Zones", +} as const; +/** + * @public + */ +export type RouteLegAdditionalFeature = (typeof RouteLegAdditionalFeature)[keyof typeof RouteLegAdditionalFeature]; + +/** + * @public + * @enum + */ +export const RouteSpanAdditionalFeature = { + BEST_CASE_DURATION: "BestCaseDuration", + CAR_ACCESS: "CarAccess", + CONSUMPTION: "Consumption", + COUNTRY: "Country", + DISTANCE: "Distance", + DURATION: "Duration", + DYNAMIC_SPEED: "DynamicSpeed", + FUNCTIONAL_CLASSIFICATION: "FunctionalClassification", + GATES: "Gates", + INCIDENTS: "Incidents", + NAMES: "Names", + NOTICES: "Notices", + PEDESTRIAN_ACCESS: "PedestrianAccess", + RAILWAY_CROSSINGS: "RailwayCrossings", + REGION: "Region", + ROAD_ATTRIBUTES: "RoadAttributes", + ROUTE_NUMBERS: "RouteNumbers", + SCOOTER_ACCESS: "ScooterAccess", + SPEED_LIMIT: "SpeedLimit", + TOLL_SYSTEMS: "TollSystems", + TRUCK_ACCESS: "TruckAccess", + TRUCK_ROAD_TYPES: "TruckRoadTypes", + TYPICAL_DURATION: "TypicalDuration", + ZONES: "Zones", +} as const; +/** + * @public + */ +export type RouteSpanAdditionalFeature = (typeof RouteSpanAdditionalFeature)[keyof typeof RouteSpanAdditionalFeature]; + +/** + * @public + * @enum + */ +export const RouteTollVehicleCategory = { + MINIBUS: "Minibus", +} as const; +/** + * @public + */ +export type RouteTollVehicleCategory = (typeof RouteTollVehicleCategory)[keyof typeof RouteTollVehicleCategory]; + +/** + * @public + * @enum + */ +export const RouteTravelMode = { + CAR: "Car", + PEDESTRIAN: "Pedestrian", + SCOOTER: "Scooter", + TRUCK: "Truck", +} as const; +/** + * @public + */ +export type RouteTravelMode = (typeof RouteTravelMode)[keyof typeof RouteTravelMode]; + +/** + * @public + * @enum + */ +export const RouteEngineType = { + ELECTRIC: "Electric", + INTERNAL_COMBUSTION: "InternalCombustion", + PLUGIN_HYBRID: "PluginHybrid", +} as const; +/** + * @public + */ +export type RouteEngineType = (typeof RouteEngineType)[keyof typeof RouteEngineType]; + +/** + * @public + * @enum + */ +export const RouteHazardousCargoType = { + COMBUSTIBLE: "Combustible", + CORROSIVE: "Corrosive", + EXPLOSIVE: "Explosive", + FLAMMABLE: "Flammable", + GAS: "Gas", + HARMFUL_TO_WATER: "HarmfulToWater", + ORGANIC: "Organic", + OTHER: "Other", + POISON: "Poison", + POISONOUS_INHALATION: "PoisonousInhalation", + RADIOACTIVE: "Radioactive", +} as const; +/** + * @public + */ +export type RouteHazardousCargoType = (typeof RouteHazardousCargoType)[keyof typeof RouteHazardousCargoType]; + +/** + * @public + * @enum + */ +export const RouteTruckType = { + LIGHT_TRUCK: "LightTruck", + STRAIGHT_TRUCK: "StraightTruck", + TRACTOR: "Tractor", +} as const; +/** + * @public + */ +export type RouteTruckType = (typeof RouteTruckType)[keyof typeof RouteTruckType]; + +/** + * @public + * @enum + */ +export const RouteTravelStepType = { + DEFAULT: "Default", + TURN_BY_TURN: "TurnByTurn", +} as const; +/** + * @public + */ +export type RouteTravelStepType = (typeof RouteTravelStepType)[keyof typeof RouteTravelStepType]; + +/** + * @public + * @enum + */ +export const RouteResponseNoticeCode = { + MAIN_LANGUAGE_NOT_FOUND: "MainLanguageNotFound", + OTHER: "Other", + TRAVEL_TIME_EXCEEDS_DRIVER_WORK_HOURS: "TravelTimeExceedsDriverWorkHours", +} as const; +/** + * @public + */ +export type RouteResponseNoticeCode = (typeof RouteResponseNoticeCode)[keyof typeof RouteResponseNoticeCode]; + +/** + * @public + * @enum + */ +export const RouteNoticeImpact = { + HIGH: "High", + LOW: "Low", +} as const; +/** + * @public + */ +export type RouteNoticeImpact = (typeof RouteNoticeImpact)[keyof typeof RouteNoticeImpact]; + +/** + * @public + * @enum + */ +export const RouteFerryAfterTravelStepType = { + DEBOARD: "Deboard", +} as const; +/** + * @public + */ +export type RouteFerryAfterTravelStepType = + (typeof RouteFerryAfterTravelStepType)[keyof typeof RouteFerryAfterTravelStepType]; + +/** + * @public + * @enum + */ +export const RouteFerryBeforeTravelStepType = { + BOARD: "Board", +} as const; +/** + * @public + */ +export type RouteFerryBeforeTravelStepType = + (typeof RouteFerryBeforeTravelStepType)[keyof typeof RouteFerryBeforeTravelStepType]; + +/** + * @public + * @enum + */ +export const RouteFerryNoticeCode = { + ACCURATE_POLYLINE_UNAVAILABLE: "AccuratePolylineUnavailable", + NO_SCHEDULE: "NoSchedule", + OTHER: "Other", + POTENTIAL_VIOLATED_VEHICLE_RESTRICTION_USAGE: "PotentialViolatedVehicleRestrictionUsage", + SEASONAL_CLOSURE: "SeasonalClosure", + VIOLATED_AVOID_FERRY: "ViolatedAvoidFerry", + VIOLATED_AVOID_RAIL_FERRY: "ViolatedAvoidRailFerry", +} as const; +/** + * @public + */ +export type RouteFerryNoticeCode = (typeof RouteFerryNoticeCode)[keyof typeof RouteFerryNoticeCode]; + +/** + * @public + * @enum + */ +export const RouteFerryTravelStepType = { + ARRIVE: "Arrive", + CONTINUE: "Continue", + DEPART: "Depart", +} as const; +/** + * @public + */ +export type RouteFerryTravelStepType = (typeof RouteFerryTravelStepType)[keyof typeof RouteFerryTravelStepType]; + +/** + * @public + * @enum + */ +export const RouteSideOfStreet = { + LEFT: "Left", + RIGHT: "Right", +} as const; +/** + * @public + */ +export type RouteSideOfStreet = (typeof RouteSideOfStreet)[keyof typeof RouteSideOfStreet]; + +/** + * @public + * @enum + */ +export const RoutePedestrianNoticeCode = { + ACCURATE_POLYLINE_UNAVAILABLE: "AccuratePolylineUnavailable", + OTHER: "Other", + VIOLATED_AVOID_DIRT_ROAD: "ViolatedAvoidDirtRoad", + VIOLATED_AVOID_TUNNEL: "ViolatedAvoidTunnel", + VIOLATED_PEDESTRIAN_OPTION: "ViolatedPedestrianOption", +} as const; +/** + * @public + */ +export type RoutePedestrianNoticeCode = (typeof RoutePedestrianNoticeCode)[keyof typeof RoutePedestrianNoticeCode]; + +/** + * @public + * @enum + */ +export const RouteSpanPedestrianAccessAttribute = { + ALLOWED: "Allowed", + INDOORS: "Indoors", + NO_THROUGH_TRAFFIC: "NoThroughTraffic", + PARK: "Park", + STAIRS: "Stairs", + TOLL_ROAD: "TollRoad", +} as const; +/** + * @public + */ +export type RouteSpanPedestrianAccessAttribute = + (typeof RouteSpanPedestrianAccessAttribute)[keyof typeof RouteSpanPedestrianAccessAttribute]; + +/** + * @public + * @enum + */ +export const RouteSpanRoadAttribute = { + BRIDGE: "Bridge", + BUILT_UP_AREA: "BuiltUpArea", + CONTROLLED_ACCESS_HIGHWAY: "ControlledAccessHighway", + DIRT_ROAD: "DirtRoad", + DIVIDED_ROAD: "DividedRoad", + MOTORWAY: "Motorway", + PRIVATE_ROAD: "PrivateRoad", + RAMP: "Ramp", + RIGHT_HAND_TRAFFIC: "RightHandTraffic", + ROUNDABOUT: "Roundabout", + TUNNEL: "Tunnel", + UNDER_CONSTRUCTION: "UnderConstruction", +} as const; +/** + * @public + */ +export type RouteSpanRoadAttribute = (typeof RouteSpanRoadAttribute)[keyof typeof RouteSpanRoadAttribute]; + +/** + * @public + * @enum + */ +export const RouteDirection = { + EAST: "East", + NORTH: "North", + SOUTH: "South", + WEST: "West", +} as const; +/** + * @public + */ +export type RouteDirection = (typeof RouteDirection)[keyof typeof RouteDirection]; + +/** + * @public + * @enum + */ +export const RouteRoadType = { + HIGHWAY: "Highway", + RURAL: "Rural", + URBAN: "Urban", +} as const; +/** + * @public + */ +export type RouteRoadType = (typeof RouteRoadType)[keyof typeof RouteRoadType]; + +/** + * @public + * @enum + */ +export const RouteSteeringDirection = { + LEFT: "Left", + RIGHT: "Right", + STRAIGHT: "Straight", +} as const; +/** + * @public + */ +export type RouteSteeringDirection = (typeof RouteSteeringDirection)[keyof typeof RouteSteeringDirection]; + +/** + * @public + * @enum + */ +export const RouteTurnIntensity = { + SHARP: "Sharp", + SLIGHT: "Slight", + TYPICAL: "Typical", +} as const; +/** + * @public + */ +export type RouteTurnIntensity = (typeof RouteTurnIntensity)[keyof typeof RouteTurnIntensity]; + +/** + * @public + * @enum + */ +export const RoutePedestrianTravelStepType = { + ARRIVE: "Arrive", + CONTINUE: "Continue", + DEPART: "Depart", + EXIT: "Exit", + KEEP: "Keep", + RAMP: "Ramp", + ROUNDABOUT_ENTER: "RoundaboutEnter", + ROUNDABOUT_EXIT: "RoundaboutExit", + ROUNDABOUT_PASS: "RoundaboutPass", + TURN: "Turn", + U_TURN: "UTurn", +} as const; +/** + * @public + */ +export type RoutePedestrianTravelStepType = + (typeof RoutePedestrianTravelStepType)[keyof typeof RoutePedestrianTravelStepType]; + +/** + * @public + * @enum + */ +export const RouteLegTravelMode = { + CAR: "Car", + CAR_SHUTTLE_TRAIN: "CarShuttleTrain", + FERRY: "Ferry", + PEDESTRIAN: "Pedestrian", + SCOOTER: "Scooter", + TRUCK: "Truck", +} as const; +/** + * @public + */ +export type RouteLegTravelMode = (typeof RouteLegTravelMode)[keyof typeof RouteLegTravelMode]; + +/** + * @public + * @enum + */ +export const RouteLegType = { + FERRY: "Ferry", + PEDESTRIAN: "Pedestrian", + VEHICLE: "Vehicle", +} as const; +/** + * @public + */ +export type RouteLegType = (typeof RouteLegType)[keyof typeof RouteLegType]; + +/** + * @public + * @enum + */ +export const RouteVehicleIncidentSeverity = { + CRITICAL: "Critical", + HIGH: "High", + LOW: "Low", + MEDIUM: "Medium", +} as const; +/** + * @public + */ +export type RouteVehicleIncidentSeverity = + (typeof RouteVehicleIncidentSeverity)[keyof typeof RouteVehicleIncidentSeverity]; + +/** + * @public + * @enum + */ +export const RouteVehicleIncidentType = { + ACCIDENT: "Accident", + CONGESTION: "Congestion", + CONSTRUCTION: "Construction", + DISABLED_VEHICLE: "DisabledVehicle", + LANE_RESTRICTION: "LaneRestriction", + MASS_TRANSIT: "MassTransit", + OTHER: "Other", + PLANNED_EVENT: "PlannedEvent", + ROAD_CLOSURE: "RoadClosure", + ROAD_HAZARD: "RoadHazard", + WEATHER: "Weather", +} as const; +/** + * @public + */ +export type RouteVehicleIncidentType = (typeof RouteVehicleIncidentType)[keyof typeof RouteVehicleIncidentType]; + +/** + * @public + * @enum + */ +export const RouteVehicleNoticeCode = { + ACCURATE_POLYLINE_UNAVAILABLE: "AccuratePolylineUnavailable", + OTHER: "Other", + POTENTIAL_VIOLATED_AVOID_TOLL_ROAD_USAGE: "PotentialViolatedAvoidTollRoadUsage", + POTENTIAL_VIOLATED_CARPOOL_USAGE: "PotentialViolatedCarpoolUsage", + POTENTIAL_VIOLATED_TURN_RESTRICTION_USAGE: "PotentialViolatedTurnRestrictionUsage", + POTENTIAL_VIOLATED_VEHICLE_RESTRICTION_USAGE: "PotentialViolatedVehicleRestrictionUsage", + POTENTIAL_VIOLATED_ZONE_RESTRICTION_USAGE: "PotentialViolatedZoneRestrictionUsage", + SEASONAL_CLOSURE: "SeasonalClosure", + TOLLS_DATA_TEMPORARILY_UNAVAILABLE: "TollsDataTemporarilyUnavailable", + TOLLS_DATA_UNAVAILABLE: "TollsDataUnavailable", + TOLL_TRANSPONDER: "TollTransponder", + VIOLATED_AVOID_CONTROLLED_ACCESS_HIGHWAY: "ViolatedAvoidControlledAccessHighway", + VIOLATED_AVOID_DIFFICULT_TURNS: "ViolatedAvoidDifficultTurns", + VIOLATED_AVOID_DIRT_ROAD: "ViolatedAvoidDirtRoad", + VIOLATED_AVOID_SEASONAL_CLOSURE: "ViolatedAvoidSeasonalClosure", + VIOLATED_AVOID_TOLL_ROAD: "ViolatedAvoidTollRoad", + VIOLATED_AVOID_TOLL_TRANSPONDER: "ViolatedAvoidTollTransponder", + VIOLATED_AVOID_TRUCK_ROAD_TYPE: "ViolatedAvoidTruckRoadType", + VIOLATED_AVOID_TUNNEL: "ViolatedAvoidTunnel", + VIOLATED_AVOID_U_TURNS: "ViolatedAvoidUTurns", + VIOLATED_BLOCKED_ROAD: "ViolatedBlockedRoad", + VIOLATED_CARPOOL: "ViolatedCarpool", + VIOLATED_EMERGENCY_GATE: "ViolatedEmergencyGate", + VIOLATED_START_DIRECTION: "ViolatedStartDirection", + VIOLATED_TURN_RESTRICTION: "ViolatedTurnRestriction", + VIOLATED_VEHICLE_RESTRICTION: "ViolatedVehicleRestriction", + VIOLATED_ZONE_RESTRICTION: "ViolatedZoneRestriction", +} as const; +/** + * @public + */ +export type RouteVehicleNoticeCode = (typeof RouteVehicleNoticeCode)[keyof typeof RouteVehicleNoticeCode]; + +/** + * @public + * @enum + */ +export const RouteWeightConstraintType = { + CURRENT: "Current", + GROSS: "Gross", + UNKNOWN: "Unknown", +} as const; +/** + * @public + */ +export type RouteWeightConstraintType = (typeof RouteWeightConstraintType)[keyof typeof RouteWeightConstraintType]; + +/** + * @public + * @enum + */ +export const RouteSpanCarAccessAttribute = { + ALLOWED: "Allowed", + NO_THROUGH_TRAFFIC: "NoThroughTraffic", + TOLL_ROAD: "TollRoad", +} as const; +/** + * @public + */ +export type RouteSpanCarAccessAttribute = + (typeof RouteSpanCarAccessAttribute)[keyof typeof RouteSpanCarAccessAttribute]; + +/** + * @public + * @enum + */ +export const RouteSpanGateAttribute = { + EMERGENCY: "Emergency", + KEY_ACCESS: "KeyAccess", + PERMISSION_REQUIRED: "PermissionRequired", +} as const; +/** + * @public + */ +export type RouteSpanGateAttribute = (typeof RouteSpanGateAttribute)[keyof typeof RouteSpanGateAttribute]; + +/** + * @public + * @enum + */ +export const RouteSpanRailwayCrossingAttribute = { + PROTECTED: "Protected", + UNPROTECTED: "Unprotected", +} as const; +/** + * @public + */ +export type RouteSpanRailwayCrossingAttribute = + (typeof RouteSpanRailwayCrossingAttribute)[keyof typeof RouteSpanRailwayCrossingAttribute]; + +/** + * @public + * @enum + */ +export const RouteSpanScooterAccessAttribute = { + ALLOWED: "Allowed", + NO_THROUGH_TRAFFIC: "NoThroughTraffic", + TOLL_ROAD: "TollRoad", +} as const; +/** + * @public + */ +export type RouteSpanScooterAccessAttribute = + (typeof RouteSpanScooterAccessAttribute)[keyof typeof RouteSpanScooterAccessAttribute]; + +/** + * @public + * @enum + */ +export const RouteSpanTruckAccessAttribute = { + ALLOWED: "Allowed", + NO_THROUGH_TRAFFIC: "NoThroughTraffic", + TOLL_ROAD: "TollRoad", +} as const; +/** + * @public + */ +export type RouteSpanTruckAccessAttribute = + (typeof RouteSpanTruckAccessAttribute)[keyof typeof RouteSpanTruckAccessAttribute]; + +/** + * @public + * @enum + */ +export const RouteTollPassValidityPeriodType = { + ANNUAL: "Annual", + DAYS: "Days", + EXTENDED_ANNUAL: "ExtendedAnnual", + MINUTES: "Minutes", + MONTHS: "Months", +} as const; +/** + * @public + */ +export type RouteTollPassValidityPeriodType = + (typeof RouteTollPassValidityPeriodType)[keyof typeof RouteTollPassValidityPeriodType]; + +/** + * @public + * @enum + */ +export const RouteTollPaymentMethod = { + BANK_CARD: "BankCard", + CASH: "Cash", + CASH_EXACT: "CashExact", + CREDIT_CARD: "CreditCard", + PASS_SUBSCRIPTION: "PassSubscription", + TRANSPONDER: "Transponder", + TRAVEL_CARD: "TravelCard", + VIDEO_TOLL: "VideoToll", +} as const; +/** + * @public + */ +export type RouteTollPaymentMethod = (typeof RouteTollPaymentMethod)[keyof typeof RouteTollPaymentMethod]; + +/** + * @public + * @enum + */ +export const RouteVehicleTravelStepType = { + ARRIVE: "Arrive", + CONTINUE: "Continue", + CONTINUE_HIGHWAY: "ContinueHighway", + DEPART: "Depart", + ENTER_HIGHWAY: "EnterHighway", + EXIT: "Exit", + KEEP: "Keep", + RAMP: "Ramp", + ROUNDABOUT_ENTER: "RoundaboutEnter", + ROUNDABOUT_EXIT: "RoundaboutExit", + ROUNDABOUT_PASS: "RoundaboutPass", + TURN: "Turn", + U_TURN: "UTurn", +} as const; +/** + * @public + */ +export type RouteVehicleTravelStepType = (typeof RouteVehicleTravelStepType)[keyof typeof RouteVehicleTravelStepType]; + +/** + * @public + * @enum + */ +export const DayOfWeek = { + FRIDAY: "Friday", + MONDAY: "Monday", + SATURDAY: "Saturday", + SUNDAY: "Sunday", + THURSDAY: "Thursday", + TUESDAY: "Tuesday", + WEDNESDAY: "Wednesday", +} as const; +/** + * @public + */ +export type DayOfWeek = (typeof DayOfWeek)[keyof typeof DayOfWeek]; + +/** + * @public + * @enum + */ +export const WaypointOptimizationClusteringAlgorithm = { + DRIVING_DISTANCE: "DrivingDistance", + TOPOLOGY_SEGMENT: "TopologySegment", +} as const; +/** + * @public + */ +export type WaypointOptimizationClusteringAlgorithm = + (typeof WaypointOptimizationClusteringAlgorithm)[keyof typeof WaypointOptimizationClusteringAlgorithm]; + +/** + * @public + * @enum + */ +export const WaypointOptimizationServiceTimeTreatment = { + REST: "Rest", + WORK: "Work", +} as const; +/** + * @public + */ +export type WaypointOptimizationServiceTimeTreatment = + (typeof WaypointOptimizationServiceTimeTreatment)[keyof typeof WaypointOptimizationServiceTimeTreatment]; + +/** + * @public + * @enum + */ +export const WaypointOptimizationSequencingObjective = { + FASTEST_ROUTE: "FastestRoute", + SHORTEST_ROUTE: "ShortestRoute", +} as const; +/** + * @public + */ +export type WaypointOptimizationSequencingObjective = + (typeof WaypointOptimizationSequencingObjective)[keyof typeof WaypointOptimizationSequencingObjective]; + +/** + * @public + * @enum + */ +export const WaypointOptimizationTravelMode = { + CAR: "Car", + PEDESTRIAN: "Pedestrian", + SCOOTER: "Scooter", + TRUCK: "Truck", +} as const; +/** + * @public + */ +export type WaypointOptimizationTravelMode = + (typeof WaypointOptimizationTravelMode)[keyof typeof WaypointOptimizationTravelMode]; + +/** + * @public + * @enum + */ +export const WaypointOptimizationHazardousCargoType = { + COMBUSTIBLE: "Combustible", + CORROSIVE: "Corrosive", + EXPLOSIVE: "Explosive", + FLAMMABLE: "Flammable", + GAS: "Gas", + HARMFUL_TO_WATER: "HarmfulToWater", + ORGANIC: "Organic", + OTHER: "Other", + POISON: "Poison", + POISONOUS_INHALATION: "PoisonousInhalation", + RADIOACTIVE: "Radioactive", +} as const; +/** + * @public + */ +export type WaypointOptimizationHazardousCargoType = + (typeof WaypointOptimizationHazardousCargoType)[keyof typeof WaypointOptimizationHazardousCargoType]; + +/** + * @public + * @enum + */ +export const WaypointOptimizationTruckType = { + STRAIGHT_TRUCK: "StraightTruck", + TRACTOR: "Tractor", +} as const; +/** + * @public + */ +export type WaypointOptimizationTruckType = + (typeof WaypointOptimizationTruckType)[keyof typeof WaypointOptimizationTruckType]; + +/** + * @public + * @enum + */ +export const WaypointOptimizationConstraint = { + ACCESS_HOURS: "AccessHours", + APPOINTMENT_TIME: "AppointmentTime", + BEFORE: "Before", + HEADING: "Heading", + SERVICE_DURATION: "ServiceDuration", + SIDE_OF_STREET: "SideOfStreet", +} as const; +/** + * @public + */ +export type WaypointOptimizationConstraint = + (typeof WaypointOptimizationConstraint)[keyof typeof WaypointOptimizationConstraint]; + +/** + * @public + * @enum + */ +export const RoadSnapTravelMode = { + CAR: "Car", + PEDESTRIAN: "Pedestrian", + SCOOTER: "Scooter", + TRUCK: "Truck", +} as const; +/** + * @public + */ +export type RoadSnapTravelMode = (typeof RoadSnapTravelMode)[keyof typeof RoadSnapTravelMode]; + +/** + * @public + * @enum + */ +export const RoadSnapHazardousCargoType = { + COMBUSTIBLE: "Combustible", + CORROSIVE: "Corrosive", + EXPLOSIVE: "Explosive", + FLAMMABLE: "Flammable", + GAS: "Gas", + HARMFUL_TO_WATER: "HarmfulToWater", + ORGANIC: "Organic", + OTHER: "Other", + POISON: "Poison", + POISONOUS_INHALATION: "PoisonousInhalation", + RADIOACTIVE: "Radioactive", +} as const; +/** + * @public + */ +export type RoadSnapHazardousCargoType = (typeof RoadSnapHazardousCargoType)[keyof typeof RoadSnapHazardousCargoType]; + +/** + * @public + * @enum + */ +export const RoadSnapNoticeCode = { + TRACE_POINTS_HEADING_IGNORED: "TracePointsHeadingIgnored", + TRACE_POINTS_IGNORED: "TracePointsIgnored", + TRACE_POINTS_MOVED_BY_LARGE_DISTANCE: "TracePointsMovedByLargeDistance", + TRACE_POINTS_NOT_MATCHED: "TracePointsNotMatched", + TRACE_POINTS_OUT_OF_SEQUENCE: "TracePointsOutOfSequence", + TRACE_POINTS_SPEED_ESTIMATED: "TracePointsSpeedEstimated", + TRACE_POINTS_SPEED_IGNORED: "TracePointsSpeedIgnored", +} as const; +/** + * @public + */ +export type RoadSnapNoticeCode = (typeof RoadSnapNoticeCode)[keyof typeof RoadSnapNoticeCode]; diff --git a/clients/client-geo-routes/src/models/errors.ts b/clients/client-geo-routes/src/models/errors.ts index e7d8ba32a378..fd4c11a8d3ad 100644 --- a/clients/client-geo-routes/src/models/errors.ts +++ b/clients/client-geo-routes/src/models/errors.ts @@ -1,8 +1,9 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; +import { ValidationExceptionReason } from "./enums"; import { GeoRoutesServiceException as __BaseException } from "./GeoRoutesServiceException"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionField } from "./models_0"; /** *

You don't have sufficient access to perform this action.

diff --git a/clients/client-geo-routes/src/models/models_0.ts b/clients/client-geo-routes/src/models/models_0.ts index 54e347ea4965..64c84c283c9b 100644 --- a/clients/client-geo-routes/src/models/models_0.ts +++ b/clients/client-geo-routes/src/models/models_0.ts @@ -1,4 +1,73 @@ // smithy-typescript generated code +import { + DayOfWeek, + GeometryFormat, + IsolineEngineType, + IsolineHazardousCargoType, + IsolineOptimizationObjective, + IsolineTravelMode, + IsolineTruckType, + IsolineZoneCategory, + MatchingStrategy, + MeasurementSystem, + RoadSnapHazardousCargoType, + RoadSnapNoticeCode, + RoadSnapTravelMode, + RouteDirection, + RouteEngineType, + RouteFerryAfterTravelStepType, + RouteFerryBeforeTravelStepType, + RouteFerryNoticeCode, + RouteFerryTravelStepType, + RouteHazardousCargoType, + RouteLegAdditionalFeature, + RouteLegTravelMode, + RouteLegType, + RouteMatrixErrorCode, + RouteMatrixHazardousCargoType, + RouteMatrixTravelMode, + RouteMatrixTruckType, + RouteMatrixZoneCategory, + RouteNoticeImpact, + RoutePedestrianNoticeCode, + RoutePedestrianTravelStepType, + RouteResponseNoticeCode, + RouteRoadType, + RouteSideOfStreet, + RouteSpanAdditionalFeature, + RouteSpanCarAccessAttribute, + RouteSpanGateAttribute, + RouteSpanPedestrianAccessAttribute, + RouteSpanRailwayCrossingAttribute, + RouteSpanRoadAttribute, + RouteSpanScooterAccessAttribute, + RouteSpanTruckAccessAttribute, + RouteSteeringDirection, + RouteTollPassValidityPeriodType, + RouteTollPaymentMethod, + RouteTollVehicleCategory, + RouteTravelMode, + RouteTravelStepType, + RouteTruckType, + RouteTurnIntensity, + RouteVehicleIncidentSeverity, + RouteVehicleIncidentType, + RouteVehicleNoticeCode, + RouteVehicleTravelStepType, + RouteWeightConstraintType, + RouteZoneCategory, + RoutingObjective, + SideOfStreetMatchingStrategy, + TrafficUsage, + WaypointOptimizationClusteringAlgorithm, + WaypointOptimizationConstraint, + WaypointOptimizationHazardousCargoType, + WaypointOptimizationSequencingObjective, + WaypointOptimizationServiceTimeTreatment, + WaypointOptimizationTravelMode, + WaypointOptimizationTruckType, +} from "./enums"; + /** *

Features that are allowed while calculating an isoline.

* @public @@ -107,21 +176,6 @@ export interface IsolineAvoidanceArea { Geometry: IsolineAvoidanceAreaGeometry | undefined; } -/** - * @public - * @enum - */ -export const IsolineZoneCategory = { - CONGESTION_PRICING: "CongestionPricing", - ENVIRONMENTAL: "Environmental", - VIGNETTE: "Vignette", -} as const; - -/** - * @public - */ -export type IsolineZoneCategory = (typeof IsolineZoneCategory)[keyof typeof IsolineZoneCategory]; - /** *

Zone category to be avoided.

* @public @@ -212,20 +266,6 @@ export interface IsolineAvoidanceOptions { ZoneCategories?: IsolineAvoidanceZoneCategory[] | undefined; } -/** - * @public - * @enum - */ -export const MatchingStrategy = { - MATCH_ANY: "MatchAny", - MATCH_MOST_SIGNIFICANT_ROAD: "MatchMostSignificantRoad", -} as const; - -/** - * @public - */ -export type MatchingStrategy = (typeof MatchingStrategy)[keyof typeof MatchingStrategy]; - /** *

Isoline matching related options.

* @public @@ -256,21 +296,6 @@ export interface IsolineMatchingOptions { Strategy?: MatchingStrategy | undefined; } -/** - * @public - * @enum - */ -export const SideOfStreetMatchingStrategy = { - ANY_STREET: "AnyStreet", - DIVIDED_STREET_ONLY: "DividedStreetOnly", -} as const; - -/** - * @public - */ -export type SideOfStreetMatchingStrategy = - (typeof SideOfStreetMatchingStrategy)[keyof typeof SideOfStreetMatchingStrategy]; - /** *

Options to configure matching the provided position to a side of the street.

* @public @@ -319,20 +344,6 @@ export interface IsolineDestinationOptions { SideOfStreet?: IsolineSideOfStreetOptions | undefined; } -/** - * @public - * @enum - */ -export const GeometryFormat = { - FLEXIBLE_POLYLINE: "FlexiblePolyline", - SIMPLE: "Simple", -} as const; - -/** - * @public - */ -export type GeometryFormat = (typeof GeometryFormat)[keyof typeof GeometryFormat]; - /** *

Isoline granularity related options.

* @public @@ -351,36 +362,6 @@ export interface IsolineGranularityOptions { MaxResolution?: number | undefined; } -/** - * @public - * @enum - */ -export const IsolineOptimizationObjective = { - ACCURATE_CALCULATION: "AccurateCalculation", - BALANCED_CALCULATION: "BalancedCalculation", - FAST_CALCULATION: "FastCalculation", -} as const; - -/** - * @public - */ -export type IsolineOptimizationObjective = - (typeof IsolineOptimizationObjective)[keyof typeof IsolineOptimizationObjective]; - -/** - * @public - * @enum - */ -export const RoutingObjective = { - FASTEST_ROUTE: "FastestRoute", - SHORTEST_ROUTE: "ShortestRoute", -} as const; - -/** - * @public - */ -export type RoutingObjective = (typeof RoutingObjective)[keyof typeof RoutingObjective]; - /** *

Origin related options.

* @public @@ -429,20 +410,6 @@ export interface IsolineThresholds { Time?: number[] | undefined; } -/** - * @public - * @enum - */ -export const TrafficUsage = { - IGNORE_TRAFFIC_DATA: "IgnoreTrafficData", - USE_TRAFFIC_DATA: "UseTrafficData", -} as const; - -/** - * @public - */ -export type TrafficUsage = (typeof TrafficUsage)[keyof typeof TrafficUsage]; - /** *

Options related to traffic.

* @public @@ -461,37 +428,6 @@ export interface IsolineTrafficOptions { Usage?: TrafficUsage | undefined; } -/** - * @public - * @enum - */ -export const IsolineTravelMode = { - CAR: "Car", - PEDESTRIAN: "Pedestrian", - SCOOTER: "Scooter", - TRUCK: "Truck", -} as const; - -/** - * @public - */ -export type IsolineTravelMode = (typeof IsolineTravelMode)[keyof typeof IsolineTravelMode]; - -/** - * @public - * @enum - */ -export const IsolineEngineType = { - ELECTRIC: "Electric", - INTERNAL_COMBUSTION: "InternalCombustion", - PLUGIN_HYBRID: "PluginHybrid", -} as const; - -/** - * @public - */ -export type IsolineEngineType = (typeof IsolineEngineType)[keyof typeof IsolineEngineType]; - /** *

The vehicle license plate.

* @public @@ -564,29 +500,6 @@ export interface IsolineScooterOptions { Occupancy?: number | undefined; } -/** - * @public - * @enum - */ -export const IsolineHazardousCargoType = { - COMBUSTIBLE: "Combustible", - CORROSIVE: "Corrosive", - EXPLOSIVE: "Explosive", - FLAMMABLE: "Flammable", - GAS: "Gas", - HARMFUL_TO_WATER: "HarmfulToWater", - ORGANIC: "Organic", - OTHER: "Other", - POISON: "Poison", - POISONOUS_INHALATION: "PoisonousInhalation", - RADIOACTIVE: "Radioactive", -} as const; - -/** - * @public - */ -export type IsolineHazardousCargoType = (typeof IsolineHazardousCargoType)[keyof typeof IsolineHazardousCargoType]; - /** *

Trailer options corresponding to the vehicle.

* @public @@ -605,21 +518,6 @@ export interface IsolineTrailerOptions { TrailerCount?: number | undefined; } -/** - * @public - * @enum - */ -export const IsolineTruckType = { - LIGHT_TRUCK: "LightTruck", - STRAIGHT_TRUCK: "StraightTruck", - TRACTOR: "Tractor", -} as const; - -/** - * @public - */ -export type IsolineTruckType = (typeof IsolineTruckType)[keyof typeof IsolineTruckType]; - /** *

Specifies the total weight for the specified axle group. Meant for usage in countries that have different regulations based on the axle group type.

Unit: Kilograms

* @public @@ -1068,46 +966,6 @@ export interface ValidationExceptionField { Message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - /** - * The input cannot be parsed. For example a required JSON document, ARN identifier, - * date value, or numeric field cannot be parsed. - * - */ - CANNOT_PARSE: "CannotParse", - /** - * The input is present and parsable, but it is otherwise invalid. For example, a - * required numeric argument is outside the allowed range. - * - */ - FIELD_VALIDATION_FAILED: "FieldValidationFailed", - /** - * The required input is missing. - */ - MISSING: "Missing", - /** - * The input is invalid but no more specific reason is applicable. - */ - OTHER: "Other", - /** - * No such field is supported. - */ - UNKNOWN_FIELD: "UnknownField", - /** - * No such operation is supported. - */ - UNKNOWN_OPERATION: "UnknownOperation", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** *

Allow Options related to the route matrix.

* @public @@ -1162,21 +1020,6 @@ export interface RouteMatrixAvoidanceArea { Geometry: RouteMatrixAvoidanceAreaGeometry | undefined; } -/** - * @public - * @enum - */ -export const RouteMatrixZoneCategory = { - CONGESTION_PRICING: "CongestionPricing", - ENVIRONMENTAL: "Environmental", - VIGNETTE: "Vignette", -} as const; - -/** - * @public - */ -export type RouteMatrixZoneCategory = (typeof RouteMatrixZoneCategory)[keyof typeof RouteMatrixZoneCategory]; - /** *

Zone categories to be avoided.

* @public @@ -1519,22 +1362,6 @@ export interface RouteMatrixTrafficOptions { Usage?: TrafficUsage | undefined; } -/** - * @public - * @enum - */ -export const RouteMatrixTravelMode = { - CAR: "Car", - PEDESTRIAN: "Pedestrian", - SCOOTER: "Scooter", - TRUCK: "Truck", -} as const; - -/** - * @public - */ -export type RouteMatrixTravelMode = (typeof RouteMatrixTravelMode)[keyof typeof RouteMatrixTravelMode]; - /** *

The vehicle License Plate.

* @public @@ -1595,30 +1422,6 @@ export interface RouteMatrixScooterOptions { Occupancy?: number | undefined; } -/** - * @public - * @enum - */ -export const RouteMatrixHazardousCargoType = { - COMBUSTIBLE: "Combustible", - CORROSIVE: "Corrosive", - EXPLOSIVE: "Explosive", - FLAMMABLE: "Flammable", - GAS: "Gas", - HARMFUL_TO_WATER: "HarmfulToWater", - ORGANIC: "Organic", - OTHER: "Other", - POISON: "Poison", - POISONOUS_INHALATION: "PoisonousInhalation", - RADIOACTIVE: "Radioactive", -} as const; - -/** - * @public - */ -export type RouteMatrixHazardousCargoType = - (typeof RouteMatrixHazardousCargoType)[keyof typeof RouteMatrixHazardousCargoType]; - /** *

Trailer options corresponding to the vehicle.

* @public @@ -1631,21 +1434,6 @@ export interface RouteMatrixTrailerOptions { TrailerCount?: number | undefined; } -/** - * @public - * @enum - */ -export const RouteMatrixTruckType = { - LIGHT_TRUCK: "LightTruck", - STRAIGHT_TRUCK: "StraightTruck", - TRACTOR: "Tractor", -} as const; - -/** - * @public - */ -export type RouteMatrixTruckType = (typeof RouteMatrixTruckType)[keyof typeof RouteMatrixTruckType]; - /** *

Travel mode options when the provided travel mode is "Truck"

* @public @@ -1855,27 +1643,6 @@ export interface CalculateRouteMatrixRequest { TravelModeOptions?: RouteMatrixTravelModeOptions | undefined; } -/** - * @public - * @enum - */ -export const RouteMatrixErrorCode = { - NO_MATCH: "NoMatch", - NO_MATCH_DESTINATION: "NoMatchDestination", - NO_MATCH_ORIGIN: "NoMatchOrigin", - NO_ROUTE: "NoRoute", - OTHER: "Other", - OUT_OF_BOUNDS: "OutOfBounds", - OUT_OF_BOUNDS_DESTINATION: "OutOfBoundsDestination", - OUT_OF_BOUNDS_ORIGIN: "OutOfBoundsOrigin", - VIOLATION: "Violation", -} as const; - -/** - * @public - */ -export type RouteMatrixErrorCode = (typeof RouteMatrixErrorCode)[keyof typeof RouteMatrixErrorCode]; - /** *

The calculated route matrix containing the results for all pairs of Origins to Destination positions. Each row corresponds to one entry in Origins. Each entry in the row corresponds to the route from that entry in Origins to an entry in Destination positions.

* @public @@ -2001,21 +1768,6 @@ export interface RouteAvoidanceArea { Geometry: RouteAvoidanceAreaGeometry | undefined; } -/** - * @public - * @enum - */ -export const RouteZoneCategory = { - CONGESTION_PRICING: "CongestionPricing", - ENVIRONMENTAL: "Environmental", - VIGNETTE: "Vignette", -} as const; - -/** - * @public - */ -export type RouteZoneCategory = (typeof RouteZoneCategory)[keyof typeof RouteZoneCategory]; - /** *

Zone categories to be avoided.

* @public @@ -2238,41 +1990,6 @@ export interface RouteExclusionOptions { Countries: string[] | undefined; } -/** - * @public - * @enum - */ -export const MeasurementSystem = { - IMPERIAL: "Imperial", - METRIC: "Metric", -} as const; - -/** - * @public - */ -export type MeasurementSystem = (typeof MeasurementSystem)[keyof typeof MeasurementSystem]; - -/** - * @public - * @enum - */ -export const RouteLegAdditionalFeature = { - ELEVATION: "Elevation", - INCIDENTS: "Incidents", - PASS_THROUGH_WAYPOINTS: "PassThroughWaypoints", - SUMMARY: "Summary", - TOLLS: "Tolls", - TRAVEL_STEP_INSTRUCTIONS: "TravelStepInstructions", - TRUCK_ROAD_TYPES: "TruckRoadTypes", - TYPICAL_DURATION: "TypicalDuration", - ZONES: "Zones", -} as const; - -/** - * @public - */ -export type RouteLegAdditionalFeature = (typeof RouteLegAdditionalFeature)[keyof typeof RouteLegAdditionalFeature]; - /** *

Origin related options.

* @public @@ -2309,42 +2026,6 @@ export interface RouteOriginOptions { SideOfStreet?: RouteSideOfStreetOptions | undefined; } -/** - * @public - * @enum - */ -export const RouteSpanAdditionalFeature = { - BEST_CASE_DURATION: "BestCaseDuration", - CAR_ACCESS: "CarAccess", - CONSUMPTION: "Consumption", - COUNTRY: "Country", - DISTANCE: "Distance", - DURATION: "Duration", - DYNAMIC_SPEED: "DynamicSpeed", - FUNCTIONAL_CLASSIFICATION: "FunctionalClassification", - GATES: "Gates", - INCIDENTS: "Incidents", - NAMES: "Names", - NOTICES: "Notices", - PEDESTRIAN_ACCESS: "PedestrianAccess", - RAILWAY_CROSSINGS: "RailwayCrossings", - REGION: "Region", - ROAD_ATTRIBUTES: "RoadAttributes", - ROUTE_NUMBERS: "RouteNumbers", - SCOOTER_ACCESS: "ScooterAccess", - SPEED_LIMIT: "SpeedLimit", - TOLL_SYSTEMS: "TollSystems", - TRUCK_ACCESS: "TruckAccess", - TRUCK_ROAD_TYPES: "TruckRoadTypes", - TYPICAL_DURATION: "TypicalDuration", - ZONES: "Zones", -} as const; - -/** - * @public - */ -export type RouteSpanAdditionalFeature = (typeof RouteSpanAdditionalFeature)[keyof typeof RouteSpanAdditionalFeature]; - /** *

Type of the emission.

Valid values: Euro1, Euro2, Euro3, Euro4, Euro5, Euro6, EuroEev

* @public @@ -2363,19 +2044,6 @@ export interface RouteEmissionType { Type: string | undefined; } -/** - * @public - * @enum - */ -export const RouteTollVehicleCategory = { - MINIBUS: "Minibus", -} as const; - -/** - * @public - */ -export type RouteTollVehicleCategory = (typeof RouteTollVehicleCategory)[keyof typeof RouteTollVehicleCategory]; - /** *

Options related to Tolls on a route.

* @public @@ -2430,37 +2098,6 @@ export interface RouteTrafficOptions { Usage?: TrafficUsage | undefined; } -/** - * @public - * @enum - */ -export const RouteTravelMode = { - CAR: "Car", - PEDESTRIAN: "Pedestrian", - SCOOTER: "Scooter", - TRUCK: "Truck", -} as const; - -/** - * @public - */ -export type RouteTravelMode = (typeof RouteTravelMode)[keyof typeof RouteTravelMode]; - -/** - * @public - * @enum - */ -export const RouteEngineType = { - ELECTRIC: "Electric", - INTERNAL_COMBUSTION: "InternalCombustion", - PLUGIN_HYBRID: "PluginHybrid", -} as const; - -/** - * @public - */ -export type RouteEngineType = (typeof RouteEngineType)[keyof typeof RouteEngineType]; - /** *

License plate information of the vehicle. Currently, only the last character is used where license plate based controlled access is enforced.

* @public @@ -2545,29 +2182,6 @@ export interface RouteScooterOptions { Occupancy?: number | undefined; } -/** - * @public - * @enum - */ -export const RouteHazardousCargoType = { - COMBUSTIBLE: "Combustible", - CORROSIVE: "Corrosive", - EXPLOSIVE: "Explosive", - FLAMMABLE: "Flammable", - GAS: "Gas", - HARMFUL_TO_WATER: "HarmfulToWater", - ORGANIC: "Organic", - OTHER: "Other", - POISON: "Poison", - POISONOUS_INHALATION: "PoisonousInhalation", - RADIOACTIVE: "Radioactive", -} as const; - -/** - * @public - */ -export type RouteHazardousCargoType = (typeof RouteHazardousCargoType)[keyof typeof RouteHazardousCargoType]; - /** *

Trailer options corresponding to the vehicle.

* @public @@ -2586,21 +2200,6 @@ export interface RouteTrailerOptions { TrailerCount?: number | undefined; } -/** - * @public - * @enum - */ -export const RouteTruckType = { - LIGHT_TRUCK: "LightTruck", - STRAIGHT_TRUCK: "StraightTruck", - TRACTOR: "Tractor", -} as const; - -/** - * @public - */ -export type RouteTruckType = (typeof RouteTruckType)[keyof typeof RouteTruckType]; - /** *

Travel mode options when the provided travel mode is "Truck"

* @public @@ -2751,20 +2350,6 @@ export interface RouteTravelModeOptions { Truck?: RouteTruckOptions | undefined; } -/** - * @public - * @enum - */ -export const RouteTravelStepType = { - DEFAULT: "Default", - TURN_BY_TURN: "TurnByTurn", -} as const; - -/** - * @public - */ -export type RouteTravelStepType = (typeof RouteTravelStepType)[keyof typeof RouteTravelStepType]; - /** *

Waypoint between the Origin and Destination.

* @public @@ -2974,35 +2559,6 @@ export interface CalculateRoutesRequest { Waypoints?: RouteWaypoint[] | undefined; } -/** - * @public - * @enum - */ -export const RouteResponseNoticeCode = { - MAIN_LANGUAGE_NOT_FOUND: "MainLanguageNotFound", - OTHER: "Other", - TRAVEL_TIME_EXCEEDS_DRIVER_WORK_HOURS: "TravelTimeExceedsDriverWorkHours", -} as const; - -/** - * @public - */ -export type RouteResponseNoticeCode = (typeof RouteResponseNoticeCode)[keyof typeof RouteResponseNoticeCode]; - -/** - * @public - * @enum - */ -export const RouteNoticeImpact = { - HIGH: "High", - LOW: "Low", -} as const; - -/** - * @public - */ -export type RouteNoticeImpact = (typeof RouteNoticeImpact)[keyof typeof RouteNoticeImpact]; - /** *

Notices are additional information returned that indicate issues that occurred during route calculation.

* @public @@ -3021,20 +2577,6 @@ export interface RouteResponseNotice { Impact?: RouteNoticeImpact | undefined; } -/** - * @public - * @enum - */ -export const RouteFerryAfterTravelStepType = { - DEBOARD: "Deboard", -} as const; - -/** - * @public - */ -export type RouteFerryAfterTravelStepType = - (typeof RouteFerryAfterTravelStepType)[keyof typeof RouteFerryAfterTravelStepType]; - /** *

Steps of a leg that must be performed after the travel portion of the leg.

* @public @@ -3107,20 +2649,6 @@ export interface RouteFerryArrival { Time?: string | undefined; } -/** - * @public - * @enum - */ -export const RouteFerryBeforeTravelStepType = { - BOARD: "Board", -} as const; - -/** - * @public - */ -export type RouteFerryBeforeTravelStepType = - (typeof RouteFerryBeforeTravelStepType)[keyof typeof RouteFerryBeforeTravelStepType]; - /** *

Steps of a leg that must be performed before the travel portion of the leg.

* @public @@ -3163,25 +2691,6 @@ export interface RouteFerryDeparture { Time?: string | undefined; } -/** - * @public - * @enum - */ -export const RouteFerryNoticeCode = { - ACCURATE_POLYLINE_UNAVAILABLE: "AccuratePolylineUnavailable", - NO_SCHEDULE: "NoSchedule", - OTHER: "Other", - POTENTIAL_VIOLATED_VEHICLE_RESTRICTION_USAGE: "PotentialViolatedVehicleRestrictionUsage", - SEASONAL_CLOSURE: "SeasonalClosure", - VIOLATED_AVOID_FERRY: "ViolatedAvoidFerry", - VIOLATED_AVOID_RAIL_FERRY: "ViolatedAvoidRailFerry", -} as const; - -/** - * @public - */ -export type RouteFerryNoticeCode = (typeof RouteFerryNoticeCode)[keyof typeof RouteFerryNoticeCode]; - /** *

Notices are additional information returned that indicate issues that occurred during route calculation.

* @public @@ -3350,21 +2859,6 @@ export interface RouteFerrySummary { TravelOnly?: RouteFerryTravelOnlySummary | undefined; } -/** - * @public - * @enum - */ -export const RouteFerryTravelStepType = { - ARRIVE: "Arrive", - CONTINUE: "Continue", - DEPART: "Depart", -} as const; - -/** - * @public - */ -export type RouteFerryTravelStepType = (typeof RouteFerryTravelStepType)[keyof typeof RouteFerryTravelStepType]; - /** *

Steps of a leg that must be performed during the travel portion of the leg.

* @public @@ -3485,20 +2979,6 @@ export interface RouteLegGeometry { Polyline?: string | undefined; } -/** - * @public - * @enum - */ -export const RouteSideOfStreet = { - LEFT: "Left", - RIGHT: "Right", -} as const; - -/** - * @public - */ -export type RouteSideOfStreet = (typeof RouteSideOfStreet)[keyof typeof RouteSideOfStreet]; - /** *

Place details corresponding to the arrival or departure.

* @public @@ -3571,23 +3051,6 @@ export interface RoutePedestrianDeparture { Time?: string | undefined; } -/** - * @public - * @enum - */ -export const RoutePedestrianNoticeCode = { - ACCURATE_POLYLINE_UNAVAILABLE: "AccuratePolylineUnavailable", - OTHER: "Other", - VIOLATED_AVOID_DIRT_ROAD: "ViolatedAvoidDirtRoad", - VIOLATED_AVOID_TUNNEL: "ViolatedAvoidTunnel", - VIOLATED_PEDESTRIAN_OPTION: "ViolatedPedestrianOption", -} as const; - -/** - * @public - */ -export type RoutePedestrianNoticeCode = (typeof RoutePedestrianNoticeCode)[keyof typeof RoutePedestrianNoticeCode]; - /** *

Notices are additional information returned that indicate issues that occurred during route calculation.

* @public @@ -3630,65 +3093,6 @@ export interface RouteSpanDynamicSpeedDetails { TypicalSpeed?: number | undefined; } -/** - * @public - * @enum - */ -export const RouteSpanPedestrianAccessAttribute = { - ALLOWED: "Allowed", - INDOORS: "Indoors", - NO_THROUGH_TRAFFIC: "NoThroughTraffic", - PARK: "Park", - STAIRS: "Stairs", - TOLL_ROAD: "TollRoad", -} as const; - -/** - * @public - */ -export type RouteSpanPedestrianAccessAttribute = - (typeof RouteSpanPedestrianAccessAttribute)[keyof typeof RouteSpanPedestrianAccessAttribute]; - -/** - * @public - * @enum - */ -export const RouteSpanRoadAttribute = { - BRIDGE: "Bridge", - BUILT_UP_AREA: "BuiltUpArea", - CONTROLLED_ACCESS_HIGHWAY: "ControlledAccessHighway", - DIRT_ROAD: "DirtRoad", - DIVIDED_ROAD: "DividedRoad", - MOTORWAY: "Motorway", - PRIVATE_ROAD: "PrivateRoad", - RAMP: "Ramp", - RIGHT_HAND_TRAFFIC: "RightHandTraffic", - ROUNDABOUT: "Roundabout", - TUNNEL: "Tunnel", - UNDER_CONSTRUCTION: "UnderConstruction", -} as const; - -/** - * @public - */ -export type RouteSpanRoadAttribute = (typeof RouteSpanRoadAttribute)[keyof typeof RouteSpanRoadAttribute]; - -/** - * @public - * @enum - */ -export const RouteDirection = { - EAST: "East", - NORTH: "North", - SOUTH: "South", - WEST: "West", -} as const; - -/** - * @public - */ -export type RouteDirection = (typeof RouteDirection)[keyof typeof RouteDirection]; - /** *

The route number.

* @public @@ -3887,21 +3291,6 @@ export interface RouteContinueStepDetails { Intersection: LocalizedString[] | undefined; } -/** - * @public - * @enum - */ -export const RouteRoadType = { - HIGHWAY: "Highway", - RURAL: "Rural", - URBAN: "Urban", -} as const; - -/** - * @public - */ -export type RouteRoadType = (typeof RouteRoadType)[keyof typeof RouteRoadType]; - /** *

The road on the route.

* @public @@ -3932,36 +3321,6 @@ export interface RouteRoad { Type?: RouteRoadType | undefined; } -/** - * @public - * @enum - */ -export const RouteSteeringDirection = { - LEFT: "Left", - RIGHT: "Right", - STRAIGHT: "Straight", -} as const; - -/** - * @public - */ -export type RouteSteeringDirection = (typeof RouteSteeringDirection)[keyof typeof RouteSteeringDirection]; - -/** - * @public - * @enum - */ -export const RouteTurnIntensity = { - SHARP: "Sharp", - SLIGHT: "Slight", - TYPICAL: "Typical", -} as const; - -/** - * @public - */ -export type RouteTurnIntensity = (typeof RouteTurnIntensity)[keyof typeof RouteTurnIntensity]; - /** *

Details that are specific to a Keep step.

* @public @@ -4142,30 +3501,6 @@ export interface RouteTurnStepDetails { TurnIntensity?: RouteTurnIntensity | undefined; } -/** - * @public - * @enum - */ -export const RoutePedestrianTravelStepType = { - ARRIVE: "Arrive", - CONTINUE: "Continue", - DEPART: "Depart", - EXIT: "Exit", - KEEP: "Keep", - RAMP: "Ramp", - ROUNDABOUT_ENTER: "RoundaboutEnter", - ROUNDABOUT_EXIT: "RoundaboutExit", - ROUNDABOUT_PASS: "RoundaboutPass", - TURN: "Turn", - U_TURN: "UTurn", -} as const; - -/** - * @public - */ -export type RoutePedestrianTravelStepType = - (typeof RoutePedestrianTravelStepType)[keyof typeof RoutePedestrianTravelStepType]; - /** *

Steps of a leg that must be performed during the travel portion of the leg.

* @public @@ -4310,39 +3645,6 @@ export interface RoutePedestrianLegDetails { TravelSteps: RoutePedestrianTravelStep[] | undefined; } -/** - * @public - * @enum - */ -export const RouteLegTravelMode = { - CAR: "Car", - CAR_SHUTTLE_TRAIN: "CarShuttleTrain", - FERRY: "Ferry", - PEDESTRIAN: "Pedestrian", - SCOOTER: "Scooter", - TRUCK: "Truck", -} as const; - -/** - * @public - */ -export type RouteLegTravelMode = (typeof RouteLegTravelMode)[keyof typeof RouteLegTravelMode]; - -/** - * @public - * @enum - */ -export const RouteLegType = { - FERRY: "Ferry", - PEDESTRIAN: "Pedestrian", - VEHICLE: "Vehicle", -} as const; - -/** - * @public - */ -export type RouteLegType = (typeof RouteLegType)[keyof typeof RouteLegType]; - /** *

Place details corresponding to the arrival or departure.

* @public @@ -4415,46 +3717,6 @@ export interface RouteVehicleDeparture { Time?: string | undefined; } -/** - * @public - * @enum - */ -export const RouteVehicleIncidentSeverity = { - CRITICAL: "Critical", - HIGH: "High", - LOW: "Low", - MEDIUM: "Medium", -} as const; - -/** - * @public - */ -export type RouteVehicleIncidentSeverity = - (typeof RouteVehicleIncidentSeverity)[keyof typeof RouteVehicleIncidentSeverity]; - -/** - * @public - * @enum - */ -export const RouteVehicleIncidentType = { - ACCIDENT: "Accident", - CONGESTION: "Congestion", - CONSTRUCTION: "Construction", - DISABLED_VEHICLE: "DisabledVehicle", - LANE_RESTRICTION: "LaneRestriction", - MASS_TRANSIT: "MassTransit", - OTHER: "Other", - PLANNED_EVENT: "PlannedEvent", - ROAD_CLOSURE: "RoadClosure", - ROAD_HAZARD: "RoadHazard", - WEATHER: "Weather", -} as const; - -/** - * @public - */ -export type RouteVehicleIncidentType = (typeof RouteVehicleIncidentType)[keyof typeof RouteVehicleIncidentType]; - /** *

Incidents corresponding to this leg of the route.

* @public @@ -4491,45 +3753,6 @@ export interface RouteVehicleIncident { Type?: RouteVehicleIncidentType | undefined; } -/** - * @public - * @enum - */ -export const RouteVehicleNoticeCode = { - ACCURATE_POLYLINE_UNAVAILABLE: "AccuratePolylineUnavailable", - OTHER: "Other", - POTENTIAL_VIOLATED_AVOID_TOLL_ROAD_USAGE: "PotentialViolatedAvoidTollRoadUsage", - POTENTIAL_VIOLATED_CARPOOL_USAGE: "PotentialViolatedCarpoolUsage", - POTENTIAL_VIOLATED_TURN_RESTRICTION_USAGE: "PotentialViolatedTurnRestrictionUsage", - POTENTIAL_VIOLATED_VEHICLE_RESTRICTION_USAGE: "PotentialViolatedVehicleRestrictionUsage", - POTENTIAL_VIOLATED_ZONE_RESTRICTION_USAGE: "PotentialViolatedZoneRestrictionUsage", - SEASONAL_CLOSURE: "SeasonalClosure", - TOLLS_DATA_TEMPORARILY_UNAVAILABLE: "TollsDataTemporarilyUnavailable", - TOLLS_DATA_UNAVAILABLE: "TollsDataUnavailable", - TOLL_TRANSPONDER: "TollTransponder", - VIOLATED_AVOID_CONTROLLED_ACCESS_HIGHWAY: "ViolatedAvoidControlledAccessHighway", - VIOLATED_AVOID_DIFFICULT_TURNS: "ViolatedAvoidDifficultTurns", - VIOLATED_AVOID_DIRT_ROAD: "ViolatedAvoidDirtRoad", - VIOLATED_AVOID_SEASONAL_CLOSURE: "ViolatedAvoidSeasonalClosure", - VIOLATED_AVOID_TOLL_ROAD: "ViolatedAvoidTollRoad", - VIOLATED_AVOID_TOLL_TRANSPONDER: "ViolatedAvoidTollTransponder", - VIOLATED_AVOID_TRUCK_ROAD_TYPE: "ViolatedAvoidTruckRoadType", - VIOLATED_AVOID_TUNNEL: "ViolatedAvoidTunnel", - VIOLATED_AVOID_U_TURNS: "ViolatedAvoidUTurns", - VIOLATED_BLOCKED_ROAD: "ViolatedBlockedRoad", - VIOLATED_CARPOOL: "ViolatedCarpool", - VIOLATED_EMERGENCY_GATE: "ViolatedEmergencyGate", - VIOLATED_START_DIRECTION: "ViolatedStartDirection", - VIOLATED_TURN_RESTRICTION: "ViolatedTurnRestriction", - VIOLATED_VEHICLE_RESTRICTION: "ViolatedVehicleRestriction", - VIOLATED_ZONE_RESTRICTION: "ViolatedZoneRestriction", -} as const; - -/** - * @public - */ -export type RouteVehicleNoticeCode = (typeof RouteVehicleNoticeCode)[keyof typeof RouteVehicleNoticeCode]; - /** *

Notice Detail that is a range.

* @public @@ -4548,21 +3771,6 @@ export interface RouteNoticeDetailRange { Max?: number | undefined; } -/** - * @public - * @enum - */ -export const RouteWeightConstraintType = { - CURRENT: "Current", - GROSS: "Gross", - UNKNOWN: "Unknown", -} as const; - -/** - * @public - */ -export type RouteWeightConstraintType = (typeof RouteWeightConstraintType)[keyof typeof RouteWeightConstraintType]; - /** *

The weight constraint for the route.

Unit: Kilograms

* @public @@ -4743,84 +3951,6 @@ export interface RouteVehicleNotice { Impact?: RouteNoticeImpact | undefined; } -/** - * @public - * @enum - */ -export const RouteSpanCarAccessAttribute = { - ALLOWED: "Allowed", - NO_THROUGH_TRAFFIC: "NoThroughTraffic", - TOLL_ROAD: "TollRoad", -} as const; - -/** - * @public - */ -export type RouteSpanCarAccessAttribute = - (typeof RouteSpanCarAccessAttribute)[keyof typeof RouteSpanCarAccessAttribute]; - -/** - * @public - * @enum - */ -export const RouteSpanGateAttribute = { - EMERGENCY: "Emergency", - KEY_ACCESS: "KeyAccess", - PERMISSION_REQUIRED: "PermissionRequired", -} as const; - -/** - * @public - */ -export type RouteSpanGateAttribute = (typeof RouteSpanGateAttribute)[keyof typeof RouteSpanGateAttribute]; - -/** - * @public - * @enum - */ -export const RouteSpanRailwayCrossingAttribute = { - PROTECTED: "Protected", - UNPROTECTED: "Unprotected", -} as const; - -/** - * @public - */ -export type RouteSpanRailwayCrossingAttribute = - (typeof RouteSpanRailwayCrossingAttribute)[keyof typeof RouteSpanRailwayCrossingAttribute]; - -/** - * @public - * @enum - */ -export const RouteSpanScooterAccessAttribute = { - ALLOWED: "Allowed", - NO_THROUGH_TRAFFIC: "NoThroughTraffic", - TOLL_ROAD: "TollRoad", -} as const; - -/** - * @public - */ -export type RouteSpanScooterAccessAttribute = - (typeof RouteSpanScooterAccessAttribute)[keyof typeof RouteSpanScooterAccessAttribute]; - -/** - * @public - * @enum - */ -export const RouteSpanTruckAccessAttribute = { - ALLOWED: "Allowed", - NO_THROUGH_TRAFFIC: "NoThroughTraffic", - TOLL_ROAD: "TollRoad", -} as const; - -/** - * @public - */ -export type RouteSpanTruckAccessAttribute = - (typeof RouteSpanTruckAccessAttribute)[keyof typeof RouteSpanTruckAccessAttribute]; - /** *

Span computed for the requested SpanAdditionalFeatures.

* @public @@ -5115,24 +4245,6 @@ export interface RouteTollPrice { Value: number | undefined; } -/** - * @public - * @enum - */ -export const RouteTollPassValidityPeriodType = { - ANNUAL: "Annual", - DAYS: "Days", - EXTENDED_ANNUAL: "ExtendedAnnual", - MINUTES: "Minutes", - MONTHS: "Months", -} as const; - -/** - * @public - */ -export type RouteTollPassValidityPeriodType = - (typeof RouteTollPassValidityPeriodType)[keyof typeof RouteTollPassValidityPeriodType]; - /** *

Period for which the pass is valid.

* @public @@ -5187,26 +4299,6 @@ export interface RouteTollPass { ValidityPeriod?: RouteTollPassValidityPeriod | undefined; } -/** - * @public - * @enum - */ -export const RouteTollPaymentMethod = { - BANK_CARD: "BankCard", - CASH: "Cash", - CASH_EXACT: "CashExact", - CREDIT_CARD: "CreditCard", - PASS_SUBSCRIPTION: "PassSubscription", - TRANSPONDER: "Transponder", - TRAVEL_CARD: "TravelCard", - VIDEO_TOLL: "VideoToll", -} as const; - -/** - * @public - */ -export type RouteTollPaymentMethod = (typeof RouteTollPaymentMethod)[keyof typeof RouteTollPaymentMethod]; - /** *

Transponders for which this toll can be applied.

* @public @@ -5441,31 +4533,6 @@ export interface RouteRampStepDetails { TurnIntensity?: RouteTurnIntensity | undefined; } -/** - * @public - * @enum - */ -export const RouteVehicleTravelStepType = { - ARRIVE: "Arrive", - CONTINUE: "Continue", - CONTINUE_HIGHWAY: "ContinueHighway", - DEPART: "Depart", - ENTER_HIGHWAY: "EnterHighway", - EXIT: "Exit", - KEEP: "Keep", - RAMP: "Ramp", - ROUNDABOUT_ENTER: "RoundaboutEnter", - ROUNDABOUT_EXIT: "RoundaboutExit", - ROUNDABOUT_PASS: "RoundaboutPass", - TURN: "Turn", - U_TURN: "UTurn", -} as const; - -/** - * @public - */ -export type RouteVehicleTravelStepType = (typeof RouteVehicleTravelStepType)[keyof typeof RouteVehicleTravelStepType]; - /** *

Details related to the U-turn step.

* @public @@ -5909,25 +4976,6 @@ export interface CalculateRoutesResponse { Routes: Route[] | undefined; } -/** - * @public - * @enum - */ -export const DayOfWeek = { - FRIDAY: "Friday", - MONDAY: "Monday", - SATURDAY: "Saturday", - SUNDAY: "Sunday", - THURSDAY: "Thursday", - TUESDAY: "Tuesday", - WEDNESDAY: "Wednesday", -} as const; - -/** - * @public - */ -export type DayOfWeek = (typeof DayOfWeek)[keyof typeof DayOfWeek]; - /** *

Geometry of the area to be avoided.

* @public @@ -6006,21 +5054,6 @@ export interface WaypointOptimizationAvoidanceOptions { UTurns?: boolean | undefined; } -/** - * @public - * @enum - */ -export const WaypointOptimizationClusteringAlgorithm = { - DRIVING_DISTANCE: "DrivingDistance", - TOPOLOGY_SEGMENT: "TopologySegment", -} as const; - -/** - * @public - */ -export type WaypointOptimizationClusteringAlgorithm = - (typeof WaypointOptimizationClusteringAlgorithm)[keyof typeof WaypointOptimizationClusteringAlgorithm]; - /** *

Driving distance related options.

* @public @@ -6195,21 +5228,6 @@ export interface WaypointOptimizationRestProfile { Profile: string | undefined; } -/** - * @public - * @enum - */ -export const WaypointOptimizationServiceTimeTreatment = { - REST: "Rest", - WORK: "Work", -} as const; - -/** - * @public - */ -export type WaypointOptimizationServiceTimeTreatment = - (typeof WaypointOptimizationServiceTimeTreatment)[keyof typeof WaypointOptimizationServiceTimeTreatment]; - /** *

Driver related options.

* @public @@ -6246,21 +5264,6 @@ export interface WaypointOptimizationExclusionOptions { Countries: string[] | undefined; } -/** - * @public - * @enum - */ -export const WaypointOptimizationSequencingObjective = { - FASTEST_ROUTE: "FastestRoute", - SHORTEST_ROUTE: "ShortestRoute", -} as const; - -/** - * @public - */ -export type WaypointOptimizationSequencingObjective = - (typeof WaypointOptimizationSequencingObjective)[keyof typeof WaypointOptimizationSequencingObjective]; - /** *

Origin related options.

* @public @@ -6285,23 +5288,6 @@ export interface WaypointOptimizationTrafficOptions { Usage?: TrafficUsage | undefined; } -/** - * @public - * @enum - */ -export const WaypointOptimizationTravelMode = { - CAR: "Car", - PEDESTRIAN: "Pedestrian", - SCOOTER: "Scooter", - TRUCK: "Truck", -} as const; - -/** - * @public - */ -export type WaypointOptimizationTravelMode = - (typeof WaypointOptimizationTravelMode)[keyof typeof WaypointOptimizationTravelMode]; - /** *

Options related to a pedestrian.

* @public @@ -6314,30 +5300,6 @@ export interface WaypointOptimizationPedestrianOptions { Speed?: number | undefined; } -/** - * @public - * @enum - */ -export const WaypointOptimizationHazardousCargoType = { - COMBUSTIBLE: "Combustible", - CORROSIVE: "Corrosive", - EXPLOSIVE: "Explosive", - FLAMMABLE: "Flammable", - GAS: "Gas", - HARMFUL_TO_WATER: "HarmfulToWater", - ORGANIC: "Organic", - OTHER: "Other", - POISON: "Poison", - POISONOUS_INHALATION: "PoisonousInhalation", - RADIOACTIVE: "Radioactive", -} as const; - -/** - * @public - */ -export type WaypointOptimizationHazardousCargoType = - (typeof WaypointOptimizationHazardousCargoType)[keyof typeof WaypointOptimizationHazardousCargoType]; - /** *

Trailer options corresponding to the vehicle.

* @public @@ -6350,21 +5312,6 @@ export interface WaypointOptimizationTrailerOptions { TrailerCount?: number | undefined; } -/** - * @public - * @enum - */ -export const WaypointOptimizationTruckType = { - STRAIGHT_TRUCK: "StraightTruck", - TRACTOR: "Tractor", -} as const; - -/** - * @public - */ -export type WaypointOptimizationTruckType = - (typeof WaypointOptimizationTruckType)[keyof typeof WaypointOptimizationTruckType]; - /** *

Travel mode options when the provided travel mode is "Truck"

* @public @@ -6634,25 +5581,6 @@ export interface WaypointOptimizationConnection { WaitDuration: number | undefined; } -/** - * @public - * @enum - */ -export const WaypointOptimizationConstraint = { - ACCESS_HOURS: "AccessHours", - APPOINTMENT_TIME: "AppointmentTime", - BEFORE: "Before", - HEADING: "Heading", - SERVICE_DURATION: "ServiceDuration", - SIDE_OF_STREET: "SideOfStreet", -} as const; - -/** - * @public - */ -export type WaypointOptimizationConstraint = - (typeof WaypointOptimizationConstraint)[keyof typeof WaypointOptimizationConstraint]; - /** *

The failed constraint.

* @public @@ -6838,45 +5766,6 @@ export interface RoadSnapTracePoint { Timestamp?: string | undefined; } -/** - * @public - * @enum - */ -export const RoadSnapTravelMode = { - CAR: "Car", - PEDESTRIAN: "Pedestrian", - SCOOTER: "Scooter", - TRUCK: "Truck", -} as const; - -/** - * @public - */ -export type RoadSnapTravelMode = (typeof RoadSnapTravelMode)[keyof typeof RoadSnapTravelMode]; - -/** - * @public - * @enum - */ -export const RoadSnapHazardousCargoType = { - COMBUSTIBLE: "Combustible", - CORROSIVE: "Corrosive", - EXPLOSIVE: "Explosive", - FLAMMABLE: "Flammable", - GAS: "Gas", - HARMFUL_TO_WATER: "HarmfulToWater", - ORGANIC: "Organic", - OTHER: "Other", - POISON: "Poison", - POISONOUS_INHALATION: "PoisonousInhalation", - RADIOACTIVE: "Radioactive", -} as const; - -/** - * @public - */ -export type RoadSnapHazardousCargoType = (typeof RoadSnapHazardousCargoType)[keyof typeof RoadSnapHazardousCargoType]; - /** *

Trailer options corresponding to the vehicle.

* @public @@ -6990,25 +5879,6 @@ export interface SnapToRoadsRequest { TravelModeOptions?: RoadSnapTravelModeOptions | undefined; } -/** - * @public - * @enum - */ -export const RoadSnapNoticeCode = { - TRACE_POINTS_HEADING_IGNORED: "TracePointsHeadingIgnored", - TRACE_POINTS_IGNORED: "TracePointsIgnored", - TRACE_POINTS_MOVED_BY_LARGE_DISTANCE: "TracePointsMovedByLargeDistance", - TRACE_POINTS_NOT_MATCHED: "TracePointsNotMatched", - TRACE_POINTS_OUT_OF_SEQUENCE: "TracePointsOutOfSequence", - TRACE_POINTS_SPEED_ESTIMATED: "TracePointsSpeedEstimated", - TRACE_POINTS_SPEED_IGNORED: "TracePointsSpeedIgnored", -} as const; - -/** - * @public - */ -export type RoadSnapNoticeCode = (typeof RoadSnapNoticeCode)[keyof typeof RoadSnapNoticeCode]; - /** *

Notices provide information around factors that may have influenced snapping in a manner atypical to the standard use cases.

* @public diff --git a/clients/client-grafana/src/index.ts b/clients/client-grafana/src/index.ts index d4f94fa5e252..04b85ebdfc9b 100644 --- a/clients/client-grafana/src/index.ts +++ b/clients/client-grafana/src/index.ts @@ -21,6 +21,7 @@ export type { GrafanaExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-grafana/src/models/enums.ts b/clients/client-grafana/src/models/enums.ts new file mode 100644 index 000000000000..120371378639 --- /dev/null +++ b/clients/client-grafana/src/models/enums.ts @@ -0,0 +1,298 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const AccountAccessType = { + /** + * Indicates that the customer is using Grafana to monitor resources in their current account. + */ + CURRENT_ACCOUNT: "CURRENT_ACCOUNT", + /** + * Indicates that the customer is using Grafana to monitor resources in organizational units. + */ + ORGANIZATION: "ORGANIZATION", +} as const; +/** + * @public + */ +export type AccountAccessType = (typeof AccountAccessType)[keyof typeof AccountAccessType]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + CANNOT_PARSE: "CANNOT_PARSE", + FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", + OTHER: "OTHER", + UNKNOWN_OPERATION: "UNKNOWN_OPERATION", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const LicenseType = { + /** + * Grafana Enterprise License. + */ + ENTERPRISE: "ENTERPRISE", + /** + * Grafana Enterprise Free Trial License. + */ + ENTERPRISE_FREE_TRIAL: "ENTERPRISE_FREE_TRIAL", +} as const; +/** + * @public + */ +export type LicenseType = (typeof LicenseType)[keyof typeof LicenseType]; + +/** + * @public + * @enum + */ +export const AuthenticationProviderTypes = { + /** + * Indicates that AMG workspace has AWS SSO enabled as its authentication provider. + */ + AWS_SSO: "AWS_SSO", + /** + * Indicates that the AMG workspace has SAML enabled as its authentication provider. + */ + SAML: "SAML", +} as const; +/** + * @public + */ +export type AuthenticationProviderTypes = + (typeof AuthenticationProviderTypes)[keyof typeof AuthenticationProviderTypes]; + +/** + * @public + * @enum + */ +export const SamlConfigurationStatus = { + /** + * Indicates that SAML on an AMG workspace is enabled and has been configured. + */ + CONFIGURED: "CONFIGURED", + /** + * Indicates that SAML on an AMG workspace is enabled but has not been configured. + */ + NOT_CONFIGURED: "NOT_CONFIGURED", +} as const; +/** + * @public + */ +export type SamlConfigurationStatus = (typeof SamlConfigurationStatus)[keyof typeof SamlConfigurationStatus]; + +/** + * @public + * @enum + */ +export const DataSourceType = { + /** + * Amazon OpenSearch Service + */ + AMAZON_OPENSEARCH_SERVICE: "AMAZON_OPENSEARCH_SERVICE", + /** + * Amazon Athena + */ + ATHENA: "ATHENA", + /** + * CloudWatch Logs + */ + CLOUDWATCH: "CLOUDWATCH", + /** + * Managed Prometheus + */ + PROMETHEUS: "PROMETHEUS", + /** + * Redshift + */ + REDSHIFT: "REDSHIFT", + /** + * IoT SiteWise + */ + SITEWISE: "SITEWISE", + /** + * Timestream + */ + TIMESTREAM: "TIMESTREAM", + /** + * IoT TwinMaker + */ + TWINMAKER: "TWINMAKER", + /** + * X-Ray + */ + XRAY: "XRAY", +} as const; +/** + * @public + */ +export type DataSourceType = (typeof DataSourceType)[keyof typeof DataSourceType]; + +/** + * @public + * @enum + */ +export const NotificationDestinationType = { + /** + * AWS Simple Notification Service + */ + SNS: "SNS", +} as const; +/** + * @public + */ +export type NotificationDestinationType = + (typeof NotificationDestinationType)[keyof typeof NotificationDestinationType]; + +/** + * @public + * @enum + */ +export const PermissionType = { + /** + * Customer Managed + */ + CUSTOMER_MANAGED: "CUSTOMER_MANAGED", + /** + * Service Managed + */ + SERVICE_MANAGED: "SERVICE_MANAGED", +} as const; +/** + * @public + */ +export type PermissionType = (typeof PermissionType)[keyof typeof PermissionType]; + +/** + * @public + * @enum + */ +export const WorkspaceStatus = { + /** + * Workspace is active. + */ + ACTIVE: "ACTIVE", + /** + * Workspace is being created. + */ + CREATING: "CREATING", + /** + * Workspace creation failed. + */ + CREATION_FAILED: "CREATION_FAILED", + /** + * Workspace is being deleted. + */ + DELETING: "DELETING", + /** + * Workspace deletion failed. + */ + DELETION_FAILED: "DELETION_FAILED", + /** + * Workspace is in an invalid state, it can only and should be deleted. + */ + FAILED: "FAILED", + /** + * Failed to remove enterprise license from workspace. + */ + LICENSE_REMOVAL_FAILED: "LICENSE_REMOVAL_FAILED", + /** + * Workspace update failed. + */ + UPDATE_FAILED: "UPDATE_FAILED", + /** + * Workspace is being updated. + */ + UPDATING: "UPDATING", + /** + * Workspace upgrade failed. + */ + UPGRADE_FAILED: "UPGRADE_FAILED", + /** + * Workspace is being upgraded to enterprise. + */ + UPGRADING: "UPGRADING", + /** + * Workspace version update failed. + */ + VERSION_UPDATE_FAILED: "VERSION_UPDATE_FAILED", + /** + * Workspace version is being updated. + */ + VERSION_UPDATING: "VERSION_UPDATING", +} as const; +/** + * @public + */ +export type WorkspaceStatus = (typeof WorkspaceStatus)[keyof typeof WorkspaceStatus]; + +/** + * @public + * @enum + */ +export const UserType = { + /** + * SSO group. + */ + SSO_GROUP: "SSO_GROUP", + /** + * SSO user. + */ + SSO_USER: "SSO_USER", +} as const; +/** + * @public + */ +export type UserType = (typeof UserType)[keyof typeof UserType]; + +/** + * @public + * @enum + */ +export const Role = { + /** + * Role Admin. + */ + ADMIN: "ADMIN", + /** + * Role Editor. + */ + EDITOR: "EDITOR", + /** + * Role Viewer. + */ + VIEWER: "VIEWER", +} as const; +/** + * @public + */ +export type Role = (typeof Role)[keyof typeof Role]; + +/** + * @public + * @enum + */ +export const UpdateAction = { + /** + * Add permissions. + */ + ADD: "ADD", + /** + * Revoke permissions. + */ + REVOKE: "REVOKE", +} as const; +/** + * @public + */ +export type UpdateAction = (typeof UpdateAction)[keyof typeof UpdateAction]; diff --git a/clients/client-grafana/src/models/errors.ts b/clients/client-grafana/src/models/errors.ts index 0f00a3c7140a..7faf3870a0c6 100644 --- a/clients/client-grafana/src/models/errors.ts +++ b/clients/client-grafana/src/models/errors.ts @@ -1,8 +1,9 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; +import { ValidationExceptionReason } from "./enums"; import { GrafanaServiceException as __BaseException } from "./GrafanaServiceException"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionField } from "./models_0"; /** *

You do not have sufficient permissions to perform this action.

diff --git a/clients/client-grafana/src/models/models_0.ts b/clients/client-grafana/src/models/models_0.ts index a1f6a726d4ea..113422cbaa46 100644 --- a/clients/client-grafana/src/models/models_0.ts +++ b/clients/client-grafana/src/models/models_0.ts @@ -1,25 +1,19 @@ // smithy-typescript generated code import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/smithy-client"; -/** - * @public - * @enum - */ -export const AccountAccessType = { - /** - * Indicates that the customer is using Grafana to monitor resources in their current account. - */ - CURRENT_ACCOUNT: "CURRENT_ACCOUNT", - /** - * Indicates that the customer is using Grafana to monitor resources in organizational units. - */ - ORGANIZATION: "ORGANIZATION", -} as const; - -/** - * @public - */ -export type AccountAccessType = (typeof AccountAccessType)[keyof typeof AccountAccessType]; +import { + AccountAccessType, + AuthenticationProviderTypes, + DataSourceType, + LicenseType, + NotificationDestinationType, + PermissionType, + Role, + SamlConfigurationStatus, + UpdateAction, + UserType, + WorkspaceStatus, +} from "./enums"; /** * @public @@ -96,22 +90,6 @@ export interface ValidationExceptionField { message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - CANNOT_PARSE: "CANNOT_PARSE", - FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", - OTHER: "OTHER", - UNKNOWN_OPERATION: "UNKNOWN_OPERATION", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** * @public */ @@ -194,26 +172,6 @@ export interface AssertionAttributes { org?: string | undefined; } -/** - * @public - * @enum - */ -export const LicenseType = { - /** - * Grafana Enterprise License. - */ - ENTERPRISE: "ENTERPRISE", - /** - * Grafana Enterprise Free Trial License. - */ - ENTERPRISE_FREE_TRIAL: "ENTERPRISE_FREE_TRIAL", -} as const; - -/** - * @public - */ -export type LicenseType = (typeof LicenseType)[keyof typeof LicenseType]; - /** * @public */ @@ -241,47 +199,6 @@ export interface AssociateLicenseRequest { grafanaToken?: string | undefined; } -/** - * @public - * @enum - */ -export const AuthenticationProviderTypes = { - /** - * Indicates that AMG workspace has AWS SSO enabled as its authentication provider. - */ - AWS_SSO: "AWS_SSO", - /** - * Indicates that the AMG workspace has SAML enabled as its authentication provider. - */ - SAML: "SAML", -} as const; - -/** - * @public - */ -export type AuthenticationProviderTypes = - (typeof AuthenticationProviderTypes)[keyof typeof AuthenticationProviderTypes]; - -/** - * @public - * @enum - */ -export const SamlConfigurationStatus = { - /** - * Indicates that SAML on an AMG workspace is enabled and has been configured. - */ - CONFIGURED: "CONFIGURED", - /** - * Indicates that SAML on an AMG workspace is enabled but has not been configured. - */ - NOT_CONFIGURED: "NOT_CONFIGURED", -} as const; - -/** - * @public - */ -export type SamlConfigurationStatus = (typeof SamlConfigurationStatus)[keyof typeof SamlConfigurationStatus]; - /** *

A structure that describes whether the workspace uses SAML, IAM Identity Center, or * both methods for user authentication, and whether that authentication is fully @@ -304,54 +221,6 @@ export interface AuthenticationSummary { samlConfigurationStatus?: SamlConfigurationStatus | undefined; } -/** - * @public - * @enum - */ -export const DataSourceType = { - /** - * Amazon OpenSearch Service - */ - AMAZON_OPENSEARCH_SERVICE: "AMAZON_OPENSEARCH_SERVICE", - /** - * Amazon Athena - */ - ATHENA: "ATHENA", - /** - * CloudWatch Logs - */ - CLOUDWATCH: "CLOUDWATCH", - /** - * Managed Prometheus - */ - PROMETHEUS: "PROMETHEUS", - /** - * Redshift - */ - REDSHIFT: "REDSHIFT", - /** - * IoT SiteWise - */ - SITEWISE: "SITEWISE", - /** - * Timestream - */ - TIMESTREAM: "TIMESTREAM", - /** - * IoT TwinMaker - */ - TWINMAKER: "TWINMAKER", - /** - * X-Ray - */ - XRAY: "XRAY", -} as const; - -/** - * @public - */ -export type DataSourceType = (typeof DataSourceType)[keyof typeof DataSourceType]; - /** *

The configuration settings for in-bound network access to your workspace.

*

When this is configured, only listed IP addresses and VPC endpoints will be able to @@ -409,107 +278,6 @@ export interface NetworkAccessConfiguration { vpceIds: string[] | undefined; } -/** - * @public - * @enum - */ -export const NotificationDestinationType = { - /** - * AWS Simple Notification Service - */ - SNS: "SNS", -} as const; - -/** - * @public - */ -export type NotificationDestinationType = - (typeof NotificationDestinationType)[keyof typeof NotificationDestinationType]; - -/** - * @public - * @enum - */ -export const PermissionType = { - /** - * Customer Managed - */ - CUSTOMER_MANAGED: "CUSTOMER_MANAGED", - /** - * Service Managed - */ - SERVICE_MANAGED: "SERVICE_MANAGED", -} as const; - -/** - * @public - */ -export type PermissionType = (typeof PermissionType)[keyof typeof PermissionType]; - -/** - * @public - * @enum - */ -export const WorkspaceStatus = { - /** - * Workspace is active. - */ - ACTIVE: "ACTIVE", - /** - * Workspace is being created. - */ - CREATING: "CREATING", - /** - * Workspace creation failed. - */ - CREATION_FAILED: "CREATION_FAILED", - /** - * Workspace is being deleted. - */ - DELETING: "DELETING", - /** - * Workspace deletion failed. - */ - DELETION_FAILED: "DELETION_FAILED", - /** - * Workspace is in an invalid state, it can only and should be deleted. - */ - FAILED: "FAILED", - /** - * Failed to remove enterprise license from workspace. - */ - LICENSE_REMOVAL_FAILED: "LICENSE_REMOVAL_FAILED", - /** - * Workspace update failed. - */ - UPDATE_FAILED: "UPDATE_FAILED", - /** - * Workspace is being updated. - */ - UPDATING: "UPDATING", - /** - * Workspace upgrade failed. - */ - UPGRADE_FAILED: "UPGRADE_FAILED", - /** - * Workspace is being upgraded to enterprise. - */ - UPGRADING: "UPGRADING", - /** - * Workspace version update failed. - */ - VERSION_UPDATE_FAILED: "VERSION_UPDATE_FAILED", - /** - * Workspace version is being updated. - */ - VERSION_UPDATING: "VERSION_UPDATING", -} as const; - -/** - * @public - */ -export type WorkspaceStatus = (typeof WorkspaceStatus)[keyof typeof WorkspaceStatus]; - /** *

The configuration settings for an Amazon VPC that contains data sources for * your Grafana workspace to connect to.

@@ -1152,26 +920,6 @@ export interface ListVersionsResponse { grafanaVersions?: string[] | undefined; } -/** - * @public - * @enum - */ -export const UserType = { - /** - * SSO group. - */ - SSO_GROUP: "SSO_GROUP", - /** - * SSO user. - */ - SSO_USER: "SSO_USER", -} as const; - -/** - * @public - */ -export type UserType = (typeof UserType)[keyof typeof UserType]; - /** * @public */ @@ -1215,30 +963,6 @@ export interface ListPermissionsRequest { workspaceId: string | undefined; } -/** - * @public - * @enum - */ -export const Role = { - /** - * Role Admin. - */ - ADMIN: "ADMIN", - /** - * Role Editor. - */ - EDITOR: "EDITOR", - /** - * Role Viewer. - */ - VIEWER: "VIEWER", -} as const; - -/** - * @public - */ -export type Role = (typeof Role)[keyof typeof Role]; - /** *

A structure that specifies one user or group in the workspace.

* @public @@ -1298,26 +1022,6 @@ export interface ListPermissionsResponse { permissions: PermissionEntry[] | undefined; } -/** - * @public - * @enum - */ -export const UpdateAction = { - /** - * Add permissions. - */ - ADD: "ADD", - /** - * Revoke permissions. - */ - REVOKE: "REVOKE", -} as const; - -/** - * @public - */ -export type UpdateAction = (typeof UpdateAction)[keyof typeof UpdateAction]; - /** *

Contains the instructions for one Grafana role permission update in a UpdatePermissions operation.

* @public diff --git a/clients/client-inspector2/src/commands/GetDelegatedAdminAccountCommand.ts b/clients/client-inspector2/src/commands/GetDelegatedAdminAccountCommand.ts index f2e7ebfea173..5ef32efd0960 100644 --- a/clients/client-inspector2/src/commands/GetDelegatedAdminAccountCommand.ts +++ b/clients/client-inspector2/src/commands/GetDelegatedAdminAccountCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { GetDelegatedAdminAccountRequest, GetDelegatedAdminAccountResponse } from "../models/models_1"; +import { GetDelegatedAdminAccountRequest, GetDelegatedAdminAccountResponse } from "../models/models_0"; import { GetDelegatedAdminAccount } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/GetEc2DeepInspectionConfigurationCommand.ts b/clients/client-inspector2/src/commands/GetEc2DeepInspectionConfigurationCommand.ts index 2bab55b5868d..30242cc0a893 100644 --- a/clients/client-inspector2/src/commands/GetEc2DeepInspectionConfigurationCommand.ts +++ b/clients/client-inspector2/src/commands/GetEc2DeepInspectionConfigurationCommand.ts @@ -8,7 +8,7 @@ import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } import { GetEc2DeepInspectionConfigurationRequest, GetEc2DeepInspectionConfigurationResponse, -} from "../models/models_1"; +} from "../models/models_0"; import { GetEc2DeepInspectionConfiguration } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/GetEncryptionKeyCommand.ts b/clients/client-inspector2/src/commands/GetEncryptionKeyCommand.ts index 05461a8047b0..4bd7881b4f9a 100644 --- a/clients/client-inspector2/src/commands/GetEncryptionKeyCommand.ts +++ b/clients/client-inspector2/src/commands/GetEncryptionKeyCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { GetEncryptionKeyRequest, GetEncryptionKeyResponse } from "../models/models_1"; +import { GetEncryptionKeyRequest, GetEncryptionKeyResponse } from "../models/models_0"; import { GetEncryptionKey } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/GetFindingsReportStatusCommand.ts b/clients/client-inspector2/src/commands/GetFindingsReportStatusCommand.ts index 67652b51757e..9a2f5a54d03c 100644 --- a/clients/client-inspector2/src/commands/GetFindingsReportStatusCommand.ts +++ b/clients/client-inspector2/src/commands/GetFindingsReportStatusCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { GetFindingsReportStatusRequest, GetFindingsReportStatusResponse } from "../models/models_1"; +import { GetFindingsReportStatusRequest, GetFindingsReportStatusResponse } from "../models/models_0"; import { GetFindingsReportStatus } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/GetMemberCommand.ts b/clients/client-inspector2/src/commands/GetMemberCommand.ts index f6c220364cb9..3227e415a97e 100644 --- a/clients/client-inspector2/src/commands/GetMemberCommand.ts +++ b/clients/client-inspector2/src/commands/GetMemberCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { GetMemberRequest, GetMemberResponse } from "../models/models_1"; +import { GetMemberRequest, GetMemberResponse } from "../models/models_0"; import { GetMember } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/GetSbomExportCommand.ts b/clients/client-inspector2/src/commands/GetSbomExportCommand.ts index 0717a0cbf2ca..86375dbeb483 100644 --- a/clients/client-inspector2/src/commands/GetSbomExportCommand.ts +++ b/clients/client-inspector2/src/commands/GetSbomExportCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { GetSbomExportRequest, GetSbomExportResponse } from "../models/models_1"; +import { GetSbomExportRequest, GetSbomExportResponse } from "../models/models_0"; import { GetSbomExport } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListAccountPermissionsCommand.ts b/clients/client-inspector2/src/commands/ListAccountPermissionsCommand.ts index c5ccee2480cc..bb7189426d2e 100644 --- a/clients/client-inspector2/src/commands/ListAccountPermissionsCommand.ts +++ b/clients/client-inspector2/src/commands/ListAccountPermissionsCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { ListAccountPermissionsRequest, ListAccountPermissionsResponse } from "../models/models_1"; +import { ListAccountPermissionsRequest, ListAccountPermissionsResponse } from "../models/models_0"; import { ListAccountPermissions } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListCisScanConfigurationsCommand.ts b/clients/client-inspector2/src/commands/ListCisScanConfigurationsCommand.ts index 225a6e9b7d14..b0653f3f1322 100644 --- a/clients/client-inspector2/src/commands/ListCisScanConfigurationsCommand.ts +++ b/clients/client-inspector2/src/commands/ListCisScanConfigurationsCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { ListCisScanConfigurationsRequest, ListCisScanConfigurationsResponse } from "../models/models_1"; +import { ListCisScanConfigurationsRequest, ListCisScanConfigurationsResponse } from "../models/models_0"; import { ListCisScanConfigurations } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListCisScanResultsAggregatedByChecksCommand.ts b/clients/client-inspector2/src/commands/ListCisScanResultsAggregatedByChecksCommand.ts index 6b83624b61d0..8db3301cfa04 100644 --- a/clients/client-inspector2/src/commands/ListCisScanResultsAggregatedByChecksCommand.ts +++ b/clients/client-inspector2/src/commands/ListCisScanResultsAggregatedByChecksCommand.ts @@ -8,7 +8,7 @@ import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } import { ListCisScanResultsAggregatedByChecksRequest, ListCisScanResultsAggregatedByChecksResponse, -} from "../models/models_1"; +} from "../models/models_0"; import { ListCisScanResultsAggregatedByChecks } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListCisScanResultsAggregatedByTargetResourceCommand.ts b/clients/client-inspector2/src/commands/ListCisScanResultsAggregatedByTargetResourceCommand.ts index 3b50b6e30773..45cd494f0ee6 100644 --- a/clients/client-inspector2/src/commands/ListCisScanResultsAggregatedByTargetResourceCommand.ts +++ b/clients/client-inspector2/src/commands/ListCisScanResultsAggregatedByTargetResourceCommand.ts @@ -8,7 +8,7 @@ import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } import { ListCisScanResultsAggregatedByTargetResourceRequest, ListCisScanResultsAggregatedByTargetResourceResponse, -} from "../models/models_1"; +} from "../models/models_0"; import { ListCisScanResultsAggregatedByTargetResource } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListCisScansCommand.ts b/clients/client-inspector2/src/commands/ListCisScansCommand.ts index 2151f9254230..a961bd0e980d 100644 --- a/clients/client-inspector2/src/commands/ListCisScansCommand.ts +++ b/clients/client-inspector2/src/commands/ListCisScansCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { ListCisScansRequest, ListCisScansResponse } from "../models/models_1"; +import { ListCisScansRequest, ListCisScansResponse } from "../models/models_0"; import { ListCisScans } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListCodeSecurityIntegrationsCommand.ts b/clients/client-inspector2/src/commands/ListCodeSecurityIntegrationsCommand.ts index f08437aaf4da..8622682c08d1 100644 --- a/clients/client-inspector2/src/commands/ListCodeSecurityIntegrationsCommand.ts +++ b/clients/client-inspector2/src/commands/ListCodeSecurityIntegrationsCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { ListCodeSecurityIntegrationsRequest, ListCodeSecurityIntegrationsResponse } from "../models/models_1"; +import { ListCodeSecurityIntegrationsRequest, ListCodeSecurityIntegrationsResponse } from "../models/models_0"; import { ListCodeSecurityIntegrations } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListCodeSecurityScanConfigurationAssociationsCommand.ts b/clients/client-inspector2/src/commands/ListCodeSecurityScanConfigurationAssociationsCommand.ts index d0a4b8d04f58..b4cb7bd8de43 100644 --- a/clients/client-inspector2/src/commands/ListCodeSecurityScanConfigurationAssociationsCommand.ts +++ b/clients/client-inspector2/src/commands/ListCodeSecurityScanConfigurationAssociationsCommand.ts @@ -8,7 +8,7 @@ import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } import { ListCodeSecurityScanConfigurationAssociationsRequest, ListCodeSecurityScanConfigurationAssociationsResponse, -} from "../models/models_1"; +} from "../models/models_0"; import { ListCodeSecurityScanConfigurationAssociations } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListCodeSecurityScanConfigurationsCommand.ts b/clients/client-inspector2/src/commands/ListCodeSecurityScanConfigurationsCommand.ts index 46d0bdbb8434..7137a36b4938 100644 --- a/clients/client-inspector2/src/commands/ListCodeSecurityScanConfigurationsCommand.ts +++ b/clients/client-inspector2/src/commands/ListCodeSecurityScanConfigurationsCommand.ts @@ -8,7 +8,7 @@ import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } import { ListCodeSecurityScanConfigurationsRequest, ListCodeSecurityScanConfigurationsResponse, -} from "../models/models_1"; +} from "../models/models_0"; import { ListCodeSecurityScanConfigurations } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListCoverageCommand.ts b/clients/client-inspector2/src/commands/ListCoverageCommand.ts index 4ada952f2653..03d7953c4dd5 100644 --- a/clients/client-inspector2/src/commands/ListCoverageCommand.ts +++ b/clients/client-inspector2/src/commands/ListCoverageCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { ListCoverageRequest, ListCoverageResponse } from "../models/models_1"; +import { ListCoverageRequest, ListCoverageResponse } from "../models/models_0"; import { ListCoverage } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListCoverageStatisticsCommand.ts b/clients/client-inspector2/src/commands/ListCoverageStatisticsCommand.ts index 9e0d455a94f4..3f016222a99e 100644 --- a/clients/client-inspector2/src/commands/ListCoverageStatisticsCommand.ts +++ b/clients/client-inspector2/src/commands/ListCoverageStatisticsCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { ListCoverageStatisticsRequest, ListCoverageStatisticsResponse } from "../models/models_1"; +import { ListCoverageStatisticsRequest, ListCoverageStatisticsResponse } from "../models/models_0"; import { ListCoverageStatistics } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListDelegatedAdminAccountsCommand.ts b/clients/client-inspector2/src/commands/ListDelegatedAdminAccountsCommand.ts index 0abce65c6099..9805d5fa851c 100644 --- a/clients/client-inspector2/src/commands/ListDelegatedAdminAccountsCommand.ts +++ b/clients/client-inspector2/src/commands/ListDelegatedAdminAccountsCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { ListDelegatedAdminAccountsRequest, ListDelegatedAdminAccountsResponse } from "../models/models_1"; +import { ListDelegatedAdminAccountsRequest, ListDelegatedAdminAccountsResponse } from "../models/models_0"; import { ListDelegatedAdminAccounts } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListFiltersCommand.ts b/clients/client-inspector2/src/commands/ListFiltersCommand.ts index 87a08c647b55..f2e0099cd279 100644 --- a/clients/client-inspector2/src/commands/ListFiltersCommand.ts +++ b/clients/client-inspector2/src/commands/ListFiltersCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { ListFiltersRequest, ListFiltersResponse } from "../models/models_1"; +import { ListFiltersRequest, ListFiltersResponse } from "../models/models_0"; import { ListFilters } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListFindingAggregationsCommand.ts b/clients/client-inspector2/src/commands/ListFindingAggregationsCommand.ts index 386d775482ec..9d4ade1aca0b 100644 --- a/clients/client-inspector2/src/commands/ListFindingAggregationsCommand.ts +++ b/clients/client-inspector2/src/commands/ListFindingAggregationsCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { ListFindingAggregationsRequest, ListFindingAggregationsResponse } from "../models/models_1"; +import { ListFindingAggregationsRequest, ListFindingAggregationsResponse } from "../models/models_0"; import { ListFindingAggregations } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListFindingsCommand.ts b/clients/client-inspector2/src/commands/ListFindingsCommand.ts index ef1238e6ed3d..8c16331e2f81 100644 --- a/clients/client-inspector2/src/commands/ListFindingsCommand.ts +++ b/clients/client-inspector2/src/commands/ListFindingsCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { ListFindingsRequest, ListFindingsResponse } from "../models/models_1"; +import { ListFindingsRequest, ListFindingsResponse } from "../models/models_0"; import { ListFindings } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListMembersCommand.ts b/clients/client-inspector2/src/commands/ListMembersCommand.ts index 1ad8b4bb3996..008356a1ea32 100644 --- a/clients/client-inspector2/src/commands/ListMembersCommand.ts +++ b/clients/client-inspector2/src/commands/ListMembersCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { ListMembersRequest, ListMembersResponse } from "../models/models_1"; +import { ListMembersRequest, ListMembersResponse } from "../models/models_0"; import { ListMembers } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListTagsForResourceCommand.ts b/clients/client-inspector2/src/commands/ListTagsForResourceCommand.ts index ea2775708339..8f704bedbfab 100644 --- a/clients/client-inspector2/src/commands/ListTagsForResourceCommand.ts +++ b/clients/client-inspector2/src/commands/ListTagsForResourceCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_1"; +import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0"; import { ListTagsForResource } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ListUsageTotalsCommand.ts b/clients/client-inspector2/src/commands/ListUsageTotalsCommand.ts index 29b6b3d23e81..579763189c5b 100644 --- a/clients/client-inspector2/src/commands/ListUsageTotalsCommand.ts +++ b/clients/client-inspector2/src/commands/ListUsageTotalsCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { ListUsageTotalsRequest, ListUsageTotalsResponse } from "../models/models_1"; +import { ListUsageTotalsRequest, ListUsageTotalsResponse } from "../models/models_0"; import { ListUsageTotals } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/ResetEncryptionKeyCommand.ts b/clients/client-inspector2/src/commands/ResetEncryptionKeyCommand.ts index 544564c9da03..69483b75a675 100644 --- a/clients/client-inspector2/src/commands/ResetEncryptionKeyCommand.ts +++ b/clients/client-inspector2/src/commands/ResetEncryptionKeyCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { ResetEncryptionKeyRequest, ResetEncryptionKeyResponse } from "../models/models_1"; +import { ResetEncryptionKeyRequest, ResetEncryptionKeyResponse } from "../models/models_0"; import { ResetEncryptionKey } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/SearchVulnerabilitiesCommand.ts b/clients/client-inspector2/src/commands/SearchVulnerabilitiesCommand.ts index ef6aec857313..106a4ec83853 100644 --- a/clients/client-inspector2/src/commands/SearchVulnerabilitiesCommand.ts +++ b/clients/client-inspector2/src/commands/SearchVulnerabilitiesCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { SearchVulnerabilitiesRequest, SearchVulnerabilitiesResponse } from "../models/models_1"; +import { SearchVulnerabilitiesRequest, SearchVulnerabilitiesResponse } from "../models/models_0"; import { SearchVulnerabilities } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/SendCisSessionHealthCommand.ts b/clients/client-inspector2/src/commands/SendCisSessionHealthCommand.ts index 59eba4edf000..2271dd414ff7 100644 --- a/clients/client-inspector2/src/commands/SendCisSessionHealthCommand.ts +++ b/clients/client-inspector2/src/commands/SendCisSessionHealthCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { SendCisSessionHealthRequest, SendCisSessionHealthResponse } from "../models/models_1"; +import { SendCisSessionHealthRequest, SendCisSessionHealthResponse } from "../models/models_0"; import { SendCisSessionHealth } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/SendCisSessionTelemetryCommand.ts b/clients/client-inspector2/src/commands/SendCisSessionTelemetryCommand.ts index c56e39562c11..b44bfc1751bb 100644 --- a/clients/client-inspector2/src/commands/SendCisSessionTelemetryCommand.ts +++ b/clients/client-inspector2/src/commands/SendCisSessionTelemetryCommand.ts @@ -5,7 +5,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { SendCisSessionTelemetryRequest, SendCisSessionTelemetryResponse } from "../models/models_1"; +import { SendCisSessionTelemetryRequest, SendCisSessionTelemetryResponse } from "../models/models_0"; import { SendCisSessionTelemetry } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/commands/StartCisSessionCommand.ts b/clients/client-inspector2/src/commands/StartCisSessionCommand.ts index d8076d564bc2..1c182e1efc61 100644 --- a/clients/client-inspector2/src/commands/StartCisSessionCommand.ts +++ b/clients/client-inspector2/src/commands/StartCisSessionCommand.ts @@ -5,7 +5,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; import { Inspector2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Inspector2Client"; -import { StartCisSessionRequest, StartCisSessionResponse } from "../models/models_1"; +import { StartCisSessionRequest } from "../models/models_0"; +import { StartCisSessionResponse } from "../models/models_1"; import { StartCisSession } from "../schemas/schemas_0"; /** diff --git a/clients/client-inspector2/src/models/enums.ts b/clients/client-inspector2/src/models/enums.ts index 984edbd45489..a71fdb92bf86 100644 --- a/clients/client-inspector2/src/models/enums.ts +++ b/clients/client-inspector2/src/models/enums.ts @@ -1,4 +1,77 @@ // smithy-typescript generated code +/** + * @public + * @enum + */ +export const Status = { + DISABLED: "DISABLED", + DISABLING: "DISABLING", + ENABLED: "ENABLED", + ENABLING: "ENABLING", + SUSPENDED: "SUSPENDED", + SUSPENDING: "SUSPENDING", +} as const; +/** + * @public + */ +export type Status = (typeof Status)[keyof typeof Status]; + +/** + * @public + * @enum + */ +export const AggregationFindingType = { + CODE_VULNERABILITY: "CODE_VULNERABILITY", + NETWORK_REACHABILITY: "NETWORK_REACHABILITY", + PACKAGE_VULNERABILITY: "PACKAGE_VULNERABILITY", +} as const; +/** + * @public + */ +export type AggregationFindingType = (typeof AggregationFindingType)[keyof typeof AggregationFindingType]; + +/** + * @public + * @enum + */ +export const AggregationResourceType = { + AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE", + AWS_ECR_CONTAINER_IMAGE: "AWS_ECR_CONTAINER_IMAGE", + AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION", + CODE_REPOSITORY: "CODE_REPOSITORY", +} as const; +/** + * @public + */ +export type AggregationResourceType = (typeof AggregationResourceType)[keyof typeof AggregationResourceType]; + +/** + * @public + * @enum + */ +export const AccountSortBy = { + ALL: "ALL", + CRITICAL: "CRITICAL", + HIGH: "HIGH", +} as const; +/** + * @public + */ +export type AccountSortBy = (typeof AccountSortBy)[keyof typeof AccountSortBy]; + +/** + * @public + * @enum + */ +export const SortOrder = { + ASC: "ASC", + DESC: "DESC", +} as const; +/** + * @public + */ +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; + /** * @public * @enum @@ -11,430 +84,1411 @@ export const CisStringComparison = { /** * @public */ -export type CisStringComparison = (typeof CisStringComparison)[keyof typeof CisStringComparison]; +export type CisStringComparison = (typeof CisStringComparison)[keyof typeof CisStringComparison]; + +/** + * @public + * @enum + */ +export const ErrorCode = { + ACCESS_DENIED: "ACCESS_DENIED", + ACCOUNT_IS_ISOLATED: "ACCOUNT_IS_ISOLATED", + ALREADY_ENABLED: "ALREADY_ENABLED", + BLOCKED_BY_ORGANIZATION_POLICY: "BLOCKED_BY_ORGANIZATION_POLICY", + DISABLE_IN_PROGRESS: "DISABLE_IN_PROGRESS", + DISASSOCIATE_ALL_MEMBERS: "DISASSOCIATE_ALL_MEMBERS", + EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED: "EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED", + EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED: "EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED", + ENABLE_IN_PROGRESS: "ENABLE_IN_PROGRESS", + EVENTBRIDGE_THROTTLED: "EVENTBRIDGE_THROTTLED", + EVENTBRIDGE_UNAVAILABLE: "EVENTBRIDGE_UNAVAILABLE", + INTERNAL_ERROR: "INTERNAL_ERROR", + RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND", + RESOURCE_SCAN_NOT_DISABLED: "RESOURCE_SCAN_NOT_DISABLED", + SSM_THROTTLED: "SSM_THROTTLED", + SSM_UNAVAILABLE: "SSM_UNAVAILABLE", + SUSPEND_IN_PROGRESS: "SUSPEND_IN_PROGRESS", +} as const; +/** + * @public + */ +export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode]; + +/** + * @public + * @enum + */ +export const StringComparison = { + EQUALS: "EQUALS", + NOT_EQUALS: "NOT_EQUALS", + PREFIX: "PREFIX", +} as const; +/** + * @public + */ +export type StringComparison = (typeof StringComparison)[keyof typeof StringComparison]; + +/** + * @public + * @enum + */ +export const AmiSortBy = { + AFFECTED_INSTANCES: "AFFECTED_INSTANCES", + ALL: "ALL", + CRITICAL: "CRITICAL", + HIGH: "HIGH", +} as const; +/** + * @public + */ +export type AmiSortBy = (typeof AmiSortBy)[keyof typeof AmiSortBy]; + +/** + * @public + * @enum + */ +export const AwsEcrContainerSortBy = { + ALL: "ALL", + CRITICAL: "CRITICAL", + HIGH: "HIGH", +} as const; +/** + * @public + */ +export type AwsEcrContainerSortBy = (typeof AwsEcrContainerSortBy)[keyof typeof AwsEcrContainerSortBy]; + +/** + * @public + * @enum + */ +export const CodeRepositorySortBy = { + ALL: "ALL", + CRITICAL: "CRITICAL", + HIGH: "HIGH", +} as const; +/** + * @public + */ +export type CodeRepositorySortBy = (typeof CodeRepositorySortBy)[keyof typeof CodeRepositorySortBy]; + +/** + * @public + * @enum + */ +export const MapComparison = { + EQUALS: "EQUALS", +} as const; +/** + * @public + */ +export type MapComparison = (typeof MapComparison)[keyof typeof MapComparison]; + +/** + * @public + * @enum + */ +export const Ec2InstanceSortBy = { + ALL: "ALL", + CRITICAL: "CRITICAL", + HIGH: "HIGH", + NETWORK_FINDINGS: "NETWORK_FINDINGS", +} as const; +/** + * @public + */ +export type Ec2InstanceSortBy = (typeof Ec2InstanceSortBy)[keyof typeof Ec2InstanceSortBy]; + +/** + * @public + * @enum + */ +export const FindingTypeSortBy = { + ALL: "ALL", + CRITICAL: "CRITICAL", + HIGH: "HIGH", +} as const; +/** + * @public + */ +export type FindingTypeSortBy = (typeof FindingTypeSortBy)[keyof typeof FindingTypeSortBy]; + +/** + * @public + * @enum + */ +export const ImageLayerSortBy = { + ALL: "ALL", + CRITICAL: "CRITICAL", + HIGH: "HIGH", +} as const; +/** + * @public + */ +export type ImageLayerSortBy = (typeof ImageLayerSortBy)[keyof typeof ImageLayerSortBy]; + +/** + * @public + * @enum + */ +export const LambdaFunctionSortBy = { + ALL: "ALL", + CRITICAL: "CRITICAL", + HIGH: "HIGH", +} as const; +/** + * @public + */ +export type LambdaFunctionSortBy = (typeof LambdaFunctionSortBy)[keyof typeof LambdaFunctionSortBy]; + +/** + * @public + * @enum + */ +export const LambdaLayerSortBy = { + ALL: "ALL", + CRITICAL: "CRITICAL", + HIGH: "HIGH", +} as const; +/** + * @public + */ +export type LambdaLayerSortBy = (typeof LambdaLayerSortBy)[keyof typeof LambdaLayerSortBy]; + +/** + * @public + * @enum + */ +export const PackageSortBy = { + ALL: "ALL", + CRITICAL: "CRITICAL", + HIGH: "HIGH", +} as const; +/** + * @public + */ +export type PackageSortBy = (typeof PackageSortBy)[keyof typeof PackageSortBy]; + +/** + * @public + * @enum + */ +export const RepositorySortBy = { + AFFECTED_IMAGES: "AFFECTED_IMAGES", + ALL: "ALL", + CRITICAL: "CRITICAL", + HIGH: "HIGH", +} as const; +/** + * @public + */ +export type RepositorySortBy = (typeof RepositorySortBy)[keyof typeof RepositorySortBy]; + +/** + * @public + * @enum + */ +export const TitleSortBy = { + ALL: "ALL", + CRITICAL: "CRITICAL", + HIGH: "HIGH", +} as const; +/** + * @public + */ +export type TitleSortBy = (typeof TitleSortBy)[keyof typeof TitleSortBy]; + +/** + * @public + * @enum + */ +export const AggregationType = { + ACCOUNT: "ACCOUNT", + AMI: "AMI", + AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE", + AWS_ECR_CONTAINER: "AWS_ECR_CONTAINER", + AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION", + CODE_REPOSITORY: "CODE_REPOSITORY", + FINDING_TYPE: "FINDING_TYPE", + IMAGE_LAYER: "IMAGE_LAYER", + LAMBDA_LAYER: "LAMBDA_LAYER", + PACKAGE: "PACKAGE", + REPOSITORY: "REPOSITORY", + TITLE: "TITLE", +} as const; +/** + * @public + */ +export type AggregationType = (typeof AggregationType)[keyof typeof AggregationType]; + +/** + * @public + * @enum + */ +export const Architecture = { + ARM64: "ARM64", + X86_64: "X86_64", +} as const; +/** + * @public + */ +export type Architecture = (typeof Architecture)[keyof typeof Architecture]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + CANNOT_PARSE: "CANNOT_PARSE", + FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", + OTHER: "OTHER", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const AssociationResultStatusCode = { + ACCESS_DENIED: "ACCESS_DENIED", + INTERNAL_ERROR: "INTERNAL_ERROR", + INVALID_INPUT: "INVALID_INPUT", + QUOTA_EXCEEDED: "QUOTA_EXCEEDED", + RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND", + SCAN_CONFIGURATION_NOT_FOUND: "SCAN_CONFIGURATION_NOT_FOUND", +} as const; +/** + * @public + */ +export type AssociationResultStatusCode = + (typeof AssociationResultStatusCode)[keyof typeof AssociationResultStatusCode]; + +/** + * @public + * @enum + */ +export const PackageType = { + IMAGE: "IMAGE", + ZIP: "ZIP", +} as const; +/** + * @public + */ +export type PackageType = (typeof PackageType)[keyof typeof PackageType]; + +/** + * @public + * @enum + */ +export const Runtime = { + DOTNETCORE_3_1: "DOTNETCORE_3_1", + DOTNET_6: "DOTNET_6", + DOTNET_7: "DOTNET_7", + GO_1_X: "GO_1_X", + JAVA_11: "JAVA_11", + JAVA_17: "JAVA_17", + JAVA_8: "JAVA_8", + JAVA_8_AL2: "JAVA_8_AL2", + NODEJS: "NODEJS", + NODEJS_12_X: "NODEJS_12_X", + NODEJS_14_X: "NODEJS_14_X", + NODEJS_16_X: "NODEJS_16_X", + NODEJS_18_X: "NODEJS_18_X", + PYTHON_3_10: "PYTHON_3_10", + PYTHON_3_11: "PYTHON_3_11", + PYTHON_3_7: "PYTHON_3_7", + PYTHON_3_8: "PYTHON_3_8", + PYTHON_3_9: "PYTHON_3_9", + RUBY_2_7: "RUBY_2_7", + RUBY_3_2: "RUBY_3_2", + UNSUPPORTED: "UNSUPPORTED", +} as const; +/** + * @public + */ +export type Runtime = (typeof Runtime)[keyof typeof Runtime]; + +/** + * @public + * @enum + */ +export const CodeSnippetErrorCode = { + ACCESS_DENIED: "ACCESS_DENIED", + CODE_SNIPPET_NOT_FOUND: "CODE_SNIPPET_NOT_FOUND", + INTERNAL_ERROR: "INTERNAL_ERROR", + INVALID_INPUT: "INVALID_INPUT", +} as const; +/** + * @public + */ +export type CodeSnippetErrorCode = (typeof CodeSnippetErrorCode)[keyof typeof CodeSnippetErrorCode]; + +/** + * @public + * @enum + */ +export const FindingDetailsErrorCode = { + ACCESS_DENIED: "ACCESS_DENIED", + FINDING_DETAILS_NOT_FOUND: "FINDING_DETAILS_NOT_FOUND", + INTERNAL_ERROR: "INTERNAL_ERROR", + INVALID_INPUT: "INVALID_INPUT", +} as const; +/** + * @public + */ +export type FindingDetailsErrorCode = (typeof FindingDetailsErrorCode)[keyof typeof FindingDetailsErrorCode]; + +/** + * @public + * @enum + */ +export const FreeTrialStatus = { + ACTIVE: "ACTIVE", + INACTIVE: "INACTIVE", +} as const; +/** + * @public + */ +export type FreeTrialStatus = (typeof FreeTrialStatus)[keyof typeof FreeTrialStatus]; + +/** + * @public + * @enum + */ +export const FreeTrialType = { + CODE_REPOSITORY: "CODE_REPOSITORY", + EC2: "EC2", + ECR: "ECR", + LAMBDA: "LAMBDA", + LAMBDA_CODE: "LAMBDA_CODE", +} as const; +/** + * @public + */ +export type FreeTrialType = (typeof FreeTrialType)[keyof typeof FreeTrialType]; + +/** + * @public + * @enum + */ +export const FreeTrialInfoErrorCode = { + ACCESS_DENIED: "ACCESS_DENIED", + INTERNAL_ERROR: "INTERNAL_ERROR", +} as const; +/** + * @public + */ +export type FreeTrialInfoErrorCode = (typeof FreeTrialInfoErrorCode)[keyof typeof FreeTrialInfoErrorCode]; + +/** + * @public + * @enum + */ +export const Ec2DeepInspectionStatus = { + ACTIVATED: "ACTIVATED", + DEACTIVATED: "DEACTIVATED", + FAILED: "FAILED", + PENDING: "PENDING", +} as const; +/** + * @public + */ +export type Ec2DeepInspectionStatus = (typeof Ec2DeepInspectionStatus)[keyof typeof Ec2DeepInspectionStatus]; + +/** + * @public + * @enum + */ +export const CisSecurityLevel = { + LEVEL_1: "LEVEL_1", + LEVEL_2: "LEVEL_2", +} as const; +/** + * @public + */ +export type CisSecurityLevel = (typeof CisSecurityLevel)[keyof typeof CisSecurityLevel]; + +/** + * @public + * @enum + */ +export const CisFindingStatus = { + FAILED: "FAILED", + PASSED: "PASSED", + SKIPPED: "SKIPPED", +} as const; +/** + * @public + */ +export type CisFindingStatus = (typeof CisFindingStatus)[keyof typeof CisFindingStatus]; + +/** + * @public + * @enum + */ +export const CisFindingStatusComparison = { + EQUALS: "EQUALS", +} as const; +/** + * @public + */ +export type CisFindingStatusComparison = (typeof CisFindingStatusComparison)[keyof typeof CisFindingStatusComparison]; + +/** + * @public + * @enum + */ +export const CisReportFormat = { + CSV: "CSV", + PDF: "PDF", +} as const; +/** + * @public + */ +export type CisReportFormat = (typeof CisReportFormat)[keyof typeof CisReportFormat]; + +/** + * @public + * @enum + */ +export const CisReportStatus = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type CisReportStatus = (typeof CisReportStatus)[keyof typeof CisReportStatus]; + +/** + * @public + * @enum + */ +export const CisResultStatus = { + FAILED: "FAILED", + PASSED: "PASSED", + SKIPPED: "SKIPPED", +} as const; +/** + * @public + */ +export type CisResultStatus = (typeof CisResultStatus)[keyof typeof CisResultStatus]; + +/** + * @public + * @enum + */ +export const CisResultStatusComparison = { + EQUALS: "EQUALS", +} as const; +/** + * @public + */ +export type CisResultStatusComparison = (typeof CisResultStatusComparison)[keyof typeof CisResultStatusComparison]; + +/** + * @public + * @enum + */ +export const CisRuleStatus = { + ERROR: "ERROR", + FAILED: "FAILED", + INFORMATIONAL: "INFORMATIONAL", + NOT_APPLICABLE: "NOT_APPLICABLE", + NOT_EVALUATED: "NOT_EVALUATED", + PASSED: "PASSED", + UNKNOWN: "UNKNOWN", +} as const; +/** + * @public + */ +export type CisRuleStatus = (typeof CisRuleStatus)[keyof typeof CisRuleStatus]; + +/** + * @public + * @enum + */ +export const CisScanStatus = { + CANCELLED: "CANCELLED", + COMPLETED: "COMPLETED", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", +} as const; +/** + * @public + */ +export type CisScanStatus = (typeof CisScanStatus)[keyof typeof CisScanStatus]; + +/** + * @public + * @enum + */ +export const Day = { + FRI: "FRI", + MON: "MON", + SAT: "SAT", + SUN: "SUN", + THU: "THU", + TUE: "TUE", + WED: "WED", +} as const; +/** + * @public + */ +export type Day = (typeof Day)[keyof typeof Day]; + +/** + * @public + * @enum + */ +export const CisScanConfigurationsSortBy = { + SCAN_CONFIGURATION_ARN: "SCAN_CONFIGURATION_ARN", + SCAN_NAME: "SCAN_NAME", +} as const; +/** + * @public + */ +export type CisScanConfigurationsSortBy = + (typeof CisScanConfigurationsSortBy)[keyof typeof CisScanConfigurationsSortBy]; + +/** + * @public + * @enum + */ +export const CisSecurityLevelComparison = { + EQUALS: "EQUALS", +} as const; +/** + * @public + */ +export type CisSecurityLevelComparison = (typeof CisSecurityLevelComparison)[keyof typeof CisSecurityLevelComparison]; + +/** + * @public + * @enum + */ +export const CisScanResultDetailsSortBy = { + CHECK_ID: "CHECK_ID", + STATUS: "STATUS", +} as const; +/** + * @public + */ +export type CisScanResultDetailsSortBy = (typeof CisScanResultDetailsSortBy)[keyof typeof CisScanResultDetailsSortBy]; + +/** + * @public + * @enum + */ +export const CisScanResultsAggregatedByChecksSortBy = { + CHECK_ID: "CHECK_ID", + FAILED_COUNTS: "FAILED_COUNTS", + PLATFORM: "PLATFORM", + SECURITY_LEVEL: "SECURITY_LEVEL", + TITLE: "TITLE", +} as const; +/** + * @public + */ +export type CisScanResultsAggregatedByChecksSortBy = + (typeof CisScanResultsAggregatedByChecksSortBy)[keyof typeof CisScanResultsAggregatedByChecksSortBy]; + +/** + * @public + * @enum + */ +export const TagComparison = { + EQUALS: "EQUALS", +} as const; +/** + * @public + */ +export type TagComparison = (typeof TagComparison)[keyof typeof TagComparison]; + +/** + * @public + * @enum + */ +export const CisTargetStatusComparison = { + EQUALS: "EQUALS", +} as const; +/** + * @public + */ +export type CisTargetStatusComparison = (typeof CisTargetStatusComparison)[keyof typeof CisTargetStatusComparison]; + +/** + * @public + * @enum + */ +export const CisTargetStatus = { + CANCELLED: "CANCELLED", + COMPLETED: "COMPLETED", + TIMED_OUT: "TIMED_OUT", +} as const; +/** + * @public + */ +export type CisTargetStatus = (typeof CisTargetStatus)[keyof typeof CisTargetStatus]; + +/** + * @public + * @enum + */ +export const CisTargetStatusReason = { + SCAN_IN_PROGRESS: "SCAN_IN_PROGRESS", + SSM_UNMANAGED: "SSM_UNMANAGED", + UNSUPPORTED_OS: "UNSUPPORTED_OS", +} as const; +/** + * @public + */ +export type CisTargetStatusReason = (typeof CisTargetStatusReason)[keyof typeof CisTargetStatusReason]; + +/** + * @public + * @enum + */ +export const CisScanResultsAggregatedByTargetResourceSortBy = { + ACCOUNT_ID: "ACCOUNT_ID", + FAILED_COUNTS: "FAILED_COUNTS", + PLATFORM: "PLATFORM", + RESOURCE_ID: "RESOURCE_ID", + TARGET_STATUS: "TARGET_STATUS", + TARGET_STATUS_REASON: "TARGET_STATUS_REASON", +} as const; +/** + * @public + */ +export type CisScanResultsAggregatedByTargetResourceSortBy = + (typeof CisScanResultsAggregatedByTargetResourceSortBy)[keyof typeof CisScanResultsAggregatedByTargetResourceSortBy]; + +/** + * @public + * @enum + */ +export const CisScanStatusComparison = { + EQUALS: "EQUALS", +} as const; +/** + * @public + */ +export type CisScanStatusComparison = (typeof CisScanStatusComparison)[keyof typeof CisScanStatusComparison]; + +/** + * @public + * @enum + */ +export const CisSortOrder = { + ASC: "ASC", + DESC: "DESC", +} as const; +/** + * @public + */ +export type CisSortOrder = (typeof CisSortOrder)[keyof typeof CisSortOrder]; + +/** + * @public + * @enum + */ +export const CodeRepositoryProviderType = { + GITHUB: "GITHUB", + GITLAB_SELF_MANAGED: "GITLAB_SELF_MANAGED", +} as const; +/** + * @public + */ +export type CodeRepositoryProviderType = (typeof CodeRepositoryProviderType)[keyof typeof CodeRepositoryProviderType]; + +/** + * @public + * @enum + */ +export const ScanStatusReason = { + ACCESS_DENIED: "ACCESS_DENIED", + ACCESS_DENIED_TO_ENCRYPTION_KEY: "ACCESS_DENIED_TO_ENCRYPTION_KEY", + AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED: "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED", + AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED: "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED", + DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED: "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED", + DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED: "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED", + DEEP_INSPECTION_NO_INVENTORY: "DEEP_INSPECTION_NO_INVENTORY", + DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED: "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED", + EC2_INSTANCE_STOPPED: "EC2_INSTANCE_STOPPED", + EXCLUDED_BY_TAG: "EXCLUDED_BY_TAG", + IMAGE_ARCHIVED: "IMAGE_ARCHIVED", + IMAGE_SIZE_EXCEEDED: "IMAGE_SIZE_EXCEEDED", + INTEGRATION_CONNECTION_LOST: "INTEGRATION_CONNECTION_LOST", + INTERNAL_ERROR: "INTERNAL_ERROR", + NO_INVENTORY: "NO_INVENTORY", + NO_RESOURCES_FOUND: "NO_RESOURCES_FOUND", + NO_SCAN_CONFIGURATION_ASSOCIATED: "NO_SCAN_CONFIGURATION_ASSOCIATED", + PENDING_DISABLE: "PENDING_DISABLE", + PENDING_INITIAL_SCAN: "PENDING_INITIAL_SCAN", + PENDING_REVIVAL_SCAN: "PENDING_REVIVAL_SCAN", + RESOURCE_TERMINATED: "RESOURCE_TERMINATED", + SCAN_ELIGIBILITY_EXPIRED: "SCAN_ELIGIBILITY_EXPIRED", + SCAN_FREQUENCY_MANUAL: "SCAN_FREQUENCY_MANUAL", + SCAN_FREQUENCY_SCAN_ON_PUSH: "SCAN_FREQUENCY_SCAN_ON_PUSH", + SCAN_IN_PROGRESS: "SCAN_IN_PROGRESS", + STALE_INVENTORY: "STALE_INVENTORY", + SUCCESSFUL: "SUCCESSFUL", + UNMANAGED_EC2_INSTANCE: "UNMANAGED_EC2_INSTANCE", + UNSUPPORTED_CONFIG_FILE: "UNSUPPORTED_CONFIG_FILE", + UNSUPPORTED_LANGUAGE: "UNSUPPORTED_LANGUAGE", + UNSUPPORTED_MEDIA_TYPE: "UNSUPPORTED_MEDIA_TYPE", + UNSUPPORTED_OS: "UNSUPPORTED_OS", + UNSUPPORTED_RUNTIME: "UNSUPPORTED_RUNTIME", +} as const; +/** + * @public + */ +export type ScanStatusReason = (typeof ScanStatusReason)[keyof typeof ScanStatusReason]; + +/** + * @public + * @enum + */ +export const ScanStatusCode = { + ACTIVE: "ACTIVE", + INACTIVE: "INACTIVE", +} as const; +/** + * @public + */ +export type ScanStatusCode = (typeof ScanStatusCode)[keyof typeof ScanStatusCode]; + +/** + * @public + * @enum + */ +export const RuleSetCategory = { + IAC: "IAC", + SAST: "SAST", + SCA: "SCA", +} as const; +/** + * @public + */ +export type RuleSetCategory = (typeof RuleSetCategory)[keyof typeof RuleSetCategory]; + +/** + * @public + * @enum + */ +export const ContinuousIntegrationScanEvent = { + PULL_REQUEST: "PULL_REQUEST", + PUSH: "PUSH", +} as const; +/** + * @public + */ +export type ContinuousIntegrationScanEvent = + (typeof ContinuousIntegrationScanEvent)[keyof typeof ContinuousIntegrationScanEvent]; + +/** + * @public + * @enum + */ +export const CodeScanStatus = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SKIPPED: "SKIPPED", + SUCCESSFUL: "SUCCESSFUL", +} as const; +/** + * @public + */ +export type CodeScanStatus = (typeof CodeScanStatus)[keyof typeof CodeScanStatus]; + +/** + * @public + * @enum + */ +export const IntegrationStatus = { + ACTIVE: "ACTIVE", + DISABLING: "DISABLING", + INACTIVE: "INACTIVE", + IN_PROGRESS: "IN_PROGRESS", + PENDING: "PENDING", +} as const; +/** + * @public + */ +export type IntegrationStatus = (typeof IntegrationStatus)[keyof typeof IntegrationStatus]; + +/** + * @public + * @enum + */ +export const IntegrationType = { + GITHUB: "GITHUB", + GITLAB_SELF_MANAGED: "GITLAB_SELF_MANAGED", +} as const; +/** + * @public + */ +export type IntegrationType = (typeof IntegrationType)[keyof typeof IntegrationType]; + +/** + * @public + * @enum + */ +export const PeriodicScanFrequency = { + MONTHLY: "MONTHLY", + NEVER: "NEVER", + WEEKLY: "WEEKLY", +} as const; +/** + * @public + */ +export type PeriodicScanFrequency = (typeof PeriodicScanFrequency)[keyof typeof PeriodicScanFrequency]; + +/** + * @public + * @enum + */ +export const ProjectSelectionScope = { + ALL: "ALL", +} as const; +/** + * @public + */ +export type ProjectSelectionScope = (typeof ProjectSelectionScope)[keyof typeof ProjectSelectionScope]; /** * @public * @enum */ -export const AssociationResultStatusCode = { - ACCESS_DENIED: "ACCESS_DENIED", - INTERNAL_ERROR: "INTERNAL_ERROR", - INVALID_INPUT: "INVALID_INPUT", - QUOTA_EXCEEDED: "QUOTA_EXCEEDED", - RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND", - SCAN_CONFIGURATION_NOT_FOUND: "SCAN_CONFIGURATION_NOT_FOUND", +export const ConfigurationLevel = { + ACCOUNT: "ACCOUNT", + ORGANIZATION: "ORGANIZATION", } as const; /** * @public */ -export type AssociationResultStatusCode = - (typeof AssociationResultStatusCode)[keyof typeof AssociationResultStatusCode]; +export type ConfigurationLevel = (typeof ConfigurationLevel)[keyof typeof ConfigurationLevel]; /** * @public * @enum */ -export const CisSecurityLevel = { - LEVEL_1: "LEVEL_1", - LEVEL_2: "LEVEL_2", +export const GroupKey = { + ACCOUNT_ID: "ACCOUNT_ID", + ECR_REPOSITORY_NAME: "ECR_REPOSITORY_NAME", + RESOURCE_TYPE: "RESOURCE_TYPE", + SCAN_STATUS_CODE: "SCAN_STATUS_CODE", + SCAN_STATUS_REASON: "SCAN_STATUS_REASON", } as const; /** * @public */ -export type CisSecurityLevel = (typeof CisSecurityLevel)[keyof typeof CisSecurityLevel]; +export type GroupKey = (typeof GroupKey)[keyof typeof GroupKey]; /** * @public * @enum */ -export const CisFindingStatus = { - FAILED: "FAILED", - PASSED: "PASSED", - SKIPPED: "SKIPPED", +export const CoverageStringComparison = { + EQUALS: "EQUALS", + NOT_EQUALS: "NOT_EQUALS", } as const; /** * @public */ -export type CisFindingStatus = (typeof CisFindingStatus)[keyof typeof CisFindingStatus]; +export type CoverageStringComparison = (typeof CoverageStringComparison)[keyof typeof CoverageStringComparison]; /** * @public * @enum */ -export const CisFindingStatusComparison = { +export const CoverageMapComparison = { EQUALS: "EQUALS", } as const; /** * @public */ -export type CisFindingStatusComparison = (typeof CisFindingStatusComparison)[keyof typeof CisFindingStatusComparison]; +export type CoverageMapComparison = (typeof CoverageMapComparison)[keyof typeof CoverageMapComparison]; /** * @public * @enum */ -export const CisReportFormat = { - CSV: "CSV", - PDF: "PDF", +export const CoverageResourceType = { + AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE", + AWS_ECR_CONTAINER_IMAGE: "AWS_ECR_CONTAINER_IMAGE", + AWS_ECR_REPOSITORY: "AWS_ECR_REPOSITORY", + AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION", + CODE_REPOSITORY: "CODE_REPOSITORY", } as const; /** * @public */ -export type CisReportFormat = (typeof CisReportFormat)[keyof typeof CisReportFormat]; +export type CoverageResourceType = (typeof CoverageResourceType)[keyof typeof CoverageResourceType]; /** * @public * @enum */ -export const CisReportStatus = { - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUCCEEDED: "SUCCEEDED", +export const Ec2Platform = { + LINUX: "LINUX", + MACOS: "MACOS", + UNKNOWN: "UNKNOWN", + WINDOWS: "WINDOWS", } as const; /** * @public */ -export type CisReportStatus = (typeof CisReportStatus)[keyof typeof CisReportStatus]; +export type Ec2Platform = (typeof Ec2Platform)[keyof typeof Ec2Platform]; /** * @public * @enum */ -export const CisResultStatus = { - FAILED: "FAILED", - PASSED: "PASSED", - SKIPPED: "SKIPPED", +export const EcrScanFrequency = { + CONTINUOUS_SCAN: "CONTINUOUS_SCAN", + MANUAL: "MANUAL", + SCAN_ON_PUSH: "SCAN_ON_PUSH", } as const; /** * @public */ -export type CisResultStatus = (typeof CisResultStatus)[keyof typeof CisResultStatus]; +export type EcrScanFrequency = (typeof EcrScanFrequency)[keyof typeof EcrScanFrequency]; /** * @public * @enum */ -export const CisResultStatusComparison = { - EQUALS: "EQUALS", +export const ScanMode = { + EC2_AGENTLESS: "EC2_AGENTLESS", + EC2_SSM_AGENT_BASED: "EC2_SSM_AGENT_BASED", } as const; /** * @public */ -export type CisResultStatusComparison = (typeof CisResultStatusComparison)[keyof typeof CisResultStatusComparison]; +export type ScanMode = (typeof ScanMode)[keyof typeof ScanMode]; /** * @public * @enum */ -export const CisRuleStatus = { - ERROR: "ERROR", - FAILED: "FAILED", - INFORMATIONAL: "INFORMATIONAL", - NOT_APPLICABLE: "NOT_APPLICABLE", - NOT_EVALUATED: "NOT_EVALUATED", - PASSED: "PASSED", - UNKNOWN: "UNKNOWN", +export const ScanType = { + CODE: "CODE", + NETWORK: "NETWORK", + PACKAGE: "PACKAGE", } as const; /** * @public */ -export type CisRuleStatus = (typeof CisRuleStatus)[keyof typeof CisRuleStatus]; +export type ScanType = (typeof ScanType)[keyof typeof ScanType]; /** * @public * @enum */ -export const CisScanStatus = { - CANCELLED: "CANCELLED", - COMPLETED: "COMPLETED", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", +export const FilterAction = { + NONE: "NONE", + SUPPRESS: "SUPPRESS", } as const; /** * @public */ -export type CisScanStatus = (typeof CisScanStatus)[keyof typeof CisScanStatus]; +export type FilterAction = (typeof FilterAction)[keyof typeof FilterAction]; /** * @public * @enum */ -export const Day = { - FRI: "FRI", - MON: "MON", - SAT: "SAT", - SUN: "SUN", - THU: "THU", - TUE: "TUE", - WED: "WED", +export const ReportFormat = { + CSV: "CSV", + JSON: "JSON", } as const; /** * @public */ -export type Day = (typeof Day)[keyof typeof Day]; +export type ReportFormat = (typeof ReportFormat)[keyof typeof ReportFormat]; /** * @public * @enum */ -export const CisScanConfigurationsSortBy = { - SCAN_CONFIGURATION_ARN: "SCAN_CONFIGURATION_ARN", - SCAN_NAME: "SCAN_NAME", +export const SbomReportFormat = { + CYCLONEDX_1_4: "CYCLONEDX_1_4", + SPDX_2_3: "SPDX_2_3", } as const; /** * @public */ -export type CisScanConfigurationsSortBy = - (typeof CisScanConfigurationsSortBy)[keyof typeof CisScanConfigurationsSortBy]; +export type SbomReportFormat = (typeof SbomReportFormat)[keyof typeof SbomReportFormat]; /** * @public * @enum */ -export const CisSecurityLevelComparison = { +export const ResourceStringComparison = { EQUALS: "EQUALS", + NOT_EQUALS: "NOT_EQUALS", } as const; /** * @public */ -export type CisSecurityLevelComparison = (typeof CisSecurityLevelComparison)[keyof typeof CisSecurityLevelComparison]; +export type ResourceStringComparison = (typeof ResourceStringComparison)[keyof typeof ResourceStringComparison]; /** * @public * @enum */ -export const CisScanResultDetailsSortBy = { - CHECK_ID: "CHECK_ID", - STATUS: "STATUS", +export const ResourceMapComparison = { + EQUALS: "EQUALS", } as const; /** * @public */ -export type CisScanResultDetailsSortBy = (typeof CisScanResultDetailsSortBy)[keyof typeof CisScanResultDetailsSortBy]; +export type ResourceMapComparison = (typeof ResourceMapComparison)[keyof typeof ResourceMapComparison]; /** * @public * @enum */ -export const CisScanResultsAggregatedByChecksSortBy = { - CHECK_ID: "CHECK_ID", - FAILED_COUNTS: "FAILED_COUNTS", - PLATFORM: "PLATFORM", - SECURITY_LEVEL: "SECURITY_LEVEL", - TITLE: "TITLE", +export const Currency = { + USD: "USD", } as const; /** * @public */ -export type CisScanResultsAggregatedByChecksSortBy = - (typeof CisScanResultsAggregatedByChecksSortBy)[keyof typeof CisScanResultsAggregatedByChecksSortBy]; +export type Currency = (typeof Currency)[keyof typeof Currency]; /** * @public * @enum */ -export const TagComparison = { - EQUALS: "EQUALS", +export const RelationshipStatus = { + ACCOUNT_SUSPENDED: "ACCOUNT_SUSPENDED", + CANNOT_CREATE_DETECTOR_IN_ORG_MASTER: "CANNOT_CREATE_DETECTOR_IN_ORG_MASTER", + CREATED: "CREATED", + DELETED: "DELETED", + DISABLED: "DISABLED", + EMAIL_VERIFICATION_FAILED: "EMAIL_VERIFICATION_FAILED", + EMAIL_VERIFICATION_IN_PROGRESS: "EMAIL_VERIFICATION_IN_PROGRESS", + ENABLED: "ENABLED", + INVITED: "INVITED", + REGION_DISABLED: "REGION_DISABLED", + REMOVED: "REMOVED", + RESIGNED: "RESIGNED", } as const; /** * @public */ -export type TagComparison = (typeof TagComparison)[keyof typeof TagComparison]; +export type RelationshipStatus = (typeof RelationshipStatus)[keyof typeof RelationshipStatus]; /** * @public * @enum */ -export const CisTargetStatusComparison = { - EQUALS: "EQUALS", +export const DelegatedAdminStatus = { + DISABLE_IN_PROGRESS: "DISABLE_IN_PROGRESS", + ENABLED: "ENABLED", } as const; /** * @public */ -export type CisTargetStatusComparison = (typeof CisTargetStatusComparison)[keyof typeof CisTargetStatusComparison]; +export type DelegatedAdminStatus = (typeof DelegatedAdminStatus)[keyof typeof DelegatedAdminStatus]; /** * @public * @enum */ -export const CisTargetStatus = { - CANCELLED: "CANCELLED", - COMPLETED: "COMPLETED", - TIMED_OUT: "TIMED_OUT", +export const ResourceScanType = { + CODE_REPOSITORY: "CODE_REPOSITORY", + EC2: "EC2", + ECR: "ECR", + LAMBDA: "LAMBDA", + LAMBDA_CODE: "LAMBDA_CODE", } as const; /** * @public */ -export type CisTargetStatus = (typeof CisTargetStatus)[keyof typeof CisTargetStatus]; +export type ResourceScanType = (typeof ResourceScanType)[keyof typeof ResourceScanType]; /** * @public * @enum */ -export const CisTargetStatusReason = { - SCAN_IN_PROGRESS: "SCAN_IN_PROGRESS", - SSM_UNMANAGED: "SSM_UNMANAGED", - UNSUPPORTED_OS: "UNSUPPORTED_OS", +export const Ec2ScanMode = { + EC2_HYBRID: "EC2_HYBRID", + EC2_SSM_AGENT_BASED: "EC2_SSM_AGENT_BASED", } as const; /** * @public */ -export type CisTargetStatusReason = (typeof CisTargetStatusReason)[keyof typeof CisTargetStatusReason]; +export type Ec2ScanMode = (typeof Ec2ScanMode)[keyof typeof Ec2ScanMode]; /** * @public * @enum */ -export const CisScanResultsAggregatedByTargetResourceSortBy = { - ACCOUNT_ID: "ACCOUNT_ID", - FAILED_COUNTS: "FAILED_COUNTS", - PLATFORM: "PLATFORM", - RESOURCE_ID: "RESOURCE_ID", - TARGET_STATUS: "TARGET_STATUS", - TARGET_STATUS_REASON: "TARGET_STATUS_REASON", +export const Ec2ScanModeStatus = { + PENDING: "PENDING", + SUCCESS: "SUCCESS", } as const; /** * @public */ -export type CisScanResultsAggregatedByTargetResourceSortBy = - (typeof CisScanResultsAggregatedByTargetResourceSortBy)[keyof typeof CisScanResultsAggregatedByTargetResourceSortBy]; +export type Ec2ScanModeStatus = (typeof Ec2ScanModeStatus)[keyof typeof Ec2ScanModeStatus]; /** * @public * @enum */ -export const CisScanStatusComparison = { - EQUALS: "EQUALS", +export const EcrPullDateRescanDuration = { + DAYS_14: "DAYS_14", + DAYS_180: "DAYS_180", + DAYS_30: "DAYS_30", + DAYS_60: "DAYS_60", + DAYS_90: "DAYS_90", } as const; /** * @public */ -export type CisScanStatusComparison = (typeof CisScanStatusComparison)[keyof typeof CisScanStatusComparison]; +export type EcrPullDateRescanDuration = (typeof EcrPullDateRescanDuration)[keyof typeof EcrPullDateRescanDuration]; /** * @public * @enum */ -export const CisSortOrder = { - ASC: "ASC", - DESC: "DESC", +export const EcrPullDateRescanMode = { + LAST_IN_USE_AT: "LAST_IN_USE_AT", + LAST_PULL_DATE: "LAST_PULL_DATE", } as const; /** * @public */ -export type CisSortOrder = (typeof CisSortOrder)[keyof typeof CisSortOrder]; +export type EcrPullDateRescanMode = (typeof EcrPullDateRescanMode)[keyof typeof EcrPullDateRescanMode]; /** * @public * @enum */ -export const RuleSetCategory = { - IAC: "IAC", - SAST: "SAST", - SCA: "SCA", +export const EcrRescanDuration = { + DAYS_14: "DAYS_14", + DAYS_180: "DAYS_180", + DAYS_30: "DAYS_30", + DAYS_60: "DAYS_60", + DAYS_90: "DAYS_90", + LIFETIME: "LIFETIME", } as const; /** * @public */ -export type RuleSetCategory = (typeof RuleSetCategory)[keyof typeof RuleSetCategory]; +export type EcrRescanDuration = (typeof EcrRescanDuration)[keyof typeof EcrRescanDuration]; /** * @public * @enum */ -export const ContinuousIntegrationScanEvent = { - PULL_REQUEST: "PULL_REQUEST", - PUSH: "PUSH", +export const EcrRescanDurationStatus = { + FAILED: "FAILED", + PENDING: "PENDING", + SUCCESS: "SUCCESS", } as const; /** * @public */ -export type ContinuousIntegrationScanEvent = - (typeof ContinuousIntegrationScanEvent)[keyof typeof ContinuousIntegrationScanEvent]; +export type EcrRescanDurationStatus = (typeof EcrRescanDurationStatus)[keyof typeof EcrRescanDurationStatus]; /** * @public * @enum */ -export const CodeScanStatus = { +export const ExploitAvailable = { + NO: "NO", + YES: "YES", +} as const; +/** + * @public + */ +export type ExploitAvailable = (typeof ExploitAvailable)[keyof typeof ExploitAvailable]; + +/** + * @public + * @enum + */ +export const ExternalReportStatus = { + CANCELLED: "CANCELLED", FAILED: "FAILED", IN_PROGRESS: "IN_PROGRESS", - SKIPPED: "SKIPPED", - SUCCESSFUL: "SUCCESSFUL", + SUCCEEDED: "SUCCEEDED", } as const; /** * @public */ -export type CodeScanStatus = (typeof CodeScanStatus)[keyof typeof CodeScanStatus]; +export type ExternalReportStatus = (typeof ExternalReportStatus)[keyof typeof ExternalReportStatus]; /** * @public * @enum */ -export const IntegrationStatus = { +export const FixAvailable = { + NO: "NO", + PARTIAL: "PARTIAL", + YES: "YES", +} as const; +/** + * @public + */ +export type FixAvailable = (typeof FixAvailable)[keyof typeof FixAvailable]; + +/** + * @public + * @enum + */ +export const NetworkProtocol = { + TCP: "TCP", + UDP: "UDP", +} as const; +/** + * @public + */ +export type NetworkProtocol = (typeof NetworkProtocol)[keyof typeof NetworkProtocol]; + +/** + * @public + * @enum + */ +export const PackageManager = { + BUNDLER: "BUNDLER", + CARGO: "CARGO", + COMPOSER: "COMPOSER", + DOTNET_CORE: "DOTNET_CORE", + GEMSPEC: "GEMSPEC", + GOBINARY: "GOBINARY", + GOMOD: "GOMOD", + JAR: "JAR", + NODEPKG: "NODEPKG", + NPM: "NPM", + NUGET: "NUGET", + OS: "OS", + PIP: "PIP", + PIPENV: "PIPENV", + POETRY: "POETRY", + POM: "POM", + PYTHONPKG: "PYTHONPKG", + YARN: "YARN", +} as const; +/** + * @public + */ +export type PackageManager = (typeof PackageManager)[keyof typeof PackageManager]; + +/** + * @public + * @enum + */ +export const ResourceType = { + AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE", + AWS_ECR_CONTAINER_IMAGE: "AWS_ECR_CONTAINER_IMAGE", + AWS_ECR_REPOSITORY: "AWS_ECR_REPOSITORY", + AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION", + CODE_REPOSITORY: "CODE_REPOSITORY", +} as const; +/** + * @public + */ +export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; + +/** + * @public + * @enum + */ +export const Severity = { + CRITICAL: "CRITICAL", + HIGH: "HIGH", + INFORMATIONAL: "INFORMATIONAL", + LOW: "LOW", + MEDIUM: "MEDIUM", + UNTRIAGED: "UNTRIAGED", +} as const; +/** + * @public + */ +export type Severity = (typeof Severity)[keyof typeof Severity]; + +/** + * @public + * @enum + */ +export const FindingStatus = { ACTIVE: "ACTIVE", - DISABLING: "DISABLING", - INACTIVE: "INACTIVE", - IN_PROGRESS: "IN_PROGRESS", - PENDING: "PENDING", + CLOSED: "CLOSED", + SUPPRESSED: "SUPPRESSED", } as const; /** * @public */ -export type IntegrationStatus = (typeof IntegrationStatus)[keyof typeof IntegrationStatus]; +export type FindingStatus = (typeof FindingStatus)[keyof typeof FindingStatus]; /** * @public * @enum */ -export const IntegrationType = { - GITHUB: "GITHUB", - GITLAB_SELF_MANAGED: "GITLAB_SELF_MANAGED", +export const FindingType = { + CODE_VULNERABILITY: "CODE_VULNERABILITY", + NETWORK_REACHABILITY: "NETWORK_REACHABILITY", + PACKAGE_VULNERABILITY: "PACKAGE_VULNERABILITY", } as const; /** * @public */ -export type IntegrationType = (typeof IntegrationType)[keyof typeof IntegrationType]; +export type FindingType = (typeof FindingType)[keyof typeof FindingType]; /** * @public * @enum */ -export const PeriodicScanFrequency = { - MONTHLY: "MONTHLY", - NEVER: "NEVER", - WEEKLY: "WEEKLY", +export const ReportingErrorCode = { + BUCKET_NOT_FOUND: "BUCKET_NOT_FOUND", + INCOMPATIBLE_BUCKET_REGION: "INCOMPATIBLE_BUCKET_REGION", + INTERNAL_ERROR: "INTERNAL_ERROR", + INVALID_PERMISSIONS: "INVALID_PERMISSIONS", + MALFORMED_KMS_KEY: "MALFORMED_KMS_KEY", + NO_FINDINGS_FOUND: "NO_FINDINGS_FOUND", } as const; /** * @public */ -export type PeriodicScanFrequency = (typeof PeriodicScanFrequency)[keyof typeof PeriodicScanFrequency]; +export type ReportingErrorCode = (typeof ReportingErrorCode)[keyof typeof ReportingErrorCode]; /** * @public * @enum */ -export const ProjectSelectionScope = { - ALL: "ALL", +export const Service = { + EC2: "EC2", + ECR: "ECR", + LAMBDA: "LAMBDA", } as const; /** * @public */ -export type ProjectSelectionScope = (typeof ProjectSelectionScope)[keyof typeof ProjectSelectionScope]; +export type Service = (typeof Service)[keyof typeof Service]; /** * @public * @enum */ -export const ConfigurationLevel = { - ACCOUNT: "ACCOUNT", - ORGANIZATION: "ORGANIZATION", +export const Operation = { + DISABLE_REPOSITORY: "DISABLE_REPOSITORY", + DISABLE_SCANNING: "DISABLE_SCANNING", + ENABLE_REPOSITORY: "ENABLE_REPOSITORY", + ENABLE_SCANNING: "ENABLE_SCANNING", } as const; /** * @public */ -export type ConfigurationLevel = (typeof ConfigurationLevel)[keyof typeof ConfigurationLevel]; +export type Operation = (typeof Operation)[keyof typeof Operation]; /** * @public @@ -464,6 +1518,66 @@ export const ListCisScansSortBy = { */ export type ListCisScansSortBy = (typeof ListCisScansSortBy)[keyof typeof ListCisScansSortBy]; +/** + * @public + * @enum + */ +export const SortField = { + AWS_ACCOUNT_ID: "AWS_ACCOUNT_ID", + COMPONENT_TYPE: "COMPONENT_TYPE", + ECR_IMAGE_PUSHED_AT: "ECR_IMAGE_PUSHED_AT", + ECR_IMAGE_REGISTRY: "ECR_IMAGE_REGISTRY", + ECR_IMAGE_REPOSITORY_NAME: "ECR_IMAGE_REPOSITORY_NAME", + EPSS_SCORE: "EPSS_SCORE", + FINDING_STATUS: "FINDING_STATUS", + FINDING_TYPE: "FINDING_TYPE", + FIRST_OBSERVED_AT: "FIRST_OBSERVED_AT", + INSPECTOR_SCORE: "INSPECTOR_SCORE", + LAST_OBSERVED_AT: "LAST_OBSERVED_AT", + NETWORK_PROTOCOL: "NETWORK_PROTOCOL", + RESOURCE_TYPE: "RESOURCE_TYPE", + SEVERITY: "SEVERITY", + VENDOR_SEVERITY: "VENDOR_SEVERITY", + VULNERABILITY_ID: "VULNERABILITY_ID", + VULNERABILITY_SOURCE: "VULNERABILITY_SOURCE", +} as const; +/** + * @public + */ +export type SortField = (typeof SortField)[keyof typeof SortField]; + +/** + * @public + * @enum + */ +export const UsageType = { + CODE_REPOSITORY_IAC: "CODE_REPOSITORY_IAC", + CODE_REPOSITORY_SAST: "CODE_REPOSITORY_SAST", + CODE_REPOSITORY_SCA: "CODE_REPOSITORY_SCA", + EC2_AGENTLESS_INSTANCE_HOURS: "EC2_AGENTLESS_INSTANCE_HOURS", + EC2_INSTANCE_HOURS: "EC2_INSTANCE_HOURS", + ECR_INITIAL_SCAN: "ECR_INITIAL_SCAN", + ECR_RESCAN: "ECR_RESCAN", + LAMBDA_FUNCTION_CODE_HOURS: "LAMBDA_FUNCTION_CODE_HOURS", + LAMBDA_FUNCTION_HOURS: "LAMBDA_FUNCTION_HOURS", +} as const; +/** + * @public + */ +export type UsageType = (typeof UsageType)[keyof typeof UsageType]; + +/** + * @public + * @enum + */ +export const VulnerabilitySource = { + NVD: "NVD", +} as const; +/** + * @public + */ +export type VulnerabilitySource = (typeof VulnerabilitySource)[keyof typeof VulnerabilitySource]; + /** * @public * @enum diff --git a/clients/client-inspector2/src/models/errors.ts b/clients/client-inspector2/src/models/errors.ts index 2d2ccb7a42ca..431f86c68174 100644 --- a/clients/client-inspector2/src/models/errors.ts +++ b/clients/client-inspector2/src/models/errors.ts @@ -1,8 +1,9 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; +import { ValidationExceptionReason } from "./enums"; import { Inspector2ServiceException as __BaseException } from "./Inspector2ServiceException"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionField } from "./models_0"; /** *

You do not have sufficient access to perform this action.

diff --git a/clients/client-inspector2/src/models/models_0.ts b/clients/client-inspector2/src/models/models_0.ts index 59dcf8499182..a45ca582fb09 100644 --- a/clients/client-inspector2/src/models/models_0.ts +++ b/clients/client-inspector2/src/models/models_0.ts @@ -1,6 +1,13 @@ // smithy-typescript generated code import { + AccountSortBy, + AggregationFindingType, + AggregationResourceType, + AggregationType, + AmiSortBy, + Architecture, AssociationResultStatusCode, + AwsEcrContainerSortBy, CisFindingStatus, CisFindingStatusComparison, CisReportFormat, @@ -8,7 +15,10 @@ import { CisResultStatus, CisResultStatusComparison, CisRuleStatus, + CisScanConfigurationsSortBy, CisScanResultDetailsSortBy, + CisScanResultsAggregatedByChecksSortBy, + CisScanResultsAggregatedByTargetResourceSortBy, CisScanStatus, CisScanStatusComparison, CisSecurityLevel, @@ -18,36 +28,83 @@ import { CisTargetStatus, CisTargetStatusComparison, CisTargetStatusReason, + CodeRepositoryProviderType, + CodeRepositorySortBy, CodeScanStatus, + CodeSnippetErrorCode, ConfigurationLevel, ContinuousIntegrationScanEvent, + CoverageMapComparison, + CoverageResourceType, + CoverageStringComparison, + Currency, Day, + DelegatedAdminStatus, + Ec2DeepInspectionStatus, + Ec2InstanceSortBy, + Ec2Platform, + Ec2ScanMode, + Ec2ScanModeStatus, + EcrPullDateRescanDuration, + EcrPullDateRescanMode, + EcrRescanDuration, + EcrRescanDurationStatus, + EcrScanFrequency, + ErrorCode, + ExploitAvailable, + ExternalReportStatus, + FilterAction, + FindingDetailsErrorCode, + FindingStatus, + FindingType, + FindingTypeSortBy, + FixAvailable, + FreeTrialInfoErrorCode, + FreeTrialStatus, + FreeTrialType, + GroupKey, + ImageLayerSortBy, IntegrationStatus, IntegrationType, + LambdaFunctionSortBy, + LambdaLayerSortBy, + ListCisScansDetailLevel, + ListCisScansSortBy, + MapComparison, + NetworkProtocol, + Operation, + PackageManager, + PackageSortBy, + PackageType, PeriodicScanFrequency, ProjectSelectionScope, + RelationshipStatus, + ReportFormat, + ReportingErrorCode, + RepositorySortBy, + ResourceMapComparison, + ResourceScanType, + ResourceStringComparison, + ResourceType, RuleSetCategory, + Runtime, + SbomReportFormat, + ScanMode, + ScanStatusCode, + ScanStatusReason, + ScanType, + Service, + Severity, + SortField, + SortOrder, + Status, + StringComparison, TagComparison, + TitleSortBy, + UsageType, + VulnerabilitySource, } from "./enums"; -/** - * @public - * @enum - */ -export const Status = { - DISABLED: "DISABLED", - DISABLING: "DISABLING", - ENABLED: "ENABLED", - ENABLING: "ENABLING", - SUSPENDED: "SUSPENDED", - SUSPENDING: "SUSPENDING", -} as const; - -/** - * @public - */ -export type Status = (typeof Status)[keyof typeof Status]; - /** *

Details the status of Amazon Inspector for each resource type Amazon Inspector scans.

* @public @@ -109,66 +166,6 @@ export interface Account { resourceStatus: ResourceStatus | undefined; } -/** - * @public - * @enum - */ -export const AggregationFindingType = { - CODE_VULNERABILITY: "CODE_VULNERABILITY", - NETWORK_REACHABILITY: "NETWORK_REACHABILITY", - PACKAGE_VULNERABILITY: "PACKAGE_VULNERABILITY", -} as const; - -/** - * @public - */ -export type AggregationFindingType = (typeof AggregationFindingType)[keyof typeof AggregationFindingType]; - -/** - * @public - * @enum - */ -export const AggregationResourceType = { - AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE", - AWS_ECR_CONTAINER_IMAGE: "AWS_ECR_CONTAINER_IMAGE", - AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION", - CODE_REPOSITORY: "CODE_REPOSITORY", -} as const; - -/** - * @public - */ -export type AggregationResourceType = (typeof AggregationResourceType)[keyof typeof AggregationResourceType]; - -/** - * @public - * @enum - */ -export const AccountSortBy = { - ALL: "ALL", - CRITICAL: "CRITICAL", - HIGH: "HIGH", -} as const; - -/** - * @public - */ -export type AccountSortBy = (typeof AccountSortBy)[keyof typeof AccountSortBy]; - -/** - * @public - * @enum - */ -export const SortOrder = { - ASC: "ASC", - DESC: "DESC", -} as const; - -/** - * @public - */ -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; - /** *

An object that contains details about an aggregation response based on * Amazon Web Services accounts.

@@ -278,35 +275,6 @@ export interface CisStringFilter { value: string | undefined; } -/** - * @public - * @enum - */ -export const ErrorCode = { - ACCESS_DENIED: "ACCESS_DENIED", - ACCOUNT_IS_ISOLATED: "ACCOUNT_IS_ISOLATED", - ALREADY_ENABLED: "ALREADY_ENABLED", - BLOCKED_BY_ORGANIZATION_POLICY: "BLOCKED_BY_ORGANIZATION_POLICY", - DISABLE_IN_PROGRESS: "DISABLE_IN_PROGRESS", - DISASSOCIATE_ALL_MEMBERS: "DISASSOCIATE_ALL_MEMBERS", - EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED: "EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED", - EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED: "EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED", - ENABLE_IN_PROGRESS: "ENABLE_IN_PROGRESS", - EVENTBRIDGE_THROTTLED: "EVENTBRIDGE_THROTTLED", - EVENTBRIDGE_UNAVAILABLE: "EVENTBRIDGE_UNAVAILABLE", - INTERNAL_ERROR: "INTERNAL_ERROR", - RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND", - RESOURCE_SCAN_NOT_DISABLED: "RESOURCE_SCAN_NOT_DISABLED", - SSM_THROTTLED: "SSM_THROTTLED", - SSM_UNAVAILABLE: "SSM_UNAVAILABLE", - SUSPEND_IN_PROGRESS: "SUSPEND_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode]; - /** *

An object that described the state of Amazon Inspector scans for an account.

* @public @@ -392,21 +360,6 @@ export interface AccountState { resourceState: ResourceState | undefined; } -/** - * @public - * @enum - */ -export const StringComparison = { - EQUALS: "EQUALS", - NOT_EQUALS: "NOT_EQUALS", - PREFIX: "PREFIX", -} as const; - -/** - * @public - */ -export type StringComparison = (typeof StringComparison)[keyof typeof StringComparison]; - /** *

An object that describes the details of a string filter.

* @public @@ -425,22 +378,6 @@ export interface StringFilter { value: string | undefined; } -/** - * @public - * @enum - */ -export const AmiSortBy = { - AFFECTED_INSTANCES: "AFFECTED_INSTANCES", - ALL: "ALL", - CRITICAL: "CRITICAL", - HIGH: "HIGH", -} as const; - -/** - * @public - */ -export type AmiSortBy = (typeof AmiSortBy)[keyof typeof AmiSortBy]; - /** *

The details that define an aggregation based on Amazon machine images (AMIs).

* @public @@ -501,21 +438,6 @@ export interface DateFilter { endInclusive?: Date | undefined; } -/** - * @public - * @enum - */ -export const AwsEcrContainerSortBy = { - ALL: "ALL", - CRITICAL: "CRITICAL", - HIGH: "HIGH", -} as const; - -/** - * @public - */ -export type AwsEcrContainerSortBy = (typeof AwsEcrContainerSortBy)[keyof typeof AwsEcrContainerSortBy]; - /** *

An aggregation of information about Amazon ECR containers.

* @public @@ -577,21 +499,6 @@ export interface AwsEcrContainerAggregation { inUseCount?: NumberFilter[] | undefined; } -/** - * @public - * @enum - */ -export const CodeRepositorySortBy = { - ALL: "ALL", - CRITICAL: "CRITICAL", - HIGH: "HIGH", -} as const; - -/** - * @public - */ -export type CodeRepositorySortBy = (typeof CodeRepositorySortBy)[keyof typeof CodeRepositorySortBy]; - /** *

The details that define an aggregation based on code repositories.

* @public @@ -629,19 +536,6 @@ export interface CodeRepositoryAggregation { resourceIds?: StringFilter[] | undefined; } -/** - * @public - * @enum - */ -export const MapComparison = { - EQUALS: "EQUALS", -} as const; - -/** - * @public - */ -export type MapComparison = (typeof MapComparison)[keyof typeof MapComparison]; - /** *

An object that describes details of a map filter.

* @public @@ -666,22 +560,6 @@ export interface MapFilter { value?: string | undefined; } -/** - * @public - * @enum - */ -export const Ec2InstanceSortBy = { - ALL: "ALL", - CRITICAL: "CRITICAL", - HIGH: "HIGH", - NETWORK_FINDINGS: "NETWORK_FINDINGS", -} as const; - -/** - * @public - */ -export type Ec2InstanceSortBy = (typeof Ec2InstanceSortBy)[keyof typeof Ec2InstanceSortBy]; - /** *

The details that define an aggregation based on Amazon EC2 instances.

* @public @@ -726,21 +604,6 @@ export interface Ec2InstanceAggregation { sortBy?: Ec2InstanceSortBy | undefined; } -/** - * @public - * @enum - */ -export const FindingTypeSortBy = { - ALL: "ALL", - CRITICAL: "CRITICAL", - HIGH: "HIGH", -} as const; - -/** - * @public - */ -export type FindingTypeSortBy = (typeof FindingTypeSortBy)[keyof typeof FindingTypeSortBy]; - /** *

The details that define an aggregation based on finding type.

* @public @@ -771,21 +634,6 @@ export interface FindingTypeAggregation { sortBy?: FindingTypeSortBy | undefined; } -/** - * @public - * @enum - */ -export const ImageLayerSortBy = { - ALL: "ALL", - CRITICAL: "CRITICAL", - HIGH: "HIGH", -} as const; - -/** - * @public - */ -export type ImageLayerSortBy = (typeof ImageLayerSortBy)[keyof typeof ImageLayerSortBy]; - /** *

The details that define an aggregation based on container image layers.

* @public @@ -822,21 +670,6 @@ export interface ImageLayerAggregation { sortBy?: ImageLayerSortBy | undefined; } -/** - * @public - * @enum - */ -export const LambdaFunctionSortBy = { - ALL: "ALL", - CRITICAL: "CRITICAL", - HIGH: "HIGH", -} as const; - -/** - * @public - */ -export type LambdaFunctionSortBy = (typeof LambdaFunctionSortBy)[keyof typeof LambdaFunctionSortBy]; - /** *

The details that define a findings aggregation based on Amazon Web Services Lambda * functions.

@@ -882,21 +715,6 @@ export interface LambdaFunctionAggregation { sortBy?: LambdaFunctionSortBy | undefined; } -/** - * @public - * @enum - */ -export const LambdaLayerSortBy = { - ALL: "ALL", - CRITICAL: "CRITICAL", - HIGH: "HIGH", -} as const; - -/** - * @public - */ -export type LambdaLayerSortBy = (typeof LambdaLayerSortBy)[keyof typeof LambdaLayerSortBy]; - /** *

The details that define a findings aggregation based on an Amazon Web Services Lambda * function's layers.

@@ -934,21 +752,6 @@ export interface LambdaLayerAggregation { sortBy?: LambdaLayerSortBy | undefined; } -/** - * @public - * @enum - */ -export const PackageSortBy = { - ALL: "ALL", - CRITICAL: "CRITICAL", - HIGH: "HIGH", -} as const; - -/** - * @public - */ -export type PackageSortBy = (typeof PackageSortBy)[keyof typeof PackageSortBy]; - /** *

The details that define an aggregation based on operating system package type.

* @public @@ -973,22 +776,6 @@ export interface PackageAggregation { sortBy?: PackageSortBy | undefined; } -/** - * @public - * @enum - */ -export const RepositorySortBy = { - AFFECTED_IMAGES: "AFFECTED_IMAGES", - ALL: "ALL", - CRITICAL: "CRITICAL", - HIGH: "HIGH", -} as const; - -/** - * @public - */ -export type RepositorySortBy = (typeof RepositorySortBy)[keyof typeof RepositorySortBy]; - /** *

The details that define an aggregation based on repository.

* @public @@ -1013,21 +800,6 @@ export interface RepositoryAggregation { sortBy?: RepositorySortBy | undefined; } -/** - * @public - * @enum - */ -export const TitleSortBy = { - ALL: "ALL", - CRITICAL: "CRITICAL", - HIGH: "HIGH", -} as const; - -/** - * @public - */ -export type TitleSortBy = (typeof TitleSortBy)[keyof typeof TitleSortBy]; - /** *

The details that define an aggregation based on finding title.

* @public @@ -2125,44 +1897,6 @@ export namespace AggregationResponse { } } -/** - * @public - * @enum - */ -export const AggregationType = { - ACCOUNT: "ACCOUNT", - AMI: "AMI", - AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE", - AWS_ECR_CONTAINER: "AWS_ECR_CONTAINER", - AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION", - CODE_REPOSITORY: "CODE_REPOSITORY", - FINDING_TYPE: "FINDING_TYPE", - IMAGE_LAYER: "IMAGE_LAYER", - LAMBDA_LAYER: "LAMBDA_LAYER", - PACKAGE: "PACKAGE", - REPOSITORY: "REPOSITORY", - TITLE: "TITLE", -} as const; - -/** - * @public - */ -export type AggregationType = (typeof AggregationType)[keyof typeof AggregationType]; - -/** - * @public - * @enum - */ -export const Architecture = { - ARM64: "ARM64", - X86_64: "X86_64", -} as const; - -/** - * @public - */ -export type Architecture = (typeof Architecture)[keyof typeof Architecture]; - /** *

Identifies a specific resource in a code repository that will be scanned.

* @public @@ -2259,21 +1993,6 @@ export interface ValidationExceptionField { message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - CANNOT_PARSE: "CANNOT_PARSE", - FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", - OTHER: "OTHER", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** *

The Amazon Web Services Threat Intel Group (ATIG) details for a specific * vulnerability.

@@ -2536,53 +2255,6 @@ export interface AwsEksMetadataDetails { workloadInfoList?: AwsEksWorkloadInfo[] | undefined; } -/** - * @public - * @enum - */ -export const PackageType = { - IMAGE: "IMAGE", - ZIP: "ZIP", -} as const; - -/** - * @public - */ -export type PackageType = (typeof PackageType)[keyof typeof PackageType]; - -/** - * @public - * @enum - */ -export const Runtime = { - DOTNETCORE_3_1: "DOTNETCORE_3_1", - DOTNET_6: "DOTNET_6", - DOTNET_7: "DOTNET_7", - GO_1_X: "GO_1_X", - JAVA_11: "JAVA_11", - JAVA_17: "JAVA_17", - JAVA_8: "JAVA_8", - JAVA_8_AL2: "JAVA_8_AL2", - NODEJS: "NODEJS", - NODEJS_12_X: "NODEJS_12_X", - NODEJS_14_X: "NODEJS_14_X", - NODEJS_16_X: "NODEJS_16_X", - NODEJS_18_X: "NODEJS_18_X", - PYTHON_3_10: "PYTHON_3_10", - PYTHON_3_11: "PYTHON_3_11", - PYTHON_3_7: "PYTHON_3_7", - PYTHON_3_8: "PYTHON_3_8", - PYTHON_3_9: "PYTHON_3_9", - RUBY_2_7: "RUBY_2_7", - RUBY_3_2: "RUBY_3_2", - UNSUPPORTED: "UNSUPPORTED", -} as const; - -/** - * @public - */ -export type Runtime = (typeof Runtime)[keyof typeof Runtime]; - /** *

The VPC security groups and subnets that are attached to an Amazon Web Services Lambda * function. For more information, see VPC Settings.

@@ -2964,22 +2636,6 @@ export interface CodeSnippetResult { suggestedFixes?: SuggestedFix[] | undefined; } -/** - * @public - * @enum - */ -export const CodeSnippetErrorCode = { - ACCESS_DENIED: "ACCESS_DENIED", - CODE_SNIPPET_NOT_FOUND: "CODE_SNIPPET_NOT_FOUND", - INTERNAL_ERROR: "INTERNAL_ERROR", - INVALID_INPUT: "INVALID_INPUT", -} as const; - -/** - * @public - */ -export type CodeSnippetErrorCode = (typeof CodeSnippetErrorCode)[keyof typeof CodeSnippetErrorCode]; - /** *

Contains information about any errors encountered while trying to retrieve a code * snippet.

@@ -3034,22 +2690,6 @@ export interface BatchGetFindingDetailsRequest { findingArns: string[] | undefined; } -/** - * @public - * @enum - */ -export const FindingDetailsErrorCode = { - ACCESS_DENIED: "ACCESS_DENIED", - FINDING_DETAILS_NOT_FOUND: "FINDING_DETAILS_NOT_FOUND", - INTERNAL_ERROR: "INTERNAL_ERROR", - INVALID_INPUT: "INVALID_INPUT", -} as const; - -/** - * @public - */ -export type FindingDetailsErrorCode = (typeof FindingDetailsErrorCode)[keyof typeof FindingDetailsErrorCode]; - /** *

Details about an error encountered when trying to return vulnerability data for a * finding.

@@ -3238,37 +2878,6 @@ export interface BatchGetFreeTrialInfoRequest { accountIds: string[] | undefined; } -/** - * @public - * @enum - */ -export const FreeTrialStatus = { - ACTIVE: "ACTIVE", - INACTIVE: "INACTIVE", -} as const; - -/** - * @public - */ -export type FreeTrialStatus = (typeof FreeTrialStatus)[keyof typeof FreeTrialStatus]; - -/** - * @public - * @enum - */ -export const FreeTrialType = { - CODE_REPOSITORY: "CODE_REPOSITORY", - EC2: "EC2", - ECR: "ECR", - LAMBDA: "LAMBDA", - LAMBDA_CODE: "LAMBDA_CODE", -} as const; - -/** - * @public - */ -export type FreeTrialType = (typeof FreeTrialType)[keyof typeof FreeTrialType]; - /** *

An object that contains information about the Amazon Inspector free trial for an account.

* @public @@ -3317,20 +2926,6 @@ export interface FreeTrialAccountInfo { freeTrialInfo: FreeTrialInfo[] | undefined; } -/** - * @public - * @enum - */ -export const FreeTrialInfoErrorCode = { - ACCESS_DENIED: "ACCESS_DENIED", - INTERNAL_ERROR: "INTERNAL_ERROR", -} as const; - -/** - * @public - */ -export type FreeTrialInfoErrorCode = (typeof FreeTrialInfoErrorCode)[keyof typeof FreeTrialInfoErrorCode]; - /** *

Information about an error received while accessing free trail data for an * account.

@@ -3387,22 +2982,6 @@ export interface BatchGetMemberEc2DeepInspectionStatusRequest { accountIds?: string[] | undefined; } -/** - * @public - * @enum - */ -export const Ec2DeepInspectionStatus = { - ACTIVATED: "ACTIVATED", - DEACTIVATED: "DEACTIVATED", - FAILED: "FAILED", - PENDING: "PENDING", -} as const; - -/** - * @public - */ -export type Ec2DeepInspectionStatus = (typeof Ec2DeepInspectionStatus)[keyof typeof Ec2DeepInspectionStatus]; - /** *

An object that contains details about the state of Amazon Inspector deep inspection for a member * account.

@@ -4551,20 +4130,6 @@ export interface CodeFilePath { endLine: number | undefined; } -/** - * @public - * @enum - */ -export const CodeRepositoryProviderType = { - GITHUB: "GITHUB", - GITLAB_SELF_MANAGED: "GITLAB_SELF_MANAGED", -} as const; - -/** - * @public - */ -export type CodeRepositoryProviderType = (typeof CodeRepositoryProviderType)[keyof typeof CodeRepositoryProviderType]; - /** *

Contains details about a code repository associated with a finding.

* @public @@ -4591,74 +4156,15 @@ export interface CodeRepositoryDetails { } /** + *

The status of the scan.

* @public - * @enum */ -export const ScanStatusReason = { - ACCESS_DENIED: "ACCESS_DENIED", - ACCESS_DENIED_TO_ENCRYPTION_KEY: "ACCESS_DENIED_TO_ENCRYPTION_KEY", - AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED: "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED", - AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED: "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED", - DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED: "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED", - DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED: "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED", - DEEP_INSPECTION_NO_INVENTORY: "DEEP_INSPECTION_NO_INVENTORY", - DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED: "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED", - EC2_INSTANCE_STOPPED: "EC2_INSTANCE_STOPPED", - EXCLUDED_BY_TAG: "EXCLUDED_BY_TAG", - IMAGE_ARCHIVED: "IMAGE_ARCHIVED", - IMAGE_SIZE_EXCEEDED: "IMAGE_SIZE_EXCEEDED", - INTEGRATION_CONNECTION_LOST: "INTEGRATION_CONNECTION_LOST", - INTERNAL_ERROR: "INTERNAL_ERROR", - NO_INVENTORY: "NO_INVENTORY", - NO_RESOURCES_FOUND: "NO_RESOURCES_FOUND", - NO_SCAN_CONFIGURATION_ASSOCIATED: "NO_SCAN_CONFIGURATION_ASSOCIATED", - PENDING_DISABLE: "PENDING_DISABLE", - PENDING_INITIAL_SCAN: "PENDING_INITIAL_SCAN", - PENDING_REVIVAL_SCAN: "PENDING_REVIVAL_SCAN", - RESOURCE_TERMINATED: "RESOURCE_TERMINATED", - SCAN_ELIGIBILITY_EXPIRED: "SCAN_ELIGIBILITY_EXPIRED", - SCAN_FREQUENCY_MANUAL: "SCAN_FREQUENCY_MANUAL", - SCAN_FREQUENCY_SCAN_ON_PUSH: "SCAN_FREQUENCY_SCAN_ON_PUSH", - SCAN_IN_PROGRESS: "SCAN_IN_PROGRESS", - STALE_INVENTORY: "STALE_INVENTORY", - SUCCESSFUL: "SUCCESSFUL", - UNMANAGED_EC2_INSTANCE: "UNMANAGED_EC2_INSTANCE", - UNSUPPORTED_CONFIG_FILE: "UNSUPPORTED_CONFIG_FILE", - UNSUPPORTED_LANGUAGE: "UNSUPPORTED_LANGUAGE", - UNSUPPORTED_MEDIA_TYPE: "UNSUPPORTED_MEDIA_TYPE", - UNSUPPORTED_OS: "UNSUPPORTED_OS", - UNSUPPORTED_RUNTIME: "UNSUPPORTED_RUNTIME", -} as const; - -/** - * @public - */ -export type ScanStatusReason = (typeof ScanStatusReason)[keyof typeof ScanStatusReason]; - -/** - * @public - * @enum - */ -export const ScanStatusCode = { - ACTIVE: "ACTIVE", - INACTIVE: "INACTIVE", -} as const; - -/** - * @public - */ -export type ScanStatusCode = (typeof ScanStatusCode)[keyof typeof ScanStatusCode]; - -/** - *

The status of the scan.

- * @public - */ -export interface ScanStatus { - /** - *

The status code of the scan.

- * @public - */ - statusCode: ScanStatusCode | undefined; +export interface ScanStatus { + /** + *

The status code of the scan.

+ * @public + */ + statusCode: ScanStatusCode | undefined; /** *

The scan status. Possible return values and descriptions are:

@@ -5190,23 +4696,6 @@ export interface ComputePlatform { version?: string | undefined; } -/** - * @public - * @enum - */ -export const GroupKey = { - ACCOUNT_ID: "ACCOUNT_ID", - ECR_REPOSITORY_NAME: "ECR_REPOSITORY_NAME", - RESOURCE_TYPE: "RESOURCE_TYPE", - SCAN_STATUS_CODE: "SCAN_STATUS_CODE", - SCAN_STATUS_REASON: "SCAN_STATUS_REASON", -} as const; - -/** - * @public - */ -export type GroupKey = (typeof GroupKey)[keyof typeof GroupKey]; - /** *

a structure that contains information on the count of resources within a group.

* @public @@ -5243,20 +4732,6 @@ export interface CoverageDateFilter { endInclusive?: Date | undefined; } -/** - * @public - * @enum - */ -export const CoverageStringComparison = { - EQUALS: "EQUALS", - NOT_EQUALS: "NOT_EQUALS", -} as const; - -/** - * @public - */ -export type CoverageStringComparison = (typeof CoverageStringComparison)[keyof typeof CoverageStringComparison]; - /** *

Contains details of a coverage string filter.

* @public @@ -5275,19 +4750,6 @@ export interface CoverageStringFilter { value: string | undefined; } -/** - * @public - * @enum - */ -export const CoverageMapComparison = { - EQUALS: "EQUALS", -} as const; - -/** - * @public - */ -export type CoverageMapComparison = (typeof CoverageMapComparison)[keyof typeof CoverageMapComparison]; - /** *

Contains details of a coverage map filter.

* @public @@ -5475,39 +4937,6 @@ export interface CoverageFilterCriteria { lastScannedCommitId?: CoverageStringFilter[] | undefined; } -/** - * @public - * @enum - */ -export const CoverageResourceType = { - AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE", - AWS_ECR_CONTAINER_IMAGE: "AWS_ECR_CONTAINER_IMAGE", - AWS_ECR_REPOSITORY: "AWS_ECR_REPOSITORY", - AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION", - CODE_REPOSITORY: "CODE_REPOSITORY", -} as const; - -/** - * @public - */ -export type CoverageResourceType = (typeof CoverageResourceType)[keyof typeof CoverageResourceType]; - -/** - * @public - * @enum - */ -export const Ec2Platform = { - LINUX: "LINUX", - MACOS: "MACOS", - UNKNOWN: "UNKNOWN", - WINDOWS: "WINDOWS", -} as const; - -/** - * @public - */ -export type Ec2Platform = (typeof Ec2Platform)[keyof typeof Ec2Platform]; - /** *

Meta data details of an Amazon EC2 instance.

* @public @@ -5563,21 +4992,6 @@ export interface EcrContainerImageMetadata { inUseCount?: number | undefined; } -/** - * @public - * @enum - */ -export const EcrScanFrequency = { - CONTINUOUS_SCAN: "CONTINUOUS_SCAN", - MANUAL: "MANUAL", - SCAN_ON_PUSH: "SCAN_ON_PUSH", -} as const; - -/** - * @public - */ -export type EcrScanFrequency = (typeof EcrScanFrequency)[keyof typeof EcrScanFrequency]; - /** *

Information on the Amazon ECR repository metadata associated with a finding.

* @public @@ -5664,35 +5078,6 @@ export interface ResourceScanMetadata { codeRepository?: CodeRepositoryMetadata | undefined; } -/** - * @public - * @enum - */ -export const ScanMode = { - EC2_AGENTLESS: "EC2_AGENTLESS", - EC2_SSM_AGENT_BASED: "EC2_SSM_AGENT_BASED", -} as const; - -/** - * @public - */ -export type ScanMode = (typeof ScanMode)[keyof typeof ScanMode]; - -/** - * @public - * @enum - */ -export const ScanType = { - CODE: "CODE", - NETWORK: "NETWORK", - PACKAGE: "PACKAGE", -} as const; - -/** - * @public - */ -export type ScanType = (typeof ScanType)[keyof typeof ScanType]; - /** *

An object that contains details about a resource covered by Amazon Inspector.

* @public @@ -5975,20 +5360,6 @@ export interface CreateCodeSecurityScanConfigurationResponse { scanConfigurationArn: string | undefined; } -/** - * @public - * @enum - */ -export const FilterAction = { - NONE: "NONE", - SUPPRESS: "SUPPRESS", -} as const; - -/** - * @public - */ -export type FilterAction = (typeof FilterAction)[keyof typeof FilterAction]; - /** *

An object that describes the details of a port range filter.

* @public @@ -6415,20 +5786,6 @@ export interface CreateFilterResponse { arn: string | undefined; } -/** - * @public - * @enum - */ -export const ReportFormat = { - CSV: "CSV", - JSON: "JSON", -} as const; - -/** - * @public - */ -export type ReportFormat = (typeof ReportFormat)[keyof typeof ReportFormat]; - /** *

Contains details of the Amazon S3 bucket and KMS key used to export findings.

* @public @@ -6487,34 +5844,6 @@ export interface CreateFindingsReportResponse { reportId?: string | undefined; } -/** - * @public - * @enum - */ -export const SbomReportFormat = { - CYCLONEDX_1_4: "CYCLONEDX_1_4", - SPDX_2_3: "SPDX_2_3", -} as const; - -/** - * @public - */ -export type SbomReportFormat = (typeof SbomReportFormat)[keyof typeof SbomReportFormat]; - -/** - * @public - * @enum - */ -export const ResourceStringComparison = { - EQUALS: "EQUALS", - NOT_EQUALS: "NOT_EQUALS", -} as const; - -/** - * @public - */ -export type ResourceStringComparison = (typeof ResourceStringComparison)[keyof typeof ResourceStringComparison]; - /** *

A resource string filter for a software bill of materials report.

* @public @@ -6533,19 +5862,6 @@ export interface ResourceStringFilter { value: string | undefined; } -/** - * @public - * @enum - */ -export const ResourceMapComparison = { - EQUALS: "EQUALS", -} as const; - -/** - * @public - */ -export type ResourceMapComparison = (typeof ResourceMapComparison)[keyof typeof ResourceMapComparison]; - /** *

A resource map filter for a software bill of material report.

* @public @@ -6658,19 +5974,6 @@ export interface CreateSbomExportResponse { reportId?: string | undefined; } -/** - * @public - * @enum - */ -export const Currency = { - USD: "USD", -} as const; - -/** - * @public - */ -export type Currency = (typeof Currency)[keyof typeof Currency]; - /** *

The Common Vulnerability Scoring System (CVSS) version 2 details for the * vulnerability.

@@ -6817,30 +6120,6 @@ export interface CvssScoreDetails { adjustments?: CvssScoreAdjustment[] | undefined; } -/** - * @public - * @enum - */ -export const RelationshipStatus = { - ACCOUNT_SUSPENDED: "ACCOUNT_SUSPENDED", - CANNOT_CREATE_DETECTOR_IN_ORG_MASTER: "CANNOT_CREATE_DETECTOR_IN_ORG_MASTER", - CREATED: "CREATED", - DELETED: "DELETED", - DISABLED: "DISABLED", - EMAIL_VERIFICATION_FAILED: "EMAIL_VERIFICATION_FAILED", - EMAIL_VERIFICATION_IN_PROGRESS: "EMAIL_VERIFICATION_IN_PROGRESS", - ENABLED: "ENABLED", - INVITED: "INVITED", - REGION_DISABLED: "REGION_DISABLED", - REMOVED: "REMOVED", - RESIGNED: "RESIGNED", -} as const; - -/** - * @public - */ -export type RelationshipStatus = (typeof RelationshipStatus)[keyof typeof RelationshipStatus]; - /** *

Details of the Amazon Inspector delegated administrator for your organization.

* @public @@ -6859,20 +6138,6 @@ export interface DelegatedAdmin { relationshipStatus?: RelationshipStatus | undefined; } -/** - * @public - * @enum - */ -export const DelegatedAdminStatus = { - DISABLE_IN_PROGRESS: "DISABLE_IN_PROGRESS", - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type DelegatedAdminStatus = (typeof DelegatedAdminStatus)[keyof typeof DelegatedAdminStatus]; - /** *

Details of the Amazon Inspector delegated administrator for your organization.

* @public @@ -7002,23 +6267,6 @@ export interface DescribeOrganizationConfigurationResponse { maxAccountLimitReached?: boolean | undefined; } -/** - * @public - * @enum - */ -export const ResourceScanType = { - CODE_REPOSITORY: "CODE_REPOSITORY", - EC2: "EC2", - ECR: "ECR", - LAMBDA: "LAMBDA", - LAMBDA_CODE: "LAMBDA_CODE", -} as const; - -/** - * @public - */ -export type ResourceScanType = (typeof ResourceScanType)[keyof typeof ResourceScanType]; - /** * @public */ @@ -7099,20 +6347,6 @@ export interface DisassociateMemberResponse { accountId: string | undefined; } -/** - * @public - * @enum - */ -export const Ec2ScanMode = { - EC2_HYBRID: "EC2_HYBRID", - EC2_SSM_AGENT_BASED: "EC2_SSM_AGENT_BASED", -} as const; - -/** - * @public - */ -export type Ec2ScanMode = (typeof Ec2ScanMode)[keyof typeof Ec2ScanMode]; - /** *

Enables agent-based scanning, which scans instances that are not managed by SSM.

* @public @@ -7125,20 +6359,6 @@ export interface Ec2Configuration { scanMode: Ec2ScanMode | undefined; } -/** - * @public - * @enum - */ -export const Ec2ScanModeStatus = { - PENDING: "PENDING", - SUCCESS: "SUCCESS", -} as const; - -/** - * @public - */ -export type Ec2ScanModeStatus = (typeof Ec2ScanModeStatus)[keyof typeof Ec2ScanModeStatus]; - /** *

The state of your Amazon EC2 scan mode configuration.

* @public @@ -7169,55 +6389,6 @@ export interface Ec2ConfigurationState { scanModeState?: Ec2ScanModeState | undefined; } -/** - * @public - * @enum - */ -export const EcrPullDateRescanDuration = { - DAYS_14: "DAYS_14", - DAYS_180: "DAYS_180", - DAYS_30: "DAYS_30", - DAYS_60: "DAYS_60", - DAYS_90: "DAYS_90", -} as const; - -/** - * @public - */ -export type EcrPullDateRescanDuration = (typeof EcrPullDateRescanDuration)[keyof typeof EcrPullDateRescanDuration]; - -/** - * @public - * @enum - */ -export const EcrPullDateRescanMode = { - LAST_IN_USE_AT: "LAST_IN_USE_AT", - LAST_PULL_DATE: "LAST_PULL_DATE", -} as const; - -/** - * @public - */ -export type EcrPullDateRescanMode = (typeof EcrPullDateRescanMode)[keyof typeof EcrPullDateRescanMode]; - -/** - * @public - * @enum - */ -export const EcrRescanDuration = { - DAYS_14: "DAYS_14", - DAYS_180: "DAYS_180", - DAYS_30: "DAYS_30", - DAYS_60: "DAYS_60", - DAYS_90: "DAYS_90", - LIFETIME: "LIFETIME", -} as const; - -/** - * @public - */ -export type EcrRescanDuration = (typeof EcrRescanDuration)[keyof typeof EcrRescanDuration]; - /** *

Details about the ECR automated re-scan duration setting for your environment.

* @public @@ -7242,21 +6413,6 @@ export interface EcrConfiguration { pullDateRescanMode?: EcrPullDateRescanMode | undefined; } -/** - * @public - * @enum - */ -export const EcrRescanDurationStatus = { - FAILED: "FAILED", - PENDING: "PENDING", - SUCCESS: "SUCCESS", -} as const; - -/** - * @public - */ -export type EcrRescanDurationStatus = (typeof EcrRescanDurationStatus)[keyof typeof EcrRescanDurationStatus]; - /** *

Details about the state of your ECR re-scan duration settings. The ECR re-scan duration * defines how long an ECR image will be actively scanned by Amazon Inspector. When the number of days @@ -7417,36 +6573,6 @@ export interface ExploitabilityDetails { lastKnownExploitAt?: Date | undefined; } -/** - * @public - * @enum - */ -export const ExploitAvailable = { - NO: "NO", - YES: "YES", -} as const; - -/** - * @public - */ -export type ExploitAvailable = (typeof ExploitAvailable)[keyof typeof ExploitAvailable]; - -/** - * @public - * @enum - */ -export const ExternalReportStatus = { - CANCELLED: "CANCELLED", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type ExternalReportStatus = (typeof ExternalReportStatus)[keyof typeof ExternalReportStatus]; - /** *

Details about a filter.

* @public @@ -7513,21 +6639,6 @@ export interface Filter { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const FixAvailable = { - NO: "NO", - PARTIAL: "PARTIAL", - YES: "YES", -} as const; - -/** - * @public - */ -export type FixAvailable = (typeof FixAvailable)[keyof typeof FixAvailable]; - /** *

Information about the Amazon Inspector score given to a finding.

* @public @@ -7595,20 +6706,6 @@ export interface PortRange { end: number | undefined; } -/** - * @public - * @enum - */ -export const NetworkProtocol = { - TCP: "TCP", - UDP: "UDP", -} as const; - -/** - * @public - */ -export type NetworkProtocol = (typeof NetworkProtocol)[keyof typeof NetworkProtocol]; - /** *

Contains the details of a network reachability finding.

* @public @@ -7634,36 +6731,6 @@ export interface NetworkReachabilityDetails { networkPath: NetworkPath | undefined; } -/** - * @public - * @enum - */ -export const PackageManager = { - BUNDLER: "BUNDLER", - CARGO: "CARGO", - COMPOSER: "COMPOSER", - DOTNET_CORE: "DOTNET_CORE", - GEMSPEC: "GEMSPEC", - GOBINARY: "GOBINARY", - GOMOD: "GOMOD", - JAR: "JAR", - NODEPKG: "NODEPKG", - NPM: "NPM", - NUGET: "NUGET", - OS: "OS", - PIP: "PIP", - PIPENV: "PIPENV", - POETRY: "POETRY", - POM: "POM", - PYTHONPKG: "PYTHONPKG", - YARN: "YARN", -} as const; - -/** - * @public - */ -export type PackageManager = (typeof PackageManager)[keyof typeof PackageManager]; - /** *

Information on the vulnerable package identified by a finding.

* @public @@ -7867,23 +6934,6 @@ export interface ResourceDetails { codeRepository?: CodeRepositoryDetails | undefined; } -/** - * @public - * @enum - */ -export const ResourceType = { - AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE", - AWS_ECR_CONTAINER_IMAGE: "AWS_ECR_CONTAINER_IMAGE", - AWS_ECR_REPOSITORY: "AWS_ECR_REPOSITORY", - AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION", - CODE_REPOSITORY: "CODE_REPOSITORY", -} as const; - -/** - * @public - */ -export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; - /** *

Details about the resource involved in a finding.

* @public @@ -7927,55 +6977,7 @@ export interface Resource { } /** - * @public - * @enum - */ -export const Severity = { - CRITICAL: "CRITICAL", - HIGH: "HIGH", - INFORMATIONAL: "INFORMATIONAL", - LOW: "LOW", - MEDIUM: "MEDIUM", - UNTRIAGED: "UNTRIAGED", -} as const; - -/** - * @public - */ -export type Severity = (typeof Severity)[keyof typeof Severity]; - -/** - * @public - * @enum - */ -export const FindingStatus = { - ACTIVE: "ACTIVE", - CLOSED: "CLOSED", - SUPPRESSED: "SUPPRESSED", -} as const; - -/** - * @public - */ -export type FindingStatus = (typeof FindingStatus)[keyof typeof FindingStatus]; - -/** - * @public - * @enum - */ -export const FindingType = { - CODE_VULNERABILITY: "CODE_VULNERABILITY", - NETWORK_REACHABILITY: "NETWORK_REACHABILITY", - PACKAGE_VULNERABILITY: "PACKAGE_VULNERABILITY", -} as const; - -/** - * @public - */ -export type FindingType = (typeof FindingType)[keyof typeof FindingType]; - -/** - *

Details about an Amazon Inspector finding.

+ *

Details about an Amazon Inspector finding.

* @public */ export interface Finding { @@ -8512,3 +7514,1548 @@ export interface GetConfigurationResponse { */ ec2Configuration?: Ec2ConfigurationState | undefined; } + +/** + * @public + */ +export interface GetDelegatedAdminAccountRequest {} + +/** + * @public + */ +export interface GetDelegatedAdminAccountResponse { + /** + *

The Amazon Web Services account ID of the Amazon Inspector delegated administrator.

+ * @public + */ + delegatedAdmin?: DelegatedAdmin | undefined; +} + +/** + * @public + */ +export interface GetEc2DeepInspectionConfigurationRequest {} + +/** + * @public + */ +export interface GetEc2DeepInspectionConfigurationResponse { + /** + *

The Amazon Inspector deep inspection custom paths for your account.

+ * @public + */ + packagePaths?: string[] | undefined; + + /** + *

The Amazon Inspector deep inspection custom paths for your organization.

+ * @public + */ + orgPackagePaths?: string[] | undefined; + + /** + *

The activation status of Amazon Inspector deep inspection in your account.

+ * @public + */ + status?: Ec2DeepInspectionStatus | undefined; + + /** + *

An error message explaining why Amazon Inspector deep inspection configurations could not be + * retrieved for your account.

+ * @public + */ + errorMessage?: string | undefined; +} + +/** + * @public + */ +export interface GetEncryptionKeyRequest { + /** + *

The scan type the key encrypts.

+ * @public + */ + scanType: ScanType | undefined; + + /** + *

The resource type the key encrypts.

+ * @public + */ + resourceType: ResourceType | undefined; +} + +/** + * @public + */ +export interface GetEncryptionKeyResponse { + /** + *

A kms key ID.

+ * @public + */ + kmsKeyId: string | undefined; +} + +/** + * @public + */ +export interface GetFindingsReportStatusRequest { + /** + *

The ID of the report to retrieve the status of.

+ * @public + */ + reportId?: string | undefined; +} + +/** + * @public + */ +export interface GetFindingsReportStatusResponse { + /** + *

The ID of the report.

+ * @public + */ + reportId?: string | undefined; + + /** + *

The status of the report.

+ * @public + */ + status?: ExternalReportStatus | undefined; + + /** + *

The error code of the report.

+ * @public + */ + errorCode?: ReportingErrorCode | undefined; + + /** + *

The error message of the report.

+ * @public + */ + errorMessage?: string | undefined; + + /** + *

The destination of the report.

+ * @public + */ + destination?: Destination | undefined; + + /** + *

The filter criteria associated with the report.

+ * @public + */ + filterCriteria?: FilterCriteria | undefined; +} + +/** + * @public + */ +export interface GetMemberRequest { + /** + *

The Amazon Web Services account ID of the member account to retrieve information on.

+ * @public + */ + accountId: string | undefined; +} + +/** + *

Details on a member account in your organization.

+ * @public + */ +export interface Member { + /** + *

The Amazon Web Services account ID of the member account.

+ * @public + */ + accountId?: string | undefined; + + /** + *

The status of the member account.

+ * @public + */ + relationshipStatus?: RelationshipStatus | undefined; + + /** + *

The Amazon Web Services account ID of the Amazon Inspector delegated administrator for this member + * account.

+ * @public + */ + delegatedAdminAccountId?: string | undefined; + + /** + *

A timestamp showing when the status of this member was last updated.

+ * @public + */ + updatedAt?: Date | undefined; +} + +/** + * @public + */ +export interface GetMemberResponse { + /** + *

Details of the retrieved member account.

+ * @public + */ + member?: Member | undefined; +} + +/** + * @public + */ +export interface GetSbomExportRequest { + /** + *

The report ID of the SBOM export to get details for.

+ * @public + */ + reportId: string | undefined; +} + +/** + * @public + */ +export interface GetSbomExportResponse { + /** + *

The report ID of the software bill of materials (SBOM) report.

+ * @public + */ + reportId?: string | undefined; + + /** + *

The format of the software bill of materials (SBOM) report.

+ * @public + */ + format?: SbomReportFormat | undefined; + + /** + *

The status of the software bill of materials (SBOM) report.

+ * @public + */ + status?: ExternalReportStatus | undefined; + + /** + *

An error code.

+ * @public + */ + errorCode?: ReportingErrorCode | undefined; + + /** + *

An error message.

+ * @public + */ + errorMessage?: string | undefined; + + /** + *

Contains details of the Amazon S3 bucket and KMS key used to export findings

+ * @public + */ + s3Destination?: Destination | undefined; + + /** + *

Contains details about the resource filter criteria used for the software bill of + * materials (SBOM) report.

+ * @public + */ + filterCriteria?: ResourceFilterCriteria | undefined; +} + +/** + * @public + */ +export interface ListAccountPermissionsRequest { + /** + *

The service scan type to check permissions for.

+ * @public + */ + service?: Service | undefined; + + /** + *

The maximum number of results the response can return. If your request would return more + * than the maximum the response will return a nextToken value, use this value + * when you call the action again to get the remaining results.

+ * @public + */ + maxResults?: number | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. If your response returns + * more than the maxResults maximum value it will also return a + * nextToken value. For subsequent calls, use the NextToken value returned + * from the previous request to continue listing results after the first page.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + *

Contains information on the permissions an account has within Amazon Inspector.

+ * @public + */ +export interface Permission { + /** + *

The services that the permissions allow an account to perform the given operations + * for.

+ * @public + */ + service: Service | undefined; + + /** + *

The operations that can be performed with the given permissions.

+ * @public + */ + operation: Operation | undefined; +} + +/** + * @public + */ +export interface ListAccountPermissionsResponse { + /** + *

Contains details on the permissions an account has to configure Amazon Inspector.

+ * @public + */ + permissions: Permission[] | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. For subsequent calls, use + * the NextToken value returned from the previous request to continue listing + * results after the first page.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + *

A list of CIS scan configurations filter criteria.

+ * @public + */ +export interface ListCisScanConfigurationsFilterCriteria { + /** + *

The list of scan name filters.

+ * @public + */ + scanNameFilters?: CisStringFilter[] | undefined; + + /** + *

The list of target resource tag filters.

+ * @public + */ + targetResourceTagFilters?: TagFilter[] | undefined; + + /** + *

The list of scan configuration ARN filters.

+ * @public + */ + scanConfigurationArnFilters?: CisStringFilter[] | undefined; +} + +/** + * @public + */ +export interface ListCisScanConfigurationsRequest { + /** + *

The CIS scan configuration filter criteria.

+ * @public + */ + filterCriteria?: ListCisScanConfigurationsFilterCriteria | undefined; + + /** + *

The CIS scan configuration sort by order.

+ * @public + */ + sortBy?: CisScanConfigurationsSortBy | undefined; + + /** + *

The CIS scan configuration sort order order.

+ * @public + */ + sortOrder?: CisSortOrder | undefined; + + /** + *

The pagination token from a previous request that's used to retrieve the next page of + * results.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

The maximum number of CIS scan configurations to be returned in a single page of + * results.

+ * @public + */ + maxResults?: number | undefined; +} + +/** + * @public + */ +export interface ListCisScanConfigurationsResponse { + /** + *

The CIS scan configuration scan configurations.

+ * @public + */ + scanConfigurations?: CisScanConfiguration[] | undefined; + + /** + *

The pagination token from a previous request that's used to retrieve the next page of + * results.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface ListCisScanResultsAggregatedByChecksRequest { + /** + *

The scan ARN.

+ * @public + */ + scanArn: string | undefined; + + /** + *

The filter criteria.

+ * @public + */ + filterCriteria?: CisScanResultsAggregatedByChecksFilterCriteria | undefined; + + /** + *

The sort by order.

+ * @public + */ + sortBy?: CisScanResultsAggregatedByChecksSortBy | undefined; + + /** + *

The sort order.

+ * @public + */ + sortOrder?: CisSortOrder | undefined; + + /** + *

The pagination token from a previous request that's used to retrieve the next page of + * results.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

The maximum number of scan results aggregated by checks to be returned in a single page + * of results.

+ * @public + */ + maxResults?: number | undefined; +} + +/** + * @public + */ +export interface ListCisScanResultsAggregatedByChecksResponse { + /** + *

The check aggregations.

+ * @public + */ + checkAggregations?: CisCheckAggregation[] | undefined; + + /** + *

The pagination token from a previous request that's used to retrieve the next page of + * results.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface ListCisScanResultsAggregatedByTargetResourceRequest { + /** + *

The scan ARN.

+ * @public + */ + scanArn: string | undefined; + + /** + *

The filter criteria.

+ * @public + */ + filterCriteria?: CisScanResultsAggregatedByTargetResourceFilterCriteria | undefined; + + /** + *

The sort by order.

+ * @public + */ + sortBy?: CisScanResultsAggregatedByTargetResourceSortBy | undefined; + + /** + *

The sort order.

+ * @public + */ + sortOrder?: CisSortOrder | undefined; + + /** + *

The pagination token from a previous request that's used to retrieve the next page of + * results.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

The maximum number of scan results aggregated by a target resource to be returned in a + * single page of results.

+ * @public + */ + maxResults?: number | undefined; +} + +/** + * @public + */ +export interface ListCisScanResultsAggregatedByTargetResourceResponse { + /** + *

The resource aggregations.

+ * @public + */ + targetResourceAggregations?: CisTargetResourceAggregation[] | undefined; + + /** + *

The pagination token from a previous request that's used to retrieve the next page of + * results.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + *

A list of CIS scans filter criteria.

+ * @public + */ +export interface ListCisScansFilterCriteria { + /** + *

The list of scan name filters.

+ * @public + */ + scanNameFilters?: CisStringFilter[] | undefined; + + /** + *

The list of target resource tag filters.

+ * @public + */ + targetResourceTagFilters?: TagFilter[] | undefined; + + /** + *

The list of target resource ID filters.

+ * @public + */ + targetResourceIdFilters?: CisStringFilter[] | undefined; + + /** + *

The list of scan status filters.

+ * @public + */ + scanStatusFilters?: CisScanStatusFilter[] | undefined; + + /** + *

The list of scan at filters.

+ * @public + */ + scanAtFilters?: CisDateFilter[] | undefined; + + /** + *

The list of scan configuration ARN filters.

+ * @public + */ + scanConfigurationArnFilters?: CisStringFilter[] | undefined; + + /** + *

The list of scan ARN filters.

+ * @public + */ + scanArnFilters?: CisStringFilter[] | undefined; + + /** + *

The list of scheduled by filters.

+ * @public + */ + scheduledByFilters?: CisStringFilter[] | undefined; + + /** + *

The list of failed checks filters.

+ * @public + */ + failedChecksFilters?: CisNumberFilter[] | undefined; + + /** + *

The list of target account ID filters.

+ * @public + */ + targetAccountIdFilters?: CisStringFilter[] | undefined; +} + +/** + * @public + */ +export interface ListCisScansRequest { + /** + *

The CIS scan filter criteria.

+ * @public + */ + filterCriteria?: ListCisScansFilterCriteria | undefined; + + /** + *

The detail applied to the CIS scan.

+ * @public + */ + detailLevel?: ListCisScansDetailLevel | undefined; + + /** + *

The CIS scans sort by order.

+ * @public + */ + sortBy?: ListCisScansSortBy | undefined; + + /** + *

The CIS scans sort order.

+ * @public + */ + sortOrder?: CisSortOrder | undefined; + + /** + *

The pagination token from a previous request that's used to retrieve the next page of + * results.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

The maximum number of results to be returned.

+ * @public + */ + maxResults?: number | undefined; +} + +/** + * @public + */ +export interface ListCisScansResponse { + /** + *

The CIS scans.

+ * @public + */ + scans?: CisScan[] | undefined; + + /** + *

The pagination token from a previous request that's used to retrieve the next page of + * results.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface ListCodeSecurityIntegrationsRequest { + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request. For subsequent calls, use the NextToken + * value returned from the previous request to continue listing results after the first + * page.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

The maximum number of results to return in a single call.

+ * @public + */ + maxResults?: number | undefined; +} + +/** + * @public + */ +export interface ListCodeSecurityIntegrationsResponse { + /** + *

A list of code security integration summaries.

+ * @public + */ + integrations?: CodeSecurityIntegrationSummary[] | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request. For subsequent calls, use the NextToken + * value returned from the previous request to continue listing results after the first + * page.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface ListCodeSecurityScanConfigurationAssociationsRequest { + /** + *

The Amazon Resource Name (ARN) of the scan configuration to list associations + * for.

+ * @public + */ + scanConfigurationArn: string | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. For subsequent calls, use + * the NextToken value returned from the previous request to continue listing + * results after the first page.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

The maximum number of results to return in the response. If your request would return + * more than the maximum the response will return a nextToken value, use this + * value when you call the action again to get the remaining results.

+ * @public + */ + maxResults?: number | undefined; +} + +/** + * @public + */ +export interface ListCodeSecurityScanConfigurationAssociationsResponse { + /** + *

A list of associations between code repositories and scan configurations.

+ * @public + */ + associations?: CodeSecurityScanConfigurationAssociationSummary[] | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. For subsequent calls, use + * the NextToken value returned from the previous request to continue listing + * results after the first page.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface ListCodeSecurityScanConfigurationsRequest { + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request. For subsequent calls, use the NextToken + * value returned from the previous request to continue listing results after the first + * page.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

The maximum number of results to return in a single call.

+ * @public + */ + maxResults?: number | undefined; +} + +/** + * @public + */ +export interface ListCodeSecurityScanConfigurationsResponse { + /** + *

A list of code security scan configuration summaries.

+ * @public + */ + configurations?: CodeSecurityScanConfigurationSummary[] | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request. For subsequent calls, use the NextToken + * value returned from the previous request to continue listing results after the first + * page.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface ListCoverageRequest { + /** + *

The maximum number of results the response can return. If your request would return more + * than the maximum the response will return a nextToken value, use this value + * when you call the action again to get the remaining results.

+ * @public + */ + maxResults?: number | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. If your response returns + * more than the maxResults maximum value it will also return a + * nextToken value. For subsequent calls, use the nextToken value + * returned from the previous request to continue listing results after the first page.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

An object that contains details on the filters to apply to the coverage data for your + * environment.

+ * @public + */ + filterCriteria?: CoverageFilterCriteria | undefined; +} + +/** + * @public + */ +export interface ListCoverageResponse { + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. For subsequent calls, use + * the NextToken value returned from the previous request to continue listing + * results after the first page.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

An object that contains details on the covered resources in your environment.

+ * @public + */ + coveredResources?: CoveredResource[] | undefined; +} + +/** + * @public + */ +export interface ListCoverageStatisticsRequest { + /** + *

An object that contains details on the filters to apply to the coverage data for your + * environment.

+ * @public + */ + filterCriteria?: CoverageFilterCriteria | undefined; + + /** + *

The value to group the results by.

+ * @public + */ + groupBy?: GroupKey | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. For subsequent calls, use + * the NextToken value returned from the previous request to continue listing + * results after the first page.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface ListCoverageStatisticsResponse { + /** + *

An array with the number for each group.

+ * @public + */ + countsByGroup?: Counts[] | undefined; + + /** + *

The total number for all groups.

+ * @public + */ + totalCounts: number | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. For subsequent calls, use + * the NextToken value returned from the previous request to continue listing + * results after the first page.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface ListDelegatedAdminAccountsRequest { + /** + *

The maximum number of results the response can return. If your request would return more + * than the maximum the response will return a nextToken value, use this value + * when you call the action again to get the remaining results.

+ * @public + */ + maxResults?: number | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. If your response returns + * more than the maxResults maximum value it will also return a + * nextToken value. For subsequent calls, use the nextToken value + * returned from the previous request to continue listing results after the first page.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface ListDelegatedAdminAccountsResponse { + /** + *

Details of the Amazon Inspector delegated administrator of your organization.

+ * @public + */ + delegatedAdminAccounts?: DelegatedAdminAccount[] | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. For subsequent calls, use + * the NextToken value returned from the previous request to continue listing + * results after the first page.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface ListFiltersRequest { + /** + *

The Amazon resource number (ARN) of the filter.

+ * @public + */ + arns?: string[] | undefined; + + /** + *

The action the filter applies to matched findings.

+ * @public + */ + action?: FilterAction | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. If your response returns + * more than the maxResults maximum value it will also return a + * nextToken value. For subsequent calls, use the nextToken value + * returned from the previous request to continue listing results after the first page.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

The maximum number of results the response can return. If your request would return more + * than the maximum the response will return a nextToken value, use this value + * when you call the action again to get the remaining results.

+ * @public + */ + maxResults?: number | undefined; +} + +/** + * @public + */ +export interface ListFiltersResponse { + /** + *

Contains details on the filters associated with your account.

+ * @public + */ + filters: Filter[] | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. For subsequent calls, use + * the NextToken value returned from the previous request to continue listing + * results after the first page.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface ListFindingAggregationsRequest { + /** + *

The type of the aggregation request.

+ * @public + */ + aggregationType: AggregationType | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. If your response returns + * more than the maxResults maximum value it will also return a + * nextToken value. For subsequent calls, use the nextToken value + * returned from the previous request to continue listing results after the first page.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

The maximum number of results the response can return. If your request would return more + * than the maximum the response will return a nextToken value, use this value + * when you call the action again to get the remaining results.

+ * @public + */ + maxResults?: number | undefined; + + /** + *

The Amazon Web Services account IDs to retrieve finding aggregation data for.

+ * @public + */ + accountIds?: StringFilter[] | undefined; + + /** + *

Details of the aggregation request that is used to filter your aggregation + * results.

+ * @public + */ + aggregationRequest?: AggregationRequest | undefined; +} + +/** + * @public + */ +export interface ListFindingAggregationsResponse { + /** + *

The type of aggregation to perform.

+ * @public + */ + aggregationType: AggregationType | undefined; + + /** + *

Objects that contain the results of an aggregation operation.

+ * @public + */ + responses?: AggregationResponse[] | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. For subsequent calls, use + * the NextToken value returned from the previous request to continue listing + * results after the first page.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + *

Details about the criteria used to sort finding results.

+ * @public + */ +export interface SortCriteria { + /** + *

The finding detail field by which results are sorted.

+ * @public + */ + field: SortField | undefined; + + /** + *

The order by which findings are sorted.

+ * @public + */ + sortOrder: SortOrder | undefined; +} + +/** + * @public + */ +export interface ListFindingsRequest { + /** + *

The maximum number of results the response can return. If your request would return more + * than the maximum the response will return a nextToken value, use this value + * when you call the action again to get the remaining results.

+ * @public + */ + maxResults?: number | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. If your response returns + * more than the maxResults maximum value it will also return a + * nextToken value. For subsequent calls, use the nextToken value + * returned from the previous request to continue listing results after the first page.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

Details on the filters to apply to your finding results.

+ * @public + */ + filterCriteria?: FilterCriteria | undefined; + + /** + *

Details on the sort criteria to apply to your finding results.

+ * @public + */ + sortCriteria?: SortCriteria | undefined; +} + +/** + * @public + */ +export interface ListFindingsResponse { + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. For subsequent calls, use + * the NextToken value returned from the previous request to continue listing + * results after the first page.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

Contains details on the findings in your environment.

+ * @public + */ + findings?: Finding[] | undefined; +} + +/** + * @public + */ +export interface ListMembersRequest { + /** + *

Specifies whether to list only currently associated members if True or to + * list all members within the organization if False.

+ * @public + */ + onlyAssociated?: boolean | undefined; + + /** + *

The maximum number of results the response can return. If your request would return more + * than the maximum the response will return a nextToken value, use this value + * when you call the action again to get the remaining results.

+ * @public + */ + maxResults?: number | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. If your response returns + * more than the maxResults maximum value it will also return a + * nextToken value. For subsequent calls, use the nextToken value + * returned from the previous request to continue listing results after the first page.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface ListMembersResponse { + /** + *

An object that contains details for each member account.

+ * @public + */ + members?: Member[] | undefined; + + /** + *

The pagination parameter to be used on the next list operation to retrieve more + * items.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface ListTagsForResourceRequest { + /** + *

The Amazon resource number (ARN) of the resource to list tags of.

+ * @public + */ + resourceArn: string | undefined; +} + +/** + * @public + */ +export interface ListTagsForResourceResponse { + /** + *

The tags associated with the resource.

+ * @public + */ + tags?: Record | undefined; +} + +/** + * @public + */ +export interface ListUsageTotalsRequest { + /** + *

The maximum number of results the response can return. If your request would return more + * than the maximum the response will return a nextToken value, use this value + * when you call the action again to get the remaining results.

+ * @public + */ + maxResults?: number | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. If your response returns + * more than the maxResults maximum value it will also return a + * nextToken value. For subsequent calls, use the nextToken value + * returned from the previous request to continue listing results after the first page.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

The Amazon Web Services account IDs to retrieve usage totals for.

+ * @public + */ + accountIds?: string[] | undefined; +} + +/** + *

Contains usage information about the cost of Amazon Inspector operation.

+ * @public + */ +export interface Usage { + /** + *

The type scan.

+ * @public + */ + type?: UsageType | undefined; + + /** + *

The total of usage.

+ * @public + */ + total?: number | undefined; + + /** + *

The estimated monthly cost of Amazon Inspector.

+ * @public + */ + estimatedMonthlyCost?: number | undefined; + + /** + *

The currency type used when calculating usage data.

+ * @public + */ + currency?: Currency | undefined; +} + +/** + *

The total of usage for an account ID.

+ * @public + */ +export interface UsageTotal { + /** + *

The account ID of the account that usage data was retrieved for.

+ * @public + */ + accountId?: string | undefined; + + /** + *

An object representing the total usage for an account.

+ * @public + */ + usage?: Usage[] | undefined; +} + +/** + * @public + */ +export interface ListUsageTotalsResponse { + /** + *

The pagination parameter to be used on the next list operation to retrieve more + * items.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

An object with details on the total usage for the requested account.

+ * @public + */ + totals?: UsageTotal[] | undefined; +} + +/** + * @public + */ +export interface ResetEncryptionKeyRequest { + /** + *

The scan type the key encrypts.

+ * @public + */ + scanType: ScanType | undefined; + + /** + *

The resource type the key encrypts.

+ * @public + */ + resourceType: ResourceType | undefined; +} + +/** + * @public + */ +export interface ResetEncryptionKeyResponse {} + +/** + *

Details on the criteria used to define the filter for a vulnerability search.

+ * @public + */ +export interface SearchVulnerabilitiesFilterCriteria { + /** + *

The IDs for specific vulnerabilities.

+ * @public + */ + vulnerabilityIds: string[] | undefined; +} + +/** + * @public + */ +export interface SearchVulnerabilitiesRequest { + /** + *

The criteria used to filter the results of a vulnerability search.

+ * @public + */ + filterCriteria: SearchVulnerabilitiesFilterCriteria | undefined; + + /** + *

A token to use for paginating results that are returned in the response. Set the value + * of this parameter to null for the first request to a list action. For subsequent calls, use + * the NextToken value returned from the previous request to continue listing + * results after the first page.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + *

Contains details about a specific vulnerability Amazon Inspector can detect.

+ * @public + */ +export interface Vulnerability { + /** + *

The ID for the specific vulnerability.

+ * @public + */ + id: string | undefined; + + /** + *

The Common Weakness Enumeration (CWE) associated with the vulnerability.

+ * @public + */ + cwes?: string[] | undefined; + + /** + *

An object that contains the Cybersecurity and Infrastructure Security Agency (CISA) + * details for the vulnerability.

+ * @public + */ + cisaData?: CisaData | undefined; + + /** + *

The source of the vulnerability information. Possible results are RHEL, + * AMAZON_CVE, DEBIAN or NVD.

+ * @public + */ + source?: VulnerabilitySource | undefined; + + /** + *

A description of the vulnerability.

+ * @public + */ + description?: string | undefined; + + /** + *

An object that contains information about the Amazon Web Services Threat Intel Group + * (ATIG) details for the vulnerability.

+ * @public + */ + atigData?: AtigData | undefined; + + /** + *

The severity assigned by the vendor.

+ * @public + */ + vendorSeverity?: string | undefined; + + /** + *

An object that contains the Common Vulnerability Scoring System (CVSS) Version 4 details for the vulnerability.

+ * @public + */ + cvss4?: Cvss4 | undefined; + + /** + *

An object that contains the Common Vulnerability Scoring System (CVSS) Version 3 details + * for the vulnerability.

+ * @public + */ + cvss3?: Cvss3 | undefined; + + /** + *

A list of related vulnerabilities.

+ * @public + */ + relatedVulnerabilities?: string[] | undefined; + + /** + *

An object that contains the Common Vulnerability Scoring System (CVSS) Version 2 details + * for the vulnerability.

+ * @public + */ + cvss2?: Cvss2 | undefined; + + /** + *

The date and time when the vendor created this vulnerability.

+ * @public + */ + vendorCreatedAt?: Date | undefined; + + /** + *

The date and time when the vendor last updated this vulnerability.

+ * @public + */ + vendorUpdatedAt?: Date | undefined; + + /** + *

A link to the official source material for this vulnerability.

+ * @public + */ + sourceUrl?: string | undefined; + + /** + *

Links to various resources with more information on this vulnerability.

+ * @public + */ + referenceUrls?: string[] | undefined; + + /** + *

An object that contains details on when the exploit was observed.

+ * @public + */ + exploitObserved?: ExploitObserved | undefined; + + /** + *

Platforms that the vulnerability can be detected on.

+ * @public + */ + detectionPlatforms?: string[] | undefined; + + /** + *

An object that contains the Exploit Prediction Scoring System (EPSS) score for a + * vulnerability.

+ * @public + */ + epss?: Epss | undefined; +} + +/** + * @public + */ +export interface SearchVulnerabilitiesResponse { + /** + *

Details about the listed vulnerability.

+ * @public + */ + vulnerabilities: Vulnerability[] | undefined; + + /** + *

The pagination parameter to be used on the next list operation to retrieve more + * items.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface SendCisSessionHealthRequest { + /** + *

A unique identifier for the scan job.

+ * @public + */ + scanJobId: string | undefined; + + /** + *

The unique token that identifies the CIS session.

+ * @public + */ + sessionToken: string | undefined; +} + +/** + * @public + */ +export interface SendCisSessionHealthResponse {} + +/** + * @public + */ +export interface SendCisSessionTelemetryRequest { + /** + *

A unique identifier for the scan job.

+ * @public + */ + scanJobId: string | undefined; + + /** + *

The unique token that identifies the CIS session.

+ * @public + */ + sessionToken: string | undefined; + + /** + *

The CIS session telemetry messages.

+ * @public + */ + messages: CisSessionMessage[] | undefined; +} + +/** + * @public + */ +export interface SendCisSessionTelemetryResponse {} + +/** + *

The start CIS session message.

+ * @public + */ +export interface StartCisSessionMessage { + /** + *

The unique token that identifies the CIS session.

+ * @public + */ + sessionToken: string | undefined; +} + +/** + * @public + */ +export interface StartCisSessionRequest { + /** + *

A unique identifier for the scan job.

+ * @public + */ + scanJobId: string | undefined; + + /** + *

The start CIS session message.

+ * @public + */ + message: StartCisSessionMessage | undefined; +} diff --git a/clients/client-inspector2/src/models/models_1.ts b/clients/client-inspector2/src/models/models_1.ts index afac7ae4645b..789853e0d9ea 100644 --- a/clients/client-inspector2/src/models/models_1.ts +++ b/clients/client-inspector2/src/models/models_1.ts @@ -1,1730 +1,26 @@ // smithy-typescript generated code import { - CisScanConfigurationsSortBy, - CisScanResultsAggregatedByChecksSortBy, - CisScanResultsAggregatedByTargetResourceSortBy, CisSecurityLevel, - CisSortOrder, CodeScanStatus, + Ec2DeepInspectionStatus, + FilterAction, IntegrationStatus, - ListCisScansDetailLevel, - ListCisScansSortBy, + ResourceType, + ScanType, StopCisSessionStatus, } from "./enums"; import { - AggregationRequest, - AggregationResponse, - AggregationType, - AtigData, AutoEnable, - CisaData, - CisCheckAggregation, - CisDateFilter, - CisNumberFilter, - CisScan, - CisScanConfiguration, - CisScanResultsAggregatedByChecksFilterCriteria, - CisScanResultsAggregatedByTargetResourceFilterCriteria, - CisScanStatusFilter, - CisSessionMessage, - CisStringFilter, - CisTargetResourceAggregation, - CodeSecurityIntegrationSummary, CodeSecurityResource, CodeSecurityScanConfiguration, - CodeSecurityScanConfigurationAssociationSummary, - CodeSecurityScanConfigurationSummary, ComputePlatform, - Counts, - CoverageFilterCriteria, - CoveredResource, - Currency, - Cvss2, - Cvss3, - Cvss4, - DelegatedAdmin, - DelegatedAdminAccount, - Destination, Ec2Configuration, - Ec2DeepInspectionStatus, EcrConfiguration, - Epss, - ExploitObserved, - ExternalReportStatus, - Filter, - FilterAction, FilterCriteria, - Finding, - GroupKey, - RelationshipStatus, - ResourceFilterCriteria, - ResourceType, - SbomReportFormat, - ScanType, Schedule, - SortOrder, - StringFilter, - TagFilter, } from "./models_0"; -/** - * @public - */ -export interface GetDelegatedAdminAccountRequest {} - -/** - * @public - */ -export interface GetDelegatedAdminAccountResponse { - /** - *

The Amazon Web Services account ID of the Amazon Inspector delegated administrator.

- * @public - */ - delegatedAdmin?: DelegatedAdmin | undefined; -} - -/** - * @public - */ -export interface GetEc2DeepInspectionConfigurationRequest {} - -/** - * @public - */ -export interface GetEc2DeepInspectionConfigurationResponse { - /** - *

The Amazon Inspector deep inspection custom paths for your account.

- * @public - */ - packagePaths?: string[] | undefined; - - /** - *

The Amazon Inspector deep inspection custom paths for your organization.

- * @public - */ - orgPackagePaths?: string[] | undefined; - - /** - *

The activation status of Amazon Inspector deep inspection in your account.

- * @public - */ - status?: Ec2DeepInspectionStatus | undefined; - - /** - *

An error message explaining why Amazon Inspector deep inspection configurations could not be - * retrieved for your account.

- * @public - */ - errorMessage?: string | undefined; -} - -/** - * @public - */ -export interface GetEncryptionKeyRequest { - /** - *

The scan type the key encrypts.

- * @public - */ - scanType: ScanType | undefined; - - /** - *

The resource type the key encrypts.

- * @public - */ - resourceType: ResourceType | undefined; -} - -/** - * @public - */ -export interface GetEncryptionKeyResponse { - /** - *

A kms key ID.

- * @public - */ - kmsKeyId: string | undefined; -} - -/** - * @public - */ -export interface GetFindingsReportStatusRequest { - /** - *

The ID of the report to retrieve the status of.

- * @public - */ - reportId?: string | undefined; -} - -/** - * @public - * @enum - */ -export const ReportingErrorCode = { - BUCKET_NOT_FOUND: "BUCKET_NOT_FOUND", - INCOMPATIBLE_BUCKET_REGION: "INCOMPATIBLE_BUCKET_REGION", - INTERNAL_ERROR: "INTERNAL_ERROR", - INVALID_PERMISSIONS: "INVALID_PERMISSIONS", - MALFORMED_KMS_KEY: "MALFORMED_KMS_KEY", - NO_FINDINGS_FOUND: "NO_FINDINGS_FOUND", -} as const; - -/** - * @public - */ -export type ReportingErrorCode = (typeof ReportingErrorCode)[keyof typeof ReportingErrorCode]; - -/** - * @public - */ -export interface GetFindingsReportStatusResponse { - /** - *

The ID of the report.

- * @public - */ - reportId?: string | undefined; - - /** - *

The status of the report.

- * @public - */ - status?: ExternalReportStatus | undefined; - - /** - *

The error code of the report.

- * @public - */ - errorCode?: ReportingErrorCode | undefined; - - /** - *

The error message of the report.

- * @public - */ - errorMessage?: string | undefined; - - /** - *

The destination of the report.

- * @public - */ - destination?: Destination | undefined; - - /** - *

The filter criteria associated with the report.

- * @public - */ - filterCriteria?: FilterCriteria | undefined; -} - -/** - * @public - */ -export interface GetMemberRequest { - /** - *

The Amazon Web Services account ID of the member account to retrieve information on.

- * @public - */ - accountId: string | undefined; -} - -/** - *

Details on a member account in your organization.

- * @public - */ -export interface Member { - /** - *

The Amazon Web Services account ID of the member account.

- * @public - */ - accountId?: string | undefined; - - /** - *

The status of the member account.

- * @public - */ - relationshipStatus?: RelationshipStatus | undefined; - - /** - *

The Amazon Web Services account ID of the Amazon Inspector delegated administrator for this member - * account.

- * @public - */ - delegatedAdminAccountId?: string | undefined; - - /** - *

A timestamp showing when the status of this member was last updated.

- * @public - */ - updatedAt?: Date | undefined; -} - -/** - * @public - */ -export interface GetMemberResponse { - /** - *

Details of the retrieved member account.

- * @public - */ - member?: Member | undefined; -} - -/** - * @public - */ -export interface GetSbomExportRequest { - /** - *

The report ID of the SBOM export to get details for.

- * @public - */ - reportId: string | undefined; -} - -/** - * @public - */ -export interface GetSbomExportResponse { - /** - *

The report ID of the software bill of materials (SBOM) report.

- * @public - */ - reportId?: string | undefined; - - /** - *

The format of the software bill of materials (SBOM) report.

- * @public - */ - format?: SbomReportFormat | undefined; - - /** - *

The status of the software bill of materials (SBOM) report.

- * @public - */ - status?: ExternalReportStatus | undefined; - - /** - *

An error code.

- * @public - */ - errorCode?: ReportingErrorCode | undefined; - - /** - *

An error message.

- * @public - */ - errorMessage?: string | undefined; - - /** - *

Contains details of the Amazon S3 bucket and KMS key used to export findings

- * @public - */ - s3Destination?: Destination | undefined; - - /** - *

Contains details about the resource filter criteria used for the software bill of - * materials (SBOM) report.

- * @public - */ - filterCriteria?: ResourceFilterCriteria | undefined; -} - -/** - * @public - * @enum - */ -export const Service = { - EC2: "EC2", - ECR: "ECR", - LAMBDA: "LAMBDA", -} as const; - -/** - * @public - */ -export type Service = (typeof Service)[keyof typeof Service]; - -/** - * @public - */ -export interface ListAccountPermissionsRequest { - /** - *

The service scan type to check permissions for.

- * @public - */ - service?: Service | undefined; - - /** - *

The maximum number of results the response can return. If your request would return more - * than the maximum the response will return a nextToken value, use this value - * when you call the action again to get the remaining results.

- * @public - */ - maxResults?: number | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. If your response returns - * more than the maxResults maximum value it will also return a - * nextToken value. For subsequent calls, use the NextToken value returned - * from the previous request to continue listing results after the first page.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - * @enum - */ -export const Operation = { - DISABLE_REPOSITORY: "DISABLE_REPOSITORY", - DISABLE_SCANNING: "DISABLE_SCANNING", - ENABLE_REPOSITORY: "ENABLE_REPOSITORY", - ENABLE_SCANNING: "ENABLE_SCANNING", -} as const; - -/** - * @public - */ -export type Operation = (typeof Operation)[keyof typeof Operation]; - -/** - *

Contains information on the permissions an account has within Amazon Inspector.

- * @public - */ -export interface Permission { - /** - *

The services that the permissions allow an account to perform the given operations - * for.

- * @public - */ - service: Service | undefined; - - /** - *

The operations that can be performed with the given permissions.

- * @public - */ - operation: Operation | undefined; -} - -/** - * @public - */ -export interface ListAccountPermissionsResponse { - /** - *

Contains details on the permissions an account has to configure Amazon Inspector.

- * @public - */ - permissions: Permission[] | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. For subsequent calls, use - * the NextToken value returned from the previous request to continue listing - * results after the first page.

- * @public - */ - nextToken?: string | undefined; -} - -/** - *

A list of CIS scan configurations filter criteria.

- * @public - */ -export interface ListCisScanConfigurationsFilterCriteria { - /** - *

The list of scan name filters.

- * @public - */ - scanNameFilters?: CisStringFilter[] | undefined; - - /** - *

The list of target resource tag filters.

- * @public - */ - targetResourceTagFilters?: TagFilter[] | undefined; - - /** - *

The list of scan configuration ARN filters.

- * @public - */ - scanConfigurationArnFilters?: CisStringFilter[] | undefined; -} - -/** - * @public - */ -export interface ListCisScanConfigurationsRequest { - /** - *

The CIS scan configuration filter criteria.

- * @public - */ - filterCriteria?: ListCisScanConfigurationsFilterCriteria | undefined; - - /** - *

The CIS scan configuration sort by order.

- * @public - */ - sortBy?: CisScanConfigurationsSortBy | undefined; - - /** - *

The CIS scan configuration sort order order.

- * @public - */ - sortOrder?: CisSortOrder | undefined; - - /** - *

The pagination token from a previous request that's used to retrieve the next page of - * results.

- * @public - */ - nextToken?: string | undefined; - - /** - *

The maximum number of CIS scan configurations to be returned in a single page of - * results.

- * @public - */ - maxResults?: number | undefined; -} - -/** - * @public - */ -export interface ListCisScanConfigurationsResponse { - /** - *

The CIS scan configuration scan configurations.

- * @public - */ - scanConfigurations?: CisScanConfiguration[] | undefined; - - /** - *

The pagination token from a previous request that's used to retrieve the next page of - * results.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface ListCisScanResultsAggregatedByChecksRequest { - /** - *

The scan ARN.

- * @public - */ - scanArn: string | undefined; - - /** - *

The filter criteria.

- * @public - */ - filterCriteria?: CisScanResultsAggregatedByChecksFilterCriteria | undefined; - - /** - *

The sort by order.

- * @public - */ - sortBy?: CisScanResultsAggregatedByChecksSortBy | undefined; - - /** - *

The sort order.

- * @public - */ - sortOrder?: CisSortOrder | undefined; - - /** - *

The pagination token from a previous request that's used to retrieve the next page of - * results.

- * @public - */ - nextToken?: string | undefined; - - /** - *

The maximum number of scan results aggregated by checks to be returned in a single page - * of results.

- * @public - */ - maxResults?: number | undefined; -} - -/** - * @public - */ -export interface ListCisScanResultsAggregatedByChecksResponse { - /** - *

The check aggregations.

- * @public - */ - checkAggregations?: CisCheckAggregation[] | undefined; - - /** - *

The pagination token from a previous request that's used to retrieve the next page of - * results.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface ListCisScanResultsAggregatedByTargetResourceRequest { - /** - *

The scan ARN.

- * @public - */ - scanArn: string | undefined; - - /** - *

The filter criteria.

- * @public - */ - filterCriteria?: CisScanResultsAggregatedByTargetResourceFilterCriteria | undefined; - - /** - *

The sort by order.

- * @public - */ - sortBy?: CisScanResultsAggregatedByTargetResourceSortBy | undefined; - - /** - *

The sort order.

- * @public - */ - sortOrder?: CisSortOrder | undefined; - - /** - *

The pagination token from a previous request that's used to retrieve the next page of - * results.

- * @public - */ - nextToken?: string | undefined; - - /** - *

The maximum number of scan results aggregated by a target resource to be returned in a - * single page of results.

- * @public - */ - maxResults?: number | undefined; -} - -/** - * @public - */ -export interface ListCisScanResultsAggregatedByTargetResourceResponse { - /** - *

The resource aggregations.

- * @public - */ - targetResourceAggregations?: CisTargetResourceAggregation[] | undefined; - - /** - *

The pagination token from a previous request that's used to retrieve the next page of - * results.

- * @public - */ - nextToken?: string | undefined; -} - -/** - *

A list of CIS scans filter criteria.

- * @public - */ -export interface ListCisScansFilterCriteria { - /** - *

The list of scan name filters.

- * @public - */ - scanNameFilters?: CisStringFilter[] | undefined; - - /** - *

The list of target resource tag filters.

- * @public - */ - targetResourceTagFilters?: TagFilter[] | undefined; - - /** - *

The list of target resource ID filters.

- * @public - */ - targetResourceIdFilters?: CisStringFilter[] | undefined; - - /** - *

The list of scan status filters.

- * @public - */ - scanStatusFilters?: CisScanStatusFilter[] | undefined; - - /** - *

The list of scan at filters.

- * @public - */ - scanAtFilters?: CisDateFilter[] | undefined; - - /** - *

The list of scan configuration ARN filters.

- * @public - */ - scanConfigurationArnFilters?: CisStringFilter[] | undefined; - - /** - *

The list of scan ARN filters.

- * @public - */ - scanArnFilters?: CisStringFilter[] | undefined; - - /** - *

The list of scheduled by filters.

- * @public - */ - scheduledByFilters?: CisStringFilter[] | undefined; - - /** - *

The list of failed checks filters.

- * @public - */ - failedChecksFilters?: CisNumberFilter[] | undefined; - - /** - *

The list of target account ID filters.

- * @public - */ - targetAccountIdFilters?: CisStringFilter[] | undefined; -} - -/** - * @public - */ -export interface ListCisScansRequest { - /** - *

The CIS scan filter criteria.

- * @public - */ - filterCriteria?: ListCisScansFilterCriteria | undefined; - - /** - *

The detail applied to the CIS scan.

- * @public - */ - detailLevel?: ListCisScansDetailLevel | undefined; - - /** - *

The CIS scans sort by order.

- * @public - */ - sortBy?: ListCisScansSortBy | undefined; - - /** - *

The CIS scans sort order.

- * @public - */ - sortOrder?: CisSortOrder | undefined; - - /** - *

The pagination token from a previous request that's used to retrieve the next page of - * results.

- * @public - */ - nextToken?: string | undefined; - - /** - *

The maximum number of results to be returned.

- * @public - */ - maxResults?: number | undefined; -} - -/** - * @public - */ -export interface ListCisScansResponse { - /** - *

The CIS scans.

- * @public - */ - scans?: CisScan[] | undefined; - - /** - *

The pagination token from a previous request that's used to retrieve the next page of - * results.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface ListCodeSecurityIntegrationsRequest { - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request. For subsequent calls, use the NextToken - * value returned from the previous request to continue listing results after the first - * page.

- * @public - */ - nextToken?: string | undefined; - - /** - *

The maximum number of results to return in a single call.

- * @public - */ - maxResults?: number | undefined; -} - -/** - * @public - */ -export interface ListCodeSecurityIntegrationsResponse { - /** - *

A list of code security integration summaries.

- * @public - */ - integrations?: CodeSecurityIntegrationSummary[] | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request. For subsequent calls, use the NextToken - * value returned from the previous request to continue listing results after the first - * page.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface ListCodeSecurityScanConfigurationAssociationsRequest { - /** - *

The Amazon Resource Name (ARN) of the scan configuration to list associations - * for.

- * @public - */ - scanConfigurationArn: string | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. For subsequent calls, use - * the NextToken value returned from the previous request to continue listing - * results after the first page.

- * @public - */ - nextToken?: string | undefined; - - /** - *

The maximum number of results to return in the response. If your request would return - * more than the maximum the response will return a nextToken value, use this - * value when you call the action again to get the remaining results.

- * @public - */ - maxResults?: number | undefined; -} - -/** - * @public - */ -export interface ListCodeSecurityScanConfigurationAssociationsResponse { - /** - *

A list of associations between code repositories and scan configurations.

- * @public - */ - associations?: CodeSecurityScanConfigurationAssociationSummary[] | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. For subsequent calls, use - * the NextToken value returned from the previous request to continue listing - * results after the first page.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface ListCodeSecurityScanConfigurationsRequest { - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request. For subsequent calls, use the NextToken - * value returned from the previous request to continue listing results after the first - * page.

- * @public - */ - nextToken?: string | undefined; - - /** - *

The maximum number of results to return in a single call.

- * @public - */ - maxResults?: number | undefined; -} - -/** - * @public - */ -export interface ListCodeSecurityScanConfigurationsResponse { - /** - *

A list of code security scan configuration summaries.

- * @public - */ - configurations?: CodeSecurityScanConfigurationSummary[] | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request. For subsequent calls, use the NextToken - * value returned from the previous request to continue listing results after the first - * page.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface ListCoverageRequest { - /** - *

The maximum number of results the response can return. If your request would return more - * than the maximum the response will return a nextToken value, use this value - * when you call the action again to get the remaining results.

- * @public - */ - maxResults?: number | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. If your response returns - * more than the maxResults maximum value it will also return a - * nextToken value. For subsequent calls, use the nextToken value - * returned from the previous request to continue listing results after the first page.

- * @public - */ - nextToken?: string | undefined; - - /** - *

An object that contains details on the filters to apply to the coverage data for your - * environment.

- * @public - */ - filterCriteria?: CoverageFilterCriteria | undefined; -} - -/** - * @public - */ -export interface ListCoverageResponse { - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. For subsequent calls, use - * the NextToken value returned from the previous request to continue listing - * results after the first page.

- * @public - */ - nextToken?: string | undefined; - - /** - *

An object that contains details on the covered resources in your environment.

- * @public - */ - coveredResources?: CoveredResource[] | undefined; -} - -/** - * @public - */ -export interface ListCoverageStatisticsRequest { - /** - *

An object that contains details on the filters to apply to the coverage data for your - * environment.

- * @public - */ - filterCriteria?: CoverageFilterCriteria | undefined; - - /** - *

The value to group the results by.

- * @public - */ - groupBy?: GroupKey | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. For subsequent calls, use - * the NextToken value returned from the previous request to continue listing - * results after the first page.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface ListCoverageStatisticsResponse { - /** - *

An array with the number for each group.

- * @public - */ - countsByGroup?: Counts[] | undefined; - - /** - *

The total number for all groups.

- * @public - */ - totalCounts: number | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. For subsequent calls, use - * the NextToken value returned from the previous request to continue listing - * results after the first page.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface ListDelegatedAdminAccountsRequest { - /** - *

The maximum number of results the response can return. If your request would return more - * than the maximum the response will return a nextToken value, use this value - * when you call the action again to get the remaining results.

- * @public - */ - maxResults?: number | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. If your response returns - * more than the maxResults maximum value it will also return a - * nextToken value. For subsequent calls, use the nextToken value - * returned from the previous request to continue listing results after the first page.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface ListDelegatedAdminAccountsResponse { - /** - *

Details of the Amazon Inspector delegated administrator of your organization.

- * @public - */ - delegatedAdminAccounts?: DelegatedAdminAccount[] | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. For subsequent calls, use - * the NextToken value returned from the previous request to continue listing - * results after the first page.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface ListFiltersRequest { - /** - *

The Amazon resource number (ARN) of the filter.

- * @public - */ - arns?: string[] | undefined; - - /** - *

The action the filter applies to matched findings.

- * @public - */ - action?: FilterAction | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. If your response returns - * more than the maxResults maximum value it will also return a - * nextToken value. For subsequent calls, use the nextToken value - * returned from the previous request to continue listing results after the first page.

- * @public - */ - nextToken?: string | undefined; - - /** - *

The maximum number of results the response can return. If your request would return more - * than the maximum the response will return a nextToken value, use this value - * when you call the action again to get the remaining results.

- * @public - */ - maxResults?: number | undefined; -} - -/** - * @public - */ -export interface ListFiltersResponse { - /** - *

Contains details on the filters associated with your account.

- * @public - */ - filters: Filter[] | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. For subsequent calls, use - * the NextToken value returned from the previous request to continue listing - * results after the first page.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface ListFindingAggregationsRequest { - /** - *

The type of the aggregation request.

- * @public - */ - aggregationType: AggregationType | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. If your response returns - * more than the maxResults maximum value it will also return a - * nextToken value. For subsequent calls, use the nextToken value - * returned from the previous request to continue listing results after the first page.

- * @public - */ - nextToken?: string | undefined; - - /** - *

The maximum number of results the response can return. If your request would return more - * than the maximum the response will return a nextToken value, use this value - * when you call the action again to get the remaining results.

- * @public - */ - maxResults?: number | undefined; - - /** - *

The Amazon Web Services account IDs to retrieve finding aggregation data for.

- * @public - */ - accountIds?: StringFilter[] | undefined; - - /** - *

Details of the aggregation request that is used to filter your aggregation - * results.

- * @public - */ - aggregationRequest?: AggregationRequest | undefined; -} - -/** - * @public - */ -export interface ListFindingAggregationsResponse { - /** - *

The type of aggregation to perform.

- * @public - */ - aggregationType: AggregationType | undefined; - - /** - *

Objects that contain the results of an aggregation operation.

- * @public - */ - responses?: AggregationResponse[] | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. For subsequent calls, use - * the NextToken value returned from the previous request to continue listing - * results after the first page.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - * @enum - */ -export const SortField = { - AWS_ACCOUNT_ID: "AWS_ACCOUNT_ID", - COMPONENT_TYPE: "COMPONENT_TYPE", - ECR_IMAGE_PUSHED_AT: "ECR_IMAGE_PUSHED_AT", - ECR_IMAGE_REGISTRY: "ECR_IMAGE_REGISTRY", - ECR_IMAGE_REPOSITORY_NAME: "ECR_IMAGE_REPOSITORY_NAME", - EPSS_SCORE: "EPSS_SCORE", - FINDING_STATUS: "FINDING_STATUS", - FINDING_TYPE: "FINDING_TYPE", - FIRST_OBSERVED_AT: "FIRST_OBSERVED_AT", - INSPECTOR_SCORE: "INSPECTOR_SCORE", - LAST_OBSERVED_AT: "LAST_OBSERVED_AT", - NETWORK_PROTOCOL: "NETWORK_PROTOCOL", - RESOURCE_TYPE: "RESOURCE_TYPE", - SEVERITY: "SEVERITY", - VENDOR_SEVERITY: "VENDOR_SEVERITY", - VULNERABILITY_ID: "VULNERABILITY_ID", - VULNERABILITY_SOURCE: "VULNERABILITY_SOURCE", -} as const; - -/** - * @public - */ -export type SortField = (typeof SortField)[keyof typeof SortField]; - -/** - *

Details about the criteria used to sort finding results.

- * @public - */ -export interface SortCriteria { - /** - *

The finding detail field by which results are sorted.

- * @public - */ - field: SortField | undefined; - - /** - *

The order by which findings are sorted.

- * @public - */ - sortOrder: SortOrder | undefined; -} - -/** - * @public - */ -export interface ListFindingsRequest { - /** - *

The maximum number of results the response can return. If your request would return more - * than the maximum the response will return a nextToken value, use this value - * when you call the action again to get the remaining results.

- * @public - */ - maxResults?: number | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. If your response returns - * more than the maxResults maximum value it will also return a - * nextToken value. For subsequent calls, use the nextToken value - * returned from the previous request to continue listing results after the first page.

- * @public - */ - nextToken?: string | undefined; - - /** - *

Details on the filters to apply to your finding results.

- * @public - */ - filterCriteria?: FilterCriteria | undefined; - - /** - *

Details on the sort criteria to apply to your finding results.

- * @public - */ - sortCriteria?: SortCriteria | undefined; -} - -/** - * @public - */ -export interface ListFindingsResponse { - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. For subsequent calls, use - * the NextToken value returned from the previous request to continue listing - * results after the first page.

- * @public - */ - nextToken?: string | undefined; - - /** - *

Contains details on the findings in your environment.

- * @public - */ - findings?: Finding[] | undefined; -} - -/** - * @public - */ -export interface ListMembersRequest { - /** - *

Specifies whether to list only currently associated members if True or to - * list all members within the organization if False.

- * @public - */ - onlyAssociated?: boolean | undefined; - - /** - *

The maximum number of results the response can return. If your request would return more - * than the maximum the response will return a nextToken value, use this value - * when you call the action again to get the remaining results.

- * @public - */ - maxResults?: number | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. If your response returns - * more than the maxResults maximum value it will also return a - * nextToken value. For subsequent calls, use the nextToken value - * returned from the previous request to continue listing results after the first page.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface ListMembersResponse { - /** - *

An object that contains details for each member account.

- * @public - */ - members?: Member[] | undefined; - - /** - *

The pagination parameter to be used on the next list operation to retrieve more - * items.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface ListTagsForResourceRequest { - /** - *

The Amazon resource number (ARN) of the resource to list tags of.

- * @public - */ - resourceArn: string | undefined; -} - -/** - * @public - */ -export interface ListTagsForResourceResponse { - /** - *

The tags associated with the resource.

- * @public - */ - tags?: Record | undefined; -} - -/** - * @public - */ -export interface ListUsageTotalsRequest { - /** - *

The maximum number of results the response can return. If your request would return more - * than the maximum the response will return a nextToken value, use this value - * when you call the action again to get the remaining results.

- * @public - */ - maxResults?: number | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. If your response returns - * more than the maxResults maximum value it will also return a - * nextToken value. For subsequent calls, use the nextToken value - * returned from the previous request to continue listing results after the first page.

- * @public - */ - nextToken?: string | undefined; - - /** - *

The Amazon Web Services account IDs to retrieve usage totals for.

- * @public - */ - accountIds?: string[] | undefined; -} - -/** - * @public - * @enum - */ -export const UsageType = { - CODE_REPOSITORY_IAC: "CODE_REPOSITORY_IAC", - CODE_REPOSITORY_SAST: "CODE_REPOSITORY_SAST", - CODE_REPOSITORY_SCA: "CODE_REPOSITORY_SCA", - EC2_AGENTLESS_INSTANCE_HOURS: "EC2_AGENTLESS_INSTANCE_HOURS", - EC2_INSTANCE_HOURS: "EC2_INSTANCE_HOURS", - ECR_INITIAL_SCAN: "ECR_INITIAL_SCAN", - ECR_RESCAN: "ECR_RESCAN", - LAMBDA_FUNCTION_CODE_HOURS: "LAMBDA_FUNCTION_CODE_HOURS", - LAMBDA_FUNCTION_HOURS: "LAMBDA_FUNCTION_HOURS", -} as const; - -/** - * @public - */ -export type UsageType = (typeof UsageType)[keyof typeof UsageType]; - -/** - *

Contains usage information about the cost of Amazon Inspector operation.

- * @public - */ -export interface Usage { - /** - *

The type scan.

- * @public - */ - type?: UsageType | undefined; - - /** - *

The total of usage.

- * @public - */ - total?: number | undefined; - - /** - *

The estimated monthly cost of Amazon Inspector.

- * @public - */ - estimatedMonthlyCost?: number | undefined; - - /** - *

The currency type used when calculating usage data.

- * @public - */ - currency?: Currency | undefined; -} - -/** - *

The total of usage for an account ID.

- * @public - */ -export interface UsageTotal { - /** - *

The account ID of the account that usage data was retrieved for.

- * @public - */ - accountId?: string | undefined; - - /** - *

An object representing the total usage for an account.

- * @public - */ - usage?: Usage[] | undefined; -} - -/** - * @public - */ -export interface ListUsageTotalsResponse { - /** - *

The pagination parameter to be used on the next list operation to retrieve more - * items.

- * @public - */ - nextToken?: string | undefined; - - /** - *

An object with details on the total usage for the requested account.

- * @public - */ - totals?: UsageTotal[] | undefined; -} - -/** - * @public - */ -export interface ResetEncryptionKeyRequest { - /** - *

The scan type the key encrypts.

- * @public - */ - scanType: ScanType | undefined; - - /** - *

The resource type the key encrypts.

- * @public - */ - resourceType: ResourceType | undefined; -} - -/** - * @public - */ -export interface ResetEncryptionKeyResponse {} - -/** - *

Details on the criteria used to define the filter for a vulnerability search.

- * @public - */ -export interface SearchVulnerabilitiesFilterCriteria { - /** - *

The IDs for specific vulnerabilities.

- * @public - */ - vulnerabilityIds: string[] | undefined; -} - -/** - * @public - */ -export interface SearchVulnerabilitiesRequest { - /** - *

The criteria used to filter the results of a vulnerability search.

- * @public - */ - filterCriteria: SearchVulnerabilitiesFilterCriteria | undefined; - - /** - *

A token to use for paginating results that are returned in the response. Set the value - * of this parameter to null for the first request to a list action. For subsequent calls, use - * the NextToken value returned from the previous request to continue listing - * results after the first page.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - * @enum - */ -export const VulnerabilitySource = { - NVD: "NVD", -} as const; - -/** - * @public - */ -export type VulnerabilitySource = (typeof VulnerabilitySource)[keyof typeof VulnerabilitySource]; - -/** - *

Contains details about a specific vulnerability Amazon Inspector can detect.

- * @public - */ -export interface Vulnerability { - /** - *

The ID for the specific vulnerability.

- * @public - */ - id: string | undefined; - - /** - *

The Common Weakness Enumeration (CWE) associated with the vulnerability.

- * @public - */ - cwes?: string[] | undefined; - - /** - *

An object that contains the Cybersecurity and Infrastructure Security Agency (CISA) - * details for the vulnerability.

- * @public - */ - cisaData?: CisaData | undefined; - - /** - *

The source of the vulnerability information. Possible results are RHEL, - * AMAZON_CVE, DEBIAN or NVD.

- * @public - */ - source?: VulnerabilitySource | undefined; - - /** - *

A description of the vulnerability.

- * @public - */ - description?: string | undefined; - - /** - *

An object that contains information about the Amazon Web Services Threat Intel Group - * (ATIG) details for the vulnerability.

- * @public - */ - atigData?: AtigData | undefined; - - /** - *

The severity assigned by the vendor.

- * @public - */ - vendorSeverity?: string | undefined; - - /** - *

An object that contains the Common Vulnerability Scoring System (CVSS) Version 4 details for the vulnerability.

- * @public - */ - cvss4?: Cvss4 | undefined; - - /** - *

An object that contains the Common Vulnerability Scoring System (CVSS) Version 3 details - * for the vulnerability.

- * @public - */ - cvss3?: Cvss3 | undefined; - - /** - *

A list of related vulnerabilities.

- * @public - */ - relatedVulnerabilities?: string[] | undefined; - - /** - *

An object that contains the Common Vulnerability Scoring System (CVSS) Version 2 details - * for the vulnerability.

- * @public - */ - cvss2?: Cvss2 | undefined; - - /** - *

The date and time when the vendor created this vulnerability.

- * @public - */ - vendorCreatedAt?: Date | undefined; - - /** - *

The date and time when the vendor last updated this vulnerability.

- * @public - */ - vendorUpdatedAt?: Date | undefined; - - /** - *

A link to the official source material for this vulnerability.

- * @public - */ - sourceUrl?: string | undefined; - - /** - *

Links to various resources with more information on this vulnerability.

- * @public - */ - referenceUrls?: string[] | undefined; - - /** - *

An object that contains details on when the exploit was observed.

- * @public - */ - exploitObserved?: ExploitObserved | undefined; - - /** - *

Platforms that the vulnerability can be detected on.

- * @public - */ - detectionPlatforms?: string[] | undefined; - - /** - *

An object that contains the Exploit Prediction Scoring System (EPSS) score for a - * vulnerability.

- * @public - */ - epss?: Epss | undefined; -} - -/** - * @public - */ -export interface SearchVulnerabilitiesResponse { - /** - *

Details about the listed vulnerability.

- * @public - */ - vulnerabilities: Vulnerability[] | undefined; - - /** - *

The pagination parameter to be used on the next list operation to retrieve more - * items.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface SendCisSessionHealthRequest { - /** - *

A unique identifier for the scan job.

- * @public - */ - scanJobId: string | undefined; - - /** - *

The unique token that identifies the CIS session.

- * @public - */ - sessionToken: string | undefined; -} - -/** - * @public - */ -export interface SendCisSessionHealthResponse {} - -/** - * @public - */ -export interface SendCisSessionTelemetryRequest { - /** - *

A unique identifier for the scan job.

- * @public - */ - scanJobId: string | undefined; - - /** - *

The unique token that identifies the CIS session.

- * @public - */ - sessionToken: string | undefined; - - /** - *

The CIS session telemetry messages.

- * @public - */ - messages: CisSessionMessage[] | undefined; -} - -/** - * @public - */ -export interface SendCisSessionTelemetryResponse {} - -/** - *

The start CIS session message.

- * @public - */ -export interface StartCisSessionMessage { - /** - *

The unique token that identifies the CIS session.

- * @public - */ - sessionToken: string | undefined; -} - -/** - * @public - */ -export interface StartCisSessionRequest { - /** - *

A unique identifier for the scan job.

- * @public - */ - scanJobId: string | undefined; - - /** - *

The start CIS session message.

- * @public - */ - message: StartCisSessionMessage | undefined; -} - /** * @public */ diff --git a/clients/client-internetmonitor/src/index.ts b/clients/client-internetmonitor/src/index.ts index 275e1d38bedc..d3fdb0599a4f 100644 --- a/clients/client-internetmonitor/src/index.ts +++ b/clients/client-internetmonitor/src/index.ts @@ -28,6 +28,7 @@ export type { InternetMonitorExtensionConfiguration } from "./extensionConfigura export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-internetmonitor/src/models/enums.ts b/clients/client-internetmonitor/src/models/enums.ts new file mode 100644 index 000000000000..3f33da4b8f11 --- /dev/null +++ b/clients/client-internetmonitor/src/models/enums.ts @@ -0,0 +1,173 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const LocalHealthEventsConfigStatus = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +} as const; +/** + * @public + */ +export type LocalHealthEventsConfigStatus = + (typeof LocalHealthEventsConfigStatus)[keyof typeof LocalHealthEventsConfigStatus]; + +/** + * @public + * @enum + */ +export const LogDeliveryStatus = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +} as const; +/** + * @public + */ +export type LogDeliveryStatus = (typeof LogDeliveryStatus)[keyof typeof LogDeliveryStatus]; + +/** + * @public + * @enum + */ +export const MonitorConfigState = { + ACTIVE: "ACTIVE", + ERROR: "ERROR", + INACTIVE: "INACTIVE", + PENDING: "PENDING", +} as const; +/** + * @public + */ +export type MonitorConfigState = (typeof MonitorConfigState)[keyof typeof MonitorConfigState]; + +/** + * @public + * @enum + */ +export const Operator = { + EQUALS: "EQUALS", + NOT_EQUALS: "NOT_EQUALS", +} as const; +/** + * @public + */ +export type Operator = (typeof Operator)[keyof typeof Operator]; + +/** + * @public + * @enum + */ +export const TriangulationEventType = { + AWS: "AWS", + INTERNET: "Internet", +} as const; +/** + * @public + */ +export type TriangulationEventType = (typeof TriangulationEventType)[keyof typeof TriangulationEventType]; + +/** + * @public + * @enum + */ +export const HealthEventStatus = { + ACTIVE: "ACTIVE", + RESOLVED: "RESOLVED", +} as const; +/** + * @public + */ +export type HealthEventStatus = (typeof HealthEventStatus)[keyof typeof HealthEventStatus]; + +/** + * @public + * @enum + */ +export const HealthEventImpactType = { + AVAILABILITY: "AVAILABILITY", + LOCAL_AVAILABILITY: "LOCAL_AVAILABILITY", + LOCAL_PERFORMANCE: "LOCAL_PERFORMANCE", + PERFORMANCE: "PERFORMANCE", +} as const; +/** + * @public + */ +export type HealthEventImpactType = (typeof HealthEventImpactType)[keyof typeof HealthEventImpactType]; + +/** + * @public + * @enum + */ +export const InternetEventStatus = { + ACTIVE: "ACTIVE", + RESOLVED: "RESOLVED", +} as const; +/** + * @public + */ +export type InternetEventStatus = (typeof InternetEventStatus)[keyof typeof InternetEventStatus]; + +/** + * @public + * @enum + */ +export const InternetEventType = { + AVAILABILITY: "AVAILABILITY", + PERFORMANCE: "PERFORMANCE", +} as const; +/** + * @public + */ +export type InternetEventType = (typeof InternetEventType)[keyof typeof InternetEventType]; + +/** + * @public + * @enum + */ +export const MonitorProcessingStatusCode = { + COLLECTING_DATA: "COLLECTING_DATA", + FAULT_ACCESS_CLOUDWATCH: "FAULT_ACCESS_CLOUDWATCH", + FAULT_SERVICE: "FAULT_SERVICE", + INACTIVE: "INACTIVE", + INSUFFICIENT_DATA: "INSUFFICIENT_DATA", + OK: "OK", +} as const; +/** + * @public + */ +export type MonitorProcessingStatusCode = + (typeof MonitorProcessingStatusCode)[keyof typeof MonitorProcessingStatusCode]; + +/** + * @public + * @enum + */ +export const QueryStatus = { + CANCELED: "CANCELED", + FAILED: "FAILED", + QUEUED: "QUEUED", + RUNNING: "RUNNING", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type QueryStatus = (typeof QueryStatus)[keyof typeof QueryStatus]; + +/** + * @public + * @enum + */ +export const QueryType = { + MEASUREMENTS: "MEASUREMENTS", + OVERALL_TRAFFIC_SUGGESTIONS: "OVERALL_TRAFFIC_SUGGESTIONS", + OVERALL_TRAFFIC_SUGGESTIONS_DETAILS: "OVERALL_TRAFFIC_SUGGESTIONS_DETAILS", + ROUTING_SUGGESTIONS: "ROUTING_SUGGESTIONS", + TOP_LOCATIONS: "TOP_LOCATIONS", + TOP_LOCATION_DETAILS: "TOP_LOCATION_DETAILS", +} as const; +/** + * @public + */ +export type QueryType = (typeof QueryType)[keyof typeof QueryType]; diff --git a/clients/client-internetmonitor/src/models/models_0.ts b/clients/client-internetmonitor/src/models/models_0.ts index a85297095dd9..d7060185159e 100644 --- a/clients/client-internetmonitor/src/models/models_0.ts +++ b/clients/client-internetmonitor/src/models/models_0.ts @@ -1,4 +1,19 @@ // smithy-typescript generated code +import { + HealthEventImpactType, + HealthEventStatus, + InternetEventStatus, + InternetEventType, + LocalHealthEventsConfigStatus, + LogDeliveryStatus, + MonitorConfigState, + MonitorProcessingStatusCode, + Operator, + QueryStatus, + QueryType, + TriangulationEventType, +} from "./enums"; + /** *

Amazon CloudWatch Internet Monitor calculates measurements about the availability for your application's internet traffic between client locations and Amazon Web Services. * Amazon Web Services has substantial historical data about internet @@ -100,21 +115,6 @@ export interface ClientLocation { Longitude: number | undefined; } -/** - * @public - * @enum - */ -export const LocalHealthEventsConfigStatus = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type LocalHealthEventsConfigStatus = - (typeof LocalHealthEventsConfigStatus)[keyof typeof LocalHealthEventsConfigStatus]; - /** *

A complex type with the configuration information that determines the threshold and other conditions for when Internet Monitor creates a health event * for a local performance or availability issue, when scores cross a threshold for one or more city-networks.

@@ -190,20 +190,6 @@ export interface HealthEventsConfig { PerformanceLocalHealthEventsConfig?: LocalHealthEventsConfig | undefined; } -/** - * @public - * @enum - */ -export const LogDeliveryStatus = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type LogDeliveryStatus = (typeof LogDeliveryStatus)[keyof typeof LogDeliveryStatus]; - /** *

The configuration for publishing Amazon CloudWatch Internet Monitor internet measurements to Amazon S3. The configuration includes the bucket name and (optionally) prefix * for the S3 bucket to store the measurements, and the delivery status. The delivery status is ENABLED or DISABLED, depending on @@ -317,22 +303,6 @@ export interface CreateMonitorInput { HealthEventsConfig?: HealthEventsConfig | undefined; } -/** - * @public - * @enum - */ -export const MonitorConfigState = { - ACTIVE: "ACTIVE", - ERROR: "ERROR", - INACTIVE: "INACTIVE", - PENDING: "PENDING", -} as const; - -/** - * @public - */ -export type MonitorConfigState = (typeof MonitorConfigState)[keyof typeof MonitorConfigState]; - /** * @public */ @@ -366,20 +336,6 @@ export interface DeleteMonitorInput { */ export interface DeleteMonitorOutput {} -/** - * @public - * @enum - */ -export const Operator = { - EQUALS: "EQUALS", - NOT_EQUALS: "NOT_EQUALS", -} as const; - -/** - * @public - */ -export type Operator = (typeof Operator)[keyof typeof Operator]; - /** *

A filter that you use with the results of a Amazon CloudWatch Internet Monitor query that you created and ran. The query sets up a * repository of data that is a subset of your application's Internet Monitor data. FilterParameter is a string @@ -463,20 +419,6 @@ export interface Network { ASNumber: number | undefined; } -/** - * @public - * @enum - */ -export const TriangulationEventType = { - AWS: "AWS", - INTERNET: "Internet", -} as const; - -/** - * @public - */ -export type TriangulationEventType = (typeof TriangulationEventType)[keyof typeof TriangulationEventType]; - /** *

Information about the network impairment for a specific network measured by Amazon CloudWatch Internet Monitor.

* @public @@ -606,20 +548,6 @@ export interface InternetHealth { Performance?: PerformanceMeasurement | undefined; } -/** - * @public - * @enum - */ -export const HealthEventStatus = { - ACTIVE: "ACTIVE", - RESOLVED: "RESOLVED", -} as const; - -/** - * @public - */ -export type HealthEventStatus = (typeof HealthEventStatus)[keyof typeof HealthEventStatus]; - /** *

Information about a location impacted by a health event in Amazon CloudWatch Internet Monitor.

*

Geographic regions are hierarchically categorized into country, subdivision, @@ -727,22 +655,6 @@ export interface ImpactedLocation { Ipv4Prefixes?: string[] | undefined; } -/** - * @public - * @enum - */ -export const HealthEventImpactType = { - AVAILABILITY: "AVAILABILITY", - LOCAL_AVAILABILITY: "LOCAL_AVAILABILITY", - LOCAL_PERFORMANCE: "LOCAL_PERFORMANCE", - PERFORMANCE: "PERFORMANCE", -} as const; - -/** - * @public - */ -export type HealthEventImpactType = (typeof HealthEventImpactType)[keyof typeof HealthEventImpactType]; - /** * @public */ @@ -828,34 +740,6 @@ export interface GetInternetEventInput { EventId: string | undefined; } -/** - * @public - * @enum - */ -export const InternetEventStatus = { - ACTIVE: "ACTIVE", - RESOLVED: "RESOLVED", -} as const; - -/** - * @public - */ -export type InternetEventStatus = (typeof InternetEventStatus)[keyof typeof InternetEventStatus]; - -/** - * @public - * @enum - */ -export const InternetEventType = { - AVAILABILITY: "AVAILABILITY", - PERFORMANCE: "PERFORMANCE", -} as const; - -/** - * @public - */ -export type InternetEventType = (typeof InternetEventType)[keyof typeof InternetEventType]; - /** * @public */ @@ -923,25 +807,6 @@ export interface GetMonitorInput { LinkedAccountId?: string | undefined; } -/** - * @public - * @enum - */ -export const MonitorProcessingStatusCode = { - COLLECTING_DATA: "COLLECTING_DATA", - FAULT_ACCESS_CLOUDWATCH: "FAULT_ACCESS_CLOUDWATCH", - FAULT_SERVICE: "FAULT_SERVICE", - INACTIVE: "INACTIVE", - INSUFFICIENT_DATA: "INSUFFICIENT_DATA", - OK: "OK", -} as const; - -/** - * @public - */ -export type MonitorProcessingStatusCode = - (typeof MonitorProcessingStatusCode)[keyof typeof MonitorProcessingStatusCode]; - /** * @public */ @@ -1129,23 +994,6 @@ export interface GetQueryStatusInput { QueryId: string | undefined; } -/** - * @public - * @enum - */ -export const QueryStatus = { - CANCELED: "CANCELED", - FAILED: "FAILED", - QUEUED: "QUEUED", - RUNNING: "RUNNING", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type QueryStatus = (typeof QueryStatus)[keyof typeof QueryStatus]; - /** * @public */ @@ -1512,24 +1360,6 @@ export interface ListMonitorsOutput { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const QueryType = { - MEASUREMENTS: "MEASUREMENTS", - OVERALL_TRAFFIC_SUGGESTIONS: "OVERALL_TRAFFIC_SUGGESTIONS", - OVERALL_TRAFFIC_SUGGESTIONS_DETAILS: "OVERALL_TRAFFIC_SUGGESTIONS_DETAILS", - ROUTING_SUGGESTIONS: "ROUTING_SUGGESTIONS", - TOP_LOCATIONS: "TOP_LOCATIONS", - TOP_LOCATION_DETAILS: "TOP_LOCATION_DETAILS", -} as const; - -/** - * @public - */ -export type QueryType = (typeof QueryType)[keyof typeof QueryType]; - /** * @public */ diff --git a/clients/client-iottwinmaker/src/index.ts b/clients/client-iottwinmaker/src/index.ts index b7237845fb5d..f092033dd73e 100644 --- a/clients/client-iottwinmaker/src/index.ts +++ b/clients/client-iottwinmaker/src/index.ts @@ -18,6 +18,7 @@ export type { IoTTwinMakerExtensionConfiguration } from "./extensionConfiguratio export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-iottwinmaker/src/models/enums.ts b/clients/client-iottwinmaker/src/models/enums.ts new file mode 100644 index 000000000000..7f157dc02981 --- /dev/null +++ b/clients/client-iottwinmaker/src/models/enums.ts @@ -0,0 +1,335 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ErrorCode = { + COMPOSITE_COMPONENT_FAILURE: "COMPOSITE_COMPONENT_FAILURE", + INTERNAL_FAILURE: "INTERNAL_FAILURE", + PROCESSING_ERROR: "PROCESSING_ERROR", + SYNC_CREATING_ERROR: "SYNC_CREATING_ERROR", + SYNC_DELETING_ERROR: "SYNC_DELETING_ERROR", + SYNC_INITIALIZING_ERROR: "SYNC_INITIALIZING_ERROR", + SYNC_PROCESSING_ERROR: "SYNC_PROCESSING_ERROR", + VALIDATION_ERROR: "VALIDATION_ERROR", +} as const; +/** + * @public + */ +export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode]; + +/** + * @public + * @enum + */ +export const MetadataTransferJobState = { + CANCELLED: "CANCELLED", + CANCELLING: "CANCELLING", + COMPLETED: "COMPLETED", + ERROR: "ERROR", + PENDING: "PENDING", + RUNNING: "RUNNING", + VALIDATING: "VALIDATING", +} as const; +/** + * @public + */ +export type MetadataTransferJobState = (typeof MetadataTransferJobState)[keyof typeof MetadataTransferJobState]; + +/** + * @public + * @enum + */ +export const Scope = { + ENTITY: "ENTITY", + WORKSPACE: "WORKSPACE", +} as const; +/** + * @public + */ +export type Scope = (typeof Scope)[keyof typeof Scope]; + +/** + * @public + * @enum + */ +export const Type = { + BOOLEAN: "BOOLEAN", + DOUBLE: "DOUBLE", + INTEGER: "INTEGER", + LIST: "LIST", + LONG: "LONG", + MAP: "MAP", + RELATIONSHIP: "RELATIONSHIP", + STRING: "STRING", +} as const; +/** + * @public + */ +export type Type = (typeof Type)[keyof typeof Type]; + +/** + * @public + * @enum + */ +export const GroupType = { + TABULAR: "TABULAR", +} as const; +/** + * @public + */ +export type GroupType = (typeof GroupType)[keyof typeof GroupType]; + +/** + * @public + * @enum + */ +export const State = { + ACTIVE: "ACTIVE", + CREATING: "CREATING", + DELETING: "DELETING", + ERROR: "ERROR", + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type State = (typeof State)[keyof typeof State]; + +/** + * @public + * @enum + */ +export const PropertyUpdateType = { + CREATE: "CREATE", + DELETE: "DELETE", + RESET_VALUE: "RESET_VALUE", + UPDATE: "UPDATE", +} as const; +/** + * @public + */ +export type PropertyUpdateType = (typeof PropertyUpdateType)[keyof typeof PropertyUpdateType]; + +/** + * @public + * @enum + */ +export const PropertyGroupUpdateType = { + CREATE: "CREATE", + DELETE: "DELETE", + UPDATE: "UPDATE", +} as const; +/** + * @public + */ +export type PropertyGroupUpdateType = (typeof PropertyGroupUpdateType)[keyof typeof PropertyGroupUpdateType]; + +/** + * @public + * @enum + */ +export const DestinationType = { + IOTSITEWISE: "iotsitewise", + IOTTWINMAKER: "iottwinmaker", + S3: "s3", +} as const; +/** + * @public + */ +export type DestinationType = (typeof DestinationType)[keyof typeof DestinationType]; + +/** + * @public + * @enum + */ +export const SourceType = { + IOTSITEWISE: "iotsitewise", + IOTTWINMAKER: "iottwinmaker", + S3: "s3", +} as const; +/** + * @public + */ +export type SourceType = (typeof SourceType)[keyof typeof SourceType]; + +/** + * @public + * @enum + */ +export const SyncJobState = { + ACTIVE: "ACTIVE", + CREATING: "CREATING", + DELETING: "DELETING", + ERROR: "ERROR", + INITIALIZING: "INITIALIZING", +} as const; +/** + * @public + */ +export type SyncJobState = (typeof SyncJobState)[keyof typeof SyncJobState]; + +/** + * @public + * @enum + */ +export const ColumnType = { + EDGE: "EDGE", + NODE: "NODE", + VALUE: "VALUE", +} as const; +/** + * @public + */ +export type ColumnType = (typeof ColumnType)[keyof typeof ColumnType]; + +/** + * @public + * @enum + */ +export const PricingTier = { + TIER_1: "TIER_1", + TIER_2: "TIER_2", + TIER_3: "TIER_3", + TIER_4: "TIER_4", +} as const; +/** + * @public + */ +export type PricingTier = (typeof PricingTier)[keyof typeof PricingTier]; + +/** + * @public + * @enum + */ +export const PricingMode = { + BASIC: "BASIC", + STANDARD: "STANDARD", + TIERED_BUNDLE: "TIERED_BUNDLE", +} as const; +/** + * @public + */ +export type PricingMode = (typeof PricingMode)[keyof typeof PricingMode]; + +/** + * @public + * @enum + */ +export const UpdateReason = { + DEFAULT: "DEFAULT", + ENTITY_COUNT_UPDATE: "ENTITY_COUNT_UPDATE", + OVERWRITTEN: "OVERWRITTEN", + PRICING_MODE_UPDATE: "PRICING_MODE_UPDATE", + PRICING_TIER_UPDATE: "PRICING_TIER_UPDATE", +} as const; +/** + * @public + */ +export type UpdateReason = (typeof UpdateReason)[keyof typeof UpdateReason]; + +/** + * @public + * @enum + */ +export const Order = { + ASCENDING: "ASCENDING", + DESCENDING: "DESCENDING", +} as const; +/** + * @public + */ +export type Order = (typeof Order)[keyof typeof Order]; + +/** + * @public + * @enum + */ +export const InterpolationType = { + LINEAR: "LINEAR", +} as const; +/** + * @public + */ +export type InterpolationType = (typeof InterpolationType)[keyof typeof InterpolationType]; + +/** + * @public + * @enum + */ +export const OrderByTime = { + ASCENDING: "ASCENDING", + DESCENDING: "DESCENDING", +} as const; +/** + * @public + */ +export type OrderByTime = (typeof OrderByTime)[keyof typeof OrderByTime]; + +/** + * @public + * @enum + */ +export const SceneErrorCode = { + MATTERPORT_ERROR: "MATTERPORT_ERROR", +} as const; +/** + * @public + */ +export type SceneErrorCode = (typeof SceneErrorCode)[keyof typeof SceneErrorCode]; + +/** + * @public + * @enum + */ +export const SyncResourceType = { + COMPONENT_TYPE: "COMPONENT_TYPE", + ENTITY: "ENTITY", +} as const; +/** + * @public + */ +export type SyncResourceType = (typeof SyncResourceType)[keyof typeof SyncResourceType]; + +/** + * @public + * @enum + */ +export const SyncResourceState = { + DELETED: "DELETED", + ERROR: "ERROR", + INITIALIZING: "INITIALIZING", + IN_SYNC: "IN_SYNC", + PROCESSING: "PROCESSING", +} as const; +/** + * @public + */ +export type SyncResourceState = (typeof SyncResourceState)[keyof typeof SyncResourceState]; + +/** + * @public + * @enum + */ +export const ComponentUpdateType = { + CREATE: "CREATE", + DELETE: "DELETE", + UPDATE: "UPDATE", +} as const; +/** + * @public + */ +export type ComponentUpdateType = (typeof ComponentUpdateType)[keyof typeof ComponentUpdateType]; + +/** + * @public + * @enum + */ +export const ParentEntityUpdateType = { + DELETE: "DELETE", + UPDATE: "UPDATE", +} as const; +/** + * @public + */ +export type ParentEntityUpdateType = (typeof ParentEntityUpdateType)[keyof typeof ParentEntityUpdateType]; diff --git a/clients/client-iottwinmaker/src/models/models_0.ts b/clients/client-iottwinmaker/src/models/models_0.ts index 3f668dd33247..7a212c009a12 100644 --- a/clients/client-iottwinmaker/src/models/models_0.ts +++ b/clients/client-iottwinmaker/src/models/models_0.ts @@ -1,6 +1,32 @@ // smithy-typescript generated code import { DocumentType as __DocumentType } from "@smithy/types"; +import { + ColumnType, + ComponentUpdateType, + DestinationType, + ErrorCode, + GroupType, + InterpolationType, + MetadataTransferJobState, + Order, + OrderByTime, + ParentEntityUpdateType, + PricingMode, + PricingTier, + PropertyGroupUpdateType, + PropertyUpdateType, + SceneErrorCode, + Scope, + SourceType, + State, + SyncJobState, + SyncResourceState, + SyncResourceType, + Type, + UpdateReason, +} from "./enums"; + /** *

An object that uniquely identifies an entity property.

* @public @@ -97,26 +123,6 @@ export interface MetadataTransferJobProgress { failedCount?: number | undefined; } -/** - * @public - * @enum - */ -export const ErrorCode = { - COMPOSITE_COMPONENT_FAILURE: "COMPOSITE_COMPONENT_FAILURE", - INTERNAL_FAILURE: "INTERNAL_FAILURE", - PROCESSING_ERROR: "PROCESSING_ERROR", - SYNC_CREATING_ERROR: "SYNC_CREATING_ERROR", - SYNC_DELETING_ERROR: "SYNC_DELETING_ERROR", - SYNC_INITIALIZING_ERROR: "SYNC_INITIALIZING_ERROR", - SYNC_PROCESSING_ERROR: "SYNC_PROCESSING_ERROR", - VALIDATION_ERROR: "VALIDATION_ERROR", -} as const; - -/** - * @public - */ -export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode]; - /** *

The error details.

* @public @@ -135,25 +141,6 @@ export interface ErrorDetails { message?: string | undefined; } -/** - * @public - * @enum - */ -export const MetadataTransferJobState = { - CANCELLED: "CANCELLED", - CANCELLING: "CANCELLING", - COMPLETED: "COMPLETED", - ERROR: "ERROR", - PENDING: "PENDING", - RUNNING: "RUNNING", - VALIDATING: "VALIDATING", -} as const; - -/** - * @public - */ -export type MetadataTransferJobState = (typeof MetadataTransferJobState)[keyof typeof MetadataTransferJobState]; - /** *

The metadata transfer job status.

* @public @@ -256,20 +243,6 @@ export interface DataConnector { isNative?: boolean | undefined; } -/** - * @public - * @enum - */ -export const Scope = { - ENTITY: "ENTITY", - WORKSPACE: "WORKSPACE", -} as const; - -/** - * @public - */ -export type Scope = (typeof Scope)[keyof typeof Scope]; - /** *

The function request body.

* @public @@ -312,39 +285,6 @@ export interface Relationship { relationshipType?: string | undefined; } -/** - * @public - * @enum - */ -export const Type = { - BOOLEAN: "BOOLEAN", - DOUBLE: "DOUBLE", - INTEGER: "INTEGER", - LIST: "LIST", - LONG: "LONG", - MAP: "MAP", - RELATIONSHIP: "RELATIONSHIP", - STRING: "STRING", -} as const; - -/** - * @public - */ -export type Type = (typeof Type)[keyof typeof Type]; - -/** - * @public - * @enum - */ -export const GroupType = { - TABULAR: "TABULAR", -} as const; - -/** - * @public - */ -export type GroupType = (typeof GroupType)[keyof typeof GroupType]; - /** *

* @public @@ -363,23 +303,6 @@ export interface PropertyGroupRequest { propertyNames?: string[] | undefined; } -/** - * @public - * @enum - */ -export const State = { - ACTIVE: "ACTIVE", - CREATING: "CREATING", - DELETING: "DELETING", - ERROR: "ERROR", - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type State = (typeof State)[keyof typeof State]; - /** * @public */ @@ -403,37 +326,6 @@ export interface CreateComponentTypeResponse { state: State | undefined; } -/** - * @public - * @enum - */ -export const PropertyUpdateType = { - CREATE: "CREATE", - DELETE: "DELETE", - RESET_VALUE: "RESET_VALUE", - UPDATE: "UPDATE", -} as const; - -/** - * @public - */ -export type PropertyUpdateType = (typeof PropertyUpdateType)[keyof typeof PropertyUpdateType]; - -/** - * @public - * @enum - */ -export const PropertyGroupUpdateType = { - CREATE: "CREATE", - DELETE: "DELETE", - UPDATE: "UPDATE", -} as const; - -/** - * @public - */ -export type PropertyGroupUpdateType = (typeof PropertyGroupUpdateType)[keyof typeof PropertyGroupUpdateType]; - /** *

The component property group request.

* @public @@ -511,21 +403,6 @@ export interface S3DestinationConfiguration { location: string | undefined; } -/** - * @public - * @enum - */ -export const DestinationType = { - IOTSITEWISE: "iotsitewise", - IOTTWINMAKER: "iottwinmaker", - S3: "s3", -} as const; - -/** - * @public - */ -export type DestinationType = (typeof DestinationType)[keyof typeof DestinationType]; - /** *

The [link to action] metadata transfer job destination configuration.

* @public @@ -782,21 +659,6 @@ export interface S3SourceConfiguration { location: string | undefined; } -/** - * @public - * @enum - */ -export const SourceType = { - IOTSITEWISE: "iotsitewise", - IOTTWINMAKER: "iottwinmaker", - S3: "s3", -} as const; - -/** - * @public - */ -export type SourceType = (typeof SourceType)[keyof typeof SourceType]; - /** *

The source configuration.

* @public @@ -982,23 +844,6 @@ export interface CreateSyncJobRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const SyncJobState = { - ACTIVE: "ACTIVE", - CREATING: "CREATING", - DELETING: "DELETING", - ERROR: "ERROR", - INITIALIZING: "INITIALIZING", -} as const; - -/** - * @public - */ -export type SyncJobState = (typeof SyncJobState)[keyof typeof SyncJobState]; - /** * @public */ @@ -1241,21 +1086,6 @@ export interface ExecuteQueryRequest { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const ColumnType = { - EDGE: "EDGE", - NODE: "NODE", - VALUE: "VALUE", -} as const; - -/** - * @public - */ -export type ColumnType = (typeof ColumnType)[keyof typeof ColumnType]; - /** *

A description of the column in the query results.

* @public @@ -1601,22 +1431,6 @@ export interface GetMetadataTransferJobResponse { */ export interface GetPricingPlanRequest {} -/** - * @public - * @enum - */ -export const PricingTier = { - TIER_1: "TIER_1", - TIER_2: "TIER_2", - TIER_3: "TIER_3", - TIER_4: "TIER_4", -} as const; - -/** - * @public - */ -export type PricingTier = (typeof PricingTier)[keyof typeof PricingTier]; - /** *

Information about the pricing bundle.

* @public @@ -1635,38 +1449,6 @@ export interface BundleInformation { pricingTier?: PricingTier | undefined; } -/** - * @public - * @enum - */ -export const PricingMode = { - BASIC: "BASIC", - STANDARD: "STANDARD", - TIERED_BUNDLE: "TIERED_BUNDLE", -} as const; - -/** - * @public - */ -export type PricingMode = (typeof PricingMode)[keyof typeof PricingMode]; - -/** - * @public - * @enum - */ -export const UpdateReason = { - DEFAULT: "DEFAULT", - ENTITY_COUNT_UPDATE: "ENTITY_COUNT_UPDATE", - OVERWRITTEN: "OVERWRITTEN", - PRICING_MODE_UPDATE: "PRICING_MODE_UPDATE", - PRICING_TIER_UPDATE: "PRICING_TIER_UPDATE", -} as const; - -/** - * @public - */ -export type UpdateReason = (typeof UpdateReason)[keyof typeof UpdateReason]; - /** *

The pricing plan.

* @public @@ -1726,20 +1508,6 @@ export interface GetPricingPlanResponse { pendingPricingPlan?: PricingPlan | undefined; } -/** - * @public - * @enum - */ -export const Order = { - ASCENDING: "ASCENDING", - DESCENDING: "DESCENDING", -} as const; - -/** - * @public - */ -export type Order = (typeof Order)[keyof typeof Order]; - /** *

Filter criteria that orders the return output. It can be sorted in ascending or * descending order.

@@ -1759,19 +1527,6 @@ export interface OrderBy { propertyName: string | undefined; } -/** - * @public - * @enum - */ -export const InterpolationType = { - LINEAR: "LINEAR", -} as const; - -/** - * @public - */ -export type InterpolationType = (typeof InterpolationType)[keyof typeof InterpolationType]; - /** *

An object that specifies how to interpolate data in a list.

* @public @@ -1790,20 +1545,6 @@ export interface InterpolationParameters { intervalInSeconds?: number | undefined; } -/** - * @public - * @enum - */ -export const OrderByTime = { - ASCENDING: "ASCENDING", - DESCENDING: "DESCENDING", -} as const; - -/** - * @public - */ -export type OrderByTime = (typeof OrderByTime)[keyof typeof OrderByTime]; - /** * @public */ @@ -1821,19 +1562,6 @@ export interface GetSceneRequest { sceneId: string | undefined; } -/** - * @public - * @enum - */ -export const SceneErrorCode = { - MATTERPORT_ERROR: "MATTERPORT_ERROR", -} as const; - -/** - * @public - */ -export type SceneErrorCode = (typeof SceneErrorCode)[keyof typeof SceneErrorCode]; - /** *

The scene error.

* @public @@ -2841,37 +2569,6 @@ export interface ListSyncJobsResponse { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const SyncResourceType = { - COMPONENT_TYPE: "COMPONENT_TYPE", - ENTITY: "ENTITY", -} as const; - -/** - * @public - */ -export type SyncResourceType = (typeof SyncResourceType)[keyof typeof SyncResourceType]; - -/** - * @public - * @enum - */ -export const SyncResourceState = { - DELETED: "DELETED", - ERROR: "ERROR", - INITIALIZING: "INITIALIZING", - IN_SYNC: "IN_SYNC", - PROCESSING: "PROCESSING", -} as const; - -/** - * @public - */ -export type SyncResourceState = (typeof SyncResourceState)[keyof typeof SyncResourceState]; - /** *

The sync resource filter.

* @public @@ -3273,35 +2970,6 @@ export interface UpdateComponentTypeResponse { state: State | undefined; } -/** - * @public - * @enum - */ -export const ComponentUpdateType = { - CREATE: "CREATE", - DELETE: "DELETE", - UPDATE: "UPDATE", -} as const; - -/** - * @public - */ -export type ComponentUpdateType = (typeof ComponentUpdateType)[keyof typeof ComponentUpdateType]; - -/** - * @public - * @enum - */ -export const ParentEntityUpdateType = { - DELETE: "DELETE", - UPDATE: "UPDATE", -} as const; - -/** - * @public - */ -export type ParentEntityUpdateType = (typeof ParentEntityUpdateType)[keyof typeof ParentEntityUpdateType]; - /** *

The parent entity update request.

* @public diff --git a/clients/client-ivs-realtime/src/models/enums.ts b/clients/client-ivs-realtime/src/models/enums.ts index 5eb028bbab29..287af0930200 100644 --- a/clients/client-ivs-realtime/src/models/enums.ts +++ b/clients/client-ivs-realtime/src/models/enums.ts @@ -12,6 +12,32 @@ export const IngestProtocol = { */ export type IngestProtocol = (typeof IngestProtocol)[keyof typeof IngestProtocol]; +/** + * @public + * @enum + */ +export const IngestConfigurationState = { + ACTIVE: "ACTIVE", + INACTIVE: "INACTIVE", +} as const; +/** + * @public + */ +export type IngestConfigurationState = (typeof IngestConfigurationState)[keyof typeof IngestConfigurationState]; + +/** + * @public + * @enum + */ +export const ParticipantTokenCapability = { + PUBLISH: "PUBLISH", + SUBSCRIBE: "SUBSCRIBE", +} as const; +/** + * @public + */ +export type ParticipantTokenCapability = (typeof ParticipantTokenCapability)[keyof typeof ParticipantTokenCapability]; + /** * @public * @enum @@ -53,6 +79,36 @@ export const ThumbnailStorageType = { */ export type ThumbnailStorageType = (typeof ThumbnailStorageType)[keyof typeof ThumbnailStorageType]; +/** + * @public + * @enum + */ +export const RecordingConfigurationFormat = { + HLS: "HLS", +} as const; +/** + * @public + */ +export type RecordingConfigurationFormat = + (typeof RecordingConfigurationFormat)[keyof typeof RecordingConfigurationFormat]; + +/** + * @public + * @enum + */ +export const DestinationState = { + ACTIVE: "ACTIVE", + FAILED: "FAILED", + RECONNECTING: "RECONNECTING", + STARTING: "STARTING", + STOPPED: "STOPPED", + STOPPING: "STOPPING", +} as const; +/** + * @public + */ +export type DestinationState = (typeof DestinationState)[keyof typeof DestinationState]; + /** * @public * @enum @@ -110,6 +166,22 @@ export const PipPosition = { */ export type PipPosition = (typeof PipPosition)[keyof typeof PipPosition]; +/** + * @public + * @enum + */ +export const CompositionState = { + ACTIVE: "ACTIVE", + FAILED: "FAILED", + STARTING: "STARTING", + STOPPED: "STOPPED", + STOPPING: "STOPPING", +} as const; +/** + * @public + */ +export type CompositionState = (typeof CompositionState)[keyof typeof CompositionState]; + /** * @public * @enum @@ -125,6 +197,63 @@ export const ParticipantProtocol = { */ export type ParticipantProtocol = (typeof ParticipantProtocol)[keyof typeof ParticipantProtocol]; +/** + * @public + * @enum + */ +export const ParticipantRecordingState = { + ACTIVE: "ACTIVE", + DISABLED: "DISABLED", + FAILED: "FAILED", + STARTING: "STARTING", + STOPPED: "STOPPED", + STOPPING: "STOPPING", +} as const; +/** + * @public + */ +export type ParticipantRecordingState = (typeof ParticipantRecordingState)[keyof typeof ParticipantRecordingState]; + +/** + * @public + * @enum + */ +export const ReplicationState = { + ACTIVE: "ACTIVE", + STOPPED: "STOPPED", +} as const; +/** + * @public + */ +export type ReplicationState = (typeof ReplicationState)[keyof typeof ReplicationState]; + +/** + * @public + * @enum + */ +export const ReplicationType = { + NONE: "NONE", + REPLICA: "REPLICA", + SOURCE: "SOURCE", +} as const; +/** + * @public + */ +export type ReplicationType = (typeof ReplicationType)[keyof typeof ReplicationType]; + +/** + * @public + * @enum + */ +export const ParticipantState = { + CONNECTED: "CONNECTED", + DISCONNECTED: "DISCONNECTED", +} as const; +/** + * @public + */ +export type ParticipantState = (typeof ParticipantState)[keyof typeof ParticipantState]; + /** * @public * @enum @@ -149,3 +278,42 @@ export const EventErrorCode = { * @public */ export type EventErrorCode = (typeof EventErrorCode)[keyof typeof EventErrorCode]; + +/** + * @public + * @enum + */ +export const EventName = { + JOINED: "JOINED", + JOIN_ERROR: "JOIN_ERROR", + LEFT: "LEFT", + PUBLISH_ERROR: "PUBLISH_ERROR", + PUBLISH_STARTED: "PUBLISH_STARTED", + PUBLISH_STOPPED: "PUBLISH_STOPPED", + REPLICATION_STARTED: "REPLICATION_STARTED", + REPLICATION_STOPPED: "REPLICATION_STOPPED", + SUBSCRIBE_ERROR: "SUBSCRIBE_ERROR", + SUBSCRIBE_STARTED: "SUBSCRIBE_STARTED", + SUBSCRIBE_STOPPED: "SUBSCRIBE_STOPPED", +} as const; +/** + * @public + */ +export type EventName = (typeof EventName)[keyof typeof EventName]; + +/** + * @public + * @enum + */ +export const ParticipantRecordingFilterByRecordingState = { + ACTIVE: "ACTIVE", + FAILED: "FAILED", + STARTING: "STARTING", + STOPPED: "STOPPED", + STOPPING: "STOPPING", +} as const; +/** + * @public + */ +export type ParticipantRecordingFilterByRecordingState = + (typeof ParticipantRecordingFilterByRecordingState)[keyof typeof ParticipantRecordingFilterByRecordingState]; diff --git a/clients/client-ivs-realtime/src/models/models_0.ts b/clients/client-ivs-realtime/src/models/models_0.ts index 6b5224d7beb0..80933d1582e9 100644 --- a/clients/client-ivs-realtime/src/models/models_0.ts +++ b/clients/client-ivs-realtime/src/models/models_0.ts @@ -1,11 +1,22 @@ // smithy-typescript generated code import { + CompositionState, + DestinationState, EventErrorCode, + EventName, + IngestConfigurationState, IngestProtocol, ParticipantProtocol, + ParticipantRecordingFilterByRecordingState, ParticipantRecordingMediaType, + ParticipantRecordingState, + ParticipantState, + ParticipantTokenCapability, PipBehavior, PipPosition, + RecordingConfigurationFormat, + ReplicationState, + ReplicationType, ThumbnailRecordingMode, ThumbnailStorageType, VideoAspectRatio, @@ -175,20 +186,6 @@ export interface CreateIngestConfigurationRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const IngestConfigurationState = { - ACTIVE: "ACTIVE", - INACTIVE: "INACTIVE", -} as const; - -/** - * @public - */ -export type IngestConfigurationState = (typeof IngestConfigurationState)[keyof typeof IngestConfigurationState]; - /** *

Object specifying an ingest configuration.

* @public @@ -281,20 +278,6 @@ export interface CreateIngestConfigurationResponse { ingestConfiguration?: IngestConfiguration | undefined; } -/** - * @public - * @enum - */ -export const ParticipantTokenCapability = { - PUBLISH: "PUBLISH", - SUBSCRIBE: "SUBSCRIBE", -} as const; - -/** - * @public - */ -export type ParticipantTokenCapability = (typeof ParticipantTokenCapability)[keyof typeof ParticipantTokenCapability]; - /** * @public */ @@ -907,20 +890,6 @@ export interface ChannelDestinationConfiguration { encoderConfigurationArn?: string | undefined; } -/** - * @public - * @enum - */ -export const RecordingConfigurationFormat = { - HLS: "HLS", -} as const; - -/** - * @public - */ -export type RecordingConfigurationFormat = - (typeof RecordingConfigurationFormat)[keyof typeof RecordingConfigurationFormat]; - /** *

An object representing a configuration of HLS recordings for server-side composition.

* @public @@ -1062,24 +1031,6 @@ export interface DestinationDetail { s3?: S3Detail | undefined; } -/** - * @public - * @enum - */ -export const DestinationState = { - ACTIVE: "ACTIVE", - FAILED: "FAILED", - RECONNECTING: "RECONNECTING", - STARTING: "STARTING", - STOPPED: "STOPPED", - STOPPING: "STOPPING", -} as const; - -/** - * @public - */ -export type DestinationState = (typeof DestinationState)[keyof typeof DestinationState]; - /** *

Object specifying the status of a Destination.

* @public @@ -1286,23 +1237,6 @@ export interface LayoutConfiguration { pip?: PipConfiguration | undefined; } -/** - * @public - * @enum - */ -export const CompositionState = { - ACTIVE: "ACTIVE", - FAILED: "FAILED", - STARTING: "STARTING", - STOPPED: "STOPPED", - STOPPING: "STOPPING", -} as const; - -/** - * @public - */ -export type CompositionState = (typeof CompositionState)[keyof typeof CompositionState]; - /** *

Object specifying a Composition resource.

* @public @@ -1443,67 +1377,6 @@ export interface GetParticipantRequest { participantId: string | undefined; } -/** - * @public - * @enum - */ -export const ParticipantRecordingState = { - ACTIVE: "ACTIVE", - DISABLED: "DISABLED", - FAILED: "FAILED", - STARTING: "STARTING", - STOPPED: "STOPPED", - STOPPING: "STOPPING", -} as const; - -/** - * @public - */ -export type ParticipantRecordingState = (typeof ParticipantRecordingState)[keyof typeof ParticipantRecordingState]; - -/** - * @public - * @enum - */ -export const ReplicationState = { - ACTIVE: "ACTIVE", - STOPPED: "STOPPED", -} as const; - -/** - * @public - */ -export type ReplicationState = (typeof ReplicationState)[keyof typeof ReplicationState]; - -/** - * @public - * @enum - */ -export const ReplicationType = { - NONE: "NONE", - REPLICA: "REPLICA", - SOURCE: "SOURCE", -} as const; - -/** - * @public - */ -export type ReplicationType = (typeof ReplicationType)[keyof typeof ReplicationType]; - -/** - * @public - * @enum - */ -export const ParticipantState = { - CONNECTED: "CONNECTED", - DISCONNECTED: "DISCONNECTED", -} as const; - -/** - * @public - */ -export type ParticipantState = (typeof ParticipantState)[keyof typeof ParticipantState]; - /** *

Object describing a participant that has joined a stage.

* @public @@ -2193,29 +2066,6 @@ export interface ListParticipantEventsRequest { maxResults?: number | undefined; } -/** - * @public - * @enum - */ -export const EventName = { - JOINED: "JOINED", - JOIN_ERROR: "JOIN_ERROR", - LEFT: "LEFT", - PUBLISH_ERROR: "PUBLISH_ERROR", - PUBLISH_STARTED: "PUBLISH_STARTED", - PUBLISH_STOPPED: "PUBLISH_STOPPED", - REPLICATION_STARTED: "REPLICATION_STARTED", - REPLICATION_STOPPED: "REPLICATION_STOPPED", - SUBSCRIBE_ERROR: "SUBSCRIBE_ERROR", - SUBSCRIBE_STARTED: "SUBSCRIBE_STARTED", - SUBSCRIBE_STOPPED: "SUBSCRIBE_STOPPED", -} as const; - -/** - * @public - */ -export type EventName = (typeof EventName)[keyof typeof EventName]; - /** *

An occurrence during a stage session.

* @public @@ -2471,24 +2321,6 @@ export interface ListParticipantReplicasResponse { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const ParticipantRecordingFilterByRecordingState = { - ACTIVE: "ACTIVE", - FAILED: "FAILED", - STARTING: "STARTING", - STOPPED: "STOPPED", - STOPPING: "STOPPING", -} as const; - -/** - * @public - */ -export type ParticipantRecordingFilterByRecordingState = - (typeof ParticipantRecordingFilterByRecordingState)[keyof typeof ParticipantRecordingFilterByRecordingState]; - /** * @public */ diff --git a/clients/client-ivs/src/models/enums.ts b/clients/client-ivs/src/models/enums.ts index ef874a245e8f..de5b618d8808 100644 --- a/clients/client-ivs/src/models/enums.ts +++ b/clients/client-ivs/src/models/enums.ts @@ -1,4 +1,30 @@ // smithy-typescript generated code +/** + * @public + * @enum + */ +export const ContainerFormat = { + FragmentedMP4: "FRAGMENTED_MP4", + TS: "TS", +} as const; +/** + * @public + */ +export type ContainerFormat = (typeof ContainerFormat)[keyof typeof ContainerFormat]; + +/** + * @public + * @enum + */ +export const ChannelLatencyMode = { + LowLatency: "LOW", + NormalLatency: "NORMAL", +} as const; +/** + * @public + */ +export type ChannelLatencyMode = (typeof ChannelLatencyMode)[keyof typeof ChannelLatencyMode]; + /** * @public * @enum @@ -71,6 +97,34 @@ export const RenditionConfigurationRendition = { export type RenditionConfigurationRendition = (typeof RenditionConfigurationRendition)[keyof typeof RenditionConfigurationRendition]; +/** + * @public + * @enum + */ +export const RenditionConfigurationRenditionSelection = { + ALL: "ALL", + CUSTOM: "CUSTOM", + NONE: "NONE", +} as const; +/** + * @public + */ +export type RenditionConfigurationRenditionSelection = + (typeof RenditionConfigurationRenditionSelection)[keyof typeof RenditionConfigurationRenditionSelection]; + +/** + * @public + * @enum + */ +export const RecordingMode = { + Disabled: "DISABLED", + Interval: "INTERVAL", +} as const; +/** + * @public + */ +export type RecordingMode = (typeof RecordingMode)[keyof typeof RecordingMode]; + /** * @public * @enum @@ -86,3 +140,59 @@ export const ThumbnailConfigurationResolution = { */ export type ThumbnailConfigurationResolution = (typeof ThumbnailConfigurationResolution)[keyof typeof ThumbnailConfigurationResolution]; + +/** + * @public + * @enum + */ +export const ThumbnailConfigurationStorage = { + LATEST: "LATEST", + SEQUENTIAL: "SEQUENTIAL", +} as const; +/** + * @public + */ +export type ThumbnailConfigurationStorage = + (typeof ThumbnailConfigurationStorage)[keyof typeof ThumbnailConfigurationStorage]; + +/** + * @public + * @enum + */ +export const RecordingConfigurationState = { + Active: "ACTIVE", + CreateFailed: "CREATE_FAILED", + Creating: "CREATING", +} as const; +/** + * @public + */ +export type RecordingConfigurationState = + (typeof RecordingConfigurationState)[keyof typeof RecordingConfigurationState]; + +/** + * @public + * @enum + */ +export const StreamHealth = { + Starving: "STARVING", + StreamHealthy: "HEALTHY", + Unknown: "UNKNOWN", +} as const; +/** + * @public + */ +export type StreamHealth = (typeof StreamHealth)[keyof typeof StreamHealth]; + +/** + * @public + * @enum + */ +export const StreamState = { + StreamLive: "LIVE", + StreamOffline: "OFFLINE", +} as const; +/** + * @public + */ +export type StreamState = (typeof StreamState)[keyof typeof StreamState]; diff --git a/clients/client-ivs/src/models/models_0.ts b/clients/client-ivs/src/models/models_0.ts index 367da928c9e1..adf770c884fd 100644 --- a/clients/client-ivs/src/models/models_0.ts +++ b/clients/client-ivs/src/models/models_0.ts @@ -1,10 +1,18 @@ // smithy-typescript generated code import { + ChannelLatencyMode, ChannelType, + ContainerFormat, MultitrackMaximumResolution, MultitrackPolicy, + RecordingConfigurationState, + RecordingMode, RenditionConfigurationRendition, + RenditionConfigurationRenditionSelection, + StreamHealth, + StreamState, ThumbnailConfigurationResolution, + ThumbnailConfigurationStorage, TranscodePreset, } from "./enums"; @@ -19,34 +27,6 @@ export interface BatchGetChannelRequest { arns: string[] | undefined; } -/** - * @public - * @enum - */ -export const ContainerFormat = { - FragmentedMP4: "FRAGMENTED_MP4", - TS: "TS", -} as const; - -/** - * @public - */ -export type ContainerFormat = (typeof ContainerFormat)[keyof typeof ContainerFormat]; - -/** - * @public - * @enum - */ -export const ChannelLatencyMode = { - LowLatency: "LOW", - NormalLatency: "NORMAL", -} as const; - -/** - * @public - */ -export type ChannelLatencyMode = (typeof ChannelLatencyMode)[keyof typeof ChannelLatencyMode]; - /** *

A complex type that specifies multitrack input configuration.

* @public @@ -612,22 +592,6 @@ export interface DestinationConfiguration { s3?: S3DestinationConfiguration | undefined; } -/** - * @public - * @enum - */ -export const RenditionConfigurationRenditionSelection = { - ALL: "ALL", - CUSTOM: "CUSTOM", - NONE: "NONE", -} as const; - -/** - * @public - */ -export type RenditionConfigurationRenditionSelection = - (typeof RenditionConfigurationRenditionSelection)[keyof typeof RenditionConfigurationRenditionSelection]; - /** *

Object that describes which renditions should be recorded for a stream.

* @public @@ -653,35 +617,6 @@ export interface RenditionConfiguration { renditions?: RenditionConfigurationRendition[] | undefined; } -/** - * @public - * @enum - */ -export const RecordingMode = { - Disabled: "DISABLED", - Interval: "INTERVAL", -} as const; - -/** - * @public - */ -export type RecordingMode = (typeof RecordingMode)[keyof typeof RecordingMode]; - -/** - * @public - * @enum - */ -export const ThumbnailConfigurationStorage = { - LATEST: "LATEST", - SEQUENTIAL: "SEQUENTIAL", -} as const; - -/** - * @public - */ -export type ThumbnailConfigurationStorage = - (typeof ThumbnailConfigurationStorage)[keyof typeof ThumbnailConfigurationStorage]; - /** *

An object representing a configuration of thumbnails for recorded video.

* @public @@ -775,22 +710,6 @@ export interface CreateRecordingConfigurationRequest { renditionConfiguration?: RenditionConfiguration | undefined; } -/** - * @public - * @enum - */ -export const RecordingConfigurationState = { - Active: "ACTIVE", - CreateFailed: "CREATE_FAILED", - Creating: "CREATING", -} as const; - -/** - * @public - */ -export type RecordingConfigurationState = - (typeof RecordingConfigurationState)[keyof typeof RecordingConfigurationState]; - /** *

An object representing a configuration to record a channel stream.

* @public @@ -1081,35 +1000,6 @@ export interface GetStreamRequest { channelArn: string | undefined; } -/** - * @public - * @enum - */ -export const StreamHealth = { - Starving: "STARVING", - StreamHealthy: "HEALTHY", - Unknown: "UNKNOWN", -} as const; - -/** - * @public - */ -export type StreamHealth = (typeof StreamHealth)[keyof typeof StreamHealth]; - -/** - * @public - * @enum - */ -export const StreamState = { - StreamLive: "LIVE", - StreamOffline: "OFFLINE", -} as const; - -/** - * @public - */ -export type StreamState = (typeof StreamState)[keyof typeof StreamState]; - /** *

Specifies a live video stream that has been ingested and distributed.

* @public diff --git a/clients/client-ivschat/src/index.ts b/clients/client-ivschat/src/index.ts index 64aefaa9b358..069c7bf3e017 100644 --- a/clients/client-ivschat/src/index.ts +++ b/clients/client-ivschat/src/index.ts @@ -118,6 +118,7 @@ export type { IvschatExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-ivschat/src/models/enums.ts b/clients/client-ivschat/src/models/enums.ts new file mode 100644 index 000000000000..99932875185e --- /dev/null +++ b/clients/client-ivschat/src/models/enums.ts @@ -0,0 +1,97 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ChatTokenCapability = { + DELETE_MESSAGE: "DELETE_MESSAGE", + DISCONNECT_USER: "DISCONNECT_USER", + SEND_MESSAGE: "SEND_MESSAGE", +} as const; +/** + * @public + */ +export type ChatTokenCapability = (typeof ChatTokenCapability)[keyof typeof ChatTokenCapability]; + +/** + * @public + * @enum + */ +export const ResourceType = { + ROOM: "ROOM", +} as const; +/** + * @public + */ +export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", + OTHER: "OTHER", + UNKNOWN_OPERATION: "UNKNOWN_OPERATION", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const CreateLoggingConfigurationState = { + ACTIVE: "ACTIVE", +} as const; +/** + * @public + */ +export type CreateLoggingConfigurationState = + (typeof CreateLoggingConfigurationState)[keyof typeof CreateLoggingConfigurationState]; + +/** + * @public + * @enum + */ +export const FallbackResult = { + ALLOW: "ALLOW", + DENY: "DENY", +} as const; +/** + * @public + */ +export type FallbackResult = (typeof FallbackResult)[keyof typeof FallbackResult]; + +/** + * @public + * @enum + */ +export const LoggingConfigurationState = { + ACTIVE: "ACTIVE", + CREATE_FAILED: "CREATE_FAILED", + CREATING: "CREATING", + DELETE_FAILED: "DELETE_FAILED", + DELETING: "DELETING", + UPDATE_FAILED: "UPDATE_FAILED", + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type LoggingConfigurationState = (typeof LoggingConfigurationState)[keyof typeof LoggingConfigurationState]; + +/** + * @public + * @enum + */ +export const UpdateLoggingConfigurationState = { + ACTIVE: "ACTIVE", +} as const; +/** + * @public + */ +export type UpdateLoggingConfigurationState = + (typeof UpdateLoggingConfigurationState)[keyof typeof UpdateLoggingConfigurationState]; diff --git a/clients/client-ivschat/src/models/errors.ts b/clients/client-ivschat/src/models/errors.ts index 66fde9227a42..01a08e087ec3 100644 --- a/clients/client-ivschat/src/models/errors.ts +++ b/clients/client-ivschat/src/models/errors.ts @@ -1,8 +1,9 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; +import { ResourceType, ValidationExceptionReason } from "./enums"; import { IvschatServiceException as __BaseException } from "./IvschatServiceException"; -import { ResourceType, ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionField } from "./models_0"; /** *

diff --git a/clients/client-ivschat/src/models/models_0.ts b/clients/client-ivschat/src/models/models_0.ts index 18fb4039c75f..3e5673381683 100644 --- a/clients/client-ivschat/src/models/models_0.ts +++ b/clients/client-ivschat/src/models/models_0.ts @@ -1,18 +1,11 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const ChatTokenCapability = { - DELETE_MESSAGE: "DELETE_MESSAGE", - DISCONNECT_USER: "DISCONNECT_USER", - SEND_MESSAGE: "SEND_MESSAGE", -} as const; - -/** - * @public - */ -export type ChatTokenCapability = (typeof ChatTokenCapability)[keyof typeof ChatTokenCapability]; +import { + ChatTokenCapability, + CreateLoggingConfigurationState, + FallbackResult, + LoggingConfigurationState, + UpdateLoggingConfigurationState, +} from "./enums"; /** * @public @@ -81,19 +74,6 @@ export interface CreateChatTokenResponse { sessionExpirationTime?: Date | undefined; } -/** - * @public - * @enum - */ -export const ResourceType = { - ROOM: "ROOM", -} as const; - -/** - * @public - */ -export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; - /** *

This object is used in the ValidationException error.

* @public @@ -112,21 +92,6 @@ export interface ValidationExceptionField { message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", - OTHER: "OTHER", - UNKNOWN_OPERATION: "UNKNOWN_OPERATION", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** *

Specifies a CloudWatch Logs location where chat logs will be stored.

* @public @@ -265,20 +230,6 @@ export interface CreateLoggingConfigurationRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const CreateLoggingConfigurationState = { - ACTIVE: "ACTIVE", -} as const; - -/** - * @public - */ -export type CreateLoggingConfigurationState = - (typeof CreateLoggingConfigurationState)[keyof typeof CreateLoggingConfigurationState]; - /** * @public */ @@ -340,20 +291,6 @@ export interface CreateLoggingConfigurationResponse { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const FallbackResult = { - ALLOW: "ALLOW", - DENY: "DENY", -} as const; - -/** - * @public - */ -export type FallbackResult = (typeof FallbackResult)[keyof typeof FallbackResult]; - /** *

Configuration information for optional message review.

* @public @@ -594,25 +531,6 @@ export interface GetLoggingConfigurationRequest { identifier: string | undefined; } -/** - * @public - * @enum - */ -export const LoggingConfigurationState = { - ACTIVE: "ACTIVE", - CREATE_FAILED: "CREATE_FAILED", - CREATING: "CREATING", - DELETE_FAILED: "DELETE_FAILED", - DELETING: "DELETING", - UPDATE_FAILED: "UPDATE_FAILED", - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type LoggingConfigurationState = (typeof LoggingConfigurationState)[keyof typeof LoggingConfigurationState]; - /** * @public */ @@ -1105,20 +1023,6 @@ export interface UpdateLoggingConfigurationRequest { destinationConfiguration?: DestinationConfiguration | undefined; } -/** - * @public - * @enum - */ -export const UpdateLoggingConfigurationState = { - ACTIVE: "ACTIVE", -} as const; - -/** - * @public - */ -export type UpdateLoggingConfigurationState = - (typeof UpdateLoggingConfigurationState)[keyof typeof UpdateLoggingConfigurationState]; - /** * @public */ diff --git a/clients/client-kafkaconnect/src/index.ts b/clients/client-kafkaconnect/src/index.ts index 59e63751dd45..629777b30eae 100644 --- a/clients/client-kafkaconnect/src/index.ts +++ b/clients/client-kafkaconnect/src/index.ts @@ -13,6 +13,7 @@ export type { KafkaConnectExtensionConfiguration } from "./extensionConfiguratio export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-kafkaconnect/src/models/enums.ts b/clients/client-kafkaconnect/src/models/enums.ts new file mode 100644 index 000000000000..a42fbe01d531 --- /dev/null +++ b/clients/client-kafkaconnect/src/models/enums.ts @@ -0,0 +1,153 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ConnectorOperationStepState = { + CANCELLED: "CANCELLED", + COMPLETED: "COMPLETED", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + PENDING: "PENDING", +} as const; +/** + * @public + */ +export type ConnectorOperationStepState = + (typeof ConnectorOperationStepState)[keyof typeof ConnectorOperationStepState]; + +/** + * @public + * @enum + */ +export const ConnectorOperationStepType = { + FINALIZE_UPDATE: "FINALIZE_UPDATE", + INITIALIZE_UPDATE: "INITIALIZE_UPDATE", + UPDATE_CONNECTOR_CONFIGURATION: "UPDATE_CONNECTOR_CONFIGURATION", + UPDATE_WORKER_SETTING: "UPDATE_WORKER_SETTING", + VALIDATE_UPDATE: "VALIDATE_UPDATE", +} as const; +/** + * @public + */ +export type ConnectorOperationStepType = (typeof ConnectorOperationStepType)[keyof typeof ConnectorOperationStepType]; + +/** + * @public + * @enum + */ +export const ConnectorOperationState = { + PENDING: "PENDING", + ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE", + ROLLBACK_FAILED: "ROLLBACK_FAILED", + ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS", + UPDATE_COMPLETE: "UPDATE_COMPLETE", + UPDATE_FAILED: "UPDATE_FAILED", + UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS", +} as const; +/** + * @public + */ +export type ConnectorOperationState = (typeof ConnectorOperationState)[keyof typeof ConnectorOperationState]; + +/** + * @public + * @enum + */ +export const ConnectorOperationType = { + ISOLATE_CONNECTOR: "ISOLATE_CONNECTOR", + RESTORE_CONNECTOR: "RESTORE_CONNECTOR", + UPDATE_CONNECTOR_CONFIGURATION: "UPDATE_CONNECTOR_CONFIGURATION", + UPDATE_WORKER_SETTING: "UPDATE_WORKER_SETTING", +} as const; +/** + * @public + */ +export type ConnectorOperationType = (typeof ConnectorOperationType)[keyof typeof ConnectorOperationType]; + +/** + * @public + * @enum + */ +export const ConnectorState = { + CREATING: "CREATING", + DELETING: "DELETING", + FAILED: "FAILED", + RUNNING: "RUNNING", + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type ConnectorState = (typeof ConnectorState)[keyof typeof ConnectorState]; + +/** + * @public + * @enum + */ +export const KafkaClusterClientAuthenticationType = { + IAM: "IAM", + NONE: "NONE", +} as const; +/** + * @public + */ +export type KafkaClusterClientAuthenticationType = + (typeof KafkaClusterClientAuthenticationType)[keyof typeof KafkaClusterClientAuthenticationType]; + +/** + * @public + * @enum + */ +export const KafkaClusterEncryptionInTransitType = { + PLAINTEXT: "PLAINTEXT", + TLS: "TLS", +} as const; +/** + * @public + */ +export type KafkaClusterEncryptionInTransitType = + (typeof KafkaClusterEncryptionInTransitType)[keyof typeof KafkaClusterEncryptionInTransitType]; + +/** + * @public + * @enum + */ +export const CustomPluginState = { + ACTIVE: "ACTIVE", + CREATE_FAILED: "CREATE_FAILED", + CREATING: "CREATING", + DELETING: "DELETING", + UPDATE_FAILED: "UPDATE_FAILED", + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type CustomPluginState = (typeof CustomPluginState)[keyof typeof CustomPluginState]; + +/** + * @public + * @enum + */ +export const CustomPluginContentType = { + JAR: "JAR", + ZIP: "ZIP", +} as const; +/** + * @public + */ +export type CustomPluginContentType = (typeof CustomPluginContentType)[keyof typeof CustomPluginContentType]; + +/** + * @public + * @enum + */ +export const WorkerConfigurationState = { + ACTIVE: "ACTIVE", + DELETING: "DELETING", +} as const; +/** + * @public + */ +export type WorkerConfigurationState = (typeof WorkerConfigurationState)[keyof typeof WorkerConfigurationState]; diff --git a/clients/client-kafkaconnect/src/models/models_0.ts b/clients/client-kafkaconnect/src/models/models_0.ts index 730f3294d49e..bd267e6f1756 100644 --- a/clients/client-kafkaconnect/src/models/models_0.ts +++ b/clients/client-kafkaconnect/src/models/models_0.ts @@ -1,38 +1,16 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const ConnectorOperationStepState = { - CANCELLED: "CANCELLED", - COMPLETED: "COMPLETED", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - PENDING: "PENDING", -} as const; - -/** - * @public - */ -export type ConnectorOperationStepState = - (typeof ConnectorOperationStepState)[keyof typeof ConnectorOperationStepState]; - -/** - * @public - * @enum - */ -export const ConnectorOperationStepType = { - FINALIZE_UPDATE: "FINALIZE_UPDATE", - INITIALIZE_UPDATE: "INITIALIZE_UPDATE", - UPDATE_CONNECTOR_CONFIGURATION: "UPDATE_CONNECTOR_CONFIGURATION", - UPDATE_WORKER_SETTING: "UPDATE_WORKER_SETTING", - VALIDATE_UPDATE: "VALIDATE_UPDATE", -} as const; - -/** - * @public - */ -export type ConnectorOperationStepType = (typeof ConnectorOperationStepType)[keyof typeof ConnectorOperationStepType]; +import { + ConnectorOperationState, + ConnectorOperationStepState, + ConnectorOperationStepType, + ConnectorOperationType, + ConnectorState, + CustomPluginContentType, + CustomPluginState, + KafkaClusterClientAuthenticationType, + KafkaClusterEncryptionInTransitType, + WorkerConfigurationState, +} from "./enums"; /** *

Details of a step that is involved in a connector's operation.

@@ -52,41 +30,6 @@ export interface ConnectorOperationStep { stepState?: ConnectorOperationStepState | undefined; } -/** - * @public - * @enum - */ -export const ConnectorOperationState = { - PENDING: "PENDING", - ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE", - ROLLBACK_FAILED: "ROLLBACK_FAILED", - ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS", - UPDATE_COMPLETE: "UPDATE_COMPLETE", - UPDATE_FAILED: "UPDATE_FAILED", - UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type ConnectorOperationState = (typeof ConnectorOperationState)[keyof typeof ConnectorOperationState]; - -/** - * @public - * @enum - */ -export const ConnectorOperationType = { - ISOLATE_CONNECTOR: "ISOLATE_CONNECTOR", - RESTORE_CONNECTOR: "RESTORE_CONNECTOR", - UPDATE_CONNECTOR_CONFIGURATION: "UPDATE_CONNECTOR_CONFIGURATION", - UPDATE_WORKER_SETTING: "UPDATE_WORKER_SETTING", -} as const; - -/** - * @public - */ -export type ConnectorOperationType = (typeof ConnectorOperationType)[keyof typeof ConnectorOperationType]; - /** *

Summary of a connector operation.

* @public @@ -223,23 +166,6 @@ export interface CapacityDescription { provisionedCapacity?: ProvisionedCapacityDescription | undefined; } -/** - * @public - * @enum - */ -export const ConnectorState = { - CREATING: "CREATING", - DELETING: "DELETING", - FAILED: "FAILED", - RUNNING: "RUNNING", - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type ConnectorState = (typeof ConnectorState)[keyof typeof ConnectorState]; - /** *

The description of the VPC in which the connector resides.

* @public @@ -289,21 +215,6 @@ export interface KafkaClusterDescription { apacheKafkaCluster?: ApacheKafkaClusterDescription | undefined; } -/** - * @public - * @enum - */ -export const KafkaClusterClientAuthenticationType = { - IAM: "IAM", - NONE: "NONE", -} as const; - -/** - * @public - */ -export type KafkaClusterClientAuthenticationType = - (typeof KafkaClusterClientAuthenticationType)[keyof typeof KafkaClusterClientAuthenticationType]; - /** *

The client authentication information used in order to authenticate with the Apache * Kafka cluster.

@@ -318,21 +229,6 @@ export interface KafkaClusterClientAuthenticationDescription { authenticationType?: KafkaClusterClientAuthenticationType | undefined; } -/** - * @public - * @enum - */ -export const KafkaClusterEncryptionInTransitType = { - PLAINTEXT: "PLAINTEXT", - TLS: "TLS", -} as const; - -/** - * @public - */ -export type KafkaClusterEncryptionInTransitType = - (typeof KafkaClusterEncryptionInTransitType)[keyof typeof KafkaClusterEncryptionInTransitType]; - /** *

The description of the encryption in transit to the Apache Kafka cluster.

* @public @@ -592,38 +488,6 @@ export interface ConnectorSummary { workerConfiguration?: WorkerConfigurationDescription | undefined; } -/** - * @public - * @enum - */ -export const CustomPluginState = { - ACTIVE: "ACTIVE", - CREATE_FAILED: "CREATE_FAILED", - CREATING: "CREATING", - DELETING: "DELETING", - UPDATE_FAILED: "UPDATE_FAILED", - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type CustomPluginState = (typeof CustomPluginState)[keyof typeof CustomPluginState]; - -/** - * @public - * @enum - */ -export const CustomPluginContentType = { - JAR: "JAR", - ZIP: "ZIP", -} as const; - -/** - * @public - */ -export type CustomPluginContentType = (typeof CustomPluginContentType)[keyof typeof CustomPluginContentType]; - /** *

Details about a custom plugin file.

* @public @@ -818,20 +682,6 @@ export interface WorkerConfigurationRevisionSummary { revision?: number | undefined; } -/** - * @public - * @enum - */ -export const WorkerConfigurationState = { - ACTIVE: "ACTIVE", - DELETING: "DELETING", -} as const; - -/** - * @public - */ -export type WorkerConfigurationState = (typeof WorkerConfigurationState)[keyof typeof WorkerConfigurationState]; - /** *

The summary of a worker configuration.

* @public diff --git a/clients/client-keyspaces/src/index.ts b/clients/client-keyspaces/src/index.ts index 03b5f10d25ce..83ddbd21f03d 100644 --- a/clients/client-keyspaces/src/index.ts +++ b/clients/client-keyspaces/src/index.ts @@ -13,6 +13,7 @@ export type { KeyspacesExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-keyspaces/src/models/enums.ts b/clients/client-keyspaces/src/models/enums.ts new file mode 100644 index 000000000000..466312548526 --- /dev/null +++ b/clients/client-keyspaces/src/models/enums.ts @@ -0,0 +1,180 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ThroughputMode = { + PAY_PER_REQUEST: "PAY_PER_REQUEST", + PROVISIONED: "PROVISIONED", +} as const; +/** + * @public + */ +export type ThroughputMode = (typeof ThroughputMode)[keyof typeof ThroughputMode]; + +/** + * @public + * @enum + */ +export const CdcPropagateTags = { + NONE: "NONE", + TABLE: "TABLE", +} as const; +/** + * @public + */ +export type CdcPropagateTags = (typeof CdcPropagateTags)[keyof typeof CdcPropagateTags]; + +/** + * @public + * @enum + */ +export const CdcStatus = { + DISABLED: "DISABLED", + DISABLING: "DISABLING", + ENABLED: "ENABLED", + ENABLING: "ENABLING", +} as const; +/** + * @public + */ +export type CdcStatus = (typeof CdcStatus)[keyof typeof CdcStatus]; + +/** + * @public + * @enum + */ +export const ViewType = { + KEYS_ONLY: "KEYS_ONLY", + NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES", + NEW_IMAGE: "NEW_IMAGE", + OLD_IMAGE: "OLD_IMAGE", +} as const; +/** + * @public + */ +export type ViewType = (typeof ViewType)[keyof typeof ViewType]; + +/** + * @public + * @enum + */ +export const ClientSideTimestampsStatus = { + ENABLED: "ENABLED", +} as const; +/** + * @public + */ +export type ClientSideTimestampsStatus = (typeof ClientSideTimestampsStatus)[keyof typeof ClientSideTimestampsStatus]; + +/** + * @public + * @enum + */ +export const SortOrder = { + ASC: "ASC", + DESC: "DESC", +} as const; +/** + * @public + */ +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; + +/** + * @public + * @enum + */ +export const Rs = { + MULTI_REGION: "MULTI_REGION", + SINGLE_REGION: "SINGLE_REGION", +} as const; +/** + * @public + */ +export type Rs = (typeof Rs)[keyof typeof Rs]; + +/** + * @public + * @enum + */ +export const EncryptionType = { + AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY", + CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY", +} as const; +/** + * @public + */ +export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType]; + +/** + * @public + * @enum + */ +export const PointInTimeRecoveryStatus = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +} as const; +/** + * @public + */ +export type PointInTimeRecoveryStatus = (typeof PointInTimeRecoveryStatus)[keyof typeof PointInTimeRecoveryStatus]; + +/** + * @public + * @enum + */ +export const TimeToLiveStatus = { + ENABLED: "ENABLED", +} as const; +/** + * @public + */ +export type TimeToLiveStatus = (typeof TimeToLiveStatus)[keyof typeof TimeToLiveStatus]; + +/** + * @public + * @enum + */ +export const KeyspaceStatus = { + ACTIVE: "ACTIVE", + CREATING: "CREATING", + DELETING: "DELETING", + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type KeyspaceStatus = (typeof KeyspaceStatus)[keyof typeof KeyspaceStatus]; + +/** + * @public + * @enum + */ +export const TableStatus = { + ACTIVE: "ACTIVE", + CREATING: "CREATING", + DELETED: "DELETED", + DELETING: "DELETING", + INACCESSIBLE_ENCRYPTION_CREDENTIALS: "INACCESSIBLE_ENCRYPTION_CREDENTIALS", + RESTORING: "RESTORING", + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type TableStatus = (typeof TableStatus)[keyof typeof TableStatus]; + +/** + * @public + * @enum + */ +export const TypeStatus = { + ACTIVE: "ACTIVE", + CREATING: "CREATING", + DELETING: "DELETING", + RESTORING: "RESTORING", +} as const; +/** + * @public + */ +export type TypeStatus = (typeof TypeStatus)[keyof typeof TypeStatus]; diff --git a/clients/client-keyspaces/src/models/models_0.ts b/clients/client-keyspaces/src/models/models_0.ts index 80df2c787b58..c7b596ad5646 100644 --- a/clients/client-keyspaces/src/models/models_0.ts +++ b/clients/client-keyspaces/src/models/models_0.ts @@ -1,4 +1,20 @@ // smithy-typescript generated code +import { + CdcPropagateTags, + CdcStatus, + ClientSideTimestampsStatus, + EncryptionType, + KeyspaceStatus, + PointInTimeRecoveryStatus, + Rs, + SortOrder, + TableStatus, + ThroughputMode, + TimeToLiveStatus, + TypeStatus, + ViewType, +} from "./enums"; + /** *

The auto scaling policy that scales a table based on the ratio of consumed to provisioned capacity.

* @public @@ -89,20 +105,6 @@ export interface AutoScalingSpecification { readCapacityAutoScaling?: AutoScalingSettings | undefined; } -/** - * @public - * @enum - */ -export const ThroughputMode = { - PAY_PER_REQUEST: "PAY_PER_REQUEST", - PROVISIONED: "PROVISIONED", -} as const; - -/** - * @public - */ -export type ThroughputMode = (typeof ThroughputMode)[keyof typeof ThroughputMode]; - /** *

Amazon Keyspaces has two read/write capacity modes for processing reads and writes on your tables:

  • On-demand (default)

  • Provisioned

The read/write capacity mode that you choose controls how you are charged for read and write throughput and how table throughput capacity is managed.

For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.

* @public @@ -157,36 +159,6 @@ export interface CapacitySpecificationSummary { lastUpdateToPayPerRequestTimestamp?: Date | undefined; } -/** - * @public - * @enum - */ -export const CdcPropagateTags = { - NONE: "NONE", - TABLE: "TABLE", -} as const; - -/** - * @public - */ -export type CdcPropagateTags = (typeof CdcPropagateTags)[keyof typeof CdcPropagateTags]; - -/** - * @public - * @enum - */ -export const CdcStatus = { - DISABLED: "DISABLED", - DISABLING: "DISABLING", - ENABLED: "ENABLED", - ENABLING: "ENABLING", -} as const; - -/** - * @public - */ -export type CdcStatus = (typeof CdcStatus)[keyof typeof CdcStatus]; - /** *

Describes a tag. A tag is a key-value pair. You can add up to 50 tags to a single Amazon Keyspaces resource.

Amazon Web Services-assigned tag names and values are automatically assigned the aws: prefix, which the user cannot assign. Amazon Web Services-assigned tag names do not count towards the tag limit of 50. User-assigned tag names have the prefix user: in the Cost Allocation Report. You cannot backdate the application of a tag.

For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.

* @public @@ -205,22 +177,6 @@ export interface Tag { value: string | undefined; } -/** - * @public - * @enum - */ -export const ViewType = { - KEYS_ONLY: "KEYS_ONLY", - NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES", - NEW_IMAGE: "NEW_IMAGE", - OLD_IMAGE: "OLD_IMAGE", -} as const; - -/** - * @public - */ -export type ViewType = (typeof ViewType)[keyof typeof ViewType]; - /** *

The settings for the CDC stream of a table. For more information about CDC streams, see Working with change data capture (CDC) streams in Amazon Keyspaces in the Amazon Keyspaces Developer Guide.

* @public @@ -269,19 +225,6 @@ export interface CdcSpecificationSummary { viewType?: ViewType | undefined; } -/** - * @public - * @enum - */ -export const ClientSideTimestampsStatus = { - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type ClientSideTimestampsStatus = (typeof ClientSideTimestampsStatus)[keyof typeof ClientSideTimestampsStatus]; - /** *

The client-side timestamp setting of the table.

For more information, see How it works: Amazon Keyspaces client-side timestamps in the Amazon Keyspaces Developer Guide.

* @public @@ -294,20 +237,6 @@ export interface ClientSideTimestamps { status: ClientSideTimestampsStatus | undefined; } -/** - * @public - * @enum - */ -export const SortOrder = { - ASC: "ASC", - DESC: "DESC", -} as const; - -/** - * @public - */ -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; - /** *

The optional clustering column portion of your primary key determines how the data is clustered and sorted within each partition.

* @public @@ -356,20 +285,6 @@ export interface Comment { message: string | undefined; } -/** - * @public - * @enum - */ -export const Rs = { - MULTI_REGION: "MULTI_REGION", - SINGLE_REGION: "SINGLE_REGION", -} as const; - -/** - * @public - */ -export type Rs = (typeof Rs)[keyof typeof Rs]; - /** *

The replication specification of the keyspace includes:

  • regionList - the Amazon Web Services Regions where the keyspace is replicated in.

  • replicationStrategy - the required value is SINGLE_REGION or MULTI_REGION.

* @public @@ -422,20 +337,6 @@ export interface CreateKeyspaceResponse { resourceArn: string | undefined; } -/** - * @public - * @enum - */ -export const EncryptionType = { - AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY", - CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY", -} as const; - -/** - * @public - */ -export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType]; - /** *

Amazon Keyspaces encrypts and decrypts the table data at rest transparently and integrates with Key Management Service for storing and managing the encryption key. You can choose one of the following KMS keys (KMS keys):

  • Amazon Web Services owned key - This is the default encryption type. The key is owned by Amazon Keyspaces (no additional charge).

  • Customer managed key - This key is stored in your account and is created, owned, and managed by you. You have full control over the customer managed key (KMS charges apply).

For more information about encryption at rest in Amazon Keyspaces, see Encryption at rest in the Amazon Keyspaces Developer Guide.

For more information about KMS, see KMS management service concepts in the Key Management Service Developer Guide.

* @public @@ -454,20 +355,6 @@ export interface EncryptionSpecification { kmsKeyIdentifier?: string | undefined; } -/** - * @public - * @enum - */ -export const PointInTimeRecoveryStatus = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type PointInTimeRecoveryStatus = (typeof PointInTimeRecoveryStatus)[keyof typeof PointInTimeRecoveryStatus]; - /** *

Point-in-time recovery (PITR) helps protect your Amazon Keyspaces tables from accidental write or delete operations by providing you continuous backups of your table data.

For more information, see Point-in-time recovery in the Amazon Keyspaces Developer Guide.

* @public @@ -558,19 +445,6 @@ export interface SchemaDefinition { staticColumns?: StaticColumn[] | undefined; } -/** - * @public - * @enum - */ -export const TimeToLiveStatus = { - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type TimeToLiveStatus = (typeof TimeToLiveStatus)[keyof typeof TimeToLiveStatus]; - /** *

Enable custom Time to Live (TTL) settings for rows and columns without setting a TTL default for the specified table.

For more information, see Enabling TTL on tables in the Amazon Keyspaces Developer Guide.

* @public @@ -824,22 +698,6 @@ export interface GetKeyspaceRequest { keyspaceName: string | undefined; } -/** - * @public - * @enum - */ -export const KeyspaceStatus = { - ACTIVE: "ACTIVE", - CREATING: "CREATING", - DELETING: "DELETING", - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type KeyspaceStatus = (typeof KeyspaceStatus)[keyof typeof KeyspaceStatus]; - /** *

This shows the summary status of the keyspace after a new Amazon Web Services Region was added.

* @public @@ -934,25 +792,6 @@ export interface PointInTimeRecoverySummary { earliestRestorableTimestamp?: Date | undefined; } -/** - * @public - * @enum - */ -export const TableStatus = { - ACTIVE: "ACTIVE", - CREATING: "CREATING", - DELETED: "DELETED", - DELETING: "DELETING", - INACCESSIBLE_ENCRYPTION_CREDENTIALS: "INACCESSIBLE_ENCRYPTION_CREDENTIALS", - RESTORING: "RESTORING", - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type TableStatus = (typeof TableStatus)[keyof typeof TableStatus]; - /** *

The Region-specific settings of a multi-Region table in the specified Amazon Web Services Region.

If the multi-Region table is using provisioned capacity and has optional auto scaling policies configured, note that the Region specific summary returns both read and write capacity settings. But only Region specific read capacity settings can be configured for a multi-Region table. In a multi-Region table, your write capacity units will be synced across all Amazon Web Services Regions to ensure that there is enough capacity to replicate write events across Regions.

* @public @@ -1165,22 +1004,6 @@ export interface GetTypeRequest { typeName: string | undefined; } -/** - * @public - * @enum - */ -export const TypeStatus = { - ACTIVE: "ACTIVE", - CREATING: "CREATING", - DELETING: "DELETING", - RESTORING: "RESTORING", -} as const; - -/** - * @public - */ -export type TypeStatus = (typeof TypeStatus)[keyof typeof TypeStatus]; - /** * @public */ diff --git a/clients/client-license-manager-linux-subscriptions/src/index.ts b/clients/client-license-manager-linux-subscriptions/src/index.ts index 85c97eec3f25..0c701c123b75 100644 --- a/clients/client-license-manager-linux-subscriptions/src/index.ts +++ b/clients/client-license-manager-linux-subscriptions/src/index.ts @@ -14,6 +14,7 @@ export type { LicenseManagerLinuxSubscriptionsExtensionConfiguration } from "./e export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-license-manager-linux-subscriptions/src/models/enums.ts b/clients/client-license-manager-linux-subscriptions/src/models/enums.ts new file mode 100644 index 000000000000..e5eefea0a571 --- /dev/null +++ b/clients/client-license-manager-linux-subscriptions/src/models/enums.ts @@ -0,0 +1,127 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const Operator = { + /** + * Contains operator + */ + CONTAINS: "Contains", + /** + * Equal operator + */ + EQUAL: "Equal", + /** + * Not equal operator + */ + NOT_EQUAL: "NotEqual", +} as const; +/** + * @public + */ +export type Operator = (typeof Operator)[keyof typeof Operator]; + +/** + * @public + * @enum + */ +export const SubscriptionProviderSource = { + /** + * RedHat subscription provider namespace + */ + RedHat: "RedHat", +} as const; +/** + * @public + */ +export type SubscriptionProviderSource = (typeof SubscriptionProviderSource)[keyof typeof SubscriptionProviderSource]; + +/** + * @public + * @enum + */ +export const SubscriptionProviderStatus = { + /** + * ACTIVE status + */ + ACTIVE: "ACTIVE", + /** + * INVALID status + */ + INVALID: "INVALID", + /** + * PENDING status + */ + PENDING: "PENDING", +} as const; +/** + * @public + */ +export type SubscriptionProviderStatus = (typeof SubscriptionProviderStatus)[keyof typeof SubscriptionProviderStatus]; + +/** + * @public + * @enum + */ +export const LinuxSubscriptionsDiscovery = { + /** + * Disabled LinuxSubscriptionsDiscovery + */ + Disabled: "Disabled", + /** + * Enabled LinuxSubscriptionsDiscovery + */ + Enabled: "Enabled", +} as const; +/** + * @public + */ +export type LinuxSubscriptionsDiscovery = + (typeof LinuxSubscriptionsDiscovery)[keyof typeof LinuxSubscriptionsDiscovery]; + +/** + * @public + * @enum + */ +export const OrganizationIntegration = { + /** + * Disabled OrganizationIntegration + */ + Disabled: "Disabled", + /** + * Enabled OrganizationIntegration + */ + Enabled: "Enabled", +} as const; +/** + * @public + */ +export type OrganizationIntegration = (typeof OrganizationIntegration)[keyof typeof OrganizationIntegration]; + +/** + * @public + * @enum + */ +export const Status = { + /** + * Completed status + */ + Completed: "Completed", + /** + * Failed status + */ + Failed: "Failed", + /** + * InProgress status + */ + InProgress: "InProgress", + /** + * Successful status + */ + Successful: "Successful", +} as const; +/** + * @public + */ +export type Status = (typeof Status)[keyof typeof Status]; diff --git a/clients/client-license-manager-linux-subscriptions/src/models/models_0.ts b/clients/client-license-manager-linux-subscriptions/src/models/models_0.ts index e4e8fee541d2..4053655fa8ad 100644 --- a/clients/client-license-manager-linux-subscriptions/src/models/models_0.ts +++ b/clients/client-license-manager-linux-subscriptions/src/models/models_0.ts @@ -1,4 +1,13 @@ // smithy-typescript generated code +import { + LinuxSubscriptionsDiscovery, + Operator, + OrganizationIntegration, + Status, + SubscriptionProviderSource, + SubscriptionProviderStatus, +} from "./enums"; + /** * @public */ @@ -15,30 +24,6 @@ export interface DeregisterSubscriptionProviderRequest { */ export interface DeregisterSubscriptionProviderResponse {} -/** - * @public - * @enum - */ -export const Operator = { - /** - * Contains operator - */ - CONTAINS: "Contains", - /** - * Equal operator - */ - EQUAL: "Equal", - /** - * Not equal operator - */ - NOT_EQUAL: "NotEqual", -} as const; - -/** - * @public - */ -export type Operator = (typeof Operator)[keyof typeof Operator]; - /** *

A filter object that is used to return more specific results from a describe operation. * Filters can be used to match a set of resources by specific criteria.

@@ -75,46 +60,6 @@ export interface GetRegisteredSubscriptionProviderRequest { SubscriptionProviderArn: string | undefined; } -/** - * @public - * @enum - */ -export const SubscriptionProviderSource = { - /** - * RedHat subscription provider namespace - */ - RedHat: "RedHat", -} as const; - -/** - * @public - */ -export type SubscriptionProviderSource = (typeof SubscriptionProviderSource)[keyof typeof SubscriptionProviderSource]; - -/** - * @public - * @enum - */ -export const SubscriptionProviderStatus = { - /** - * ACTIVE status - */ - ACTIVE: "ACTIVE", - /** - * INVALID status - */ - INVALID: "INVALID", - /** - * PENDING status - */ - PENDING: "PENDING", -} as const; - -/** - * @public - */ -export type SubscriptionProviderStatus = (typeof SubscriptionProviderStatus)[keyof typeof SubscriptionProviderStatus]; - /** * @public */ @@ -165,47 +110,6 @@ export interface GetRegisteredSubscriptionProviderResponse { */ export interface GetServiceSettingsRequest {} -/** - * @public - * @enum - */ -export const LinuxSubscriptionsDiscovery = { - /** - * Disabled LinuxSubscriptionsDiscovery - */ - Disabled: "Disabled", - /** - * Enabled LinuxSubscriptionsDiscovery - */ - Enabled: "Enabled", -} as const; - -/** - * @public - */ -export type LinuxSubscriptionsDiscovery = - (typeof LinuxSubscriptionsDiscovery)[keyof typeof LinuxSubscriptionsDiscovery]; - -/** - * @public - * @enum - */ -export const OrganizationIntegration = { - /** - * Disabled OrganizationIntegration - */ - Disabled: "Disabled", - /** - * Enabled OrganizationIntegration - */ - Enabled: "Enabled", -} as const; - -/** - * @public - */ -export type OrganizationIntegration = (typeof OrganizationIntegration)[keyof typeof OrganizationIntegration]; - /** *

Lists the settings defined for discovering Linux subscriptions.

* @public @@ -224,34 +128,6 @@ export interface LinuxSubscriptionsDiscoverySettings { OrganizationIntegration: OrganizationIntegration | undefined; } -/** - * @public - * @enum - */ -export const Status = { - /** - * Completed status - */ - Completed: "Completed", - /** - * Failed status - */ - Failed: "Failed", - /** - * InProgress status - */ - InProgress: "InProgress", - /** - * Successful status - */ - Successful: "Successful", -} as const; - -/** - * @public - */ -export type Status = (typeof Status)[keyof typeof Status]; - /** * @public */ diff --git a/clients/client-license-manager-user-subscriptions/src/index.ts b/clients/client-license-manager-user-subscriptions/src/index.ts index 7c51ebe3b178..81ae20fd3b91 100644 --- a/clients/client-license-manager-user-subscriptions/src/index.ts +++ b/clients/client-license-manager-user-subscriptions/src/index.ts @@ -13,6 +13,7 @@ export type { LicenseManagerUserSubscriptionsExtensionConfiguration } from "./ex export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-license-manager-user-subscriptions/src/models/enums.ts b/clients/client-license-manager-user-subscriptions/src/models/enums.ts new file mode 100644 index 000000000000..c1fd7484ad41 --- /dev/null +++ b/clients/client-license-manager-user-subscriptions/src/models/enums.ts @@ -0,0 +1,93 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ActiveDirectoryType = { + /** + * AWS_MANAGED type of Active Directory + */ + AWS_MANAGED: "AWS_MANAGED", + /** + * SELF_MANAGED type of Active Directory + */ + SELF_MANAGED: "SELF_MANAGED", +} as const; +/** + * @public + */ +export type ActiveDirectoryType = (typeof ActiveDirectoryType)[keyof typeof ActiveDirectoryType]; + +/** + * @public + * @enum + */ +export const ServerType = { + /** + * + */ + RDS_SAL: "RDS_SAL", +} as const; +/** + * @public + */ +export type ServerType = (typeof ServerType)[keyof typeof ServerType]; + +/** + * @public + * @enum + */ +export const LicenseServerEndpointProvisioningStatus = { + /** + * + */ + DELETED: "DELETED", + /** + * + */ + DELETING: "DELETING", + /** + * + */ + DELETION_FAILED: "DELETION_FAILED", + /** + * + */ + PROVISIONED: "PROVISIONED", + /** + * + */ + PROVISIONING: "PROVISIONING", + /** + * + */ + PROVISIONING_FAILED: "PROVISIONING_FAILED", +} as const; +/** + * @public + */ +export type LicenseServerEndpointProvisioningStatus = + (typeof LicenseServerEndpointProvisioningStatus)[keyof typeof LicenseServerEndpointProvisioningStatus]; + +/** + * @public + * @enum + */ +export const LicenseServerHealthStatus = { + /** + * + */ + HEALTHY: "HEALTHY", + /** + * + */ + NOT_APPLICABLE: "NOT_APPLICABLE", + /** + * + */ + UNHEALTHY: "UNHEALTHY", +} as const; +/** + * @public + */ +export type LicenseServerHealthStatus = (typeof LicenseServerHealthStatus)[keyof typeof LicenseServerHealthStatus]; diff --git a/clients/client-license-manager-user-subscriptions/src/models/models_0.ts b/clients/client-license-manager-user-subscriptions/src/models/models_0.ts index 3d4d5831a49a..a95b71e34c26 100644 --- a/clients/client-license-manager-user-subscriptions/src/models/models_0.ts +++ b/clients/client-license-manager-user-subscriptions/src/models/models_0.ts @@ -1,4 +1,11 @@ // smithy-typescript generated code +import { + ActiveDirectoryType, + LicenseServerEndpointProvisioningStatus, + LicenseServerHealthStatus, + ServerType, +} from "./enums"; + /** *

Contains a credentials secret that's stored in Secrets Manager.

* @public @@ -98,26 +105,6 @@ export interface ActiveDirectorySettings { DomainNetworkSettings?: DomainNetworkSettings | undefined; } -/** - * @public - * @enum - */ -export const ActiveDirectoryType = { - /** - * AWS_MANAGED type of Active Directory - */ - AWS_MANAGED: "AWS_MANAGED", - /** - * SELF_MANAGED type of Active Directory - */ - SELF_MANAGED: "SELF_MANAGED", -} as const; - -/** - * @public - */ -export type ActiveDirectoryType = (typeof ActiveDirectoryType)[keyof typeof ActiveDirectoryType]; - /** *

Details about an Active Directory identity provider.

* @public @@ -340,22 +327,6 @@ export namespace ServerSettings { } } -/** - * @public - * @enum - */ -export const ServerType = { - /** - * - */ - RDS_SAL: "RDS_SAL", -} as const; - -/** - * @public - */ -export type ServerType = (typeof ServerType)[keyof typeof ServerType]; - /** *

The settings to configure your license server.

* @public @@ -431,67 +402,6 @@ export interface DeleteLicenseServerEndpointRequest { ServerType: ServerType | undefined; } -/** - * @public - * @enum - */ -export const LicenseServerEndpointProvisioningStatus = { - /** - * - */ - DELETED: "DELETED", - /** - * - */ - DELETING: "DELETING", - /** - * - */ - DELETION_FAILED: "DELETION_FAILED", - /** - * - */ - PROVISIONED: "PROVISIONED", - /** - * - */ - PROVISIONING: "PROVISIONING", - /** - * - */ - PROVISIONING_FAILED: "PROVISIONING_FAILED", -} as const; - -/** - * @public - */ -export type LicenseServerEndpointProvisioningStatus = - (typeof LicenseServerEndpointProvisioningStatus)[keyof typeof LicenseServerEndpointProvisioningStatus]; - -/** - * @public - * @enum - */ -export const LicenseServerHealthStatus = { - /** - * - */ - HEALTHY: "HEALTHY", - /** - * - */ - NOT_APPLICABLE: "NOT_APPLICABLE", - /** - * - */ - UNHEALTHY: "UNHEALTHY", -} as const; - -/** - * @public - */ -export type LicenseServerHealthStatus = (typeof LicenseServerHealthStatus)[keyof typeof LicenseServerHealthStatus]; - /** *

Information about a Remote Desktop Services (RDS) license server.

* @public diff --git a/clients/client-location/src/index.ts b/clients/client-location/src/index.ts index 20b8fe81707c..6f2cb531646c 100644 --- a/clients/client-location/src/index.ts +++ b/clients/client-location/src/index.ts @@ -13,6 +13,7 @@ export type { LocationExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-location/src/models/enums.ts b/clients/client-location/src/models/enums.ts new file mode 100644 index 000000000000..3705340f139c --- /dev/null +++ b/clients/client-location/src/models/enums.ts @@ -0,0 +1,88 @@ +// smithy-typescript generated code +/** + * @public + */ +export type Status = "Active" | "Expired"; + +/** + * @public + */ +export type ValidationExceptionReason = + | "CannotParse" + | "FieldValidationFailed" + | "Missing" + | "Other" + | "UnknownField" + | "UnknownOperation"; + +/** + * @public + */ +export type BatchItemErrorCode = + | "AccessDeniedError" + | "ConflictError" + | "InternalServerError" + | "ResourceNotFoundError" + | "ThrottlingError" + | "ValidationError"; + +/** + * @public + */ +export type DistanceUnit = "Kilometers" | "Miles"; + +/** + * @public + */ +export type OptimizationMode = "FastestRoute" | "ShortestRoute"; + +/** + * @public + */ +export type TravelMode = "Bicycle" | "Car" | "Motorcycle" | "Truck" | "Walking"; + +/** + * @public + */ +export type DimensionUnit = "Feet" | "Meters"; + +/** + * @public + */ +export type VehicleWeightUnit = "Kilograms" | "Pounds"; + +/** + * @public + */ +export type RouteMatrixErrorCode = + | "DeparturePositionNotFound" + | "DestinationPositionNotFound" + | "OtherValidationError" + | "PositionsNotFound" + | "RouteNotFound" + | "RouteTooLong"; + +/** + * @public + */ +export type PricingPlan = "MobileAssetManagement" | "MobileAssetTracking" | "RequestBasedUsage"; + +/** + * @public + */ +export type IntendedUse = "SingleUse" | "Storage"; + +/** + * @public + */ +export type PositionFiltering = "AccuracyBased" | "DistanceBased" | "TimeBased"; + +/** + * @public + */ +export type ForecastedGeofenceEventType = "ENTER" | "EXIT" | "IDLE"; + +/** + * @public + */ +export type SpeedUnit = "KilometersPerHour" | "MilesPerHour"; diff --git a/clients/client-location/src/models/errors.ts b/clients/client-location/src/models/errors.ts index 6623cd7d06c1..e88abd1cb62c 100644 --- a/clients/client-location/src/models/errors.ts +++ b/clients/client-location/src/models/errors.ts @@ -1,8 +1,9 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; +import { ValidationExceptionReason } from "./enums"; import { LocationServiceException as __BaseException } from "./LocationServiceException"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionField } from "./models_0"; /** *

The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.

diff --git a/clients/client-location/src/models/models_0.ts b/clients/client-location/src/models/models_0.ts index 0b39c49e3025..a75cfae30d5f 100644 --- a/clients/client-location/src/models/models_0.ts +++ b/clients/client-location/src/models/models_0.ts @@ -1,4 +1,20 @@ // smithy-typescript generated code +import { + BatchItemErrorCode, + DimensionUnit, + DistanceUnit, + ForecastedGeofenceEventType, + IntendedUse, + OptimizationMode, + PositionFiltering, + PricingPlan, + RouteMatrixErrorCode, + SpeedUnit, + Status, + TravelMode, + VehicleWeightUnit, +} from "./enums"; + /** *

Unique identifying information for an Android app. Consists of a package name and a 20 byte SHA-1 certificate fingerprint.

* @public @@ -17,11 +33,6 @@ export interface AndroidApp { CertificateFingerprint: string | undefined; } -/** - * @public - */ -export type Status = "Active" | "Expired"; - /** *

Options for filtering API keys.

* @public @@ -170,17 +181,6 @@ export interface ValidationExceptionField { Message: string | undefined; } -/** - * @public - */ -export type ValidationExceptionReason = - | "CannotParse" - | "FieldValidationFailed" - | "Missing" - | "Other" - | "UnknownField" - | "UnknownOperation"; - /** * @public */ @@ -458,17 +458,6 @@ export interface BatchDeleteDevicePositionHistoryRequest { DeviceIds: string[] | undefined; } -/** - * @public - */ -export type BatchItemErrorCode = - | "AccessDeniedError" - | "ConflictError" - | "InternalServerError" - | "ResourceNotFoundError" - | "ThrottlingError" - | "ValidationError"; - /** *

Contains the batch request error details associated with the request.

* @public @@ -974,26 +963,6 @@ export interface CalculateRouteCarModeOptions { AvoidTolls?: boolean | undefined; } -/** - * @public - */ -export type DistanceUnit = "Kilometers" | "Miles"; - -/** - * @public - */ -export type OptimizationMode = "FastestRoute" | "ShortestRoute"; - -/** - * @public - */ -export type TravelMode = "Bicycle" | "Car" | "Motorcycle" | "Truck" | "Walking"; - -/** - * @public - */ -export type DimensionUnit = "Feet" | "Meters"; - /** *

Contains details about the truck dimensions in the unit of measurement that you specify. Used to filter out roads that can't support or allow the specified dimensions for requests that specify TravelMode as Truck.

* @public @@ -1024,11 +993,6 @@ export interface TruckDimensions { Unit?: DimensionUnit | undefined; } -/** - * @public - */ -export type VehicleWeightUnit = "Kilograms" | "Pounds"; - /** *

Contains details about the truck's weight specifications. Used to avoid roads that can't support or allow the total weight for requests that specify TravelMode as Truck.

* @public @@ -1375,17 +1339,6 @@ export interface CalculateRouteMatrixRequest { Key?: string | undefined; } -/** - * @public - */ -export type RouteMatrixErrorCode = - | "DeparturePositionNotFound" - | "DestinationPositionNotFound" - | "OtherValidationError" - | "PositionsNotFound" - | "RouteNotFound" - | "RouteTooLong"; - /** *

An error corresponding to the calculation of a route between the DeparturePosition and DestinationPosition.

The error code can be one of the following:

  • RouteNotFound - Unable to find a valid route with the given parameters.

  • RouteTooLong - Route calculation went beyond the maximum size of a route and was terminated before completion.

  • PositionsNotFound - One or more of the input positions were not found on the route network.

  • DestinationPositionNotFound - The destination position was not found on the route network.

  • DeparturePositionNotFound - The departure position was not found on the route network.

  • OtherValidationError - The given inputs were not valid or a route was not found. More information is given in the error Message

* @public @@ -1620,11 +1573,6 @@ export interface CellSignals { LteCellDetails: LteCellDetails[] | undefined; } -/** - * @public - */ -export type PricingPlan = "MobileAssetManagement" | "MobileAssetTracking" | "RequestBasedUsage"; - /** * @public */ @@ -1777,11 +1725,6 @@ export interface CreateMapResponse { CreateTime: Date | undefined; } -/** - * @public - */ -export type IntendedUse = "SingleUse" | "Storage"; - /** *

Specifies the data storage option chosen for requesting Places.

When using Amazon Location Places:

  • If using HERE Technologies as a data provider, you can't store results for locations in Japan by setting IntendedUse to Storage. parameter.

  • Under the MobileAssetTracking or MobilAssetManagement pricing plan, you can't store results from your place index resources by setting IntendedUse to Storage. This returns a validation exception error.

For more information, see the AWS Service Terms for Amazon Location Service.

* @public @@ -1920,11 +1863,6 @@ export interface CreateRouteCalculatorResponse { CreateTime: Date | undefined; } -/** - * @public - */ -export type PositionFiltering = "AccuracyBased" | "DistanceBased" | "TimeBased"; - /** * @public */ @@ -2561,11 +2499,6 @@ export interface DisassociateTrackerConsumerRequest { */ export interface DisassociateTrackerConsumerResponse {} -/** - * @public - */ -export type ForecastedGeofenceEventType = "ENTER" | "EXIT" | "IDLE"; - /** *

A forecasted event represents a geofence event in relation to the requested device state, that may occur given the provided device state and time horizon.

* @public @@ -2632,11 +2565,6 @@ export interface ForecastGeofenceEventsDeviceState { Speed?: number | undefined; } -/** - * @public - */ -export type SpeedUnit = "KilometersPerHour" | "MilesPerHour"; - /** * @public */ diff --git a/clients/client-m2/src/index.ts b/clients/client-m2/src/index.ts index c5b316a2b502..d47c38d6b884 100644 --- a/clients/client-m2/src/index.ts +++ b/clients/client-m2/src/index.ts @@ -17,6 +17,7 @@ export type { M2ExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-m2/src/models/enums.ts b/clients/client-m2/src/models/enums.ts new file mode 100644 index 000000000000..76e74729395c --- /dev/null +++ b/clients/client-m2/src/models/enums.ts @@ -0,0 +1,176 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + CANNOT_PARSE: "cannotParse", + FEATURE_NOT_AVAILABLE: "featureNotAvailable", + FIELD_VALIDATION_FAILED: "fieldValidationFailed", + OTHER: "other", + UNKNOWN_OPERATION: "unknownOperation", + UNSUPPORTED_ENGINE_VERSION: "unsupportedEngineVersion", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const EngineType = { + BLUAGE: "bluage", + MICROFOCUS: "microfocus", +} as const; +/** + * @public + */ +export type EngineType = (typeof EngineType)[keyof typeof EngineType]; + +/** + * @public + * @enum + */ +export const DeploymentLifecycle = { + DEPLOYING: "Deploying", + DEPLOY_UPDATE: "Updating Deployment", + FAILED: "Failed", + SUCCEEDED: "Succeeded", +} as const; +/** + * @public + */ +export type DeploymentLifecycle = (typeof DeploymentLifecycle)[keyof typeof DeploymentLifecycle]; + +/** + * @public + * @enum + */ +export const ApplicationVersionLifecycle = { + AVAILABLE: "Available", + CREATING: "Creating", + FAILED: "Failed", +} as const; +/** + * @public + */ +export type ApplicationVersionLifecycle = + (typeof ApplicationVersionLifecycle)[keyof typeof ApplicationVersionLifecycle]; + +/** + * @public + * @enum + */ +export const ApplicationLifecycle = { + AVAILABLE: "Available", + CREATED: "Created", + CREATING: "Creating", + DELETING: "Deleting", + DELETING_FROM_ENVIRONMENT: "Deleting From Environment", + FAILED: "Failed", + READY: "Ready", + RUNNING: "Running", + STARTING: "Starting", + STOPPED: "Stopped", + STOPPING: "Stopping", +} as const; +/** + * @public + */ +export type ApplicationLifecycle = (typeof ApplicationLifecycle)[keyof typeof ApplicationLifecycle]; + +/** + * @public + * @enum + */ +export const BatchJobType = { + JES2: "JES2", + JES3: "JES3", + VSE: "VSE", +} as const; +/** + * @public + */ +export type BatchJobType = (typeof BatchJobType)[keyof typeof BatchJobType]; + +/** + * @public + * @enum + */ +export const BatchJobExecutionStatus = { + CANCELLED: "Cancelled", + CANCELLING: "Cancelling", + DISPATCH: "Dispatching", + FAILED: "Failed", + HOLDING: "Holding", + PURGED: "Purged", + RUNNING: "Running", + SUBMITTING: "Submitting", + SUCCEEDED: "Succeeded", + SUCCEEDED_WITH_WARNING: "Succeeded With Warning", +} as const; +/** + * @public + */ +export type BatchJobExecutionStatus = (typeof BatchJobExecutionStatus)[keyof typeof BatchJobExecutionStatus]; + +/** + * @public + * @enum + */ +export const DataSetTaskLifecycle = { + COMPLETED: "Completed", + CREATING: "Creating", + FAILED: "Failed", + RUNNING: "Running", +} as const; +/** + * @public + */ +export type DataSetTaskLifecycle = (typeof DataSetTaskLifecycle)[keyof typeof DataSetTaskLifecycle]; + +/** + * @public + * @enum + */ +export const ApplicationDeploymentLifecycle = { + DEPLOYED: "Deployed", + DEPLOYING: "Deploying", +} as const; +/** + * @public + */ +export type ApplicationDeploymentLifecycle = + (typeof ApplicationDeploymentLifecycle)[keyof typeof ApplicationDeploymentLifecycle]; + +/** + * @public + * @enum + */ +export const NetworkType = { + DUAL: "dual", + IPV4: "ipv4", +} as const; +/** + * @public + */ +export type NetworkType = (typeof NetworkType)[keyof typeof NetworkType]; + +/** + * @public + * @enum + */ +export const EnvironmentLifecycle = { + AVAILABLE: "Available", + CREATING: "Creating", + DELETING: "Deleting", + FAILED: "Failed", + UNHEALTHY: "UnHealthy", + UPDATING: "Updating", +} as const; +/** + * @public + */ +export type EnvironmentLifecycle = (typeof EnvironmentLifecycle)[keyof typeof EnvironmentLifecycle]; diff --git a/clients/client-m2/src/models/errors.ts b/clients/client-m2/src/models/errors.ts index 7cc4cc69ec76..81695ea92bc3 100644 --- a/clients/client-m2/src/models/errors.ts +++ b/clients/client-m2/src/models/errors.ts @@ -1,8 +1,9 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; +import { ValidationExceptionReason } from "./enums"; import { M2ServiceException as __BaseException } from "./M2ServiceException"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionField } from "./models_0"; /** *

The account or role doesn't have the right permissions to make the request.

diff --git a/clients/client-m2/src/models/models_0.ts b/clients/client-m2/src/models/models_0.ts index 8a85545ab70d..306d0bf1078c 100644 --- a/clients/client-m2/src/models/models_0.ts +++ b/clients/client-m2/src/models/models_0.ts @@ -1,4 +1,17 @@ // smithy-typescript generated code +import { + ApplicationDeploymentLifecycle, + ApplicationLifecycle, + ApplicationVersionLifecycle, + BatchJobExecutionStatus, + BatchJobType, + DataSetTaskLifecycle, + DeploymentLifecycle, + EngineType, + EnvironmentLifecycle, + NetworkType, +} from "./enums"; + /** *

Defines an alternate key. This value is optional. A legacy data set might not have any * alternate key defined but if those alternate keys definitions exist, provide them, as some @@ -79,24 +92,6 @@ export interface ValidationExceptionField { message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - CANNOT_PARSE: "cannotParse", - FEATURE_NOT_AVAILABLE: "featureNotAvailable", - FIELD_VALIDATION_FAILED: "fieldValidationFailed", - OTHER: "other", - UNKNOWN_OPERATION: "unknownOperation", - UNSUPPORTED_ENGINE_VERSION: "unsupportedEngineVersion", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** *

The application definition for a particular application.

* @public @@ -148,20 +143,6 @@ export namespace Definition { } } -/** - * @public - * @enum - */ -export const EngineType = { - BLUAGE: "bluage", - MICROFOCUS: "microfocus", -} as const; - -/** - * @public - */ -export type EngineType = (typeof EngineType)[keyof typeof EngineType]; - /** * @public */ @@ -868,22 +849,6 @@ export interface GetApplicationRequest { applicationId: string | undefined; } -/** - * @public - * @enum - */ -export const DeploymentLifecycle = { - DEPLOYING: "Deploying", - DEPLOY_UPDATE: "Updating Deployment", - FAILED: "Failed", - SUCCEEDED: "Succeeded", -} as const; - -/** - * @public - */ -export type DeploymentLifecycle = (typeof DeploymentLifecycle)[keyof typeof DeploymentLifecycle]; - /** *

Contains a summary of a deployed application.

* @public @@ -908,22 +873,6 @@ export interface DeployedVersionSummary { statusReason?: string | undefined; } -/** - * @public - * @enum - */ -export const ApplicationVersionLifecycle = { - AVAILABLE: "Available", - CREATING: "Creating", - FAILED: "Failed", -} as const; - -/** - * @public - */ -export type ApplicationVersionLifecycle = - (typeof ApplicationVersionLifecycle)[keyof typeof ApplicationVersionLifecycle]; - /** *

Defines an application version summary.

* @public @@ -973,29 +922,6 @@ export interface LogGroupSummary { logGroupName: string | undefined; } -/** - * @public - * @enum - */ -export const ApplicationLifecycle = { - AVAILABLE: "Available", - CREATED: "Created", - CREATING: "Creating", - DELETING: "Deleting", - DELETING_FROM_ENVIRONMENT: "Deleting From Environment", - FAILED: "Failed", - READY: "Ready", - RUNNING: "Running", - STARTING: "Starting", - STOPPED: "Stopped", - STOPPING: "Stopping", -} as const; - -/** - * @public - */ -export type ApplicationLifecycle = (typeof ApplicationLifecycle)[keyof typeof ApplicationLifecycle]; - /** * @public */ @@ -1468,43 +1394,6 @@ export namespace BatchJobIdentifier { } } -/** - * @public - * @enum - */ -export const BatchJobType = { - JES2: "JES2", - JES3: "JES3", - VSE: "VSE", -} as const; - -/** - * @public - */ -export type BatchJobType = (typeof BatchJobType)[keyof typeof BatchJobType]; - -/** - * @public - * @enum - */ -export const BatchJobExecutionStatus = { - CANCELLED: "Cancelled", - CANCELLING: "Cancelling", - DISPATCH: "Dispatching", - FAILED: "Failed", - HOLDING: "Holding", - PURGED: "Purged", - RUNNING: "Running", - SUBMITTING: "Submitting", - SUCCEEDED: "Succeeded", - SUCCEEDED_WITH_WARNING: "Succeeded With Warning", -} as const; - -/** - * @public - */ -export type BatchJobExecutionStatus = (typeof BatchJobExecutionStatus)[keyof typeof BatchJobExecutionStatus]; - /** * @public */ @@ -1877,22 +1766,6 @@ export interface GetDataSetExportTaskRequest { taskId: string | undefined; } -/** - * @public - * @enum - */ -export const DataSetTaskLifecycle = { - COMPLETED: "Completed", - CREATING: "Creating", - FAILED: "Failed", - RUNNING: "Running", -} as const; - -/** - * @public - */ -export type DataSetTaskLifecycle = (typeof DataSetTaskLifecycle)[keyof typeof DataSetTaskLifecycle]; - /** *

Represents a summary of data set exports.

* @public @@ -2135,21 +2008,6 @@ export interface ListApplicationsRequest { environmentId?: string | undefined; } -/** - * @public - * @enum - */ -export const ApplicationDeploymentLifecycle = { - DEPLOYED: "Deployed", - DEPLOYING: "Deploying", -} as const; - -/** - * @public - */ -export type ApplicationDeploymentLifecycle = - (typeof ApplicationDeploymentLifecycle)[keyof typeof ApplicationDeploymentLifecycle]; - /** *

A subset of the possible application attributes. Used in the application list.

* @public @@ -3138,20 +2996,6 @@ export interface HighAvailabilityConfig { desiredCapacity: number | undefined; } -/** - * @public - * @enum - */ -export const NetworkType = { - DUAL: "dual", - IPV4: "ipv4", -} as const; - -/** - * @public - */ -export type NetworkType = (typeof NetworkType)[keyof typeof NetworkType]; - /** *

Defines the storage configuration for an Amazon EFS file system.

* @public @@ -3415,24 +3259,6 @@ export interface PendingMaintenance { engineVersion?: string | undefined; } -/** - * @public - * @enum - */ -export const EnvironmentLifecycle = { - AVAILABLE: "Available", - CREATING: "Creating", - DELETING: "Deleting", - FAILED: "Failed", - UNHEALTHY: "UnHealthy", - UPDATING: "Updating", -} as const; - -/** - * @public - */ -export type EnvironmentLifecycle = (typeof EnvironmentLifecycle)[keyof typeof EnvironmentLifecycle]; - /** * @public */ diff --git a/clients/client-managedblockchain-query/src/index.ts b/clients/client-managedblockchain-query/src/index.ts index 8d2e7aac2447..280182aed68d 100644 --- a/clients/client-managedblockchain-query/src/index.ts +++ b/clients/client-managedblockchain-query/src/index.ts @@ -19,6 +19,7 @@ export type { ManagedBlockchainQueryExtensionConfiguration } from "./extensionCo export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-managedblockchain-query/src/models/enums.ts b/clients/client-managedblockchain-query/src/models/enums.ts new file mode 100644 index 000000000000..f5ebaea7576b --- /dev/null +++ b/clients/client-managedblockchain-query/src/models/enums.ts @@ -0,0 +1,218 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const QueryNetwork = { + /** + * Bitcoin main network + */ + BITCOIN_MAINNET: "BITCOIN_MAINNET", + /** + * Bitcoin test network + */ + BITCOIN_TESTNET: "BITCOIN_TESTNET", + /** + * Ethereum main network + */ + ETHEREUM_MAINNET: "ETHEREUM_MAINNET", + /** + * SEPOLIA network (ethereum testnet) + */ + ETHEREUM_SEPOLIA_TESTNET: "ETHEREUM_SEPOLIA_TESTNET", +} as const; +/** + * @public + */ +export type QueryNetwork = (typeof QueryNetwork)[keyof typeof QueryNetwork]; + +/** + * @public + * @enum + */ +export const QueryTokenStandard = { + ERC1155: "ERC1155", + ERC20: "ERC20", + ERC721: "ERC721", +} as const; +/** + * @public + */ +export type QueryTokenStandard = (typeof QueryTokenStandard)[keyof typeof QueryTokenStandard]; + +/** + * @public + * @enum + */ +export const ErrorType = { + /** + * An API request retrieving an item that can't be found + */ + RESOURCE_NOT_FOUND_EXCEPTION: "RESOURCE_NOT_FOUND_EXCEPTION", + /** + * An API request validation exception + */ + VALIDATION_EXCEPTION: "VALIDATION_EXCEPTION", +} as const; +/** + * @public + */ +export type ErrorType = (typeof ErrorType)[keyof typeof ErrorType]; + +/** + * @public + * @enum + */ +export const ResourceType = { + COLLECTION: "collection", +} as const; +/** + * @public + */ +export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + CANNOT_PARSE: "cannotParse", + FIELD_VALIDATION_FAILED: "fieldValidationFailed", + OTHER: "other", + UNKNOWN_OPERATION: "unknownOperation", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const ConfirmationStatus = { + FINAL: "FINAL", + NONFINAL: "NONFINAL", +} as const; +/** + * @public + */ +export type ConfirmationStatus = (typeof ConfirmationStatus)[keyof typeof ConfirmationStatus]; + +/** + * @public + * @enum + */ +export const ExecutionStatus = { + FAILED: "FAILED", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type ExecutionStatus = (typeof ExecutionStatus)[keyof typeof ExecutionStatus]; + +/** + * @public + * @enum + */ +export const ListFilteredTransactionEventsSortBy = { + /** + * Timestamp of a transaction + */ + blockchainInstant: "blockchainInstant", +} as const; +/** + * @public + */ +export type ListFilteredTransactionEventsSortBy = + (typeof ListFilteredTransactionEventsSortBy)[keyof typeof ListFilteredTransactionEventsSortBy]; + +/** + * @public + * @enum + */ +export const SortOrder = { + /** + * Result sorted in ascending order + */ + ASCENDING: "ASCENDING", + /** + * Result sorted in descending order + */ + DESCENDING: "DESCENDING", +} as const; +/** + * @public + */ +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; + +/** + * @public + * @enum + */ +export const QueryTransactionEventType = { + /** + * A Bitcoin Vin transfer type + */ + BITCOIN_VIN: "BITCOIN_VIN", + /** + * A Bitcoin Vout transfer type + */ + BITCOIN_VOUT: "BITCOIN_VOUT", + /** + * An ERC1155 transfer type + */ + ERC1155_TRANSFER: "ERC1155_TRANSFER", + /** + * An ERC20_BURN transfer type + */ + ERC20_BURN: "ERC20_BURN", + /** + * An ERC20_DEPOSIT transfer type + */ + ERC20_DEPOSIT: "ERC20_DEPOSIT", + /** + * An ERC20_MINT transfer type + */ + ERC20_MINT: "ERC20_MINT", + /** + * An ERC20 transfer type + */ + ERC20_TRANSFER: "ERC20_TRANSFER", + /** + * An ERC20_WITHDRAWAL transfer type + */ + ERC20_WITHDRAWAL: "ERC20_WITHDRAWAL", + /** + * An ERC721 transfer type + */ + ERC721_TRANSFER: "ERC721_TRANSFER", + /** + * An ETH transfer type + */ + ETH_TRANSFER: "ETH_TRANSFER", + /** + * An internal ETH transfer type + */ + INTERNAL_ETH_TRANSFER: "INTERNAL_ETH_TRANSFER", +} as const; +/** + * @public + */ +export type QueryTransactionEventType = (typeof QueryTransactionEventType)[keyof typeof QueryTransactionEventType]; + +/** + * @public + * @enum + */ +export const ListTransactionsSortBy = { + /** + * Timestamp of a transaction + */ + TRANSACTION_TIMESTAMP: "TRANSACTION_TIMESTAMP", +} as const; +/** + * @public + */ +export type ListTransactionsSortBy = (typeof ListTransactionsSortBy)[keyof typeof ListTransactionsSortBy]; diff --git a/clients/client-managedblockchain-query/src/models/errors.ts b/clients/client-managedblockchain-query/src/models/errors.ts index 04662772e692..48db083127a2 100644 --- a/clients/client-managedblockchain-query/src/models/errors.ts +++ b/clients/client-managedblockchain-query/src/models/errors.ts @@ -1,8 +1,9 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; +import { ResourceType, ValidationExceptionReason } from "./enums"; import { ManagedBlockchainQueryServiceException as __BaseException } from "./ManagedBlockchainQueryServiceException"; -import { ResourceType, ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionField } from "./models_0"; /** *

The Amazon Web Services account doesn’t have access to this resource.

diff --git a/clients/client-managedblockchain-query/src/models/models_0.ts b/clients/client-managedblockchain-query/src/models/models_0.ts index d69014df8701..fac4dfa3ad68 100644 --- a/clients/client-managedblockchain-query/src/models/models_0.ts +++ b/clients/client-managedblockchain-query/src/models/models_0.ts @@ -1,4 +1,16 @@ // smithy-typescript generated code +import { + ConfirmationStatus, + ErrorType, + ExecutionStatus, + ListFilteredTransactionEventsSortBy, + ListTransactionsSortBy, + QueryNetwork, + QueryTokenStandard, + QueryTransactionEventType, + SortOrder, +} from "./enums"; + /** *

This is the container for the unique public address on the blockchain.

* @public @@ -11,34 +23,6 @@ export interface AddressIdentifierFilter { transactionEventToAddress: string[] | undefined; } -/** - * @public - * @enum - */ -export const QueryNetwork = { - /** - * Bitcoin main network - */ - BITCOIN_MAINNET: "BITCOIN_MAINNET", - /** - * Bitcoin test network - */ - BITCOIN_TESTNET: "BITCOIN_TESTNET", - /** - * Ethereum main network - */ - ETHEREUM_MAINNET: "ETHEREUM_MAINNET", - /** - * SEPOLIA network (ethereum testnet) - */ - ETHEREUM_SEPOLIA_TESTNET: "ETHEREUM_SEPOLIA_TESTNET", -} as const; - -/** - * @public - */ -export type QueryNetwork = (typeof QueryNetwork)[keyof typeof QueryNetwork]; - /** *

Container for the blockchain address and network information about a contract.

* @public @@ -57,21 +41,6 @@ export interface ContractIdentifier { contractAddress: string | undefined; } -/** - * @public - * @enum - */ -export const QueryTokenStandard = { - ERC1155: "ERC1155", - ERC20: "ERC20", - ERC721: "ERC721", -} as const; - -/** - * @public - */ -export type QueryTokenStandard = (typeof QueryTokenStandard)[keyof typeof QueryTokenStandard]; - /** *

This container contains information about an contract.

* @public @@ -197,26 +166,6 @@ export interface BatchGetTokenBalanceInput { getTokenBalanceInputs?: BatchGetTokenBalanceInputItem[] | undefined; } -/** - * @public - * @enum - */ -export const ErrorType = { - /** - * An API request retrieving an item that can't be found - */ - RESOURCE_NOT_FOUND_EXCEPTION: "RESOURCE_NOT_FOUND_EXCEPTION", - /** - * An API request validation exception - */ - VALIDATION_EXCEPTION: "VALIDATION_EXCEPTION", -} as const; - -/** - * @public - */ -export type ErrorType = (typeof ErrorType)[keyof typeof ErrorType]; - /** *

Error generated from a failed BatchGetTokenBalance request.

* @public @@ -320,19 +269,6 @@ export interface BatchGetTokenBalanceOutput { errors: BatchGetTokenBalanceErrorItem[] | undefined; } -/** - * @public - * @enum - */ -export const ResourceType = { - COLLECTION: "collection", -} as const; - -/** - * @public - */ -export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; - /** *

The resource passed is invalid.

* @public @@ -351,36 +287,6 @@ export interface ValidationExceptionField { message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - CANNOT_PARSE: "cannotParse", - FIELD_VALIDATION_FAILED: "fieldValidationFailed", - OTHER: "other", - UNKNOWN_OPERATION: "unknownOperation", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - -/** - * @public - * @enum - */ -export const ConfirmationStatus = { - FINAL: "FINAL", - NONFINAL: "NONFINAL", -} as const; - -/** - * @public - */ -export type ConfirmationStatus = (typeof ConfirmationStatus)[keyof typeof ConfirmationStatus]; - /** *

The container for the ConfirmationStatusFilter that filters for the * finality @@ -446,20 +352,6 @@ export interface ContractMetadata { decimals?: number | undefined; } -/** - * @public - * @enum - */ -export const ExecutionStatus = { - FAILED: "FAILED", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type ExecutionStatus = (typeof ExecutionStatus)[keyof typeof ExecutionStatus]; - /** * @public */ @@ -795,43 +687,6 @@ export interface ListAssetContractsOutput { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const ListFilteredTransactionEventsSortBy = { - /** - * Timestamp of a transaction - */ - blockchainInstant: "blockchainInstant", -} as const; - -/** - * @public - */ -export type ListFilteredTransactionEventsSortBy = - (typeof ListFilteredTransactionEventsSortBy)[keyof typeof ListFilteredTransactionEventsSortBy]; - -/** - * @public - * @enum - */ -export const SortOrder = { - /** - * Result sorted in ascending order - */ - ASCENDING: "ASCENDING", - /** - * Result sorted in descending order - */ - DESCENDING: "DESCENDING", -} as const; - -/** - * @public - */ -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; - /** *

Lists all the transaction events for an address on the blockchain.

* @@ -952,62 +807,6 @@ export interface ListFilteredTransactionEventsInput { maxResults?: number | undefined; } -/** - * @public - * @enum - */ -export const QueryTransactionEventType = { - /** - * A Bitcoin Vin transfer type - */ - BITCOIN_VIN: "BITCOIN_VIN", - /** - * A Bitcoin Vout transfer type - */ - BITCOIN_VOUT: "BITCOIN_VOUT", - /** - * An ERC1155 transfer type - */ - ERC1155_TRANSFER: "ERC1155_TRANSFER", - /** - * An ERC20_BURN transfer type - */ - ERC20_BURN: "ERC20_BURN", - /** - * An ERC20_DEPOSIT transfer type - */ - ERC20_DEPOSIT: "ERC20_DEPOSIT", - /** - * An ERC20_MINT transfer type - */ - ERC20_MINT: "ERC20_MINT", - /** - * An ERC20 transfer type - */ - ERC20_TRANSFER: "ERC20_TRANSFER", - /** - * An ERC20_WITHDRAWAL transfer type - */ - ERC20_WITHDRAWAL: "ERC20_WITHDRAWAL", - /** - * An ERC721 transfer type - */ - ERC721_TRANSFER: "ERC721_TRANSFER", - /** - * An ETH transfer type - */ - ETH_TRANSFER: "ETH_TRANSFER", - /** - * An internal ETH transfer type - */ - INTERNAL_ETH_TRANSFER: "INTERNAL_ETH_TRANSFER", -} as const; - -/** - * @public - */ -export type QueryTransactionEventType = (typeof QueryTransactionEventType)[keyof typeof QueryTransactionEventType]; - /** *

The container for the properties of a transaction event.

* @public @@ -1351,22 +1150,6 @@ export interface ListTransactionEventsOutput { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const ListTransactionsSortBy = { - /** - * Timestamp of a transaction - */ - TRANSACTION_TIMESTAMP: "TRANSACTION_TIMESTAMP", -} as const; - -/** - * @public - */ -export type ListTransactionsSortBy = (typeof ListTransactionsSortBy)[keyof typeof ListTransactionsSortBy]; - /** *

The container for determining how the list transaction result will * be sorted.

diff --git a/clients/client-mgn/src/index.ts b/clients/client-mgn/src/index.ts index 6327b2ad3f18..9f5dacf9a7e2 100644 --- a/clients/client-mgn/src/index.ts +++ b/clients/client-mgn/src/index.ts @@ -13,6 +13,7 @@ export type { MgnExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-mgn/src/models/enums.ts b/clients/client-mgn/src/models/enums.ts new file mode 100644 index 000000000000..a876d93ad435 --- /dev/null +++ b/clients/client-mgn/src/models/enums.ts @@ -0,0 +1,553 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ActionCategory = { + BACKUP: "BACKUP", + CONFIGURATION: "CONFIGURATION", + DISASTER_RECOVERY: "DISASTER_RECOVERY", + LICENSE_AND_SUBSCRIPTION: "LICENSE_AND_SUBSCRIPTION", + NETWORKING: "NETWORKING", + OBSERVABILITY: "OBSERVABILITY", + OPERATING_SYSTEM: "OPERATING_SYSTEM", + OTHER: "OTHER", + REFACTORING: "REFACTORING", + SECURITY: "SECURITY", + VALIDATION: "VALIDATION", +} as const; +/** + * @public + */ +export type ActionCategory = (typeof ActionCategory)[keyof typeof ActionCategory]; + +/** + * @public + * @enum + */ +export const ApplicationHealthStatus = { + ERROR: "ERROR", + HEALTHY: "HEALTHY", + LAGGING: "LAGGING", +} as const; +/** + * @public + */ +export type ApplicationHealthStatus = (typeof ApplicationHealthStatus)[keyof typeof ApplicationHealthStatus]; + +/** + * @public + * @enum + */ +export const ApplicationProgressStatus = { + COMPLETED: "COMPLETED", + IN_PROGRESS: "IN_PROGRESS", + NOT_STARTED: "NOT_STARTED", +} as const; +/** + * @public + */ +export type ApplicationProgressStatus = (typeof ApplicationProgressStatus)[keyof typeof ApplicationProgressStatus]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + CANNOT_PARSE: "cannotParse", + FIELD_VALIDATION_FAILED: "fieldValidationFailed", + OTHER: "other", + UNKNOWN_OPERATION: "unknownOperation", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const ExportStatus = { + FAILED: "FAILED", + PENDING: "PENDING", + STARTED: "STARTED", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type ExportStatus = (typeof ExportStatus)[keyof typeof ExportStatus]; + +/** + * @public + * @enum + */ +export const ImportErrorType = { + PROCESSING_ERROR: "PROCESSING_ERROR", + VALIDATION_ERROR: "VALIDATION_ERROR", +} as const; +/** + * @public + */ +export type ImportErrorType = (typeof ImportErrorType)[keyof typeof ImportErrorType]; + +/** + * @public + * @enum + */ +export const ImportStatus = { + FAILED: "FAILED", + PENDING: "PENDING", + STARTED: "STARTED", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type ImportStatus = (typeof ImportStatus)[keyof typeof ImportStatus]; + +/** + * @public + * @enum + */ +export const JobLogEvent = { + CLEANUP_END: "CLEANUP_END", + CLEANUP_FAIL: "CLEANUP_FAIL", + CLEANUP_START: "CLEANUP_START", + CONVERSION_END: "CONVERSION_END", + CONVERSION_FAIL: "CONVERSION_FAIL", + CONVERSION_START: "CONVERSION_START", + JOB_CANCEL: "JOB_CANCEL", + JOB_END: "JOB_END", + JOB_START: "JOB_START", + LAUNCH_FAILED: "LAUNCH_FAILED", + LAUNCH_START: "LAUNCH_START", + SERVER_SKIPPED: "SERVER_SKIPPED", + SNAPSHOT_END: "SNAPSHOT_END", + SNAPSHOT_FAIL: "SNAPSHOT_FAIL", + SNAPSHOT_START: "SNAPSHOT_START", + USING_PREVIOUS_SNAPSHOT: "USING_PREVIOUS_SNAPSHOT", +} as const; +/** + * @public + */ +export type JobLogEvent = (typeof JobLogEvent)[keyof typeof JobLogEvent]; + +/** + * @public + * @enum + */ +export const InitiatedBy = { + DIAGNOSTIC: "DIAGNOSTIC", + START_CUTOVER: "START_CUTOVER", + START_TEST: "START_TEST", + TERMINATE: "TERMINATE", +} as const; +/** + * @public + */ +export type InitiatedBy = (typeof InitiatedBy)[keyof typeof InitiatedBy]; + +/** + * @public + * @enum + */ +export const LaunchStatus = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + LAUNCHED: "LAUNCHED", + PENDING: "PENDING", + TERMINATED: "TERMINATED", +} as const; +/** + * @public + */ +export type LaunchStatus = (typeof LaunchStatus)[keyof typeof LaunchStatus]; + +/** + * @public + * @enum + */ +export const PostLaunchActionExecutionStatus = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUCCESS: "SUCCESS", +} as const; +/** + * @public + */ +export type PostLaunchActionExecutionStatus = + (typeof PostLaunchActionExecutionStatus)[keyof typeof PostLaunchActionExecutionStatus]; + +/** + * @public + * @enum + */ +export const SsmParameterStoreParameterType = { + STRING: "STRING", +} as const; +/** + * @public + */ +export type SsmParameterStoreParameterType = + (typeof SsmParameterStoreParameterType)[keyof typeof SsmParameterStoreParameterType]; + +/** + * @public + * @enum + */ +export const SsmDocumentType = { + AUTOMATION: "AUTOMATION", + COMMAND: "COMMAND", +} as const; +/** + * @public + */ +export type SsmDocumentType = (typeof SsmDocumentType)[keyof typeof SsmDocumentType]; + +/** + * @public + * @enum + */ +export const JobStatus = { + COMPLETED: "COMPLETED", + PENDING: "PENDING", + STARTED: "STARTED", +} as const; +/** + * @public + */ +export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus]; + +/** + * @public + * @enum + */ +export const JobType = { + LAUNCH: "LAUNCH", + TERMINATE: "TERMINATE", +} as const; +/** + * @public + */ +export type JobType = (typeof JobType)[keyof typeof JobType]; + +/** + * @public + * @enum + */ +export const BootMode = { + LEGACY_BIOS: "LEGACY_BIOS", + UEFI: "UEFI", + USE_SOURCE: "USE_SOURCE", +} as const; +/** + * @public + */ +export type BootMode = (typeof BootMode)[keyof typeof BootMode]; + +/** + * @public + * @enum + */ +export const VolumeType = { + gp2: "gp2", + gp3: "gp3", + io1: "io1", + io2: "io2", + sc1: "sc1", + st1: "st1", + standard: "standard", +} as const; +/** + * @public + */ +export type VolumeType = (typeof VolumeType)[keyof typeof VolumeType]; + +/** + * @public + * @enum + */ +export const LaunchDisposition = { + STARTED: "STARTED", + STOPPED: "STOPPED", +} as const; +/** + * @public + */ +export type LaunchDisposition = (typeof LaunchDisposition)[keyof typeof LaunchDisposition]; + +/** + * @public + * @enum + */ +export const PostLaunchActionsDeploymentType = { + CUTOVER_ONLY: "CUTOVER_ONLY", + TEST_AND_CUTOVER: "TEST_AND_CUTOVER", + TEST_ONLY: "TEST_ONLY", +} as const; +/** + * @public + */ +export type PostLaunchActionsDeploymentType = + (typeof PostLaunchActionsDeploymentType)[keyof typeof PostLaunchActionsDeploymentType]; + +/** + * @public + * @enum + */ +export const TargetInstanceTypeRightSizingMethod = { + BASIC: "BASIC", + NONE: "NONE", +} as const; +/** + * @public + */ +export type TargetInstanceTypeRightSizingMethod = + (typeof TargetInstanceTypeRightSizingMethod)[keyof typeof TargetInstanceTypeRightSizingMethod]; + +/** + * @public + * @enum + */ +export const ReplicationConfigurationDataPlaneRouting = { + PRIVATE_IP: "PRIVATE_IP", + PUBLIC_IP: "PUBLIC_IP", +} as const; +/** + * @public + */ +export type ReplicationConfigurationDataPlaneRouting = + (typeof ReplicationConfigurationDataPlaneRouting)[keyof typeof ReplicationConfigurationDataPlaneRouting]; + +/** + * @public + * @enum + */ +export const ReplicationConfigurationDefaultLargeStagingDiskType = { + GP2: "GP2", + GP3: "GP3", + ST1: "ST1", +} as const; +/** + * @public + */ +export type ReplicationConfigurationDefaultLargeStagingDiskType = + (typeof ReplicationConfigurationDefaultLargeStagingDiskType)[keyof typeof ReplicationConfigurationDefaultLargeStagingDiskType]; + +/** + * @public + * @enum + */ +export const ReplicationConfigurationEbsEncryption = { + CUSTOM: "CUSTOM", + DEFAULT: "DEFAULT", +} as const; +/** + * @public + */ +export type ReplicationConfigurationEbsEncryption = + (typeof ReplicationConfigurationEbsEncryption)[keyof typeof ReplicationConfigurationEbsEncryption]; + +/** + * @public + * @enum + */ +export const ChangeServerLifeCycleStateSourceServerLifecycleState = { + CUTOVER: "CUTOVER", + READY_FOR_CUTOVER: "READY_FOR_CUTOVER", + READY_FOR_TEST: "READY_FOR_TEST", +} as const; +/** + * @public + */ +export type ChangeServerLifeCycleStateSourceServerLifecycleState = + (typeof ChangeServerLifeCycleStateSourceServerLifecycleState)[keyof typeof ChangeServerLifeCycleStateSourceServerLifecycleState]; + +/** + * @public + * @enum + */ +export const DataReplicationErrorString = { + AGENT_NOT_SEEN: "AGENT_NOT_SEEN", + FAILED_TO_ATTACH_STAGING_DISKS: "FAILED_TO_ATTACH_STAGING_DISKS", + FAILED_TO_AUTHENTICATE_WITH_SERVICE: "FAILED_TO_AUTHENTICATE_WITH_SERVICE", + FAILED_TO_BOOT_REPLICATION_SERVER: "FAILED_TO_BOOT_REPLICATION_SERVER", + FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER: "FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER", + FAILED_TO_CREATE_SECURITY_GROUP: "FAILED_TO_CREATE_SECURITY_GROUP", + FAILED_TO_CREATE_STAGING_DISKS: "FAILED_TO_CREATE_STAGING_DISKS", + FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE: "FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE", + FAILED_TO_LAUNCH_REPLICATION_SERVER: "FAILED_TO_LAUNCH_REPLICATION_SERVER", + FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT: "FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT", + FAILED_TO_START_DATA_TRANSFER: "FAILED_TO_START_DATA_TRANSFER", + LAST_SNAPSHOT_JOB_FAILED: "LAST_SNAPSHOT_JOB_FAILED", + NOT_CONVERGING: "NOT_CONVERGING", + SNAPSHOTS_FAILURE: "SNAPSHOTS_FAILURE", + UNSTABLE_NETWORK: "UNSTABLE_NETWORK", + UNSUPPORTED_VM_CONFIGURATION: "UNSUPPORTED_VM_CONFIGURATION", +} as const; +/** + * @public + */ +export type DataReplicationErrorString = (typeof DataReplicationErrorString)[keyof typeof DataReplicationErrorString]; + +/** + * @public + * @enum + */ +export const DataReplicationInitiationStepName = { + ATTACH_STAGING_DISKS: "ATTACH_STAGING_DISKS", + AUTHENTICATE_WITH_SERVICE: "AUTHENTICATE_WITH_SERVICE", + BOOT_REPLICATION_SERVER: "BOOT_REPLICATION_SERVER", + CONNECT_AGENT_TO_REPLICATION_SERVER: "CONNECT_AGENT_TO_REPLICATION_SERVER", + CREATE_SECURITY_GROUP: "CREATE_SECURITY_GROUP", + CREATE_STAGING_DISKS: "CREATE_STAGING_DISKS", + DOWNLOAD_REPLICATION_SOFTWARE: "DOWNLOAD_REPLICATION_SOFTWARE", + LAUNCH_REPLICATION_SERVER: "LAUNCH_REPLICATION_SERVER", + PAIR_REPLICATION_SERVER_WITH_AGENT: "PAIR_REPLICATION_SERVER_WITH_AGENT", + START_DATA_TRANSFER: "START_DATA_TRANSFER", + WAIT: "WAIT", +} as const; +/** + * @public + */ +export type DataReplicationInitiationStepName = + (typeof DataReplicationInitiationStepName)[keyof typeof DataReplicationInitiationStepName]; + +/** + * @public + * @enum + */ +export const DataReplicationInitiationStepStatus = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + NOT_STARTED: "NOT_STARTED", + SKIPPED: "SKIPPED", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type DataReplicationInitiationStepStatus = + (typeof DataReplicationInitiationStepStatus)[keyof typeof DataReplicationInitiationStepStatus]; + +/** + * @public + * @enum + */ +export const DataReplicationState = { + BACKLOG: "BACKLOG", + CONTINUOUS: "CONTINUOUS", + CREATING_SNAPSHOT: "CREATING_SNAPSHOT", + DISCONNECTED: "DISCONNECTED", + INITIAL_SYNC: "INITIAL_SYNC", + INITIATING: "INITIATING", + PAUSED: "PAUSED", + PENDING_SNAPSHOT_SHIPPING: "PENDING_SNAPSHOT_SHIPPING", + RESCAN: "RESCAN", + SHIPPING_SNAPSHOT: "SHIPPING_SNAPSHOT", + STALLED: "STALLED", + STOPPED: "STOPPED", +} as const; +/** + * @public + */ +export type DataReplicationState = (typeof DataReplicationState)[keyof typeof DataReplicationState]; + +/** + * @public + * @enum + */ +export const FirstBoot = { + STOPPED: "STOPPED", + SUCCEEDED: "SUCCEEDED", + UNKNOWN: "UNKNOWN", + WAITING: "WAITING", +} as const; +/** + * @public + */ +export type FirstBoot = (typeof FirstBoot)[keyof typeof FirstBoot]; + +/** + * @public + * @enum + */ +export const LifeCycleState = { + CUTOVER: "CUTOVER", + CUTTING_OVER: "CUTTING_OVER", + DISCONNECTED: "DISCONNECTED", + DISCOVERED: "DISCOVERED", + NOT_READY: "NOT_READY", + PENDING_INSTALLATION: "PENDING_INSTALLATION", + READY_FOR_CUTOVER: "READY_FOR_CUTOVER", + READY_FOR_TEST: "READY_FOR_TEST", + STOPPED: "STOPPED", + TESTING: "TESTING", +} as const; +/** + * @public + */ +export type LifeCycleState = (typeof LifeCycleState)[keyof typeof LifeCycleState]; + +/** + * @public + * @enum + */ +export const ReplicationType = { + AGENT_BASED: "AGENT_BASED", + SNAPSHOT_SHIPPING: "SNAPSHOT_SHIPPING", +} as const; +/** + * @public + */ +export type ReplicationType = (typeof ReplicationType)[keyof typeof ReplicationType]; + +/** + * @public + * @enum + */ +export const ReplicationConfigurationReplicatedDiskStagingDiskType = { + AUTO: "AUTO", + GP2: "GP2", + GP3: "GP3", + IO1: "IO1", + IO2: "IO2", + SC1: "SC1", + ST1: "ST1", + STANDARD: "STANDARD", +} as const; +/** + * @public + */ +export type ReplicationConfigurationReplicatedDiskStagingDiskType = + (typeof ReplicationConfigurationReplicatedDiskStagingDiskType)[keyof typeof ReplicationConfigurationReplicatedDiskStagingDiskType]; + +/** + * @public + * @enum + */ +export const WaveHealthStatus = { + ERROR: "ERROR", + HEALTHY: "HEALTHY", + LAGGING: "LAGGING", +} as const; +/** + * @public + */ +export type WaveHealthStatus = (typeof WaveHealthStatus)[keyof typeof WaveHealthStatus]; + +/** + * @public + * @enum + */ +export const WaveProgressStatus = { + COMPLETED: "COMPLETED", + IN_PROGRESS: "IN_PROGRESS", + NOT_STARTED: "NOT_STARTED", +} as const; +/** + * @public + */ +export type WaveProgressStatus = (typeof WaveProgressStatus)[keyof typeof WaveProgressStatus]; diff --git a/clients/client-mgn/src/models/errors.ts b/clients/client-mgn/src/models/errors.ts index 03aae9e38ef5..8e80531e733f 100644 --- a/clients/client-mgn/src/models/errors.ts +++ b/clients/client-mgn/src/models/errors.ts @@ -1,8 +1,9 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; +import { ValidationExceptionReason } from "./enums"; import { MgnServiceException as __BaseException } from "./MgnServiceException"; -import { ErrorDetails, ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ErrorDetails, ValidationExceptionField } from "./models_0"; /** *

Operating denied due to a file permission or access check error.

diff --git a/clients/client-mgn/src/models/models_0.ts b/clients/client-mgn/src/models/models_0.ts index fb8a373a9599..dba72a3a9d99 100644 --- a/clients/client-mgn/src/models/models_0.ts +++ b/clients/client-mgn/src/models/models_0.ts @@ -1,56 +1,39 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const ActionCategory = { - BACKUP: "BACKUP", - CONFIGURATION: "CONFIGURATION", - DISASTER_RECOVERY: "DISASTER_RECOVERY", - LICENSE_AND_SUBSCRIPTION: "LICENSE_AND_SUBSCRIPTION", - NETWORKING: "NETWORKING", - OBSERVABILITY: "OBSERVABILITY", - OPERATING_SYSTEM: "OPERATING_SYSTEM", - OTHER: "OTHER", - REFACTORING: "REFACTORING", - SECURITY: "SECURITY", - VALIDATION: "VALIDATION", -} as const; - -/** - * @public - */ -export type ActionCategory = (typeof ActionCategory)[keyof typeof ActionCategory]; - -/** - * @public - * @enum - */ -export const ApplicationHealthStatus = { - ERROR: "ERROR", - HEALTHY: "HEALTHY", - LAGGING: "LAGGING", -} as const; - -/** - * @public - */ -export type ApplicationHealthStatus = (typeof ApplicationHealthStatus)[keyof typeof ApplicationHealthStatus]; - -/** - * @public - * @enum - */ -export const ApplicationProgressStatus = { - COMPLETED: "COMPLETED", - IN_PROGRESS: "IN_PROGRESS", - NOT_STARTED: "NOT_STARTED", -} as const; - -/** - * @public - */ -export type ApplicationProgressStatus = (typeof ApplicationProgressStatus)[keyof typeof ApplicationProgressStatus]; +import { + ActionCategory, + ApplicationHealthStatus, + ApplicationProgressStatus, + BootMode, + ChangeServerLifeCycleStateSourceServerLifecycleState, + DataReplicationErrorString, + DataReplicationInitiationStepName, + DataReplicationInitiationStepStatus, + DataReplicationState, + ExportStatus, + FirstBoot, + ImportErrorType, + ImportStatus, + InitiatedBy, + JobLogEvent, + JobStatus, + JobType, + LaunchDisposition, + LaunchStatus, + LifeCycleState, + PostLaunchActionExecutionStatus, + PostLaunchActionsDeploymentType, + ReplicationConfigurationDataPlaneRouting, + ReplicationConfigurationDefaultLargeStagingDiskType, + ReplicationConfigurationEbsEncryption, + ReplicationConfigurationReplicatedDiskStagingDiskType, + ReplicationType, + SsmDocumentType, + SsmParameterStoreParameterType, + TargetInstanceTypeRightSizingMethod, + VolumeType, + WaveHealthStatus, + WaveProgressStatus, +} from "./enums"; /** *

Application aggregated status.

@@ -535,22 +518,6 @@ export interface ValidationExceptionField { message?: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - CANNOT_PARSE: "cannotParse", - FIELD_VALIDATION_FAILED: "fieldValidationFailed", - OTHER: "other", - UNKNOWN_OPERATION: "unknownOperation", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** * @public */ @@ -745,22 +712,6 @@ export interface ListExportsRequest { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const ExportStatus = { - FAILED: "FAILED", - PENDING: "PENDING", - STARTED: "STARTED", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type ExportStatus = (typeof ExportStatus)[keyof typeof ExportStatus]; - /** *

Export task summary.

* @public @@ -971,20 +922,6 @@ export interface ImportErrorData { accountID?: string | undefined; } -/** - * @public - * @enum - */ -export const ImportErrorType = { - PROCESSING_ERROR: "PROCESSING_ERROR", - VALIDATION_ERROR: "VALIDATION_ERROR", -} as const; - -/** - * @public - */ -export type ImportErrorType = (typeof ImportErrorType)[keyof typeof ImportErrorType]; - /** *

Import task error.

* @public @@ -1087,22 +1024,6 @@ export interface S3BucketSource { s3BucketOwner?: string | undefined; } -/** - * @public - * @enum - */ -export const ImportStatus = { - FAILED: "FAILED", - PENDING: "PENDING", - STARTED: "STARTED", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type ImportStatus = (typeof ImportStatus)[keyof typeof ImportStatus]; - /** *

Import task summary applications.

* @public @@ -1338,34 +1259,6 @@ export interface DescribeJobLogItemsRequest { accountID?: string | undefined; } -/** - * @public - * @enum - */ -export const JobLogEvent = { - CLEANUP_END: "CLEANUP_END", - CLEANUP_FAIL: "CLEANUP_FAIL", - CLEANUP_START: "CLEANUP_START", - CONVERSION_END: "CONVERSION_END", - CONVERSION_FAIL: "CONVERSION_FAIL", - CONVERSION_START: "CONVERSION_START", - JOB_CANCEL: "JOB_CANCEL", - JOB_END: "JOB_END", - JOB_START: "JOB_START", - LAUNCH_FAILED: "LAUNCH_FAILED", - LAUNCH_START: "LAUNCH_START", - SERVER_SKIPPED: "SERVER_SKIPPED", - SNAPSHOT_END: "SNAPSHOT_END", - SNAPSHOT_FAIL: "SNAPSHOT_FAIL", - SNAPSHOT_START: "SNAPSHOT_START", - USING_PREVIOUS_SNAPSHOT: "USING_PREVIOUS_SNAPSHOT", -} as const; - -/** - * @public - */ -export type JobLogEvent = (typeof JobLogEvent)[keyof typeof JobLogEvent]; - /** *

Job log data

* @public @@ -1490,55 +1383,6 @@ export interface DescribeJobsRequest { accountID?: string | undefined; } -/** - * @public - * @enum - */ -export const InitiatedBy = { - DIAGNOSTIC: "DIAGNOSTIC", - START_CUTOVER: "START_CUTOVER", - START_TEST: "START_TEST", - TERMINATE: "TERMINATE", -} as const; - -/** - * @public - */ -export type InitiatedBy = (typeof InitiatedBy)[keyof typeof InitiatedBy]; - -/** - * @public - * @enum - */ -export const LaunchStatus = { - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - LAUNCHED: "LAUNCHED", - PENDING: "PENDING", - TERMINATED: "TERMINATED", -} as const; - -/** - * @public - */ -export type LaunchStatus = (typeof LaunchStatus)[keyof typeof LaunchStatus]; - -/** - * @public - * @enum - */ -export const PostLaunchActionExecutionStatus = { - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUCCESS: "SUCCESS", -} as const; - -/** - * @public - */ -export type PostLaunchActionExecutionStatus = - (typeof PostLaunchActionExecutionStatus)[keyof typeof PostLaunchActionExecutionStatus]; - /** *

AWS Systems Manager Document external parameter.

* @public @@ -1576,20 +1420,6 @@ export namespace SsmExternalParameter { } } -/** - * @public - * @enum - */ -export const SsmParameterStoreParameterType = { - STRING: "STRING", -} as const; - -/** - * @public - */ -export type SsmParameterStoreParameterType = - (typeof SsmParameterStoreParameterType)[keyof typeof SsmParameterStoreParameterType]; - /** *

AWS Systems Manager Parameter Store parameter.

* @public @@ -1650,20 +1480,6 @@ export interface SsmDocument { externalParameters?: Record | undefined; } -/** - * @public - * @enum - */ -export const SsmDocumentType = { - AUTOMATION: "AUTOMATION", - COMMAND: "COMMAND", -} as const; - -/** - * @public - */ -export type SsmDocumentType = (typeof SsmDocumentType)[keyof typeof SsmDocumentType]; - /** *

Launch Status of the Job Post Launch Actions.

* @public @@ -1748,35 +1564,6 @@ export interface ParticipatingServer { postLaunchActionsStatus?: PostLaunchActionsStatus | undefined; } -/** - * @public - * @enum - */ -export const JobStatus = { - COMPLETED: "COMPLETED", - PENDING: "PENDING", - STARTED: "STARTED", -} as const; - -/** - * @public - */ -export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus]; - -/** - * @public - * @enum - */ -export const JobType = { - LAUNCH: "LAUNCH", - TERMINATE: "TERMINATE", -} as const; - -/** - * @public - */ -export type JobType = (typeof JobType)[keyof typeof JobType]; - /** *

Job.

* @public @@ -1854,40 +1641,6 @@ export interface DescribeJobsResponse { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const BootMode = { - LEGACY_BIOS: "LEGACY_BIOS", - UEFI: "UEFI", - USE_SOURCE: "USE_SOURCE", -} as const; - -/** - * @public - */ -export type BootMode = (typeof BootMode)[keyof typeof BootMode]; - -/** - * @public - * @enum - */ -export const VolumeType = { - gp2: "gp2", - gp3: "gp3", - io1: "io1", - io2: "io2", - sc1: "sc1", - st1: "st1", - standard: "standard", -} as const; - -/** - * @public - */ -export type VolumeType = (typeof VolumeType)[keyof typeof VolumeType]; - /** *

Launch template disk configuration.

* @public @@ -1912,20 +1665,6 @@ export interface LaunchTemplateDiskConf { throughput?: number | undefined; } -/** - * @public - * @enum - */ -export const LaunchDisposition = { - STARTED: "STARTED", - STOPPED: "STOPPED", -} as const; - -/** - * @public - */ -export type LaunchDisposition = (typeof LaunchDisposition)[keyof typeof LaunchDisposition]; - /** *

Configure Licensing.

* @public @@ -1938,22 +1677,6 @@ export interface Licensing { osByol?: boolean | undefined; } -/** - * @public - * @enum - */ -export const PostLaunchActionsDeploymentType = { - CUTOVER_ONLY: "CUTOVER_ONLY", - TEST_AND_CUTOVER: "TEST_AND_CUTOVER", - TEST_ONLY: "TEST_ONLY", -} as const; - -/** - * @public - */ -export type PostLaunchActionsDeploymentType = - (typeof PostLaunchActionsDeploymentType)[keyof typeof PostLaunchActionsDeploymentType]; - /** *

Post Launch Actions to executed on the Test or Cutover instance.

* @public @@ -1990,21 +1713,6 @@ export interface PostLaunchActions { ssmDocuments?: SsmDocument[] | undefined; } -/** - * @public - * @enum - */ -export const TargetInstanceTypeRightSizingMethod = { - BASIC: "BASIC", - NONE: "NONE", -} as const; - -/** - * @public - */ -export type TargetInstanceTypeRightSizingMethod = - (typeof TargetInstanceTypeRightSizingMethod)[keyof typeof TargetInstanceTypeRightSizingMethod]; - /** * @public */ @@ -2668,52 +2376,6 @@ export interface ListTagsForResourceResponse { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const ReplicationConfigurationDataPlaneRouting = { - PRIVATE_IP: "PRIVATE_IP", - PUBLIC_IP: "PUBLIC_IP", -} as const; - -/** - * @public - */ -export type ReplicationConfigurationDataPlaneRouting = - (typeof ReplicationConfigurationDataPlaneRouting)[keyof typeof ReplicationConfigurationDataPlaneRouting]; - -/** - * @public - * @enum - */ -export const ReplicationConfigurationDefaultLargeStagingDiskType = { - GP2: "GP2", - GP3: "GP3", - ST1: "ST1", -} as const; - -/** - * @public - */ -export type ReplicationConfigurationDefaultLargeStagingDiskType = - (typeof ReplicationConfigurationDefaultLargeStagingDiskType)[keyof typeof ReplicationConfigurationDefaultLargeStagingDiskType]; - -/** - * @public - * @enum - */ -export const ReplicationConfigurationEbsEncryption = { - CUSTOM: "CUSTOM", - DEFAULT: "DEFAULT", -} as const; - -/** - * @public - */ -export type ReplicationConfigurationEbsEncryption = - (typeof ReplicationConfigurationEbsEncryption)[keyof typeof ReplicationConfigurationEbsEncryption]; - /** * @public */ @@ -3055,22 +2717,6 @@ export interface UpdateReplicationConfigurationTemplateRequest { useFipsEndpoint?: boolean | undefined; } -/** - * @public - * @enum - */ -export const ChangeServerLifeCycleStateSourceServerLifecycleState = { - CUTOVER: "CUTOVER", - READY_FOR_CUTOVER: "READY_FOR_CUTOVER", - READY_FOR_TEST: "READY_FOR_TEST", -} as const; - -/** - * @public - */ -export type ChangeServerLifeCycleStateSourceServerLifecycleState = - (typeof ChangeServerLifeCycleStateSourceServerLifecycleState)[keyof typeof ChangeServerLifeCycleStateSourceServerLifecycleState]; - /** *

The request to change the source server migration lifecycle state.

* @public @@ -3124,34 +2770,6 @@ export interface SourceServerConnectorAction { connectorArn?: string | undefined; } -/** - * @public - * @enum - */ -export const DataReplicationErrorString = { - AGENT_NOT_SEEN: "AGENT_NOT_SEEN", - FAILED_TO_ATTACH_STAGING_DISKS: "FAILED_TO_ATTACH_STAGING_DISKS", - FAILED_TO_AUTHENTICATE_WITH_SERVICE: "FAILED_TO_AUTHENTICATE_WITH_SERVICE", - FAILED_TO_BOOT_REPLICATION_SERVER: "FAILED_TO_BOOT_REPLICATION_SERVER", - FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER: "FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER", - FAILED_TO_CREATE_SECURITY_GROUP: "FAILED_TO_CREATE_SECURITY_GROUP", - FAILED_TO_CREATE_STAGING_DISKS: "FAILED_TO_CREATE_STAGING_DISKS", - FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE: "FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE", - FAILED_TO_LAUNCH_REPLICATION_SERVER: "FAILED_TO_LAUNCH_REPLICATION_SERVER", - FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT: "FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT", - FAILED_TO_START_DATA_TRANSFER: "FAILED_TO_START_DATA_TRANSFER", - LAST_SNAPSHOT_JOB_FAILED: "LAST_SNAPSHOT_JOB_FAILED", - NOT_CONVERGING: "NOT_CONVERGING", - SNAPSHOTS_FAILURE: "SNAPSHOTS_FAILURE", - UNSTABLE_NETWORK: "UNSTABLE_NETWORK", - UNSUPPORTED_VM_CONFIGURATION: "UNSUPPORTED_VM_CONFIGURATION", -} as const; - -/** - * @public - */ -export type DataReplicationErrorString = (typeof DataReplicationErrorString)[keyof typeof DataReplicationErrorString]; - /** *

Error in data replication.

* @public @@ -3170,48 +2788,6 @@ export interface DataReplicationError { rawError?: string | undefined; } -/** - * @public - * @enum - */ -export const DataReplicationInitiationStepName = { - ATTACH_STAGING_DISKS: "ATTACH_STAGING_DISKS", - AUTHENTICATE_WITH_SERVICE: "AUTHENTICATE_WITH_SERVICE", - BOOT_REPLICATION_SERVER: "BOOT_REPLICATION_SERVER", - CONNECT_AGENT_TO_REPLICATION_SERVER: "CONNECT_AGENT_TO_REPLICATION_SERVER", - CREATE_SECURITY_GROUP: "CREATE_SECURITY_GROUP", - CREATE_STAGING_DISKS: "CREATE_STAGING_DISKS", - DOWNLOAD_REPLICATION_SOFTWARE: "DOWNLOAD_REPLICATION_SOFTWARE", - LAUNCH_REPLICATION_SERVER: "LAUNCH_REPLICATION_SERVER", - PAIR_REPLICATION_SERVER_WITH_AGENT: "PAIR_REPLICATION_SERVER_WITH_AGENT", - START_DATA_TRANSFER: "START_DATA_TRANSFER", - WAIT: "WAIT", -} as const; - -/** - * @public - */ -export type DataReplicationInitiationStepName = - (typeof DataReplicationInitiationStepName)[keyof typeof DataReplicationInitiationStepName]; - -/** - * @public - * @enum - */ -export const DataReplicationInitiationStepStatus = { - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - NOT_STARTED: "NOT_STARTED", - SKIPPED: "SKIPPED", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type DataReplicationInitiationStepStatus = - (typeof DataReplicationInitiationStepStatus)[keyof typeof DataReplicationInitiationStepStatus]; - /** *

Data replication initiation step.

* @public @@ -3254,30 +2830,6 @@ export interface DataReplicationInitiation { steps?: DataReplicationInitiationStep[] | undefined; } -/** - * @public - * @enum - */ -export const DataReplicationState = { - BACKLOG: "BACKLOG", - CONTINUOUS: "CONTINUOUS", - CREATING_SNAPSHOT: "CREATING_SNAPSHOT", - DISCONNECTED: "DISCONNECTED", - INITIAL_SYNC: "INITIAL_SYNC", - INITIATING: "INITIATING", - PAUSED: "PAUSED", - PENDING_SNAPSHOT_SHIPPING: "PENDING_SNAPSHOT_SHIPPING", - RESCAN: "RESCAN", - SHIPPING_SNAPSHOT: "SHIPPING_SNAPSHOT", - STALLED: "STALLED", - STOPPED: "STOPPED", -} as const; - -/** - * @public - */ -export type DataReplicationState = (typeof DataReplicationState)[keyof typeof DataReplicationState]; - /** *

Request to query disks replicated.

* @public @@ -3362,22 +2914,6 @@ export interface DataReplicationInfo { lastSnapshotDateTime?: string | undefined; } -/** - * @public - * @enum - */ -export const FirstBoot = { - STOPPED: "STOPPED", - SUCCEEDED: "SUCCEEDED", - UNKNOWN: "UNKNOWN", - WAITING: "WAITING", -} as const; - -/** - * @public - */ -export type FirstBoot = (typeof FirstBoot)[keyof typeof FirstBoot]; - /** *

Launched instance.

* @public @@ -3534,28 +3070,6 @@ export interface LifeCycleLastTest { finalized?: LifeCycleLastTestFinalized | undefined; } -/** - * @public - * @enum - */ -export const LifeCycleState = { - CUTOVER: "CUTOVER", - CUTTING_OVER: "CUTTING_OVER", - DISCONNECTED: "DISCONNECTED", - DISCOVERED: "DISCOVERED", - NOT_READY: "NOT_READY", - PENDING_INSTALLATION: "PENDING_INSTALLATION", - READY_FOR_CUTOVER: "READY_FOR_CUTOVER", - READY_FOR_TEST: "READY_FOR_TEST", - STOPPED: "STOPPED", - TESTING: "TESTING", -} as const; - -/** - * @public - */ -export type LifeCycleState = (typeof LifeCycleState)[keyof typeof LifeCycleState]; - /** *

Lifecycle.

* @public @@ -3604,20 +3118,6 @@ export interface LifeCycle { state?: LifeCycleState | undefined; } -/** - * @public - * @enum - */ -export const ReplicationType = { - AGENT_BASED: "AGENT_BASED", - SNAPSHOT_SHIPPING: "SNAPSHOT_SHIPPING", -} as const; - -/** - * @public - */ -export type ReplicationType = (typeof ReplicationType)[keyof typeof ReplicationType]; - /** *

Source server CPU information.

* @public @@ -4118,27 +3618,6 @@ export interface GetReplicationConfigurationRequest { accountID?: string | undefined; } -/** - * @public - * @enum - */ -export const ReplicationConfigurationReplicatedDiskStagingDiskType = { - AUTO: "AUTO", - GP2: "GP2", - GP3: "GP3", - IO1: "IO1", - IO2: "IO2", - SC1: "SC1", - ST1: "ST1", - STANDARD: "STANDARD", -} as const; - -/** - * @public - */ -export type ReplicationConfigurationReplicatedDiskStagingDiskType = - (typeof ReplicationConfigurationReplicatedDiskStagingDiskType)[keyof typeof ReplicationConfigurationReplicatedDiskStagingDiskType]; - /** *

Replication Configuration replicated disk.

* @public @@ -5118,36 +4597,6 @@ export interface ArchiveWaveRequest { accountID?: string | undefined; } -/** - * @public - * @enum - */ -export const WaveHealthStatus = { - ERROR: "ERROR", - HEALTHY: "HEALTHY", - LAGGING: "LAGGING", -} as const; - -/** - * @public - */ -export type WaveHealthStatus = (typeof WaveHealthStatus)[keyof typeof WaveHealthStatus]; - -/** - * @public - * @enum - */ -export const WaveProgressStatus = { - COMPLETED: "COMPLETED", - IN_PROGRESS: "IN_PROGRESS", - NOT_STARTED: "NOT_STARTED", -} as const; - -/** - * @public - */ -export type WaveProgressStatus = (typeof WaveProgressStatus)[keyof typeof WaveProgressStatus]; - /** *

Wave aggregated status.

* @public diff --git a/clients/client-migration-hub-refactor-spaces/src/index.ts b/clients/client-migration-hub-refactor-spaces/src/index.ts index d5bc847938b4..c311798748b8 100644 --- a/clients/client-migration-hub-refactor-spaces/src/index.ts +++ b/clients/client-migration-hub-refactor-spaces/src/index.ts @@ -20,6 +20,7 @@ export type { MigrationHubRefactorSpacesExtensionConfiguration } from "./extensi export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-migration-hub-refactor-spaces/src/models/enums.ts b/clients/client-migration-hub-refactor-spaces/src/models/enums.ts new file mode 100644 index 000000000000..e28c9d9a22c3 --- /dev/null +++ b/clients/client-migration-hub-refactor-spaces/src/models/enums.ts @@ -0,0 +1,211 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ApiGatewayEndpointType = { + PRIVATE: "PRIVATE", + REGIONAL: "REGIONAL", +} as const; +/** + * @public + */ +export type ApiGatewayEndpointType = (typeof ApiGatewayEndpointType)[keyof typeof ApiGatewayEndpointType]; + +/** + * @public + * @enum + */ +export const ApplicationState = { + ACTIVE: "ACTIVE", + CREATING: "CREATING", + DELETING: "DELETING", + FAILED: "FAILED", + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type ApplicationState = (typeof ApplicationState)[keyof typeof ApplicationState]; + +/** + * @public + * @enum + */ +export const ErrorCode = { + INVALID_RESOURCE_STATE: "INVALID_RESOURCE_STATE", + NOT_AUTHORIZED: "NOT_AUTHORIZED", + REQUEST_LIMIT_EXCEEDED: "REQUEST_LIMIT_EXCEEDED", + RESOURCE_CREATION_FAILURE: "RESOURCE_CREATION_FAILURE", + RESOURCE_DELETION_FAILURE: "RESOURCE_DELETION_FAILURE", + RESOURCE_IN_USE: "RESOURCE_IN_USE", + RESOURCE_LIMIT_EXCEEDED: "RESOURCE_LIMIT_EXCEEDED", + RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND", + RESOURCE_RETRIEVAL_FAILURE: "RESOURCE_RETRIEVAL_FAILURE", + RESOURCE_UPDATE_FAILURE: "RESOURCE_UPDATE_FAILURE", + SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE: "SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE", + STATE_TRANSITION_FAILURE: "STATE_TRANSITION_FAILURE", +} as const; +/** + * @public + */ +export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode]; + +/** + * @public + * @enum + */ +export const ErrorResourceType = { + API_GATEWAY: "API_GATEWAY", + APPLICATION: "APPLICATION", + ENVIRONMENT: "ENVIRONMENT", + IAM_ROLE: "IAM_ROLE", + LAMBDA: "LAMBDA", + LOAD_BALANCER_LISTENER: "LOAD_BALANCER_LISTENER", + NLB: "NLB", + RESOURCE_SHARE: "RESOURCE_SHARE", + ROUTE: "ROUTE", + ROUTE_TABLE: "ROUTE_TABLE", + SECURITY_GROUP: "SECURITY_GROUP", + SERVICE: "SERVICE", + SUBNET: "SUBNET", + TARGET_GROUP: "TARGET_GROUP", + TRANSIT_GATEWAY: "TRANSIT_GATEWAY", + TRANSIT_GATEWAY_ATTACHMENT: "TRANSIT_GATEWAY_ATTACHMENT", + VPC: "VPC", + VPC_ENDPOINT_SERVICE_CONFIGURATION: "VPC_ENDPOINT_SERVICE_CONFIGURATION", + VPC_LINK: "VPC_LINK", +} as const; +/** + * @public + */ +export type ErrorResourceType = (typeof ErrorResourceType)[keyof typeof ErrorResourceType]; + +/** + * @public + * @enum + */ +export const ProxyType = { + API_GATEWAY: "API_GATEWAY", +} as const; +/** + * @public + */ +export type ProxyType = (typeof ProxyType)[keyof typeof ProxyType]; + +/** + * @public + * @enum + */ +export const NetworkFabricType = { + NONE: "NONE", + TRANSIT_GATEWAY: "TRANSIT_GATEWAY", +} as const; +/** + * @public + */ +export type NetworkFabricType = (typeof NetworkFabricType)[keyof typeof NetworkFabricType]; + +/** + * @public + * @enum + */ +export const EnvironmentState = { + ACTIVE: "ACTIVE", + CREATING: "CREATING", + DELETING: "DELETING", + FAILED: "FAILED", +} as const; +/** + * @public + */ +export type EnvironmentState = (typeof EnvironmentState)[keyof typeof EnvironmentState]; + +/** + * @public + * @enum + */ +export const RouteActivationState = { + ACTIVE: "ACTIVE", + INACTIVE: "INACTIVE", +} as const; +/** + * @public + */ +export type RouteActivationState = (typeof RouteActivationState)[keyof typeof RouteActivationState]; + +/** + * @public + * @enum + */ +export const RouteType = { + DEFAULT: "DEFAULT", + URI_PATH: "URI_PATH", +} as const; +/** + * @public + */ +export type RouteType = (typeof RouteType)[keyof typeof RouteType]; + +/** + * @public + * @enum + */ +export const HttpMethod = { + DELETE: "DELETE", + GET: "GET", + HEAD: "HEAD", + OPTIONS: "OPTIONS", + PATCH: "PATCH", + POST: "POST", + PUT: "PUT", +} as const; +/** + * @public + */ +export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod]; + +/** + * @public + * @enum + */ +export const RouteState = { + ACTIVE: "ACTIVE", + CREATING: "CREATING", + DELETING: "DELETING", + FAILED: "FAILED", + INACTIVE: "INACTIVE", + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type RouteState = (typeof RouteState)[keyof typeof RouteState]; + +/** + * @public + * @enum + */ +export const ServiceEndpointType = { + LAMBDA: "LAMBDA", + URL: "URL", +} as const; +/** + * @public + */ +export type ServiceEndpointType = (typeof ServiceEndpointType)[keyof typeof ServiceEndpointType]; + +/** + * @public + * @enum + */ +export const ServiceState = { + ACTIVE: "ACTIVE", + CREATING: "CREATING", + DELETING: "DELETING", + FAILED: "FAILED", +} as const; +/** + * @public + */ +export type ServiceState = (typeof ServiceState)[keyof typeof ServiceState]; diff --git a/clients/client-migration-hub-refactor-spaces/src/models/models_0.ts b/clients/client-migration-hub-refactor-spaces/src/models/models_0.ts index 255cdee40cbc..17504afe4834 100644 --- a/clients/client-migration-hub-refactor-spaces/src/models/models_0.ts +++ b/clients/client-migration-hub-refactor-spaces/src/models/models_0.ts @@ -1,17 +1,19 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const ApiGatewayEndpointType = { - PRIVATE: "PRIVATE", - REGIONAL: "REGIONAL", -} as const; - -/** - * @public - */ -export type ApiGatewayEndpointType = (typeof ApiGatewayEndpointType)[keyof typeof ApiGatewayEndpointType]; +import { + ApiGatewayEndpointType, + ApplicationState, + EnvironmentState, + ErrorCode, + ErrorResourceType, + HttpMethod, + NetworkFabricType, + ProxyType, + RouteActivationState, + RouteState, + RouteType, + ServiceEndpointType, + ServiceState, +} from "./enums"; /** *

A wrapper object holding the Amazon API Gateway proxy configuration.

@@ -136,78 +138,6 @@ export interface ApiGatewayProxySummary { StageName?: string | undefined; } -/** - * @public - * @enum - */ -export const ApplicationState = { - ACTIVE: "ACTIVE", - CREATING: "CREATING", - DELETING: "DELETING", - FAILED: "FAILED", - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type ApplicationState = (typeof ApplicationState)[keyof typeof ApplicationState]; - -/** - * @public - * @enum - */ -export const ErrorCode = { - INVALID_RESOURCE_STATE: "INVALID_RESOURCE_STATE", - NOT_AUTHORIZED: "NOT_AUTHORIZED", - REQUEST_LIMIT_EXCEEDED: "REQUEST_LIMIT_EXCEEDED", - RESOURCE_CREATION_FAILURE: "RESOURCE_CREATION_FAILURE", - RESOURCE_DELETION_FAILURE: "RESOURCE_DELETION_FAILURE", - RESOURCE_IN_USE: "RESOURCE_IN_USE", - RESOURCE_LIMIT_EXCEEDED: "RESOURCE_LIMIT_EXCEEDED", - RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND", - RESOURCE_RETRIEVAL_FAILURE: "RESOURCE_RETRIEVAL_FAILURE", - RESOURCE_UPDATE_FAILURE: "RESOURCE_UPDATE_FAILURE", - SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE: "SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE", - STATE_TRANSITION_FAILURE: "STATE_TRANSITION_FAILURE", -} as const; - -/** - * @public - */ -export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode]; - -/** - * @public - * @enum - */ -export const ErrorResourceType = { - API_GATEWAY: "API_GATEWAY", - APPLICATION: "APPLICATION", - ENVIRONMENT: "ENVIRONMENT", - IAM_ROLE: "IAM_ROLE", - LAMBDA: "LAMBDA", - LOAD_BALANCER_LISTENER: "LOAD_BALANCER_LISTENER", - NLB: "NLB", - RESOURCE_SHARE: "RESOURCE_SHARE", - ROUTE: "ROUTE", - ROUTE_TABLE: "ROUTE_TABLE", - SECURITY_GROUP: "SECURITY_GROUP", - SERVICE: "SERVICE", - SUBNET: "SUBNET", - TARGET_GROUP: "TARGET_GROUP", - TRANSIT_GATEWAY: "TRANSIT_GATEWAY", - TRANSIT_GATEWAY_ATTACHMENT: "TRANSIT_GATEWAY_ATTACHMENT", - VPC: "VPC", - VPC_ENDPOINT_SERVICE_CONFIGURATION: "VPC_ENDPOINT_SERVICE_CONFIGURATION", - VPC_LINK: "VPC_LINK", -} as const; - -/** - * @public - */ -export type ErrorResourceType = (typeof ErrorResourceType)[keyof typeof ErrorResourceType]; - /** *

Error associated with a resource returned for a Get or List resource response.

* @public @@ -250,19 +180,6 @@ export interface ErrorResponse { AdditionalDetails?: Record | undefined; } -/** - * @public - * @enum - */ -export const ProxyType = { - API_GATEWAY: "API_GATEWAY", -} as const; - -/** - * @public - */ -export type ProxyType = (typeof ProxyType)[keyof typeof ProxyType]; - /** *

The list of ApplicationSummary objects.

* @public @@ -493,20 +410,6 @@ export interface CreateApplicationResponse { CreatedTime?: Date | undefined; } -/** - * @public - * @enum - */ -export const NetworkFabricType = { - NONE: "NONE", - TRANSIT_GATEWAY: "TRANSIT_GATEWAY", -} as const; - -/** - * @public - */ -export type NetworkFabricType = (typeof NetworkFabricType)[keyof typeof NetworkFabricType]; - /** * @public */ @@ -543,22 +446,6 @@ export interface CreateEnvironmentRequest { ClientToken?: string | undefined; } -/** - * @public - * @enum - */ -export const EnvironmentState = { - ACTIVE: "ACTIVE", - CREATING: "CREATING", - DELETING: "DELETING", - FAILED: "FAILED", -} as const; - -/** - * @public - */ -export type EnvironmentState = (typeof EnvironmentState)[keyof typeof EnvironmentState]; - /** * @public */ @@ -624,20 +511,6 @@ export interface CreateEnvironmentResponse { CreatedTime?: Date | undefined; } -/** - * @public - * @enum - */ -export const RouteActivationState = { - ACTIVE: "ACTIVE", - INACTIVE: "INACTIVE", -} as const; - -/** - * @public - */ -export type RouteActivationState = (typeof RouteActivationState)[keyof typeof RouteActivationState]; - /** *

The configuration for the default route type.

* @public @@ -651,39 +524,6 @@ export interface DefaultRouteInput { ActivationState?: RouteActivationState | undefined; } -/** - * @public - * @enum - */ -export const RouteType = { - DEFAULT: "DEFAULT", - URI_PATH: "URI_PATH", -} as const; - -/** - * @public - */ -export type RouteType = (typeof RouteType)[keyof typeof RouteType]; - -/** - * @public - * @enum - */ -export const HttpMethod = { - DELETE: "DELETE", - GET: "GET", - HEAD: "HEAD", - OPTIONS: "OPTIONS", - PATCH: "PATCH", - POST: "POST", - PUT: "PUT", -} as const; - -/** - * @public - */ -export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod]; - /** *

The configuration for the URI path route type.

* @public @@ -784,24 +624,6 @@ export interface CreateRouteRequest { ClientToken?: string | undefined; } -/** - * @public - * @enum - */ -export const RouteState = { - ACTIVE: "ACTIVE", - CREATING: "CREATING", - DELETING: "DELETING", - FAILED: "FAILED", - INACTIVE: "INACTIVE", - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type RouteState = (typeof RouteState)[keyof typeof RouteState]; - /** * @public */ @@ -887,20 +709,6 @@ export interface CreateRouteResponse { CreatedTime?: Date | undefined; } -/** - * @public - * @enum - */ -export const ServiceEndpointType = { - LAMBDA: "LAMBDA", - URL: "URL", -} as const; - -/** - * @public - */ -export type ServiceEndpointType = (typeof ServiceEndpointType)[keyof typeof ServiceEndpointType]; - /** *

The input for the Lambda endpoint type.

* @public @@ -1005,22 +813,6 @@ export interface CreateServiceRequest { ClientToken?: string | undefined; } -/** - * @public - * @enum - */ -export const ServiceState = { - ACTIVE: "ACTIVE", - CREATING: "CREATING", - DELETING: "DELETING", - FAILED: "FAILED", -} as const; - -/** - * @public - */ -export type ServiceState = (typeof ServiceState)[keyof typeof ServiceState]; - /** * @public */ diff --git a/clients/client-migrationhuborchestrator/src/index.ts b/clients/client-migrationhuborchestrator/src/index.ts index 8a87063fd1d9..1aca7eb06f56 100644 --- a/clients/client-migrationhuborchestrator/src/index.ts +++ b/clients/client-migrationhuborchestrator/src/index.ts @@ -17,6 +17,7 @@ export type { MigrationHubOrchestratorExtensionConfiguration } from "./extension export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-migrationhuborchestrator/src/models/enums.ts b/clients/client-migrationhuborchestrator/src/models/enums.ts new file mode 100644 index 000000000000..1c971ee99845 --- /dev/null +++ b/clients/client-migrationhuborchestrator/src/models/enums.ts @@ -0,0 +1,161 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const MigrationWorkflowStatusEnum = { + COMPLETED: "COMPLETED", + CREATING: "CREATING", + CREATION_FAILED: "CREATION_FAILED", + DELETED: "DELETED", + DELETING: "DELETING", + DELETION_FAILED: "DELETION_FAILED", + IN_PROGRESS: "IN_PROGRESS", + NOT_STARTED: "NOT_STARTED", + PAUSED: "PAUSED", + PAUSING: "PAUSING", + PAUSING_FAILED: "PAUSING_FAILED", + STARTING: "STARTING", + USER_ATTENTION_REQUIRED: "USER_ATTENTION_REQUIRED", + WORKFLOW_FAILED: "WORKFLOW_FAILED", +} as const; +/** + * @public + */ +export type MigrationWorkflowStatusEnum = + (typeof MigrationWorkflowStatusEnum)[keyof typeof MigrationWorkflowStatusEnum]; + +/** + * @public + * @enum + */ +export const DataType = { + INTEGER: "INTEGER", + STRING: "STRING", + STRINGLIST: "STRINGLIST", + STRINGMAP: "STRINGMAP", +} as const; +/** + * @public + */ +export type DataType = (typeof DataType)[keyof typeof DataType]; + +/** + * @public + * @enum + */ +export const TemplateStatus = { + CREATED: "CREATED", + CREATING: "CREATING", + CREATION_FAILED: "CREATION_FAILED", + PENDING_CREATION: "PENDING_CREATION", + READY: "READY", +} as const; +/** + * @public + */ +export type TemplateStatus = (typeof TemplateStatus)[keyof typeof TemplateStatus]; + +/** + * @public + * @enum + */ +export const PluginHealth = { + PLUGIN_HEALTHY: "HEALTHY", + PLUGIN_UNHEALTHY: "UNHEALTHY", +} as const; +/** + * @public + */ +export type PluginHealth = (typeof PluginHealth)[keyof typeof PluginHealth]; + +/** + * @public + * @enum + */ +export const StepActionType = { + AUTOMATED: "AUTOMATED", + MANUAL: "MANUAL", +} as const; +/** + * @public + */ +export type StepActionType = (typeof StepActionType)[keyof typeof StepActionType]; + +/** + * @public + * @enum + */ +export const RunEnvironment = { + AWS: "AWS", + ONPREMISE: "ONPREMISE", +} as const; +/** + * @public + */ +export type RunEnvironment = (typeof RunEnvironment)[keyof typeof RunEnvironment]; + +/** + * @public + * @enum + */ +export const TargetType = { + ALL: "ALL", + NONE: "NONE", + SINGLE: "SINGLE", +} as const; +/** + * @public + */ +export type TargetType = (typeof TargetType)[keyof typeof TargetType]; + +/** + * @public + * @enum + */ +export const Owner = { + AWSManaged: "AWS_MANAGED", + CUSTOM: "CUSTOM", +} as const; +/** + * @public + */ +export type Owner = (typeof Owner)[keyof typeof Owner]; + +/** + * @public + * @enum + */ +export const StepGroupStatus = { + AWAITING_DEPENDENCIES: "AWAITING_DEPENDENCIES", + COMPLETED: "COMPLETED", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + PAUSED: "PAUSED", + PAUSING: "PAUSING", + READY: "READY", + USER_ATTENTION_REQUIRED: "USER_ATTENTION_REQUIRED", +} as const; +/** + * @public + */ +export type StepGroupStatus = (typeof StepGroupStatus)[keyof typeof StepGroupStatus]; + +/** + * @public + * @enum + */ +export const StepStatus = { + AWAITING_DEPENDENCIES: "AWAITING_DEPENDENCIES", + COMPLETED: "COMPLETED", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + PAUSED: "PAUSED", + READY: "READY", + SKIPPED: "SKIPPED", + USER_ATTENTION_REQUIRED: "USER_ATTENTION_REQUIRED", +} as const; +/** + * @public + */ +export type StepStatus = (typeof StepStatus)[keyof typeof StepStatus]; diff --git a/clients/client-migrationhuborchestrator/src/models/models_0.ts b/clients/client-migrationhuborchestrator/src/models/models_0.ts index 17b26b432ba8..5c11e51cdec6 100644 --- a/clients/client-migrationhuborchestrator/src/models/models_0.ts +++ b/clients/client-migrationhuborchestrator/src/models/models_0.ts @@ -1,4 +1,17 @@ // smithy-typescript generated code +import { + DataType, + MigrationWorkflowStatusEnum, + Owner, + PluginHealth, + RunEnvironment, + StepActionType, + StepGroupStatus, + StepStatus, + TargetType, + TemplateStatus, +} from "./enums"; + /** * @public */ @@ -156,33 +169,6 @@ export interface CreateMigrationWorkflowRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const MigrationWorkflowStatusEnum = { - COMPLETED: "COMPLETED", - CREATING: "CREATING", - CREATION_FAILED: "CREATION_FAILED", - DELETED: "DELETED", - DELETING: "DELETING", - DELETION_FAILED: "DELETION_FAILED", - IN_PROGRESS: "IN_PROGRESS", - NOT_STARTED: "NOT_STARTED", - PAUSED: "PAUSED", - PAUSING: "PAUSING", - PAUSING_FAILED: "PAUSING_FAILED", - STARTING: "STARTING", - USER_ATTENTION_REQUIRED: "USER_ATTENTION_REQUIRED", - WORKFLOW_FAILED: "WORKFLOW_FAILED", -} as const; - -/** - * @public - */ -export type MigrationWorkflowStatusEnum = - (typeof MigrationWorkflowStatusEnum)[keyof typeof MigrationWorkflowStatusEnum]; - /** * @public */ @@ -897,22 +883,6 @@ export interface GetMigrationWorkflowTemplateRequest { id: string | undefined; } -/** - * @public - * @enum - */ -export const DataType = { - INTEGER: "INTEGER", - STRING: "STRING", - STRINGLIST: "STRINGLIST", - STRINGMAP: "STRINGMAP", -} as const; - -/** - * @public - */ -export type DataType = (typeof DataType)[keyof typeof DataType]; - /** *

The input parameters of a template.

* @public @@ -937,23 +907,6 @@ export interface TemplateInput { required?: boolean | undefined; } -/** - * @public - * @enum - */ -export const TemplateStatus = { - CREATED: "CREATED", - CREATING: "CREATING", - CREATION_FAILED: "CREATION_FAILED", - PENDING_CREATION: "PENDING_CREATION", - READY: "READY", -} as const; - -/** - * @public - */ -export type TemplateStatus = (typeof TemplateStatus)[keyof typeof TemplateStatus]; - /** * @public */ @@ -1200,20 +1153,6 @@ export interface ListPluginsRequest { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const PluginHealth = { - PLUGIN_HEALTHY: "HEALTHY", - PLUGIN_UNHEALTHY: "UNHEALTHY", -} as const; - -/** - * @public - */ -export type PluginHealth = (typeof PluginHealth)[keyof typeof PluginHealth]; - /** *

The summary of the Migration Hub Orchestrator plugin.

* @public @@ -1343,20 +1282,6 @@ export interface StepOutput { required?: boolean | undefined; } -/** - * @public - * @enum - */ -export const StepActionType = { - AUTOMATED: "AUTOMATED", - MANUAL: "MANUAL", -} as const; - -/** - * @public - */ -export type StepActionType = (typeof StepActionType)[keyof typeof StepActionType]; - /** *

Command to be run on a particular operating system.

* @public @@ -1375,20 +1300,6 @@ export interface PlatformCommand { windows?: string | undefined; } -/** - * @public - * @enum - */ -export const RunEnvironment = { - AWS: "AWS", - ONPREMISE: "ONPREMISE", -} as const; - -/** - * @public - */ -export type RunEnvironment = (typeof RunEnvironment)[keyof typeof RunEnvironment]; - /** *

The script location for a particular operating system.

* @public @@ -1407,21 +1318,6 @@ export interface PlatformScriptKey { windows?: string | undefined; } -/** - * @public - * @enum - */ -export const TargetType = { - ALL: "ALL", - NONE: "NONE", - SINGLE: "SINGLE", -} as const; - -/** - * @public - */ -export type TargetType = (typeof TargetType)[keyof typeof TargetType]; - /** *

The custom script to run tests on source or target environments.

* @public @@ -1559,20 +1455,6 @@ export interface ListTemplateStepsRequest { stepGroupId: string | undefined; } -/** - * @public - * @enum - */ -export const Owner = { - AWSManaged: "AWS_MANAGED", - CUSTOM: "CUSTOM", -} as const; - -/** - * @public - */ -export type Owner = (typeof Owner)[keyof typeof Owner]; - /** *

The summary of the step.

* @public @@ -1668,26 +1550,6 @@ export interface GetTemplateStepGroupRequest { id: string | undefined; } -/** - * @public - * @enum - */ -export const StepGroupStatus = { - AWAITING_DEPENDENCIES: "AWAITING_DEPENDENCIES", - COMPLETED: "COMPLETED", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - PAUSED: "PAUSED", - PAUSING: "PAUSING", - READY: "READY", - USER_ATTENTION_REQUIRED: "USER_ATTENTION_REQUIRED", -} as const; - -/** - * @public - */ -export type StepGroupStatus = (typeof StepGroupStatus)[keyof typeof StepGroupStatus]; - /** * @public */ @@ -2127,26 +1989,6 @@ export interface GetWorkflowStepRequest { id: string | undefined; } -/** - * @public - * @enum - */ -export const StepStatus = { - AWAITING_DEPENDENCIES: "AWAITING_DEPENDENCIES", - COMPLETED: "COMPLETED", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - PAUSED: "PAUSED", - READY: "READY", - SKIPPED: "SKIPPED", - USER_ATTENTION_REQUIRED: "USER_ATTENTION_REQUIRED", -} as const; - -/** - * @public - */ -export type StepStatus = (typeof StepStatus)[keyof typeof StepStatus]; - /** * @public */ diff --git a/clients/client-migrationhubstrategy/src/index.ts b/clients/client-migrationhubstrategy/src/index.ts index 0768ca99f34c..55337dcc366e 100644 --- a/clients/client-migrationhubstrategy/src/index.ts +++ b/clients/client-migrationhubstrategy/src/index.ts @@ -18,6 +18,7 @@ export type { MigrationHubStrategyExtensionConfiguration } from "./extensionConf export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-migrationhubstrategy/src/models/enums.ts b/clients/client-migrationhubstrategy/src/models/enums.ts new file mode 100644 index 000000000000..d6cf9c5a2043 --- /dev/null +++ b/clients/client-migrationhubstrategy/src/models/enums.ts @@ -0,0 +1,708 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const RuntimeAnalysisStatus = { + ANALYSIS_FAILED: "ANALYSIS_FAILED", + ANALYSIS_STARTED: "ANALYSIS_STARTED", + ANALYSIS_SUCCESS: "ANALYSIS_SUCCESS", + ANALYSIS_TO_BE_SCHEDULED: "ANALYSIS_TO_BE_SCHEDULED", +} as const; +/** + * @public + */ +export type RuntimeAnalysisStatus = (typeof RuntimeAnalysisStatus)[keyof typeof RuntimeAnalysisStatus]; + +/** + * @public + * @enum + */ +export const SrcCodeOrDbAnalysisStatus = { + ANALYSIS_FAILED: "ANALYSIS_FAILED", + ANALYSIS_PARTIAL_SUCCESS: "ANALYSIS_PARTIAL_SUCCESS", + ANALYSIS_STARTED: "ANALYSIS_STARTED", + ANALYSIS_SUCCESS: "ANALYSIS_SUCCESS", + ANALYSIS_TO_BE_SCHEDULED: "ANALYSIS_TO_BE_SCHEDULED", + CONFIGURED: "CONFIGURED", + UNCONFIGURED: "UNCONFIGURED", +} as const; +/** + * @public + */ +export type SrcCodeOrDbAnalysisStatus = (typeof SrcCodeOrDbAnalysisStatus)[keyof typeof SrcCodeOrDbAnalysisStatus]; + +/** + * @public + * @enum + */ +export const AnalysisType = { + BINARY_ANALYSIS: "BINARY_ANALYSIS", + DATABASE_ANALYSIS: "DATABASE_ANALYSIS", + RUNTIME_ANALYSIS: "RUNTIME_ANALYSIS", + SOURCE_CODE_ANALYSIS: "SOURCE_CODE_ANALYSIS", +} as const; +/** + * @public + */ +export type AnalysisType = (typeof AnalysisType)[keyof typeof AnalysisType]; + +/** + * @public + * @enum + */ +export const BinaryAnalyzerName = { + BYTECODE_ANALYZER: "BYTECODE_ANALYZER", + DLL_ANALYZER: "DLL_ANALYZER", +} as const; +/** + * @public + */ +export type BinaryAnalyzerName = (typeof BinaryAnalyzerName)[keyof typeof BinaryAnalyzerName]; + +/** + * @public + * @enum + */ +export const RunTimeAnalyzerName = { + A2C_ANALYZER: "A2C_ANALYZER", + DATABASE_ANALYZER: "DATABASE_ANALYZER", + EMP_PA_ANALYZER: "EMP_PA_ANALYZER", + REHOST_ANALYZER: "REHOST_ANALYZER", + SCT_ANALYZER: "SCT_ANALYZER", +} as const; +/** + * @public + */ +export type RunTimeAnalyzerName = (typeof RunTimeAnalyzerName)[keyof typeof RunTimeAnalyzerName]; + +/** + * @public + * @enum + */ +export const SourceCodeAnalyzerName = { + BYTECODE_ANALYZER: "BYTECODE_ANALYZER", + CSHARP_ANALYZER: "CSHARP_ANALYZER", + JAVA_ANALYZER: "JAVA_ANALYZER", + PORTING_ASSISTANT: "PORTING_ASSISTANT", +} as const; +/** + * @public + */ +export type SourceCodeAnalyzerName = (typeof SourceCodeAnalyzerName)[keyof typeof SourceCodeAnalyzerName]; + +/** + * @public + * @enum + */ +export const AntipatternReportStatus = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUCCESS: "SUCCESS", +} as const; +/** + * @public + */ +export type AntipatternReportStatus = (typeof AntipatternReportStatus)[keyof typeof AntipatternReportStatus]; + +/** + * @public + * @enum + */ +export const Severity = { + HIGH: "HIGH", + LOW: "LOW", + MEDIUM: "MEDIUM", +} as const; +/** + * @public + */ +export type Severity = (typeof Severity)[keyof typeof Severity]; + +/** + * @public + * @enum + */ +export const ApplicationComponentCriteria = { + ANALYSIS_STATUS: "ANALYSIS_STATUS", + APP_NAME: "APP_NAME", + APP_TYPE: "APP_TYPE", + DESTINATION: "DESTINATION", + ERROR_CATEGORY: "ERROR_CATEGORY", + NOT_DEFINED: "NOT_DEFINED", + SERVER_ID: "SERVER_ID", + STRATEGY: "STRATEGY", +} as const; +/** + * @public + */ +export type ApplicationComponentCriteria = + (typeof ApplicationComponentCriteria)[keyof typeof ApplicationComponentCriteria]; + +/** + * @public + * @enum + */ +export const AppType = { + IIS: "IIS", + cassandra: "Cassandra", + db2: "DB2", + dotNetFramework: "DotNetFramework", + dotnet: "Dotnet", + dotnetcore: "DotnetCore", + java: "Java", + jboss: "JBoss", + mariadb: "Maria DB", + mongodb: "Mongo DB", + mysql: "MySQL", + oracle: "Oracle", + other: "Other", + postgresqlserver: "PostgreSQLServer", + spring: "Spring", + sqlServer: "SQLServer", + sybase: "Sybase", + tomcat: "Tomcat", + unknown: "Unknown", + visualbasic: "Visual Basic", + weblogic: "Oracle WebLogic", + websphere: "IBM WebSphere", +} as const; +/** + * @public + */ +export type AppType = (typeof AppType)[keyof typeof AppType]; + +/** + * @public + * @enum + */ +export const AppUnitErrorCategory = { + CONNECTIVITY_ERROR: "CONNECTIVITY_ERROR", + CREDENTIAL_ERROR: "CREDENTIAL_ERROR", + OTHER_ERROR: "OTHER_ERROR", + PERMISSION_ERROR: "PERMISSION_ERROR", + UNSUPPORTED_ERROR: "UNSUPPORTED_ERROR", +} as const; +/** + * @public + */ +export type AppUnitErrorCategory = (typeof AppUnitErrorCategory)[keyof typeof AppUnitErrorCategory]; + +/** + * @public + * @enum + */ +export const InclusionStatus = { + EXCLUDE_FROM_RECOMMENDATION: "excludeFromAssessment", + INCLUDE_IN_RECOMMENDATION: "includeInAssessment", +} as const; +/** + * @public + */ +export type InclusionStatus = (typeof InclusionStatus)[keyof typeof InclusionStatus]; + +/** + * @public + * @enum + */ +export const Strategy = { + REFACTOR: "Refactor", + REHOST: "Rehost", + RELOCATE: "Relocate", + REPLATFORM: "Replatform", + REPURCHASE: "Repurchase", + RETAIN: "Retain", + RETIREMENT: "Retirement", +} as const; +/** + * @public + */ +export type Strategy = (typeof Strategy)[keyof typeof Strategy]; + +/** + * @public + * @enum + */ +export const TargetDestination = { + AMAZON_DOCUMENTDB: "Amazon DocumentDB", + AMAZON_DYNAMODB: "Amazon DynamoDB", + AMAZON_ELASTIC_CLOUD_COMPUTE: "Amazon Elastic Cloud Compute (EC2)", + AMAZON_ELASTIC_CONTAINER_SERVICE: "Amazon Elastic Container Service (ECS)", + AMAZON_ELASTIC_KUBERNETES_SERVICE: "Amazon Elastic Kubernetes Service (EKS)", + AMAZON_RDS: "Amazon Relational Database Service", + AMAZON_RDS_MYSQL: "Amazon Relational Database Service on MySQL", + AMAZON_RDS_POSTGRESQL: "Amazon Relational Database Service on PostgreSQL", + AURORA_MYSQL: "Aurora MySQL", + AURORA_POSTGRESQL: "Aurora PostgreSQL", + AWS_ELASTIC_BEANSTALK: "AWS Elastic BeanStalk", + AWS_FARGATE: "AWS Fargate", + BABELFISH_AURORA_POSTGRESQL: "Babelfish for Aurora PostgreSQL", + NONE_SPECIFIED: "None specified", +} as const; +/** + * @public + */ +export type TargetDestination = (typeof TargetDestination)[keyof typeof TargetDestination]; + +/** + * @public + * @enum + */ +export const TransformationToolName = { + APP2CONTAINER: "App2Container", + DMS: "Database Migration Service", + EMP: "End of Support Migration", + IN_PLACE_OS_UPGRADE: "In Place Operating System Upgrade", + MGN: "Application Migration Service", + NATIVE_SQL: "Native SQL Server Backup/Restore", + PORTING_ASSISTANT: "Porting Assistant For .NET", + SCT: "Schema Conversion Tool", + STRATEGY_RECOMMENDATION_SUPPORT: "Strategy Recommendation Support", + WWAMA: "Windows Web Application Migration Assistant", +} as const; +/** + * @public + */ +export type TransformationToolName = (typeof TransformationToolName)[keyof typeof TransformationToolName]; + +/** + * @public + * @enum + */ +export const ResourceSubType = { + DATABASE: "Database", + DATABASE_PROCESS: "DatabaseProcess", + PROCESS: "Process", +} as const; +/** + * @public + */ +export type ResourceSubType = (typeof ResourceSubType)[keyof typeof ResourceSubType]; + +/** + * @public + * @enum + */ +export const StrategyRecommendation = { + NOT_RECOMMENDED: "notRecommended", + POTENTIAL: "potential", + RECOMMENDED: "recommended", + VIABLE_OPTION: "viableOption", +} as const; +/** + * @public + */ +export type StrategyRecommendation = (typeof StrategyRecommendation)[keyof typeof StrategyRecommendation]; + +/** + * @public + * @enum + */ +export const ApplicationMode = { + ALL: "ALL", + KNOWN: "KNOWN", + UNKNOWN: "UNKNOWN", +} as const; +/** + * @public + */ +export type ApplicationMode = (typeof ApplicationMode)[keyof typeof ApplicationMode]; + +/** + * @public + * @enum + */ +export const AwsManagedTargetDestination = { + AWS_ELASTIC_BEANSTALK: "AWS Elastic BeanStalk", + AWS_FARGATE: "AWS Fargate", + NONE_SPECIFIED: "None specified", +} as const; +/** + * @public + */ +export type AwsManagedTargetDestination = + (typeof AwsManagedTargetDestination)[keyof typeof AwsManagedTargetDestination]; + +/** + * @public + * @enum + */ +export const NoPreferenceTargetDestination = { + AMAZON_ELASTIC_CLOUD_COMPUTE: "Amazon Elastic Cloud Compute (EC2)", + AMAZON_ELASTIC_CONTAINER_SERVICE: "Amazon Elastic Container Service (ECS)", + AMAZON_ELASTIC_KUBERNETES_SERVICE: "Amazon Elastic Kubernetes Service (EKS)", + AWS_ELASTIC_BEANSTALK: "AWS Elastic BeanStalk", + AWS_FARGATE: "AWS Fargate", + NONE_SPECIFIED: "None specified", +} as const; +/** + * @public + */ +export type NoPreferenceTargetDestination = + (typeof NoPreferenceTargetDestination)[keyof typeof NoPreferenceTargetDestination]; + +/** + * @public + * @enum + */ +export const SelfManageTargetDestination = { + AMAZON_ELASTIC_CLOUD_COMPUTE: "Amazon Elastic Cloud Compute (EC2)", + AMAZON_ELASTIC_CONTAINER_SERVICE: "Amazon Elastic Container Service (ECS)", + AMAZON_ELASTIC_KUBERNETES_SERVICE: "Amazon Elastic Kubernetes Service (EKS)", + NONE_SPECIFIED: "None specified", +} as const; +/** + * @public + */ +export type SelfManageTargetDestination = + (typeof SelfManageTargetDestination)[keyof typeof SelfManageTargetDestination]; + +/** + * @public + * @enum + */ +export const AssessmentDataSourceType = { + ADS: "ApplicationDiscoveryService", + MANUAL_IMPORT: "ManualImport", + SR_COLLECTOR: "StrategyRecommendationsApplicationDataCollector", +} as const; +/** + * @public + */ +export type AssessmentDataSourceType = (typeof AssessmentDataSourceType)[keyof typeof AssessmentDataSourceType]; + +/** + * @public + * @enum + */ +export const AssessmentStatus = { + COMPLETE: "COMPLETE", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + STOPPED: "STOPPED", +} as const; +/** + * @public + */ +export type AssessmentStatus = (typeof AssessmentStatus)[keyof typeof AssessmentStatus]; + +/** + * @public + * @enum + */ +export const RunTimeAssessmentStatus = { + DC_FAILED: "dataCollectionTaskFailed", + DC_PARTIAL_SUCCESS: "dataCollectionTaskPartialSuccess", + DC_REQ_SENT: "dataCollectionTaskScheduled", + DC_STARTED: "dataCollectionTaskStarted", + DC_STOPPED: "dataCollectionTaskStopped", + DC_SUCCESS: "dataCollectionTaskSuccess", + DC_TO_BE_SCHEDULED: "dataCollectionTaskToBeScheduled", +} as const; +/** + * @public + */ +export type RunTimeAssessmentStatus = (typeof RunTimeAssessmentStatus)[keyof typeof RunTimeAssessmentStatus]; + +/** + * @public + * @enum + */ +export const ServerOsType = { + amazonLinux: "AmazonLinux", + endOfSupportWindowsServer: "EndOfSupportWindowsServer", + other: "Other", + redhat: "Redhat", + windowsServer: "WindowsServer", +} as const; +/** + * @public + */ +export type ServerOsType = (typeof ServerOsType)[keyof typeof ServerOsType]; + +/** + * @public + * @enum + */ +export const Condition = { + CONTAINS: "CONTAINS", + EQUALS: "EQUALS", + NOT_CONTAINS: "NOT_CONTAINS", + NOT_EQUALS: "NOT_EQUALS", +} as const; +/** + * @public + */ +export type Condition = (typeof Condition)[keyof typeof Condition]; + +/** + * @public + * @enum + */ +export const AuthType = { + CERT: "CERT", + NTLM: "NTLM", + SSH: "SSH", +} as const; +/** + * @public + */ +export type AuthType = (typeof AuthType)[keyof typeof AuthType]; + +/** + * @public + * @enum + */ +export const ImportFileTaskStatus = { + DELETE_FAILED: "DeleteFailed", + DELETE_IN_PROGRESS: "DeleteInProgress", + DELETE_PARTIAL_SUCCESS: "DeletePartialSuccess", + DELETE_SUCCESS: "DeleteSuccess", + IMPORT_FAILED: "ImportFailed", + IMPORT_IN_PROGRESS: "ImportInProgress", + IMPORT_PARTIAL_SUCCESS: "ImportPartialSuccess", + IMPORT_SUCCESS: "ImportSuccess", +} as const; +/** + * @public + */ +export type ImportFileTaskStatus = (typeof ImportFileTaskStatus)[keyof typeof ImportFileTaskStatus]; + +/** + * @public + * @enum + */ +export const DatabaseManagementPreference = { + AWS_MANAGED: "AWS-managed", + NO_PREFERENCE: "No preference", + SELF_MANAGE: "Self-manage", +} as const; +/** + * @public + */ +export type DatabaseManagementPreference = + (typeof DatabaseManagementPreference)[keyof typeof DatabaseManagementPreference]; + +/** + * @public + * @enum + */ +export const HeterogeneousTargetDatabaseEngine = { + AMAZON_AURORA: "Amazon Aurora", + AWS_POSTGRESQL: "AWS PostgreSQL", + DB2_LUW: "Db2 LUW", + MARIA_DB: "MariaDB", + MICROSOFT_SQL_SERVER: "Microsoft SQL Server", + MONGO_DB: "MongoDB", + MYSQL: "MySQL", + NONE_SPECIFIED: "None specified", + ORACLE_DATABASE: "Oracle Database", + SAP: "SAP", +} as const; +/** + * @public + */ +export type HeterogeneousTargetDatabaseEngine = + (typeof HeterogeneousTargetDatabaseEngine)[keyof typeof HeterogeneousTargetDatabaseEngine]; + +/** + * @public + * @enum + */ +export const HomogeneousTargetDatabaseEngine = { + NONE_SPECIFIED: "None specified", +} as const; +/** + * @public + */ +export type HomogeneousTargetDatabaseEngine = + (typeof HomogeneousTargetDatabaseEngine)[keyof typeof HomogeneousTargetDatabaseEngine]; + +/** + * @public + * @enum + */ +export const TargetDatabaseEngine = { + AMAZON_AURORA: "Amazon Aurora", + AWS_POSTGRESQL: "AWS PostgreSQL", + DB2_LUW: "Db2 LUW", + MARIA_DB: "MariaDB", + MICROSOFT_SQL_SERVER: "Microsoft SQL Server", + MONGO_DB: "MongoDB", + MYSQL: "MySQL", + NONE_SPECIFIED: "None specified", + ORACLE_DATABASE: "Oracle Database", + SAP: "SAP", +} as const; +/** + * @public + */ +export type TargetDatabaseEngine = (typeof TargetDatabaseEngine)[keyof typeof TargetDatabaseEngine]; + +/** + * @public + * @enum + */ +export const RecommendationReportStatus = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUCCESS: "SUCCESS", +} as const; +/** + * @public + */ +export type RecommendationReportStatus = (typeof RecommendationReportStatus)[keyof typeof RecommendationReportStatus]; + +/** + * @public + * @enum + */ +export const ServerErrorCategory = { + ARCHITECTURE_ERROR: "ARCHITECTURE_ERROR", + CONNECTIVITY_ERROR: "CONNECTIVITY_ERROR", + CREDENTIAL_ERROR: "CREDENTIAL_ERROR", + OTHER_ERROR: "OTHER_ERROR", + PERMISSION_ERROR: "PERMISSION_ERROR", +} as const; +/** + * @public + */ +export type ServerErrorCategory = (typeof ServerErrorCategory)[keyof typeof ServerErrorCategory]; + +/** + * @public + * @enum + */ +export const OSType = { + LINUX: "LINUX", + WINDOWS: "WINDOWS", +} as const; +/** + * @public + */ +export type OSType = (typeof OSType)[keyof typeof OSType]; + +/** + * @public + * @enum + */ +export const SortOrder = { + ASC: "ASC", + DESC: "DESC", +} as const; +/** + * @public + */ +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; + +/** + * @public + * @enum + */ +export const GroupName = { + EXTERNAL_ID: "ExternalId", + EXTERNAL_SOURCE_TYPE: "ExternalSourceType", +} as const; +/** + * @public + */ +export type GroupName = (typeof GroupName)[keyof typeof GroupName]; + +/** + * @public + * @enum + */ +export const CollectorHealth = { + COLLECTOR_HEALTHY: "COLLECTOR_HEALTHY", + COLLECTOR_UNHEALTHY: "COLLECTOR_UNHEALTHY", +} as const; +/** + * @public + */ +export type CollectorHealth = (typeof CollectorHealth)[keyof typeof CollectorHealth]; + +/** + * @public + * @enum + */ +export const PipelineType = { + AZURE_DEVOPS: "AZURE_DEVOPS", +} as const; +/** + * @public + */ +export type PipelineType = (typeof PipelineType)[keyof typeof PipelineType]; + +/** + * @public + * @enum + */ +export const VersionControlType = { + AZURE_DEVOPS_GIT: "AZURE_DEVOPS_GIT", + GITHUB: "GITHUB", + GITHUB_ENTERPRISE: "GITHUB_ENTERPRISE", +} as const; +/** + * @public + */ +export type VersionControlType = (typeof VersionControlType)[keyof typeof VersionControlType]; + +/** + * @public + * @enum + */ +export const ServerCriteria = { + ANALYSIS_STATUS: "ANALYSIS_STATUS", + DESTINATION: "DESTINATION", + ERROR_CATEGORY: "ERROR_CATEGORY", + NOT_DEFINED: "NOT_DEFINED", + OS_NAME: "OS_NAME", + SERVER_ID: "SERVER_ID", + STRATEGY: "STRATEGY", +} as const; +/** + * @public + */ +export type ServerCriteria = (typeof ServerCriteria)[keyof typeof ServerCriteria]; + +/** + * @public + * @enum + */ +export const DataSourceType = { + ADS: "ApplicationDiscoveryService", + IMPORT: "Import", + MHSR_COLLECTOR: "StrategyRecommendationsApplicationDataCollector", + MPA: "MPA", +} as const; +/** + * @public + */ +export type DataSourceType = (typeof DataSourceType)[keyof typeof DataSourceType]; + +/** + * @public + * @enum + */ +export const OutputFormat = { + Excel: "Excel", + Json: "Json", +} as const; +/** + * @public + */ +export type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat]; + +/** + * @public + * @enum + */ +export const VersionControl = { + AZURE_DEVOPS_GIT: "AZURE_DEVOPS_GIT", + GITHUB: "GITHUB", + GITHUB_ENTERPRISE: "GITHUB_ENTERPRISE", +} as const; +/** + * @public + */ +export type VersionControl = (typeof VersionControl)[keyof typeof VersionControl]; diff --git a/clients/client-migrationhubstrategy/src/models/models_0.ts b/clients/client-migrationhubstrategy/src/models/models_0.ts index 6ce6eda9dc44..cf27d9b45e34 100644 --- a/clients/client-migrationhubstrategy/src/models/models_0.ts +++ b/clients/client-migrationhubstrategy/src/models/models_0.ts @@ -1,38 +1,50 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const RuntimeAnalysisStatus = { - ANALYSIS_FAILED: "ANALYSIS_FAILED", - ANALYSIS_STARTED: "ANALYSIS_STARTED", - ANALYSIS_SUCCESS: "ANALYSIS_SUCCESS", - ANALYSIS_TO_BE_SCHEDULED: "ANALYSIS_TO_BE_SCHEDULED", -} as const; - -/** - * @public - */ -export type RuntimeAnalysisStatus = (typeof RuntimeAnalysisStatus)[keyof typeof RuntimeAnalysisStatus]; - -/** - * @public - * @enum - */ -export const SrcCodeOrDbAnalysisStatus = { - ANALYSIS_FAILED: "ANALYSIS_FAILED", - ANALYSIS_PARTIAL_SUCCESS: "ANALYSIS_PARTIAL_SUCCESS", - ANALYSIS_STARTED: "ANALYSIS_STARTED", - ANALYSIS_SUCCESS: "ANALYSIS_SUCCESS", - ANALYSIS_TO_BE_SCHEDULED: "ANALYSIS_TO_BE_SCHEDULED", - CONFIGURED: "CONFIGURED", - UNCONFIGURED: "UNCONFIGURED", -} as const; - -/** - * @public - */ -export type SrcCodeOrDbAnalysisStatus = (typeof SrcCodeOrDbAnalysisStatus)[keyof typeof SrcCodeOrDbAnalysisStatus]; +import { + AnalysisType, + AntipatternReportStatus, + ApplicationComponentCriteria, + ApplicationMode, + AppType, + AppUnitErrorCategory, + AssessmentDataSourceType, + AssessmentStatus, + AuthType, + AwsManagedTargetDestination, + BinaryAnalyzerName, + CollectorHealth, + Condition, + DatabaseManagementPreference, + DataSourceType, + GroupName, + HeterogeneousTargetDatabaseEngine, + HomogeneousTargetDatabaseEngine, + ImportFileTaskStatus, + InclusionStatus, + NoPreferenceTargetDestination, + OSType, + OutputFormat, + PipelineType, + RecommendationReportStatus, + ResourceSubType, + RuntimeAnalysisStatus, + RunTimeAnalyzerName, + RunTimeAssessmentStatus, + SelfManageTargetDestination, + ServerCriteria, + ServerErrorCategory, + ServerOsType, + Severity, + SortOrder, + SourceCodeAnalyzerName, + SrcCodeOrDbAnalysisStatus, + Strategy, + StrategyRecommendation, + TargetDatabaseEngine, + TargetDestination, + TransformationToolName, + VersionControl, + VersionControlType, +} from "./enums"; /** *

A combination of existing analysis statuses.

@@ -87,22 +99,6 @@ export namespace AnalysisStatusUnion { } } -/** - * @public - * @enum - */ -export const AnalysisType = { - BINARY_ANALYSIS: "BINARY_ANALYSIS", - DATABASE_ANALYSIS: "DATABASE_ANALYSIS", - RUNTIME_ANALYSIS: "RUNTIME_ANALYSIS", - SOURCE_CODE_ANALYSIS: "SOURCE_CODE_ANALYSIS", -} as const; - -/** - * @public - */ -export type AnalysisType = (typeof AnalysisType)[keyof typeof AnalysisType]; - /** * Summary information about an analyzable server. * @public @@ -133,53 +129,6 @@ export interface AnalyzableServerSummary { vmId?: string | undefined; } -/** - * @public - * @enum - */ -export const BinaryAnalyzerName = { - BYTECODE_ANALYZER: "BYTECODE_ANALYZER", - DLL_ANALYZER: "DLL_ANALYZER", -} as const; - -/** - * @public - */ -export type BinaryAnalyzerName = (typeof BinaryAnalyzerName)[keyof typeof BinaryAnalyzerName]; - -/** - * @public - * @enum - */ -export const RunTimeAnalyzerName = { - A2C_ANALYZER: "A2C_ANALYZER", - DATABASE_ANALYZER: "DATABASE_ANALYZER", - EMP_PA_ANALYZER: "EMP_PA_ANALYZER", - REHOST_ANALYZER: "REHOST_ANALYZER", - SCT_ANALYZER: "SCT_ANALYZER", -} as const; - -/** - * @public - */ -export type RunTimeAnalyzerName = (typeof RunTimeAnalyzerName)[keyof typeof RunTimeAnalyzerName]; - -/** - * @public - * @enum - */ -export const SourceCodeAnalyzerName = { - BYTECODE_ANALYZER: "BYTECODE_ANALYZER", - CSHARP_ANALYZER: "CSHARP_ANALYZER", - JAVA_ANALYZER: "JAVA_ANALYZER", - PORTING_ASSISTANT: "PORTING_ASSISTANT", -} as const; - -/** - * @public - */ -export type SourceCodeAnalyzerName = (typeof SourceCodeAnalyzerName)[keyof typeof SourceCodeAnalyzerName]; - /** *

The combination of the existing analyzers.

* @public @@ -267,21 +216,6 @@ export interface S3Object { s3key?: string | undefined; } -/** - * @public - * @enum - */ -export const AntipatternReportStatus = { - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUCCESS: "SUCCESS", -} as const; - -/** - * @public - */ -export type AntipatternReportStatus = (typeof AntipatternReportStatus)[keyof typeof AntipatternReportStatus]; - /** *

The anti-pattern report result.

* @public @@ -312,21 +246,6 @@ export interface AntipatternReportResult { antipatternReportStatusMessage?: string | undefined; } -/** - * @public - * @enum - */ -export const Severity = { - HIGH: "HIGH", - LOW: "LOW", - MEDIUM: "MEDIUM", -} as const; - -/** - * @public - */ -export type Severity = (typeof Severity)[keyof typeof Severity]; - /** *

Contains the summary of anti-patterns and their severity.

* @public @@ -345,78 +264,6 @@ export interface AntipatternSeveritySummary { count?: number | undefined; } -/** - * @public - * @enum - */ -export const ApplicationComponentCriteria = { - ANALYSIS_STATUS: "ANALYSIS_STATUS", - APP_NAME: "APP_NAME", - APP_TYPE: "APP_TYPE", - DESTINATION: "DESTINATION", - ERROR_CATEGORY: "ERROR_CATEGORY", - NOT_DEFINED: "NOT_DEFINED", - SERVER_ID: "SERVER_ID", - STRATEGY: "STRATEGY", -} as const; - -/** - * @public - */ -export type ApplicationComponentCriteria = - (typeof ApplicationComponentCriteria)[keyof typeof ApplicationComponentCriteria]; - -/** - * @public - * @enum - */ -export const AppType = { - IIS: "IIS", - cassandra: "Cassandra", - db2: "DB2", - dotNetFramework: "DotNetFramework", - dotnet: "Dotnet", - dotnetcore: "DotnetCore", - java: "Java", - jboss: "JBoss", - mariadb: "Maria DB", - mongodb: "Mongo DB", - mysql: "MySQL", - oracle: "Oracle", - other: "Other", - postgresqlserver: "PostgreSQLServer", - spring: "Spring", - sqlServer: "SQLServer", - sybase: "Sybase", - tomcat: "Tomcat", - unknown: "Unknown", - visualbasic: "Visual Basic", - weblogic: "Oracle WebLogic", - websphere: "IBM WebSphere", -} as const; - -/** - * @public - */ -export type AppType = (typeof AppType)[keyof typeof AppType]; - -/** - * @public - * @enum - */ -export const AppUnitErrorCategory = { - CONNECTIVITY_ERROR: "CONNECTIVITY_ERROR", - CREDENTIAL_ERROR: "CREDENTIAL_ERROR", - OTHER_ERROR: "OTHER_ERROR", - PERMISSION_ERROR: "PERMISSION_ERROR", - UNSUPPORTED_ERROR: "UNSUPPORTED_ERROR", -} as const; - -/** - * @public - */ -export type AppUnitErrorCategory = (typeof AppUnitErrorCategory)[keyof typeof AppUnitErrorCategory]; - /** *

Error in the analysis of the application unit.

* @public @@ -442,87 +289,6 @@ export interface DatabaseConfigDetail { secretName?: string | undefined; } -/** - * @public - * @enum - */ -export const InclusionStatus = { - EXCLUDE_FROM_RECOMMENDATION: "excludeFromAssessment", - INCLUDE_IN_RECOMMENDATION: "includeInAssessment", -} as const; - -/** - * @public - */ -export type InclusionStatus = (typeof InclusionStatus)[keyof typeof InclusionStatus]; - -/** - * @public - * @enum - */ -export const Strategy = { - REFACTOR: "Refactor", - REHOST: "Rehost", - RELOCATE: "Relocate", - REPLATFORM: "Replatform", - REPURCHASE: "Repurchase", - RETAIN: "Retain", - RETIREMENT: "Retirement", -} as const; - -/** - * @public - */ -export type Strategy = (typeof Strategy)[keyof typeof Strategy]; - -/** - * @public - * @enum - */ -export const TargetDestination = { - AMAZON_DOCUMENTDB: "Amazon DocumentDB", - AMAZON_DYNAMODB: "Amazon DynamoDB", - AMAZON_ELASTIC_CLOUD_COMPUTE: "Amazon Elastic Cloud Compute (EC2)", - AMAZON_ELASTIC_CONTAINER_SERVICE: "Amazon Elastic Container Service (ECS)", - AMAZON_ELASTIC_KUBERNETES_SERVICE: "Amazon Elastic Kubernetes Service (EKS)", - AMAZON_RDS: "Amazon Relational Database Service", - AMAZON_RDS_MYSQL: "Amazon Relational Database Service on MySQL", - AMAZON_RDS_POSTGRESQL: "Amazon Relational Database Service on PostgreSQL", - AURORA_MYSQL: "Aurora MySQL", - AURORA_POSTGRESQL: "Aurora PostgreSQL", - AWS_ELASTIC_BEANSTALK: "AWS Elastic BeanStalk", - AWS_FARGATE: "AWS Fargate", - BABELFISH_AURORA_POSTGRESQL: "Babelfish for Aurora PostgreSQL", - NONE_SPECIFIED: "None specified", -} as const; - -/** - * @public - */ -export type TargetDestination = (typeof TargetDestination)[keyof typeof TargetDestination]; - -/** - * @public - * @enum - */ -export const TransformationToolName = { - APP2CONTAINER: "App2Container", - DMS: "Database Migration Service", - EMP: "End of Support Migration", - IN_PLACE_OS_UPGRADE: "In Place Operating System Upgrade", - MGN: "Application Migration Service", - NATIVE_SQL: "Native SQL Server Backup/Restore", - PORTING_ASSISTANT: "Porting Assistant For .NET", - SCT: "Schema Conversion Tool", - STRATEGY_RECOMMENDATION_SUPPORT: "Strategy Recommendation Support", - WWAMA: "Windows Web Application Migration Assistant", -} as const; - -/** - * @public - */ -export type TransformationToolName = (typeof TransformationToolName)[keyof typeof TransformationToolName]; - /** *

Information of the transformation tool that can be used to migrate and modernize the * application.

@@ -572,21 +338,6 @@ export interface RecommendationSet { strategy?: Strategy | undefined; } -/** - * @public - * @enum - */ -export const ResourceSubType = { - DATABASE: "Database", - DATABASE_PROCESS: "DatabaseProcess", - PROCESS: "Process", -} as const; - -/** - * @public - */ -export type ResourceSubType = (typeof ResourceSubType)[keyof typeof ResourceSubType]; - /** *

The error in server analysis.

* @public @@ -814,22 +565,6 @@ export interface ApplicationComponentStatusSummary { count?: number | undefined; } -/** - * @public - * @enum - */ -export const StrategyRecommendation = { - NOT_RECOMMENDED: "notRecommended", - POTENTIAL: "potential", - RECOMMENDED: "recommended", - VIABLE_OPTION: "viableOption", -} as const; - -/** - * @public - */ -export type StrategyRecommendation = (typeof StrategyRecommendation)[keyof typeof StrategyRecommendation]; - /** *

Contains information about a strategy recommendation for an application component. *

@@ -873,37 +608,6 @@ export interface ApplicationComponentSummary { count?: number | undefined; } -/** - * @public - * @enum - */ -export const ApplicationMode = { - ALL: "ALL", - KNOWN: "KNOWN", - UNKNOWN: "UNKNOWN", -} as const; - -/** - * @public - */ -export type ApplicationMode = (typeof ApplicationMode)[keyof typeof ApplicationMode]; - -/** - * @public - * @enum - */ -export const AwsManagedTargetDestination = { - AWS_ELASTIC_BEANSTALK: "AWS Elastic BeanStalk", - AWS_FARGATE: "AWS Fargate", - NONE_SPECIFIED: "None specified", -} as const; - -/** - * @public - */ -export type AwsManagedTargetDestination = - (typeof AwsManagedTargetDestination)[keyof typeof AwsManagedTargetDestination]; - /** *

Object containing the choice of application destination that you specify.

* @public @@ -916,25 +620,6 @@ export interface AwsManagedResources { targetDestination: AwsManagedTargetDestination[] | undefined; } -/** - * @public - * @enum - */ -export const NoPreferenceTargetDestination = { - AMAZON_ELASTIC_CLOUD_COMPUTE: "Amazon Elastic Cloud Compute (EC2)", - AMAZON_ELASTIC_CONTAINER_SERVICE: "Amazon Elastic Container Service (ECS)", - AMAZON_ELASTIC_KUBERNETES_SERVICE: "Amazon Elastic Kubernetes Service (EKS)", - AWS_ELASTIC_BEANSTALK: "AWS Elastic BeanStalk", - AWS_FARGATE: "AWS Fargate", - NONE_SPECIFIED: "None specified", -} as const; - -/** - * @public - */ -export type NoPreferenceTargetDestination = - (typeof NoPreferenceTargetDestination)[keyof typeof NoPreferenceTargetDestination]; - /** *

Object containing the choice of application destination that you specify.

* @public @@ -947,23 +632,6 @@ export interface NoManagementPreference { targetDestination: NoPreferenceTargetDestination[] | undefined; } -/** - * @public - * @enum - */ -export const SelfManageTargetDestination = { - AMAZON_ELASTIC_CLOUD_COMPUTE: "Amazon Elastic Cloud Compute (EC2)", - AMAZON_ELASTIC_CONTAINER_SERVICE: "Amazon Elastic Container Service (ECS)", - AMAZON_ELASTIC_KUBERNETES_SERVICE: "Amazon Elastic Kubernetes Service (EKS)", - NONE_SPECIFIED: "None specified", -} as const; - -/** - * @public - */ -export type SelfManageTargetDestination = - (typeof SelfManageTargetDestination)[keyof typeof SelfManageTargetDestination]; - /** *

Self-managed resources.

* @public @@ -1057,37 +725,6 @@ export interface ApplicationPreferences { managementPreference?: ManagementPreference | undefined; } -/** - * @public - * @enum - */ -export const AssessmentDataSourceType = { - ADS: "ApplicationDiscoveryService", - MANUAL_IMPORT: "ManualImport", - SR_COLLECTOR: "StrategyRecommendationsApplicationDataCollector", -} as const; - -/** - * @public - */ -export type AssessmentDataSourceType = (typeof AssessmentDataSourceType)[keyof typeof AssessmentDataSourceType]; - -/** - * @public - * @enum - */ -export const AssessmentStatus = { - COMPLETE: "COMPLETE", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - STOPPED: "STOPPED", -} as const; - -/** - * @public - */ -export type AssessmentStatus = (typeof AssessmentStatus)[keyof typeof AssessmentStatus]; - /** *

Object containing the summary of the strategy recommendations.

* @public @@ -1106,25 +743,6 @@ export interface StrategySummary { count?: number | undefined; } -/** - * @public - * @enum - */ -export const RunTimeAssessmentStatus = { - DC_FAILED: "dataCollectionTaskFailed", - DC_PARTIAL_SUCCESS: "dataCollectionTaskPartialSuccess", - DC_REQ_SENT: "dataCollectionTaskScheduled", - DC_STARTED: "dataCollectionTaskStarted", - DC_STOPPED: "dataCollectionTaskStopped", - DC_SUCCESS: "dataCollectionTaskSuccess", - DC_TO_BE_SCHEDULED: "dataCollectionTaskToBeScheduled", -} as const; - -/** - * @public - */ -export type RunTimeAssessmentStatus = (typeof RunTimeAssessmentStatus)[keyof typeof RunTimeAssessmentStatus]; - /** *

The status summary of the server analysis.

* @public @@ -1144,23 +762,6 @@ export interface ServerStatusSummary { count?: number | undefined; } -/** - * @public - * @enum - */ -export const ServerOsType = { - amazonLinux: "AmazonLinux", - endOfSupportWindowsServer: "EndOfSupportWindowsServer", - other: "Other", - redhat: "Redhat", - windowsServer: "WindowsServer", -} as const; - -/** - * @public - */ -export type ServerOsType = (typeof ServerOsType)[keyof typeof ServerOsType]; - /** *

Object containing details about the servers imported by Application Discovery Service

* @public @@ -1251,22 +852,6 @@ export interface AssessmentSummary { listServerStatusSummary?: ServerStatusSummary[] | undefined; } -/** - * @public - * @enum - */ -export const Condition = { - CONTAINS: "CONTAINS", - EQUALS: "EQUALS", - NOT_CONTAINS: "NOT_CONTAINS", - NOT_EQUALS: "NOT_EQUALS", -} as const; - -/** - * @public - */ -export type Condition = (typeof Condition)[keyof typeof Condition]; - /** *

Defines the criteria of assessment.

* @public @@ -1309,21 +894,6 @@ export interface AssociatedApplication { id?: string | undefined; } -/** - * @public - * @enum - */ -export const AuthType = { - CERT: "CERT", - NTLM: "NTLM", - SSH: "SSH", -} as const; - -/** - * @public - */ -export type AuthType = (typeof AuthType)[keyof typeof AuthType]; - /** * @public */ @@ -1486,26 +1056,6 @@ export interface GetImportFileTaskRequest { id: string | undefined; } -/** - * @public - * @enum - */ -export const ImportFileTaskStatus = { - DELETE_FAILED: "DeleteFailed", - DELETE_IN_PROGRESS: "DeleteInProgress", - DELETE_PARTIAL_SUCCESS: "DeletePartialSuccess", - DELETE_SUCCESS: "DeleteSuccess", - IMPORT_FAILED: "ImportFailed", - IMPORT_IN_PROGRESS: "ImportInProgress", - IMPORT_PARTIAL_SUCCESS: "ImportPartialSuccess", - IMPORT_SUCCESS: "ImportSuccess", -} as const; - -/** - * @public - */ -export type ImportFileTaskStatus = (typeof ImportFileTaskStatus)[keyof typeof ImportFileTaskStatus]; - /** * @public */ @@ -1599,45 +1149,6 @@ export interface GetLatestAssessmentIdResponse { */ export interface GetPortfolioPreferencesRequest {} -/** - * @public - * @enum - */ -export const DatabaseManagementPreference = { - AWS_MANAGED: "AWS-managed", - NO_PREFERENCE: "No preference", - SELF_MANAGE: "Self-manage", -} as const; - -/** - * @public - */ -export type DatabaseManagementPreference = - (typeof DatabaseManagementPreference)[keyof typeof DatabaseManagementPreference]; - -/** - * @public - * @enum - */ -export const HeterogeneousTargetDatabaseEngine = { - AMAZON_AURORA: "Amazon Aurora", - AWS_POSTGRESQL: "AWS PostgreSQL", - DB2_LUW: "Db2 LUW", - MARIA_DB: "MariaDB", - MICROSOFT_SQL_SERVER: "Microsoft SQL Server", - MONGO_DB: "MongoDB", - MYSQL: "MySQL", - NONE_SPECIFIED: "None specified", - ORACLE_DATABASE: "Oracle Database", - SAP: "SAP", -} as const; - -/** - * @public - */ -export type HeterogeneousTargetDatabaseEngine = - (typeof HeterogeneousTargetDatabaseEngine)[keyof typeof HeterogeneousTargetDatabaseEngine]; - /** *

The object containing details about heterogeneous database preferences.

* @public @@ -1650,20 +1161,6 @@ export interface Heterogeneous { targetDatabaseEngine: HeterogeneousTargetDatabaseEngine[] | undefined; } -/** - * @public - * @enum - */ -export const HomogeneousTargetDatabaseEngine = { - NONE_SPECIFIED: "None specified", -} as const; - -/** - * @public - */ -export type HomogeneousTargetDatabaseEngine = - (typeof HomogeneousTargetDatabaseEngine)[keyof typeof HomogeneousTargetDatabaseEngine]; - /** *

The object containing details about homogeneous database preferences.

* @public @@ -1676,28 +1173,6 @@ export interface Homogeneous { targetDatabaseEngine?: HomogeneousTargetDatabaseEngine[] | undefined; } -/** - * @public - * @enum - */ -export const TargetDatabaseEngine = { - AMAZON_AURORA: "Amazon Aurora", - AWS_POSTGRESQL: "AWS PostgreSQL", - DB2_LUW: "Db2 LUW", - MARIA_DB: "MariaDB", - MICROSOFT_SQL_SERVER: "Microsoft SQL Server", - MONGO_DB: "MongoDB", - MYSQL: "MySQL", - NONE_SPECIFIED: "None specified", - ORACLE_DATABASE: "Oracle Database", - SAP: "SAP", -} as const; - -/** - * @public - */ -export type TargetDatabaseEngine = (typeof TargetDatabaseEngine)[keyof typeof TargetDatabaseEngine]; - /** *

The object containing details about database migration preferences, when you have no * particular preference.

@@ -1901,21 +1376,6 @@ export interface GetRecommendationReportDetailsRequest { id: string | undefined; } -/** - * @public - * @enum - */ -export const RecommendationReportStatus = { - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUCCESS: "SUCCESS", -} as const; - -/** - * @public - */ -export type RecommendationReportStatus = (typeof RecommendationReportStatus)[keyof typeof RecommendationReportStatus]; - /** *

Contains detailed information about a recommendation report.

* @public @@ -2000,23 +1460,6 @@ export interface GetServerDetailsRequest { maxResults?: number | undefined; } -/** - * @public - * @enum - */ -export const ServerErrorCategory = { - ARCHITECTURE_ERROR: "ARCHITECTURE_ERROR", - CONNECTIVITY_ERROR: "CONNECTIVITY_ERROR", - CREDENTIAL_ERROR: "CREDENTIAL_ERROR", - OTHER_ERROR: "OTHER_ERROR", - PERMISSION_ERROR: "PERMISSION_ERROR", -} as const; - -/** - * @public - */ -export type ServerErrorCategory = (typeof ServerErrorCategory)[keyof typeof ServerErrorCategory]; - /** *

The error in server analysis.

* @public @@ -2060,20 +1503,6 @@ export interface NetworkInfo { netMask: string | undefined; } -/** - * @public - * @enum - */ -export const OSType = { - LINUX: "LINUX", - WINDOWS: "WINDOWS", -} as const; - -/** - * @public - */ -export type OSType = (typeof OSType)[keyof typeof OSType]; - /** *

Information about the operating system.

* @public @@ -2290,20 +1719,6 @@ export interface GetServerStrategiesResponse { serverStrategies?: ServerStrategy[] | undefined; } -/** - * @public - * @enum - */ -export const SortOrder = { - ASC: "ASC", - DESC: "DESC", -} as const; - -/** - * @public - */ -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; - /** * Represents input for ListAnalyzableServers operation. * @public @@ -2346,20 +1761,6 @@ export interface ListAnalyzableServersResponse { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const GroupName = { - EXTERNAL_ID: "ExternalId", - EXTERNAL_SOURCE_TYPE: "ExternalSourceType", -} as const; - -/** - * @public - */ -export type GroupName = (typeof GroupName)[keyof typeof GroupName]; - /** *

The object containing information about distinct imports or groups for Strategy Recommendations.

* @public @@ -2462,20 +1863,6 @@ export interface ListCollectorsRequest { maxResults?: number | undefined; } -/** - * @public - * @enum - */ -export const CollectorHealth = { - COLLECTOR_HEALTHY: "COLLECTOR_HEALTHY", - COLLECTOR_UNHEALTHY: "COLLECTOR_UNHEALTHY", -} as const; - -/** - * @public - */ -export type CollectorHealth = (typeof CollectorHealth)[keyof typeof CollectorHealth]; - /** *

IP address based configurations.

* @public @@ -2500,19 +1887,6 @@ export interface IPAddressBasedRemoteInfo { osType?: OSType | undefined; } -/** - * @public - * @enum - */ -export const PipelineType = { - AZURE_DEVOPS: "AZURE_DEVOPS", -} as const; - -/** - * @public - */ -export type PipelineType = (typeof PipelineType)[keyof typeof PipelineType]; - /** *

Detailed information of the pipeline.

* @public @@ -2561,21 +1935,6 @@ export interface VcenterBasedRemoteInfo { osType?: OSType | undefined; } -/** - * @public - * @enum - */ -export const VersionControlType = { - AZURE_DEVOPS_GIT: "AZURE_DEVOPS_GIT", - GITHUB: "GITHUB", - GITHUB_ENTERPRISE: "GITHUB_ENTERPRISE", -} as const; - -/** - * @public - */ -export type VersionControlType = (typeof VersionControlType)[keyof typeof VersionControlType]; - /** *

Details about the version control configuration.

* @public @@ -2811,25 +2170,6 @@ export interface ListImportFileTaskResponse { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const ServerCriteria = { - ANALYSIS_STATUS: "ANALYSIS_STATUS", - DESTINATION: "DESTINATION", - ERROR_CATEGORY: "ERROR_CATEGORY", - NOT_DEFINED: "NOT_DEFINED", - OS_NAME: "OS_NAME", - SERVER_ID: "SERVER_ID", - STRATEGY: "STRATEGY", -} as const; - -/** - * @public - */ -export type ServerCriteria = (typeof ServerCriteria)[keyof typeof ServerCriteria]; - /** * @public */ @@ -2970,22 +2310,6 @@ export interface StartAssessmentResponse { assessmentId?: string | undefined; } -/** - * @public - * @enum - */ -export const DataSourceType = { - ADS: "ApplicationDiscoveryService", - IMPORT: "Import", - MHSR_COLLECTOR: "StrategyRecommendationsApplicationDataCollector", - MPA: "MPA", -} as const; - -/** - * @public - */ -export type DataSourceType = (typeof DataSourceType)[keyof typeof DataSourceType]; - /** * @public */ @@ -3042,20 +2366,6 @@ export interface StartImportFileTaskResponse { id?: string | undefined; } -/** - * @public - * @enum - */ -export const OutputFormat = { - Excel: "Excel", - Json: "Json", -} as const; - -/** - * @public - */ -export type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat]; - /** * @public */ @@ -3101,21 +2411,6 @@ export interface StopAssessmentRequest { */ export interface StopAssessmentResponse {} -/** - * @public - * @enum - */ -export const VersionControl = { - AZURE_DEVOPS_GIT: "AZURE_DEVOPS_GIT", - GITHUB: "GITHUB", - GITHUB_ENTERPRISE: "GITHUB_ENTERPRISE", -} as const; - -/** - * @public - */ -export type VersionControl = (typeof VersionControl)[keyof typeof VersionControl]; - /** *

Object containing source code information that is linked to an application component. *

diff --git a/clients/client-mwaa/src/index.ts b/clients/client-mwaa/src/index.ts index 23786669d88d..a92ce48145d4 100644 --- a/clients/client-mwaa/src/index.ts +++ b/clients/client-mwaa/src/index.ts @@ -90,6 +90,7 @@ export type { MWAAExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-mwaa/src/models/enums.ts b/clients/client-mwaa/src/models/enums.ts new file mode 100644 index 000000000000..510aae69b4b9 --- /dev/null +++ b/clients/client-mwaa/src/models/enums.ts @@ -0,0 +1,146 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const EndpointManagement = { + CUSTOMER: "CUSTOMER", + SERVICE: "SERVICE", +} as const; +/** + * @public + */ +export type EndpointManagement = (typeof EndpointManagement)[keyof typeof EndpointManagement]; + +/** + * @public + * @enum + */ +export const LoggingLevel = { + CRITICAL: "CRITICAL", + DEBUG: "DEBUG", + ERROR: "ERROR", + INFO: "INFO", + WARNING: "WARNING", +} as const; +/** + * @public + */ +export type LoggingLevel = (typeof LoggingLevel)[keyof typeof LoggingLevel]; + +/** + * @public + * @enum + */ +export const WebserverAccessMode = { + PRIVATE_ONLY: "PRIVATE_ONLY", + PUBLIC_ONLY: "PUBLIC_ONLY", +} as const; +/** + * @public + */ +export type WebserverAccessMode = (typeof WebserverAccessMode)[keyof typeof WebserverAccessMode]; + +/** + * @public + * @enum + */ +export const UpdateStatus = { + FAILED: "FAILED", + PENDING: "PENDING", + SUCCESS: "SUCCESS", +} as const; +/** + * @public + */ +export type UpdateStatus = (typeof UpdateStatus)[keyof typeof UpdateStatus]; + +/** + * @public + * @enum + */ +export const WorkerReplacementStrategy = { + FORCED: "FORCED", + GRACEFUL: "GRACEFUL", +} as const; +/** + * @public + */ +export type WorkerReplacementStrategy = (typeof WorkerReplacementStrategy)[keyof typeof WorkerReplacementStrategy]; + +/** + * @public + * @enum + */ +export const EnvironmentStatus = { + AVAILABLE: "AVAILABLE", + CREATE_FAILED: "CREATE_FAILED", + CREATING: "CREATING", + CREATING_SNAPSHOT: "CREATING_SNAPSHOT", + DELETED: "DELETED", + DELETING: "DELETING", + MAINTENANCE: "MAINTENANCE", + PENDING: "PENDING", + ROLLING_BACK: "ROLLING_BACK", + UNAVAILABLE: "UNAVAILABLE", + UPDATE_FAILED: "UPDATE_FAILED", + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type EnvironmentStatus = (typeof EnvironmentStatus)[keyof typeof EnvironmentStatus]; + +/** + * @public + * @enum + */ +export const RestApiMethod = { + DELETE: "DELETE", + GET: "GET", + PATCH: "PATCH", + POST: "POST", + PUT: "PUT", +} as const; +/** + * @public + */ +export type RestApiMethod = (typeof RestApiMethod)[keyof typeof RestApiMethod]; + +/** + * @public + * @enum + */ +export const Unit = { + BITS: "Bits", + BITS_PER_SECOND: "Bits/Second", + BYTES: "Bytes", + BYTES_PER_SECOND: "Bytes/Second", + COUNT: "Count", + COUNT_PER_SECOND: "Count/Second", + GIGABITS: "Gigabits", + GIGABITS_PER_SECOND: "Gigabits/Second", + GIGABYTES: "Gigabytes", + GIGABYTES_PER_SECOND: "Gigabytes/Second", + KILOBITS: "Kilobits", + KILOBITS_PER_SECOND: "Kilobits/Second", + KILOBYTES: "Kilobytes", + KILOBYTES_PER_SECOND: "Kilobytes/Second", + MEGABITS: "Megabits", + MEGABITS_PER_SECOND: "Megabits/Second", + MEGABYTES: "Megabytes", + MEGABYTES_PER_SECOND: "Megabytes/Second", + MICROSECONDS: "Microseconds", + MILLISECONDS: "Milliseconds", + NONE: "None", + PERCENT: "Percent", + SECONDS: "Seconds", + TERABITS: "Terabits", + TERABITS_PER_SECOND: "Terabits/Second", + TERABYTES: "Terabytes", + TERABYTES_PER_SECOND: "Terabytes/Second", +} as const; +/** + * @public + */ +export type Unit = (typeof Unit)[keyof typeof Unit]; diff --git a/clients/client-mwaa/src/models/models_0.ts b/clients/client-mwaa/src/models/models_0.ts index 411b8acc5e16..fc738392c2a0 100644 --- a/clients/client-mwaa/src/models/models_0.ts +++ b/clients/client-mwaa/src/models/models_0.ts @@ -1,6 +1,17 @@ // smithy-typescript generated code import { DocumentType as __DocumentType } from "@smithy/types"; +import { + EndpointManagement, + EnvironmentStatus, + LoggingLevel, + RestApiMethod, + Unit, + UpdateStatus, + WebserverAccessMode, + WorkerReplacementStrategy, +} from "./enums"; + /** * @public */ @@ -29,37 +40,6 @@ export interface CreateCliTokenResponse { WebServerHostname?: string | undefined; } -/** - * @public - * @enum - */ -export const EndpointManagement = { - CUSTOMER: "CUSTOMER", - SERVICE: "SERVICE", -} as const; - -/** - * @public - */ -export type EndpointManagement = (typeof EndpointManagement)[keyof typeof EndpointManagement]; - -/** - * @public - * @enum - */ -export const LoggingLevel = { - CRITICAL: "CRITICAL", - DEBUG: "DEBUG", - ERROR: "ERROR", - INFO: "INFO", - WARNING: "WARNING", -} as const; - -/** - * @public - */ -export type LoggingLevel = (typeof LoggingLevel)[keyof typeof LoggingLevel]; - /** *

Enables the Apache Airflow log type (e.g. DagProcessingLogs) and defines the log level to send to CloudWatch Logs (e.g. INFO).

* @public @@ -132,20 +112,6 @@ export interface NetworkConfiguration { SecurityGroupIds?: string[] | undefined; } -/** - * @public - * @enum - */ -export const WebserverAccessMode = { - PRIVATE_ONLY: "PRIVATE_ONLY", - PUBLIC_ONLY: "PUBLIC_ONLY", -} as const; - -/** - * @public - */ -export type WebserverAccessMode = (typeof WebserverAccessMode)[keyof typeof WebserverAccessMode]; - /** *

This section contains the Amazon Managed Workflows for Apache Airflow (Amazon MWAA) API reference documentation to create an environment. For more information, see Get started with Amazon Managed Workflows for Apache Airflow.

* @public @@ -450,35 +416,6 @@ export interface UpdateError { ErrorMessage?: string | undefined; } -/** - * @public - * @enum - */ -export const UpdateStatus = { - FAILED: "FAILED", - PENDING: "PENDING", - SUCCESS: "SUCCESS", -} as const; - -/** - * @public - */ -export type UpdateStatus = (typeof UpdateStatus)[keyof typeof UpdateStatus]; - -/** - * @public - * @enum - */ -export const WorkerReplacementStrategy = { - FORCED: "FORCED", - GRACEFUL: "GRACEFUL", -} as const; - -/** - * @public - */ -export type WorkerReplacementStrategy = (typeof WorkerReplacementStrategy)[keyof typeof WorkerReplacementStrategy]; - /** *

Describes the status of the last update on the environment, and any errors that were encountered.

* @public @@ -575,30 +512,6 @@ export interface LoggingConfiguration { TaskLogs?: ModuleLoggingConfiguration | undefined; } -/** - * @public - * @enum - */ -export const EnvironmentStatus = { - AVAILABLE: "AVAILABLE", - CREATE_FAILED: "CREATE_FAILED", - CREATING: "CREATING", - CREATING_SNAPSHOT: "CREATING_SNAPSHOT", - DELETED: "DELETED", - DELETING: "DELETING", - MAINTENANCE: "MAINTENANCE", - PENDING: "PENDING", - ROLLING_BACK: "ROLLING_BACK", - UNAVAILABLE: "UNAVAILABLE", - UPDATE_FAILED: "UPDATE_FAILED", - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type EnvironmentStatus = (typeof EnvironmentStatus)[keyof typeof EnvironmentStatus]; - /** *

Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.

* @public @@ -932,23 +845,6 @@ export interface GetEnvironmentOutput { Environment?: Environment | undefined; } -/** - * @public - * @enum - */ -export const RestApiMethod = { - DELETE: "DELETE", - GET: "GET", - PATCH: "PATCH", - POST: "POST", - PUT: "PUT", -} as const; - -/** - * @public - */ -export type RestApiMethod = (typeof RestApiMethod)[keyof typeof RestApiMethod]; - /** * @public */ @@ -1123,45 +1019,6 @@ export interface StatisticSet { Maximum?: number | undefined; } -/** - * @public - * @enum - */ -export const Unit = { - BITS: "Bits", - BITS_PER_SECOND: "Bits/Second", - BYTES: "Bytes", - BYTES_PER_SECOND: "Bytes/Second", - COUNT: "Count", - COUNT_PER_SECOND: "Count/Second", - GIGABITS: "Gigabits", - GIGABITS_PER_SECOND: "Gigabits/Second", - GIGABYTES: "Gigabytes", - GIGABYTES_PER_SECOND: "Gigabytes/Second", - KILOBITS: "Kilobits", - KILOBITS_PER_SECOND: "Kilobits/Second", - KILOBYTES: "Kilobytes", - KILOBYTES_PER_SECOND: "Kilobytes/Second", - MEGABITS: "Megabits", - MEGABITS_PER_SECOND: "Megabits/Second", - MEGABYTES: "Megabytes", - MEGABYTES_PER_SECOND: "Megabytes/Second", - MICROSECONDS: "Microseconds", - MILLISECONDS: "Milliseconds", - NONE: "None", - PERCENT: "Percent", - SECONDS: "Seconds", - TERABITS: "Terabits", - TERABITS_PER_SECOND: "Terabits/Second", - TERABYTES: "Terabytes", - TERABYTES_PER_SECOND: "Terabytes/Second", -} as const; - -/** - * @public - */ -export type Unit = (typeof Unit)[keyof typeof Unit]; - /** *

* Internal only. Collects Apache Airflow metrics. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch.

diff --git a/clients/client-notifications/src/models/enums.ts b/clients/client-notifications/src/models/enums.ts index 4ecdec35e1b3..af45c1608076 100644 --- a/clients/client-notifications/src/models/enums.ts +++ b/clients/client-notifications/src/models/enums.ts @@ -13,3 +13,412 @@ export const AccessStatus = { * @public */ export type AccessStatus = (typeof AccessStatus)[keyof typeof AccessStatus]; + +/** + * @public + * @enum + */ +export const AccountContactType = { + /** + * Alternate Billing Contact managed by AWS Account Management Service. + * + */ + ACCOUNT_ALTERNATE_BILLING: "ACCOUNT_ALTERNATE_BILLING", + /** + * Alternate Operations Contact managed by AWS Account Management Service. + * + */ + ACCOUNT_ALTERNATE_OPERATIONS: "ACCOUNT_ALTERNATE_OPERATIONS", + /** + * Alternate Security Contact managed by AWS Account Management Service. + * + */ + ACCOUNT_ALTERNATE_SECURITY: "ACCOUNT_ALTERNATE_SECURITY", + /** + * Primary Contact managed by AWS Account Management Service. + * + */ + ACCOUNT_PRIMARY: "ACCOUNT_PRIMARY", +} as const; +/** + * @public + */ +export type AccountContactType = (typeof AccountContactType)[keyof typeof AccountContactType]; + +/** + * @public + * @enum + */ +export const AggregationDuration = { + /** + * Aggregate notifications for long periods of time (12 hours) + */ + LONG: "LONG", + /** + * Do not aggregate notifications sourced from a notification configuration + */ + NONE: "NONE", + /** + * Aggregate notifications for short periods of time (5 mins) + */ + SHORT: "SHORT", +} as const; +/** + * @public + */ +export type AggregationDuration = (typeof AggregationDuration)[keyof typeof AggregationDuration]; + +/** + * @public + * @enum + */ +export const AggregationEventType = { + AGGREGATE: "AGGREGATE", + CHILD: "CHILD", + NONE: "NONE", +} as const; +/** + * @public + */ +export type AggregationEventType = (typeof AggregationEventType)[keyof typeof AggregationEventType]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + FIELD_VALIDATION_FAILED: "fieldValidationFailed", + OTHER: "other", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const ChannelAssociationOverrideOption = { + /** + * AWS User Notification service users can not associate or disassociate a Channel with a notification configuration. + * + */ + DISABLED: "DISABLED", + /** + * AWS User Notification service users can associate or disassociate a Channel with a notification configuration. + * + */ + ENABLED: "ENABLED", +} as const; +/** + * @public + */ +export type ChannelAssociationOverrideOption = + (typeof ChannelAssociationOverrideOption)[keyof typeof ChannelAssociationOverrideOption]; + +/** + * @public + * @enum + */ +export const ChannelType = { + /** + * User Notification Service sends notifications to Account Managed contacts. + * + */ + ACCOUNT_CONTACT: "ACCOUNT_CONTACT", + /** + * Chatbot sends notifications to group platforms, like Slack or Chime. Link:https://aws.amazon.com/chatbot/ + * + */ + CHATBOT: "CHATBOT", + /** + * Email sends notifications to email addresses. + * + */ + EMAIL: "EMAIL", + /** + * AWS Console Mobile App sends notifications to mobile devices. Link:https://aws.amazon.com/console/mobile/ + * + */ + MOBILE: "MOBILE", +} as const; +/** + * @public + */ +export type ChannelType = (typeof ChannelType)[keyof typeof ChannelType]; + +/** + * @public + * @enum + */ +export const EventRuleStatus = { + /** + * EventRule is processing events. Any call can be executed. + */ + ACTIVE: "ACTIVE", + /** + * This EventRule is being created. Only GET/LIST calls can be executed. + */ + CREATING: "CREATING", + /** + * This EventRule is being deleted. Only GET/LIST calls can be executed. + */ + DELETING: "DELETING", + /** + * EventRule is in a bad state and may not be processing events. Any call can be executed. + */ + INACTIVE: "INACTIVE", + /** + * This EventRule is being updated. Only GET/LIST calls can be executed. + */ + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type EventRuleStatus = (typeof EventRuleStatus)[keyof typeof EventRuleStatus]; + +/** + * @public + * @enum + */ +export const NotificationConfigurationStatus = { + /** + * All of the EventRules are in ACTIVE Status. Any call can be executed. + */ + ACTIVE: "ACTIVE", + /** + * This NotificationConfiguration is being deleted. Only GET/LIST calls can be executed. + */ + DELETING: "DELETING", + /** + * All of the EventRules are in INACTIVE Status. Any call can be executed. + */ + INACTIVE: "INACTIVE", + /** + * Some EventRules are in ACTIVE Status and some are INACTIVE. Any call can be executed. + */ + PARTIALLY_ACTIVE: "PARTIALLY_ACTIVE", +} as const; +/** + * @public + */ +export type NotificationConfigurationStatus = + (typeof NotificationConfigurationStatus)[keyof typeof NotificationConfigurationStatus]; + +/** + * @public + * @enum + */ +export const NotificationHubStatus = { + /** + * Incoming Notification Events are being replicated to this Notification Hub. A Notification Hub with this status can be deregistered. + */ + ACTIVE: "ACTIVE", + /** + * Notification Hub is being deleted. Cannot register a Notification Hub in the same region as one in this status. + */ + DEREGISTERING: "DEREGISTERING", + /** + * Notification Hub is in a failure state. Incoming Notification Events are not being replicated to this Hub. + */ + INACTIVE: "INACTIVE", + /** + * Notification Hub is initializing. Cannot deregister a Notification Hub in this status. + */ + REGISTERING: "REGISTERING", +} as const; +/** + * @public + */ +export type NotificationHubStatus = (typeof NotificationHubStatus)[keyof typeof NotificationHubStatus]; + +/** + * @public + * @enum + */ +export const EventStatus = { + HEALTHY: "HEALTHY", + UNHEALTHY: "UNHEALTHY", +} as const; +/** + * @public + */ +export type EventStatus = (typeof EventStatus)[keyof typeof EventStatus]; + +/** + * @public + * @enum + */ +export const LocaleCode = { + /** + * German (Germany) + */ + de_DE: "de_DE", + /** + * English (Canada) + */ + en_CA: "en_CA", + /** + * English (United Kingdom) + */ + en_UK: "en_UK", + /** + * English (United States). This is the default locale. + */ + en_US: "en_US", + /** + * Spanish (Spain) + */ + es_ES: "es_ES", + /** + * French (Canada) + */ + fr_CA: "fr_CA", + /** + * French (France) + */ + fr_FR: "fr_FR", + /** + * Bahasa Indonesian (Indonesia) + */ + id_ID: "id_ID", + /** + * Italian (Italy) + */ + it_IT: "it_IT", + /** + * Japanese (Japan) + */ + ja_JP: "ja_JP", + /** + * Korean (Korea) + */ + ko_KR: "ko_KR", + /** + * Portuguese (Brazil) + */ + pt_BR: "pt_BR", + /** + * Turkish (Turkey) + */ + tr_TR: "tr_TR", + /** + * Chinese (China) + */ + zh_CN: "zh_CN", + /** + * Chinese (Taiwan) + */ + zh_TW: "zh_TW", +} as const; +/** + * @public + */ +export type LocaleCode = (typeof LocaleCode)[keyof typeof LocaleCode]; + +/** + * @public + * @enum + */ +export const NotificationType = { + ALERT: "ALERT", + ANNOUNCEMENT: "ANNOUNCEMENT", + INFORMATIONAL: "INFORMATIONAL", + WARNING: "WARNING", +} as const; +/** + * @public + */ +export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType]; + +/** + * @public + * @enum + */ +export const SchemaVersion = { + SCHEMA_VERSION_1_0: "v1.0", +} as const; +/** + * @public + */ +export type SchemaVersion = (typeof SchemaVersion)[keyof typeof SchemaVersion]; + +/** + * @public + * @enum + */ +export const TextPartType = { + LOCALIZED_TEXT: "LOCALIZED_TEXT", + PLAIN_TEXT: "PLAIN_TEXT", + URL: "URL", +} as const; +/** + * @public + */ +export type TextPartType = (typeof TextPartType)[keyof typeof TextPartType]; + +/** + * @public + * @enum + */ +export const NotificationConfigurationSubtype = { + /** + * Notification configuration created by the account + */ + ACCOUNT: "ACCOUNT", + /** + * Notification configuration managed by an administrator account + */ + ADMIN_MANAGED: "ADMIN_MANAGED", +} as const; +/** + * @public + */ +export type NotificationConfigurationSubtype = + (typeof NotificationConfigurationSubtype)[keyof typeof NotificationConfigurationSubtype]; + +/** + * @public + * @enum + */ +export const MediaElementType = { + IMAGE: "IMAGE", +} as const; +/** + * @public + */ +export type MediaElementType = (typeof MediaElementType)[keyof typeof MediaElementType]; + +/** + * @public + * @enum + */ +export const MemberAccountNotificationConfigurationStatus = { + /** + * The member account Notification Configuration status is ACTIVE. + */ + ACTIVE: "ACTIVE", + /** + * The member account Notification Configuration status is CREATING. + */ + CREATING: "CREATING", + /** + * The member account Notification Configuration status is DELETING. + */ + DELETING: "DELETING", + /** + * The member account Notification Configuration status is INACTIVE. + */ + INACTIVE: "INACTIVE", + /** + * The member account Notification Configuration status is PENDING. + */ + PENDING: "PENDING", +} as const; +/** + * @public + */ +export type MemberAccountNotificationConfigurationStatus = + (typeof MemberAccountNotificationConfigurationStatus)[keyof typeof MemberAccountNotificationConfigurationStatus]; diff --git a/clients/client-notifications/src/models/errors.ts b/clients/client-notifications/src/models/errors.ts index f05e260d799c..377e68dc494b 100644 --- a/clients/client-notifications/src/models/errors.ts +++ b/clients/client-notifications/src/models/errors.ts @@ -1,7 +1,8 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionReason } from "./enums"; +import { ValidationExceptionField } from "./models_0"; import { NotificationsServiceException as __BaseException } from "./NotificationsServiceException"; /** diff --git a/clients/client-notifications/src/models/models_0.ts b/clients/client-notifications/src/models/models_0.ts index 8072b826c33c..b5a6f71b2812 100644 --- a/clients/client-notifications/src/models/models_0.ts +++ b/clients/client-notifications/src/models/models_0.ts @@ -1,37 +1,23 @@ // smithy-typescript generated code -import { AccessStatus } from "./enums"; - -/** - * @public - * @enum - */ -export const AccountContactType = { - /** - * Alternate Billing Contact managed by AWS Account Management Service. - * - */ - ACCOUNT_ALTERNATE_BILLING: "ACCOUNT_ALTERNATE_BILLING", - /** - * Alternate Operations Contact managed by AWS Account Management Service. - * - */ - ACCOUNT_ALTERNATE_OPERATIONS: "ACCOUNT_ALTERNATE_OPERATIONS", - /** - * Alternate Security Contact managed by AWS Account Management Service. - * - */ - ACCOUNT_ALTERNATE_SECURITY: "ACCOUNT_ALTERNATE_SECURITY", - /** - * Primary Contact managed by AWS Account Management Service. - * - */ - ACCOUNT_PRIMARY: "ACCOUNT_PRIMARY", -} as const; - -/** - * @public - */ -export type AccountContactType = (typeof AccountContactType)[keyof typeof AccountContactType]; +import { + AccessStatus, + AccountContactType, + AggregationDuration, + AggregationEventType, + ChannelAssociationOverrideOption, + ChannelType, + EventRuleStatus, + EventStatus, + LocaleCode, + MediaElementType, + MemberAccountNotificationConfigurationStatus, + NotificationConfigurationStatus, + NotificationConfigurationSubtype, + NotificationHubStatus, + NotificationType, + SchemaVersion, + TextPartType, +} from "./enums"; /** *

Provides detailed information about the dimensions used for event summarization and aggregation.

@@ -63,45 +49,6 @@ export interface AggregationDetail { summarizationDimensions?: SummarizationDimensionDetail[] | undefined; } -/** - * @public - * @enum - */ -export const AggregationDuration = { - /** - * Aggregate notifications for long periods of time (12 hours) - */ - LONG: "LONG", - /** - * Do not aggregate notifications sourced from a notification configuration - */ - NONE: "NONE", - /** - * Aggregate notifications for short periods of time (5 mins) - */ - SHORT: "SHORT", -} as const; - -/** - * @public - */ -export type AggregationDuration = (typeof AggregationDuration)[keyof typeof AggregationDuration]; - -/** - * @public - * @enum - */ -export const AggregationEventType = { - AGGREGATE: "AGGREGATE", - CHILD: "CHILD", - NONE: "NONE", -} as const; - -/** - * @public - */ -export type AggregationEventType = (typeof AggregationEventType)[keyof typeof AggregationEventType]; - /** *

Key-value collection that indicate how notifications are grouped.

* @public @@ -226,20 +173,6 @@ export interface ValidationExceptionField { message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - FIELD_VALIDATION_FAILED: "fieldValidationFailed", - OTHER: "other", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** * @public */ @@ -368,61 +301,6 @@ export interface ListChannelsResponse { channels: string[] | undefined; } -/** - * @public - * @enum - */ -export const ChannelAssociationOverrideOption = { - /** - * AWS User Notification service users can not associate or disassociate a Channel with a notification configuration. - * - */ - DISABLED: "DISABLED", - /** - * AWS User Notification service users can associate or disassociate a Channel with a notification configuration. - * - */ - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type ChannelAssociationOverrideOption = - (typeof ChannelAssociationOverrideOption)[keyof typeof ChannelAssociationOverrideOption]; - -/** - * @public - * @enum - */ -export const ChannelType = { - /** - * User Notification Service sends notifications to Account Managed contacts. - * - */ - ACCOUNT_CONTACT: "ACCOUNT_CONTACT", - /** - * Chatbot sends notifications to group platforms, like Slack or Chime. Link:https://aws.amazon.com/chatbot/ - * - */ - CHATBOT: "CHATBOT", - /** - * Email sends notifications to email addresses. - * - */ - EMAIL: "EMAIL", - /** - * AWS Console Mobile App sends notifications to mobile devices. Link:https://aws.amazon.com/console/mobile/ - * - */ - MOBILE: "MOBILE", -} as const; - -/** - * @public - */ -export type ChannelType = (typeof ChannelType)[keyof typeof ChannelType]; - /** * @public */ @@ -458,38 +336,6 @@ export interface CreateEventRuleRequest { regions: string[] | undefined; } -/** - * @public - * @enum - */ -export const EventRuleStatus = { - /** - * EventRule is processing events. Any call can be executed. - */ - ACTIVE: "ACTIVE", - /** - * This EventRule is being created. Only GET/LIST calls can be executed. - */ - CREATING: "CREATING", - /** - * This EventRule is being deleted. Only GET/LIST calls can be executed. - */ - DELETING: "DELETING", - /** - * EventRule is in a bad state and may not be processing events. Any call can be executed. - */ - INACTIVE: "INACTIVE", - /** - * This EventRule is being updated. Only GET/LIST calls can be executed. - */ - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type EventRuleStatus = (typeof EventRuleStatus)[keyof typeof EventRuleStatus]; - /** *

Provides additional information about the current EventRule status.

* @public @@ -560,35 +406,6 @@ export interface CreateNotificationConfigurationRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const NotificationConfigurationStatus = { - /** - * All of the EventRules are in ACTIVE Status. Any call can be executed. - */ - ACTIVE: "ACTIVE", - /** - * This NotificationConfiguration is being deleted. Only GET/LIST calls can be executed. - */ - DELETING: "DELETING", - /** - * All of the EventRules are in INACTIVE Status. Any call can be executed. - */ - INACTIVE: "INACTIVE", - /** - * Some EventRules are in ACTIVE Status and some are INACTIVE. Any call can be executed. - */ - PARTIALLY_ACTIVE: "PARTIALLY_ACTIVE", -} as const; - -/** - * @public - */ -export type NotificationConfigurationStatus = - (typeof NotificationConfigurationStatus)[keyof typeof NotificationConfigurationStatus]; - /** * @public */ @@ -649,34 +466,6 @@ export interface DeregisterNotificationHubRequest { notificationHubRegion: string | undefined; } -/** - * @public - * @enum - */ -export const NotificationHubStatus = { - /** - * Incoming Notification Events are being replicated to this Notification Hub. A Notification Hub with this status can be deregistered. - */ - ACTIVE: "ACTIVE", - /** - * Notification Hub is being deleted. Cannot register a Notification Hub in the same region as one in this status. - */ - DEREGISTERING: "DEREGISTERING", - /** - * Notification Hub is in a failure state. Incoming Notification Events are not being replicated to this Hub. - */ - INACTIVE: "INACTIVE", - /** - * Notification Hub is initializing. Cannot deregister a Notification Hub in this status. - */ - REGISTERING: "REGISTERING", -} as const; - -/** - * @public - */ -export type NotificationHubStatus = (typeof NotificationHubStatus)[keyof typeof NotificationHubStatus]; - /** *

Provides additional information about the current NotificationHub status.

* @public @@ -1032,92 +821,6 @@ export interface UpdateEventRuleResponse { statusSummaryByRegion: Record | undefined; } -/** - * @public - * @enum - */ -export const EventStatus = { - HEALTHY: "HEALTHY", - UNHEALTHY: "UNHEALTHY", -} as const; - -/** - * @public - */ -export type EventStatus = (typeof EventStatus)[keyof typeof EventStatus]; - -/** - * @public - * @enum - */ -export const LocaleCode = { - /** - * German (Germany) - */ - de_DE: "de_DE", - /** - * English (Canada) - */ - en_CA: "en_CA", - /** - * English (United Kingdom) - */ - en_UK: "en_UK", - /** - * English (United States). This is the default locale. - */ - en_US: "en_US", - /** - * Spanish (Spain) - */ - es_ES: "es_ES", - /** - * French (Canada) - */ - fr_CA: "fr_CA", - /** - * French (France) - */ - fr_FR: "fr_FR", - /** - * Bahasa Indonesian (Indonesia) - */ - id_ID: "id_ID", - /** - * Italian (Italy) - */ - it_IT: "it_IT", - /** - * Japanese (Japan) - */ - ja_JP: "ja_JP", - /** - * Korean (Korea) - */ - ko_KR: "ko_KR", - /** - * Portuguese (Brazil) - */ - pt_BR: "pt_BR", - /** - * Turkish (Turkey) - */ - tr_TR: "tr_TR", - /** - * Chinese (China) - */ - zh_CN: "zh_CN", - /** - * Chinese (Taiwan) - */ - zh_TW: "zh_TW", -} as const; - -/** - * @public - */ -export type LocaleCode = (typeof LocaleCode)[keyof typeof LocaleCode]; - /** * @public */ @@ -1165,50 +868,6 @@ export interface MessageComponents { dimensions?: Dimension[] | undefined; } -/** - * @public - * @enum - */ -export const NotificationType = { - ALERT: "ALERT", - ANNOUNCEMENT: "ANNOUNCEMENT", - INFORMATIONAL: "INFORMATIONAL", - WARNING: "WARNING", -} as const; - -/** - * @public - */ -export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType]; - -/** - * @public - * @enum - */ -export const SchemaVersion = { - SCHEMA_VERSION_1_0: "v1.0", -} as const; - -/** - * @public - */ -export type SchemaVersion = (typeof SchemaVersion)[keyof typeof SchemaVersion]; - -/** - * @public - * @enum - */ -export const TextPartType = { - LOCALIZED_TEXT: "LOCALIZED_TEXT", - PLAIN_TEXT: "PLAIN_TEXT", - URL: "URL", -} as const; - -/** - * @public - */ -export type TextPartType = (typeof TextPartType)[keyof typeof TextPartType]; - /** *

Describes text information objects containing fields that determine how text part objects are composed.

* @public @@ -1539,27 +1198,6 @@ export interface GetNotificationConfigurationRequest { arn: string | undefined; } -/** - * @public - * @enum - */ -export const NotificationConfigurationSubtype = { - /** - * Notification configuration created by the account - */ - ACCOUNT: "ACCOUNT", - /** - * Notification configuration managed by an administrator account - */ - ADMIN_MANAGED: "ADMIN_MANAGED", -} as const; - -/** - * @public - */ -export type NotificationConfigurationSubtype = - (typeof NotificationConfigurationSubtype)[keyof typeof NotificationConfigurationSubtype]; - /** * @public */ @@ -1624,19 +1262,6 @@ export interface GetNotificationEventRequest { locale?: LocaleCode | undefined; } -/** - * @public - * @enum - */ -export const MediaElementType = { - IMAGE: "IMAGE", -} as const; - -/** - * @public - */ -export type MediaElementType = (typeof MediaElementType)[keyof typeof MediaElementType]; - /** *

Describes a media element.

* @public @@ -2400,39 +2025,6 @@ export interface ListManagedNotificationEventsResponse { managedNotificationEvents: ManagedNotificationEventOverview[] | undefined; } -/** - * @public - * @enum - */ -export const MemberAccountNotificationConfigurationStatus = { - /** - * The member account Notification Configuration status is ACTIVE. - */ - ACTIVE: "ACTIVE", - /** - * The member account Notification Configuration status is CREATING. - */ - CREATING: "CREATING", - /** - * The member account Notification Configuration status is DELETING. - */ - DELETING: "DELETING", - /** - * The member account Notification Configuration status is INACTIVE. - */ - INACTIVE: "INACTIVE", - /** - * The member account Notification Configuration status is PENDING. - */ - PENDING: "PENDING", -} as const; - -/** - * @public - */ -export type MemberAccountNotificationConfigurationStatus = - (typeof MemberAccountNotificationConfigurationStatus)[keyof typeof MemberAccountNotificationConfigurationStatus]; - /** * @public */ diff --git a/clients/client-notificationscontacts/src/models/enums.ts b/clients/client-notificationscontacts/src/models/enums.ts index 7b92d6e4a390..1e075296e8a2 100644 --- a/clients/client-notificationscontacts/src/models/enums.ts +++ b/clients/client-notificationscontacts/src/models/enums.ts @@ -11,3 +11,16 @@ export const ValidationExceptionReason = { * @public */ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const EmailContactStatus = { + ACTIVE: "active", + INACTIVE: "inactive", +} as const; +/** + * @public + */ +export type EmailContactStatus = (typeof EmailContactStatus)[keyof typeof EmailContactStatus]; diff --git a/clients/client-notificationscontacts/src/models/models_0.ts b/clients/client-notificationscontacts/src/models/models_0.ts index 25945c7dd5da..8f14ca9b8979 100644 --- a/clients/client-notificationscontacts/src/models/models_0.ts +++ b/clients/client-notificationscontacts/src/models/models_0.ts @@ -1,4 +1,6 @@ // smithy-typescript generated code +import { EmailContactStatus } from "./enums"; + /** * @public */ @@ -93,20 +95,6 @@ export interface DeleteEmailContactRequest { */ export interface DeleteEmailContactResponse {} -/** - * @public - * @enum - */ -export const EmailContactStatus = { - ACTIVE: "active", - INACTIVE: "inactive", -} as const; - -/** - * @public - */ -export type EmailContactStatus = (typeof EmailContactStatus)[keyof typeof EmailContactStatus]; - /** *

An email contact.

* @public diff --git a/clients/client-omics/src/commands/StartVariantImportJobCommand.ts b/clients/client-omics/src/commands/StartVariantImportJobCommand.ts index 453b4e47c0d0..41d316f075be 100644 --- a/clients/client-omics/src/commands/StartVariantImportJobCommand.ts +++ b/clients/client-omics/src/commands/StartVariantImportJobCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { StartVariantImportRequest, StartVariantImportResponse } from "../models/models_1"; +import { StartVariantImportRequest, StartVariantImportResponse } from "../models/models_0"; import { OmicsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OmicsClient"; import { StartVariantImportJob } from "../schemas/schemas_0"; diff --git a/clients/client-omics/src/commands/UpdateVariantStoreCommand.ts b/clients/client-omics/src/commands/UpdateVariantStoreCommand.ts index 835993445a43..bc0665603fc1 100644 --- a/clients/client-omics/src/commands/UpdateVariantStoreCommand.ts +++ b/clients/client-omics/src/commands/UpdateVariantStoreCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { UpdateVariantStoreRequest, UpdateVariantStoreResponse } from "../models/models_1"; +import { UpdateVariantStoreRequest, UpdateVariantStoreResponse } from "../models/models_0"; import { OmicsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OmicsClient"; import { UpdateVariantStore } from "../schemas/schemas_0"; diff --git a/clients/client-omics/src/commands/UpdateWorkflowCommand.ts b/clients/client-omics/src/commands/UpdateWorkflowCommand.ts index 9da562bbe0c7..3e72acb2d991 100644 --- a/clients/client-omics/src/commands/UpdateWorkflowCommand.ts +++ b/clients/client-omics/src/commands/UpdateWorkflowCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { UpdateWorkflowRequest } from "../models/models_1"; +import { UpdateWorkflowRequest } from "../models/models_0"; import { OmicsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OmicsClient"; import { UpdateWorkflow } from "../schemas/schemas_0"; diff --git a/clients/client-omics/src/commands/UpdateWorkflowVersionCommand.ts b/clients/client-omics/src/commands/UpdateWorkflowVersionCommand.ts index 23fc7dcef35f..3eedf990423b 100644 --- a/clients/client-omics/src/commands/UpdateWorkflowVersionCommand.ts +++ b/clients/client-omics/src/commands/UpdateWorkflowVersionCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { UpdateWorkflowVersionRequest } from "../models/models_1"; +import { UpdateWorkflowVersionRequest } from "../models/models_0"; import { OmicsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OmicsClient"; import { UpdateWorkflowVersion } from "../schemas/schemas_0"; diff --git a/clients/client-omics/src/index.ts b/clients/client-omics/src/index.ts index de4454b0433b..79f771610330 100644 --- a/clients/client-omics/src/index.ts +++ b/clients/client-omics/src/index.ts @@ -17,6 +17,5 @@ export * from "./waiters"; export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; -export type * from "./models/models_1"; export { OmicsServiceException } from "./models/OmicsServiceException"; diff --git a/clients/client-omics/src/models/enums.ts b/clients/client-omics/src/models/enums.ts index e7a31bf7c931..7556a61f18da 100644 --- a/clients/client-omics/src/models/enums.ts +++ b/clients/client-omics/src/models/enums.ts @@ -1,4 +1,772 @@ // smithy-typescript generated code +/** + * @public + * @enum + */ +export const Accelerators = { + GPU: "GPU", +} as const; +/** + * @public + */ +export type Accelerators = (typeof Accelerators)[keyof typeof Accelerators]; + +/** + * @public + * @enum + */ +export const ShareStatus = { + /** + * The share is activated + */ + ACTIVATING: "ACTIVATING", + /** + * The share is active and can be used + */ + ACTIVE: "ACTIVE", + /** + * The share has been deleted + */ + DELETED: "DELETED", + /** + * The share is being deleted + */ + DELETING: "DELETING", + /** + * The share has failed to activate or delete + */ + FAILED: "FAILED", + /** + * The share has been created but is not yet active + */ + PENDING: "PENDING", +} as const; +/** + * @public + */ +export type ShareStatus = (typeof ShareStatus)[keyof typeof ShareStatus]; + +/** + * @public + * @enum + */ +export const ReadSetActivationJobStatus = { + CANCELLED: "CANCELLED", + CANCELLING: "CANCELLING", + COMPLETED: "COMPLETED", + COMPLETED_WITH_FAILURES: "COMPLETED_WITH_FAILURES", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUBMITTED: "SUBMITTED", +} as const; +/** + * @public + */ +export type ReadSetActivationJobStatus = (typeof ReadSetActivationJobStatus)[keyof typeof ReadSetActivationJobStatus]; + +/** + * @public + * @enum + */ +export const ReadSetActivationJobItemStatus = { + FAILED: "FAILED", + FINISHED: "FINISHED", + IN_PROGRESS: "IN_PROGRESS", + NOT_STARTED: "NOT_STARTED", +} as const; +/** + * @public + */ +export type ReadSetActivationJobItemStatus = + (typeof ReadSetActivationJobItemStatus)[keyof typeof ReadSetActivationJobItemStatus]; + +/** + * @public + * @enum + */ +export const JobStatus = { + /** + * The Job was cancelled + */ + CANCELLED: "CANCELLED", + /** + * The Job has completed + */ + COMPLETED: "COMPLETED", + /** + * The Job completed with failed runs + */ + COMPLETED_WITH_FAILURES: "COMPLETED_WITH_FAILURES", + /** + * The Job failed + */ + FAILED: "FAILED", + /** + * The Job is executing + */ + IN_PROGRESS: "IN_PROGRESS", + /** + * The Job has been submitted to run + */ + SUBMITTED: "SUBMITTED", +} as const; +/** + * @public + */ +export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus]; + +/** + * @public + * @enum + */ +export const EncryptionType = { + /** + * KMS + */ + KMS: "KMS", +} as const; +/** + * @public + */ +export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType]; + +/** + * @public + * @enum + */ +export const StoreFormat = { + /** + * GFF3 Format + */ + GFF: "GFF", + /** + * TSV Format + */ + TSV: "TSV", + /** + * VCF Format + */ + VCF: "VCF", +} as const; +/** + * @public + */ +export type StoreFormat = (typeof StoreFormat)[keyof typeof StoreFormat]; + +/** + * @public + * @enum + */ +export const AnnotationType = { + /** + * Contains contig and 1-base position + */ + CHR_POS: "CHR_POS", + /** + * Contains contig, 1-base position, ref and alt allele information + */ + CHR_POS_REF_ALT: "CHR_POS_REF_ALT", + /** + * Contains contig, start, and end positions. Coordinates are 1-based + */ + CHR_START_END_ONE_BASE: "CHR_START_END_ONE_BASE", + /** + * Contains contig, start, end, ref and alt allele information. Coordinates are 1-based + */ + CHR_START_END_REF_ALT_ONE_BASE: "CHR_START_END_REF_ALT_ONE_BASE", + /** + * Contains contig, start, end, ref and alt allele information. Coordinates are 0-based + */ + CHR_START_END_REF_ALT_ZERO_BASE: "CHR_START_END_REF_ALT_ZERO_BASE", + /** + * Contains contig, start, and end positions. Coordinates are 0-based + */ + CHR_START_END_ZERO_BASE: "CHR_START_END_ZERO_BASE", + /** + * Generic text file. No genomic information + */ + GENERIC: "GENERIC", +} as const; +/** + * @public + */ +export type AnnotationType = (typeof AnnotationType)[keyof typeof AnnotationType]; + +/** + * @public + * @enum + */ +export const FormatToHeaderKey = { + ALT: "ALT", + CHR: "CHR", + END: "END", + POS: "POS", + REF: "REF", + START: "START", +} as const; +/** + * @public + */ +export type FormatToHeaderKey = (typeof FormatToHeaderKey)[keyof typeof FormatToHeaderKey]; + +/** + * @public + * @enum + */ +export const SchemaValueType = { + /** + * BOOLEAN type + */ + BOOLEAN: "BOOLEAN", + /** + * DOUBLE type + */ + DOUBLE: "DOUBLE", + /** + * FLOAT type + */ + FLOAT: "FLOAT", + /** + * INT type + */ + INT: "INT", + /** + * LONG type + */ + LONG: "LONG", + /** + * STRING type + */ + STRING: "STRING", +} as const; +/** + * @public + */ +export type SchemaValueType = (typeof SchemaValueType)[keyof typeof SchemaValueType]; + +/** + * @public + * @enum + */ +export const StoreStatus = { + /** + * The Store is active + */ + ACTIVE: "ACTIVE", + /** + * The Store is being created + */ + CREATING: "CREATING", + /** + * The Store is deleting + */ + DELETING: "DELETING", + /** + * The Store creation failed + */ + FAILED: "FAILED", + /** + * The Store is updating + */ + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type StoreStatus = (typeof StoreStatus)[keyof typeof StoreStatus]; + +/** + * @public + * @enum + */ +export const VersionStatus = { + /** + * The Version is active + */ + ACTIVE: "ACTIVE", + /** + * The Version is being created + */ + CREATING: "CREATING", + /** + * The Version is deleting + */ + DELETING: "DELETING", + /** + * The Version creation failed + */ + FAILED: "FAILED", + /** + * The Version is updating + */ + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type VersionStatus = (typeof VersionStatus)[keyof typeof VersionStatus]; + +/** + * @public + * @enum + */ +export const CacheBehavior = { + CACHE_ALWAYS: "CACHE_ALWAYS", + CACHE_ON_FAILURE: "CACHE_ON_FAILURE", +} as const; +/** + * @public + */ +export type CacheBehavior = (typeof CacheBehavior)[keyof typeof CacheBehavior]; + +/** + * @public + * @enum + */ +export const ReadSetPartSource = { + SOURCE1: "SOURCE1", + SOURCE2: "SOURCE2", +} as const; +/** + * @public + */ +export type ReadSetPartSource = (typeof ReadSetPartSource)[keyof typeof ReadSetPartSource]; + +/** + * @public + * @enum + */ +export const FileType = { + BAM: "BAM", + CRAM: "CRAM", + FASTQ: "FASTQ", + UBAM: "UBAM", +} as const; +/** + * @public + */ +export type FileType = (typeof FileType)[keyof typeof FileType]; + +/** + * @public + * @enum + */ +export const RunCacheStatus = { + ACTIVE: "ACTIVE", + DELETED: "DELETED", + FAILED: "FAILED", +} as const; +/** + * @public + */ +export type RunCacheStatus = (typeof RunCacheStatus)[keyof typeof RunCacheStatus]; + +/** + * @public + * @enum + */ +export const ETagAlgorithmFamily = { + MD5UP: "MD5up", + SHA256UP: "SHA256up", + SHA512UP: "SHA512up", +} as const; +/** + * @public + */ +export type ETagAlgorithmFamily = (typeof ETagAlgorithmFamily)[keyof typeof ETagAlgorithmFamily]; + +/** + * @public + * @enum + */ +export const SequenceStoreStatus = { + ACTIVE: "ACTIVE", + CREATING: "CREATING", + DELETING: "DELETING", + FAILED: "FAILED", + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type SequenceStoreStatus = (typeof SequenceStoreStatus)[keyof typeof SequenceStoreStatus]; + +/** + * @public + * @enum + */ +export const SourceReferenceType = { + BRANCH: "BRANCH", + COMMIT: "COMMIT", + TAG: "TAG", +} as const; +/** + * @public + */ +export type SourceReferenceType = (typeof SourceReferenceType)[keyof typeof SourceReferenceType]; + +/** + * @public + * @enum + */ +export const WorkflowEngine = { + CWL: "CWL", + NEXTFLOW: "NEXTFLOW", + WDL: "WDL", + WDL_LENIENT: "WDL_LENIENT", +} as const; +/** + * @public + */ +export type WorkflowEngine = (typeof WorkflowEngine)[keyof typeof WorkflowEngine]; + +/** + * @public + * @enum + */ +export const StorageType = { + DYNAMIC: "DYNAMIC", + STATIC: "STATIC", +} as const; +/** + * @public + */ +export type StorageType = (typeof StorageType)[keyof typeof StorageType]; + +/** + * @public + * @enum + */ +export const WorkflowStatus = { + ACTIVE: "ACTIVE", + CREATING: "CREATING", + DELETED: "DELETED", + FAILED: "FAILED", + INACTIVE: "INACTIVE", + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type WorkflowStatus = (typeof WorkflowStatus)[keyof typeof WorkflowStatus]; + +/** + * @public + * @enum + */ +export const CreationType = { + IMPORT: "IMPORT", + UPLOAD: "UPLOAD", +} as const; +/** + * @public + */ +export type CreationType = (typeof CreationType)[keyof typeof CreationType]; + +/** + * @public + * @enum + */ +export const ETagAlgorithm = { + BAM_MD5UP: "BAM_MD5up", + BAM_SHA256UP: "BAM_SHA256up", + BAM_SHA512UP: "BAM_SHA512up", + CRAM_MD5UP: "CRAM_MD5up", + CRAM_SHA256UP: "CRAM_SHA256up", + CRAM_SHA512UP: "CRAM_SHA512up", + FASTQ_MD5UP: "FASTQ_MD5up", + FASTQ_SHA256UP: "FASTQ_SHA256up", + FASTQ_SHA512UP: "FASTQ_SHA512up", +} as const; +/** + * @public + */ +export type ETagAlgorithm = (typeof ETagAlgorithm)[keyof typeof ETagAlgorithm]; + +/** + * @public + * @enum + */ +export const ReadSetExportJobItemStatus = { + FAILED: "FAILED", + FINISHED: "FINISHED", + IN_PROGRESS: "IN_PROGRESS", + NOT_STARTED: "NOT_STARTED", +} as const; +/** + * @public + */ +export type ReadSetExportJobItemStatus = (typeof ReadSetExportJobItemStatus)[keyof typeof ReadSetExportJobItemStatus]; + +/** + * @public + * @enum + */ +export const ReadSetExportJobStatus = { + CANCELLED: "CANCELLED", + CANCELLING: "CANCELLING", + COMPLETED: "COMPLETED", + COMPLETED_WITH_FAILURES: "COMPLETED_WITH_FAILURES", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUBMITTED: "SUBMITTED", +} as const; +/** + * @public + */ +export type ReadSetExportJobStatus = (typeof ReadSetExportJobStatus)[keyof typeof ReadSetExportJobStatus]; + +/** + * @public + * @enum + */ +export const ShareResourceType = { + /** + * The share is on an annotation store + */ + ANNOTATION_STORE: "ANNOTATION_STORE", + /** + * The share is on a variant store + */ + VARIANT_STORE: "VARIANT_STORE", + /** + * The share is on a workflow + */ + WORKFLOW: "WORKFLOW", +} as const; +/** + * @public + */ +export type ShareResourceType = (typeof ShareResourceType)[keyof typeof ShareResourceType]; + +/** + * @public + * @enum + */ +export const ReadSetFile = { + INDEX: "INDEX", + SOURCE1: "SOURCE1", + SOURCE2: "SOURCE2", +} as const; +/** + * @public + */ +export type ReadSetFile = (typeof ReadSetFile)[keyof typeof ReadSetFile]; + +/** + * @public + * @enum + */ +export const ReadSetImportJobItemStatus = { + FAILED: "FAILED", + FINISHED: "FINISHED", + IN_PROGRESS: "IN_PROGRESS", + NOT_STARTED: "NOT_STARTED", +} as const; +/** + * @public + */ +export type ReadSetImportJobItemStatus = (typeof ReadSetImportJobItemStatus)[keyof typeof ReadSetImportJobItemStatus]; + +/** + * @public + * @enum + */ +export const ReadSetImportJobStatus = { + CANCELLED: "CANCELLED", + CANCELLING: "CANCELLING", + COMPLETED: "COMPLETED", + COMPLETED_WITH_FAILURES: "COMPLETED_WITH_FAILURES", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUBMITTED: "SUBMITTED", +} as const; +/** + * @public + */ +export type ReadSetImportJobStatus = (typeof ReadSetImportJobStatus)[keyof typeof ReadSetImportJobStatus]; + +/** + * @public + * @enum + */ +export const ReadSetStatus = { + ACTIVATING: "ACTIVATING", + ACTIVE: "ACTIVE", + ARCHIVED: "ARCHIVED", + DELETED: "DELETED", + DELETING: "DELETING", + PROCESSING_UPLOAD: "PROCESSING_UPLOAD", + UPLOAD_FAILED: "UPLOAD_FAILED", +} as const; +/** + * @public + */ +export type ReadSetStatus = (typeof ReadSetStatus)[keyof typeof ReadSetStatus]; + +/** + * @public + * @enum + */ +export const ReferenceFile = { + INDEX: "INDEX", + SOURCE: "SOURCE", +} as const; +/** + * @public + */ +export type ReferenceFile = (typeof ReferenceFile)[keyof typeof ReferenceFile]; + +/** + * @public + * @enum + */ +export const ReferenceImportJobItemStatus = { + FAILED: "FAILED", + FINISHED: "FINISHED", + IN_PROGRESS: "IN_PROGRESS", + NOT_STARTED: "NOT_STARTED", +} as const; +/** + * @public + */ +export type ReferenceImportJobItemStatus = + (typeof ReferenceImportJobItemStatus)[keyof typeof ReferenceImportJobItemStatus]; + +/** + * @public + * @enum + */ +export const ReferenceImportJobStatus = { + CANCELLED: "CANCELLED", + CANCELLING: "CANCELLING", + COMPLETED: "COMPLETED", + COMPLETED_WITH_FAILURES: "COMPLETED_WITH_FAILURES", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUBMITTED: "SUBMITTED", +} as const; +/** + * @public + */ +export type ReferenceImportJobStatus = (typeof ReferenceImportJobStatus)[keyof typeof ReferenceImportJobStatus]; + +/** + * @public + * @enum + */ +export const ReferenceCreationType = { + IMPORT: "IMPORT", +} as const; +/** + * @public + */ +export type ReferenceCreationType = (typeof ReferenceCreationType)[keyof typeof ReferenceCreationType]; + +/** + * @public + * @enum + */ +export const ReferenceStatus = { + ACTIVE: "ACTIVE", + DELETED: "DELETED", + DELETING: "DELETING", +} as const; +/** + * @public + */ +export type ReferenceStatus = (typeof ReferenceStatus)[keyof typeof ReferenceStatus]; + +/** + * @public + * @enum + */ +export const RunExport = { + DEFINITION: "DEFINITION", +} as const; +/** + * @public + */ +export type RunExport = (typeof RunExport)[keyof typeof RunExport]; + +/** + * @public + * @enum + */ +export const RunLogLevel = { + ALL: "ALL", + ERROR: "ERROR", + FATAL: "FATAL", + OFF: "OFF", +} as const; +/** + * @public + */ +export type RunLogLevel = (typeof RunLogLevel)[keyof typeof RunLogLevel]; + +/** + * @public + * @enum + */ +export const RunRetentionMode = { + REMOVE: "REMOVE", + RETAIN: "RETAIN", +} as const; +/** + * @public + */ +export type RunRetentionMode = (typeof RunRetentionMode)[keyof typeof RunRetentionMode]; + +/** + * @public + * @enum + */ +export const RunStatus = { + CANCELLED: "CANCELLED", + COMPLETED: "COMPLETED", + DELETED: "DELETED", + FAILED: "FAILED", + PENDING: "PENDING", + RUNNING: "RUNNING", + STARTING: "STARTING", + STOPPING: "STOPPING", +} as const; +/** + * @public + */ +export type RunStatus = (typeof RunStatus)[keyof typeof RunStatus]; + +/** + * @public + * @enum + */ +export const WorkflowType = { + PRIVATE: "PRIVATE", + READY2RUN: "READY2RUN", +} as const; +/** + * @public + */ +export type WorkflowType = (typeof WorkflowType)[keyof typeof WorkflowType]; + +/** + * @public + * @enum + */ +export const TaskStatus = { + CANCELLED: "CANCELLED", + COMPLETED: "COMPLETED", + FAILED: "FAILED", + PENDING: "PENDING", + RUNNING: "RUNNING", + STARTING: "STARTING", + STOPPING: "STOPPING", +} as const; +/** + * @public + */ +export type TaskStatus = (typeof TaskStatus)[keyof typeof TaskStatus]; + /** * @public * @enum @@ -11,3 +779,35 @@ export const StoreType = { * @public */ export type StoreType = (typeof StoreType)[keyof typeof StoreType]; + +/** + * @public + * @enum + */ +export const WorkflowExport = { + DEFINITION: "DEFINITION", + README: "README", +} as const; +/** + * @public + */ +export type WorkflowExport = (typeof WorkflowExport)[keyof typeof WorkflowExport]; + +/** + * @public + * @enum + */ +export const ResourceOwner = { + /** + * The resource owner is an account other than the caller + */ + OTHER: "OTHER", + /** + * The resource owner is the calling account + */ + SELF: "SELF", +} as const; +/** + * @public + */ +export type ResourceOwner = (typeof ResourceOwner)[keyof typeof ResourceOwner]; diff --git a/clients/client-omics/src/models/models_0.ts b/clients/client-omics/src/models/models_0.ts index a5045d6d5549..3cf84ab3b5ad 100644 --- a/clients/client-omics/src/models/models_0.ts +++ b/clients/client-omics/src/models/models_0.ts @@ -3,7 +3,53 @@ import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from import { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types"; -import { StoreType } from "./enums"; +import { + Accelerators, + AnnotationType, + CacheBehavior, + CreationType, + EncryptionType, + ETagAlgorithm, + ETagAlgorithmFamily, + FileType, + FormatToHeaderKey, + JobStatus, + ReadSetActivationJobItemStatus, + ReadSetActivationJobStatus, + ReadSetExportJobItemStatus, + ReadSetExportJobStatus, + ReadSetFile, + ReadSetImportJobItemStatus, + ReadSetImportJobStatus, + ReadSetPartSource, + ReadSetStatus, + ReferenceCreationType, + ReferenceFile, + ReferenceImportJobItemStatus, + ReferenceImportJobStatus, + ReferenceStatus, + ResourceOwner, + RunCacheStatus, + RunExport, + RunLogLevel, + RunRetentionMode, + RunStatus, + SchemaValueType, + SequenceStoreStatus, + ShareResourceType, + ShareStatus, + SourceReferenceType, + StorageType, + StoreFormat, + StoreStatus, + StoreType, + TaskStatus, + VersionStatus, + WorkflowEngine, + WorkflowExport, + WorkflowStatus, + WorkflowType, +} from "./enums"; /** * @public @@ -27,19 +73,6 @@ export interface AbortMultipartReadSetUploadRequest { */ export interface AbortMultipartReadSetUploadResponse {} -/** - * @public - * @enum - */ -export const Accelerators = { - GPU: "GPU", -} as const; - -/** - * @public - */ -export type Accelerators = (typeof Accelerators)[keyof typeof Accelerators]; - /** * @public */ @@ -51,42 +84,6 @@ export interface AcceptShareRequest { shareId: string | undefined; } -/** - * @public - * @enum - */ -export const ShareStatus = { - /** - * The share is activated - */ - ACTIVATING: "ACTIVATING", - /** - * The share is active and can be used - */ - ACTIVE: "ACTIVE", - /** - * The share has been deleted - */ - DELETED: "DELETED", - /** - * The share is being deleted - */ - DELETING: "DELETING", - /** - * The share has failed to activate or delete - */ - FAILED: "FAILED", - /** - * The share has been created but is not yet active - */ - PENDING: "PENDING", -} as const; - -/** - * @public - */ -export type ShareStatus = (typeof ShareStatus)[keyof typeof ShareStatus]; - /** * @public */ @@ -98,25 +95,6 @@ export interface AcceptShareResponse { status?: ShareStatus | undefined; } -/** - * @public - * @enum - */ -export const ReadSetActivationJobStatus = { - CANCELLED: "CANCELLED", - CANCELLING: "CANCELLING", - COMPLETED: "COMPLETED", - COMPLETED_WITH_FAILURES: "COMPLETED_WITH_FAILURES", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUBMITTED: "SUBMITTED", -} as const; - -/** - * @public - */ -export type ReadSetActivationJobStatus = (typeof ReadSetActivationJobStatus)[keyof typeof ReadSetActivationJobStatus]; - /** *

A read set activation job filter.

* @public @@ -177,23 +155,6 @@ export interface ActivateReadSetJobItem { completionTime?: Date | undefined; } -/** - * @public - * @enum - */ -export const ReadSetActivationJobItemStatus = { - FAILED: "FAILED", - FINISHED: "FINISHED", - IN_PROGRESS: "IN_PROGRESS", - NOT_STARTED: "NOT_STARTED", -} as const; - -/** - * @public - */ -export type ReadSetActivationJobItemStatus = - (typeof ReadSetActivationJobItemStatus)[keyof typeof ReadSetActivationJobItemStatus]; - /** *

A source for a read set activation job.

* @public @@ -218,42 +179,6 @@ export interface ActivateReadSetSourceItem { statusMessage?: string | undefined; } -/** - * @public - * @enum - */ -export const JobStatus = { - /** - * The Job was cancelled - */ - CANCELLED: "CANCELLED", - /** - * The Job has completed - */ - COMPLETED: "COMPLETED", - /** - * The Job completed with failed runs - */ - COMPLETED_WITH_FAILURES: "COMPLETED_WITH_FAILURES", - /** - * The Job failed - */ - FAILED: "FAILED", - /** - * The Job is executing - */ - IN_PROGRESS: "IN_PROGRESS", - /** - * The Job has been submitted to run - */ - SUBMITTED: "SUBMITTED", -} as const; - -/** - * @public - */ -export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus]; - /** *

Details about an imported annotation item.

* @public @@ -762,22 +687,6 @@ export namespace ReferenceItem { } } -/** - * @public - * @enum - */ -export const EncryptionType = { - /** - * KMS - */ - KMS: "KMS", -} as const; - -/** - * @public - */ -export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType]; - /** *

Server-side encryption (SSE) settings for a store.

* @public @@ -796,124 +705,6 @@ export interface SseConfig { keyArn?: string | undefined; } -/** - * @public - * @enum - */ -export const StoreFormat = { - /** - * GFF3 Format - */ - GFF: "GFF", - /** - * TSV Format - */ - TSV: "TSV", - /** - * VCF Format - */ - VCF: "VCF", -} as const; - -/** - * @public - */ -export type StoreFormat = (typeof StoreFormat)[keyof typeof StoreFormat]; - -/** - * @public - * @enum - */ -export const AnnotationType = { - /** - * Contains contig and 1-base position - */ - CHR_POS: "CHR_POS", - /** - * Contains contig, 1-base position, ref and alt allele information - */ - CHR_POS_REF_ALT: "CHR_POS_REF_ALT", - /** - * Contains contig, start, and end positions. Coordinates are 1-based - */ - CHR_START_END_ONE_BASE: "CHR_START_END_ONE_BASE", - /** - * Contains contig, start, end, ref and alt allele information. Coordinates are 1-based - */ - CHR_START_END_REF_ALT_ONE_BASE: "CHR_START_END_REF_ALT_ONE_BASE", - /** - * Contains contig, start, end, ref and alt allele information. Coordinates are 0-based - */ - CHR_START_END_REF_ALT_ZERO_BASE: "CHR_START_END_REF_ALT_ZERO_BASE", - /** - * Contains contig, start, and end positions. Coordinates are 0-based - */ - CHR_START_END_ZERO_BASE: "CHR_START_END_ZERO_BASE", - /** - * Generic text file. No genomic information - */ - GENERIC: "GENERIC", -} as const; - -/** - * @public - */ -export type AnnotationType = (typeof AnnotationType)[keyof typeof AnnotationType]; - -/** - * @public - * @enum - */ -export const FormatToHeaderKey = { - ALT: "ALT", - CHR: "CHR", - END: "END", - POS: "POS", - REF: "REF", - START: "START", -} as const; - -/** - * @public - */ -export type FormatToHeaderKey = (typeof FormatToHeaderKey)[keyof typeof FormatToHeaderKey]; - -/** - * @public - * @enum - */ -export const SchemaValueType = { - /** - * BOOLEAN type - */ - BOOLEAN: "BOOLEAN", - /** - * DOUBLE type - */ - DOUBLE: "DOUBLE", - /** - * FLOAT type - */ - FLOAT: "FLOAT", - /** - * INT type - */ - INT: "INT", - /** - * LONG type - */ - LONG: "LONG", - /** - * STRING type - */ - STRING: "STRING", -} as const; - -/** - * @public - */ -export type SchemaValueType = (typeof SchemaValueType)[keyof typeof SchemaValueType]; - /** *

File settings for a TSV store.

* @public @@ -1028,38 +819,6 @@ export interface CreateAnnotationStoreRequest { storeOptions?: StoreOptions | undefined; } -/** - * @public - * @enum - */ -export const StoreStatus = { - /** - * The Store is active - */ - ACTIVE: "ACTIVE", - /** - * The Store is being created - */ - CREATING: "CREATING", - /** - * The Store is deleting - */ - DELETING: "DELETING", - /** - * The Store creation failed - */ - FAILED: "FAILED", - /** - * The Store is updating - */ - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type StoreStatus = (typeof StoreStatus)[keyof typeof StoreStatus]; - /** * @public */ @@ -1555,38 +1314,6 @@ export interface CreateAnnotationStoreVersionRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const VersionStatus = { - /** - * The Version is active - */ - ACTIVE: "ACTIVE", - /** - * The Version is being created - */ - CREATING: "CREATING", - /** - * The Version is deleting - */ - DELETING: "DELETING", - /** - * The Version creation failed - */ - FAILED: "FAILED", - /** - * The Version is updating - */ - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type VersionStatus = (typeof VersionStatus)[keyof typeof VersionStatus]; - /** * @public */ @@ -2044,20 +1771,6 @@ export interface BatchDeleteReadSetResponse { errors?: ReadSetBatchError[] | undefined; } -/** - * @public - * @enum - */ -export const CacheBehavior = { - CACHE_ALWAYS: "CACHE_ALWAYS", - CACHE_ON_FAILURE: "CACHE_ON_FAILURE", -} as const; - -/** - * @public - */ -export type CacheBehavior = (typeof CacheBehavior)[keyof typeof CacheBehavior]; - /** * @public */ @@ -2085,20 +1798,6 @@ export interface CancelVariantImportRequest { */ export interface CancelVariantImportResponse {} -/** - * @public - * @enum - */ -export const ReadSetPartSource = { - SOURCE1: "SOURCE1", - SOURCE2: "SOURCE2", -} as const; - -/** - * @public - */ -export type ReadSetPartSource = (typeof ReadSetPartSource)[keyof typeof ReadSetPartSource]; - /** *

Part of the response to the CompleteReadSetUpload API, including metadata.

* @public @@ -2223,22 +1922,6 @@ export interface ContainerRegistryMap { imageMappings?: ImageMapping[] | undefined; } -/** - * @public - * @enum - */ -export const FileType = { - BAM: "BAM", - CRAM: "CRAM", - FASTQ: "FASTQ", - UBAM: "UBAM", -} as const; - -/** - * @public - */ -export type FileType = (typeof FileType)[keyof typeof FileType]; - /** * @public */ @@ -2498,21 +2181,6 @@ export interface CreateRunCacheRequest { cacheBucketOwnerId?: string | undefined; } -/** - * @public - * @enum - */ -export const RunCacheStatus = { - ACTIVE: "ACTIVE", - DELETED: "DELETED", - FAILED: "FAILED", -} as const; - -/** - * @public - */ -export type RunCacheStatus = (typeof RunCacheStatus)[keyof typeof RunCacheStatus]; - /** * @public */ @@ -2612,21 +2280,6 @@ export interface CreateRunGroupResponse { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const ETagAlgorithmFamily = { - MD5UP: "MD5up", - SHA256UP: "SHA256up", - SHA512UP: "SHA512up", -} as const; - -/** - * @public - */ -export type ETagAlgorithmFamily = (typeof ETagAlgorithmFamily)[keyof typeof ETagAlgorithmFamily]; - /** *

S3 access configuration parameters.

* @public @@ -2722,23 +2375,6 @@ export interface SequenceStoreS3Access { accessLogLocation?: string | undefined; } -/** - * @public - * @enum - */ -export const SequenceStoreStatus = { - ACTIVE: "ACTIVE", - CREATING: "CREATING", - DELETING: "DELETING", - FAILED: "FAILED", - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type SequenceStoreStatus = (typeof SequenceStoreStatus)[keyof typeof SequenceStoreStatus]; - /** * @public */ @@ -2932,21 +2568,6 @@ export interface CreateVariantStoreResponse { creationTime: Date | undefined; } -/** - * @public - * @enum - */ -export const SourceReferenceType = { - BRANCH: "BRANCH", - COMMIT: "COMMIT", - TAG: "TAG", -} as const; - -/** - * @public - */ -export type SourceReferenceType = (typeof SourceReferenceType)[keyof typeof SourceReferenceType]; - /** *

Contains information about the source reference in a code repository, such as a branch, tag, or commit.

* @public @@ -2995,22 +2616,6 @@ export interface DefinitionRepository { excludeFilePatterns?: string[] | undefined; } -/** - * @public - * @enum - */ -export const WorkflowEngine = { - CWL: "CWL", - NEXTFLOW: "NEXTFLOW", - WDL: "WDL", - WDL_LENIENT: "WDL_LENIENT", -} as const; - -/** - * @public - */ -export type WorkflowEngine = (typeof WorkflowEngine)[keyof typeof WorkflowEngine]; - /** *

A workflow parameter.

* @public @@ -3029,20 +2634,6 @@ export interface WorkflowParameter { optional?: boolean | undefined; } -/** - * @public - * @enum - */ -export const StorageType = { - DYNAMIC: "DYNAMIC", - STATIC: "STATIC", -} as const; - -/** - * @public - */ -export type StorageType = (typeof StorageType)[keyof typeof StorageType]; - /** * @public */ @@ -3168,24 +2759,6 @@ export interface CreateWorkflowRequest { readmeUri?: string | undefined; } -/** - * @public - * @enum - */ -export const WorkflowStatus = { - ACTIVE: "ACTIVE", - CREATING: "CREATING", - DELETED: "DELETED", - FAILED: "FAILED", - INACTIVE: "INACTIVE", - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type WorkflowStatus = (typeof WorkflowStatus)[keyof typeof WorkflowStatus]; - /** * @public */ @@ -3393,20 +2966,6 @@ export interface CreateWorkflowVersionResponse { uuid?: string | undefined; } -/** - * @public - * @enum - */ -export const CreationType = { - IMPORT: "IMPORT", - UPLOAD: "UPLOAD", -} as const; - -/** - * @public - */ -export type CreationType = (typeof CreationType)[keyof typeof CreationType]; - /** *

Contains detailed information about the source code repository that hosts the workflow definition files.

* @public @@ -3624,27 +3183,6 @@ export interface DeleteWorkflowVersionRequest { versionName: string | undefined; } -/** - * @public - * @enum - */ -export const ETagAlgorithm = { - BAM_MD5UP: "BAM_MD5up", - BAM_SHA256UP: "BAM_SHA256up", - BAM_SHA512UP: "BAM_SHA512up", - CRAM_MD5UP: "CRAM_MD5up", - CRAM_SHA256UP: "CRAM_SHA256up", - CRAM_SHA512UP: "CRAM_SHA512up", - FASTQ_MD5UP: "FASTQ_MD5up", - FASTQ_SHA256UP: "FASTQ_SHA256up", - FASTQ_SHA512UP: "FASTQ_SHA512up", -} as const; - -/** - * @public - */ -export type ETagAlgorithm = (typeof ETagAlgorithm)[keyof typeof ETagAlgorithm]; - /** *

The entity tag (ETag) is a hash of the object representing its semantic content.

* @public @@ -3681,22 +3219,6 @@ export interface ExportReadSet { readSetId: string | undefined; } -/** - * @public - * @enum - */ -export const ReadSetExportJobItemStatus = { - FAILED: "FAILED", - FINISHED: "FINISHED", - IN_PROGRESS: "IN_PROGRESS", - NOT_STARTED: "NOT_STARTED", -} as const; - -/** - * @public - */ -export type ReadSetExportJobItemStatus = (typeof ReadSetExportJobItemStatus)[keyof typeof ReadSetExportJobItemStatus]; - /** *

Details about a read set.

* @public @@ -3721,25 +3243,6 @@ export interface ExportReadSetDetail { statusMessage?: string | undefined; } -/** - * @public - * @enum - */ -export const ReadSetExportJobStatus = { - CANCELLED: "CANCELLED", - CANCELLING: "CANCELLING", - COMPLETED: "COMPLETED", - COMPLETED_WITH_FAILURES: "COMPLETED_WITH_FAILURES", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUBMITTED: "SUBMITTED", -} as const; - -/** - * @public - */ -export type ReadSetExportJobStatus = (typeof ReadSetExportJobStatus)[keyof typeof ReadSetExportJobStatus]; - /** *

An read set export job filter.

* @public @@ -3848,30 +3351,6 @@ export interface FileInformation { s3Access?: ReadSetS3Access | undefined; } -/** - * @public - * @enum - */ -export const ShareResourceType = { - /** - * The share is on an annotation store - */ - ANNOTATION_STORE: "ANNOTATION_STORE", - /** - * The share is on a variant store - */ - VARIANT_STORE: "VARIANT_STORE", - /** - * The share is on a workflow - */ - WORKFLOW: "WORKFLOW", -} as const; - -/** - * @public - */ -export type ShareResourceType = (typeof ShareResourceType)[keyof typeof ShareResourceType]; - /** *

Use filters to return a subset of resources. You can define filters for specific parameters, such as the resource status.

* @public @@ -3896,21 +3375,6 @@ export interface Filter { type?: ShareResourceType[] | undefined; } -/** - * @public - * @enum - */ -export const ReadSetFile = { - INDEX: "INDEX", - SOURCE1: "SOURCE1", - SOURCE2: "SOURCE2", -} as const; - -/** - * @public - */ -export type ReadSetFile = (typeof ReadSetFile)[keyof typeof ReadSetFile]; - /** * @public */ @@ -4120,22 +3584,6 @@ export interface SourceFiles { source2?: string | undefined; } -/** - * @public - * @enum - */ -export const ReadSetImportJobItemStatus = { - FAILED: "FAILED", - FINISHED: "FINISHED", - IN_PROGRESS: "IN_PROGRESS", - NOT_STARTED: "NOT_STARTED", -} as const; - -/** - * @public - */ -export type ReadSetImportJobItemStatus = (typeof ReadSetImportJobItemStatus)[keyof typeof ReadSetImportJobItemStatus]; - /** *

A source for an import read set job.

* @public @@ -4214,25 +3662,6 @@ export interface ImportReadSetSourceItem { readSetId?: string | undefined; } -/** - * @public - * @enum - */ -export const ReadSetImportJobStatus = { - CANCELLED: "CANCELLED", - CANCELLING: "CANCELLING", - COMPLETED: "COMPLETED", - COMPLETED_WITH_FAILURES: "COMPLETED_WITH_FAILURES", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUBMITTED: "SUBMITTED", -} as const; - -/** - * @public - */ -export type ReadSetImportJobStatus = (typeof ReadSetImportJobStatus)[keyof typeof ReadSetImportJobStatus]; - /** * @public */ @@ -4357,25 +3786,6 @@ export interface SequenceInformation { alignment?: string | undefined; } -/** - * @public - * @enum - */ -export const ReadSetStatus = { - ACTIVATING: "ACTIVATING", - ACTIVE: "ACTIVE", - ARCHIVED: "ARCHIVED", - DELETED: "DELETED", - DELETING: "DELETING", - PROCESSING_UPLOAD: "PROCESSING_UPLOAD", - UPLOAD_FAILED: "UPLOAD_FAILED", -} as const; - -/** - * @public - */ -export type ReadSetStatus = (typeof ReadSetStatus)[keyof typeof ReadSetStatus]; - /** * @public */ @@ -4483,20 +3893,6 @@ export interface GetReadSetMetadataResponse { creationJobId?: string | undefined; } -/** - * @public - * @enum - */ -export const ReferenceFile = { - INDEX: "INDEX", - SOURCE: "SOURCE", -} as const; - -/** - * @public - */ -export type ReferenceFile = (typeof ReferenceFile)[keyof typeof ReferenceFile]; - /** * @public */ @@ -4560,23 +3956,6 @@ export interface GetReferenceImportJobRequest { referenceStoreId: string | undefined; } -/** - * @public - * @enum - */ -export const ReferenceImportJobItemStatus = { - FAILED: "FAILED", - FINISHED: "FINISHED", - IN_PROGRESS: "IN_PROGRESS", - NOT_STARTED: "NOT_STARTED", -} as const; - -/** - * @public - */ -export type ReferenceImportJobItemStatus = - (typeof ReferenceImportJobItemStatus)[keyof typeof ReferenceImportJobItemStatus]; - /** *

An genome reference source.

* @public @@ -4625,25 +4004,6 @@ export interface ImportReferenceSourceItem { referenceId?: string | undefined; } -/** - * @public - * @enum - */ -export const ReferenceImportJobStatus = { - CANCELLED: "CANCELLED", - CANCELLING: "CANCELLING", - COMPLETED: "COMPLETED", - COMPLETED_WITH_FAILURES: "COMPLETED_WITH_FAILURES", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUBMITTED: "SUBMITTED", -} as const; - -/** - * @public - */ -export type ReferenceImportJobStatus = (typeof ReferenceImportJobStatus)[keyof typeof ReferenceImportJobStatus]; - /** * @public */ @@ -4714,19 +4074,6 @@ export interface GetReferenceMetadataRequest { referenceStoreId: string | undefined; } -/** - * @public - * @enum - */ -export const ReferenceCreationType = { - IMPORT: "IMPORT", -} as const; - -/** - * @public - */ -export type ReferenceCreationType = (typeof ReferenceCreationType)[keyof typeof ReferenceCreationType]; - /** *

A set of genome reference files.

* @public @@ -4745,21 +4092,6 @@ export interface ReferenceFiles { index?: FileInformation | undefined; } -/** - * @public - * @enum - */ -export const ReferenceStatus = { - ACTIVE: "ACTIVE", - DELETED: "DELETED", - DELETING: "DELETING", -} as const; - -/** - * @public - */ -export type ReferenceStatus = (typeof ReferenceStatus)[keyof typeof ReferenceStatus]; - /** * @public */ @@ -4889,19 +4221,6 @@ export interface GetReferenceStoreResponse { creationTime: Date | undefined; } -/** - * @public - * @enum - */ -export const RunExport = { - DEFINITION: "DEFINITION", -} as const; - -/** - * @public - */ -export type RunExport = (typeof RunExport)[keyof typeof RunExport]; - /** * @public */ @@ -4919,22 +4238,6 @@ export interface GetRunRequest { export?: RunExport[] | undefined; } -/** - * @public - * @enum - */ -export const RunLogLevel = { - ALL: "ALL", - ERROR: "ERROR", - FATAL: "FATAL", - OFF: "OFF", -} as const; - -/** - * @public - */ -export type RunLogLevel = (typeof RunLogLevel)[keyof typeof RunLogLevel]; - /** *

The URI for the run log.

* @public @@ -4953,54 +4256,6 @@ export interface RunLogLocation { runLogStream?: string | undefined; } -/** - * @public - * @enum - */ -export const RunRetentionMode = { - REMOVE: "REMOVE", - RETAIN: "RETAIN", -} as const; - -/** - * @public - */ -export type RunRetentionMode = (typeof RunRetentionMode)[keyof typeof RunRetentionMode]; - -/** - * @public - * @enum - */ -export const RunStatus = { - CANCELLED: "CANCELLED", - COMPLETED: "COMPLETED", - DELETED: "DELETED", - FAILED: "FAILED", - PENDING: "PENDING", - RUNNING: "RUNNING", - STARTING: "STARTING", - STOPPING: "STOPPING", -} as const; - -/** - * @public - */ -export type RunStatus = (typeof RunStatus)[keyof typeof RunStatus]; - -/** - * @public - * @enum - */ -export const WorkflowType = { - PRIVATE: "PRIVATE", - READY2RUN: "READY2RUN", -} as const; - -/** - * @public - */ -export type WorkflowType = (typeof WorkflowType)[keyof typeof WorkflowType]; - /** * @public */ @@ -5409,25 +4664,6 @@ export interface ImageDetails { sourceImage?: string | undefined; } -/** - * @public - * @enum - */ -export const TaskStatus = { - CANCELLED: "CANCELLED", - COMPLETED: "COMPLETED", - FAILED: "FAILED", - PENDING: "PENDING", - RUNNING: "RUNNING", - STARTING: "STARTING", - STOPPING: "STOPPING", -} as const; - -/** - * @public - */ -export type TaskStatus = (typeof TaskStatus)[keyof typeof TaskStatus]; - /** * @public */ @@ -5951,20 +5187,6 @@ export interface GetVariantStoreResponse { storeSizeBytes: number | undefined; } -/** - * @public - * @enum - */ -export const WorkflowExport = { - DEFINITION: "DEFINITION", - README: "README", -} as const; - -/** - * @public - */ -export type WorkflowExport = (typeof WorkflowExport)[keyof typeof WorkflowExport]; - /** * @public */ @@ -7895,26 +7117,6 @@ export interface ListSequenceStoresResponse { sequenceStores: SequenceStoreDetail[] | undefined; } -/** - * @public - * @enum - */ -export const ResourceOwner = { - /** - * The resource owner is an account other than the caller - */ - OTHER: "OTHER", - /** - * The resource owner is the calling account - */ - SELF: "SELF", -} as const; - -/** - * @public - */ -export type ResourceOwner = (typeof ResourceOwner)[keyof typeof ResourceOwner]; - /** * @public */ @@ -9302,3 +8504,195 @@ export interface VariantImportItemSource { */ source: string | undefined; } + +/** + * @public + */ +export interface StartVariantImportRequest { + /** + *

The destination variant store for the job.

+ * @public + */ + destinationName: string | undefined; + + /** + *

A service role for the job.

+ * @public + */ + roleArn: string | undefined; + + /** + *

Items to import.

+ * @public + */ + items: VariantImportItemSource[] | undefined; + + /** + *

The job's left normalization setting.

+ * @public + */ + runLeftNormalization?: boolean | undefined; + + /** + *

The annotation schema generated by the parsed annotation data.

+ * @public + */ + annotationFields?: Record | undefined; +} + +/** + * @public + */ +export interface StartVariantImportResponse { + /** + *

The job's ID.

+ * @public + */ + jobId: string | undefined; +} + +/** + * @public + */ +export interface UpdateVariantStoreRequest { + /** + *

A name for the store.

+ * @public + */ + name: string | undefined; + + /** + *

A description for the store.

+ * @public + */ + description?: string | undefined; +} + +/** + * @public + */ +export interface UpdateVariantStoreResponse { + /** + *

The store's ID.

+ * @public + */ + id: string | undefined; + + /** + *

The store's genome reference.

+ * @public + */ + reference: ReferenceItem | undefined; + + /** + *

The store's status.

+ * @public + */ + status: StoreStatus | undefined; + + /** + *

The store's name.

+ * @public + */ + name: string | undefined; + + /** + *

The store's description.

+ * @public + */ + description: string | undefined; + + /** + *

When the store was created.

+ * @public + */ + creationTime: Date | undefined; + + /** + *

When the store was updated.

+ * @public + */ + updateTime: Date | undefined; +} + +/** + * @public + */ +export interface UpdateWorkflowRequest { + /** + *

The workflow's ID.

+ * @public + */ + id: string | undefined; + + /** + *

A name for the workflow.

+ * @public + */ + name?: string | undefined; + + /** + *

A description for the workflow.

+ * @public + */ + description?: string | undefined; + + /** + *

The default storage type for runs that use this workflow. STATIC storage allocates a fixed amount of storage. DYNAMIC storage dynamically scales the storage up or down, based on file system utilization. For more information about static and dynamic storage, see Running workflows in the Amazon Web Services HealthOmics User Guide.

+ * @public + */ + storageType?: StorageType | undefined; + + /** + *

The default static storage capacity (in gibibytes) for runs that use this workflow or workflow version.

+ * @public + */ + storageCapacity?: number | undefined; + + /** + *

The markdown content for the workflow's README file. This provides documentation and usage information for users of the workflow.

+ * @public + */ + readmeMarkdown?: string | undefined; +} + +/** + * @public + */ +export interface UpdateWorkflowVersionRequest { + /** + *

The workflow's ID. The workflowId is not the UUID.

+ * @public + */ + workflowId: string | undefined; + + /** + *

The name of the workflow version.

+ * @public + */ + versionName: string | undefined; + + /** + *

Description of the workflow version.

+ * @public + */ + description?: string | undefined; + + /** + *

The default storage type for runs that use this workflow version. The storageType can be overridden at run time. DYNAMIC storage dynamically scales the storage up or down, based on file system utilization. STATIC storage allocates a fixed amount of storage. For more information about dynamic and static storage types, see Run storage types in the in the Amazon Web Services HealthOmics User Guide .

+ * @public + */ + storageType?: StorageType | undefined; + + /** + *

The default static storage capacity (in gibibytes) for runs that use this workflow version. The storageCapacity can be overwritten at run time. The storage capacity is not required for runs with a DYNAMIC storage type.

+ * @public + */ + storageCapacity?: number | undefined; + + /** + *

The markdown content for the workflow version's README file. This provides documentation and usage information for users of this specific workflow version.

+ * @public + */ + readmeMarkdown?: string | undefined; +} diff --git a/clients/client-omics/src/models/models_1.ts b/clients/client-omics/src/models/models_1.ts deleted file mode 100644 index d31ab65e8a49..000000000000 --- a/clients/client-omics/src/models/models_1.ts +++ /dev/null @@ -1,194 +0,0 @@ -// smithy-typescript generated code -import { ReferenceItem, StorageType, StoreStatus, VariantImportItemSource } from "./models_0"; - -/** - * @public - */ -export interface StartVariantImportRequest { - /** - *

The destination variant store for the job.

- * @public - */ - destinationName: string | undefined; - - /** - *

A service role for the job.

- * @public - */ - roleArn: string | undefined; - - /** - *

Items to import.

- * @public - */ - items: VariantImportItemSource[] | undefined; - - /** - *

The job's left normalization setting.

- * @public - */ - runLeftNormalization?: boolean | undefined; - - /** - *

The annotation schema generated by the parsed annotation data.

- * @public - */ - annotationFields?: Record | undefined; -} - -/** - * @public - */ -export interface StartVariantImportResponse { - /** - *

The job's ID.

- * @public - */ - jobId: string | undefined; -} - -/** - * @public - */ -export interface UpdateVariantStoreRequest { - /** - *

A name for the store.

- * @public - */ - name: string | undefined; - - /** - *

A description for the store.

- * @public - */ - description?: string | undefined; -} - -/** - * @public - */ -export interface UpdateVariantStoreResponse { - /** - *

The store's ID.

- * @public - */ - id: string | undefined; - - /** - *

The store's genome reference.

- * @public - */ - reference: ReferenceItem | undefined; - - /** - *

The store's status.

- * @public - */ - status: StoreStatus | undefined; - - /** - *

The store's name.

- * @public - */ - name: string | undefined; - - /** - *

The store's description.

- * @public - */ - description: string | undefined; - - /** - *

When the store was created.

- * @public - */ - creationTime: Date | undefined; - - /** - *

When the store was updated.

- * @public - */ - updateTime: Date | undefined; -} - -/** - * @public - */ -export interface UpdateWorkflowRequest { - /** - *

The workflow's ID.

- * @public - */ - id: string | undefined; - - /** - *

A name for the workflow.

- * @public - */ - name?: string | undefined; - - /** - *

A description for the workflow.

- * @public - */ - description?: string | undefined; - - /** - *

The default storage type for runs that use this workflow. STATIC storage allocates a fixed amount of storage. DYNAMIC storage dynamically scales the storage up or down, based on file system utilization. For more information about static and dynamic storage, see Running workflows in the Amazon Web Services HealthOmics User Guide.

- * @public - */ - storageType?: StorageType | undefined; - - /** - *

The default static storage capacity (in gibibytes) for runs that use this workflow or workflow version.

- * @public - */ - storageCapacity?: number | undefined; - - /** - *

The markdown content for the workflow's README file. This provides documentation and usage information for users of the workflow.

- * @public - */ - readmeMarkdown?: string | undefined; -} - -/** - * @public - */ -export interface UpdateWorkflowVersionRequest { - /** - *

The workflow's ID. The workflowId is not the UUID.

- * @public - */ - workflowId: string | undefined; - - /** - *

The name of the workflow version.

- * @public - */ - versionName: string | undefined; - - /** - *

Description of the workflow version.

- * @public - */ - description?: string | undefined; - - /** - *

The default storage type for runs that use this workflow version. The storageType can be overridden at run time. DYNAMIC storage dynamically scales the storage up or down, based on file system utilization. STATIC storage allocates a fixed amount of storage. For more information about dynamic and static storage types, see Run storage types in the in the Amazon Web Services HealthOmics User Guide .

- * @public - */ - storageType?: StorageType | undefined; - - /** - *

The default static storage capacity (in gibibytes) for runs that use this workflow version. The storageCapacity can be overwritten at run time. The storage capacity is not required for runs with a DYNAMIC storage type.

- * @public - */ - storageCapacity?: number | undefined; - - /** - *

The markdown content for the workflow version's README file. This provides documentation and usage information for users of this specific workflow version.

- * @public - */ - readmeMarkdown?: string | undefined; -} diff --git a/clients/client-opensearchserverless/src/index.ts b/clients/client-opensearchserverless/src/index.ts index 8d1c835638f3..e2be149ef5ec 100644 --- a/clients/client-opensearchserverless/src/index.ts +++ b/clients/client-opensearchserverless/src/index.ts @@ -13,6 +13,7 @@ export type { OpenSearchServerlessExtensionConfiguration } from "./extensionConf export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-opensearchserverless/src/models/enums.ts b/clients/client-opensearchserverless/src/models/enums.ts new file mode 100644 index 000000000000..5eec5be7b4a2 --- /dev/null +++ b/clients/client-opensearchserverless/src/models/enums.ts @@ -0,0 +1,227 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const AccessPolicyType = { + /** + * data policy type + */ + data: "data", +} as const; +/** + * @public + */ +export type AccessPolicyType = (typeof AccessPolicyType)[keyof typeof AccessPolicyType]; + +/** + * @public + * @enum + */ +export const StandbyReplicas = { + /** + * Standby replicas disabled + */ + DISABLED: "DISABLED", + /** + * Standby replicas enabled + */ + ENABLED: "ENABLED", +} as const; +/** + * @public + */ +export type StandbyReplicas = (typeof StandbyReplicas)[keyof typeof StandbyReplicas]; + +/** + * @public + * @enum + */ +export const CollectionStatus = { + /** + * Collection resource is ready to use + */ + ACTIVE: "ACTIVE", + /** + * Creating collection resource + */ + CREATING: "CREATING", + /** + * Deleting collection resource + */ + DELETING: "DELETING", + /** + * Collection resource create or delete failed + */ + FAILED: "FAILED", +} as const; +/** + * @public + */ +export type CollectionStatus = (typeof CollectionStatus)[keyof typeof CollectionStatus]; + +/** + * @public + * @enum + */ +export const CollectionType = { + /** + * Search collection type + */ + SEARCH: "SEARCH", + /** + * Timeseries collection type + */ + TIMESERIES: "TIMESERIES", + /** + * Vectorsearch collection type + */ + VECTORSEARCH: "VECTORSEARCH", +} as const; +/** + * @public + */ +export type CollectionType = (typeof CollectionType)[keyof typeof CollectionType]; + +/** + * @public + * @enum + */ +export const LifecyclePolicyType = { + /** + * retention policy type + */ + retention: "retention", +} as const; +/** + * @public + */ +export type LifecyclePolicyType = (typeof LifecyclePolicyType)[keyof typeof LifecyclePolicyType]; + +/** + * @public + * @enum + */ +export const ResourceType = { + /** + * index resource type + */ + index: "index", +} as const; +/** + * @public + */ +export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; + +/** + * @public + * @enum + */ +export const VpcEndpointStatus = { + /** + * VPCEndpoint resource is ready to use + */ + ACTIVE: "ACTIVE", + /** + * Deleting VPCEndpoint resource + */ + DELETING: "DELETING", + /** + * VPCEndpoint resource create or delete failed + */ + FAILED: "FAILED", + /** + * Pending VPCEndpoint resource + */ + PENDING: "PENDING", +} as const; +/** + * @public + */ +export type VpcEndpointStatus = (typeof VpcEndpointStatus)[keyof typeof VpcEndpointStatus]; + +/** + * @public + * @enum + */ +export const IamIdentityCenterGroupAttribute = { + /** + * Group ID + */ + GroupId: "GroupId", + /** + * Group Name + */ + GroupName: "GroupName", +} as const; +/** + * @public + */ +export type IamIdentityCenterGroupAttribute = + (typeof IamIdentityCenterGroupAttribute)[keyof typeof IamIdentityCenterGroupAttribute]; + +/** + * @public + * @enum + */ +export const IamIdentityCenterUserAttribute = { + /** + * Email + */ + Email: "Email", + /** + * User ID + */ + UserId: "UserId", + /** + * User Name + */ + UserName: "UserName", +} as const; +/** + * @public + */ +export type IamIdentityCenterUserAttribute = + (typeof IamIdentityCenterUserAttribute)[keyof typeof IamIdentityCenterUserAttribute]; + +/** + * @public + * @enum + */ +export const SecurityConfigType = { + /** + * iam federation + */ + iamfederation: "iamfederation", + /** + * iam identity center + */ + iamidentitycenter: "iamidentitycenter", + /** + * saml provider + */ + saml: "saml", +} as const; +/** + * @public + */ +export type SecurityConfigType = (typeof SecurityConfigType)[keyof typeof SecurityConfigType]; + +/** + * @public + * @enum + */ +export const SecurityPolicyType = { + /** + * encryption policy type + */ + encryption: "encryption", + /** + * network policy type + */ + network: "network", +} as const; +/** + * @public + */ +export type SecurityPolicyType = (typeof SecurityPolicyType)[keyof typeof SecurityPolicyType]; diff --git a/clients/client-opensearchserverless/src/models/models_0.ts b/clients/client-opensearchserverless/src/models/models_0.ts index c3f07cafeca5..9f744c246143 100644 --- a/clients/client-opensearchserverless/src/models/models_0.ts +++ b/clients/client-opensearchserverless/src/models/models_0.ts @@ -1,21 +1,19 @@ // smithy-typescript generated code import { DocumentType as __DocumentType } from "@smithy/types"; -/** - * @public - * @enum - */ -export const AccessPolicyType = { - /** - * data policy type - */ - data: "data", -} as const; - -/** - * @public - */ -export type AccessPolicyType = (typeof AccessPolicyType)[keyof typeof AccessPolicyType]; +import { + AccessPolicyType, + CollectionStatus, + CollectionType, + IamIdentityCenterGroupAttribute, + IamIdentityCenterUserAttribute, + LifecyclePolicyType, + ResourceType, + SecurityConfigType, + SecurityPolicyType, + StandbyReplicas, + VpcEndpointStatus, +} from "./enums"; /** * @public @@ -384,78 +382,6 @@ export interface FipsEndpoints { dashboardEndpoint?: string | undefined; } -/** - * @public - * @enum - */ -export const StandbyReplicas = { - /** - * Standby replicas disabled - */ - DISABLED: "DISABLED", - /** - * Standby replicas enabled - */ - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type StandbyReplicas = (typeof StandbyReplicas)[keyof typeof StandbyReplicas]; - -/** - * @public - * @enum - */ -export const CollectionStatus = { - /** - * Collection resource is ready to use - */ - ACTIVE: "ACTIVE", - /** - * Creating collection resource - */ - CREATING: "CREATING", - /** - * Deleting collection resource - */ - DELETING: "DELETING", - /** - * Collection resource create or delete failed - */ - FAILED: "FAILED", -} as const; - -/** - * @public - */ -export type CollectionStatus = (typeof CollectionStatus)[keyof typeof CollectionStatus]; - -/** - * @public - * @enum - */ -export const CollectionType = { - /** - * Search collection type - */ - SEARCH: "SEARCH", - /** - * Timeseries collection type - */ - TIMESERIES: "TIMESERIES", - /** - * Vectorsearch collection type - */ - VECTORSEARCH: "VECTORSEARCH", -} as const; - -/** - * @public - */ -export type CollectionType = (typeof CollectionType)[keyof typeof CollectionType]; - /** *

Details about each OpenSearch Serverless collection, including the collection endpoint, the OpenSearch Dashboards endpoint, and FIPS-compliant endpoints for federal government workloads.

* @public @@ -599,22 +525,6 @@ export interface BatchGetCollectionResponse { collectionErrorDetails?: CollectionErrorDetail[] | undefined; } -/** - * @public - * @enum - */ -export const LifecyclePolicyType = { - /** - * retention policy type - */ - retention: "retention", -} as const; - -/** - * @public - */ -export type LifecyclePolicyType = (typeof LifecyclePolicyType)[keyof typeof LifecyclePolicyType]; - /** *

The unique identifiers of policy types and resource names.

* @public @@ -644,22 +554,6 @@ export interface BatchGetEffectiveLifecyclePolicyRequest { resourceIdentifiers: LifecyclePolicyResourceIdentifier[] | undefined; } -/** - * @public - * @enum - */ -export const ResourceType = { - /** - * index resource type - */ - index: "index", -} as const; - -/** - * @public - */ -export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; - /** *

Error information for an OpenSearch Serverless request.

* @public @@ -884,34 +778,6 @@ export interface BatchGetVpcEndpointRequest { ids: string[] | undefined; } -/** - * @public - * @enum - */ -export const VpcEndpointStatus = { - /** - * VPCEndpoint resource is ready to use - */ - ACTIVE: "ACTIVE", - /** - * Deleting VPCEndpoint resource - */ - DELETING: "DELETING", - /** - * VPCEndpoint resource create or delete failed - */ - FAILED: "FAILED", - /** - * Pending VPCEndpoint resource - */ - PENDING: "PENDING", -} as const; - -/** - * @public - */ -export type VpcEndpointStatus = (typeof VpcEndpointStatus)[keyof typeof VpcEndpointStatus]; - /** *

Details about an OpenSearch Serverless-managed interface endpoint.

* @public @@ -1377,52 +1243,6 @@ export interface UpdateCollectionResponse { updateCollectionDetail?: UpdateCollectionDetail | undefined; } -/** - * @public - * @enum - */ -export const IamIdentityCenterGroupAttribute = { - /** - * Group ID - */ - GroupId: "GroupId", - /** - * Group Name - */ - GroupName: "GroupName", -} as const; - -/** - * @public - */ -export type IamIdentityCenterGroupAttribute = - (typeof IamIdentityCenterGroupAttribute)[keyof typeof IamIdentityCenterGroupAttribute]; - -/** - * @public - * @enum - */ -export const IamIdentityCenterUserAttribute = { - /** - * Email - */ - Email: "Email", - /** - * User ID - */ - UserId: "UserId", - /** - * User Name - */ - UserName: "UserName", -} as const; - -/** - * @public - */ -export type IamIdentityCenterUserAttribute = - (typeof IamIdentityCenterUserAttribute)[keyof typeof IamIdentityCenterUserAttribute]; - /** *

Describes IAM Identity Center options for creating an OpenSearch Serverless security configuration in the form of a key-value map.

* @public @@ -1575,30 +1395,6 @@ export interface SamlConfigOptions { sessionTimeout?: number | undefined; } -/** - * @public - * @enum - */ -export const SecurityConfigType = { - /** - * iam federation - */ - iamfederation: "iamfederation", - /** - * iam identity center - */ - iamidentitycenter: "iamidentitycenter", - /** - * saml provider - */ - saml: "saml", -} as const; - -/** - * @public - */ -export type SecurityConfigType = (typeof SecurityConfigType)[keyof typeof SecurityConfigType]; - /** * @public */ @@ -1759,26 +1555,6 @@ export interface CreateSecurityConfigResponse { securityConfigDetail?: SecurityConfigDetail | undefined; } -/** - * @public - * @enum - */ -export const SecurityPolicyType = { - /** - * encryption policy type - */ - encryption: "encryption", - /** - * network policy type - */ - network: "network", -} as const; - -/** - * @public - */ -export type SecurityPolicyType = (typeof SecurityPolicyType)[keyof typeof SecurityPolicyType]; - /** * @public */ diff --git a/clients/client-panorama/src/index.ts b/clients/client-panorama/src/index.ts index 22c09b872f05..88eb6133f5d8 100644 --- a/clients/client-panorama/src/index.ts +++ b/clients/client-panorama/src/index.ts @@ -18,6 +18,7 @@ export type { PanoramaExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-panorama/src/models/enums.ts b/clients/client-panorama/src/models/enums.ts new file mode 100644 index 000000000000..6683fe976f65 --- /dev/null +++ b/clients/client-panorama/src/models/enums.ts @@ -0,0 +1,411 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ApplicationInstanceHealthStatus = { + ERROR: "ERROR", + NOT_AVAILABLE: "NOT_AVAILABLE", + RUNNING: "RUNNING", +} as const; +/** + * @public + */ +export type ApplicationInstanceHealthStatus = + (typeof ApplicationInstanceHealthStatus)[keyof typeof ApplicationInstanceHealthStatus]; + +/** + * @public + * @enum + */ +export const DesiredState = { + REMOVED: "REMOVED", + RUNNING: "RUNNING", + STOPPED: "STOPPED", +} as const; +/** + * @public + */ +export type DesiredState = (typeof DesiredState)[keyof typeof DesiredState]; + +/** + * @public + * @enum + */ +export const DeviceReportedStatus = { + INSTALL_ERROR: "INSTALL_ERROR", + INSTALL_IN_PROGRESS: "INSTALL_IN_PROGRESS", + LAUNCHED: "LAUNCHED", + LAUNCH_ERROR: "LAUNCH_ERROR", + REMOVAL_FAILED: "REMOVAL_FAILED", + REMOVAL_IN_PROGRESS: "REMOVAL_IN_PROGRESS", + RUNNING: "RUNNING", + STARTING: "STARTING", + STOPPED: "STOPPED", + STOPPING: "STOPPING", + STOP_ERROR: "STOP_ERROR", +} as const; +/** + * @public + */ +export type DeviceReportedStatus = (typeof DeviceReportedStatus)[keyof typeof DeviceReportedStatus]; + +/** + * @public + * @enum + */ +export const ApplicationInstanceStatus = { + DEPLOYMENT_ERROR: "DEPLOYMENT_ERROR", + DEPLOYMENT_FAILED: "DEPLOYMENT_FAILED", + DEPLOYMENT_IN_PROGRESS: "DEPLOYMENT_IN_PROGRESS", + DEPLOYMENT_PENDING: "DEPLOYMENT_PENDING", + DEPLOYMENT_REQUESTED: "DEPLOYMENT_REQUESTED", + DEPLOYMENT_SUCCEEDED: "DEPLOYMENT_SUCCEEDED", + REMOVAL_FAILED: "REMOVAL_FAILED", + REMOVAL_IN_PROGRESS: "REMOVAL_IN_PROGRESS", + REMOVAL_PENDING: "REMOVAL_PENDING", + REMOVAL_REQUESTED: "REMOVAL_REQUESTED", + REMOVAL_SUCCEEDED: "REMOVAL_SUCCEEDED", +} as const; +/** + * @public + */ +export type ApplicationInstanceStatus = (typeof ApplicationInstanceStatus)[keyof typeof ApplicationInstanceStatus]; + +/** + * @public + * @enum + */ +export const ConnectionType = { + DHCP: "DHCP", + STATIC_IP: "STATIC_IP", +} as const; +/** + * @public + */ +export type ConnectionType = (typeof ConnectionType)[keyof typeof ConnectionType]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + CANNOT_PARSE: "CANNOT_PARSE", + FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", + OTHER: "OTHER", + UNKNOWN_OPERATION: "UNKNOWN_OPERATION", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const JobType = { + OTA: "OTA", + REBOOT: "REBOOT", +} as const; +/** + * @public + */ +export type JobType = (typeof JobType)[keyof typeof JobType]; + +/** + * @public + * @enum + */ +export const JobResourceType = { + PACKAGE: "PACKAGE", +} as const; +/** + * @public + */ +export type JobResourceType = (typeof JobResourceType)[keyof typeof JobResourceType]; + +/** + * @public + * @enum + */ +export const TemplateType = { + RTSP_CAMERA_STREAM: "RTSP_CAMERA_STREAM", +} as const; +/** + * @public + */ +export type TemplateType = (typeof TemplateType)[keyof typeof TemplateType]; + +/** + * @public + * @enum + */ +export const PackageImportJobType = { + MARKETPLACE_NODE_PACKAGE_VERSION: "MARKETPLACE_NODE_PACKAGE_VERSION", + NODE_PACKAGE_VERSION: "NODE_PACKAGE_VERSION", +} as const; +/** + * @public + */ +export type PackageImportJobType = (typeof PackageImportJobType)[keyof typeof PackageImportJobType]; + +/** + * @public + * @enum + */ +export const DeviceBrand = { + AWS_PANORAMA: "AWS_PANORAMA", + LENOVO: "LENOVO", +} as const; +/** + * @public + */ +export type DeviceBrand = (typeof DeviceBrand)[keyof typeof DeviceBrand]; + +/** + * @public + * @enum + */ +export const NetworkConnectionStatus = { + CONNECTED: "CONNECTED", + CONNECTING: "CONNECTING", + NOT_CONNECTED: "NOT_CONNECTED", +} as const; +/** + * @public + */ +export type NetworkConnectionStatus = (typeof NetworkConnectionStatus)[keyof typeof NetworkConnectionStatus]; + +/** + * @public + * @enum + */ +export const DeviceAggregatedStatus = { + AWAITING_PROVISIONING: "AWAITING_PROVISIONING", + DELETING: "DELETING", + ERROR: "ERROR", + FAILED: "FAILED", + LEASE_EXPIRED: "LEASE_EXPIRED", + OFFLINE: "OFFLINE", + ONLINE: "ONLINE", + PENDING: "PENDING", + REBOOTING: "REBOOTING", + UPDATE_NEEDED: "UPDATE_NEEDED", +} as const; +/** + * @public + */ +export type DeviceAggregatedStatus = (typeof DeviceAggregatedStatus)[keyof typeof DeviceAggregatedStatus]; + +/** + * @public + * @enum + */ +export const DeviceConnectionStatus = { + AWAITING_CREDENTIALS: "AWAITING_CREDENTIALS", + ERROR: "ERROR", + NOT_AVAILABLE: "NOT_AVAILABLE", + OFFLINE: "OFFLINE", + ONLINE: "ONLINE", +} as const; +/** + * @public + */ +export type DeviceConnectionStatus = (typeof DeviceConnectionStatus)[keyof typeof DeviceConnectionStatus]; + +/** + * @public + * @enum + */ +export const UpdateProgress = { + COMPLETED: "COMPLETED", + DOWNLOADING: "DOWNLOADING", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + PENDING: "PENDING", + REBOOTING: "REBOOTING", + VERIFYING: "VERIFYING", +} as const; +/** + * @public + */ +export type UpdateProgress = (typeof UpdateProgress)[keyof typeof UpdateProgress]; + +/** + * @public + * @enum + */ +export const DeviceStatus = { + AWAITING_PROVISIONING: "AWAITING_PROVISIONING", + DELETING: "DELETING", + ERROR: "ERROR", + FAILED: "FAILED", + PENDING: "PENDING", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type DeviceStatus = (typeof DeviceStatus)[keyof typeof DeviceStatus]; + +/** + * @public + * @enum + */ +export const DeviceType = { + PANORAMA_APPLIANCE: "PANORAMA_APPLIANCE", + PANORAMA_APPLIANCE_DEVELOPER_KIT: "PANORAMA_APPLIANCE_DEVELOPER_KIT", +} as const; +/** + * @public + */ +export type DeviceType = (typeof DeviceType)[keyof typeof DeviceType]; + +/** + * @public + * @enum + */ +export const NodeCategory = { + BUSINESS_LOGIC: "BUSINESS_LOGIC", + MEDIA_SINK: "MEDIA_SINK", + MEDIA_SOURCE: "MEDIA_SOURCE", + ML_MODEL: "ML_MODEL", +} as const; +/** + * @public + */ +export type NodeCategory = (typeof NodeCategory)[keyof typeof NodeCategory]; + +/** + * @public + * @enum + */ +export const PortType = { + BOOLEAN: "BOOLEAN", + FLOAT32: "FLOAT32", + INT32: "INT32", + MEDIA: "MEDIA", + STRING: "STRING", +} as const; +/** + * @public + */ +export type PortType = (typeof PortType)[keyof typeof PortType]; + +/** + * @public + * @enum + */ +export const NodeFromTemplateJobStatus = { + FAILED: "FAILED", + PENDING: "PENDING", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type NodeFromTemplateJobStatus = (typeof NodeFromTemplateJobStatus)[keyof typeof NodeFromTemplateJobStatus]; + +/** + * @public + * @enum + */ +export const PackageImportJobStatus = { + FAILED: "FAILED", + PENDING: "PENDING", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type PackageImportJobStatus = (typeof PackageImportJobStatus)[keyof typeof PackageImportJobStatus]; + +/** + * @public + * @enum + */ +export const PackageVersionStatus = { + DELETING: "DELETING", + FAILED: "FAILED", + REGISTER_COMPLETED: "REGISTER_COMPLETED", + REGISTER_PENDING: "REGISTER_PENDING", +} as const; +/** + * @public + */ +export type PackageVersionStatus = (typeof PackageVersionStatus)[keyof typeof PackageVersionStatus]; + +/** + * @public + * @enum + */ +export const NodeInstanceStatus = { + ERROR: "ERROR", + NOT_AVAILABLE: "NOT_AVAILABLE", + PAUSED: "PAUSED", + RUNNING: "RUNNING", +} as const; +/** + * @public + */ +export type NodeInstanceStatus = (typeof NodeInstanceStatus)[keyof typeof NodeInstanceStatus]; + +/** + * @public + * @enum + */ +export const StatusFilter = { + DEPLOYMENT_ERROR: "DEPLOYMENT_ERROR", + DEPLOYMENT_FAILED: "DEPLOYMENT_FAILED", + DEPLOYMENT_SUCCEEDED: "DEPLOYMENT_SUCCEEDED", + PROCESSING_DEPLOYMENT: "PROCESSING_DEPLOYMENT", + PROCESSING_REMOVAL: "PROCESSING_REMOVAL", + REMOVAL_FAILED: "REMOVAL_FAILED", + REMOVAL_SUCCEEDED: "REMOVAL_SUCCEEDED", +} as const; +/** + * @public + */ +export type StatusFilter = (typeof StatusFilter)[keyof typeof StatusFilter]; + +/** + * @public + * @enum + */ +export const ListDevicesSortBy = { + CREATED_TIME: "CREATED_TIME", + DEVICE_AGGREGATED_STATUS: "DEVICE_AGGREGATED_STATUS", + DEVICE_ID: "DEVICE_ID", + NAME: "NAME", +} as const; +/** + * @public + */ +export type ListDevicesSortBy = (typeof ListDevicesSortBy)[keyof typeof ListDevicesSortBy]; + +/** + * @public + * @enum + */ +export const SortOrder = { + ASCENDING: "ASCENDING", + DESCENDING: "DESCENDING", +} as const; +/** + * @public + */ +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; + +/** + * @public + * @enum + */ +export const NodeSignalValue = { + PAUSE: "PAUSE", + RESUME: "RESUME", +} as const; +/** + * @public + */ +export type NodeSignalValue = (typeof NodeSignalValue)[keyof typeof NodeSignalValue]; diff --git a/clients/client-panorama/src/models/errors.ts b/clients/client-panorama/src/models/errors.ts index dc5ab91492b0..efae115f5040 100644 --- a/clients/client-panorama/src/models/errors.ts +++ b/clients/client-panorama/src/models/errors.ts @@ -1,12 +1,8 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { - ConflictExceptionErrorArgument, - ValidationExceptionErrorArgument, - ValidationExceptionField, - ValidationExceptionReason, -} from "./models_0"; +import { ValidationExceptionReason } from "./enums"; +import { ConflictExceptionErrorArgument, ValidationExceptionErrorArgument, ValidationExceptionField } from "./models_0"; import { PanoramaServiceException as __BaseException } from "./PanoramaServiceException"; /** diff --git a/clients/client-panorama/src/models/models_0.ts b/clients/client-panorama/src/models/models_0.ts index 22405c3ece2b..20f24f958c09 100644 --- a/clients/client-panorama/src/models/models_0.ts +++ b/clients/client-panorama/src/models/models_0.ts @@ -1,4 +1,33 @@ // smithy-typescript generated code +import { + ApplicationInstanceHealthStatus, + ApplicationInstanceStatus, + ConnectionType, + DesiredState, + DeviceAggregatedStatus, + DeviceBrand, + DeviceConnectionStatus, + DeviceReportedStatus, + DeviceStatus, + DeviceType, + JobResourceType, + JobType, + ListDevicesSortBy, + NetworkConnectionStatus, + NodeCategory, + NodeFromTemplateJobStatus, + NodeInstanceStatus, + NodeSignalValue, + PackageImportJobStatus, + PackageImportJobType, + PackageVersionStatus, + PortType, + SortOrder, + StatusFilter, + TemplateType, + UpdateProgress, +} from "./enums"; + /** *

Details about a beta appliance software update.

* @public @@ -11,60 +40,6 @@ export interface AlternateSoftwareMetadata { Version?: string | undefined; } -/** - * @public - * @enum - */ -export const ApplicationInstanceHealthStatus = { - ERROR: "ERROR", - NOT_AVAILABLE: "NOT_AVAILABLE", - RUNNING: "RUNNING", -} as const; - -/** - * @public - */ -export type ApplicationInstanceHealthStatus = - (typeof ApplicationInstanceHealthStatus)[keyof typeof ApplicationInstanceHealthStatus]; - -/** - * @public - * @enum - */ -export const DesiredState = { - REMOVED: "REMOVED", - RUNNING: "RUNNING", - STOPPED: "STOPPED", -} as const; - -/** - * @public - */ -export type DesiredState = (typeof DesiredState)[keyof typeof DesiredState]; - -/** - * @public - * @enum - */ -export const DeviceReportedStatus = { - INSTALL_ERROR: "INSTALL_ERROR", - INSTALL_IN_PROGRESS: "INSTALL_IN_PROGRESS", - LAUNCHED: "LAUNCHED", - LAUNCH_ERROR: "LAUNCH_ERROR", - REMOVAL_FAILED: "REMOVAL_FAILED", - REMOVAL_IN_PROGRESS: "REMOVAL_IN_PROGRESS", - RUNNING: "RUNNING", - STARTING: "STARTING", - STOPPED: "STOPPED", - STOPPING: "STOPPING", - STOP_ERROR: "STOP_ERROR", -} as const; - -/** - * @public - */ -export type DeviceReportedStatus = (typeof DeviceReportedStatus)[keyof typeof DeviceReportedStatus]; - /** *

An application instance's state.

* @public @@ -95,29 +70,6 @@ export interface ReportedRuntimeContextState { DeviceReportedTime: Date | undefined; } -/** - * @public - * @enum - */ -export const ApplicationInstanceStatus = { - DEPLOYMENT_ERROR: "DEPLOYMENT_ERROR", - DEPLOYMENT_FAILED: "DEPLOYMENT_FAILED", - DEPLOYMENT_IN_PROGRESS: "DEPLOYMENT_IN_PROGRESS", - DEPLOYMENT_PENDING: "DEPLOYMENT_PENDING", - DEPLOYMENT_REQUESTED: "DEPLOYMENT_REQUESTED", - DEPLOYMENT_SUCCEEDED: "DEPLOYMENT_SUCCEEDED", - REMOVAL_FAILED: "REMOVAL_FAILED", - REMOVAL_IN_PROGRESS: "REMOVAL_IN_PROGRESS", - REMOVAL_PENDING: "REMOVAL_PENDING", - REMOVAL_REQUESTED: "REMOVAL_REQUESTED", - REMOVAL_SUCCEEDED: "REMOVAL_SUCCEEDED", -} as const; - -/** - * @public - */ -export type ApplicationInstanceStatus = (typeof ApplicationInstanceStatus)[keyof typeof ApplicationInstanceStatus]; - /** *

An application instance on a device.

* @public @@ -214,20 +166,6 @@ export interface ConflictExceptionErrorArgument { Value: string | undefined; } -/** - * @public - * @enum - */ -export const ConnectionType = { - DHCP: "DHCP", - STATIC_IP: "STATIC_IP", -} as const; - -/** - * @public - */ -export type ConnectionType = (typeof ConnectionType)[keyof typeof ConnectionType]; - /** *

Parameter overrides for an application instance. This is a JSON document that has a single key * (PayloadData) where the value is an escaped string representation of the overrides document.

@@ -407,22 +345,6 @@ export interface ValidationExceptionField { Message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - CANNOT_PARSE: "CANNOT_PARSE", - FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", - OTHER: "OTHER", - UNKNOWN_OPERATION: "UNKNOWN_OPERATION", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** *

An over-the-air update (OTA) job configuration.

* @public @@ -453,20 +375,6 @@ export interface DeviceJobConfig { OTAJobConfig?: OTAJobConfig | undefined; } -/** - * @public - * @enum - */ -export const JobType = { - OTA: "OTA", - REBOOT: "REBOOT", -} as const; - -/** - * @public - */ -export type JobType = (typeof JobType)[keyof typeof JobType]; - /** * @public */ @@ -519,19 +427,6 @@ export interface CreateJobForDevicesResponse { Jobs: Job[] | undefined; } -/** - * @public - * @enum - */ -export const JobResourceType = { - PACKAGE: "PACKAGE", -} as const; - -/** - * @public - */ -export type JobResourceType = (typeof JobResourceType)[keyof typeof JobResourceType]; - /** *

Tags for a job.

* @public @@ -550,19 +445,6 @@ export interface JobResourceTags { Tags: Record | undefined; } -/** - * @public - * @enum - */ -export const TemplateType = { - RTSP_CAMERA_STREAM: "RTSP_CAMERA_STREAM", -} as const; - -/** - * @public - */ -export type TemplateType = (typeof TemplateType)[keyof typeof TemplateType]; - /** * @public */ @@ -745,20 +627,6 @@ export interface PackageImportJobInputConfig { PackageVersionInputConfig?: PackageVersionInputConfig | undefined; } -/** - * @public - * @enum - */ -export const PackageImportJobType = { - MARKETPLACE_NODE_PACKAGE_VERSION: "MARKETPLACE_NODE_PACKAGE_VERSION", - NODE_PACKAGE_VERSION: "NODE_PACKAGE_VERSION", -} as const; - -/** - * @public - */ -export type PackageImportJobType = (typeof PackageImportJobType)[keyof typeof PackageImportJobType]; - /** *

A package version output configuration.

* @public @@ -1107,35 +975,6 @@ export interface DescribeDeviceRequest { DeviceId: string | undefined; } -/** - * @public - * @enum - */ -export const DeviceBrand = { - AWS_PANORAMA: "AWS_PANORAMA", - LENOVO: "LENOVO", -} as const; - -/** - * @public - */ -export type DeviceBrand = (typeof DeviceBrand)[keyof typeof DeviceBrand]; - -/** - * @public - * @enum - */ -export const NetworkConnectionStatus = { - CONNECTED: "CONNECTED", - CONNECTING: "CONNECTING", - NOT_CONNECTED: "NOT_CONNECTED", -} as const; - -/** - * @public - */ -export type NetworkConnectionStatus = (typeof NetworkConnectionStatus)[keyof typeof NetworkConnectionStatus]; - /** *

A device's Ethernet status.

* @public @@ -1214,64 +1053,6 @@ export interface NetworkStatus { LastUpdatedTime?: Date | undefined; } -/** - * @public - * @enum - */ -export const DeviceAggregatedStatus = { - AWAITING_PROVISIONING: "AWAITING_PROVISIONING", - DELETING: "DELETING", - ERROR: "ERROR", - FAILED: "FAILED", - LEASE_EXPIRED: "LEASE_EXPIRED", - OFFLINE: "OFFLINE", - ONLINE: "ONLINE", - PENDING: "PENDING", - REBOOTING: "REBOOTING", - UPDATE_NEEDED: "UPDATE_NEEDED", -} as const; - -/** - * @public - */ -export type DeviceAggregatedStatus = (typeof DeviceAggregatedStatus)[keyof typeof DeviceAggregatedStatus]; - -/** - * @public - * @enum - */ -export const DeviceConnectionStatus = { - AWAITING_CREDENTIALS: "AWAITING_CREDENTIALS", - ERROR: "ERROR", - NOT_AVAILABLE: "NOT_AVAILABLE", - OFFLINE: "OFFLINE", - ONLINE: "ONLINE", -} as const; - -/** - * @public - */ -export type DeviceConnectionStatus = (typeof DeviceConnectionStatus)[keyof typeof DeviceConnectionStatus]; - -/** - * @public - * @enum - */ -export const UpdateProgress = { - COMPLETED: "COMPLETED", - DOWNLOADING: "DOWNLOADING", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - PENDING: "PENDING", - REBOOTING: "REBOOTING", - VERIFYING: "VERIFYING", -} as const; - -/** - * @public - */ -export type UpdateProgress = (typeof UpdateProgress)[keyof typeof UpdateProgress]; - /** *

Returns information about the latest device job.

* @public @@ -1381,38 +1162,6 @@ export interface NetworkPayload { Ntp?: NtpPayload | undefined; } -/** - * @public - * @enum - */ -export const DeviceStatus = { - AWAITING_PROVISIONING: "AWAITING_PROVISIONING", - DELETING: "DELETING", - ERROR: "ERROR", - FAILED: "FAILED", - PENDING: "PENDING", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type DeviceStatus = (typeof DeviceStatus)[keyof typeof DeviceStatus]; - -/** - * @public - * @enum - */ -export const DeviceType = { - PANORAMA_APPLIANCE: "PANORAMA_APPLIANCE", - PANORAMA_APPLIANCE_DEVELOPER_KIT: "PANORAMA_APPLIANCE_DEVELOPER_KIT", -} as const; - -/** - * @public - */ -export type DeviceType = (typeof DeviceType)[keyof typeof DeviceType]; - /** * @public */ @@ -1625,39 +1374,6 @@ export interface DescribeNodeRequest { OwnerAccount?: string | undefined; } -/** - * @public - * @enum - */ -export const NodeCategory = { - BUSINESS_LOGIC: "BUSINESS_LOGIC", - MEDIA_SINK: "MEDIA_SINK", - MEDIA_SOURCE: "MEDIA_SOURCE", - ML_MODEL: "ML_MODEL", -} as const; - -/** - * @public - */ -export type NodeCategory = (typeof NodeCategory)[keyof typeof NodeCategory]; - -/** - * @public - * @enum - */ -export const PortType = { - BOOLEAN: "BOOLEAN", - FLOAT32: "FLOAT32", - INT32: "INT32", - MEDIA: "MEDIA", - STRING: "STRING", -} as const; - -/** - * @public - */ -export type PortType = (typeof PortType)[keyof typeof PortType]; - /** *

A node input port.

* @public @@ -1836,21 +1552,6 @@ export interface DescribeNodeFromTemplateJobRequest { JobId: string | undefined; } -/** - * @public - * @enum - */ -export const NodeFromTemplateJobStatus = { - FAILED: "FAILED", - PENDING: "PENDING", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type NodeFromTemplateJobStatus = (typeof NodeFromTemplateJobStatus)[keyof typeof NodeFromTemplateJobStatus]; - /** * @public */ @@ -2051,21 +1752,6 @@ export interface PackageImportJobOutput { OutputS3Location: OutPutS3Location | undefined; } -/** - * @public - * @enum - */ -export const PackageImportJobStatus = { - FAILED: "FAILED", - PENDING: "PENDING", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type PackageImportJobStatus = (typeof PackageImportJobStatus)[keyof typeof PackageImportJobStatus]; - /** * @public */ @@ -2166,22 +1852,6 @@ export interface DescribePackageVersionRequest { PatchVersion?: string | undefined; } -/** - * @public - * @enum - */ -export const PackageVersionStatus = { - DELETING: "DELETING", - FAILED: "FAILED", - REGISTER_COMPLETED: "REGISTER_COMPLETED", - REGISTER_PENDING: "REGISTER_PENDING", -} as const; - -/** - * @public - */ -export type PackageVersionStatus = (typeof PackageVersionStatus)[keyof typeof PackageVersionStatus]; - /** * @public */ @@ -2454,22 +2124,6 @@ export interface ListApplicationInstanceNodeInstancesRequest { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const NodeInstanceStatus = { - ERROR: "ERROR", - NOT_AVAILABLE: "NOT_AVAILABLE", - PAUSED: "PAUSED", - RUNNING: "RUNNING", -} as const; - -/** - * @public - */ -export type NodeInstanceStatus = (typeof NodeInstanceStatus)[keyof typeof NodeInstanceStatus]; - /** *

A node instance.

* @public @@ -2535,25 +2189,6 @@ export interface ListApplicationInstanceNodeInstancesResponse { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const StatusFilter = { - DEPLOYMENT_ERROR: "DEPLOYMENT_ERROR", - DEPLOYMENT_FAILED: "DEPLOYMENT_FAILED", - DEPLOYMENT_SUCCEEDED: "DEPLOYMENT_SUCCEEDED", - PROCESSING_DEPLOYMENT: "PROCESSING_DEPLOYMENT", - PROCESSING_REMOVAL: "PROCESSING_REMOVAL", - REMOVAL_FAILED: "REMOVAL_FAILED", - REMOVAL_SUCCEEDED: "REMOVAL_SUCCEEDED", -} as const; - -/** - * @public - */ -export type StatusFilter = (typeof StatusFilter)[keyof typeof StatusFilter]; - /** * @public */ @@ -2600,36 +2235,6 @@ export interface ListApplicationInstancesResponse { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const ListDevicesSortBy = { - CREATED_TIME: "CREATED_TIME", - DEVICE_AGGREGATED_STATUS: "DEVICE_AGGREGATED_STATUS", - DEVICE_ID: "DEVICE_ID", - NAME: "NAME", -} as const; - -/** - * @public - */ -export type ListDevicesSortBy = (typeof ListDevicesSortBy)[keyof typeof ListDevicesSortBy]; - -/** - * @public - * @enum - */ -export const SortOrder = { - ASCENDING: "ASCENDING", - DESCENDING: "DESCENDING", -} as const; - -/** - * @public - */ -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; - /** * @public */ @@ -3108,20 +2713,6 @@ export interface ListTagsForResourceResponse { Tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const NodeSignalValue = { - PAUSE: "PAUSE", - RESUME: "RESUME", -} as const; - -/** - * @public - */ -export type NodeSignalValue = (typeof NodeSignalValue)[keyof typeof NodeSignalValue]; - /** *

A signal to a camera node to start or stop processing video.

* @public diff --git a/clients/client-payment-cryptography-data/src/models/enums.ts b/clients/client-payment-cryptography-data/src/models/enums.ts index ae8ad7073467..12f4392bdcf5 100644 --- a/clients/client-payment-cryptography-data/src/models/enums.ts +++ b/clients/client-payment-cryptography-data/src/models/enums.ts @@ -115,6 +115,21 @@ export const EncryptionMode = { */ export type EncryptionMode = (typeof EncryptionMode)[keyof typeof EncryptionMode]; +/** + * @public + * @enum + */ +export const KeyCheckValueAlgorithm = { + ANSI_X9_24: "ANSI_X9_24", + CMAC: "CMAC", + HMAC: "HMAC", + SHA_1: "SHA_1", +} as const; +/** + * @public + */ +export type KeyCheckValueAlgorithm = (typeof KeyCheckValueAlgorithm)[keyof typeof KeyCheckValueAlgorithm]; + /** * @public * @enum @@ -252,3 +267,32 @@ export const PinBlockFormatForPinData = { * @public */ export type PinBlockFormatForPinData = (typeof PinBlockFormatForPinData)[keyof typeof PinBlockFormatForPinData]; + +/** + * @public + * @enum + */ +export const WrappedKeyMaterialFormat = { + KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM", + TR31_KEY_BLOCK: "TR31_KEY_BLOCK", + TR34_KEY_BLOCK: "TR34_KEY_BLOCK", +} as const; +/** + * @public + */ +export type WrappedKeyMaterialFormat = (typeof WrappedKeyMaterialFormat)[keyof typeof WrappedKeyMaterialFormat]; + +/** + * @public + * @enum + */ +export const VerificationFailedReason = { + INVALID_AUTH_REQUEST_CRYPTOGRAM: "INVALID_AUTH_REQUEST_CRYPTOGRAM", + INVALID_MAC: "INVALID_MAC", + INVALID_PIN: "INVALID_PIN", + INVALID_VALIDATION_DATA: "INVALID_VALIDATION_DATA", +} as const; +/** + * @public + */ +export type VerificationFailedReason = (typeof VerificationFailedReason)[keyof typeof VerificationFailedReason]; diff --git a/clients/client-payment-cryptography-data/src/models/errors.ts b/clients/client-payment-cryptography-data/src/models/errors.ts index 883de133500c..2bce031fcb1a 100644 --- a/clients/client-payment-cryptography-data/src/models/errors.ts +++ b/clients/client-payment-cryptography-data/src/models/errors.ts @@ -1,7 +1,8 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { ValidationExceptionField, VerificationFailedReason } from "./models_0"; +import { VerificationFailedReason } from "./enums"; +import { ValidationExceptionField } from "./models_0"; import { PaymentCryptographyDataServiceException as __BaseException } from "./PaymentCryptographyDataServiceException"; /** diff --git a/clients/client-payment-cryptography-data/src/models/models_0.ts b/clients/client-payment-cryptography-data/src/models/models_0.ts index 8340e2ebcb99..3af43e171e7f 100644 --- a/clients/client-payment-cryptography-data/src/models/models_0.ts +++ b/clients/client-payment-cryptography-data/src/models/models_0.ts @@ -6,6 +6,7 @@ import { EmvEncryptionMode, EmvMajorKeyDerivationMode, EncryptionMode, + KeyCheckValueAlgorithm, KeyDerivationFunction, KeyDerivationHashAlgorithm, MacAlgorithm, @@ -17,6 +18,7 @@ import { PinBlockPaddingType, SessionKeyDerivationMode, SymmetricKeyAlgorithm, + WrappedKeyMaterialFormat, } from "./enums"; /** @@ -863,22 +865,6 @@ export namespace EncryptionDecryptionAttributes { } } -/** - * @public - * @enum - */ -export const KeyCheckValueAlgorithm = { - ANSI_X9_24: "ANSI_X9_24", - CMAC: "CMAC", - HMAC: "HMAC", - SHA_1: "SHA_1", -} as const; - -/** - * @public - */ -export type KeyCheckValueAlgorithm = (typeof KeyCheckValueAlgorithm)[keyof typeof KeyCheckValueAlgorithm]; - /** *

Parameters required to establish ECDH based key exchange.

* @public @@ -2635,21 +2621,6 @@ export interface TranslateKeyMaterialInput { KeyCheckValueAlgorithm?: KeyCheckValueAlgorithm | undefined; } -/** - * @public - * @enum - */ -export const WrappedKeyMaterialFormat = { - KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM", - TR31_KEY_BLOCK: "TR31_KEY_BLOCK", - TR34_KEY_BLOCK: "TR34_KEY_BLOCK", -} as const; - -/** - * @public - */ -export type WrappedKeyMaterialFormat = (typeof WrappedKeyMaterialFormat)[keyof typeof WrappedKeyMaterialFormat]; - /** *

The parameter information of the outgoing wrapped key block.

* @public @@ -2872,22 +2843,6 @@ export interface TranslatePinDataOutput { KeyCheckValue: string | undefined; } -/** - * @public - * @enum - */ -export const VerificationFailedReason = { - INVALID_AUTH_REQUEST_CRYPTOGRAM: "INVALID_AUTH_REQUEST_CRYPTOGRAM", - INVALID_MAC: "INVALID_MAC", - INVALID_PIN: "INVALID_PIN", - INVALID_VALIDATION_DATA: "INVALID_VALIDATION_DATA", -} as const; - -/** - * @public - */ -export type VerificationFailedReason = (typeof VerificationFailedReason)[keyof typeof VerificationFailedReason]; - /** *

Parameters to derive session key for an Amex payment card.

* @public diff --git a/clients/client-payment-cryptography/src/models/enums.ts b/clients/client-payment-cryptography/src/models/enums.ts index de6ade968814..9bf29cb47f83 100644 --- a/clients/client-payment-cryptography/src/models/enums.ts +++ b/clients/client-payment-cryptography/src/models/enums.ts @@ -1,4 +1,180 @@ // smithy-typescript generated code +/** + * @public + * @enum + */ +export const DeriveKeyUsage = { + TR31_B0_BASE_DERIVATION_KEY: "TR31_B0_BASE_DERIVATION_KEY", + TR31_C0_CARD_VERIFICATION_KEY: "TR31_C0_CARD_VERIFICATION_KEY", + TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY: "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY", + TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS: "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS", + TR31_E1_EMV_MKEY_CONFIDENTIALITY: "TR31_E1_EMV_MKEY_CONFIDENTIALITY", + TR31_E2_EMV_MKEY_INTEGRITY: "TR31_E2_EMV_MKEY_INTEGRITY", + TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS: "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS", + TR31_E5_EMV_MKEY_CARD_PERSONALIZATION: "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION", + TR31_E6_EMV_MKEY_OTHER: "TR31_E6_EMV_MKEY_OTHER", + TR31_K0_KEY_ENCRYPTION_KEY: "TR31_K0_KEY_ENCRYPTION_KEY", + TR31_K1_KEY_BLOCK_PROTECTION_KEY: "TR31_K1_KEY_BLOCK_PROTECTION_KEY", + TR31_M1_ISO_9797_1_MAC_KEY: "TR31_M1_ISO_9797_1_MAC_KEY", + TR31_M3_ISO_9797_3_MAC_KEY: "TR31_M3_ISO_9797_3_MAC_KEY", + TR31_M6_ISO_9797_5_CMAC_KEY: "TR31_M6_ISO_9797_5_CMAC_KEY", + TR31_M7_HMAC_KEY: "TR31_M7_HMAC_KEY", + TR31_P0_PIN_ENCRYPTION_KEY: "TR31_P0_PIN_ENCRYPTION_KEY", + TR31_P1_PIN_GENERATION_KEY: "TR31_P1_PIN_GENERATION_KEY", + TR31_V1_IBM3624_PIN_VERIFICATION_KEY: "TR31_V1_IBM3624_PIN_VERIFICATION_KEY", + TR31_V2_VISA_PIN_VERIFICATION_KEY: "TR31_V2_VISA_PIN_VERIFICATION_KEY", +} as const; +/** + * @public + */ +export type DeriveKeyUsage = (typeof DeriveKeyUsage)[keyof typeof DeriveKeyUsage]; + +/** + * @public + * @enum + */ +export const KeyAlgorithm = { + AES_128: "AES_128", + AES_192: "AES_192", + AES_256: "AES_256", + ECC_NIST_P256: "ECC_NIST_P256", + ECC_NIST_P384: "ECC_NIST_P384", + ECC_NIST_P521: "ECC_NIST_P521", + HMAC_SHA224: "HMAC_SHA224", + HMAC_SHA256: "HMAC_SHA256", + HMAC_SHA384: "HMAC_SHA384", + HMAC_SHA512: "HMAC_SHA512", + RSA_2048: "RSA_2048", + RSA_3072: "RSA_3072", + RSA_4096: "RSA_4096", + TDES_2KEY: "TDES_2KEY", + TDES_3KEY: "TDES_3KEY", +} as const; +/** + * @public + */ +export type KeyAlgorithm = (typeof KeyAlgorithm)[keyof typeof KeyAlgorithm]; + +/** + * @public + * @enum + */ +export const KeyClass = { + ASYMMETRIC_KEY_PAIR: "ASYMMETRIC_KEY_PAIR", + PRIVATE_KEY: "PRIVATE_KEY", + PUBLIC_KEY: "PUBLIC_KEY", + SYMMETRIC_KEY: "SYMMETRIC_KEY", +} as const; +/** + * @public + */ +export type KeyClass = (typeof KeyClass)[keyof typeof KeyClass]; + +/** + * @public + * @enum + */ +export const KeyUsage = { + TR31_B0_BASE_DERIVATION_KEY: "TR31_B0_BASE_DERIVATION_KEY", + TR31_C0_CARD_VERIFICATION_KEY: "TR31_C0_CARD_VERIFICATION_KEY", + TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY: "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY", + TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION: "TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION", + TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS: "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS", + TR31_E1_EMV_MKEY_CONFIDENTIALITY: "TR31_E1_EMV_MKEY_CONFIDENTIALITY", + TR31_E2_EMV_MKEY_INTEGRITY: "TR31_E2_EMV_MKEY_INTEGRITY", + TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS: "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS", + TR31_E5_EMV_MKEY_CARD_PERSONALIZATION: "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION", + TR31_E6_EMV_MKEY_OTHER: "TR31_E6_EMV_MKEY_OTHER", + TR31_K0_KEY_ENCRYPTION_KEY: "TR31_K0_KEY_ENCRYPTION_KEY", + TR31_K1_KEY_BLOCK_PROTECTION_KEY: "TR31_K1_KEY_BLOCK_PROTECTION_KEY", + TR31_K2_TR34_ASYMMETRIC_KEY: "TR31_K2_TR34_ASYMMETRIC_KEY", + TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT: "TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT", + TR31_M1_ISO_9797_1_MAC_KEY: "TR31_M1_ISO_9797_1_MAC_KEY", + TR31_M3_ISO_9797_3_MAC_KEY: "TR31_M3_ISO_9797_3_MAC_KEY", + TR31_M6_ISO_9797_5_CMAC_KEY: "TR31_M6_ISO_9797_5_CMAC_KEY", + TR31_M7_HMAC_KEY: "TR31_M7_HMAC_KEY", + TR31_P0_PIN_ENCRYPTION_KEY: "TR31_P0_PIN_ENCRYPTION_KEY", + TR31_P1_PIN_GENERATION_KEY: "TR31_P1_PIN_GENERATION_KEY", + TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE: "TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE", + TR31_V1_IBM3624_PIN_VERIFICATION_KEY: "TR31_V1_IBM3624_PIN_VERIFICATION_KEY", + TR31_V2_VISA_PIN_VERIFICATION_KEY: "TR31_V2_VISA_PIN_VERIFICATION_KEY", +} as const; +/** + * @public + */ +export type KeyUsage = (typeof KeyUsage)[keyof typeof KeyUsage]; + +/** + * @public + * @enum + */ +export const KeyCheckValueAlgorithm = { + ANSI_X9_24: "ANSI_X9_24", + CMAC: "CMAC", + HMAC: "HMAC", + SHA_1: "SHA_1", +} as const; +/** + * @public + */ +export type KeyCheckValueAlgorithm = (typeof KeyCheckValueAlgorithm)[keyof typeof KeyCheckValueAlgorithm]; + +/** + * @public + * @enum + */ +export const KeyOrigin = { + AWS_PAYMENT_CRYPTOGRAPHY: "AWS_PAYMENT_CRYPTOGRAPHY", + EXTERNAL: "EXTERNAL", +} as const; +/** + * @public + */ +export type KeyOrigin = (typeof KeyOrigin)[keyof typeof KeyOrigin]; + +/** + * @public + * @enum + */ +export const KeyState = { + CREATE_COMPLETE: "CREATE_COMPLETE", + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + DELETE_COMPLETE: "DELETE_COMPLETE", + DELETE_PENDING: "DELETE_PENDING", +} as const; +/** + * @public + */ +export type KeyState = (typeof KeyState)[keyof typeof KeyState]; + +/** + * @public + * @enum + */ +export const MultiRegionKeyType = { + PRIMARY: "PRIMARY", + REPLICA: "REPLICA", +} as const; +/** + * @public + */ +export type MultiRegionKeyType = (typeof MultiRegionKeyType)[keyof typeof MultiRegionKeyType]; + +/** + * @public + * @enum + */ +export const KeyReplicationState = { + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SYNCHRONIZED: "SYNCHRONIZED", +} as const; +/** + * @public + */ +export type KeyReplicationState = (typeof KeyReplicationState)[keyof typeof KeyReplicationState]; + /** * @public * @enum @@ -19,6 +195,20 @@ export const SymmetricKeyAlgorithm = { */ export type SymmetricKeyAlgorithm = (typeof SymmetricKeyAlgorithm)[keyof typeof SymmetricKeyAlgorithm]; +/** + * @public + * @enum + */ +export const KeyExportability = { + EXPORTABLE: "EXPORTABLE", + NON_EXPORTABLE: "NON_EXPORTABLE", + SENSITIVE: "SENSITIVE", +} as const; +/** + * @public + */ +export type KeyExportability = (typeof KeyExportability)[keyof typeof KeyExportability]; + /** * @public * @enum @@ -45,3 +235,73 @@ export const KeyDerivationHashAlgorithm = { * @public */ export type KeyDerivationHashAlgorithm = (typeof KeyDerivationHashAlgorithm)[keyof typeof KeyDerivationHashAlgorithm]; + +/** + * @public + * @enum + */ +export const WrappingKeySpec = { + RSA_OAEP_SHA_256: "RSA_OAEP_SHA_256", + RSA_OAEP_SHA_512: "RSA_OAEP_SHA_512", +} as const; +/** + * @public + */ +export type WrappingKeySpec = (typeof WrappingKeySpec)[keyof typeof WrappingKeySpec]; + +/** + * @public + * @enum + */ +export const Tr34KeyBlockFormat = { + X9_TR34_2012: "X9_TR34_2012", +} as const; +/** + * @public + */ +export type Tr34KeyBlockFormat = (typeof Tr34KeyBlockFormat)[keyof typeof Tr34KeyBlockFormat]; + +/** + * @public + * @enum + */ +export const WrappedKeyMaterialFormat = { + KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM", + TR31_KEY_BLOCK: "TR31_KEY_BLOCK", + TR34_KEY_BLOCK: "TR34_KEY_BLOCK", +} as const; +/** + * @public + */ +export type WrappedKeyMaterialFormat = (typeof WrappedKeyMaterialFormat)[keyof typeof WrappedKeyMaterialFormat]; + +/** + * @public + * @enum + */ +export const SigningAlgorithmType = { + SHA224: "SHA224", + SHA256: "SHA256", + SHA384: "SHA384", + SHA512: "SHA512", +} as const; +/** + * @public + */ +export type SigningAlgorithmType = (typeof SigningAlgorithmType)[keyof typeof SigningAlgorithmType]; + +/** + * @public + * @enum + */ +export const KeyMaterialType = { + KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM", + ROOT_PUBLIC_KEY_CERTIFICATE: "ROOT_PUBLIC_KEY_CERTIFICATE", + TR31_KEY_BLOCK: "TR31_KEY_BLOCK", + TR34_KEY_BLOCK: "TR34_KEY_BLOCK", + TRUSTED_PUBLIC_KEY_CERTIFICATE: "TRUSTED_PUBLIC_KEY_CERTIFICATE", +} as const; +/** + * @public + */ +export type KeyMaterialType = (typeof KeyMaterialType)[keyof typeof KeyMaterialType]; diff --git a/clients/client-payment-cryptography/src/models/models_0.ts b/clients/client-payment-cryptography/src/models/models_0.ts index 3e2efc42a158..c26d06bf7536 100644 --- a/clients/client-payment-cryptography/src/models/models_0.ts +++ b/clients/client-payment-cryptography/src/models/models_0.ts @@ -1,5 +1,24 @@ // smithy-typescript generated code -import { KeyDerivationFunction, KeyDerivationHashAlgorithm, SymmetricKeyAlgorithm } from "./enums"; +import { + DeriveKeyUsage, + KeyAlgorithm, + KeyCheckValueAlgorithm, + KeyClass, + KeyDerivationFunction, + KeyDerivationHashAlgorithm, + KeyExportability, + KeyMaterialType, + KeyOrigin, + KeyReplicationState, + KeyState, + KeyUsage, + MultiRegionKeyType, + SigningAlgorithmType, + SymmetricKeyAlgorithm, + Tr34KeyBlockFormat, + WrappedKeyMaterialFormat, + WrappingKeySpec, +} from "./enums"; /** *

Input parameters for adding replication regions to a specific key.

@@ -19,80 +38,6 @@ export interface AddKeyReplicationRegionsInput { ReplicationRegions: string[] | undefined; } -/** - * @public - * @enum - */ -export const DeriveKeyUsage = { - TR31_B0_BASE_DERIVATION_KEY: "TR31_B0_BASE_DERIVATION_KEY", - TR31_C0_CARD_VERIFICATION_KEY: "TR31_C0_CARD_VERIFICATION_KEY", - TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY: "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY", - TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS: "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS", - TR31_E1_EMV_MKEY_CONFIDENTIALITY: "TR31_E1_EMV_MKEY_CONFIDENTIALITY", - TR31_E2_EMV_MKEY_INTEGRITY: "TR31_E2_EMV_MKEY_INTEGRITY", - TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS: "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS", - TR31_E5_EMV_MKEY_CARD_PERSONALIZATION: "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION", - TR31_E6_EMV_MKEY_OTHER: "TR31_E6_EMV_MKEY_OTHER", - TR31_K0_KEY_ENCRYPTION_KEY: "TR31_K0_KEY_ENCRYPTION_KEY", - TR31_K1_KEY_BLOCK_PROTECTION_KEY: "TR31_K1_KEY_BLOCK_PROTECTION_KEY", - TR31_M1_ISO_9797_1_MAC_KEY: "TR31_M1_ISO_9797_1_MAC_KEY", - TR31_M3_ISO_9797_3_MAC_KEY: "TR31_M3_ISO_9797_3_MAC_KEY", - TR31_M6_ISO_9797_5_CMAC_KEY: "TR31_M6_ISO_9797_5_CMAC_KEY", - TR31_M7_HMAC_KEY: "TR31_M7_HMAC_KEY", - TR31_P0_PIN_ENCRYPTION_KEY: "TR31_P0_PIN_ENCRYPTION_KEY", - TR31_P1_PIN_GENERATION_KEY: "TR31_P1_PIN_GENERATION_KEY", - TR31_V1_IBM3624_PIN_VERIFICATION_KEY: "TR31_V1_IBM3624_PIN_VERIFICATION_KEY", - TR31_V2_VISA_PIN_VERIFICATION_KEY: "TR31_V2_VISA_PIN_VERIFICATION_KEY", -} as const; - -/** - * @public - */ -export type DeriveKeyUsage = (typeof DeriveKeyUsage)[keyof typeof DeriveKeyUsage]; - -/** - * @public - * @enum - */ -export const KeyAlgorithm = { - AES_128: "AES_128", - AES_192: "AES_192", - AES_256: "AES_256", - ECC_NIST_P256: "ECC_NIST_P256", - ECC_NIST_P384: "ECC_NIST_P384", - ECC_NIST_P521: "ECC_NIST_P521", - HMAC_SHA224: "HMAC_SHA224", - HMAC_SHA256: "HMAC_SHA256", - HMAC_SHA384: "HMAC_SHA384", - HMAC_SHA512: "HMAC_SHA512", - RSA_2048: "RSA_2048", - RSA_3072: "RSA_3072", - RSA_4096: "RSA_4096", - TDES_2KEY: "TDES_2KEY", - TDES_3KEY: "TDES_3KEY", -} as const; - -/** - * @public - */ -export type KeyAlgorithm = (typeof KeyAlgorithm)[keyof typeof KeyAlgorithm]; - -/** - * @public - * @enum - */ -export const KeyClass = { - ASYMMETRIC_KEY_PAIR: "ASYMMETRIC_KEY_PAIR", - PRIVATE_KEY: "PRIVATE_KEY", - PUBLIC_KEY: "PUBLIC_KEY", - SYMMETRIC_KEY: "SYMMETRIC_KEY", -} as const; - -/** - * @public - */ -export type KeyClass = (typeof KeyClass)[keyof typeof KeyClass]; - /** *

The list of cryptographic operations that you can perform using the key. The modes of use are defined in section A.5.3 of the TR-31 spec.

* @public @@ -153,41 +98,6 @@ export interface KeyModesOfUse { NoRestrictions?: boolean | undefined; } -/** - * @public - * @enum - */ -export const KeyUsage = { - TR31_B0_BASE_DERIVATION_KEY: "TR31_B0_BASE_DERIVATION_KEY", - TR31_C0_CARD_VERIFICATION_KEY: "TR31_C0_CARD_VERIFICATION_KEY", - TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY: "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY", - TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION: "TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION", - TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS: "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS", - TR31_E1_EMV_MKEY_CONFIDENTIALITY: "TR31_E1_EMV_MKEY_CONFIDENTIALITY", - TR31_E2_EMV_MKEY_INTEGRITY: "TR31_E2_EMV_MKEY_INTEGRITY", - TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS: "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS", - TR31_E5_EMV_MKEY_CARD_PERSONALIZATION: "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION", - TR31_E6_EMV_MKEY_OTHER: "TR31_E6_EMV_MKEY_OTHER", - TR31_K0_KEY_ENCRYPTION_KEY: "TR31_K0_KEY_ENCRYPTION_KEY", - TR31_K1_KEY_BLOCK_PROTECTION_KEY: "TR31_K1_KEY_BLOCK_PROTECTION_KEY", - TR31_K2_TR34_ASYMMETRIC_KEY: "TR31_K2_TR34_ASYMMETRIC_KEY", - TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT: "TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT", - TR31_M1_ISO_9797_1_MAC_KEY: "TR31_M1_ISO_9797_1_MAC_KEY", - TR31_M3_ISO_9797_3_MAC_KEY: "TR31_M3_ISO_9797_3_MAC_KEY", - TR31_M6_ISO_9797_5_CMAC_KEY: "TR31_M6_ISO_9797_5_CMAC_KEY", - TR31_M7_HMAC_KEY: "TR31_M7_HMAC_KEY", - TR31_P0_PIN_ENCRYPTION_KEY: "TR31_P0_PIN_ENCRYPTION_KEY", - TR31_P1_PIN_GENERATION_KEY: "TR31_P1_PIN_GENERATION_KEY", - TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE: "TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE", - TR31_V1_IBM3624_PIN_VERIFICATION_KEY: "TR31_V1_IBM3624_PIN_VERIFICATION_KEY", - TR31_V2_VISA_PIN_VERIFICATION_KEY: "TR31_V2_VISA_PIN_VERIFICATION_KEY", -} as const; - -/** - * @public - */ -export type KeyUsage = (typeof KeyUsage)[keyof typeof KeyUsage]; - /** *

The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.

* @public @@ -218,82 +128,6 @@ export interface KeyAttributes { KeyModesOfUse: KeyModesOfUse | undefined; } -/** - * @public - * @enum - */ -export const KeyCheckValueAlgorithm = { - ANSI_X9_24: "ANSI_X9_24", - CMAC: "CMAC", - HMAC: "HMAC", - SHA_1: "SHA_1", -} as const; - -/** - * @public - */ -export type KeyCheckValueAlgorithm = (typeof KeyCheckValueAlgorithm)[keyof typeof KeyCheckValueAlgorithm]; - -/** - * @public - * @enum - */ -export const KeyOrigin = { - AWS_PAYMENT_CRYPTOGRAPHY: "AWS_PAYMENT_CRYPTOGRAPHY", - EXTERNAL: "EXTERNAL", -} as const; - -/** - * @public - */ -export type KeyOrigin = (typeof KeyOrigin)[keyof typeof KeyOrigin]; - -/** - * @public - * @enum - */ -export const KeyState = { - CREATE_COMPLETE: "CREATE_COMPLETE", - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - DELETE_COMPLETE: "DELETE_COMPLETE", - DELETE_PENDING: "DELETE_PENDING", -} as const; - -/** - * @public - */ -export type KeyState = (typeof KeyState)[keyof typeof KeyState]; - -/** - * @public - * @enum - */ -export const MultiRegionKeyType = { - PRIMARY: "PRIMARY", - REPLICA: "REPLICA", -} as const; - -/** - * @public - */ -export type MultiRegionKeyType = (typeof MultiRegionKeyType)[keyof typeof MultiRegionKeyType]; - -/** - * @public - * @enum - */ -export const KeyReplicationState = { - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SYNCHRONIZED: "SYNCHRONIZED", -} as const; - -/** - * @public - */ -export type KeyReplicationState = (typeof KeyReplicationState)[keyof typeof KeyReplicationState]; - /** *

Represents the replication status information for a key in a replication region for Multi-Region key replication.

This structure contains details about the current state of key replication, including any status messages and operational information about the replication process.

* @public @@ -859,21 +693,6 @@ export interface ExportAttributes { KeyCheckValueAlgorithm?: KeyCheckValueAlgorithm | undefined; } -/** - * @public - * @enum - */ -export const KeyExportability = { - EXPORTABLE: "EXPORTABLE", - NON_EXPORTABLE: "NON_EXPORTABLE", - SENSITIVE: "SENSITIVE", -} as const; - -/** - * @public - */ -export type KeyExportability = (typeof KeyExportability)[keyof typeof KeyExportability]; - /** *

Optional metadata for export associated with the key material. This data is signed but transmitted in clear text.

* @public @@ -958,20 +777,6 @@ export interface ExportDiffieHellmanTr31KeyBlock { KeyBlockHeaders?: KeyBlockHeaders | undefined; } -/** - * @public - * @enum - */ -export const WrappingKeySpec = { - RSA_OAEP_SHA_256: "RSA_OAEP_SHA_256", - RSA_OAEP_SHA_512: "RSA_OAEP_SHA_512", -} as const; - -/** - * @public - */ -export type WrappingKeySpec = (typeof WrappingKeySpec)[keyof typeof WrappingKeySpec]; - /** *

Parameter information for key material export using asymmetric RSA wrap and unwrap key exchange method.

* @public @@ -1014,19 +819,6 @@ export interface ExportTr31KeyBlock { KeyBlockHeaders?: KeyBlockHeaders | undefined; } -/** - * @public - * @enum - */ -export const Tr34KeyBlockFormat = { - X9_TR34_2012: "X9_TR34_2012", -} as const; - -/** - * @public - */ -export type Tr34KeyBlockFormat = (typeof Tr34KeyBlockFormat)[keyof typeof Tr34KeyBlockFormat]; - /** *

Parameter information for key material export using the asymmetric TR-34 key exchange method.

* @public @@ -1191,21 +983,6 @@ export interface ExportKeyInput { ExportAttributes?: ExportAttributes | undefined; } -/** - * @public - * @enum - */ -export const WrappedKeyMaterialFormat = { - KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM", - TR31_KEY_BLOCK: "TR31_KEY_BLOCK", - TR34_KEY_BLOCK: "TR34_KEY_BLOCK", -} as const; - -/** - * @public - */ -export type WrappedKeyMaterialFormat = (typeof WrappedKeyMaterialFormat)[keyof typeof WrappedKeyMaterialFormat]; - /** *

Parameter information for generating a WrappedKeyBlock for key exchange.

* @public @@ -1253,22 +1030,6 @@ export interface ExportKeyOutput { WrappedKey?: WrappedKey | undefined; } -/** - * @public - * @enum - */ -export const SigningAlgorithmType = { - SHA224: "SHA224", - SHA256: "SHA256", - SHA384: "SHA384", - SHA512: "SHA512", -} as const; - -/** - * @public - */ -export type SigningAlgorithmType = (typeof SigningAlgorithmType)[keyof typeof SigningAlgorithmType]; - /** * @public */ @@ -1343,23 +1104,6 @@ export interface GetKeyOutput { Key: Key | undefined; } -/** - * @public - * @enum - */ -export const KeyMaterialType = { - KEY_CRYPTOGRAM: "KEY_CRYPTOGRAM", - ROOT_PUBLIC_KEY_CERTIFICATE: "ROOT_PUBLIC_KEY_CERTIFICATE", - TR31_KEY_BLOCK: "TR31_KEY_BLOCK", - TR34_KEY_BLOCK: "TR34_KEY_BLOCK", - TRUSTED_PUBLIC_KEY_CERTIFICATE: "TRUSTED_PUBLIC_KEY_CERTIFICATE", -} as const; - -/** - * @public - */ -export type KeyMaterialType = (typeof KeyMaterialType)[keyof typeof KeyMaterialType]; - /** * @public */ diff --git a/clients/client-pinpoint-sms-voice-v2/src/index.ts b/clients/client-pinpoint-sms-voice-v2/src/index.ts index 91b67c9938bf..59c472654b86 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/index.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/index.ts @@ -13,6 +13,7 @@ export type { PinpointSMSVoiceV2ExtensionConfiguration } from "./extensionConfig export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-pinpoint-sms-voice-v2/src/models/enums.ts b/clients/client-pinpoint-sms-voice-v2/src/models/enums.ts new file mode 100644 index 000000000000..2018f16505f4 --- /dev/null +++ b/clients/client-pinpoint-sms-voice-v2/src/models/enums.ts @@ -0,0 +1,945 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const AccessDeniedExceptionReason = { + ACCOUNT_DISABLED: "ACCOUNT_DISABLED", + INSUFFICIENT_ACCOUNT_REPUTATION: "INSUFFICIENT_ACCOUNT_REPUTATION", +} as const; +/** + * @public + */ +export type AccessDeniedExceptionReason = + (typeof AccessDeniedExceptionReason)[keyof typeof AccessDeniedExceptionReason]; + +/** + * @public + * @enum + */ +export const AccountAttributeName = { + ACCOUNT_TIER: "ACCOUNT_TIER", + DEFAULT_PROTECT_CONFIGURATION_ID: "DEFAULT_PROTECT_CONFIGURATION_ID", +} as const; +/** + * @public + */ +export type AccountAttributeName = (typeof AccountAttributeName)[keyof typeof AccountAttributeName]; + +/** + * @public + * @enum + */ +export const AccountLimitName = { + CONFIGURATION_SETS: "CONFIGURATION_SETS", + OPT_OUT_LISTS: "OPT_OUT_LISTS", + PHONE_NUMBERS: "PHONE_NUMBERS", + POOLS: "POOLS", + REGISTRATIONS: "REGISTRATIONS", + REGISTRATION_ATTACHMENTS: "REGISTRATION_ATTACHMENTS", + SENDER_IDS: "SENDER_IDS", + VERIFIED_DESTINATION_NUMBERS: "VERIFIED_DESTINATION_NUMBERS", +} as const; +/** + * @public + */ +export type AccountLimitName = (typeof AccountLimitName)[keyof typeof AccountLimitName]; + +/** + * @public + * @enum + */ +export const ConflictExceptionReason = { + CREATE_REGISTRATION_VERSION_NOT_ALLOWED: "CREATE_REGISTRATION_VERSION_NOT_ALLOWED", + DELETION_PROTECTION_ENABLED: "DELETION_PROTECTION_ENABLED", + DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION: "DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION", + DESTINATION_PHONE_NUMBER_BLOCKED_BY_PROTECT_NUMBER_OVERRIDE: + "DESTINATION_PHONE_NUMBER_BLOCKED_BY_PROTECT_NUMBER_OVERRIDE", + DESTINATION_PHONE_NUMBER_NOT_VERIFIED: "DESTINATION_PHONE_NUMBER_NOT_VERIFIED", + DESTINATION_PHONE_NUMBER_OPTED_OUT: "DESTINATION_PHONE_NUMBER_OPTED_OUT", + DISASSOCIATE_REGISTRATION_NOT_ALLOWED: "DISASSOCIATE_REGISTRATION_NOT_ALLOWED", + DISCARD_REGISTRATION_VERSION_NOT_ALLOWED: "DISCARD_REGISTRATION_VERSION_NOT_ALLOWED", + EDIT_REGISTRATION_FIELD_VALUES_NOT_ALLOWED: "EDIT_REGISTRATION_FIELD_VALUES_NOT_ALLOWED", + EVENT_DESTINATION_MISMATCH: "EVENT_DESTINATION_MISMATCH", + KEYWORD_MISMATCH: "KEYWORD_MISMATCH", + LAST_PHONE_NUMBER: "LAST_PHONE_NUMBER", + MESSAGE_TYPE_MISMATCH: "MESSAGE_TYPE_MISMATCH", + NO_ORIGINATION_IDENTITIES_FOUND: "NO_ORIGINATION_IDENTITIES_FOUND", + NUMBER_CAPABILITIES_MISMATCH: "NUMBER_CAPABILITIES_MISMATCH", + OPT_OUT_LIST_MISMATCH: "OPT_OUT_LIST_MISMATCH", + PHONE_NUMBER_ASSOCIATED_TO_POOL: "PHONE_NUMBER_ASSOCIATED_TO_POOL", + PHONE_NUMBER_ASSOCIATED_TO_REGISTRATION: "PHONE_NUMBER_ASSOCIATED_TO_REGISTRATION", + PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL: "PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL", + PHONE_NUMBER_NOT_IN_REGISTRATION_REGION: "PHONE_NUMBER_NOT_IN_REGISTRATION_REGION", + PROTECT_CONFIGURATION_ASSOCIATED_WITH_CONFIGURATION_SET: "PROTECT_CONFIGURATION_ASSOCIATED_WITH_CONFIGURATION_SET", + PROTECT_CONFIGURATION_IS_ACCOUNT_DEFAULT: "PROTECT_CONFIGURATION_IS_ACCOUNT_DEFAULT", + PROTECT_CONFIGURATION_NOT_ASSOCIATED_WITH_CONFIGURATION_SET: + "PROTECT_CONFIGURATION_NOT_ASSOCIATED_WITH_CONFIGURATION_SET", + REGISTRATION_ALREADY_SUBMITTED: "REGISTRATION_ALREADY_SUBMITTED", + REGISTRATION_NOT_COMPLETE: "REGISTRATION_NOT_COMPLETE", + RESOURCE_ALREADY_EXISTS: "RESOURCE_ALREADY_EXISTS", + RESOURCE_DELETION_NOT_ALLOWED: "RESOURCE_DELETION_NOT_ALLOWED", + RESOURCE_MODIFICATION_NOT_ALLOWED: "RESOURCE_MODIFICATION_NOT_ALLOWED", + RESOURCE_NOT_ACTIVE: "RESOURCE_NOT_ACTIVE", + RESOURCE_NOT_EMPTY: "RESOURCE_NOT_EMPTY", + SELF_MANAGED_OPT_OUTS_MISMATCH: "SELF_MANAGED_OPT_OUTS_MISMATCH", + SENDER_ID_ASSOCIATED_TO_POOL: "SENDER_ID_ASSOCIATED_TO_POOL", + SUBMIT_REGISTRATION_VERSION_NOT_ALLOWED: "SUBMIT_REGISTRATION_VERSION_NOT_ALLOWED", + TWO_WAY_CONFIG_MISMATCH: "TWO_WAY_CONFIG_MISMATCH", + VERIFICATION_ALREADY_COMPLETE: "VERIFICATION_ALREADY_COMPLETE", + VERIFICATION_CODE_EXPIRED: "VERIFICATION_CODE_EXPIRED", +} as const; +/** + * @public + */ +export type ConflictExceptionReason = (typeof ConflictExceptionReason)[keyof typeof ConflictExceptionReason]; + +/** + * @public + * @enum + */ +export const ResourceType = { + ACCOUNT: "account", + CONFIGURATION_SET: "configuration-set", + EVENT_DESTINATION: "event-destination", + KEYWORD: "keyword", + MESSAGE: "message", + MESSAGE_TEMPLATE: "message-template", + OPTED_OUT_NUMBER: "opted-out-number", + OPT_OUT_LIST: "opt-out-list", + PHONE_NUMBER: "phone-number", + POLICY: "policy", + POOL: "pool", + PROTECT_CONFIGURATION: "protect-configuration", + REGISTRATION: "registration", + REGISTRATION_ATTACHMENT: "registration-attachment", + SENDER_ID: "sender-id", + VERIFIED_DESTINATION_NUMBER: "verified-destination-number", +} as const; +/** + * @public + */ +export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; + +/** + * @public + * @enum + */ +export const ServiceQuotaExceededExceptionReason = { + ASSOCIATIONS_PER_REGISTRATION: "ASSOCIATIONS_PER_REGISTRATION", + CONFIGURATION_SETS_PER_ACCOUNT: "CONFIGURATION_SETS_PER_ACCOUNT", + DAILY_DESTINATION_CALL_LIMIT: "DAILY_DESTINATION_CALL_LIMIT", + EVENT_DESTINATIONS_PER_CONFIGURATION_SET: "EVENT_DESTINATIONS_PER_CONFIGURATION_SET", + KEYWORDS_PER_PHONE_NUMBER: "KEYWORDS_PER_PHONE_NUMBER", + KEYWORDS_PER_POOL: "KEYWORDS_PER_POOL", + MONTHLY_SPEND_LIMIT_REACHED_FOR_MEDIA: "MONTHLY_SPEND_LIMIT_REACHED_FOR_MEDIA", + MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT: "MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT", + MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE: "MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE", + OPT_OUT_LISTS_PER_ACCOUNT: "OPT_OUT_LISTS_PER_ACCOUNT", + ORIGINATION_IDENTITIES_PER_POOL: "ORIGINATION_IDENTITIES_PER_POOL", + PHONE_NUMBERS_PER_ACCOUNT: "PHONE_NUMBERS_PER_ACCOUNT", + PHONE_NUMBERS_PER_REGISTRATION: "PHONE_NUMBERS_PER_REGISTRATION", + POOLS_PER_ACCOUNT: "POOLS_PER_ACCOUNT", + PROTECT_CONFIGURATIONS_PER_ACCOUNT: "PROTECT_CONFIGURATIONS_PER_ACCOUNT", + REGISTRATIONS_PER_ACCOUNT: "REGISTRATIONS_PER_ACCOUNT", + REGISTRATION_ATTACHMENTS_CREATED_PER_DAY: "REGISTRATION_ATTACHMENTS_CREATED_PER_DAY", + REGISTRATION_ATTACHMENTS_PER_ACCOUNT: "REGISTRATION_ATTACHMENTS_PER_ACCOUNT", + REGISTRATION_VERSIONS_CREATED_PER_DAY: "REGISTRATION_VERSIONS_CREATED_PER_DAY", + SENDER_IDS_PER_ACCOUNT: "SENDER_IDS_PER_ACCOUNT", + TAGS_PER_RESOURCE: "TAGS_PER_RESOURCE", + VERIFICATION_ATTEMPTS_PER_DAY: "VERIFICATION_ATTEMPTS_PER_DAY", + VERIFIED_DESTINATION_NUMBERS_PER_ACCOUNT: "VERIFIED_DESTINATION_NUMBERS_PER_ACCOUNT", +} as const; +/** + * @public + */ +export type ServiceQuotaExceededExceptionReason = + (typeof ServiceQuotaExceededExceptionReason)[keyof typeof ServiceQuotaExceededExceptionReason]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + ATTACHMENT_TYPE_NOT_SUPPORTED: "ATTACHMENT_TYPE_NOT_SUPPORTED", + CANNOT_ADD_OPTED_OUT_NUMBER: "CANNOT_ADD_OPTED_OUT_NUMBER", + CANNOT_PARSE: "CANNOT_PARSE", + COUNTRY_CODE_MISMATCH: "COUNTRY_CODE_MISMATCH", + DESTINATION_COUNTRY_BLOCKED: "DESTINATION_COUNTRY_BLOCKED", + FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", + INTERNATIONAL_SENDING_NOT_SUPPORTED: "INTERNATIONAL_SENDING_NOT_SUPPORTED", + INVALID_ARN: "INVALID_ARN", + INVALID_FILTER_VALUES: "INVALID_FILTER_VALUES", + INVALID_IDENTITY_FOR_DESTINATION_COUNTRY: "INVALID_IDENTITY_FOR_DESTINATION_COUNTRY", + INVALID_NEXT_TOKEN: "INVALID_NEXT_TOKEN", + INVALID_PARAMETER: "INVALID_PARAMETER", + INVALID_REGISTRATION_ASSOCIATION: "INVALID_REGISTRATION_ASSOCIATION", + INVALID_REQUEST: "INVALID_REQUEST", + MAXIMUM_SIZE_EXCEEDED: "MAXIMUM_SIZE_EXCEEDED", + MEDIA_TYPE_NOT_SUPPORTED: "MEDIA_TYPE_NOT_SUPPORTED", + MISSING_PARAMETER: "MISSING_PARAMETER", + OTHER: "OTHER", + PARAMETERS_CANNOT_BE_USED_TOGETHER: "PARAMETERS_CANNOT_BE_USED_TOGETHER", + PHONE_NUMBER_CANNOT_BE_OPTED_IN: "PHONE_NUMBER_CANNOT_BE_OPTED_IN", + PHONE_NUMBER_CANNOT_BE_RELEASED: "PHONE_NUMBER_CANNOT_BE_RELEASED", + PRICE_OVER_THRESHOLD: "PRICE_OVER_THRESHOLD", + REGISTRATION_FIELD_CANNOT_BE_DELETED: "REGISTRATION_FIELD_CANNOT_BE_DELETED", + REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT: "REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT", + RESOURCE_NOT_ACCESSIBLE: "RESOURCE_NOT_ACCESSIBLE", + SENDER_ID_NOT_REGISTERED: "SENDER_ID_NOT_REGISTERED", + SENDER_ID_NOT_SUPPORTED: "SENDER_ID_NOT_SUPPORTED", + SENDER_ID_REQUIRES_REGISTRATION: "SENDER_ID_REQUIRES_REGISTRATION", + TWO_WAY_CHANNEL_NOT_PRESENT: "TWO_WAY_CHANNEL_NOT_PRESENT", + TWO_WAY_NOT_ENABLED: "TWO_WAY_NOT_ENABLED", + TWO_WAY_NOT_SUPPORTED_IN_COUNTRY: "TWO_WAY_NOT_SUPPORTED_IN_COUNTRY", + TWO_WAY_NOT_SUPPORTED_IN_REGION: "TWO_WAY_NOT_SUPPORTED_IN_REGION", + TWO_WAY_TOPIC_NOT_PRESENT: "TWO_WAY_TOPIC_NOT_PRESENT", + UNKNOWN_OPERATION: "UNKNOWN_OPERATION", + UNKNOWN_REGISTRATION_FIELD: "UNKNOWN_REGISTRATION_FIELD", + UNKNOWN_REGISTRATION_SECTION: "UNKNOWN_REGISTRATION_SECTION", + UNKNOWN_REGISTRATION_TYPE: "UNKNOWN_REGISTRATION_TYPE", + UNKNOWN_REGISTRATION_VERSION: "UNKNOWN_REGISTRATION_VERSION", + UNSPECIFIED_PARAMETER_NOT_SUPPORTED: "UNSPECIFIED_PARAMETER_NOT_SUPPORTED", + VERIFICATION_CODE_MISMATCH: "VERIFICATION_CODE_MISMATCH", + VOICE_CAPABILITY_NOT_AVAILABLE: "VOICE_CAPABILITY_NOT_AVAILABLE", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const AttachmentStatus = { + DELETED: "DELETED", + UPLOAD_COMPLETE: "UPLOAD_COMPLETE", + UPLOAD_FAILED: "UPLOAD_FAILED", + UPLOAD_IN_PROGRESS: "UPLOAD_IN_PROGRESS", +} as const; +/** + * @public + */ +export type AttachmentStatus = (typeof AttachmentStatus)[keyof typeof AttachmentStatus]; + +/** + * @public + * @enum + */ +export const AttachmentUploadErrorReason = { + INTERNAL_ERROR: "INTERNAL_ERROR", +} as const; +/** + * @public + */ +export type AttachmentUploadErrorReason = + (typeof AttachmentUploadErrorReason)[keyof typeof AttachmentUploadErrorReason]; + +/** + * @public + * @enum + */ +export const PhoneNumberType = { + INVALID: "INVALID", + LANDLINE: "LANDLINE", + MOBILE: "MOBILE", + OTHER: "OTHER", +} as const; +/** + * @public + */ +export type PhoneNumberType = (typeof PhoneNumberType)[keyof typeof PhoneNumberType]; + +/** + * @public + * @enum + */ +export const ConfigurationSetFilterName = { + DEFAULT_MESSAGE_FEEDBACK_ENABLED: "default-message-feedback-enabled", + DEFAULT_MESSAGE_TYPE: "default-message-type", + DEFAULT_SENDER_ID: "default-sender-id", + EVENT_DESTINATION_NAME: "event-destination-name", + MATCHING_EVENT_TYPES: "matching-event-types", + PROTECT_CONFIGURATION_ID: "protect-configuration-id", +} as const; +/** + * @public + */ +export type ConfigurationSetFilterName = (typeof ConfigurationSetFilterName)[keyof typeof ConfigurationSetFilterName]; + +/** + * @public + * @enum + */ +export const MessageType = { + PROMOTIONAL: "PROMOTIONAL", + TRANSACTIONAL: "TRANSACTIONAL", +} as const; +/** + * @public + */ +export type MessageType = (typeof MessageType)[keyof typeof MessageType]; + +/** + * @public + * @enum + */ +export const EventType = { + ALL: "ALL", + MEDIA_ALL: "MEDIA_ALL", + MEDIA_BLOCKED: "MEDIA_BLOCKED", + MEDIA_CARRIER_BLOCKED: "MEDIA_CARRIER_BLOCKED", + MEDIA_CARRIER_UNREACHABLE: "MEDIA_CARRIER_UNREACHABLE", + MEDIA_DELIVERED: "MEDIA_DELIVERED", + MEDIA_FILE_INACCESSIBLE: "MEDIA_FILE_INACCESSIBLE", + MEDIA_FILE_SIZE_EXCEEDED: "MEDIA_FILE_SIZE_EXCEEDED", + MEDIA_FILE_TYPE_UNSUPPORTED: "MEDIA_FILE_TYPE_UNSUPPORTED", + MEDIA_INVALID: "MEDIA_INVALID", + MEDIA_INVALID_MESSAGE: "MEDIA_INVALID_MESSAGE", + MEDIA_PENDING: "MEDIA_PENDING", + MEDIA_QUEUED: "MEDIA_QUEUED", + MEDIA_SPAM: "MEDIA_SPAM", + MEDIA_SUCCESSFUL: "MEDIA_SUCCESSFUL", + MEDIA_TTL_EXPIRED: "MEDIA_TTL_EXPIRED", + MEDIA_UNKNOWN: "MEDIA_UNKNOWN", + MEDIA_UNREACHABLE: "MEDIA_UNREACHABLE", + TEXT_ALL: "TEXT_ALL", + TEXT_BLOCKED: "TEXT_BLOCKED", + TEXT_CARRIER_BLOCKED: "TEXT_CARRIER_BLOCKED", + TEXT_CARRIER_UNREACHABLE: "TEXT_CARRIER_UNREACHABLE", + TEXT_DELIVERED: "TEXT_DELIVERED", + TEXT_INVALID: "TEXT_INVALID", + TEXT_INVALID_MESSAGE: "TEXT_INVALID_MESSAGE", + TEXT_PENDING: "TEXT_PENDING", + TEXT_PROTECT_BLOCKED: "TEXT_PROTECT_BLOCKED", + TEXT_QUEUED: "TEXT_QUEUED", + TEXT_SENT: "TEXT_SENT", + TEXT_SPAM: "TEXT_SPAM", + TEXT_SUCCESSFUL: "TEXT_SUCCESSFUL", + TEXT_TTL_EXPIRED: "TEXT_TTL_EXPIRED", + TEXT_UNKNOWN: "TEXT_UNKNOWN", + TEXT_UNREACHABLE: "TEXT_UNREACHABLE", + VOICE_ALL: "VOICE_ALL", + VOICE_ANSWERED: "VOICE_ANSWERED", + VOICE_BUSY: "VOICE_BUSY", + VOICE_COMPLETED: "VOICE_COMPLETED", + VOICE_FAILED: "VOICE_FAILED", + VOICE_INITIATED: "VOICE_INITIATED", + VOICE_NO_ANSWER: "VOICE_NO_ANSWER", + VOICE_RINGING: "VOICE_RINGING", + VOICE_TTL_EXPIRED: "VOICE_TTL_EXPIRED", +} as const; +/** + * @public + */ +export type EventType = (typeof EventType)[keyof typeof EventType]; + +/** + * @public + * @enum + */ +export const PoolStatus = { + ACTIVE: "ACTIVE", + CREATING: "CREATING", + DELETING: "DELETING", +} as const; +/** + * @public + */ +export type PoolStatus = (typeof PoolStatus)[keyof typeof PoolStatus]; + +/** + * @public + * @enum + */ +export const RegistrationStatus = { + CLOSED: "CLOSED", + COMPLETE: "COMPLETE", + CREATED: "CREATED", + DELETED: "DELETED", + PROVISIONING: "PROVISIONING", + REQUIRES_AUTHENTICATION: "REQUIRES_AUTHENTICATION", + REQUIRES_UPDATES: "REQUIRES_UPDATES", + REVIEWING: "REVIEWING", + SUBMITTED: "SUBMITTED", +} as const; +/** + * @public + */ +export type RegistrationStatus = (typeof RegistrationStatus)[keyof typeof RegistrationStatus]; + +/** + * @public + * @enum + */ +export const RegistrationVersionStatus = { + APPROVED: "APPROVED", + ARCHIVED: "ARCHIVED", + DENIED: "DENIED", + DISCARDED: "DISCARDED", + DRAFT: "DRAFT", + REQUIRES_AUTHENTICATION: "REQUIRES_AUTHENTICATION", + REVIEWING: "REVIEWING", + REVOKED: "REVOKED", + SUBMITTED: "SUBMITTED", +} as const; +/** + * @public + */ +export type RegistrationVersionStatus = (typeof RegistrationVersionStatus)[keyof typeof RegistrationVersionStatus]; + +/** + * @public + * @enum + */ +export const VerificationStatus = { + PENDING: "PENDING", + VERIFIED: "VERIFIED", +} as const; +/** + * @public + */ +export type VerificationStatus = (typeof VerificationStatus)[keyof typeof VerificationStatus]; + +/** + * @public + * @enum + */ +export const KeywordAction = { + AUTOMATIC_RESPONSE: "AUTOMATIC_RESPONSE", + OPT_IN: "OPT_IN", + OPT_OUT: "OPT_OUT", +} as const; +/** + * @public + */ +export type KeywordAction = (typeof KeywordAction)[keyof typeof KeywordAction]; + +/** + * @public + * @enum + */ +export const ProtectConfigurationRuleOverrideAction = { + ALLOW: "ALLOW", + BLOCK: "BLOCK", +} as const; +/** + * @public + */ +export type ProtectConfigurationRuleOverrideAction = + (typeof ProtectConfigurationRuleOverrideAction)[keyof typeof ProtectConfigurationRuleOverrideAction]; + +/** + * @public + * @enum + */ +export const KeywordFilterName = { + KEYWORD_ACTION: "keyword-action", +} as const; +/** + * @public + */ +export type KeywordFilterName = (typeof KeywordFilterName)[keyof typeof KeywordFilterName]; + +/** + * @public + * @enum + */ +export const OptedOutFilterName = { + END_USER_OPTED_OUT: "end-user-opted-out", +} as const; +/** + * @public + */ +export type OptedOutFilterName = (typeof OptedOutFilterName)[keyof typeof OptedOutFilterName]; + +/** + * @public + * @enum + */ +export const Owner = { + SELF: "SELF", + SHARED: "SHARED", +} as const; +/** + * @public + */ +export type Owner = (typeof Owner)[keyof typeof Owner]; + +/** + * @public + * @enum + */ +export const PhoneNumberFilterName = { + DELETION_PROTECTION_ENABLED: "deletion-protection-enabled", + ISO_COUNTRY_CODE: "iso-country-code", + MESSAGE_TYPE: "message-type", + NUMBER_CAPABILITY: "number-capability", + NUMBER_TYPE: "number-type", + OPT_OUT_LIST_NAME: "opt-out-list-name", + SELF_MANAGED_OPT_OUTS_ENABLED: "self-managed-opt-outs-enabled", + STATUS: "status", + TWO_WAY_CHANNEL_ARN: "two-way-channel-arn", + TWO_WAY_ENABLED: "two-way-enabled", +} as const; +/** + * @public + */ +export type PhoneNumberFilterName = (typeof PhoneNumberFilterName)[keyof typeof PhoneNumberFilterName]; + +/** + * @public + * @enum + */ +export const NumberCapability = { + MMS: "MMS", + SMS: "SMS", + VOICE: "VOICE", +} as const; +/** + * @public + */ +export type NumberCapability = (typeof NumberCapability)[keyof typeof NumberCapability]; + +/** + * @public + * @enum + */ +export const NumberType = { + LONG_CODE: "LONG_CODE", + SHORT_CODE: "SHORT_CODE", + SIMULATOR: "SIMULATOR", + TEN_DLC: "TEN_DLC", + TOLL_FREE: "TOLL_FREE", +} as const; +/** + * @public + */ +export type NumberType = (typeof NumberType)[keyof typeof NumberType]; + +/** + * @public + * @enum + */ +export const NumberStatus = { + ACTIVE: "ACTIVE", + ASSOCIATING: "ASSOCIATING", + DELETED: "DELETED", + DISASSOCIATING: "DISASSOCIATING", + PENDING: "PENDING", +} as const; +/** + * @public + */ +export type NumberStatus = (typeof NumberStatus)[keyof typeof NumberStatus]; + +/** + * @public + * @enum + */ +export const PoolFilterName = { + DELETION_PROTECTION_ENABLED: "deletion-protection-enabled", + MESSAGE_TYPE: "message-type", + OPT_OUT_LIST_NAME: "opt-out-list-name", + SELF_MANAGED_OPT_OUTS_ENABLED: "self-managed-opt-outs-enabled", + SHARED_ROUTES_ENABLED: "shared-routes-enabled", + STATUS: "status", + TWO_WAY_CHANNEL_ARN: "two-way-channel-arn", + TWO_WAY_ENABLED: "two-way-enabled", +} as const; +/** + * @public + */ +export type PoolFilterName = (typeof PoolFilterName)[keyof typeof PoolFilterName]; + +/** + * @public + * @enum + */ +export const ProtectConfigurationFilterName = { + ACCOUNT_DEFAULT: "account-default", + DELETION_PROTECTION_ENABLED: "deletion-protection-enabled", +} as const; +/** + * @public + */ +export type ProtectConfigurationFilterName = + (typeof ProtectConfigurationFilterName)[keyof typeof ProtectConfigurationFilterName]; + +/** + * @public + * @enum + */ +export const RegistrationAttachmentFilterName = { + ATTACHMENT_STATUS: "attachment-status", +} as const; +/** + * @public + */ +export type RegistrationAttachmentFilterName = + (typeof RegistrationAttachmentFilterName)[keyof typeof RegistrationAttachmentFilterName]; + +/** + * @public + * @enum + */ +export const FieldRequirement = { + CONDITIONAL: "CONDITIONAL", + OPTIONAL: "OPTIONAL", + REQUIRED: "REQUIRED", +} as const; +/** + * @public + */ +export type FieldRequirement = (typeof FieldRequirement)[keyof typeof FieldRequirement]; + +/** + * @public + * @enum + */ +export const FieldType = { + ATTACHMENT: "ATTACHMENT", + SELECT: "SELECT", + TEXT: "TEXT", +} as const; +/** + * @public + */ +export type FieldType = (typeof FieldType)[keyof typeof FieldType]; + +/** + * @public + * @enum + */ +export const RegistrationFilterName = { + REGISTRATION_STATUS: "registration-status", + REGISTRATION_TYPE: "registration-type", +} as const; +/** + * @public + */ +export type RegistrationFilterName = (typeof RegistrationFilterName)[keyof typeof RegistrationFilterName]; + +/** + * @public + * @enum + */ +export const RegistrationTypeFilterName = { + SUPPORTED_ASSOCIATION_ISO_COUNTRY_CODE: "supported-association-iso-country-code", + SUPPORTED_ASSOCIATION_RESOURCE_TYPE: "supported-association-resource-type", +} as const; +/** + * @public + */ +export type RegistrationTypeFilterName = (typeof RegistrationTypeFilterName)[keyof typeof RegistrationTypeFilterName]; + +/** + * @public + * @enum + */ +export const RegistrationAssociationBehavior = { + ASSOCIATE_AFTER_COMPLETE: "ASSOCIATE_AFTER_COMPLETE", + ASSOCIATE_BEFORE_SUBMIT: "ASSOCIATE_BEFORE_SUBMIT", + ASSOCIATE_ON_APPROVAL: "ASSOCIATE_ON_APPROVAL", +} as const; +/** + * @public + */ +export type RegistrationAssociationBehavior = + (typeof RegistrationAssociationBehavior)[keyof typeof RegistrationAssociationBehavior]; + +/** + * @public + * @enum + */ +export const RegistrationDisassociationBehavior = { + DELETE_REGISTRATION_DISASSOCIATES: "DELETE_REGISTRATION_DISASSOCIATES", + DISASSOCIATE_ALL_ALLOWS_DELETE_REGISTRATION: "DISASSOCIATE_ALL_ALLOWS_DELETE_REGISTRATION", + DISASSOCIATE_ALL_CLOSES_REGISTRATION: "DISASSOCIATE_ALL_CLOSES_REGISTRATION", +} as const; +/** + * @public + */ +export type RegistrationDisassociationBehavior = + (typeof RegistrationDisassociationBehavior)[keyof typeof RegistrationDisassociationBehavior]; + +/** + * @public + * @enum + */ +export const RegistrationVersionFilterName = { + REGISTRATION_VERSION_STATUS: "registration-version-status", +} as const; +/** + * @public + */ +export type RegistrationVersionFilterName = + (typeof RegistrationVersionFilterName)[keyof typeof RegistrationVersionFilterName]; + +/** + * @public + * @enum + */ +export const SenderIdFilterName = { + DELETION_PROTECTION_ENABLED: "deletion-protection-enabled", + ISO_COUNTRY_CODE: "iso-country-code", + MESSAGE_TYPE: "message-type", + REGISTERED: "registered", + SENDER_ID: "sender-id", +} as const; +/** + * @public + */ +export type SenderIdFilterName = (typeof SenderIdFilterName)[keyof typeof SenderIdFilterName]; + +/** + * @public + * @enum + */ +export const SpendLimitName = { + MEDIA_MESSAGE_MONTHLY_SPEND_LIMIT: "MEDIA_MESSAGE_MONTHLY_SPEND_LIMIT", + TEXT_MESSAGE_MONTHLY_SPEND_LIMIT: "TEXT_MESSAGE_MONTHLY_SPEND_LIMIT", + VOICE_MESSAGE_MONTHLY_SPEND_LIMIT: "VOICE_MESSAGE_MONTHLY_SPEND_LIMIT", +} as const; +/** + * @public + */ +export type SpendLimitName = (typeof SpendLimitName)[keyof typeof SpendLimitName]; + +/** + * @public + * @enum + */ +export const VerifiedDestinationNumberFilterName = { + STATUS: "status", +} as const; +/** + * @public + */ +export type VerifiedDestinationNumberFilterName = + (typeof VerifiedDestinationNumberFilterName)[keyof typeof VerifiedDestinationNumberFilterName]; + +/** + * @public + * @enum + */ +export const DestinationCountryParameterKey = { + IN_ENTITY_ID: "IN_ENTITY_ID", + IN_TEMPLATE_ID: "IN_TEMPLATE_ID", +} as const; +/** + * @public + */ +export type DestinationCountryParameterKey = + (typeof DestinationCountryParameterKey)[keyof typeof DestinationCountryParameterKey]; + +/** + * @public + * @enum + */ +export const ProtectStatus = { + ALLOW: "ALLOW", + BLOCK: "BLOCK", + FILTER: "FILTER", + MONITOR: "MONITOR", +} as const; +/** + * @public + */ +export type ProtectStatus = (typeof ProtectStatus)[keyof typeof ProtectStatus]; + +/** + * @public + * @enum + */ +export const LanguageCode = { + DE_DE: "DE_DE", + EN_GB: "EN_GB", + EN_US: "EN_US", + ES_419: "ES_419", + ES_ES: "ES_ES", + FR_CA: "FR_CA", + FR_FR: "FR_FR", + IT_IT: "IT_IT", + JA_JP: "JA_JP", + KO_KR: "KO_KR", + PT_BR: "PT_BR", + ZH_CN: "ZH_CN", + ZH_TW: "ZH_TW", +} as const; +/** + * @public + */ +export type LanguageCode = (typeof LanguageCode)[keyof typeof LanguageCode]; + +/** + * @public + * @enum + */ +export const PoolOriginationIdentitiesFilterName = { + ISO_COUNTRY_CODE: "iso-country-code", + NUMBER_CAPABILITY: "number-capability", +} as const; +/** + * @public + */ +export type PoolOriginationIdentitiesFilterName = + (typeof PoolOriginationIdentitiesFilterName)[keyof typeof PoolOriginationIdentitiesFilterName]; + +/** + * @public + * @enum + */ +export const ProtectConfigurationRuleSetNumberOverrideFilterName = { + ACTION: "action", + CREATED_AFTER: "created-after", + CREATED_BEFORE: "created-before", + DESTINATION_PHONE_NUMBER_BEGINS_WITH: "destination-phone-number-begins-with", + EXPIRES_AFTER: "expires-after", + EXPIRES_BEFORE: "expires-before", + ISO_COUNTRY_CODE: "iso-country-code", +} as const; +/** + * @public + */ +export type ProtectConfigurationRuleSetNumberOverrideFilterName = + (typeof ProtectConfigurationRuleSetNumberOverrideFilterName)[keyof typeof ProtectConfigurationRuleSetNumberOverrideFilterName]; + +/** + * @public + * @enum + */ +export const RegistrationAssociationFilterName = { + ISO_COUNTRY_CODE: "iso-country-code", + RESOURCE_TYPE: "resource-type", +} as const; +/** + * @public + */ +export type RegistrationAssociationFilterName = + (typeof RegistrationAssociationFilterName)[keyof typeof RegistrationAssociationFilterName]; + +/** + * @public + * @enum + */ +export const MessageFeedbackStatus = { + FAILED: "FAILED", + RECEIVED: "RECEIVED", +} as const; +/** + * @public + */ +export type MessageFeedbackStatus = (typeof MessageFeedbackStatus)[keyof typeof MessageFeedbackStatus]; + +/** + * @public + * @enum + */ +export const RequestableNumberType = { + LONG_CODE: "LONG_CODE", + SIMULATOR: "SIMULATOR", + TEN_DLC: "TEN_DLC", + TOLL_FREE: "TOLL_FREE", +} as const; +/** + * @public + */ +export type RequestableNumberType = (typeof RequestableNumberType)[keyof typeof RequestableNumberType]; + +/** + * @public + * @enum + */ +export const VerificationChannel = { + TEXT: "TEXT", + VOICE: "VOICE", +} as const; +/** + * @public + */ +export type VerificationChannel = (typeof VerificationChannel)[keyof typeof VerificationChannel]; + +/** + * @public + * @enum + */ +export const VoiceMessageBodyTextType = { + SSML: "SSML", + TEXT: "TEXT", +} as const; +/** + * @public + */ +export type VoiceMessageBodyTextType = (typeof VoiceMessageBodyTextType)[keyof typeof VoiceMessageBodyTextType]; + +/** + * @public + * @enum + */ +export const VoiceId = { + AMY: "AMY", + ASTRID: "ASTRID", + BIANCA: "BIANCA", + BRIAN: "BRIAN", + CAMILA: "CAMILA", + CARLA: "CARLA", + CARMEN: "CARMEN", + CELINE: "CELINE", + CHANTAL: "CHANTAL", + CONCHITA: "CONCHITA", + CRISTIANO: "CRISTIANO", + DORA: "DORA", + EMMA: "EMMA", + ENRIQUE: "ENRIQUE", + EWA: "EWA", + FILIZ: "FILIZ", + GERAINT: "GERAINT", + GIORGIO: "GIORGIO", + GWYNETH: "GWYNETH", + HANS: "HANS", + INES: "INES", + IVY: "IVY", + JACEK: "JACEK", + JAN: "JAN", + JOANNA: "JOANNA", + JOEY: "JOEY", + JUSTIN: "JUSTIN", + KARL: "KARL", + KENDRA: "KENDRA", + KIMBERLY: "KIMBERLY", + LEA: "LEA", + LIV: "LIV", + LOTTE: "LOTTE", + LUCIA: "LUCIA", + LUPE: "LUPE", + MADS: "MADS", + MAJA: "MAJA", + MARLENE: "MARLENE", + MATHIEU: "MATHIEU", + MATTHEW: "MATTHEW", + MAXIM: "MAXIM", + MIA: "MIA", + MIGUEL: "MIGUEL", + MIZUKI: "MIZUKI", + NAJA: "NAJA", + NICOLE: "NICOLE", + PENELOPE: "PENELOPE", + RAVEENA: "RAVEENA", + RICARDO: "RICARDO", + RUBEN: "RUBEN", + RUSSELL: "RUSSELL", + SALLI: "SALLI", + SEOYEON: "SEOYEON", + TAKUMI: "TAKUMI", + TATYANA: "TATYANA", + VICKI: "VICKI", + VITORIA: "VITORIA", + ZEINA: "ZEINA", + ZHIYU: "ZHIYU", +} as const; +/** + * @public + */ +export type VoiceId = (typeof VoiceId)[keyof typeof VoiceId]; diff --git a/clients/client-pinpoint-sms-voice-v2/src/models/errors.ts b/clients/client-pinpoint-sms-voice-v2/src/models/errors.ts index 7f517f6312f5..3254df28ae95 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/models/errors.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/models/errors.ts @@ -6,9 +6,9 @@ import { ConflictExceptionReason, ResourceType, ServiceQuotaExceededExceptionReason, - ValidationExceptionField, ValidationExceptionReason, -} from "./models_0"; +} from "./enums"; +import { ValidationExceptionField } from "./models_0"; import { PinpointSMSVoiceV2ServiceException as __BaseException } from "./PinpointSMSVoiceV2ServiceException"; /** diff --git a/clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts b/clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts index c9d6f7e5dbe6..097f505c9c4e 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts @@ -1,32 +1,51 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const AccessDeniedExceptionReason = { - ACCOUNT_DISABLED: "ACCOUNT_DISABLED", - INSUFFICIENT_ACCOUNT_REPUTATION: "INSUFFICIENT_ACCOUNT_REPUTATION", -} as const; - -/** - * @public - */ -export type AccessDeniedExceptionReason = - (typeof AccessDeniedExceptionReason)[keyof typeof AccessDeniedExceptionReason]; - -/** - * @public - * @enum - */ -export const AccountAttributeName = { - ACCOUNT_TIER: "ACCOUNT_TIER", - DEFAULT_PROTECT_CONFIGURATION_ID: "DEFAULT_PROTECT_CONFIGURATION_ID", -} as const; - -/** - * @public - */ -export type AccountAttributeName = (typeof AccountAttributeName)[keyof typeof AccountAttributeName]; +import { + AccountAttributeName, + AccountLimitName, + AttachmentStatus, + AttachmentUploadErrorReason, + ConfigurationSetFilterName, + DestinationCountryParameterKey, + EventType, + FieldRequirement, + FieldType, + KeywordAction, + KeywordFilterName, + LanguageCode, + MessageFeedbackStatus, + MessageType, + NumberCapability, + NumberStatus, + NumberType, + OptedOutFilterName, + Owner, + PhoneNumberFilterName, + PhoneNumberType, + PoolFilterName, + PoolOriginationIdentitiesFilterName, + PoolStatus, + ProtectConfigurationFilterName, + ProtectConfigurationRuleOverrideAction, + ProtectConfigurationRuleSetNumberOverrideFilterName, + ProtectStatus, + RegistrationAssociationBehavior, + RegistrationAssociationFilterName, + RegistrationAttachmentFilterName, + RegistrationDisassociationBehavior, + RegistrationFilterName, + RegistrationStatus, + RegistrationTypeFilterName, + RegistrationVersionFilterName, + RegistrationVersionStatus, + RequestableNumberType, + SenderIdFilterName, + SpendLimitName, + VerificationChannel, + VerificationStatus, + VerifiedDestinationNumberFilterName, + VoiceId, + VoiceMessageBodyTextType, +} from "./enums"; /** *

Displays the attributes associated with a single Amazon Web Services account.

@@ -46,26 +65,6 @@ export interface AccountAttribute { Value: string | undefined; } -/** - * @public - * @enum - */ -export const AccountLimitName = { - CONFIGURATION_SETS: "CONFIGURATION_SETS", - OPT_OUT_LISTS: "OPT_OUT_LISTS", - PHONE_NUMBERS: "PHONE_NUMBERS", - POOLS: "POOLS", - REGISTRATIONS: "REGISTRATIONS", - REGISTRATION_ATTACHMENTS: "REGISTRATION_ATTACHMENTS", - SENDER_IDS: "SENDER_IDS", - VERIFIED_DESTINATION_NUMBERS: "VERIFIED_DESTINATION_NUMBERS", -} as const; - -/** - * @public - */ -export type AccountLimitName = (typeof AccountLimitName)[keyof typeof AccountLimitName]; - /** *

The current resource quotas associated with an Amazon Web Services account.

* @public @@ -154,120 +153,6 @@ export interface AssociateOriginationIdentityResult { IsoCountryCode?: string | undefined; } -/** - * @public - * @enum - */ -export const ConflictExceptionReason = { - CREATE_REGISTRATION_VERSION_NOT_ALLOWED: "CREATE_REGISTRATION_VERSION_NOT_ALLOWED", - DELETION_PROTECTION_ENABLED: "DELETION_PROTECTION_ENABLED", - DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION: "DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION", - DESTINATION_PHONE_NUMBER_BLOCKED_BY_PROTECT_NUMBER_OVERRIDE: - "DESTINATION_PHONE_NUMBER_BLOCKED_BY_PROTECT_NUMBER_OVERRIDE", - DESTINATION_PHONE_NUMBER_NOT_VERIFIED: "DESTINATION_PHONE_NUMBER_NOT_VERIFIED", - DESTINATION_PHONE_NUMBER_OPTED_OUT: "DESTINATION_PHONE_NUMBER_OPTED_OUT", - DISASSOCIATE_REGISTRATION_NOT_ALLOWED: "DISASSOCIATE_REGISTRATION_NOT_ALLOWED", - DISCARD_REGISTRATION_VERSION_NOT_ALLOWED: "DISCARD_REGISTRATION_VERSION_NOT_ALLOWED", - EDIT_REGISTRATION_FIELD_VALUES_NOT_ALLOWED: "EDIT_REGISTRATION_FIELD_VALUES_NOT_ALLOWED", - EVENT_DESTINATION_MISMATCH: "EVENT_DESTINATION_MISMATCH", - KEYWORD_MISMATCH: "KEYWORD_MISMATCH", - LAST_PHONE_NUMBER: "LAST_PHONE_NUMBER", - MESSAGE_TYPE_MISMATCH: "MESSAGE_TYPE_MISMATCH", - NO_ORIGINATION_IDENTITIES_FOUND: "NO_ORIGINATION_IDENTITIES_FOUND", - NUMBER_CAPABILITIES_MISMATCH: "NUMBER_CAPABILITIES_MISMATCH", - OPT_OUT_LIST_MISMATCH: "OPT_OUT_LIST_MISMATCH", - PHONE_NUMBER_ASSOCIATED_TO_POOL: "PHONE_NUMBER_ASSOCIATED_TO_POOL", - PHONE_NUMBER_ASSOCIATED_TO_REGISTRATION: "PHONE_NUMBER_ASSOCIATED_TO_REGISTRATION", - PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL: "PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL", - PHONE_NUMBER_NOT_IN_REGISTRATION_REGION: "PHONE_NUMBER_NOT_IN_REGISTRATION_REGION", - PROTECT_CONFIGURATION_ASSOCIATED_WITH_CONFIGURATION_SET: "PROTECT_CONFIGURATION_ASSOCIATED_WITH_CONFIGURATION_SET", - PROTECT_CONFIGURATION_IS_ACCOUNT_DEFAULT: "PROTECT_CONFIGURATION_IS_ACCOUNT_DEFAULT", - PROTECT_CONFIGURATION_NOT_ASSOCIATED_WITH_CONFIGURATION_SET: - "PROTECT_CONFIGURATION_NOT_ASSOCIATED_WITH_CONFIGURATION_SET", - REGISTRATION_ALREADY_SUBMITTED: "REGISTRATION_ALREADY_SUBMITTED", - REGISTRATION_NOT_COMPLETE: "REGISTRATION_NOT_COMPLETE", - RESOURCE_ALREADY_EXISTS: "RESOURCE_ALREADY_EXISTS", - RESOURCE_DELETION_NOT_ALLOWED: "RESOURCE_DELETION_NOT_ALLOWED", - RESOURCE_MODIFICATION_NOT_ALLOWED: "RESOURCE_MODIFICATION_NOT_ALLOWED", - RESOURCE_NOT_ACTIVE: "RESOURCE_NOT_ACTIVE", - RESOURCE_NOT_EMPTY: "RESOURCE_NOT_EMPTY", - SELF_MANAGED_OPT_OUTS_MISMATCH: "SELF_MANAGED_OPT_OUTS_MISMATCH", - SENDER_ID_ASSOCIATED_TO_POOL: "SENDER_ID_ASSOCIATED_TO_POOL", - SUBMIT_REGISTRATION_VERSION_NOT_ALLOWED: "SUBMIT_REGISTRATION_VERSION_NOT_ALLOWED", - TWO_WAY_CONFIG_MISMATCH: "TWO_WAY_CONFIG_MISMATCH", - VERIFICATION_ALREADY_COMPLETE: "VERIFICATION_ALREADY_COMPLETE", - VERIFICATION_CODE_EXPIRED: "VERIFICATION_CODE_EXPIRED", -} as const; - -/** - * @public - */ -export type ConflictExceptionReason = (typeof ConflictExceptionReason)[keyof typeof ConflictExceptionReason]; - -/** - * @public - * @enum - */ -export const ResourceType = { - ACCOUNT: "account", - CONFIGURATION_SET: "configuration-set", - EVENT_DESTINATION: "event-destination", - KEYWORD: "keyword", - MESSAGE: "message", - MESSAGE_TEMPLATE: "message-template", - OPTED_OUT_NUMBER: "opted-out-number", - OPT_OUT_LIST: "opt-out-list", - PHONE_NUMBER: "phone-number", - POLICY: "policy", - POOL: "pool", - PROTECT_CONFIGURATION: "protect-configuration", - REGISTRATION: "registration", - REGISTRATION_ATTACHMENT: "registration-attachment", - SENDER_ID: "sender-id", - VERIFIED_DESTINATION_NUMBER: "verified-destination-number", -} as const; - -/** - * @public - */ -export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; - -/** - * @public - * @enum - */ -export const ServiceQuotaExceededExceptionReason = { - ASSOCIATIONS_PER_REGISTRATION: "ASSOCIATIONS_PER_REGISTRATION", - CONFIGURATION_SETS_PER_ACCOUNT: "CONFIGURATION_SETS_PER_ACCOUNT", - DAILY_DESTINATION_CALL_LIMIT: "DAILY_DESTINATION_CALL_LIMIT", - EVENT_DESTINATIONS_PER_CONFIGURATION_SET: "EVENT_DESTINATIONS_PER_CONFIGURATION_SET", - KEYWORDS_PER_PHONE_NUMBER: "KEYWORDS_PER_PHONE_NUMBER", - KEYWORDS_PER_POOL: "KEYWORDS_PER_POOL", - MONTHLY_SPEND_LIMIT_REACHED_FOR_MEDIA: "MONTHLY_SPEND_LIMIT_REACHED_FOR_MEDIA", - MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT: "MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT", - MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE: "MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE", - OPT_OUT_LISTS_PER_ACCOUNT: "OPT_OUT_LISTS_PER_ACCOUNT", - ORIGINATION_IDENTITIES_PER_POOL: "ORIGINATION_IDENTITIES_PER_POOL", - PHONE_NUMBERS_PER_ACCOUNT: "PHONE_NUMBERS_PER_ACCOUNT", - PHONE_NUMBERS_PER_REGISTRATION: "PHONE_NUMBERS_PER_REGISTRATION", - POOLS_PER_ACCOUNT: "POOLS_PER_ACCOUNT", - PROTECT_CONFIGURATIONS_PER_ACCOUNT: "PROTECT_CONFIGURATIONS_PER_ACCOUNT", - REGISTRATIONS_PER_ACCOUNT: "REGISTRATIONS_PER_ACCOUNT", - REGISTRATION_ATTACHMENTS_CREATED_PER_DAY: "REGISTRATION_ATTACHMENTS_CREATED_PER_DAY", - REGISTRATION_ATTACHMENTS_PER_ACCOUNT: "REGISTRATION_ATTACHMENTS_PER_ACCOUNT", - REGISTRATION_VERSIONS_CREATED_PER_DAY: "REGISTRATION_VERSIONS_CREATED_PER_DAY", - SENDER_IDS_PER_ACCOUNT: "SENDER_IDS_PER_ACCOUNT", - TAGS_PER_RESOURCE: "TAGS_PER_RESOURCE", - VERIFICATION_ATTEMPTS_PER_DAY: "VERIFICATION_ATTEMPTS_PER_DAY", - VERIFIED_DESTINATION_NUMBERS_PER_ACCOUNT: "VERIFIED_DESTINATION_NUMBERS_PER_ACCOUNT", -} as const; - -/** - * @public - */ -export type ServiceQuotaExceededExceptionReason = - (typeof ServiceQuotaExceededExceptionReason)[keyof typeof ServiceQuotaExceededExceptionReason]; - /** *

The field associated with the validation exception.

* @public @@ -286,59 +171,6 @@ export interface ValidationExceptionField { Message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - ATTACHMENT_TYPE_NOT_SUPPORTED: "ATTACHMENT_TYPE_NOT_SUPPORTED", - CANNOT_ADD_OPTED_OUT_NUMBER: "CANNOT_ADD_OPTED_OUT_NUMBER", - CANNOT_PARSE: "CANNOT_PARSE", - COUNTRY_CODE_MISMATCH: "COUNTRY_CODE_MISMATCH", - DESTINATION_COUNTRY_BLOCKED: "DESTINATION_COUNTRY_BLOCKED", - FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", - INTERNATIONAL_SENDING_NOT_SUPPORTED: "INTERNATIONAL_SENDING_NOT_SUPPORTED", - INVALID_ARN: "INVALID_ARN", - INVALID_FILTER_VALUES: "INVALID_FILTER_VALUES", - INVALID_IDENTITY_FOR_DESTINATION_COUNTRY: "INVALID_IDENTITY_FOR_DESTINATION_COUNTRY", - INVALID_NEXT_TOKEN: "INVALID_NEXT_TOKEN", - INVALID_PARAMETER: "INVALID_PARAMETER", - INVALID_REGISTRATION_ASSOCIATION: "INVALID_REGISTRATION_ASSOCIATION", - INVALID_REQUEST: "INVALID_REQUEST", - MAXIMUM_SIZE_EXCEEDED: "MAXIMUM_SIZE_EXCEEDED", - MEDIA_TYPE_NOT_SUPPORTED: "MEDIA_TYPE_NOT_SUPPORTED", - MISSING_PARAMETER: "MISSING_PARAMETER", - OTHER: "OTHER", - PARAMETERS_CANNOT_BE_USED_TOGETHER: "PARAMETERS_CANNOT_BE_USED_TOGETHER", - PHONE_NUMBER_CANNOT_BE_OPTED_IN: "PHONE_NUMBER_CANNOT_BE_OPTED_IN", - PHONE_NUMBER_CANNOT_BE_RELEASED: "PHONE_NUMBER_CANNOT_BE_RELEASED", - PRICE_OVER_THRESHOLD: "PRICE_OVER_THRESHOLD", - REGISTRATION_FIELD_CANNOT_BE_DELETED: "REGISTRATION_FIELD_CANNOT_BE_DELETED", - REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT: "REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT", - RESOURCE_NOT_ACCESSIBLE: "RESOURCE_NOT_ACCESSIBLE", - SENDER_ID_NOT_REGISTERED: "SENDER_ID_NOT_REGISTERED", - SENDER_ID_NOT_SUPPORTED: "SENDER_ID_NOT_SUPPORTED", - SENDER_ID_REQUIRES_REGISTRATION: "SENDER_ID_REQUIRES_REGISTRATION", - TWO_WAY_CHANNEL_NOT_PRESENT: "TWO_WAY_CHANNEL_NOT_PRESENT", - TWO_WAY_NOT_ENABLED: "TWO_WAY_NOT_ENABLED", - TWO_WAY_NOT_SUPPORTED_IN_COUNTRY: "TWO_WAY_NOT_SUPPORTED_IN_COUNTRY", - TWO_WAY_NOT_SUPPORTED_IN_REGION: "TWO_WAY_NOT_SUPPORTED_IN_REGION", - TWO_WAY_TOPIC_NOT_PRESENT: "TWO_WAY_TOPIC_NOT_PRESENT", - UNKNOWN_OPERATION: "UNKNOWN_OPERATION", - UNKNOWN_REGISTRATION_FIELD: "UNKNOWN_REGISTRATION_FIELD", - UNKNOWN_REGISTRATION_SECTION: "UNKNOWN_REGISTRATION_SECTION", - UNKNOWN_REGISTRATION_TYPE: "UNKNOWN_REGISTRATION_TYPE", - UNKNOWN_REGISTRATION_VERSION: "UNKNOWN_REGISTRATION_VERSION", - UNSPECIFIED_PARAMETER_NOT_SUPPORTED: "UNSPECIFIED_PARAMETER_NOT_SUPPORTED", - VERIFICATION_CODE_MISMATCH: "VERIFICATION_CODE_MISMATCH", - VOICE_CAPABILITY_NOT_AVAILABLE: "VOICE_CAPABILITY_NOT_AVAILABLE", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** * @public */ @@ -385,36 +217,6 @@ export interface AssociateProtectConfigurationResult { ProtectConfigurationId: string | undefined; } -/** - * @public - * @enum - */ -export const AttachmentStatus = { - DELETED: "DELETED", - UPLOAD_COMPLETE: "UPLOAD_COMPLETE", - UPLOAD_FAILED: "UPLOAD_FAILED", - UPLOAD_IN_PROGRESS: "UPLOAD_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type AttachmentStatus = (typeof AttachmentStatus)[keyof typeof AttachmentStatus]; - -/** - * @public - * @enum - */ -export const AttachmentUploadErrorReason = { - INTERNAL_ERROR: "INTERNAL_ERROR", -} as const; - -/** - * @public - */ -export type AttachmentUploadErrorReason = - (typeof AttachmentUploadErrorReason)[keyof typeof AttachmentUploadErrorReason]; - /** * @public */ @@ -426,22 +228,6 @@ export interface CarrierLookupRequest { PhoneNumber: string | undefined; } -/** - * @public - * @enum - */ -export const PhoneNumberType = { - INVALID: "INVALID", - LANDLINE: "LANDLINE", - MOBILE: "MOBILE", - OTHER: "OTHER", -} as const; - -/** - * @public - */ -export type PhoneNumberType = (typeof PhoneNumberType)[keyof typeof PhoneNumberType]; - /** * @public */ @@ -513,24 +299,6 @@ export interface CloudWatchLogsDestination { LogGroupArn: string | undefined; } -/** - * @public - * @enum - */ -export const ConfigurationSetFilterName = { - DEFAULT_MESSAGE_FEEDBACK_ENABLED: "default-message-feedback-enabled", - DEFAULT_MESSAGE_TYPE: "default-message-type", - DEFAULT_SENDER_ID: "default-sender-id", - EVENT_DESTINATION_NAME: "event-destination-name", - MATCHING_EVENT_TYPES: "matching-event-types", - PROTECT_CONFIGURATION_ID: "protect-configuration-id", -} as const; - -/** - * @public - */ -export type ConfigurationSetFilterName = (typeof ConfigurationSetFilterName)[keyof typeof ConfigurationSetFilterName]; - /** *

The information for configuration sets that meet a specified criteria.

* @public @@ -549,20 +317,6 @@ export interface ConfigurationSetFilter { Values: string[] | undefined; } -/** - * @public - * @enum - */ -export const MessageType = { - PROMOTIONAL: "PROMOTIONAL", - TRANSACTIONAL: "TRANSACTIONAL", -} as const; - -/** - * @public - */ -export type MessageType = (typeof MessageType)[keyof typeof MessageType]; - /** *

Contains the delivery stream Amazon Resource Name (ARN), and the ARN of the Identity and Access Management (IAM) role associated with a Firehose event destination.

Event destinations, such as Firehose, are associated with configuration sets, which enable you to publish message sending events.

* @public @@ -581,61 +335,6 @@ export interface KinesisFirehoseDestination { DeliveryStreamArn: string | undefined; } -/** - * @public - * @enum - */ -export const EventType = { - ALL: "ALL", - MEDIA_ALL: "MEDIA_ALL", - MEDIA_BLOCKED: "MEDIA_BLOCKED", - MEDIA_CARRIER_BLOCKED: "MEDIA_CARRIER_BLOCKED", - MEDIA_CARRIER_UNREACHABLE: "MEDIA_CARRIER_UNREACHABLE", - MEDIA_DELIVERED: "MEDIA_DELIVERED", - MEDIA_FILE_INACCESSIBLE: "MEDIA_FILE_INACCESSIBLE", - MEDIA_FILE_SIZE_EXCEEDED: "MEDIA_FILE_SIZE_EXCEEDED", - MEDIA_FILE_TYPE_UNSUPPORTED: "MEDIA_FILE_TYPE_UNSUPPORTED", - MEDIA_INVALID: "MEDIA_INVALID", - MEDIA_INVALID_MESSAGE: "MEDIA_INVALID_MESSAGE", - MEDIA_PENDING: "MEDIA_PENDING", - MEDIA_QUEUED: "MEDIA_QUEUED", - MEDIA_SPAM: "MEDIA_SPAM", - MEDIA_SUCCESSFUL: "MEDIA_SUCCESSFUL", - MEDIA_TTL_EXPIRED: "MEDIA_TTL_EXPIRED", - MEDIA_UNKNOWN: "MEDIA_UNKNOWN", - MEDIA_UNREACHABLE: "MEDIA_UNREACHABLE", - TEXT_ALL: "TEXT_ALL", - TEXT_BLOCKED: "TEXT_BLOCKED", - TEXT_CARRIER_BLOCKED: "TEXT_CARRIER_BLOCKED", - TEXT_CARRIER_UNREACHABLE: "TEXT_CARRIER_UNREACHABLE", - TEXT_DELIVERED: "TEXT_DELIVERED", - TEXT_INVALID: "TEXT_INVALID", - TEXT_INVALID_MESSAGE: "TEXT_INVALID_MESSAGE", - TEXT_PENDING: "TEXT_PENDING", - TEXT_PROTECT_BLOCKED: "TEXT_PROTECT_BLOCKED", - TEXT_QUEUED: "TEXT_QUEUED", - TEXT_SENT: "TEXT_SENT", - TEXT_SPAM: "TEXT_SPAM", - TEXT_SUCCESSFUL: "TEXT_SUCCESSFUL", - TEXT_TTL_EXPIRED: "TEXT_TTL_EXPIRED", - TEXT_UNKNOWN: "TEXT_UNKNOWN", - TEXT_UNREACHABLE: "TEXT_UNREACHABLE", - VOICE_ALL: "VOICE_ALL", - VOICE_ANSWERED: "VOICE_ANSWERED", - VOICE_BUSY: "VOICE_BUSY", - VOICE_COMPLETED: "VOICE_COMPLETED", - VOICE_FAILED: "VOICE_FAILED", - VOICE_INITIATED: "VOICE_INITIATED", - VOICE_NO_ANSWER: "VOICE_NO_ANSWER", - VOICE_RINGING: "VOICE_RINGING", - VOICE_TTL_EXPIRED: "VOICE_TTL_EXPIRED", -} as const; - -/** - * @public - */ -export type EventType = (typeof EventType)[keyof typeof EventType]; - /** *

An object that defines an Amazon SNS destination for events. You can use Amazon SNS to send notification when certain events occur.

* @public @@ -977,21 +676,6 @@ export interface CreatePoolRequest { ClientToken?: string | undefined; } -/** - * @public - * @enum - */ -export const PoolStatus = { - ACTIVE: "ACTIVE", - CREATING: "CREATING", - DELETING: "DELETING", -} as const; - -/** - * @public - */ -export type PoolStatus = (typeof PoolStatus)[keyof typeof PoolStatus]; - /** * @public */ @@ -1162,27 +846,6 @@ export interface CreateRegistrationRequest { ClientToken?: string | undefined; } -/** - * @public - * @enum - */ -export const RegistrationStatus = { - CLOSED: "CLOSED", - COMPLETE: "COMPLETE", - CREATED: "CREATED", - DELETED: "DELETED", - PROVISIONING: "PROVISIONING", - REQUIRES_AUTHENTICATION: "REQUIRES_AUTHENTICATION", - REQUIRES_UPDATES: "REQUIRES_UPDATES", - REVIEWING: "REVIEWING", - SUBMITTED: "SUBMITTED", -} as const; - -/** - * @public - */ -export type RegistrationStatus = (typeof RegistrationStatus)[keyof typeof RegistrationStatus]; - /** * @public */ @@ -1381,27 +1044,6 @@ export interface CreateRegistrationVersionRequest { RegistrationId: string | undefined; } -/** - * @public - * @enum - */ -export const RegistrationVersionStatus = { - APPROVED: "APPROVED", - ARCHIVED: "ARCHIVED", - DENIED: "DENIED", - DISCARDED: "DISCARDED", - DRAFT: "DRAFT", - REQUIRES_AUTHENTICATION: "REQUIRES_AUTHENTICATION", - REVIEWING: "REVIEWING", - REVOKED: "REVOKED", - SUBMITTED: "SUBMITTED", -} as const; - -/** - * @public - */ -export type RegistrationVersionStatus = (typeof RegistrationVersionStatus)[keyof typeof RegistrationVersionStatus]; - /** *

The RegistrationVersionStatusHistory object contains the time stamps for when the reservations status changes.

* @public @@ -1520,20 +1162,6 @@ export interface CreateVerifiedDestinationNumberRequest { ClientToken?: string | undefined; } -/** - * @public - * @enum - */ -export const VerificationStatus = { - PENDING: "PENDING", - VERIFIED: "VERIFIED", -} as const; - -/** - * @public - */ -export type VerificationStatus = (typeof VerificationStatus)[keyof typeof VerificationStatus]; - /** * @public */ @@ -1780,21 +1408,6 @@ export interface DeleteKeywordRequest { Keyword: string | undefined; } -/** - * @public - * @enum - */ -export const KeywordAction = { - AUTOMATIC_RESPONSE: "AUTOMATIC_RESPONSE", - OPT_IN: "OPT_IN", - OPT_OUT: "OPT_OUT", -} as const; - -/** - * @public - */ -export type KeywordAction = (typeof KeywordAction)[keyof typeof KeywordAction]; - /** * @public */ @@ -2077,21 +1690,6 @@ export interface DeleteProtectConfigurationRuleSetNumberOverrideRequest { DestinationPhoneNumber: string | undefined; } -/** - * @public - * @enum - */ -export const ProtectConfigurationRuleOverrideAction = { - ALLOW: "ALLOW", - BLOCK: "BLOCK", -} as const; - -/** - * @public - */ -export type ProtectConfigurationRuleOverrideAction = - (typeof ProtectConfigurationRuleOverrideAction)[keyof typeof ProtectConfigurationRuleOverrideAction]; - /** * @public */ @@ -2539,19 +2137,6 @@ export interface DescribeConfigurationSetsResult { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const KeywordFilterName = { - KEYWORD_ACTION: "keyword-action", -} as const; - -/** - * @public - */ -export type KeywordFilterName = (typeof KeywordFilterName)[keyof typeof KeywordFilterName]; - /** *

The information for keywords that meet a specified criteria.

* @public @@ -2658,19 +2243,6 @@ export interface DescribeKeywordsResult { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const OptedOutFilterName = { - END_USER_OPTED_OUT: "end-user-opted-out", -} as const; - -/** - * @public - */ -export type OptedOutFilterName = (typeof OptedOutFilterName)[keyof typeof OptedOutFilterName]; - /** *

The information for opted out numbers that meet a specified criteria.

* @public @@ -2777,20 +2349,6 @@ export interface DescribeOptedOutNumbersResult { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const Owner = { - SELF: "SELF", - SHARED: "SHARED", -} as const; - -/** - * @public - */ -export type Owner = (typeof Owner)[keyof typeof Owner]; - /** * @public */ @@ -2861,28 +2419,6 @@ export interface DescribeOptOutListsResult { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const PhoneNumberFilterName = { - DELETION_PROTECTION_ENABLED: "deletion-protection-enabled", - ISO_COUNTRY_CODE: "iso-country-code", - MESSAGE_TYPE: "message-type", - NUMBER_CAPABILITY: "number-capability", - NUMBER_TYPE: "number-type", - OPT_OUT_LIST_NAME: "opt-out-list-name", - SELF_MANAGED_OPT_OUTS_ENABLED: "self-managed-opt-outs-enabled", - STATUS: "status", - TWO_WAY_CHANNEL_ARN: "two-way-channel-arn", - TWO_WAY_ENABLED: "two-way-enabled", -} as const; - -/** - * @public - */ -export type PhoneNumberFilterName = (typeof PhoneNumberFilterName)[keyof typeof PhoneNumberFilterName]; - /** *

The information for a phone number that meets a specified criteria.

* @public @@ -2936,55 +2472,6 @@ export interface DescribePhoneNumbersRequest { Owner?: Owner | undefined; } -/** - * @public - * @enum - */ -export const NumberCapability = { - MMS: "MMS", - SMS: "SMS", - VOICE: "VOICE", -} as const; - -/** - * @public - */ -export type NumberCapability = (typeof NumberCapability)[keyof typeof NumberCapability]; - -/** - * @public - * @enum - */ -export const NumberType = { - LONG_CODE: "LONG_CODE", - SHORT_CODE: "SHORT_CODE", - SIMULATOR: "SIMULATOR", - TEN_DLC: "TEN_DLC", - TOLL_FREE: "TOLL_FREE", -} as const; - -/** - * @public - */ -export type NumberType = (typeof NumberType)[keyof typeof NumberType]; - -/** - * @public - * @enum - */ -export const NumberStatus = { - ACTIVE: "ACTIVE", - ASSOCIATING: "ASSOCIATING", - DELETED: "DELETED", - DISASSOCIATING: "DISASSOCIATING", - PENDING: "PENDING", -} as const; - -/** - * @public - */ -export type NumberStatus = (typeof NumberStatus)[keyof typeof NumberStatus]; - /** *

The information for a phone number, in E.164 format, in an Amazon Web Services account.

* @public @@ -3122,26 +2609,6 @@ export interface DescribePhoneNumbersResult { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const PoolFilterName = { - DELETION_PROTECTION_ENABLED: "deletion-protection-enabled", - MESSAGE_TYPE: "message-type", - OPT_OUT_LIST_NAME: "opt-out-list-name", - SELF_MANAGED_OPT_OUTS_ENABLED: "self-managed-opt-outs-enabled", - SHARED_ROUTES_ENABLED: "shared-routes-enabled", - STATUS: "status", - TWO_WAY_CHANNEL_ARN: "two-way-channel-arn", - TWO_WAY_ENABLED: "two-way-enabled", -} as const; - -/** - * @public - */ -export type PoolFilterName = (typeof PoolFilterName)[keyof typeof PoolFilterName]; - /** *

The information for a pool that meets a specified criteria.

* @public @@ -3290,21 +2757,6 @@ export interface DescribePoolsResult { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const ProtectConfigurationFilterName = { - ACCOUNT_DEFAULT: "account-default", - DELETION_PROTECTION_ENABLED: "deletion-protection-enabled", -} as const; - -/** - * @public - */ -export type ProtectConfigurationFilterName = - (typeof ProtectConfigurationFilterName)[keyof typeof ProtectConfigurationFilterName]; - /** *

The filter definition for filtering protect configurations that meet a specified criteria.

* @public @@ -3405,20 +2857,6 @@ export interface DescribeProtectConfigurationsResult { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const RegistrationAttachmentFilterName = { - ATTACHMENT_STATUS: "attachment-status", -} as const; - -/** - * @public - */ -export type RegistrationAttachmentFilterName = - (typeof RegistrationAttachmentFilterName)[keyof typeof RegistrationAttachmentFilterName]; - /** *

The filter definition for filtering registration attachments that meets a specified criteria.

* @public @@ -3632,36 +3070,6 @@ export interface RegistrationFieldDisplayHints { ExampleTextValue?: string | undefined; } -/** - * @public - * @enum - */ -export const FieldRequirement = { - CONDITIONAL: "CONDITIONAL", - OPTIONAL: "OPTIONAL", - REQUIRED: "REQUIRED", -} as const; - -/** - * @public - */ -export type FieldRequirement = (typeof FieldRequirement)[keyof typeof FieldRequirement]; - -/** - * @public - * @enum - */ -export const FieldType = { - ATTACHMENT: "ATTACHMENT", - SELECT: "SELECT", - TEXT: "TEXT", -} as const; - -/** - * @public - */ -export type FieldType = (typeof FieldType)[keyof typeof FieldType]; - /** *

Validation rules for a select field.

* @public @@ -3893,20 +3301,6 @@ export interface DescribeRegistrationFieldValuesResult { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const RegistrationFilterName = { - REGISTRATION_STATUS: "registration-status", - REGISTRATION_TYPE: "registration-type", -} as const; - -/** - * @public - */ -export type RegistrationFilterName = (typeof RegistrationFilterName)[keyof typeof RegistrationFilterName]; - /** *

The filter definition for filtering registrations that meets a specified criteria.

* @public @@ -4137,20 +3531,6 @@ export interface DescribeRegistrationSectionDefinitionsResult { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const RegistrationTypeFilterName = { - SUPPORTED_ASSOCIATION_ISO_COUNTRY_CODE: "supported-association-iso-country-code", - SUPPORTED_ASSOCIATION_RESOURCE_TYPE: "supported-association-resource-type", -} as const; - -/** - * @public - */ -export type RegistrationTypeFilterName = (typeof RegistrationTypeFilterName)[keyof typeof RegistrationTypeFilterName]; - /** *

The filter definition for filtering registration types that meets a specified criteria.

* @public @@ -4234,38 +3614,6 @@ export interface RegistrationTypeDisplayHints { DocumentationLink?: string | undefined; } -/** - * @public - * @enum - */ -export const RegistrationAssociationBehavior = { - ASSOCIATE_AFTER_COMPLETE: "ASSOCIATE_AFTER_COMPLETE", - ASSOCIATE_BEFORE_SUBMIT: "ASSOCIATE_BEFORE_SUBMIT", - ASSOCIATE_ON_APPROVAL: "ASSOCIATE_ON_APPROVAL", -} as const; - -/** - * @public - */ -export type RegistrationAssociationBehavior = - (typeof RegistrationAssociationBehavior)[keyof typeof RegistrationAssociationBehavior]; - -/** - * @public - * @enum - */ -export const RegistrationDisassociationBehavior = { - DELETE_REGISTRATION_DISASSOCIATES: "DELETE_REGISTRATION_DISASSOCIATES", - DISASSOCIATE_ALL_ALLOWS_DELETE_REGISTRATION: "DISASSOCIATE_ALL_ALLOWS_DELETE_REGISTRATION", - DISASSOCIATE_ALL_CLOSES_REGISTRATION: "DISASSOCIATE_ALL_CLOSES_REGISTRATION", -} as const; - -/** - * @public - */ -export type RegistrationDisassociationBehavior = - (typeof RegistrationDisassociationBehavior)[keyof typeof RegistrationDisassociationBehavior]; - /** *

The processing rules for when a registration can be associated with an origination identity and disassociated from an origination identity.

* @public @@ -4337,20 +3685,6 @@ export interface DescribeRegistrationTypeDefinitionsResult { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const RegistrationVersionFilterName = { - REGISTRATION_VERSION_STATUS: "registration-version-status", -} as const; - -/** - * @public - */ -export type RegistrationVersionFilterName = - (typeof RegistrationVersionFilterName)[keyof typeof RegistrationVersionFilterName]; - /** *

The filter definition for filtering registration versions that meets a specified criteria.

* @public @@ -4499,23 +3833,6 @@ export interface DescribeRegistrationVersionsResult { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const SenderIdFilterName = { - DELETION_PROTECTION_ENABLED: "deletion-protection-enabled", - ISO_COUNTRY_CODE: "iso-country-code", - MESSAGE_TYPE: "message-type", - REGISTERED: "registered", - SENDER_ID: "sender-id", -} as const; - -/** - * @public - */ -export type SenderIdFilterName = (typeof SenderIdFilterName)[keyof typeof SenderIdFilterName]; - /** *

The information for a sender ID that meets a specified criteria.

* @public @@ -4675,21 +3992,6 @@ export interface DescribeSpendLimitsRequest { MaxResults?: number | undefined; } -/** - * @public - * @enum - */ -export const SpendLimitName = { - MEDIA_MESSAGE_MONTHLY_SPEND_LIMIT: "MEDIA_MESSAGE_MONTHLY_SPEND_LIMIT", - TEXT_MESSAGE_MONTHLY_SPEND_LIMIT: "TEXT_MESSAGE_MONTHLY_SPEND_LIMIT", - VOICE_MESSAGE_MONTHLY_SPEND_LIMIT: "VOICE_MESSAGE_MONTHLY_SPEND_LIMIT", -} as const; - -/** - * @public - */ -export type SpendLimitName = (typeof SpendLimitName)[keyof typeof SpendLimitName]; - /** *

Describes the current monthly spend limits for sending voice and text messages. For more information on increasing your monthly spend limit, see Requesting a spending quota increase in the End User MessagingSMS User Guide.

* @public @@ -4737,20 +4039,6 @@ export interface DescribeSpendLimitsResult { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const VerifiedDestinationNumberFilterName = { - STATUS: "status", -} as const; - -/** - * @public - */ -export type VerifiedDestinationNumberFilterName = - (typeof VerifiedDestinationNumberFilterName)[keyof typeof VerifiedDestinationNumberFilterName]; - /** *

The filter definition for filtering verified destination phone numbers that meets a specified criteria.

* @public @@ -4857,21 +4145,6 @@ export interface DescribeVerifiedDestinationNumbersResult { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const DestinationCountryParameterKey = { - IN_ENTITY_ID: "IN_ENTITY_ID", - IN_TEMPLATE_ID: "IN_TEMPLATE_ID", -} as const; - -/** - * @public - */ -export type DestinationCountryParameterKey = - (typeof DestinationCountryParameterKey)[keyof typeof DestinationCountryParameterKey]; - /** * @public */ @@ -5045,22 +4318,6 @@ export interface GetProtectConfigurationCountryRuleSetRequest { NumberCapability: NumberCapability | undefined; } -/** - * @public - * @enum - */ -export const ProtectStatus = { - ALLOW: "ALLOW", - BLOCK: "BLOCK", - FILTER: "FILTER", - MONITOR: "MONITOR", -} as const; - -/** - * @public - */ -export type ProtectStatus = (typeof ProtectStatus)[keyof typeof ProtectStatus]; - /** *

The types of statuses that can be used.

* @public @@ -5136,46 +4393,6 @@ export interface GetResourcePolicyResult { CreatedTimestamp?: Date | undefined; } -/** - * @public - * @enum - */ -export const LanguageCode = { - DE_DE: "DE_DE", - EN_GB: "EN_GB", - EN_US: "EN_US", - ES_419: "ES_419", - ES_ES: "ES_ES", - FR_CA: "FR_CA", - FR_FR: "FR_FR", - IT_IT: "IT_IT", - JA_JP: "JA_JP", - KO_KR: "KO_KR", - PT_BR: "PT_BR", - ZH_CN: "ZH_CN", - ZH_TW: "ZH_TW", -} as const; - -/** - * @public - */ -export type LanguageCode = (typeof LanguageCode)[keyof typeof LanguageCode]; - -/** - * @public - * @enum - */ -export const PoolOriginationIdentitiesFilterName = { - ISO_COUNTRY_CODE: "iso-country-code", - NUMBER_CAPABILITY: "number-capability", -} as const; - -/** - * @public - */ -export type PoolOriginationIdentitiesFilterName = - (typeof PoolOriginationIdentitiesFilterName)[keyof typeof PoolOriginationIdentitiesFilterName]; - /** *

Information about origination identities associated with a pool that meets a specified criteria.

* @public @@ -5288,26 +4505,6 @@ export interface ListPoolOriginationIdentitiesResult { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const ProtectConfigurationRuleSetNumberOverrideFilterName = { - ACTION: "action", - CREATED_AFTER: "created-after", - CREATED_BEFORE: "created-before", - DESTINATION_PHONE_NUMBER_BEGINS_WITH: "destination-phone-number-begins-with", - EXPIRES_AFTER: "expires-after", - EXPIRES_BEFORE: "expires-before", - ISO_COUNTRY_CODE: "iso-country-code", -} as const; - -/** - * @public - */ -export type ProtectConfigurationRuleSetNumberOverrideFilterName = - (typeof ProtectConfigurationRuleSetNumberOverrideFilterName)[keyof typeof ProtectConfigurationRuleSetNumberOverrideFilterName]; - /** *

The information for a protect configuration rule set number override that meets a specified criteria.

* @public @@ -5420,21 +4617,6 @@ export interface ListProtectConfigurationRuleSetNumberOverridesResult { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const RegistrationAssociationFilterName = { - ISO_COUNTRY_CODE: "iso-country-code", - RESOURCE_TYPE: "resource-type", -} as const; - -/** - * @public - */ -export type RegistrationAssociationFilterName = - (typeof RegistrationAssociationFilterName)[keyof typeof RegistrationAssociationFilterName]; - /** *

The filter definition for filtering registrations that meets a specified criteria.

* @public @@ -5581,20 +4763,6 @@ export interface ListTagsForResourceResult { Tags?: Tag[] | undefined; } -/** - * @public - * @enum - */ -export const MessageFeedbackStatus = { - FAILED: "FAILED", - RECEIVED: "RECEIVED", -} as const; - -/** - * @public - */ -export type MessageFeedbackStatus = (typeof MessageFeedbackStatus)[keyof typeof MessageFeedbackStatus]; - /** * @public */ @@ -6125,22 +5293,6 @@ export interface ReleaseSenderIdResult { RegistrationId?: string | undefined; } -/** - * @public - * @enum - */ -export const RequestableNumberType = { - LONG_CODE: "LONG_CODE", - SIMULATOR: "SIMULATOR", - TEN_DLC: "TEN_DLC", - TOLL_FREE: "TOLL_FREE", -} as const; - -/** - * @public - */ -export type RequestableNumberType = (typeof RequestableNumberType)[keyof typeof RequestableNumberType]; - /** * @public */ @@ -6431,20 +5583,6 @@ export interface RequestSenderIdResult { Tags?: Tag[] | undefined; } -/** - * @public - * @enum - */ -export const VerificationChannel = { - TEXT: "TEXT", - VOICE: "VOICE", -} as const; - -/** - * @public - */ -export type VerificationChannel = (typeof VerificationChannel)[keyof typeof VerificationChannel]; - /** * @public */ @@ -6679,91 +5817,6 @@ export interface SendTextMessageResult { MessageId?: string | undefined; } -/** - * @public - * @enum - */ -export const VoiceMessageBodyTextType = { - SSML: "SSML", - TEXT: "TEXT", -} as const; - -/** - * @public - */ -export type VoiceMessageBodyTextType = (typeof VoiceMessageBodyTextType)[keyof typeof VoiceMessageBodyTextType]; - -/** - * @public - * @enum - */ -export const VoiceId = { - AMY: "AMY", - ASTRID: "ASTRID", - BIANCA: "BIANCA", - BRIAN: "BRIAN", - CAMILA: "CAMILA", - CARLA: "CARLA", - CARMEN: "CARMEN", - CELINE: "CELINE", - CHANTAL: "CHANTAL", - CONCHITA: "CONCHITA", - CRISTIANO: "CRISTIANO", - DORA: "DORA", - EMMA: "EMMA", - ENRIQUE: "ENRIQUE", - EWA: "EWA", - FILIZ: "FILIZ", - GERAINT: "GERAINT", - GIORGIO: "GIORGIO", - GWYNETH: "GWYNETH", - HANS: "HANS", - INES: "INES", - IVY: "IVY", - JACEK: "JACEK", - JAN: "JAN", - JOANNA: "JOANNA", - JOEY: "JOEY", - JUSTIN: "JUSTIN", - KARL: "KARL", - KENDRA: "KENDRA", - KIMBERLY: "KIMBERLY", - LEA: "LEA", - LIV: "LIV", - LOTTE: "LOTTE", - LUCIA: "LUCIA", - LUPE: "LUPE", - MADS: "MADS", - MAJA: "MAJA", - MARLENE: "MARLENE", - MATHIEU: "MATHIEU", - MATTHEW: "MATTHEW", - MAXIM: "MAXIM", - MIA: "MIA", - MIGUEL: "MIGUEL", - MIZUKI: "MIZUKI", - NAJA: "NAJA", - NICOLE: "NICOLE", - PENELOPE: "PENELOPE", - RAVEENA: "RAVEENA", - RICARDO: "RICARDO", - RUBEN: "RUBEN", - RUSSELL: "RUSSELL", - SALLI: "SALLI", - SEOYEON: "SEOYEON", - TAKUMI: "TAKUMI", - TATYANA: "TATYANA", - VICKI: "VICKI", - VITORIA: "VITORIA", - ZEINA: "ZEINA", - ZHIYU: "ZHIYU", -} as const; - -/** - * @public - */ -export type VoiceId = (typeof VoiceId)[keyof typeof VoiceId]; - /** * @public */ diff --git a/clients/client-pipes/src/index.ts b/clients/client-pipes/src/index.ts index 49305605134e..9a28363e5329 100644 --- a/clients/client-pipes/src/index.ts +++ b/clients/client-pipes/src/index.ts @@ -18,6 +18,7 @@ export type { PipesExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-pipes/src/models/enums.ts b/clients/client-pipes/src/models/enums.ts new file mode 100644 index 000000000000..3e965b83e0e8 --- /dev/null +++ b/clients/client-pipes/src/models/enums.ts @@ -0,0 +1,351 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const AssignPublicIp = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +} as const; +/** + * @public + */ +export type AssignPublicIp = (typeof AssignPublicIp)[keyof typeof AssignPublicIp]; + +/** + * @public + * @enum + */ +export const BatchResourceRequirementType = { + GPU: "GPU", + MEMORY: "MEMORY", + VCPU: "VCPU", +} as const; +/** + * @public + */ +export type BatchResourceRequirementType = + (typeof BatchResourceRequirementType)[keyof typeof BatchResourceRequirementType]; + +/** + * @public + * @enum + */ +export const BatchJobDependencyType = { + N_TO_N: "N_TO_N", + SEQUENTIAL: "SEQUENTIAL", +} as const; +/** + * @public + */ +export type BatchJobDependencyType = (typeof BatchJobDependencyType)[keyof typeof BatchJobDependencyType]; + +/** + * @public + * @enum + */ +export const RequestedPipeState = { + RUNNING: "RUNNING", + STOPPED: "STOPPED", +} as const; +/** + * @public + */ +export type RequestedPipeState = (typeof RequestedPipeState)[keyof typeof RequestedPipeState]; + +/** + * @public + * @enum + */ +export const IncludeExecutionDataOption = { + ALL: "ALL", +} as const; +/** + * @public + */ +export type IncludeExecutionDataOption = (typeof IncludeExecutionDataOption)[keyof typeof IncludeExecutionDataOption]; + +/** + * @public + * @enum + */ +export const LogLevel = { + ERROR: "ERROR", + INFO: "INFO", + OFF: "OFF", + TRACE: "TRACE", +} as const; +/** + * @public + */ +export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel]; + +/** + * @public + * @enum + */ +export const S3OutputFormat = { + JSON: "json", + PLAIN: "plain", + W3C: "w3c", +} as const; +/** + * @public + */ +export type S3OutputFormat = (typeof S3OutputFormat)[keyof typeof S3OutputFormat]; + +/** + * @public + * @enum + */ +export const OnPartialBatchItemFailureStreams = { + AUTOMATIC_BISECT: "AUTOMATIC_BISECT", +} as const; +/** + * @public + */ +export type OnPartialBatchItemFailureStreams = + (typeof OnPartialBatchItemFailureStreams)[keyof typeof OnPartialBatchItemFailureStreams]; + +/** + * @public + * @enum + */ +export const DynamoDBStreamStartPosition = { + LATEST: "LATEST", + TRIM_HORIZON: "TRIM_HORIZON", +} as const; +/** + * @public + */ +export type DynamoDBStreamStartPosition = + (typeof DynamoDBStreamStartPosition)[keyof typeof DynamoDBStreamStartPosition]; + +/** + * @public + * @enum + */ +export const KinesisStreamStartPosition = { + AT_TIMESTAMP: "AT_TIMESTAMP", + LATEST: "LATEST", + TRIM_HORIZON: "TRIM_HORIZON", +} as const; +/** + * @public + */ +export type KinesisStreamStartPosition = (typeof KinesisStreamStartPosition)[keyof typeof KinesisStreamStartPosition]; + +/** + * @public + * @enum + */ +export const MSKStartPosition = { + LATEST: "LATEST", + TRIM_HORIZON: "TRIM_HORIZON", +} as const; +/** + * @public + */ +export type MSKStartPosition = (typeof MSKStartPosition)[keyof typeof MSKStartPosition]; + +/** + * @public + * @enum + */ +export const SelfManagedKafkaStartPosition = { + LATEST: "LATEST", + TRIM_HORIZON: "TRIM_HORIZON", +} as const; +/** + * @public + */ +export type SelfManagedKafkaStartPosition = + (typeof SelfManagedKafkaStartPosition)[keyof typeof SelfManagedKafkaStartPosition]; + +/** + * @public + * @enum + */ +export const LaunchType = { + EC2: "EC2", + EXTERNAL: "EXTERNAL", + FARGATE: "FARGATE", +} as const; +/** + * @public + */ +export type LaunchType = (typeof LaunchType)[keyof typeof LaunchType]; + +/** + * @public + * @enum + */ +export const EcsEnvironmentFileType = { + s3: "s3", +} as const; +/** + * @public + */ +export type EcsEnvironmentFileType = (typeof EcsEnvironmentFileType)[keyof typeof EcsEnvironmentFileType]; + +/** + * @public + * @enum + */ +export const EcsResourceRequirementType = { + GPU: "GPU", + InferenceAccelerator: "InferenceAccelerator", +} as const; +/** + * @public + */ +export type EcsResourceRequirementType = (typeof EcsResourceRequirementType)[keyof typeof EcsResourceRequirementType]; + +/** + * @public + * @enum + */ +export const PlacementConstraintType = { + DISTINCT_INSTANCE: "distinctInstance", + MEMBER_OF: "memberOf", +} as const; +/** + * @public + */ +export type PlacementConstraintType = (typeof PlacementConstraintType)[keyof typeof PlacementConstraintType]; + +/** + * @public + * @enum + */ +export const PlacementStrategyType = { + BINPACK: "binpack", + RANDOM: "random", + SPREAD: "spread", +} as const; +/** + * @public + */ +export type PlacementStrategyType = (typeof PlacementStrategyType)[keyof typeof PlacementStrategyType]; + +/** + * @public + * @enum + */ +export const PropagateTags = { + TASK_DEFINITION: "TASK_DEFINITION", +} as const; +/** + * @public + */ +export type PropagateTags = (typeof PropagateTags)[keyof typeof PropagateTags]; + +/** + * @public + * @enum + */ +export const PipeTargetInvocationType = { + FIRE_AND_FORGET: "FIRE_AND_FORGET", + REQUEST_RESPONSE: "REQUEST_RESPONSE", +} as const; +/** + * @public + */ +export type PipeTargetInvocationType = (typeof PipeTargetInvocationType)[keyof typeof PipeTargetInvocationType]; + +/** + * @public + * @enum + */ +export const DimensionValueType = { + VARCHAR: "VARCHAR", +} as const; +/** + * @public + */ +export type DimensionValueType = (typeof DimensionValueType)[keyof typeof DimensionValueType]; + +/** + * @public + * @enum + */ +export const EpochTimeUnit = { + MICROSECONDS: "MICROSECONDS", + MILLISECONDS: "MILLISECONDS", + NANOSECONDS: "NANOSECONDS", + SECONDS: "SECONDS", +} as const; +/** + * @public + */ +export type EpochTimeUnit = (typeof EpochTimeUnit)[keyof typeof EpochTimeUnit]; + +/** + * @public + * @enum + */ +export const MeasureValueType = { + BIGINT: "BIGINT", + BOOLEAN: "BOOLEAN", + DOUBLE: "DOUBLE", + TIMESTAMP: "TIMESTAMP", + VARCHAR: "VARCHAR", +} as const; +/** + * @public + */ +export type MeasureValueType = (typeof MeasureValueType)[keyof typeof MeasureValueType]; + +/** + * @public + * @enum + */ +export const TimeFieldType = { + EPOCH: "EPOCH", + TIMESTAMP_FORMAT: "TIMESTAMP_FORMAT", +} as const; +/** + * @public + */ +export type TimeFieldType = (typeof TimeFieldType)[keyof typeof TimeFieldType]; + +/** + * @public + * @enum + */ +export const PipeState = { + CREATE_FAILED: "CREATE_FAILED", + CREATE_ROLLBACK_FAILED: "CREATE_ROLLBACK_FAILED", + CREATING: "CREATING", + DELETE_FAILED: "DELETE_FAILED", + DELETE_ROLLBACK_FAILED: "DELETE_ROLLBACK_FAILED", + DELETING: "DELETING", + RUNNING: "RUNNING", + STARTING: "STARTING", + START_FAILED: "START_FAILED", + STOPPED: "STOPPED", + STOPPING: "STOPPING", + STOP_FAILED: "STOP_FAILED", + UPDATE_FAILED: "UPDATE_FAILED", + UPDATE_ROLLBACK_FAILED: "UPDATE_ROLLBACK_FAILED", + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type PipeState = (typeof PipeState)[keyof typeof PipeState]; + +/** + * @public + * @enum + */ +export const RequestedPipeStateDescribeResponse = { + DELETED: "DELETED", + RUNNING: "RUNNING", + STOPPED: "STOPPED", +} as const; +/** + * @public + */ +export type RequestedPipeStateDescribeResponse = + (typeof RequestedPipeStateDescribeResponse)[keyof typeof RequestedPipeStateDescribeResponse]; diff --git a/clients/client-pipes/src/models/models_0.ts b/clients/client-pipes/src/models/models_0.ts index 8e59aa986315..6fd3f43f94c3 100644 --- a/clients/client-pipes/src/models/models_0.ts +++ b/clients/client-pipes/src/models/models_0.ts @@ -1,17 +1,31 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const AssignPublicIp = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type AssignPublicIp = (typeof AssignPublicIp)[keyof typeof AssignPublicIp]; +import { + AssignPublicIp, + BatchJobDependencyType, + BatchResourceRequirementType, + DimensionValueType, + DynamoDBStreamStartPosition, + EcsEnvironmentFileType, + EcsResourceRequirementType, + EpochTimeUnit, + IncludeExecutionDataOption, + KinesisStreamStartPosition, + LaunchType, + LogLevel, + MeasureValueType, + MSKStartPosition, + OnPartialBatchItemFailureStreams, + PipeState, + PipeTargetInvocationType, + PlacementConstraintType, + PlacementStrategyType, + PropagateTags, + RequestedPipeState, + RequestedPipeStateDescribeResponse, + S3OutputFormat, + SelfManagedKafkaStartPosition, + TimeFieldType, +} from "./enums"; /** *

This structure specifies the VPC subnets and security groups for the task, and whether a @@ -83,22 +97,6 @@ export interface BatchEnvironmentVariable { Value?: string | undefined; } -/** - * @public - * @enum - */ -export const BatchResourceRequirementType = { - GPU: "GPU", - MEMORY: "MEMORY", - VCPU: "VCPU", -} as const; - -/** - * @public - */ -export type BatchResourceRequirementType = - (typeof BatchResourceRequirementType)[keyof typeof BatchResourceRequirementType]; - /** *

The type and amount of a resource to assign to a container. The supported resources * include GPU, MEMORY, and VCPU.

@@ -334,20 +332,6 @@ export interface BatchContainerOverrides { ResourceRequirements?: BatchResourceRequirement[] | undefined; } -/** - * @public - * @enum - */ -export const BatchJobDependencyType = { - N_TO_N: "N_TO_N", - SEQUENTIAL: "SEQUENTIAL", -} as const; - -/** - * @public - */ -export type BatchJobDependencyType = (typeof BatchJobDependencyType)[keyof typeof BatchJobDependencyType]; - /** *

An object that represents an Batch job dependency.

* @public @@ -434,20 +418,6 @@ export interface CloudwatchLogsLogDestinationParameters { LogGroupArn: string | undefined; } -/** - * @public - * @enum - */ -export const RequestedPipeState = { - RUNNING: "RUNNING", - STOPPED: "STOPPED", -} as const; - -/** - * @public - */ -export type RequestedPipeState = (typeof RequestedPipeState)[keyof typeof RequestedPipeState]; - /** *

These are custom parameter to be used when the target is an API Gateway REST APIs * or EventBridge ApiDestinations. In the latter case, these are merged with any @@ -517,50 +487,6 @@ export interface FirehoseLogDestinationParameters { DeliveryStreamArn: string | undefined; } -/** - * @public - * @enum - */ -export const IncludeExecutionDataOption = { - ALL: "ALL", -} as const; - -/** - * @public - */ -export type IncludeExecutionDataOption = (typeof IncludeExecutionDataOption)[keyof typeof IncludeExecutionDataOption]; - -/** - * @public - * @enum - */ -export const LogLevel = { - ERROR: "ERROR", - INFO: "INFO", - OFF: "OFF", - TRACE: "TRACE", -} as const; - -/** - * @public - */ -export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel]; - -/** - * @public - * @enum - */ -export const S3OutputFormat = { - JSON: "json", - PLAIN: "plain", - W3C: "w3c", -} as const; - -/** - * @public - */ -export type S3OutputFormat = (typeof S3OutputFormat)[keyof typeof S3OutputFormat]; - /** *

The Amazon S3 logging configuration settings for the pipe.

* @public @@ -743,35 +669,6 @@ export interface DeadLetterConfig { Arn?: string | undefined; } -/** - * @public - * @enum - */ -export const OnPartialBatchItemFailureStreams = { - AUTOMATIC_BISECT: "AUTOMATIC_BISECT", -} as const; - -/** - * @public - */ -export type OnPartialBatchItemFailureStreams = - (typeof OnPartialBatchItemFailureStreams)[keyof typeof OnPartialBatchItemFailureStreams]; - -/** - * @public - * @enum - */ -export const DynamoDBStreamStartPosition = { - LATEST: "LATEST", - TRIM_HORIZON: "TRIM_HORIZON", -} as const; - -/** - * @public - */ -export type DynamoDBStreamStartPosition = - (typeof DynamoDBStreamStartPosition)[keyof typeof DynamoDBStreamStartPosition]; - /** *

The parameters for using a DynamoDB stream as a source.

* @public @@ -857,21 +754,6 @@ export interface FilterCriteria { Filters?: Filter[] | undefined; } -/** - * @public - * @enum - */ -export const KinesisStreamStartPosition = { - AT_TIMESTAMP: "AT_TIMESTAMP", - LATEST: "LATEST", - TRIM_HORIZON: "TRIM_HORIZON", -} as const; - -/** - * @public - */ -export type KinesisStreamStartPosition = (typeof KinesisStreamStartPosition)[keyof typeof KinesisStreamStartPosition]; - /** *

The parameters for using a Kinesis stream as a source.

* @public @@ -989,20 +871,6 @@ export namespace MSKAccessCredentials { } } -/** - * @public - * @enum - */ -export const MSKStartPosition = { - LATEST: "LATEST", - TRIM_HORIZON: "TRIM_HORIZON", -} as const; - -/** - * @public - */ -export type MSKStartPosition = (typeof MSKStartPosition)[keyof typeof MSKStartPosition]; - /** *

The parameters for using an MSK stream as a source.

* @public @@ -1168,21 +1036,6 @@ export namespace SelfManagedKafkaAccessConfigurationCredentials { } } -/** - * @public - * @enum - */ -export const SelfManagedKafkaStartPosition = { - LATEST: "LATEST", - TRIM_HORIZON: "TRIM_HORIZON", -} as const; - -/** - * @public - */ -export type SelfManagedKafkaStartPosition = - (typeof SelfManagedKafkaStartPosition)[keyof typeof SelfManagedKafkaStartPosition]; - /** *

This structure specifies the VPC subnets and security groups for the stream, and whether * a public IP address is to be used.

@@ -1428,21 +1281,6 @@ export interface PipeTargetCloudWatchLogsParameters { Timestamp?: string | undefined; } -/** - * @public - * @enum - */ -export const LaunchType = { - EC2: "EC2", - EXTERNAL: "EXTERNAL", - FARGATE: "FARGATE", -} as const; - -/** - * @public - */ -export type LaunchType = (typeof LaunchType)[keyof typeof LaunchType]; - /** *

This structure specifies the network configuration for an Amazon ECS * task.

@@ -1481,19 +1319,6 @@ export interface EcsEnvironmentVariable { value?: string | undefined; } -/** - * @public - * @enum - */ -export const EcsEnvironmentFileType = { - s3: "s3", -} as const; - -/** - * @public - */ -export type EcsEnvironmentFileType = (typeof EcsEnvironmentFileType)[keyof typeof EcsEnvironmentFileType]; - /** *

A list of files containing the environment variables to pass to a container. You can * specify up to ten environment files. The file must have a .env file extension. @@ -1536,20 +1361,6 @@ export interface EcsEnvironmentFile { value: string | undefined; } -/** - * @public - * @enum - */ -export const EcsResourceRequirementType = { - GPU: "GPU", - InferenceAccelerator: "InferenceAccelerator", -} as const; - -/** - * @public - */ -export type EcsResourceRequirementType = (typeof EcsResourceRequirementType)[keyof typeof EcsResourceRequirementType]; - /** *

The type and amount of a resource to assign to a container. The supported resource types * are GPUs and Elastic Inference accelerators. For more information, see Working with @@ -1760,20 +1571,6 @@ export interface EcsTaskOverride { TaskRoleArn?: string | undefined; } -/** - * @public - * @enum - */ -export const PlacementConstraintType = { - DISTINCT_INSTANCE: "distinctInstance", - MEMBER_OF: "memberOf", -} as const; - -/** - * @public - */ -export type PlacementConstraintType = (typeof PlacementConstraintType)[keyof typeof PlacementConstraintType]; - /** *

An object representing a constraint on task placement. To learn more, see Task Placement * Constraints in the Amazon Elastic Container Service Developer Guide.

@@ -1798,21 +1595,6 @@ export interface PlacementConstraint { expression?: string | undefined; } -/** - * @public - * @enum - */ -export const PlacementStrategyType = { - BINPACK: "binpack", - RANDOM: "random", - SPREAD: "spread", -} as const; - -/** - * @public - */ -export type PlacementStrategyType = (typeof PlacementStrategyType)[keyof typeof PlacementStrategyType]; - /** *

The task placement strategy for a task or service. To learn more, see Task Placement * Strategies in the Amazon Elastic Container Service Service Developer Guide.

@@ -1842,19 +1624,6 @@ export interface PlacementStrategy { field?: string | undefined; } -/** - * @public - * @enum - */ -export const PropagateTags = { - TASK_DEFINITION: "TASK_DEFINITION", -} as const; - -/** - * @public - */ -export type PropagateTags = (typeof PropagateTags)[keyof typeof PropagateTags]; - /** *

A key-value pair associated with an Amazon Web Services resource. In EventBridge, * rules and event buses support tagging.

@@ -2087,20 +1856,6 @@ export interface PipeTargetKinesisStreamParameters { PartitionKey: string | undefined; } -/** - * @public - * @enum - */ -export const PipeTargetInvocationType = { - FIRE_AND_FORGET: "FIRE_AND_FORGET", - REQUEST_RESPONSE: "REQUEST_RESPONSE", -} as const; - -/** - * @public - */ -export type PipeTargetInvocationType = (typeof PipeTargetInvocationType)[keyof typeof PipeTargetInvocationType]; - /** *

The parameters for using a Lambda function as a target.

* @public @@ -2267,19 +2022,6 @@ export interface PipeTargetStateMachineParameters { InvocationType?: PipeTargetInvocationType | undefined; } -/** - * @public - * @enum - */ -export const DimensionValueType = { - VARCHAR: "VARCHAR", -} as const; - -/** - * @public - */ -export type DimensionValueType = (typeof DimensionValueType)[keyof typeof DimensionValueType]; - /** *

Maps source data to a dimension in the target Timestream for LiveAnalytics * table.

@@ -2309,39 +2051,6 @@ export interface DimensionMapping { DimensionName: string | undefined; } -/** - * @public - * @enum - */ -export const EpochTimeUnit = { - MICROSECONDS: "MICROSECONDS", - MILLISECONDS: "MILLISECONDS", - NANOSECONDS: "NANOSECONDS", - SECONDS: "SECONDS", -} as const; - -/** - * @public - */ -export type EpochTimeUnit = (typeof EpochTimeUnit)[keyof typeof EpochTimeUnit]; - -/** - * @public - * @enum - */ -export const MeasureValueType = { - BIGINT: "BIGINT", - BOOLEAN: "BOOLEAN", - DOUBLE: "DOUBLE", - TIMESTAMP: "TIMESTAMP", - VARCHAR: "VARCHAR", -} as const; - -/** - * @public - */ -export type MeasureValueType = (typeof MeasureValueType)[keyof typeof MeasureValueType]; - /** *

A mapping of a source event data field to a measure in a Timestream for * LiveAnalytics record.

@@ -2416,20 +2125,6 @@ export interface SingleMeasureMapping { MeasureName: string | undefined; } -/** - * @public - * @enum - */ -export const TimeFieldType = { - EPOCH: "EPOCH", - TIMESTAMP_FORMAT: "TIMESTAMP_FORMAT", -} as const; - -/** - * @public - */ -export type TimeFieldType = (typeof TimeFieldType)[keyof typeof TimeFieldType]; - /** *

The parameters for using a Timestream for LiveAnalytics table as a * target.

@@ -2687,33 +2382,6 @@ export interface CreatePipeRequest { KmsKeyIdentifier?: string | undefined; } -/** - * @public - * @enum - */ -export const PipeState = { - CREATE_FAILED: "CREATE_FAILED", - CREATE_ROLLBACK_FAILED: "CREATE_ROLLBACK_FAILED", - CREATING: "CREATING", - DELETE_FAILED: "DELETE_FAILED", - DELETE_ROLLBACK_FAILED: "DELETE_ROLLBACK_FAILED", - DELETING: "DELETING", - RUNNING: "RUNNING", - STARTING: "STARTING", - START_FAILED: "START_FAILED", - STOPPED: "STOPPED", - STOPPING: "STOPPING", - STOP_FAILED: "STOP_FAILED", - UPDATE_FAILED: "UPDATE_FAILED", - UPDATE_ROLLBACK_FAILED: "UPDATE_ROLLBACK_FAILED", - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type PipeState = (typeof PipeState)[keyof typeof PipeState]; - /** * @public */ @@ -2784,22 +2452,6 @@ export interface DeletePipeRequest { Name: string | undefined; } -/** - * @public - * @enum - */ -export const RequestedPipeStateDescribeResponse = { - DELETED: "DELETED", - RUNNING: "RUNNING", - STOPPED: "STOPPED", -} as const; - -/** - * @public - */ -export type RequestedPipeStateDescribeResponse = - (typeof RequestedPipeStateDescribeResponse)[keyof typeof RequestedPipeStateDescribeResponse]; - /** * @public */ diff --git a/clients/client-proton/src/index.ts b/clients/client-proton/src/index.ts index 8fbc51185132..fcb4325caa01 100644 --- a/clients/client-proton/src/index.ts +++ b/clients/client-proton/src/index.ts @@ -142,6 +142,7 @@ export * from "./commands"; export * from "./pagination"; export * from "./waiters"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-proton/src/models/enums.ts b/clients/client-proton/src/models/enums.ts new file mode 100644 index 000000000000..5954de3258d4 --- /dev/null +++ b/clients/client-proton/src/models/enums.ts @@ -0,0 +1,378 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const EnvironmentAccountConnectionStatus = { + CONNECTED: "CONNECTED", + PENDING: "PENDING", + REJECTED: "REJECTED", +} as const; +/** + * @public + */ +export type EnvironmentAccountConnectionStatus = + (typeof EnvironmentAccountConnectionStatus)[keyof typeof EnvironmentAccountConnectionStatus]; + +/** + * @public + * @enum + */ +export const RepositoryProvider = { + BITBUCKET: "BITBUCKET", + GITHUB: "GITHUB", + GITHUB_ENTERPRISE: "GITHUB_ENTERPRISE", +} as const; +/** + * @public + */ +export type RepositoryProvider = (typeof RepositoryProvider)[keyof typeof RepositoryProvider]; + +/** + * @public + * @enum + */ +export const DeploymentStatus = { + CANCELLED: "CANCELLED", + CANCELLING: "CANCELLING", + DELETE_COMPLETE: "DELETE_COMPLETE", + DELETE_FAILED: "DELETE_FAILED", + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type DeploymentStatus = (typeof DeploymentStatus)[keyof typeof DeploymentStatus]; + +/** + * @public + * @enum + */ +export const Provisioning = { + CUSTOMER_MANAGED: "CUSTOMER_MANAGED", +} as const; +/** + * @public + */ +export type Provisioning = (typeof Provisioning)[keyof typeof Provisioning]; + +/** + * @public + * @enum + */ +export const ProvisionedResourceEngine = { + CLOUDFORMATION: "CLOUDFORMATION", + TERRAFORM: "TERRAFORM", +} as const; +/** + * @public + */ +export type ProvisionedResourceEngine = (typeof ProvisionedResourceEngine)[keyof typeof ProvisionedResourceEngine]; + +/** + * @public + * @enum + */ +export const ComponentDeploymentUpdateType = { + CURRENT_VERSION: "CURRENT_VERSION", + NONE: "NONE", +} as const; +/** + * @public + */ +export type ComponentDeploymentUpdateType = + (typeof ComponentDeploymentUpdateType)[keyof typeof ComponentDeploymentUpdateType]; + +/** + * @public + * @enum + */ +export const DeploymentTargetResourceType = { + COMPONENT: "COMPONENT", + ENVIRONMENT: "ENVIRONMENT", + SERVICE_INSTANCE: "SERVICE_INSTANCE", + SERVICE_PIPELINE: "SERVICE_PIPELINE", +} as const; +/** + * @public + */ +export type DeploymentTargetResourceType = + (typeof DeploymentTargetResourceType)[keyof typeof DeploymentTargetResourceType]; + +/** + * @public + * @enum + */ +export const EnvironmentAccountConnectionRequesterAccountType = { + ENVIRONMENT_ACCOUNT: "ENVIRONMENT_ACCOUNT", + MANAGEMENT_ACCOUNT: "MANAGEMENT_ACCOUNT", +} as const; +/** + * @public + */ +export type EnvironmentAccountConnectionRequesterAccountType = + (typeof EnvironmentAccountConnectionRequesterAccountType)[keyof typeof EnvironmentAccountConnectionRequesterAccountType]; + +/** + * @public + * @enum + */ +export const DeploymentUpdateType = { + CURRENT_VERSION: "CURRENT_VERSION", + MAJOR_VERSION: "MAJOR_VERSION", + MINOR_VERSION: "MINOR_VERSION", + NONE: "NONE", +} as const; +/** + * @public + */ +export type DeploymentUpdateType = (typeof DeploymentUpdateType)[keyof typeof DeploymentUpdateType]; + +/** + * @public + * @enum + */ +export const TemplateVersionStatus = { + DRAFT: "DRAFT", + PUBLISHED: "PUBLISHED", + REGISTRATION_FAILED: "REGISTRATION_FAILED", + REGISTRATION_IN_PROGRESS: "REGISTRATION_IN_PROGRESS", +} as const; +/** + * @public + */ +export type TemplateVersionStatus = (typeof TemplateVersionStatus)[keyof typeof TemplateVersionStatus]; + +/** + * @public + * @enum + */ +export const SyncType = { + /** + * Syncs services and service instances to Proton. + * + */ + SERVICE_SYNC: "SERVICE_SYNC", + /** + * Syncs environment and service templates to Proton. + * + */ + TEMPLATE_SYNC: "TEMPLATE_SYNC", +} as const; +/** + * @public + */ +export type SyncType = (typeof SyncType)[keyof typeof SyncType]; + +/** + * @public + * @enum + */ +export const RepositorySyncStatus = { + /** + * The repository sync attempt has failed. + * + */ + FAILED: "FAILED", + /** + * A repository sync attempt has been created and will begin soon. + * + */ + INITIATED: "INITIATED", + /** + * A repository sync attempt has started and work is being done to reconcile the branch. + * + */ + IN_PROGRESS: "IN_PROGRESS", + /** + * The repository sync attempt didn't execute and was queued. + * + */ + QUEUED: "QUEUED", + /** + * The repository sync attempt has completed successfully. + * + */ + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type RepositorySyncStatus = (typeof RepositorySyncStatus)[keyof typeof RepositorySyncStatus]; + +/** + * @public + * @enum + */ +export const ResourceSyncStatus = { + /** + * Syncing has failed. + * + */ + FAILED: "FAILED", + /** + * A sync attempt has been created and will begin soon. + * + */ + INITIATED: "INITIATED", + /** + * Syncing has started and work is being done to reconcile state. + * + */ + IN_PROGRESS: "IN_PROGRESS", + /** + * Syncing has completed successfully. + * + */ + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type ResourceSyncStatus = (typeof ResourceSyncStatus)[keyof typeof ResourceSyncStatus]; + +/** + * @public + * @enum + */ +export const TemplateType = { + ENVIRONMENT: "ENVIRONMENT", + SERVICE: "SERVICE", +} as const; +/** + * @public + */ +export type TemplateType = (typeof TemplateType)[keyof typeof TemplateType]; + +/** + * @public + * @enum + */ +export const ResourceDeploymentStatus = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type ResourceDeploymentStatus = (typeof ResourceDeploymentStatus)[keyof typeof ResourceDeploymentStatus]; + +/** + * @public + * @enum + */ +export const ListServiceInstancesFilterBy = { + CREATED_AT_AFTER: "createdAtAfter", + CREATED_AT_BEFORE: "createdAtBefore", + DEPLOYED_TEMPLATE_VERSION_STATUS: "deployedTemplateVersionStatus", + DEPLOYMENT_STATUS: "deploymentStatus", + ENVIRONMENT_NAME: "environmentName", + LAST_DEPLOYMENT_ATTEMPTED_AT_AFTER: "lastDeploymentAttemptedAtAfter", + LAST_DEPLOYMENT_ATTEMPTED_AT_BEFORE: "lastDeploymentAttemptedAtBefore", + NAME: "name", + SERVICE_NAME: "serviceName", + TEMPLATE_NAME: "templateName", +} as const; +/** + * @public + */ +export type ListServiceInstancesFilterBy = + (typeof ListServiceInstancesFilterBy)[keyof typeof ListServiceInstancesFilterBy]; + +/** + * @public + * @enum + */ +export const ListServiceInstancesSortBy = { + CREATED_AT: "createdAt", + DEPLOYMENT_STATUS: "deploymentStatus", + ENVIRONMENT_NAME: "environmentName", + LAST_DEPLOYMENT_ATTEMPTED_AT: "lastDeploymentAttemptedAt", + NAME: "name", + SERVICE_NAME: "serviceName", + TEMPLATE_NAME: "templateName", +} as const; +/** + * @public + */ +export type ListServiceInstancesSortBy = (typeof ListServiceInstancesSortBy)[keyof typeof ListServiceInstancesSortBy]; + +/** + * @public + * @enum + */ +export const SortOrder = { + ASCENDING: "ASCENDING", + DESCENDING: "DESCENDING", +} as const; +/** + * @public + */ +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; + +/** + * @public + * @enum + */ +export const ServiceStatus = { + ACTIVE: "ACTIVE", + CREATE_FAILED: "CREATE_FAILED", + CREATE_FAILED_CLEANUP_COMPLETE: "CREATE_FAILED_CLEANUP_COMPLETE", + CREATE_FAILED_CLEANUP_FAILED: "CREATE_FAILED_CLEANUP_FAILED", + CREATE_FAILED_CLEANUP_IN_PROGRESS: "CREATE_FAILED_CLEANUP_IN_PROGRESS", + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + DELETE_FAILED: "DELETE_FAILED", + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", + UPDATE_COMPLETE_CLEANUP_FAILED: "UPDATE_COMPLETE_CLEANUP_FAILED", + UPDATE_FAILED: "UPDATE_FAILED", + UPDATE_FAILED_CLEANUP_COMPLETE: "UPDATE_FAILED_CLEANUP_COMPLETE", + UPDATE_FAILED_CLEANUP_FAILED: "UPDATE_FAILED_CLEANUP_FAILED", + UPDATE_FAILED_CLEANUP_IN_PROGRESS: "UPDATE_FAILED_CLEANUP_IN_PROGRESS", + UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS", +} as const; +/** + * @public + */ +export type ServiceStatus = (typeof ServiceStatus)[keyof typeof ServiceStatus]; + +/** + * @public + * @enum + */ +export const BlockerStatus = { + ACTIVE: "ACTIVE", + RESOLVED: "RESOLVED", +} as const; +/** + * @public + */ +export type BlockerStatus = (typeof BlockerStatus)[keyof typeof BlockerStatus]; + +/** + * @public + * @enum + */ +export const BlockerType = { + AUTOMATED: "AUTOMATED", +} as const; +/** + * @public + */ +export type BlockerType = (typeof BlockerType)[keyof typeof BlockerType]; + +/** + * @public + * @enum + */ +export const ServiceTemplateSupportedComponentSourceType = { + DIRECTLY_DEFINED: "DIRECTLY_DEFINED", +} as const; +/** + * @public + */ +export type ServiceTemplateSupportedComponentSourceType = + (typeof ServiceTemplateSupportedComponentSourceType)[keyof typeof ServiceTemplateSupportedComponentSourceType]; diff --git a/clients/client-proton/src/models/models_0.ts b/clients/client-proton/src/models/models_0.ts index 6162be10119e..37ba24e7063a 100644 --- a/clients/client-proton/src/models/models_0.ts +++ b/clients/client-proton/src/models/models_0.ts @@ -1,4 +1,29 @@ // smithy-typescript generated code +import { + BlockerStatus, + BlockerType, + ComponentDeploymentUpdateType, + DeploymentStatus, + DeploymentTargetResourceType, + DeploymentUpdateType, + EnvironmentAccountConnectionRequesterAccountType, + EnvironmentAccountConnectionStatus, + ListServiceInstancesFilterBy, + ListServiceInstancesSortBy, + ProvisionedResourceEngine, + Provisioning, + RepositoryProvider, + RepositorySyncStatus, + ResourceDeploymentStatus, + ResourceSyncStatus, + ServiceStatus, + ServiceTemplateSupportedComponentSourceType, + SortOrder, + SyncType, + TemplateType, + TemplateVersionStatus, +} from "./enums"; + /** * @public */ @@ -10,22 +35,6 @@ export interface AcceptEnvironmentAccountConnectionInput { id: string | undefined; } -/** - * @public - * @enum - */ -export const EnvironmentAccountConnectionStatus = { - CONNECTED: "CONNECTED", - PENDING: "PENDING", - REJECTED: "REJECTED", -} as const; - -/** - * @public - */ -export type EnvironmentAccountConnectionStatus = - (typeof EnvironmentAccountConnectionStatus)[keyof typeof EnvironmentAccountConnectionStatus]; - /** *

Detailed data of an Proton environment account connection resource.

* @public @@ -116,21 +125,6 @@ export interface AcceptEnvironmentAccountConnectionOutput { environmentAccountConnection: EnvironmentAccountConnection | undefined; } -/** - * @public - * @enum - */ -export const RepositoryProvider = { - BITBUCKET: "BITBUCKET", - GITHUB: "GITHUB", - GITHUB_ENTERPRISE: "GITHUB_ENTERPRISE", -} as const; - -/** - * @public - */ -export type RepositoryProvider = (typeof RepositoryProvider)[keyof typeof RepositoryProvider]; - /** *

Detail data for a linked repository branch.

* @public @@ -286,26 +280,6 @@ export interface CancelComponentDeploymentInput { componentName: string | undefined; } -/** - * @public - * @enum - */ -export const DeploymentStatus = { - CANCELLED: "CANCELLED", - CANCELLING: "CANCELLING", - DELETE_COMPLETE: "DELETE_COMPLETE", - DELETE_FAILED: "DELETE_FAILED", - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type DeploymentStatus = (typeof DeploymentStatus)[keyof typeof DeploymentStatus]; - /** *

Detailed data of an Proton component resource.

*

For more information about components, see @@ -433,19 +407,6 @@ export interface CancelEnvironmentDeploymentInput { environmentName: string | undefined; } -/** - * @public - * @enum - */ -export const Provisioning = { - CUSTOMER_MANAGED: "CUSTOMER_MANAGED", -} as const; - -/** - * @public - */ -export type Provisioning = (typeof Provisioning)[keyof typeof Provisioning]; - /** *

Detailed data of an Proton environment resource. An Proton environment is a set of resources shared across Proton services.

* @public @@ -907,20 +868,6 @@ export interface ListComponentProvisionedResourcesInput { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const ProvisionedResourceEngine = { - CLOUDFORMATION: "CLOUDFORMATION", - TERRAFORM: "TERRAFORM", -} as const; - -/** - * @public - */ -export type ProvisionedResourceEngine = (typeof ProvisionedResourceEngine)[keyof typeof ProvisionedResourceEngine]; - /** *

Detail data for a provisioned resource.

* @public @@ -1254,21 +1201,6 @@ export interface ListComponentsOutput { components: ComponentSummary[] | undefined; } -/** - * @public - * @enum - */ -export const ComponentDeploymentUpdateType = { - CURRENT_VERSION: "CURRENT_VERSION", - NONE: "NONE", -} as const; - -/** - * @public - */ -export type ComponentDeploymentUpdateType = - (typeof ComponentDeploymentUpdateType)[keyof typeof ComponentDeploymentUpdateType]; - /** * @public */ @@ -1599,23 +1531,6 @@ export namespace DeploymentState { } } -/** - * @public - * @enum - */ -export const DeploymentTargetResourceType = { - COMPONENT: "COMPONENT", - ENVIRONMENT: "ENVIRONMENT", - SERVICE_INSTANCE: "SERVICE_INSTANCE", - SERVICE_PIPELINE: "SERVICE_PIPELINE", -} as const; - -/** - * @public - */ -export type DeploymentTargetResourceType = - (typeof DeploymentTargetResourceType)[keyof typeof DeploymentTargetResourceType]; - /** *

The detailed information about a deployment.

* @public @@ -2058,21 +1973,6 @@ export interface GetEnvironmentAccountConnectionOutput { environmentAccountConnection: EnvironmentAccountConnection | undefined; } -/** - * @public - * @enum - */ -export const EnvironmentAccountConnectionRequesterAccountType = { - ENVIRONMENT_ACCOUNT: "ENVIRONMENT_ACCOUNT", - MANAGEMENT_ACCOUNT: "MANAGEMENT_ACCOUNT", -} as const; - -/** - * @public - */ -export type EnvironmentAccountConnectionRequesterAccountType = - (typeof EnvironmentAccountConnectionRequesterAccountType)[keyof typeof EnvironmentAccountConnectionRequesterAccountType]; - /** * @public */ @@ -2676,22 +2576,6 @@ export interface ListEnvironmentsOutput { environments: EnvironmentSummary[] | undefined; } -/** - * @public - * @enum - */ -export const DeploymentUpdateType = { - CURRENT_VERSION: "CURRENT_VERSION", - MAJOR_VERSION: "MAJOR_VERSION", - MINOR_VERSION: "MINOR_VERSION", - NONE: "NONE", -} as const; - -/** - * @public - */ -export type DeploymentUpdateType = (typeof DeploymentUpdateType)[keyof typeof DeploymentUpdateType]; - /** * @public */ @@ -3200,22 +3084,6 @@ export interface CreateEnvironmentTemplateVersionInput { tags?: Tag[] | undefined; } -/** - * @public - * @enum - */ -export const TemplateVersionStatus = { - DRAFT: "DRAFT", - PUBLISHED: "PUBLISHED", - REGISTRATION_FAILED: "REGISTRATION_FAILED", - REGISTRATION_IN_PROGRESS: "REGISTRATION_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type TemplateVersionStatus = (typeof TemplateVersionStatus)[keyof typeof TemplateVersionStatus]; - /** *

The environment template version data.

* @public @@ -3529,28 +3397,6 @@ export interface UpdateEnvironmentTemplateVersionOutput { environmentTemplateVersion: EnvironmentTemplateVersion | undefined; } -/** - * @public - * @enum - */ -export const SyncType = { - /** - * Syncs services and service instances to Proton. - * - */ - SERVICE_SYNC: "SERVICE_SYNC", - /** - * Syncs environment and service templates to Proton. - * - */ - TEMPLATE_SYNC: "TEMPLATE_SYNC", -} as const; - -/** - * @public - */ -export type SyncType = (typeof SyncType)[keyof typeof SyncType]; - /** * @public */ @@ -3610,43 +3456,6 @@ export interface RepositorySyncEvent { event: string | undefined; } -/** - * @public - * @enum - */ -export const RepositorySyncStatus = { - /** - * The repository sync attempt has failed. - * - */ - FAILED: "FAILED", - /** - * A repository sync attempt has been created and will begin soon. - * - */ - INITIATED: "INITIATED", - /** - * A repository sync attempt has started and work is being done to reconcile the branch. - * - */ - IN_PROGRESS: "IN_PROGRESS", - /** - * The repository sync attempt didn't execute and was queued. - * - */ - QUEUED: "QUEUED", - /** - * The repository sync attempt has completed successfully. - * - */ - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type RepositorySyncStatus = (typeof RepositorySyncStatus)[keyof typeof RepositorySyncStatus]; - /** *

Detail data for a repository sync attempt activated by a push to a repository.

* @public @@ -3872,38 +3681,6 @@ export interface ResourceSyncEvent { event: string | undefined; } -/** - * @public - * @enum - */ -export const ResourceSyncStatus = { - /** - * Syncing has failed. - * - */ - FAILED: "FAILED", - /** - * A sync attempt has been created and will begin soon. - * - */ - INITIATED: "INITIATED", - /** - * Syncing has started and work is being done to reconcile state. - * - */ - IN_PROGRESS: "IN_PROGRESS", - /** - * Syncing has completed successfully. - * - */ - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type ResourceSyncStatus = (typeof ResourceSyncStatus)[keyof typeof ResourceSyncStatus]; - /** *

Detail data for a resource sync attempt activated by a push to a repository.

* @public @@ -3969,20 +3746,6 @@ export interface GetServiceInstanceSyncStatusOutput { desiredState?: Revision | undefined; } -/** - * @public - * @enum - */ -export const TemplateType = { - ENVIRONMENT: "ENVIRONMENT", - SERVICE: "SERVICE", -} as const; - -/** - * @public - */ -export type TemplateType = (typeof TemplateType)[keyof typeof TemplateType]; - /** * @public */ @@ -4149,21 +3912,6 @@ export interface ListTagsForResourceOutput { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const ResourceDeploymentStatus = { - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type ResourceDeploymentStatus = (typeof ResourceDeploymentStatus)[keyof typeof ResourceDeploymentStatus]; - /** * @public */ @@ -4592,29 +4340,6 @@ export interface GetServiceInstanceOutput { serviceInstance: ServiceInstance | undefined; } -/** - * @public - * @enum - */ -export const ListServiceInstancesFilterBy = { - CREATED_AT_AFTER: "createdAtAfter", - CREATED_AT_BEFORE: "createdAtBefore", - DEPLOYED_TEMPLATE_VERSION_STATUS: "deployedTemplateVersionStatus", - DEPLOYMENT_STATUS: "deploymentStatus", - ENVIRONMENT_NAME: "environmentName", - LAST_DEPLOYMENT_ATTEMPTED_AT_AFTER: "lastDeploymentAttemptedAtAfter", - LAST_DEPLOYMENT_ATTEMPTED_AT_BEFORE: "lastDeploymentAttemptedAtBefore", - NAME: "name", - SERVICE_NAME: "serviceName", - TEMPLATE_NAME: "templateName", -} as const; - -/** - * @public - */ -export type ListServiceInstancesFilterBy = - (typeof ListServiceInstancesFilterBy)[keyof typeof ListServiceInstancesFilterBy]; - /** *

A filtering criterion to scope down the result list of the ListServiceInstances action.

* @public @@ -4636,39 +4361,6 @@ export interface ListServiceInstancesFilter { value?: string | undefined; } -/** - * @public - * @enum - */ -export const ListServiceInstancesSortBy = { - CREATED_AT: "createdAt", - DEPLOYMENT_STATUS: "deploymentStatus", - ENVIRONMENT_NAME: "environmentName", - LAST_DEPLOYMENT_ATTEMPTED_AT: "lastDeploymentAttemptedAt", - NAME: "name", - SERVICE_NAME: "serviceName", - TEMPLATE_NAME: "templateName", -} as const; - -/** - * @public - */ -export type ListServiceInstancesSortBy = (typeof ListServiceInstancesSortBy)[keyof typeof ListServiceInstancesSortBy]; - -/** - * @public - * @enum - */ -export const SortOrder = { - ASCENDING: "ASCENDING", - DESCENDING: "DESCENDING", -} as const; - -/** - * @public - */ -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; - /** * @public */ @@ -5169,32 +4861,6 @@ export interface CreateServiceInput { tags?: Tag[] | undefined; } -/** - * @public - * @enum - */ -export const ServiceStatus = { - ACTIVE: "ACTIVE", - CREATE_FAILED: "CREATE_FAILED", - CREATE_FAILED_CLEANUP_COMPLETE: "CREATE_FAILED_CLEANUP_COMPLETE", - CREATE_FAILED_CLEANUP_FAILED: "CREATE_FAILED_CLEANUP_FAILED", - CREATE_FAILED_CLEANUP_IN_PROGRESS: "CREATE_FAILED_CLEANUP_IN_PROGRESS", - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - DELETE_FAILED: "DELETE_FAILED", - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", - UPDATE_COMPLETE_CLEANUP_FAILED: "UPDATE_COMPLETE_CLEANUP_FAILED", - UPDATE_FAILED: "UPDATE_FAILED", - UPDATE_FAILED_CLEANUP_COMPLETE: "UPDATE_FAILED_CLEANUP_COMPLETE", - UPDATE_FAILED_CLEANUP_FAILED: "UPDATE_FAILED_CLEANUP_FAILED", - UPDATE_FAILED_CLEANUP_IN_PROGRESS: "UPDATE_FAILED_CLEANUP_IN_PROGRESS", - UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type ServiceStatus = (typeof ServiceStatus)[keyof typeof ServiceStatus]; - /** *

Detailed data of an Proton service resource.

* @public @@ -5502,33 +5168,6 @@ export interface SyncBlockerContext { value: string | undefined; } -/** - * @public - * @enum - */ -export const BlockerStatus = { - ACTIVE: "ACTIVE", - RESOLVED: "RESOLVED", -} as const; - -/** - * @public - */ -export type BlockerStatus = (typeof BlockerStatus)[keyof typeof BlockerStatus]; - -/** - * @public - * @enum - */ -export const BlockerType = { - AUTOMATED: "AUTOMATED", -} as const; - -/** - * @public - */ -export type BlockerType = (typeof BlockerType)[keyof typeof BlockerType]; - /** *

Detailed data of the sync blocker.

* @public @@ -6154,20 +5793,6 @@ export interface CompatibleEnvironmentTemplateInput { majorVersion: string | undefined; } -/** - * @public - * @enum - */ -export const ServiceTemplateSupportedComponentSourceType = { - DIRECTLY_DEFINED: "DIRECTLY_DEFINED", -} as const; - -/** - * @public - */ -export type ServiceTemplateSupportedComponentSourceType = - (typeof ServiceTemplateSupportedComponentSourceType)[keyof typeof ServiceTemplateSupportedComponentSourceType]; - /** * @public */ diff --git a/clients/client-qbusiness/src/commands/UpdateChatControlsConfigurationCommand.ts b/clients/client-qbusiness/src/commands/UpdateChatControlsConfigurationCommand.ts index 44ce99f4b919..98900ea63d06 100644 --- a/clients/client-qbusiness/src/commands/UpdateChatControlsConfigurationCommand.ts +++ b/clients/client-qbusiness/src/commands/UpdateChatControlsConfigurationCommand.ts @@ -4,8 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { UpdateChatControlsConfigurationRequest } from "../models/models_0"; -import { UpdateChatControlsConfigurationResponse } from "../models/models_1"; +import { UpdateChatControlsConfigurationRequest, UpdateChatControlsConfigurationResponse } from "../models/models_0"; import { QBusinessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QBusinessClient"; import { UpdateChatControlsConfiguration } from "../schemas/schemas_0"; diff --git a/clients/client-qbusiness/src/models/enums.ts b/clients/client-qbusiness/src/models/enums.ts index 9090c0c9e5eb..0b829355b487 100644 --- a/clients/client-qbusiness/src/models/enums.ts +++ b/clients/client-qbusiness/src/models/enums.ts @@ -505,6 +505,19 @@ export const RetrieverStatus = { */ export type RetrieverStatus = (typeof RetrieverStatus)[keyof typeof RetrieverStatus]; +/** + * @public + * @enum + */ +export const BrowserExtension = { + CHROME: "CHROME", + FIREFOX: "FIREFOX", +} as const; +/** + * @public + */ +export type BrowserExtension = (typeof BrowserExtension)[keyof typeof BrowserExtension]; + /** * @public * @enum diff --git a/clients/client-qbusiness/src/models/models_0.ts b/clients/client-qbusiness/src/models/models_0.ts index 27f9635fe9e1..461f40346e3a 100644 --- a/clients/client-qbusiness/src/models/models_0.ts +++ b/clients/client-qbusiness/src/models/models_0.ts @@ -12,6 +12,7 @@ import { AudioExtractionStatus, AudioExtractionType, AutoSubscriptionStatus, + BrowserExtension, ChatResponseConfigurationStatus, ContentType, CreatorModeControl, @@ -3433,20 +3434,6 @@ export interface UpdateApplicationRequest { */ export interface UpdateApplicationResponse {} -/** - * @public - * @enum - */ -export const BrowserExtension = { - CHROME: "CHROME", - FIREFOX: "FIREFOX", -} as const; - -/** - * @public - */ -export type BrowserExtension = (typeof BrowserExtension)[keyof typeof BrowserExtension]; - /** *

The container for browser extension configuration for an Amazon Q Business web experience.

* @public @@ -7946,3 +7933,8 @@ export interface UpdateChatControlsConfigurationRequest { */ hallucinationReductionConfiguration?: HallucinationReductionConfiguration | undefined; } + +/** + * @public + */ +export interface UpdateChatControlsConfigurationResponse {} diff --git a/clients/client-qbusiness/src/models/models_1.ts b/clients/client-qbusiness/src/models/models_1.ts index b23ab529593a..aa884d46a03b 100644 --- a/clients/client-qbusiness/src/models/models_1.ts +++ b/clients/client-qbusiness/src/models/models_1.ts @@ -20,11 +20,6 @@ import { UserAlias, } from "./models_0"; -/** - * @public - */ -export interface UpdateChatControlsConfigurationResponse {} - /** * @public */ diff --git a/clients/client-qconnect/src/commands/CreateMessageTemplateAttachmentCommand.ts b/clients/client-qconnect/src/commands/CreateMessageTemplateAttachmentCommand.ts index f585e8732977..3be38ba45c96 100644 --- a/clients/client-qconnect/src/commands/CreateMessageTemplateAttachmentCommand.ts +++ b/clients/client-qconnect/src/commands/CreateMessageTemplateAttachmentCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { CreateMessageTemplateAttachmentRequest, CreateMessageTemplateAttachmentResponse } from "../models/models_1"; +import { CreateMessageTemplateAttachmentRequest, CreateMessageTemplateAttachmentResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { CreateMessageTemplateAttachment } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/CreateMessageTemplateCommand.ts b/clients/client-qconnect/src/commands/CreateMessageTemplateCommand.ts index 3db377ef9120..493872b1581e 100644 --- a/clients/client-qconnect/src/commands/CreateMessageTemplateCommand.ts +++ b/clients/client-qconnect/src/commands/CreateMessageTemplateCommand.ts @@ -4,8 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { CreateMessageTemplateRequest } from "../models/models_0"; -import { CreateMessageTemplateResponse } from "../models/models_1"; +import { CreateMessageTemplateRequest, CreateMessageTemplateResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { CreateMessageTemplate } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/CreateMessageTemplateVersionCommand.ts b/clients/client-qconnect/src/commands/CreateMessageTemplateVersionCommand.ts index 5f0e5bb43672..957db7a0e1e2 100644 --- a/clients/client-qconnect/src/commands/CreateMessageTemplateVersionCommand.ts +++ b/clients/client-qconnect/src/commands/CreateMessageTemplateVersionCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { CreateMessageTemplateVersionRequest, CreateMessageTemplateVersionResponse } from "../models/models_1"; +import { CreateMessageTemplateVersionRequest, CreateMessageTemplateVersionResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { CreateMessageTemplateVersion } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/CreateQuickResponseCommand.ts b/clients/client-qconnect/src/commands/CreateQuickResponseCommand.ts index edc6c81ac46c..3c36c7e988f0 100644 --- a/clients/client-qconnect/src/commands/CreateQuickResponseCommand.ts +++ b/clients/client-qconnect/src/commands/CreateQuickResponseCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { CreateQuickResponseRequest, CreateQuickResponseResponse } from "../models/models_1"; +import { CreateQuickResponseRequest, CreateQuickResponseResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { CreateQuickResponse } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/DeactivateMessageTemplateCommand.ts b/clients/client-qconnect/src/commands/DeactivateMessageTemplateCommand.ts index 2139456b3c65..fc0ab1bb3e88 100644 --- a/clients/client-qconnect/src/commands/DeactivateMessageTemplateCommand.ts +++ b/clients/client-qconnect/src/commands/DeactivateMessageTemplateCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { DeactivateMessageTemplateRequest, DeactivateMessageTemplateResponse } from "../models/models_1"; +import { DeactivateMessageTemplateRequest, DeactivateMessageTemplateResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { DeactivateMessageTemplate } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/DeleteImportJobCommand.ts b/clients/client-qconnect/src/commands/DeleteImportJobCommand.ts index 4d7bb894f6e5..9fdf6d0a20d9 100644 --- a/clients/client-qconnect/src/commands/DeleteImportJobCommand.ts +++ b/clients/client-qconnect/src/commands/DeleteImportJobCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { DeleteImportJobRequest, DeleteImportJobResponse } from "../models/models_1"; +import { DeleteImportJobRequest, DeleteImportJobResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { DeleteImportJob } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/DeleteKnowledgeBaseCommand.ts b/clients/client-qconnect/src/commands/DeleteKnowledgeBaseCommand.ts index ab12a0085940..d9b1b68e917f 100644 --- a/clients/client-qconnect/src/commands/DeleteKnowledgeBaseCommand.ts +++ b/clients/client-qconnect/src/commands/DeleteKnowledgeBaseCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { DeleteKnowledgeBaseRequest, DeleteKnowledgeBaseResponse } from "../models/models_1"; +import { DeleteKnowledgeBaseRequest, DeleteKnowledgeBaseResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { DeleteKnowledgeBase } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/DeleteMessageTemplateAttachmentCommand.ts b/clients/client-qconnect/src/commands/DeleteMessageTemplateAttachmentCommand.ts index bf3a79b381b9..9e831c18078a 100644 --- a/clients/client-qconnect/src/commands/DeleteMessageTemplateAttachmentCommand.ts +++ b/clients/client-qconnect/src/commands/DeleteMessageTemplateAttachmentCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { DeleteMessageTemplateAttachmentRequest, DeleteMessageTemplateAttachmentResponse } from "../models/models_1"; +import { DeleteMessageTemplateAttachmentRequest, DeleteMessageTemplateAttachmentResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { DeleteMessageTemplateAttachment } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/DeleteMessageTemplateCommand.ts b/clients/client-qconnect/src/commands/DeleteMessageTemplateCommand.ts index 0249ec13bfd3..f221eb07eae3 100644 --- a/clients/client-qconnect/src/commands/DeleteMessageTemplateCommand.ts +++ b/clients/client-qconnect/src/commands/DeleteMessageTemplateCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { DeleteMessageTemplateRequest, DeleteMessageTemplateResponse } from "../models/models_1"; +import { DeleteMessageTemplateRequest, DeleteMessageTemplateResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { DeleteMessageTemplate } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/DeleteQuickResponseCommand.ts b/clients/client-qconnect/src/commands/DeleteQuickResponseCommand.ts index 035fe2a3e2e4..0e117ff7ee5f 100644 --- a/clients/client-qconnect/src/commands/DeleteQuickResponseCommand.ts +++ b/clients/client-qconnect/src/commands/DeleteQuickResponseCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { DeleteQuickResponseRequest, DeleteQuickResponseResponse } from "../models/models_1"; +import { DeleteQuickResponseRequest, DeleteQuickResponseResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { DeleteQuickResponse } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/GetImportJobCommand.ts b/clients/client-qconnect/src/commands/GetImportJobCommand.ts index 54f603cef619..4743e210cf05 100644 --- a/clients/client-qconnect/src/commands/GetImportJobCommand.ts +++ b/clients/client-qconnect/src/commands/GetImportJobCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { GetImportJobRequest, GetImportJobResponse } from "../models/models_1"; +import { GetImportJobRequest, GetImportJobResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { GetImportJob } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/GetKnowledgeBaseCommand.ts b/clients/client-qconnect/src/commands/GetKnowledgeBaseCommand.ts index 82613358002c..c1c081b91896 100644 --- a/clients/client-qconnect/src/commands/GetKnowledgeBaseCommand.ts +++ b/clients/client-qconnect/src/commands/GetKnowledgeBaseCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { GetKnowledgeBaseRequest, GetKnowledgeBaseResponse } from "../models/models_1"; +import { GetKnowledgeBaseRequest, GetKnowledgeBaseResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { GetKnowledgeBase } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/GetMessageTemplateCommand.ts b/clients/client-qconnect/src/commands/GetMessageTemplateCommand.ts index 2988516a60a6..ba4a329e425c 100644 --- a/clients/client-qconnect/src/commands/GetMessageTemplateCommand.ts +++ b/clients/client-qconnect/src/commands/GetMessageTemplateCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { GetMessageTemplateRequest, GetMessageTemplateResponse } from "../models/models_1"; +import { GetMessageTemplateRequest, GetMessageTemplateResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { GetMessageTemplate } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/GetQuickResponseCommand.ts b/clients/client-qconnect/src/commands/GetQuickResponseCommand.ts index 1d56c6d32fc8..4547225c107b 100644 --- a/clients/client-qconnect/src/commands/GetQuickResponseCommand.ts +++ b/clients/client-qconnect/src/commands/GetQuickResponseCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { GetQuickResponseRequest, GetQuickResponseResponse } from "../models/models_1"; +import { GetQuickResponseRequest, GetQuickResponseResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { GetQuickResponse } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/ListImportJobsCommand.ts b/clients/client-qconnect/src/commands/ListImportJobsCommand.ts index 89bfc518c227..37adb0fba363 100644 --- a/clients/client-qconnect/src/commands/ListImportJobsCommand.ts +++ b/clients/client-qconnect/src/commands/ListImportJobsCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { ListImportJobsRequest, ListImportJobsResponse } from "../models/models_1"; +import { ListImportJobsRequest, ListImportJobsResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { ListImportJobs } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/ListKnowledgeBasesCommand.ts b/clients/client-qconnect/src/commands/ListKnowledgeBasesCommand.ts index 65836c932162..431bf27e6720 100644 --- a/clients/client-qconnect/src/commands/ListKnowledgeBasesCommand.ts +++ b/clients/client-qconnect/src/commands/ListKnowledgeBasesCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { ListKnowledgeBasesRequest, ListKnowledgeBasesResponse } from "../models/models_1"; +import { ListKnowledgeBasesRequest, ListKnowledgeBasesResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { ListKnowledgeBases } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/ListMessageTemplateVersionsCommand.ts b/clients/client-qconnect/src/commands/ListMessageTemplateVersionsCommand.ts index 458b0624ce8e..42afcff8b08d 100644 --- a/clients/client-qconnect/src/commands/ListMessageTemplateVersionsCommand.ts +++ b/clients/client-qconnect/src/commands/ListMessageTemplateVersionsCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { ListMessageTemplateVersionsRequest, ListMessageTemplateVersionsResponse } from "../models/models_1"; +import { ListMessageTemplateVersionsRequest, ListMessageTemplateVersionsResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { ListMessageTemplateVersions } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/ListMessageTemplatesCommand.ts b/clients/client-qconnect/src/commands/ListMessageTemplatesCommand.ts index e490f4099856..368bba21ea26 100644 --- a/clients/client-qconnect/src/commands/ListMessageTemplatesCommand.ts +++ b/clients/client-qconnect/src/commands/ListMessageTemplatesCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { ListMessageTemplatesRequest, ListMessageTemplatesResponse } from "../models/models_1"; +import { ListMessageTemplatesRequest, ListMessageTemplatesResponse } from "../models/models_0"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { ListMessageTemplates } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/commands/RenderMessageTemplateCommand.ts b/clients/client-qconnect/src/commands/RenderMessageTemplateCommand.ts index aa76f44d8d1f..b03a90141a00 100644 --- a/clients/client-qconnect/src/commands/RenderMessageTemplateCommand.ts +++ b/clients/client-qconnect/src/commands/RenderMessageTemplateCommand.ts @@ -4,7 +4,8 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { RenderMessageTemplateRequest, RenderMessageTemplateResponse } from "../models/models_1"; +import { RenderMessageTemplateRequest } from "../models/models_0"; +import { RenderMessageTemplateResponse } from "../models/models_1"; import { QConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../QConnectClient"; import { RenderMessageTemplate } from "../schemas/schemas_0"; diff --git a/clients/client-qconnect/src/index.ts b/clients/client-qconnect/src/index.ts index 6516734fa8dd..e596b56288bf 100644 --- a/clients/client-qconnect/src/index.ts +++ b/clients/client-qconnect/src/index.ts @@ -13,6 +13,7 @@ export type { QConnectExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; export type * from "./models/models_1"; diff --git a/clients/client-qconnect/src/models/enums.ts b/clients/client-qconnect/src/models/enums.ts new file mode 100644 index 000000000000..4f8f1c83560b --- /dev/null +++ b/clients/client-qconnect/src/models/enums.ts @@ -0,0 +1,895 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const KnowledgeBaseSearchType = { + HYBRID: "HYBRID", + SEMANTIC: "SEMANTIC", +} as const; +/** + * @public + */ +export type KnowledgeBaseSearchType = (typeof KnowledgeBaseSearchType)[keyof typeof KnowledgeBaseSearchType]; + +/** + * @public + * @enum + */ +export const AIAgentAssociationConfigurationType = { + KNOWLEDGE_BASE: "KNOWLEDGE_BASE", +} as const; +/** + * @public + */ +export type AIAgentAssociationConfigurationType = + (typeof AIAgentAssociationConfigurationType)[keyof typeof AIAgentAssociationConfigurationType]; + +/** + * @public + * @enum + */ +export const AIAgentType = { + ANSWER_RECOMMENDATION: "ANSWER_RECOMMENDATION", + EMAIL_GENERATIVE_ANSWER: "EMAIL_GENERATIVE_ANSWER", + EMAIL_OVERVIEW: "EMAIL_OVERVIEW", + EMAIL_RESPONSE: "EMAIL_RESPONSE", + MANUAL_SEARCH: "MANUAL_SEARCH", + SELF_SERVICE: "SELF_SERVICE", +} as const; +/** + * @public + */ +export type AIAgentType = (typeof AIAgentType)[keyof typeof AIAgentType]; + +/** + * @public + * @enum + */ +export const VisibilityStatus = { + PUBLISHED: "PUBLISHED", + SAVED: "SAVED", +} as const; +/** + * @public + */ +export type VisibilityStatus = (typeof VisibilityStatus)[keyof typeof VisibilityStatus]; + +/** + * @public + * @enum + */ +export const Origin = { + CUSTOMER: "CUSTOMER", + SYSTEM: "SYSTEM", +} as const; +/** + * @public + */ +export type Origin = (typeof Origin)[keyof typeof Origin]; + +/** + * @public + * @enum + */ +export const Status = { + ACTIVE: "ACTIVE", + CREATE_FAILED: "CREATE_FAILED", + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + DELETED: "DELETED", + DELETE_FAILED: "DELETE_FAILED", + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", +} as const; +/** + * @public + */ +export type Status = (typeof Status)[keyof typeof Status]; + +/** + * @public + * @enum + */ +export const GuardrailFilterStrength = { + HIGH: "HIGH", + LOW: "LOW", + MEDIUM: "MEDIUM", + NONE: "NONE", +} as const; +/** + * @public + */ +export type GuardrailFilterStrength = (typeof GuardrailFilterStrength)[keyof typeof GuardrailFilterStrength]; + +/** + * @public + * @enum + */ +export const GuardrailContentFilterType = { + HATE: "HATE", + INSULTS: "INSULTS", + MISCONDUCT: "MISCONDUCT", + PROMPT_ATTACK: "PROMPT_ATTACK", + SEXUAL: "SEXUAL", + VIOLENCE: "VIOLENCE", +} as const; +/** + * @public + */ +export type GuardrailContentFilterType = (typeof GuardrailContentFilterType)[keyof typeof GuardrailContentFilterType]; + +/** + * @public + * @enum + */ +export const GuardrailContextualGroundingFilterType = { + GROUNDING: "GROUNDING", + RELEVANCE: "RELEVANCE", +} as const; +/** + * @public + */ +export type GuardrailContextualGroundingFilterType = + (typeof GuardrailContextualGroundingFilterType)[keyof typeof GuardrailContextualGroundingFilterType]; + +/** + * @public + * @enum + */ +export const GuardrailSensitiveInformationAction = { + ANONYMIZE: "ANONYMIZE", + BLOCK: "BLOCK", +} as const; +/** + * @public + */ +export type GuardrailSensitiveInformationAction = + (typeof GuardrailSensitiveInformationAction)[keyof typeof GuardrailSensitiveInformationAction]; + +/** + * @public + * @enum + */ +export const GuardrailPiiEntityType = { + ADDRESS: "ADDRESS", + AGE: "AGE", + AWS_ACCESS_KEY: "AWS_ACCESS_KEY", + AWS_SECRET_KEY: "AWS_SECRET_KEY", + CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER", + CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER", + CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV", + CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY", + CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER", + DRIVER_ID: "DRIVER_ID", + EMAIL: "EMAIL", + INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER", + IP_ADDRESS: "IP_ADDRESS", + LICENSE_PLATE: "LICENSE_PLATE", + MAC_ADDRESS: "MAC_ADDRESS", + NAME: "NAME", + PASSWORD: "PASSWORD", + PHONE: "PHONE", + PIN: "PIN", + SWIFT_CODE: "SWIFT_CODE", + UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER", + UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER", + UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER", + URL: "URL", + USERNAME: "USERNAME", + US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER", + US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER", + US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER", + US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER", + US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER", + VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER", +} as const; +/** + * @public + */ +export type GuardrailPiiEntityType = (typeof GuardrailPiiEntityType)[keyof typeof GuardrailPiiEntityType]; + +/** + * @public + * @enum + */ +export const GuardrailTopicType = { + DENY: "DENY", +} as const; +/** + * @public + */ +export type GuardrailTopicType = (typeof GuardrailTopicType)[keyof typeof GuardrailTopicType]; + +/** + * @public + * @enum + */ +export const GuardrailManagedWordsType = { + PROFANITY: "PROFANITY", +} as const; +/** + * @public + */ +export type GuardrailManagedWordsType = (typeof GuardrailManagedWordsType)[keyof typeof GuardrailManagedWordsType]; + +/** + * @public + * @enum + */ +export const AIPromptAPIFormat = { + ANTHROPIC_CLAUDE_MESSAGES: "ANTHROPIC_CLAUDE_MESSAGES", + ANTHROPIC_CLAUDE_TEXT_COMPLETIONS: "ANTHROPIC_CLAUDE_TEXT_COMPLETIONS", + MESSAGES: "MESSAGES", + TEXT_COMPLETIONS: "TEXT_COMPLETIONS", +} as const; +/** + * @public + */ +export type AIPromptAPIFormat = (typeof AIPromptAPIFormat)[keyof typeof AIPromptAPIFormat]; + +/** + * @public + * @enum + */ +export const AIPromptTemplateType = { + TEXT: "TEXT", +} as const; +/** + * @public + */ +export type AIPromptTemplateType = (typeof AIPromptTemplateType)[keyof typeof AIPromptTemplateType]; + +/** + * @public + * @enum + */ +export const AIPromptType = { + ANSWER_GENERATION: "ANSWER_GENERATION", + EMAIL_GENERATIVE_ANSWER: "EMAIL_GENERATIVE_ANSWER", + EMAIL_OVERVIEW: "EMAIL_OVERVIEW", + EMAIL_QUERY_REFORMULATION: "EMAIL_QUERY_REFORMULATION", + EMAIL_RESPONSE: "EMAIL_RESPONSE", + INTENT_LABELING_GENERATION: "INTENT_LABELING_GENERATION", + QUERY_REFORMULATION: "QUERY_REFORMULATION", + SELF_SERVICE_ANSWER_GENERATION: "SELF_SERVICE_ANSWER_GENERATION", + SELF_SERVICE_PRE_PROCESSING: "SELF_SERVICE_PRE_PROCESSING", +} as const; +/** + * @public + */ +export type AIPromptType = (typeof AIPromptType)[keyof typeof AIPromptType]; + +/** + * @public + * @enum + */ +export const AssociationType = { + KNOWLEDGE_BASE: "KNOWLEDGE_BASE", +} as const; +/** + * @public + */ +export type AssociationType = (typeof AssociationType)[keyof typeof AssociationType]; + +/** + * @public + * @enum + */ +export const AssistantType = { + AGENT: "AGENT", +} as const; +/** + * @public + */ +export type AssistantType = (typeof AssistantType)[keyof typeof AssistantType]; + +/** + * @public + * @enum + */ +export const AssistantCapabilityType = { + V1: "V1", + V2: "V2", +} as const; +/** + * @public + */ +export type AssistantCapabilityType = (typeof AssistantCapabilityType)[keyof typeof AssistantCapabilityType]; + +/** + * @public + * @enum + */ +export const AssistantStatus = { + ACTIVE: "ACTIVE", + CREATE_FAILED: "CREATE_FAILED", + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + DELETED: "DELETED", + DELETE_FAILED: "DELETE_FAILED", + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", +} as const; +/** + * @public + */ +export type AssistantStatus = (typeof AssistantStatus)[keyof typeof AssistantStatus]; + +/** + * @public + * @enum + */ +export const RelevanceLevel = { + HIGH: "HIGH", + LOW: "LOW", + MEDIUM: "MEDIUM", +} as const; +/** + * @public + */ +export type RelevanceLevel = (typeof RelevanceLevel)[keyof typeof RelevanceLevel]; + +/** + * @public + * @enum + */ +export const SourceContentType = { + KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT", +} as const; +/** + * @public + */ +export type SourceContentType = (typeof SourceContentType)[keyof typeof SourceContentType]; + +/** + * @public + * @enum + */ +export const ReferenceType = { + KNOWLEDGE_BASE: "KNOWLEDGE_BASE", + WEB_CRAWLER: "WEB_CRAWLER", +} as const; +/** + * @public + */ +export type ReferenceType = (typeof ReferenceType)[keyof typeof ReferenceType]; + +/** + * @public + * @enum + */ +export const RecommendationType = { + BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK", + BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK", + DETECTED_INTENT: "DETECTED_INTENT", + EMAIL_GENERATIVE_ANSWER_CHUNK: "EMAIL_GENERATIVE_ANSWER_CHUNK", + EMAIL_OVERVIEW_CHUNK: "EMAIL_OVERVIEW_CHUNK", + EMAIL_RESPONSE_CHUNK: "EMAIL_RESPONSE_CHUNK", + GENERATIVE_ANSWER: "GENERATIVE_ANSWER", + GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK", + GENERATIVE_RESPONSE: "GENERATIVE_RESPONSE", + INTENT_ANSWER_CHUNK: "INTENT_ANSWER_CHUNK", + KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT", +} as const; +/** + * @public + */ +export type RecommendationType = (typeof RecommendationType)[keyof typeof RecommendationType]; + +/** + * @public + * @enum + */ +export const RecommendationSourceType = { + ISSUE_DETECTION: "ISSUE_DETECTION", + OTHER: "OTHER", + RULE_EVALUATION: "RULE_EVALUATION", +} as const; +/** + * @public + */ +export type RecommendationSourceType = (typeof RecommendationSourceType)[keyof typeof RecommendationSourceType]; + +/** + * @public + * @enum + */ +export const RecommendationTriggerType = { + GENERATIVE: "GENERATIVE", + QUERY: "QUERY", +} as const; +/** + * @public + */ +export type RecommendationTriggerType = (typeof RecommendationTriggerType)[keyof typeof RecommendationTriggerType]; + +/** + * @public + * @enum + */ +export const Relevance = { + HELPFUL: "HELPFUL", + NOT_HELPFUL: "NOT_HELPFUL", +} as const; +/** + * @public + */ +export type Relevance = (typeof Relevance)[keyof typeof Relevance]; + +/** + * @public + * @enum + */ +export const TargetType = { + RECOMMENDATION: "RECOMMENDATION", + RESULT: "RESULT", +} as const; +/** + * @public + */ +export type TargetType = (typeof TargetType)[keyof typeof TargetType]; + +/** + * @public + * @enum + */ +export const QueryConditionComparisonOperator = { + EQUALS: "EQUALS", +} as const; +/** + * @public + */ +export type QueryConditionComparisonOperator = + (typeof QueryConditionComparisonOperator)[keyof typeof QueryConditionComparisonOperator]; + +/** + * @public + * @enum + */ +export const QueryConditionFieldName = { + RESULT_TYPE: "RESULT_TYPE", +} as const; +/** + * @public + */ +export type QueryConditionFieldName = (typeof QueryConditionFieldName)[keyof typeof QueryConditionFieldName]; + +/** + * @public + * @enum + */ +export const QueryResultType = { + BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK", + BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK", + EMAIL_GENERATIVE_ANSWER_CHUNK: "EMAIL_GENERATIVE_ANSWER_CHUNK", + EMAIL_OVERVIEW_CHUNK: "EMAIL_OVERVIEW_CHUNK", + EMAIL_RESPONSE_CHUNK: "EMAIL_RESPONSE_CHUNK", + GENERATIVE_ANSWER: "GENERATIVE_ANSWER", + GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK", + INTENT_ANSWER: "INTENT_ANSWER", + INTENT_ANSWER_CHUNK: "INTENT_ANSWER_CHUNK", + KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT", +} as const; +/** + * @public + */ +export type QueryResultType = (typeof QueryResultType)[keyof typeof QueryResultType]; + +/** + * @public + * @enum + */ +export const FilterField = { + NAME: "NAME", +} as const; +/** + * @public + */ +export type FilterField = (typeof FilterField)[keyof typeof FilterField]; + +/** + * @public + * @enum + */ +export const FilterOperator = { + EQUALS: "EQUALS", +} as const; +/** + * @public + */ +export type FilterOperator = (typeof FilterOperator)[keyof typeof FilterOperator]; + +/** + * @public + * @enum + */ +export const ConversationStatusReason = { + FAILED: "FAILED", + REJECTED: "REJECTED", + SUCCESS: "SUCCESS", +} as const; +/** + * @public + */ +export type ConversationStatusReason = (typeof ConversationStatusReason)[keyof typeof ConversationStatusReason]; + +/** + * @public + * @enum + */ +export const ConversationStatus = { + CLOSED: "CLOSED", + PROCESSING: "PROCESSING", + READY: "READY", +} as const; +/** + * @public + */ +export type ConversationStatus = (typeof ConversationStatus)[keyof typeof ConversationStatus]; + +/** + * @public + * @enum + */ +export const Participant = { + AGENT: "AGENT", + BOT: "BOT", + CUSTOMER: "CUSTOMER", +} as const; +/** + * @public + */ +export type Participant = (typeof Participant)[keyof typeof Participant]; + +/** + * @public + * @enum + */ +export const MessageType = { + TEXT: "TEXT", +} as const; +/** + * @public + */ +export type MessageType = (typeof MessageType)[keyof typeof MessageType]; + +/** + * @public + * @enum + */ +export const SessionDataNamespace = { + Custom: "Custom", +} as const; +/** + * @public + */ +export type SessionDataNamespace = (typeof SessionDataNamespace)[keyof typeof SessionDataNamespace]; + +/** + * @public + * @enum + */ +export const ChannelSubtype = { + EMAIL: "EMAIL", + PUSH: "PUSH", + SMS: "SMS", + WHATSAPP: "WHATSAPP", +} as const; +/** + * @public + */ +export type ChannelSubtype = (typeof ChannelSubtype)[keyof typeof ChannelSubtype]; + +/** + * @public + * @enum + */ +export const ChunkingStrategy = { + FIXED_SIZE: "FIXED_SIZE", + HIERARCHICAL: "HIERARCHICAL", + NONE: "NONE", + SEMANTIC: "SEMANTIC", +} as const; +/** + * @public + */ +export type ChunkingStrategy = (typeof ChunkingStrategy)[keyof typeof ChunkingStrategy]; + +/** + * @public + * @enum + */ +export const ContentAssociationType = { + AMAZON_CONNECT_GUIDE: "AMAZON_CONNECT_GUIDE", +} as const; +/** + * @public + */ +export type ContentAssociationType = (typeof ContentAssociationType)[keyof typeof ContentAssociationType]; + +/** + * @public + * @enum + */ +export const ContentStatus = { + ACTIVE: "ACTIVE", + CREATE_FAILED: "CREATE_FAILED", + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + DELETED: "DELETED", + DELETE_FAILED: "DELETE_FAILED", + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", + UPDATE_FAILED: "UPDATE_FAILED", +} as const; +/** + * @public + */ +export type ContentStatus = (typeof ContentStatus)[keyof typeof ContentStatus]; + +/** + * @public + * @enum + */ +export const ContentDisposition = { + ATTACHMENT: "ATTACHMENT", +} as const; +/** + * @public + */ +export type ContentDisposition = (typeof ContentDisposition)[keyof typeof ContentDisposition]; + +/** + * @public + * @enum + */ +export const KnowledgeBaseType = { + CUSTOM: "CUSTOM", + EXTERNAL: "EXTERNAL", + MANAGED: "MANAGED", + MESSAGE_TEMPLATES: "MESSAGE_TEMPLATES", + QUICK_RESPONSES: "QUICK_RESPONSES", +} as const; +/** + * @public + */ +export type KnowledgeBaseType = (typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType]; + +/** + * @public + * @enum + */ +export const WebScopeType = { + HOST_ONLY: "HOST_ONLY", + SUBDOMAINS: "SUBDOMAINS", +} as const; +/** + * @public + */ +export type WebScopeType = (typeof WebScopeType)[keyof typeof WebScopeType]; + +/** + * @public + * @enum + */ +export const ParsingStrategy = { + BEDROCK_FOUNDATION_MODEL: "BEDROCK_FOUNDATION_MODEL", +} as const; +/** + * @public + */ +export type ParsingStrategy = (typeof ParsingStrategy)[keyof typeof ParsingStrategy]; + +/** + * @public + * @enum + */ +export const SyncStatus = { + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + SYNCING_IN_PROGRESS: "SYNCING_IN_PROGRESS", + SYNC_FAILED: "SYNC_FAILED", + SYNC_SUCCESS: "SYNC_SUCCESS", +} as const; +/** + * @public + */ +export type SyncStatus = (typeof SyncStatus)[keyof typeof SyncStatus]; + +/** + * @public + * @enum + */ +export const KnowledgeBaseStatus = { + ACTIVE: "ACTIVE", + CREATE_FAILED: "CREATE_FAILED", + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + DELETED: "DELETED", + DELETE_FAILED: "DELETE_FAILED", + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", +} as const; +/** + * @public + */ +export type KnowledgeBaseStatus = (typeof KnowledgeBaseStatus)[keyof typeof KnowledgeBaseStatus]; + +/** + * @public + * @enum + */ +export const PushMessageAction = { + DEEP_LINK: "DEEP_LINK", + OPEN_APP: "OPEN_APP", + URL: "URL", +} as const; +/** + * @public + */ +export type PushMessageAction = (typeof PushMessageAction)[keyof typeof PushMessageAction]; + +/** + * @public + * @enum + */ +export const MessageTemplateAttributeType = { + AGENT: "AGENT", + CUSTOM: "CUSTOM", + CUSTOMER_PROFILE: "CUSTOMER_PROFILE", + SYSTEM: "SYSTEM", +} as const; +/** + * @public + */ +export type MessageTemplateAttributeType = + (typeof MessageTemplateAttributeType)[keyof typeof MessageTemplateAttributeType]; + +/** + * @public + * @enum + */ +export const WhatsAppSourceConfigurationStatus = { + INVALID: "INVALID", + REJECTED: "REJECTED", + VALID: "VALID", +} as const; +/** + * @public + */ +export type WhatsAppSourceConfigurationStatus = + (typeof WhatsAppSourceConfigurationStatus)[keyof typeof WhatsAppSourceConfigurationStatus]; + +/** + * @public + * @enum + */ +export const QuickResponseStatus = { + CREATED: "CREATED", + CREATE_FAILED: "CREATE_FAILED", + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + DELETED: "DELETED", + DELETE_FAILED: "DELETE_FAILED", + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", + UPDATE_FAILED: "UPDATE_FAILED", + UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS", +} as const; +/** + * @public + */ +export type QuickResponseStatus = (typeof QuickResponseStatus)[keyof typeof QuickResponseStatus]; + +/** + * @public + * @enum + */ +export const ExternalSource = { + AMAZON_CONNECT: "AMAZON_CONNECT", +} as const; +/** + * @public + */ +export type ExternalSource = (typeof ExternalSource)[keyof typeof ExternalSource]; + +/** + * @public + * @enum + */ +export const ImportJobType = { + QUICK_RESPONSES: "QUICK_RESPONSES", +} as const; +/** + * @public + */ +export type ImportJobType = (typeof ImportJobType)[keyof typeof ImportJobType]; + +/** + * @public + * @enum + */ +export const ImportJobStatus = { + COMPLETE: "COMPLETE", + DELETED: "DELETED", + DELETE_FAILED: "DELETE_FAILED", + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", + FAILED: "FAILED", + START_IN_PROGRESS: "START_IN_PROGRESS", +} as const; +/** + * @public + */ +export type ImportJobStatus = (typeof ImportJobStatus)[keyof typeof ImportJobStatus]; + +/** + * @public + * @enum + */ +export const MessageTemplateFilterOperator = { + EQUALS: "EQUALS", + PREFIX: "PREFIX", +} as const; +/** + * @public + */ +export type MessageTemplateFilterOperator = + (typeof MessageTemplateFilterOperator)[keyof typeof MessageTemplateFilterOperator]; + +/** + * @public + * @enum + */ +export const Order = { + ASC: "ASC", + DESC: "DESC", +} as const; +/** + * @public + */ +export type Order = (typeof Order)[keyof typeof Order]; + +/** + * @public + * @enum + */ +export const MessageTemplateQueryOperator = { + CONTAINS: "CONTAINS", + CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX", +} as const; +/** + * @public + */ +export type MessageTemplateQueryOperator = + (typeof MessageTemplateQueryOperator)[keyof typeof MessageTemplateQueryOperator]; + +/** + * @public + * @enum + */ +export const Priority = { + HIGH: "HIGH", + LOW: "LOW", + MEDIUM: "MEDIUM", +} as const; +/** + * @public + */ +export type Priority = (typeof Priority)[keyof typeof Priority]; + +/** + * @public + * @enum + */ +export const QuickResponseFilterOperator = { + EQUALS: "EQUALS", + PREFIX: "PREFIX", +} as const; +/** + * @public + */ +export type QuickResponseFilterOperator = + (typeof QuickResponseFilterOperator)[keyof typeof QuickResponseFilterOperator]; + +/** + * @public + * @enum + */ +export const QuickResponseQueryOperator = { + CONTAINS: "CONTAINS", + CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX", +} as const; +/** + * @public + */ +export type QuickResponseQueryOperator = (typeof QuickResponseQueryOperator)[keyof typeof QuickResponseQueryOperator]; diff --git a/clients/client-qconnect/src/models/models_0.ts b/clients/client-qconnect/src/models/models_0.ts index 4902e970747c..8ee80dd60485 100644 --- a/clients/client-qconnect/src/models/models_0.ts +++ b/clients/client-qconnect/src/models/models_0.ts @@ -1,4 +1,60 @@ // smithy-typescript generated code +import { + AIAgentAssociationConfigurationType, + AIAgentType, + AIPromptAPIFormat, + AIPromptTemplateType, + AIPromptType, + AssistantCapabilityType, + AssistantStatus, + AssistantType, + AssociationType, + ChannelSubtype, + ChunkingStrategy, + ContentAssociationType, + ContentDisposition, + ContentStatus, + ConversationStatus, + ConversationStatusReason, + ExternalSource, + FilterField, + FilterOperator, + GuardrailContentFilterType, + GuardrailContextualGroundingFilterType, + GuardrailFilterStrength, + GuardrailManagedWordsType, + GuardrailPiiEntityType, + GuardrailSensitiveInformationAction, + GuardrailTopicType, + ImportJobStatus, + ImportJobType, + KnowledgeBaseSearchType, + KnowledgeBaseStatus, + KnowledgeBaseType, + MessageTemplateAttributeType, + MessageType, + Origin, + ParsingStrategy, + Participant, + PushMessageAction, + QueryConditionComparisonOperator, + QueryConditionFieldName, + QuickResponseStatus, + RecommendationSourceType, + RecommendationTriggerType, + ReferenceType, + Relevance, + RelevanceLevel, + SessionDataNamespace, + SourceContentType, + Status, + SyncStatus, + TargetType, + VisibilityStatus, + WebScopeType, + WhatsAppSourceConfigurationStatus, +} from "./enums"; + /** * @public */ @@ -200,20 +256,6 @@ export namespace TagFilter { } } -/** - * @public - * @enum - */ -export const KnowledgeBaseSearchType = { - HYBRID: "HYBRID", - SEMANTIC: "SEMANTIC", -} as const; - -/** - * @public - */ -export type KnowledgeBaseSearchType = (typeof KnowledgeBaseSearchType)[keyof typeof KnowledgeBaseSearchType]; - /** *

The data of the configuration for a KNOWLEDGE_BASE type Amazon Q in Connect Assistant Association.

* @public @@ -277,20 +319,6 @@ export namespace AssociationConfigurationData { } } -/** - * @public - * @enum - */ -export const AIAgentAssociationConfigurationType = { - KNOWLEDGE_BASE: "KNOWLEDGE_BASE", -} as const; - -/** - * @public - */ -export type AIAgentAssociationConfigurationType = - (typeof AIAgentAssociationConfigurationType)[keyof typeof AIAgentAssociationConfigurationType]; - /** *

The configuration for an Amazon Q in Connect Assistant Association.

* @public @@ -624,38 +652,6 @@ export namespace AIAgentConfiguration { } } -/** - * @public - * @enum - */ -export const AIAgentType = { - ANSWER_RECOMMENDATION: "ANSWER_RECOMMENDATION", - EMAIL_GENERATIVE_ANSWER: "EMAIL_GENERATIVE_ANSWER", - EMAIL_OVERVIEW: "EMAIL_OVERVIEW", - EMAIL_RESPONSE: "EMAIL_RESPONSE", - MANUAL_SEARCH: "MANUAL_SEARCH", - SELF_SERVICE: "SELF_SERVICE", -} as const; - -/** - * @public - */ -export type AIAgentType = (typeof AIAgentType)[keyof typeof AIAgentType]; - -/** - * @public - * @enum - */ -export const VisibilityStatus = { - PUBLISHED: "PUBLISHED", - SAVED: "SAVED", -} as const; - -/** - * @public - */ -export type VisibilityStatus = (typeof VisibilityStatus)[keyof typeof VisibilityStatus]; - /** * @public */ @@ -709,38 +705,6 @@ export interface CreateAIAgentRequest { description?: string | undefined; } -/** - * @public - * @enum - */ -export const Origin = { - CUSTOMER: "CUSTOMER", - SYSTEM: "SYSTEM", -} as const; - -/** - * @public - */ -export type Origin = (typeof Origin)[keyof typeof Origin]; - -/** - * @public - * @enum - */ -export const Status = { - ACTIVE: "ACTIVE", - CREATE_FAILED: "CREATE_FAILED", - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - DELETED: "DELETED", - DELETE_FAILED: "DELETE_FAILED", - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type Status = (typeof Status)[keyof typeof Status]; - /** *

The data for the AI Agent.

* @public @@ -1230,40 +1194,6 @@ export interface AIAgentConfigurationData { aiAgentId: string | undefined; } -/** - * @public - * @enum - */ -export const GuardrailFilterStrength = { - HIGH: "HIGH", - LOW: "LOW", - MEDIUM: "MEDIUM", - NONE: "NONE", -} as const; - -/** - * @public - */ -export type GuardrailFilterStrength = (typeof GuardrailFilterStrength)[keyof typeof GuardrailFilterStrength]; - -/** - * @public - * @enum - */ -export const GuardrailContentFilterType = { - HATE: "HATE", - INSULTS: "INSULTS", - MISCONDUCT: "MISCONDUCT", - PROMPT_ATTACK: "PROMPT_ATTACK", - SEXUAL: "SEXUAL", - VIOLENCE: "VIOLENCE", -} as const; - -/** - * @public - */ -export type GuardrailContentFilterType = (typeof GuardrailContentFilterType)[keyof typeof GuardrailContentFilterType]; - /** *

Contains filter strengths for harmful content. AI Guardrail's support the following content filters to detect and filter harmful user inputs and FM-generated outputs.

  • Hate: Describes input prompts and model responses that discriminate, criticize, insult, denounce, or dehumanize a person or group on the basis of an identity (such as race, ethnicity, gender, religion, sexual orientation, ability, and national origin).

  • Insults: Describes input prompts and model responses that includes demeaning, humiliating, mocking, insulting, or belittling language. This type of language is also labeled as bullying.

  • Sexual: Describes input prompts and model responses that indicates sexual interest, activity, or arousal using direct or indirect references to body parts, physical traits, or sex.

  • Violence: Describes input prompts and model responses that includes glorification of, or threats to inflict physical pain, hurt, or injury toward a person, group, or thing.

Content filtering depends on the confidence classification of user inputs and FM responses across each of the four harmful categories. All input and output statements are classified into one of four confidence levels (NONE, LOW, MEDIUM, HIGH) for each harmful category. For example, if a statement is classified as Hate with HIGH confidence, the likelihood of the statement representing hateful content is high. A single statement can be classified across multiple categories with varying confidence levels. For example, a single statement can be classified as Hate with HIGH confidence, Insults with LOW confidence, Sexual with NONE confidence, and Violence with MEDIUM confidence.

* @public @@ -1300,21 +1230,6 @@ export interface AIGuardrailContentPolicyConfig { filtersConfig: GuardrailContentFilterConfig[] | undefined; } -/** - * @public - * @enum - */ -export const GuardrailContextualGroundingFilterType = { - GROUNDING: "GROUNDING", - RELEVANCE: "RELEVANCE", -} as const; - -/** - * @public - */ -export type GuardrailContextualGroundingFilterType = - (typeof GuardrailContextualGroundingFilterType)[keyof typeof GuardrailContextualGroundingFilterType]; - /** *

The filter configuration details for the AI Guardrail's contextual grounding filter.

* @public @@ -1345,64 +1260,6 @@ export interface AIGuardrailContextualGroundingPolicyConfig { filtersConfig: GuardrailContextualGroundingFilterConfig[] | undefined; } -/** - * @public - * @enum - */ -export const GuardrailSensitiveInformationAction = { - ANONYMIZE: "ANONYMIZE", - BLOCK: "BLOCK", -} as const; - -/** - * @public - */ -export type GuardrailSensitiveInformationAction = - (typeof GuardrailSensitiveInformationAction)[keyof typeof GuardrailSensitiveInformationAction]; - -/** - * @public - * @enum - */ -export const GuardrailPiiEntityType = { - ADDRESS: "ADDRESS", - AGE: "AGE", - AWS_ACCESS_KEY: "AWS_ACCESS_KEY", - AWS_SECRET_KEY: "AWS_SECRET_KEY", - CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER", - CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER", - CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV", - CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY", - CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER", - DRIVER_ID: "DRIVER_ID", - EMAIL: "EMAIL", - INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER", - IP_ADDRESS: "IP_ADDRESS", - LICENSE_PLATE: "LICENSE_PLATE", - MAC_ADDRESS: "MAC_ADDRESS", - NAME: "NAME", - PASSWORD: "PASSWORD", - PHONE: "PHONE", - PIN: "PIN", - SWIFT_CODE: "SWIFT_CODE", - UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER", - UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER", - UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER", - URL: "URL", - USERNAME: "USERNAME", - US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER", - US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER", - US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER", - US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER", - US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER", - VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER", -} as const; - -/** - * @public - */ -export type GuardrailPiiEntityType = (typeof GuardrailPiiEntityType)[keyof typeof GuardrailPiiEntityType]; - /** *

The PII entity to configure for the AI Guardrail.

* @public @@ -1469,19 +1326,6 @@ export interface AIGuardrailSensitiveInformationPolicyConfig { regexesConfig?: GuardrailRegexConfig[] | undefined; } -/** - * @public - * @enum - */ -export const GuardrailTopicType = { - DENY: "DENY", -} as const; - -/** - * @public - */ -export type GuardrailTopicType = (typeof GuardrailTopicType)[keyof typeof GuardrailTopicType]; - /** *

Details about topics for the AI Guardrail to identify and deny.

* @public @@ -1524,19 +1368,6 @@ export interface AIGuardrailTopicPolicyConfig { topicsConfig: GuardrailTopicConfig[] | undefined; } -/** - * @public - * @enum - */ -export const GuardrailManagedWordsType = { - PROFANITY: "PROFANITY", -} as const; - -/** - * @public - */ -export type GuardrailManagedWordsType = (typeof GuardrailManagedWordsType)[keyof typeof GuardrailManagedWordsType]; - /** *

The managed word list to configure for the AI Guardrail.

* @public @@ -2169,22 +2000,6 @@ export interface UpdateAIGuardrailResponse { aiGuardrail?: AIGuardrailData | undefined; } -/** - * @public - * @enum - */ -export const AIPromptAPIFormat = { - ANTHROPIC_CLAUDE_MESSAGES: "ANTHROPIC_CLAUDE_MESSAGES", - ANTHROPIC_CLAUDE_TEXT_COMPLETIONS: "ANTHROPIC_CLAUDE_TEXT_COMPLETIONS", - MESSAGES: "MESSAGES", - TEXT_COMPLETIONS: "TEXT_COMPLETIONS", -} as const; - -/** - * @public - */ -export type AIPromptAPIFormat = (typeof AIPromptAPIFormat)[keyof typeof AIPromptAPIFormat]; - /** *

The configuration for a prompt template that supports full textual prompt configuration using a YAML prompt.

* @public @@ -2236,40 +2051,6 @@ export namespace AIPromptTemplateConfiguration { } } -/** - * @public - * @enum - */ -export const AIPromptTemplateType = { - TEXT: "TEXT", -} as const; - -/** - * @public - */ -export type AIPromptTemplateType = (typeof AIPromptTemplateType)[keyof typeof AIPromptTemplateType]; - -/** - * @public - * @enum - */ -export const AIPromptType = { - ANSWER_GENERATION: "ANSWER_GENERATION", - EMAIL_GENERATIVE_ANSWER: "EMAIL_GENERATIVE_ANSWER", - EMAIL_OVERVIEW: "EMAIL_OVERVIEW", - EMAIL_QUERY_REFORMULATION: "EMAIL_QUERY_REFORMULATION", - EMAIL_RESPONSE: "EMAIL_RESPONSE", - INTENT_LABELING_GENERATION: "INTENT_LABELING_GENERATION", - QUERY_REFORMULATION: "QUERY_REFORMULATION", - SELF_SERVICE_ANSWER_GENERATION: "SELF_SERVICE_ANSWER_GENERATION", - SELF_SERVICE_PRE_PROCESSING: "SELF_SERVICE_PRE_PROCESSING", -} as const; - -/** - * @public - */ -export type AIPromptType = (typeof AIPromptType)[keyof typeof AIPromptType]; - /** * @public */ @@ -2923,19 +2704,6 @@ export namespace AssistantAssociationInputData { } } -/** - * @public - * @enum - */ -export const AssociationType = { - KNOWLEDGE_BASE: "KNOWLEDGE_BASE", -} as const; - -/** - * @public - */ -export type AssociationType = (typeof AssociationType)[keyof typeof AssociationType]; - /** * @public */ @@ -3237,19 +3005,6 @@ export interface ServerSideEncryptionConfiguration { kmsKeyId?: string | undefined; } -/** - * @public - * @enum - */ -export const AssistantType = { - AGENT: "AGENT", -} as const; - -/** - * @public - */ -export type AssistantType = (typeof AssistantType)[keyof typeof AssistantType]; - /** * @public */ @@ -3291,20 +3046,6 @@ export interface CreateAssistantRequest { serverSideEncryptionConfiguration?: ServerSideEncryptionConfiguration | undefined; } -/** - * @public - * @enum - */ -export const AssistantCapabilityType = { - V1: "V1", - V2: "V2", -} as const; - -/** - * @public - */ -export type AssistantCapabilityType = (typeof AssistantCapabilityType)[keyof typeof AssistantCapabilityType]; - /** *

The capability configuration for an Amazon Q in Connect assistant.

* @public @@ -3329,24 +3070,6 @@ export interface AssistantIntegrationConfiguration { topicIntegrationArn?: string | undefined; } -/** - * @public - * @enum - */ -export const AssistantStatus = { - ACTIVE: "ACTIVE", - CREATE_FAILED: "CREATE_FAILED", - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - DELETED: "DELETED", - DELETE_FAILED: "DELETE_FAILED", - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type AssistantStatus = (typeof AssistantStatus)[keyof typeof AssistantStatus]; - /** *

The assistant data.

* @public @@ -3503,21 +3226,6 @@ export interface GetRecommendationsRequest { nextChunkToken?: string | undefined; } -/** - * @public - * @enum - */ -export const RelevanceLevel = { - HIGH: "HIGH", - LOW: "LOW", - MEDIUM: "MEDIUM", -} as const; - -/** - * @public - */ -export type RelevanceLevel = (typeof RelevanceLevel)[keyof typeof RelevanceLevel]; - /** *

Details about the source content ranking data.

* @public @@ -3680,19 +3388,6 @@ export interface CitationSpan { endOffsetExclusive?: number | undefined; } -/** - * @public - * @enum - */ -export const SourceContentType = { - KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT", -} as const; - -/** - * @public - */ -export type SourceContentType = (typeof SourceContentType)[keyof typeof SourceContentType]; - /** *

Details about the source content data.

* @public @@ -3729,20 +3424,6 @@ export interface SourceContentDataDetails { citationSpan?: CitationSpan | undefined; } -/** - * @public - * @enum - */ -export const ReferenceType = { - KNOWLEDGE_BASE: "KNOWLEDGE_BASE", - WEB_CRAWLER: "WEB_CRAWLER", -} as const; - -/** - * @public - */ -export type ReferenceType = (typeof ReferenceType)[keyof typeof ReferenceType]; - /** *

Reference information about the content.

* @public @@ -3880,29 +3561,6 @@ export interface Document { excerpt?: DocumentText | undefined; } -/** - * @public - * @enum - */ -export const RecommendationType = { - BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK", - BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK", - DETECTED_INTENT: "DETECTED_INTENT", - EMAIL_GENERATIVE_ANSWER_CHUNK: "EMAIL_GENERATIVE_ANSWER_CHUNK", - EMAIL_OVERVIEW_CHUNK: "EMAIL_OVERVIEW_CHUNK", - EMAIL_RESPONSE_CHUNK: "EMAIL_RESPONSE_CHUNK", - GENERATIVE_ANSWER: "GENERATIVE_ANSWER", - GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK", - GENERATIVE_RESPONSE: "GENERATIVE_RESPONSE", - INTENT_ANSWER_CHUNK: "INTENT_ANSWER_CHUNK", - KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT", -} as const; - -/** - * @public - */ -export type RecommendationType = (typeof RecommendationType)[keyof typeof RecommendationType]; - /** *

Data associated with the QUERY RecommendationTriggerType.

* @public @@ -3954,35 +3612,6 @@ export namespace RecommendationTriggerData { } } -/** - * @public - * @enum - */ -export const RecommendationSourceType = { - ISSUE_DETECTION: "ISSUE_DETECTION", - OTHER: "OTHER", - RULE_EVALUATION: "RULE_EVALUATION", -} as const; - -/** - * @public - */ -export type RecommendationSourceType = (typeof RecommendationSourceType)[keyof typeof RecommendationSourceType]; - -/** - * @public - * @enum - */ -export const RecommendationTriggerType = { - GENERATIVE: "GENERATIVE", - QUERY: "QUERY", -} as const; - -/** - * @public - */ -export type RecommendationTriggerType = (typeof RecommendationTriggerType)[keyof typeof RecommendationTriggerType]; - /** *

A recommendation trigger provides context on the event that produced the referenced recommendations. Recommendations are only referenced in recommendationIds by a single RecommendationTrigger.

* @public @@ -4183,20 +3812,6 @@ export interface NotifyRecommendationsReceivedResponse { errors?: NotifyRecommendationsReceivedError[] | undefined; } -/** - * @public - * @enum - */ -export const Relevance = { - HELPFUL: "HELPFUL", - NOT_HELPFUL: "NOT_HELPFUL", -} as const; - -/** - * @public - */ -export type Relevance = (typeof Relevance)[keyof typeof Relevance]; - /** *

The feedback information for a generative target type.

* @public @@ -4248,20 +3863,6 @@ export namespace ContentFeedbackData { } } -/** - * @public - * @enum - */ -export const TargetType = { - RECOMMENDATION: "RECOMMENDATION", - RESULT: "RESULT", -} as const; - -/** - * @public - */ -export type TargetType = (typeof TargetType)[keyof typeof TargetType]; - /** * @public */ @@ -4326,33 +3927,6 @@ export interface PutFeedbackResponse { contentFeedback: ContentFeedbackData | undefined; } -/** - * @public - * @enum - */ -export const QueryConditionComparisonOperator = { - EQUALS: "EQUALS", -} as const; - -/** - * @public - */ -export type QueryConditionComparisonOperator = - (typeof QueryConditionComparisonOperator)[keyof typeof QueryConditionComparisonOperator]; - -/** - * @public - * @enum - */ -export const QueryConditionFieldName = { - RESULT_TYPE: "RESULT_TYPE", -} as const; - -/** - * @public - */ -export type QueryConditionFieldName = (typeof QueryConditionFieldName)[keyof typeof QueryConditionFieldName]; - /** *

The condition for the query.

* @public @@ -4544,28 +4118,6 @@ export interface QueryAssistantRequest { overrideKnowledgeBaseSearchType?: KnowledgeBaseSearchType | undefined; } -/** - * @public - * @enum - */ -export const QueryResultType = { - BLOCKED_GENERATIVE_ANSWER_CHUNK: "BLOCKED_GENERATIVE_ANSWER_CHUNK", - BLOCKED_INTENT_ANSWER_CHUNK: "BLOCKED_INTENT_ANSWER_CHUNK", - EMAIL_GENERATIVE_ANSWER_CHUNK: "EMAIL_GENERATIVE_ANSWER_CHUNK", - EMAIL_OVERVIEW_CHUNK: "EMAIL_OVERVIEW_CHUNK", - EMAIL_RESPONSE_CHUNK: "EMAIL_RESPONSE_CHUNK", - GENERATIVE_ANSWER: "GENERATIVE_ANSWER", - GENERATIVE_ANSWER_CHUNK: "GENERATIVE_ANSWER_CHUNK", - INTENT_ANSWER: "INTENT_ANSWER", - INTENT_ANSWER_CHUNK: "INTENT_ANSWER_CHUNK", - KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT", -} as const; - -/** - * @public - */ -export type QueryResultType = (typeof QueryResultType)[keyof typeof QueryResultType]; - /** * @public */ @@ -4589,41 +4141,15 @@ export interface RemoveAssistantAIAgentRequest { export interface RemoveAssistantAIAgentResponse {} /** + *

A search filter.

* @public - * @enum */ -export const FilterField = { - NAME: "NAME", -} as const; - -/** - * @public - */ -export type FilterField = (typeof FilterField)[keyof typeof FilterField]; - -/** - * @public - * @enum - */ -export const FilterOperator = { - EQUALS: "EQUALS", -} as const; - -/** - * @public - */ -export type FilterOperator = (typeof FilterOperator)[keyof typeof FilterOperator]; - -/** - *

A search filter.

- * @public - */ -export interface Filter { - /** - *

The field on which to filter.

- * @public - */ - field: FilterField | undefined; +export interface Filter { + /** + *

The field on which to filter.

+ * @public + */ + field: FilterField | undefined; /** *

The operator to use for comparing the field’s value with the provided value.

@@ -4942,36 +4468,6 @@ export interface RuntimeSessionData { value: RuntimeSessionDataValue | undefined; } -/** - * @public - * @enum - */ -export const ConversationStatusReason = { - FAILED: "FAILED", - REJECTED: "REJECTED", - SUCCESS: "SUCCESS", -} as const; - -/** - * @public - */ -export type ConversationStatusReason = (typeof ConversationStatusReason)[keyof typeof ConversationStatusReason]; - -/** - * @public - * @enum - */ -export const ConversationStatus = { - CLOSED: "CLOSED", - PROCESSING: "PROCESSING", - READY: "READY", -} as const; - -/** - * @public - */ -export type ConversationStatus = (typeof ConversationStatus)[keyof typeof ConversationStatus]; - /** *

The conversation state associated to a message.

* @public @@ -4990,21 +4486,6 @@ export interface ConversationState { reason?: ConversationStatusReason | undefined; } -/** - * @public - * @enum - */ -export const Participant = { - AGENT: "AGENT", - BOT: "BOT", - CUSTOMER: "CUSTOMER", -} as const; - -/** - * @public - */ -export type Participant = (typeof Participant)[keyof typeof Participant]; - /** *

The message data in text type.

* @public @@ -5084,19 +4565,6 @@ export interface MessageOutput { timestamp: Date | undefined; } -/** - * @public - * @enum - */ -export const MessageType = { - TEXT: "TEXT", -} as const; - -/** - * @public - */ -export type MessageType = (typeof MessageType)[keyof typeof MessageType]; - /** * @public */ @@ -5388,19 +4856,6 @@ export interface UpdateSessionResponse { session?: SessionData | undefined; } -/** - * @public - * @enum - */ -export const SessionDataNamespace = { - Custom: "Custom", -} as const; - -/** - * @public - */ -export type SessionDataNamespace = (typeof SessionDataNamespace)[keyof typeof SessionDataNamespace]; - /** * @public */ @@ -5523,38 +4978,6 @@ export interface BedrockFoundationModelConfigurationForParsing { parsingPrompt?: ParsingPrompt | undefined; } -/** - * @public - * @enum - */ -export const ChannelSubtype = { - EMAIL: "EMAIL", - PUSH: "PUSH", - SMS: "SMS", - WHATSAPP: "WHATSAPP", -} as const; - -/** - * @public - */ -export type ChannelSubtype = (typeof ChannelSubtype)[keyof typeof ChannelSubtype]; - -/** - * @public - * @enum - */ -export const ChunkingStrategy = { - FIXED_SIZE: "FIXED_SIZE", - HIERARCHICAL: "HIERARCHICAL", - NONE: "NONE", - SEMANTIC: "SEMANTIC", -} as const; - -/** - * @public - */ -export type ChunkingStrategy = (typeof ChunkingStrategy)[keyof typeof ChunkingStrategy]; - /** *

Configurations for when you choose fixed-size chunking. If you set the chunkingStrategy as NONE, exclude this field.

* @public @@ -5745,19 +5168,6 @@ export namespace ContentAssociationContents { } } -/** - * @public - * @enum - */ -export const ContentAssociationType = { - AMAZON_CONNECT_GUIDE: "AMAZON_CONNECT_GUIDE", -} as const; - -/** - * @public - */ -export type ContentAssociationType = (typeof ContentAssociationType)[keyof typeof ContentAssociationType]; - /** * @public */ @@ -6091,25 +5501,6 @@ export interface CreateContentRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const ContentStatus = { - ACTIVE: "ACTIVE", - CREATE_FAILED: "CREATE_FAILED", - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - DELETED: "DELETED", - DELETE_FAILED: "DELETE_FAILED", - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", - UPDATE_FAILED: "UPDATE_FAILED", -} as const; - -/** - * @public - */ -export type ContentStatus = (typeof ContentStatus)[keyof typeof ContentStatus]; - /** *

Information about the content.

* @public @@ -6465,36 +5856,6 @@ export interface UpdateContentResponse { content?: ContentData | undefined; } -/** - * @public - * @enum - */ -export const ContentDisposition = { - ATTACHMENT: "ATTACHMENT", -} as const; - -/** - * @public - */ -export type ContentDisposition = (typeof ContentDisposition)[keyof typeof ContentDisposition]; - -/** - * @public - * @enum - */ -export const KnowledgeBaseType = { - CUSTOM: "CUSTOM", - EXTERNAL: "EXTERNAL", - MANAGED: "MANAGED", - MESSAGE_TEMPLATES: "MESSAGE_TEMPLATES", - QUICK_RESPONSES: "QUICK_RESPONSES", -} as const; - -/** - * @public - */ -export type KnowledgeBaseType = (typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType]; - /** *

Information about how to render the content.

* @public @@ -6519,20 +5880,6 @@ export interface WebCrawlerLimits { rateLimit?: number | undefined; } -/** - * @public - * @enum - */ -export const WebScopeType = { - HOST_ONLY: "HOST_ONLY", - SUBDOMAINS: "SUBDOMAINS", -} as const; - -/** - * @public - */ -export type WebScopeType = (typeof WebScopeType)[keyof typeof WebScopeType]; - /** *

A URL for crawling.

* @public @@ -6685,19 +6032,6 @@ export namespace SourceConfiguration { } } -/** - * @public - * @enum - */ -export const ParsingStrategy = { - BEDROCK_FOUNDATION_MODEL: "BEDROCK_FOUNDATION_MODEL", -} as const; - -/** - * @public - */ -export type ParsingStrategy = (typeof ParsingStrategy)[keyof typeof ParsingStrategy]; - /** *

Settings for parsing document contents. By default, the service converts the contents of each document into text before splitting it into chunks. To improve processing of PDF files with tables and images, you can configure the data source to convert the pages of text into images and use a model to describe the contents of each page.

* @public @@ -6793,40 +6127,6 @@ export interface CreateKnowledgeBaseRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const SyncStatus = { - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - SYNCING_IN_PROGRESS: "SYNCING_IN_PROGRESS", - SYNC_FAILED: "SYNC_FAILED", - SYNC_SUCCESS: "SYNC_SUCCESS", -} as const; - -/** - * @public - */ -export type SyncStatus = (typeof SyncStatus)[keyof typeof SyncStatus]; - -/** - * @public - * @enum - */ -export const KnowledgeBaseStatus = { - ACTIVE: "ACTIVE", - CREATE_FAILED: "CREATE_FAILED", - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - DELETED: "DELETED", - DELETE_FAILED: "DELETE_FAILED", - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type KnowledgeBaseStatus = (typeof KnowledgeBaseStatus)[keyof typeof KnowledgeBaseStatus]; - /** *

Information about the knowledge base.

* @public @@ -7027,21 +6327,6 @@ export interface EmailMessageTemplateContent { headers?: EmailHeader[] | undefined; } -/** - * @public - * @enum - */ -export const PushMessageAction = { - DEEP_LINK: "DEEP_LINK", - OPEN_APP: "OPEN_APP", - URL: "URL", -} as const; - -/** - * @public - */ -export type PushMessageAction = (typeof PushMessageAction)[keyof typeof PushMessageAction]; - /** *

The content of the push message template that applies to ADM (Amazon Device Messaging) notification service.

* @public @@ -7996,34 +7281,1618 @@ export interface CreateMessageTemplateRequest { } /** + *

Configuration information about the external data source.

* @public - * @enum */ -export const MessageTemplateAttributeType = { - AGENT: "AGENT", - CUSTOM: "CUSTOM", - CUSTOMER_PROFILE: "CUSTOMER_PROFILE", - SYSTEM: "SYSTEM", -} as const; +export interface WhatsAppMessageTemplateSourceConfigurationSummary { + /** + *

The ID of the End User Messaging WhatsApp Business Account to associate with this template.

+ * @public + */ + businessAccountId: string | undefined; + + /** + *

The ID of WhatsApp template.

+ * @public + */ + templateId: string | undefined; + + /** + *

The name of the WhatsApp template.

+ * @public + */ + name?: string | undefined; + + /** + *

The language of the WhatsApp template.

+ * @public + */ + language?: string | undefined; + + /** + *

The list of component mapping from WhatsApp template parameters to Message Template attributes.

+ * @public + */ + components?: string[] | undefined; + + /** + *

The status of the message template.

+ * @public + */ + status?: WhatsAppSourceConfigurationStatus | undefined; + + /** + *

The status reason of the message template.

+ * @public + */ + statusReason?: string | undefined; +} /** + *

The container of message template source configuration summary.

* @public */ -export type MessageTemplateAttributeType = - (typeof MessageTemplateAttributeType)[keyof typeof MessageTemplateAttributeType]; +export type MessageTemplateSourceConfigurationSummary = + | MessageTemplateSourceConfigurationSummary.WhatsAppMember + | MessageTemplateSourceConfigurationSummary.$UnknownMember; /** * @public - * @enum */ -export const WhatsAppSourceConfigurationStatus = { - INVALID: "INVALID", - REJECTED: "REJECTED", - VALID: "VALID", -} as const; +export namespace MessageTemplateSourceConfigurationSummary { + /** + *

The sourceConfiguration summary of the message template that applies to the WHATSAPP channel subtype.

+ * @public + */ + export interface WhatsAppMember { + whatsApp: WhatsAppMessageTemplateSourceConfigurationSummary; + $unknown?: never; + } + + /** + * @public + */ + export interface $UnknownMember { + whatsApp?: never; + $unknown: [string, any]; + } + + /** + * @deprecated unused in schema-serde mode. + * + */ + export interface Visitor { + whatsApp: (value: WhatsAppMessageTemplateSourceConfigurationSummary) => T; + _: (name: string, value: any) => T; + } +} /** + *

The data of a message template.

* @public */ -export type WhatsAppSourceConfigurationStatus = - (typeof WhatsAppSourceConfigurationStatus)[keyof typeof WhatsAppSourceConfigurationStatus]; +export interface MessageTemplateData { + /** + *

The Amazon Resource Name (ARN) of the message template.

+ * @public + */ + messageTemplateArn: string | undefined; + + /** + *

The identifier of the message template.

+ * @public + */ + messageTemplateId: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the knowledge base.

+ * @public + */ + knowledgeBaseArn: string | undefined; + + /** + *

The identifier of the knowledge base.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

The name of the message template.

+ * @public + */ + name: string | undefined; + + /** + *

The channel of the message template.

+ * @public + */ + channel?: string | undefined; + + /** + *

The channel subtype this message template applies to.

+ * @public + */ + channelSubtype: ChannelSubtype | undefined; + + /** + *

The timestamp when the message template was created.

+ * @public + */ + createdTime: Date | undefined; + + /** + *

The timestamp when the message template data was last modified.

+ * @public + */ + lastModifiedTime: Date | undefined; + + /** + *

The Amazon Resource Name (ARN) of the user who last updated the message template data.

+ * @public + */ + lastModifiedBy: string | undefined; + + /** + *

The content of the message template.

+ * @public + */ + content?: MessageTemplateContentProvider | undefined; + + /** + *

The description of the message template.

+ * @public + */ + description?: string | undefined; + + /** + *

The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, zh_TW

+ * @public + */ + language?: string | undefined; + + /** + *

The source configuration summary of the message template.

+ * @public + */ + sourceConfigurationSummary?: MessageTemplateSourceConfigurationSummary | undefined; + + /** + *

The configuration information of the grouping of Amazon Q in Connect users.

+ * @public + */ + groupingConfiguration?: GroupingConfiguration | undefined; + + /** + *

An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.

+ * @public + */ + defaultAttributes?: MessageTemplateAttributes | undefined; + + /** + *

The types of attributes that the message template contains.

+ * @public + */ + attributeTypes?: MessageTemplateAttributeType[] | undefined; + + /** + *

The checksum value of the message template content that is referenced by the $LATEST qualifier. It can be returned in MessageTemplateData or ExtendedMessageTemplateData. It’s calculated by content, language, defaultAttributes and Attachments of the message template.

+ * @public + */ + messageTemplateContentSha256: string | undefined; + + /** + *

The tags used to organize, track, or control access for this resource.

+ * @public + */ + tags?: Record | undefined; +} + +/** + * @public + */ +export interface CreateMessageTemplateResponse { + /** + *

The message template.

+ * @public + */ + messageTemplate?: MessageTemplateData | undefined; +} + +/** + * @public + */ +export interface CreateMessageTemplateAttachmentRequest { + /** + *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

+ * @public + */ + messageTemplateId: string | undefined; + + /** + *

The presentation information for the attachment file.

+ * @public + */ + contentDisposition: ContentDisposition | undefined; + + /** + *

The name of the attachment file being uploaded. The name should include the file extension.

+ * @public + */ + name: string | undefined; + + /** + *

The body of the attachment file being uploaded. It should be encoded using base64 encoding.

+ * @public + */ + body: string | undefined; + + /** + *

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

+ * @public + */ + clientToken?: string | undefined; +} + +/** + *

Information about the message template attachment.

+ * @public + */ +export interface MessageTemplateAttachment { + /** + *

The presentation information for the attachment file.

+ * @public + */ + contentDisposition: ContentDisposition | undefined; + + /** + *

The name of the attachment file being uploaded. The name should include the file extension.

+ * @public + */ + name: string | undefined; + + /** + *

The timestamp when the attachment file was uploaded.

+ * @public + */ + uploadedTime: Date | undefined; + + /** + *

A pre-signed Amazon S3 URL that can be used to download the attachment file.

+ * @public + */ + url: string | undefined; + + /** + *

The expiration time of the pre-signed Amazon S3 URL.

+ * @public + */ + urlExpiry: Date | undefined; + + /** + *

The identifier of the attachment file.

+ * @public + */ + attachmentId: string | undefined; +} + +/** + * @public + */ +export interface CreateMessageTemplateAttachmentResponse { + /** + *

The message template attachment.

+ * @public + */ + attachment?: MessageTemplateAttachment | undefined; +} + +/** + * @public + */ +export interface CreateMessageTemplateVersionRequest { + /** + *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

+ * @public + */ + messageTemplateId: string | undefined; + + /** + *

The checksum value of the message template content that is referenced by the $LATEST qualifier. It can be returned in MessageTemplateData or ExtendedMessageTemplateData. It’s calculated by content, language, defaultAttributes and Attachments of the message template. If not supplied, the message template version will be created based on the message template content that is referenced by the $LATEST qualifier by default.

+ * @public + */ + messageTemplateContentSha256?: string | undefined; +} + +/** + *

The extended data of a message template.

+ * @public + */ +export interface ExtendedMessageTemplateData { + /** + *

The Amazon Resource Name (ARN) of the message template.

+ * @public + */ + messageTemplateArn: string | undefined; + + /** + *

The identifier of the message template.

+ * @public + */ + messageTemplateId: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the knowledge base.

+ * @public + */ + knowledgeBaseArn: string | undefined; + + /** + *

The identifier of the knowledge base.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

The name of the message template.

+ * @public + */ + name: string | undefined; + + /** + *

The channel of the message template.

+ * @public + */ + channel?: string | undefined; + + /** + *

The channel subtype this message template applies to.

+ * @public + */ + channelSubtype: ChannelSubtype | undefined; + + /** + *

The timestamp when the message template was created.

+ * @public + */ + createdTime: Date | undefined; + + /** + *

The timestamp when the message template data was last modified.

+ * @public + */ + lastModifiedTime: Date | undefined; + + /** + *

The Amazon Resource Name (ARN) of the user who last updated the message template data.

+ * @public + */ + lastModifiedBy: string | undefined; + + /** + *

The content of the message template.

+ * @public + */ + content?: MessageTemplateContentProvider | undefined; + + /** + *

The description of the message template.

+ * @public + */ + description?: string | undefined; + + /** + *

The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, zh_TW

+ * @public + */ + language?: string | undefined; + + /** + *

The source configuration summary of the message template.

+ * @public + */ + sourceConfigurationSummary?: MessageTemplateSourceConfigurationSummary | undefined; + + /** + *

The configuration information of the grouping of Amazon Q in Connect users.

+ * @public + */ + groupingConfiguration?: GroupingConfiguration | undefined; + + /** + *

An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.

+ * @public + */ + defaultAttributes?: MessageTemplateAttributes | undefined; + + /** + *

The types of attributes contain the message template.

+ * @public + */ + attributeTypes?: MessageTemplateAttributeType[] | undefined; + + /** + *

The message template attachments.

+ * @public + */ + attachments?: MessageTemplateAttachment[] | undefined; + + /** + *

Whether the version of the message template is activated.

+ * @public + */ + isActive?: boolean | undefined; + + /** + *

The version number of the message template version.

+ * @public + */ + versionNumber?: number | undefined; + + /** + *

The checksum value of the message template content that is referenced by the $LATEST qualifier. It can be returned in MessageTemplateData or ExtendedMessageTemplateData. It’s calculated by content, language, defaultAttributes and Attachments of the message template.

+ * @public + */ + messageTemplateContentSha256: string | undefined; + + /** + *

The tags used to organize, track, or control access for this resource.

+ * @public + */ + tags?: Record | undefined; +} + +/** + * @public + */ +export interface CreateMessageTemplateVersionResponse { + /** + *

The message template.

+ * @public + */ + messageTemplate?: ExtendedMessageTemplateData | undefined; +} + +/** + *

The container of quick response data.

+ * @public + */ +export type QuickResponseDataProvider = + | QuickResponseDataProvider.ContentMember + | QuickResponseDataProvider.$UnknownMember; + +/** + * @public + */ +export namespace QuickResponseDataProvider { + /** + *

The content of the quick response.

+ * @public + */ + export interface ContentMember { + content: string; + $unknown?: never; + } + + /** + * @public + */ + export interface $UnknownMember { + content?: never; + $unknown: [string, any]; + } + + /** + * @deprecated unused in schema-serde mode. + * + */ + export interface Visitor { + content: (value: string) => T; + _: (name: string, value: any) => T; + } +} + +/** + * @public + */ +export interface CreateQuickResponseRequest { + /** + *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

The name of the quick response.

+ * @public + */ + name: string | undefined; + + /** + *

The content of the quick response.

+ * @public + */ + content: QuickResponseDataProvider | undefined; + + /** + *

The media type of the quick response content.

  • Use application/x.quickresponse;format=plain for a quick response written in plain text.

  • Use application/x.quickresponse;format=markdown for a quick response written in richtext.

+ * @public + */ + contentType?: string | undefined; + + /** + *

The configuration information of the user groups that the quick response is accessible to.

+ * @public + */ + groupingConfiguration?: GroupingConfiguration | undefined; + + /** + *

The description of the quick response.

+ * @public + */ + description?: string | undefined; + + /** + *

The shortcut key of the quick response. The value should be unique across the knowledge base.

+ * @public + */ + shortcutKey?: string | undefined; + + /** + *

Whether the quick response is active.

+ * @public + */ + isActive?: boolean | undefined; + + /** + *

The Amazon Connect channels this quick response applies to.

+ * @public + */ + channels?: string[] | undefined; + + /** + *

The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, zh_TW

+ * @public + */ + language?: string | undefined; + + /** + *

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

+ * @public + */ + clientToken?: string | undefined; + + /** + *

The tags used to organize, track, or control access for this resource.

+ * @public + */ + tags?: Record | undefined; +} + +/** + *

The container quick response content.

+ * @public + */ +export type QuickResponseContentProvider = + | QuickResponseContentProvider.ContentMember + | QuickResponseContentProvider.$UnknownMember; + +/** + * @public + */ +export namespace QuickResponseContentProvider { + /** + *

The content of the quick response.

+ * @public + */ + export interface ContentMember { + content: string; + $unknown?: never; + } + + /** + * @public + */ + export interface $UnknownMember { + content?: never; + $unknown: [string, any]; + } + + /** + * @deprecated unused in schema-serde mode. + * + */ + export interface Visitor { + content: (value: string) => T; + _: (name: string, value: any) => T; + } +} + +/** + *

The content of the quick response stored in different media types.

+ * @public + */ +export interface QuickResponseContents { + /** + *

The container quick response content.

+ * @public + */ + plainText?: QuickResponseContentProvider | undefined; + + /** + *

The container quick response content.

+ * @public + */ + markdown?: QuickResponseContentProvider | undefined; +} + +/** + *

Information about the quick response.

+ * @public + */ +export interface QuickResponseData { + /** + *

The Amazon Resource Name (ARN) of the quick response.

+ * @public + */ + quickResponseArn: string | undefined; + + /** + *

The identifier of the quick response.

+ * @public + */ + quickResponseId: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the knowledge base.

+ * @public + */ + knowledgeBaseArn: string | undefined; + + /** + *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

The name of the quick response.

+ * @public + */ + name: string | undefined; + + /** + *

The media type of the quick response content.

  • Use application/x.quickresponse;format=plain for quick response written in plain text.

  • Use application/x.quickresponse;format=markdown for quick response written in richtext.

+ * @public + */ + contentType: string | undefined; + + /** + *

The status of the quick response data.

+ * @public + */ + status: QuickResponseStatus | undefined; + + /** + *

The timestamp when the quick response was created.

+ * @public + */ + createdTime: Date | undefined; + + /** + *

The timestamp when the quick response data was last modified.

+ * @public + */ + lastModifiedTime: Date | undefined; + + /** + *

The contents of the quick response.

+ * @public + */ + contents?: QuickResponseContents | undefined; + + /** + *

The description of the quick response.

+ * @public + */ + description?: string | undefined; + + /** + *

The configuration information of the user groups that the quick response is accessible to.

+ * @public + */ + groupingConfiguration?: GroupingConfiguration | undefined; + + /** + *

The shortcut key of the quick response. The value should be unique across the knowledge base.

+ * @public + */ + shortcutKey?: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the user who last updated the quick response data.

+ * @public + */ + lastModifiedBy?: string | undefined; + + /** + *

Whether the quick response is active.

+ * @public + */ + isActive?: boolean | undefined; + + /** + *

The Amazon Connect contact channels this quick response applies to. The supported contact channel types include Chat.

+ * @public + */ + channels?: string[] | undefined; + + /** + *

The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, zh_TW

+ * @public + */ + language?: string | undefined; + + /** + *

The tags used to organize, track, or control access for this resource.

+ * @public + */ + tags?: Record | undefined; +} + +/** + * @public + */ +export interface CreateQuickResponseResponse { + /** + *

The quick response.

+ * @public + */ + quickResponse?: QuickResponseData | undefined; +} + +/** + * @public + */ +export interface DeactivateMessageTemplateRequest { + /** + *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

+ * @public + */ + messageTemplateId: string | undefined; + + /** + *

The version number of the message template version to deactivate.

+ * @public + */ + versionNumber: number | undefined; +} + +/** + * @public + */ +export interface DeactivateMessageTemplateResponse { + /** + *

The Amazon Resource Name (ARN) of the message template.

+ * @public + */ + messageTemplateArn: string | undefined; + + /** + *

The identifier of the message template.

+ * @public + */ + messageTemplateId: string | undefined; + + /** + *

The version number of the message template version that has been deactivated.

+ * @public + */ + versionNumber: number | undefined; +} + +/** + * @public + */ +export interface DeleteImportJobRequest { + /** + *

The identifier of the knowledge base.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

The identifier of the import job to be deleted.

+ * @public + */ + importJobId: string | undefined; +} + +/** + * @public + */ +export interface DeleteImportJobResponse {} + +/** + * @public + */ +export interface DeleteKnowledgeBaseRequest { + /** + *

The knowledge base to delete content from. Can be either the ID or the ARN. URLs cannot contain the ARN.

+ * @public + */ + knowledgeBaseId: string | undefined; +} + +/** + * @public + */ +export interface DeleteKnowledgeBaseResponse {} + +/** + * @public + */ +export interface DeleteMessageTemplateRequest { + /** + *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

The identifier of the message template. Can be either the ID or the ARN.

+ * @public + */ + messageTemplateId: string | undefined; +} + +/** + * @public + */ +export interface DeleteMessageTemplateResponse {} + +/** + * @public + */ +export interface DeleteMessageTemplateAttachmentRequest { + /** + *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

+ * @public + */ + messageTemplateId: string | undefined; + + /** + *

The identifier of the attachment file.

+ * @public + */ + attachmentId: string | undefined; +} + +/** + * @public + */ +export interface DeleteMessageTemplateAttachmentResponse {} + +/** + * @public + */ +export interface DeleteQuickResponseRequest { + /** + *

The knowledge base from which the quick response is deleted. The identifier of the knowledge base.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

The identifier of the quick response to delete.

+ * @public + */ + quickResponseId: string | undefined; +} + +/** + * @public + */ +export interface DeleteQuickResponseResponse {} + +/** + *

The configuration information of the external data source.

+ * @public + */ +export interface ExternalSourceConfiguration { + /** + *

The type of the external data source.

+ * @public + */ + source: ExternalSource | undefined; + + /** + *

The configuration information of the external data source.

+ * @public + */ + configuration: Configuration | undefined; +} + +/** + * @public + */ +export interface GetImportJobRequest { + /** + *

The identifier of the import job to retrieve.

+ * @public + */ + importJobId: string | undefined; + + /** + *

The identifier of the knowledge base that the import job belongs to.

+ * @public + */ + knowledgeBaseId: string | undefined; +} + +/** + *

Summary information about the import job.

+ * @public + */ +export interface ImportJobData { + /** + *

The identifier of the import job.

+ * @public + */ + importJobId: string | undefined; + + /** + *

The identifier of the knowledge base.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

A pointer to the uploaded asset. This value is returned by StartContentUpload.

+ * @public + */ + uploadId: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the knowledge base.

+ * @public + */ + knowledgeBaseArn: string | undefined; + + /** + *

The type of the import job.

+ * @public + */ + importJobType: ImportJobType | undefined; + + /** + *

The status of the import job.

+ * @public + */ + status: ImportJobStatus | undefined; + + /** + *

The download link to the resource file that is uploaded to the import job.

+ * @public + */ + url: string | undefined; + + /** + *

The link to download the information of resource data that failed to be imported.

+ * @public + */ + failedRecordReport?: string | undefined; + + /** + *

The expiration time of the URL as an epoch timestamp.

+ * @public + */ + urlExpiry: Date | undefined; + + /** + *

The timestamp when the import job was created.

+ * @public + */ + createdTime: Date | undefined; + + /** + *

The timestamp when the import job data was last modified.

+ * @public + */ + lastModifiedTime: Date | undefined; + + /** + *

The metadata fields of the imported Amazon Q in Connect resources.

+ * @public + */ + metadata?: Record | undefined; + + /** + *

The configuration information of the external data source.

+ * @public + */ + externalSourceConfiguration?: ExternalSourceConfiguration | undefined; +} + +/** + * @public + */ +export interface GetImportJobResponse { + /** + *

The import job.

+ * @public + */ + importJob?: ImportJobData | undefined; +} + +/** + * @public + */ +export interface GetKnowledgeBaseRequest { + /** + *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

+ * @public + */ + knowledgeBaseId: string | undefined; +} + +/** + * @public + */ +export interface GetKnowledgeBaseResponse { + /** + *

The knowledge base.

+ * @public + */ + knowledgeBase?: KnowledgeBaseData | undefined; +} + +/** + * @public + */ +export interface GetMessageTemplateRequest { + /** + *

The identifier of the message template. Can be either the ID or the ARN.

+ * @public + */ + messageTemplateId: string | undefined; + + /** + *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

+ * @public + */ + knowledgeBaseId: string | undefined; +} + +/** + * @public + */ +export interface GetMessageTemplateResponse { + /** + *

The message template.

+ * @public + */ + messageTemplate?: ExtendedMessageTemplateData | undefined; +} + +/** + * @public + */ +export interface GetQuickResponseRequest { + /** + *

The identifier of the quick response.

+ * @public + */ + quickResponseId: string | undefined; + + /** + *

The identifier of the knowledge base. This should be a QUICK_RESPONSES type knowledge base.

+ * @public + */ + knowledgeBaseId: string | undefined; +} + +/** + * @public + */ +export interface GetQuickResponseResponse { + /** + *

The quick response.

+ * @public + */ + quickResponse?: QuickResponseData | undefined; +} + +/** + *

Summary information about the import job.

+ * @public + */ +export interface ImportJobSummary { + /** + *

The identifier of the import job.

+ * @public + */ + importJobId: string | undefined; + + /** + *

The identifier of the knowledge base.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

A pointer to the uploaded asset. This value is returned by StartContentUpload.

+ * @public + */ + uploadId: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the knowledge base.

+ * @public + */ + knowledgeBaseArn: string | undefined; + + /** + *

The type of import job.

+ * @public + */ + importJobType: ImportJobType | undefined; + + /** + *

The status of the import job.

+ * @public + */ + status: ImportJobStatus | undefined; + + /** + *

The timestamp when the import job was created.

+ * @public + */ + createdTime: Date | undefined; + + /** + *

The timestamp when the import job was last modified.

+ * @public + */ + lastModifiedTime: Date | undefined; + + /** + *

The metadata fields of the imported Amazon Q in Connect resources.

+ * @public + */ + metadata?: Record | undefined; + + /** + *

The configuration information of the external source that the resource data are imported from.

+ * @public + */ + externalSourceConfiguration?: ExternalSourceConfiguration | undefined; +} + +/** + * @public + */ +export interface ListImportJobsRequest { + /** + *

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

The maximum number of results to return per page.

+ * @public + */ + maxResults?: number | undefined; + + /** + *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

+ * @public + */ + knowledgeBaseId: string | undefined; +} + +/** + * @public + */ +export interface ListImportJobsResponse { + /** + *

Summary information about the import jobs.

+ * @public + */ + importJobSummaries: ImportJobSummary[] | undefined; + + /** + *

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface ListKnowledgeBasesRequest { + /** + *

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

The maximum number of results to return per page.

+ * @public + */ + maxResults?: number | undefined; +} + +/** + *

Summary information about the knowledge base.

+ * @public + */ +export interface KnowledgeBaseSummary { + /** + *

The identifier of the knowledge base.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the knowledge base.

+ * @public + */ + knowledgeBaseArn: string | undefined; + + /** + *

The name of the knowledge base.

+ * @public + */ + name: string | undefined; + + /** + *

The type of knowledge base.

+ * @public + */ + knowledgeBaseType: KnowledgeBaseType | undefined; + + /** + *

The status of the knowledge base summary.

+ * @public + */ + status: KnowledgeBaseStatus | undefined; + + /** + *

Configuration information about the external data source.

+ * @public + */ + sourceConfiguration?: SourceConfiguration | undefined; + + /** + *

Contains details about how to ingest the documents in a data source.

+ * @public + */ + vectorIngestionConfiguration?: VectorIngestionConfiguration | undefined; + + /** + *

Information about how to render the content.

+ * @public + */ + renderingConfiguration?: RenderingConfiguration | undefined; + + /** + *

The configuration information for the customer managed key used for encryption.

This KMS key must have a policy that allows kms:CreateGrant, kms:DescribeKey, kms:Decrypt, and kms:GenerateDataKey* permissions to the IAM identity using the key to invoke Amazon Q in Connect.

For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance.

+ * @public + */ + serverSideEncryptionConfiguration?: ServerSideEncryptionConfiguration | undefined; + + /** + *

The description of the knowledge base.

+ * @public + */ + description?: string | undefined; + + /** + *

The tags used to organize, track, or control access for this resource.

+ * @public + */ + tags?: Record | undefined; +} + +/** + * @public + */ +export interface ListKnowledgeBasesResponse { + /** + *

Information about the knowledge bases.

+ * @public + */ + knowledgeBaseSummaries: KnowledgeBaseSummary[] | undefined; + + /** + *

If there are additional results, this is the token for the next set of results.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface ListMessageTemplatesRequest { + /** + *

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

The maximum number of results to return per page.

+ * @public + */ + maxResults?: number | undefined; + + /** + *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

+ * @public + */ + knowledgeBaseId: string | undefined; +} + +/** + *

The summary of the message template.

+ * @public + */ +export interface MessageTemplateSummary { + /** + *

The Amazon Resource Name (ARN) of the message template.

+ * @public + */ + messageTemplateArn: string | undefined; + + /** + *

The identifier of the message template.

+ * @public + */ + messageTemplateId: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the knowledge base.

+ * @public + */ + knowledgeBaseArn: string | undefined; + + /** + *

The identifier of the knowledge base.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

The name of the message template.

+ * @public + */ + name: string | undefined; + + /** + *

The channel this message template applies to.

+ * @public + */ + channel?: string | undefined; + + /** + *

The channel subtype this message template applies to.

+ * @public + */ + channelSubtype: ChannelSubtype | undefined; + + /** + *

The timestamp when the message template was created.

+ * @public + */ + createdTime: Date | undefined; + + /** + *

The timestamp when the message template data was last modified.

+ * @public + */ + lastModifiedTime: Date | undefined; + + /** + *

The Amazon Resource Name (ARN) of the user who last updated the message template data.

+ * @public + */ + lastModifiedBy: string | undefined; + + /** + *

The container of message template source configuration.

+ * @public + */ + sourceConfiguration?: MessageTemplateSourceConfiguration | undefined; + + /** + *

The version number of the message template version that is activated.

+ * @public + */ + activeVersionNumber?: number | undefined; + + /** + *

The description of the message template.

+ * @public + */ + description?: string | undefined; + + /** + *

The tags used to organize, track, or control access for this resource.

+ * @public + */ + tags?: Record | undefined; +} + +/** + * @public + */ +export interface ListMessageTemplatesResponse { + /** + *

Summary information about the message template.

+ * @public + */ + messageTemplateSummaries: MessageTemplateSummary[] | undefined; + + /** + *

If there are additional results, this is the token for the next set of results.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface ListMessageTemplateVersionsRequest { + /** + *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

+ * @public + */ + messageTemplateId: string | undefined; + + /** + *

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

+ * @public + */ + nextToken?: string | undefined; + + /** + *

The maximum number of results to return per page.

+ * @public + */ + maxResults?: number | undefined; +} + +/** + *

The summary of the message template version.

+ * @public + */ +export interface MessageTemplateVersionSummary { + /** + *

The Amazon Resource Name (ARN) of the message template.

+ * @public + */ + messageTemplateArn: string | undefined; + + /** + *

The identifier of the message template.

+ * @public + */ + messageTemplateId: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of the knowledge base.

+ * @public + */ + knowledgeBaseArn: string | undefined; + + /** + *

The identifier of the knowledge base.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

The name of the message template.

+ * @public + */ + name: string | undefined; + + /** + *

The channel of the message template.

+ * @public + */ + channel?: string | undefined; + + /** + *

The channel subtype this message template applies to.

+ * @public + */ + channelSubtype: ChannelSubtype | undefined; + + /** + *

Whether the version of the message template is activated.

+ * @public + */ + isActive: boolean | undefined; + + /** + *

The version number of the message template version.

+ * @public + */ + versionNumber: number | undefined; +} + +/** + * @public + */ +export interface ListMessageTemplateVersionsResponse { + /** + *

Summary information about the versions of a message template.

+ * @public + */ + messageTemplateVersionSummaries: MessageTemplateVersionSummary[] | undefined; + + /** + *

If there are additional results, this is the token for the next set of results.

+ * @public + */ + nextToken?: string | undefined; +} + +/** + * @public + */ +export interface RenderMessageTemplateRequest { + /** + *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

+ * @public + */ + knowledgeBaseId: string | undefined; + + /** + *

The identifier of the message template. Can be either the ID or the ARN.

+ * @public + */ + messageTemplateId: string | undefined; + + /** + *

An object that specifies the values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the value for that variable.

+ * @public + */ + attributes: MessageTemplateAttributes | undefined; +} diff --git a/clients/client-qconnect/src/models/models_1.ts b/clients/client-qconnect/src/models/models_1.ts index f9335430d18d..fe250448b8ca 100644 --- a/clients/client-qconnect/src/models/models_1.ts +++ b/clients/client-qconnect/src/models/models_1.ts @@ -1,1717 +1,45 @@ // smithy-typescript generated code import { ChannelSubtype, - Configuration, - ContentDataDetails, - ContentDisposition, - ContentSummary, - DataReference, - Document, - EmailOverviewChunkDataDetails, - EmailResponseChunkDataDetails, - GroupingConfiguration, - IntentDetectedDataDetails, - KnowledgeBaseData, - KnowledgeBaseStatus, - KnowledgeBaseType, - MessageTemplateAttributes, - MessageTemplateAttributeType, - MessageTemplateContentProvider, - MessageTemplateSourceConfiguration, - QueryResultType, - RankingData, - RecommendationTrigger, - RecommendationType, - RelevanceLevel, - RenderingConfiguration, - SearchExpression, - ServerSideEncryptionConfiguration, - SourceConfiguration, - SourceContentDataDetails, - VectorIngestionConfiguration, - WhatsAppSourceConfigurationStatus, -} from "./models_0"; - -/** - *

Configuration information about the external data source.

- * @public - */ -export interface WhatsAppMessageTemplateSourceConfigurationSummary { - /** - *

The ID of the End User Messaging WhatsApp Business Account to associate with this template.

- * @public - */ - businessAccountId: string | undefined; - - /** - *

The ID of WhatsApp template.

- * @public - */ - templateId: string | undefined; - - /** - *

The name of the WhatsApp template.

- * @public - */ - name?: string | undefined; - - /** - *

The language of the WhatsApp template.

- * @public - */ - language?: string | undefined; - - /** - *

The list of component mapping from WhatsApp template parameters to Message Template attributes.

- * @public - */ - components?: string[] | undefined; - - /** - *

The status of the message template.

- * @public - */ - status?: WhatsAppSourceConfigurationStatus | undefined; - - /** - *

The status reason of the message template.

- * @public - */ - statusReason?: string | undefined; -} - -/** - *

The container of message template source configuration summary.

- * @public - */ -export type MessageTemplateSourceConfigurationSummary = - | MessageTemplateSourceConfigurationSummary.WhatsAppMember - | MessageTemplateSourceConfigurationSummary.$UnknownMember; - -/** - * @public - */ -export namespace MessageTemplateSourceConfigurationSummary { - /** - *

The sourceConfiguration summary of the message template that applies to the WHATSAPP channel subtype.

- * @public - */ - export interface WhatsAppMember { - whatsApp: WhatsAppMessageTemplateSourceConfigurationSummary; - $unknown?: never; - } - - /** - * @public - */ - export interface $UnknownMember { - whatsApp?: never; - $unknown: [string, any]; - } - - /** - * @deprecated unused in schema-serde mode. - * - */ - export interface Visitor { - whatsApp: (value: WhatsAppMessageTemplateSourceConfigurationSummary) => T; - _: (name: string, value: any) => T; - } -} - -/** - *

The data of a message template.

- * @public - */ -export interface MessageTemplateData { - /** - *

The Amazon Resource Name (ARN) of the message template.

- * @public - */ - messageTemplateArn: string | undefined; - - /** - *

The identifier of the message template.

- * @public - */ - messageTemplateId: string | undefined; - - /** - *

The Amazon Resource Name (ARN) of the knowledge base.

- * @public - */ - knowledgeBaseArn: string | undefined; - - /** - *

The identifier of the knowledge base.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

The name of the message template.

- * @public - */ - name: string | undefined; - - /** - *

The channel of the message template.

- * @public - */ - channel?: string | undefined; - - /** - *

The channel subtype this message template applies to.

- * @public - */ - channelSubtype: ChannelSubtype | undefined; - - /** - *

The timestamp when the message template was created.

- * @public - */ - createdTime: Date | undefined; - - /** - *

The timestamp when the message template data was last modified.

- * @public - */ - lastModifiedTime: Date | undefined; - - /** - *

The Amazon Resource Name (ARN) of the user who last updated the message template data.

- * @public - */ - lastModifiedBy: string | undefined; - - /** - *

The content of the message template.

- * @public - */ - content?: MessageTemplateContentProvider | undefined; - - /** - *

The description of the message template.

- * @public - */ - description?: string | undefined; - - /** - *

The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, zh_TW

- * @public - */ - language?: string | undefined; - - /** - *

The source configuration summary of the message template.

- * @public - */ - sourceConfigurationSummary?: MessageTemplateSourceConfigurationSummary | undefined; - - /** - *

The configuration information of the grouping of Amazon Q in Connect users.

- * @public - */ - groupingConfiguration?: GroupingConfiguration | undefined; - - /** - *

An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.

- * @public - */ - defaultAttributes?: MessageTemplateAttributes | undefined; - - /** - *

The types of attributes that the message template contains.

- * @public - */ - attributeTypes?: MessageTemplateAttributeType[] | undefined; - - /** - *

The checksum value of the message template content that is referenced by the $LATEST qualifier. It can be returned in MessageTemplateData or ExtendedMessageTemplateData. It’s calculated by content, language, defaultAttributes and Attachments of the message template.

- * @public - */ - messageTemplateContentSha256: string | undefined; - - /** - *

The tags used to organize, track, or control access for this resource.

- * @public - */ - tags?: Record | undefined; -} - -/** - * @public - */ -export interface CreateMessageTemplateResponse { - /** - *

The message template.

- * @public - */ - messageTemplate?: MessageTemplateData | undefined; -} - -/** - * @public - */ -export interface CreateMessageTemplateAttachmentRequest { - /** - *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

- * @public - */ - messageTemplateId: string | undefined; - - /** - *

The presentation information for the attachment file.

- * @public - */ - contentDisposition: ContentDisposition | undefined; - - /** - *

The name of the attachment file being uploaded. The name should include the file extension.

- * @public - */ - name: string | undefined; - - /** - *

The body of the attachment file being uploaded. It should be encoded using base64 encoding.

- * @public - */ - body: string | undefined; - - /** - *

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

- * @public - */ - clientToken?: string | undefined; -} - -/** - *

Information about the message template attachment.

- * @public - */ -export interface MessageTemplateAttachment { - /** - *

The presentation information for the attachment file.

- * @public - */ - contentDisposition: ContentDisposition | undefined; - - /** - *

The name of the attachment file being uploaded. The name should include the file extension.

- * @public - */ - name: string | undefined; - - /** - *

The timestamp when the attachment file was uploaded.

- * @public - */ - uploadedTime: Date | undefined; - - /** - *

A pre-signed Amazon S3 URL that can be used to download the attachment file.

- * @public - */ - url: string | undefined; - - /** - *

The expiration time of the pre-signed Amazon S3 URL.

- * @public - */ - urlExpiry: Date | undefined; - - /** - *

The identifier of the attachment file.

- * @public - */ - attachmentId: string | undefined; -} - -/** - * @public - */ -export interface CreateMessageTemplateAttachmentResponse { - /** - *

The message template attachment.

- * @public - */ - attachment?: MessageTemplateAttachment | undefined; -} - -/** - * @public - */ -export interface CreateMessageTemplateVersionRequest { - /** - *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

- * @public - */ - messageTemplateId: string | undefined; - - /** - *

The checksum value of the message template content that is referenced by the $LATEST qualifier. It can be returned in MessageTemplateData or ExtendedMessageTemplateData. It’s calculated by content, language, defaultAttributes and Attachments of the message template. If not supplied, the message template version will be created based on the message template content that is referenced by the $LATEST qualifier by default.

- * @public - */ - messageTemplateContentSha256?: string | undefined; -} - -/** - *

The extended data of a message template.

- * @public - */ -export interface ExtendedMessageTemplateData { - /** - *

The Amazon Resource Name (ARN) of the message template.

- * @public - */ - messageTemplateArn: string | undefined; - - /** - *

The identifier of the message template.

- * @public - */ - messageTemplateId: string | undefined; - - /** - *

The Amazon Resource Name (ARN) of the knowledge base.

- * @public - */ - knowledgeBaseArn: string | undefined; - - /** - *

The identifier of the knowledge base.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

The name of the message template.

- * @public - */ - name: string | undefined; - - /** - *

The channel of the message template.

- * @public - */ - channel?: string | undefined; - - /** - *

The channel subtype this message template applies to.

- * @public - */ - channelSubtype: ChannelSubtype | undefined; - - /** - *

The timestamp when the message template was created.

- * @public - */ - createdTime: Date | undefined; - - /** - *

The timestamp when the message template data was last modified.

- * @public - */ - lastModifiedTime: Date | undefined; - - /** - *

The Amazon Resource Name (ARN) of the user who last updated the message template data.

- * @public - */ - lastModifiedBy: string | undefined; - - /** - *

The content of the message template.

- * @public - */ - content?: MessageTemplateContentProvider | undefined; - - /** - *

The description of the message template.

- * @public - */ - description?: string | undefined; - - /** - *

The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, zh_TW

- * @public - */ - language?: string | undefined; - - /** - *

The source configuration summary of the message template.

- * @public - */ - sourceConfigurationSummary?: MessageTemplateSourceConfigurationSummary | undefined; - - /** - *

The configuration information of the grouping of Amazon Q in Connect users.

- * @public - */ - groupingConfiguration?: GroupingConfiguration | undefined; - - /** - *

An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.

- * @public - */ - defaultAttributes?: MessageTemplateAttributes | undefined; - - /** - *

The types of attributes contain the message template.

- * @public - */ - attributeTypes?: MessageTemplateAttributeType[] | undefined; - - /** - *

The message template attachments.

- * @public - */ - attachments?: MessageTemplateAttachment[] | undefined; - - /** - *

Whether the version of the message template is activated.

- * @public - */ - isActive?: boolean | undefined; - - /** - *

The version number of the message template version.

- * @public - */ - versionNumber?: number | undefined; - - /** - *

The checksum value of the message template content that is referenced by the $LATEST qualifier. It can be returned in MessageTemplateData or ExtendedMessageTemplateData. It’s calculated by content, language, defaultAttributes and Attachments of the message template.

- * @public - */ - messageTemplateContentSha256: string | undefined; - - /** - *

The tags used to organize, track, or control access for this resource.

- * @public - */ - tags?: Record | undefined; -} - -/** - * @public - */ -export interface CreateMessageTemplateVersionResponse { - /** - *

The message template.

- * @public - */ - messageTemplate?: ExtendedMessageTemplateData | undefined; -} - -/** - *

The container of quick response data.

- * @public - */ -export type QuickResponseDataProvider = - | QuickResponseDataProvider.ContentMember - | QuickResponseDataProvider.$UnknownMember; - -/** - * @public - */ -export namespace QuickResponseDataProvider { - /** - *

The content of the quick response.

- * @public - */ - export interface ContentMember { - content: string; - $unknown?: never; - } - - /** - * @public - */ - export interface $UnknownMember { - content?: never; - $unknown: [string, any]; - } - - /** - * @deprecated unused in schema-serde mode. - * - */ - export interface Visitor { - content: (value: string) => T; - _: (name: string, value: any) => T; - } -} - -/** - * @public - */ -export interface CreateQuickResponseRequest { - /** - *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

The name of the quick response.

- * @public - */ - name: string | undefined; - - /** - *

The content of the quick response.

- * @public - */ - content: QuickResponseDataProvider | undefined; - - /** - *

The media type of the quick response content.

  • Use application/x.quickresponse;format=plain for a quick response written in plain text.

  • Use application/x.quickresponse;format=markdown for a quick response written in richtext.

- * @public - */ - contentType?: string | undefined; - - /** - *

The configuration information of the user groups that the quick response is accessible to.

- * @public - */ - groupingConfiguration?: GroupingConfiguration | undefined; - - /** - *

The description of the quick response.

- * @public - */ - description?: string | undefined; - - /** - *

The shortcut key of the quick response. The value should be unique across the knowledge base.

- * @public - */ - shortcutKey?: string | undefined; - - /** - *

Whether the quick response is active.

- * @public - */ - isActive?: boolean | undefined; - - /** - *

The Amazon Connect channels this quick response applies to.

- * @public - */ - channels?: string[] | undefined; - - /** - *

The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, zh_TW

- * @public - */ - language?: string | undefined; - - /** - *

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

- * @public - */ - clientToken?: string | undefined; - - /** - *

The tags used to organize, track, or control access for this resource.

- * @public - */ - tags?: Record | undefined; -} - -/** - *

The container quick response content.

- * @public - */ -export type QuickResponseContentProvider = - | QuickResponseContentProvider.ContentMember - | QuickResponseContentProvider.$UnknownMember; - -/** - * @public - */ -export namespace QuickResponseContentProvider { - /** - *

The content of the quick response.

- * @public - */ - export interface ContentMember { - content: string; - $unknown?: never; - } - - /** - * @public - */ - export interface $UnknownMember { - content?: never; - $unknown: [string, any]; - } - - /** - * @deprecated unused in schema-serde mode. - * - */ - export interface Visitor { - content: (value: string) => T; - _: (name: string, value: any) => T; - } -} - -/** - *

The content of the quick response stored in different media types.

- * @public - */ -export interface QuickResponseContents { - /** - *

The container quick response content.

- * @public - */ - plainText?: QuickResponseContentProvider | undefined; - - /** - *

The container quick response content.

- * @public - */ - markdown?: QuickResponseContentProvider | undefined; -} - -/** - * @public - * @enum - */ -export const QuickResponseStatus = { - CREATED: "CREATED", - CREATE_FAILED: "CREATE_FAILED", - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - DELETED: "DELETED", - DELETE_FAILED: "DELETE_FAILED", - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", - UPDATE_FAILED: "UPDATE_FAILED", - UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type QuickResponseStatus = (typeof QuickResponseStatus)[keyof typeof QuickResponseStatus]; - -/** - *

Information about the quick response.

- * @public - */ -export interface QuickResponseData { - /** - *

The Amazon Resource Name (ARN) of the quick response.

- * @public - */ - quickResponseArn: string | undefined; - - /** - *

The identifier of the quick response.

- * @public - */ - quickResponseId: string | undefined; - - /** - *

The Amazon Resource Name (ARN) of the knowledge base.

- * @public - */ - knowledgeBaseArn: string | undefined; - - /** - *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

The name of the quick response.

- * @public - */ - name: string | undefined; - - /** - *

The media type of the quick response content.

  • Use application/x.quickresponse;format=plain for quick response written in plain text.

  • Use application/x.quickresponse;format=markdown for quick response written in richtext.

- * @public - */ - contentType: string | undefined; - - /** - *

The status of the quick response data.

- * @public - */ - status: QuickResponseStatus | undefined; - - /** - *

The timestamp when the quick response was created.

- * @public - */ - createdTime: Date | undefined; - - /** - *

The timestamp when the quick response data was last modified.

- * @public - */ - lastModifiedTime: Date | undefined; - - /** - *

The contents of the quick response.

- * @public - */ - contents?: QuickResponseContents | undefined; - - /** - *

The description of the quick response.

- * @public - */ - description?: string | undefined; - - /** - *

The configuration information of the user groups that the quick response is accessible to.

- * @public - */ - groupingConfiguration?: GroupingConfiguration | undefined; - - /** - *

The shortcut key of the quick response. The value should be unique across the knowledge base.

- * @public - */ - shortcutKey?: string | undefined; - - /** - *

The Amazon Resource Name (ARN) of the user who last updated the quick response data.

- * @public - */ - lastModifiedBy?: string | undefined; - - /** - *

Whether the quick response is active.

- * @public - */ - isActive?: boolean | undefined; - - /** - *

The Amazon Connect contact channels this quick response applies to. The supported contact channel types include Chat.

- * @public - */ - channels?: string[] | undefined; - - /** - *

The language code value for the language in which the quick response is written. The supported language codes include de_DE, en_US, es_ES, fr_FR, id_ID, it_IT, ja_JP, ko_KR, pt_BR, zh_CN, zh_TW

- * @public - */ - language?: string | undefined; - - /** - *

The tags used to organize, track, or control access for this resource.

- * @public - */ - tags?: Record | undefined; -} - -/** - * @public - */ -export interface CreateQuickResponseResponse { - /** - *

The quick response.

- * @public - */ - quickResponse?: QuickResponseData | undefined; -} - -/** - * @public - */ -export interface DeactivateMessageTemplateRequest { - /** - *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

- * @public - */ - messageTemplateId: string | undefined; - - /** - *

The version number of the message template version to deactivate.

- * @public - */ - versionNumber: number | undefined; -} - -/** - * @public - */ -export interface DeactivateMessageTemplateResponse { - /** - *

The Amazon Resource Name (ARN) of the message template.

- * @public - */ - messageTemplateArn: string | undefined; - - /** - *

The identifier of the message template.

- * @public - */ - messageTemplateId: string | undefined; - - /** - *

The version number of the message template version that has been deactivated.

- * @public - */ - versionNumber: number | undefined; -} - -/** - * @public - */ -export interface DeleteImportJobRequest { - /** - *

The identifier of the knowledge base.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

The identifier of the import job to be deleted.

- * @public - */ - importJobId: string | undefined; -} - -/** - * @public - */ -export interface DeleteImportJobResponse {} - -/** - * @public - */ -export interface DeleteKnowledgeBaseRequest { - /** - *

The knowledge base to delete content from. Can be either the ID or the ARN. URLs cannot contain the ARN.

- * @public - */ - knowledgeBaseId: string | undefined; -} - -/** - * @public - */ -export interface DeleteKnowledgeBaseResponse {} - -/** - * @public - */ -export interface DeleteMessageTemplateRequest { - /** - *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

The identifier of the message template. Can be either the ID or the ARN.

- * @public - */ - messageTemplateId: string | undefined; -} - -/** - * @public - */ -export interface DeleteMessageTemplateResponse {} - -/** - * @public - */ -export interface DeleteMessageTemplateAttachmentRequest { - /** - *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

- * @public - */ - messageTemplateId: string | undefined; - - /** - *

The identifier of the attachment file.

- * @public - */ - attachmentId: string | undefined; -} - -/** - * @public - */ -export interface DeleteMessageTemplateAttachmentResponse {} - -/** - * @public - */ -export interface DeleteQuickResponseRequest { - /** - *

The knowledge base from which the quick response is deleted. The identifier of the knowledge base.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

The identifier of the quick response to delete.

- * @public - */ - quickResponseId: string | undefined; -} - -/** - * @public - */ -export interface DeleteQuickResponseResponse {} - -/** - * @public - * @enum - */ -export const ExternalSource = { - AMAZON_CONNECT: "AMAZON_CONNECT", -} as const; - -/** - * @public - */ -export type ExternalSource = (typeof ExternalSource)[keyof typeof ExternalSource]; - -/** - *

The configuration information of the external data source.

- * @public - */ -export interface ExternalSourceConfiguration { - /** - *

The type of the external data source.

- * @public - */ - source: ExternalSource | undefined; - - /** - *

The configuration information of the external data source.

- * @public - */ - configuration: Configuration | undefined; -} - -/** - * @public - */ -export interface GetImportJobRequest { - /** - *

The identifier of the import job to retrieve.

- * @public - */ - importJobId: string | undefined; - - /** - *

The identifier of the knowledge base that the import job belongs to.

- * @public - */ - knowledgeBaseId: string | undefined; -} - -/** - * @public - * @enum - */ -export const ImportJobType = { - QUICK_RESPONSES: "QUICK_RESPONSES", -} as const; - -/** - * @public - */ -export type ImportJobType = (typeof ImportJobType)[keyof typeof ImportJobType]; - -/** - * @public - * @enum - */ -export const ImportJobStatus = { - COMPLETE: "COMPLETE", - DELETED: "DELETED", - DELETE_FAILED: "DELETE_FAILED", - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", - FAILED: "FAILED", - START_IN_PROGRESS: "START_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type ImportJobStatus = (typeof ImportJobStatus)[keyof typeof ImportJobStatus]; - -/** - *

Summary information about the import job.

- * @public - */ -export interface ImportJobData { - /** - *

The identifier of the import job.

- * @public - */ - importJobId: string | undefined; - - /** - *

The identifier of the knowledge base.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

A pointer to the uploaded asset. This value is returned by StartContentUpload.

- * @public - */ - uploadId: string | undefined; - - /** - *

The Amazon Resource Name (ARN) of the knowledge base.

- * @public - */ - knowledgeBaseArn: string | undefined; - - /** - *

The type of the import job.

- * @public - */ - importJobType: ImportJobType | undefined; - - /** - *

The status of the import job.

- * @public - */ - status: ImportJobStatus | undefined; - - /** - *

The download link to the resource file that is uploaded to the import job.

- * @public - */ - url: string | undefined; - - /** - *

The link to download the information of resource data that failed to be imported.

- * @public - */ - failedRecordReport?: string | undefined; - - /** - *

The expiration time of the URL as an epoch timestamp.

- * @public - */ - urlExpiry: Date | undefined; - - /** - *

The timestamp when the import job was created.

- * @public - */ - createdTime: Date | undefined; - - /** - *

The timestamp when the import job data was last modified.

- * @public - */ - lastModifiedTime: Date | undefined; - - /** - *

The metadata fields of the imported Amazon Q in Connect resources.

- * @public - */ - metadata?: Record | undefined; - - /** - *

The configuration information of the external data source.

- * @public - */ - externalSourceConfiguration?: ExternalSourceConfiguration | undefined; -} - -/** - * @public - */ -export interface GetImportJobResponse { - /** - *

The import job.

- * @public - */ - importJob?: ImportJobData | undefined; -} - -/** - * @public - */ -export interface GetKnowledgeBaseRequest { - /** - *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

- * @public - */ - knowledgeBaseId: string | undefined; -} - -/** - * @public - */ -export interface GetKnowledgeBaseResponse { - /** - *

The knowledge base.

- * @public - */ - knowledgeBase?: KnowledgeBaseData | undefined; -} - -/** - * @public - */ -export interface GetMessageTemplateRequest { - /** - *

The identifier of the message template. Can be either the ID or the ARN.

- * @public - */ - messageTemplateId: string | undefined; - - /** - *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

- * @public - */ - knowledgeBaseId: string | undefined; -} - -/** - * @public - */ -export interface GetMessageTemplateResponse { - /** - *

The message template.

- * @public - */ - messageTemplate?: ExtendedMessageTemplateData | undefined; -} - -/** - * @public - */ -export interface GetQuickResponseRequest { - /** - *

The identifier of the quick response.

- * @public - */ - quickResponseId: string | undefined; - - /** - *

The identifier of the knowledge base. This should be a QUICK_RESPONSES type knowledge base.

- * @public - */ - knowledgeBaseId: string | undefined; -} - -/** - * @public - */ -export interface GetQuickResponseResponse { - /** - *

The quick response.

- * @public - */ - quickResponse?: QuickResponseData | undefined; -} - -/** - *

Summary information about the import job.

- * @public - */ -export interface ImportJobSummary { - /** - *

The identifier of the import job.

- * @public - */ - importJobId: string | undefined; - - /** - *

The identifier of the knowledge base.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

A pointer to the uploaded asset. This value is returned by StartContentUpload.

- * @public - */ - uploadId: string | undefined; - - /** - *

The Amazon Resource Name (ARN) of the knowledge base.

- * @public - */ - knowledgeBaseArn: string | undefined; - - /** - *

The type of import job.

- * @public - */ - importJobType: ImportJobType | undefined; - - /** - *

The status of the import job.

- * @public - */ - status: ImportJobStatus | undefined; - - /** - *

The timestamp when the import job was created.

- * @public - */ - createdTime: Date | undefined; - - /** - *

The timestamp when the import job was last modified.

- * @public - */ - lastModifiedTime: Date | undefined; - - /** - *

The metadata fields of the imported Amazon Q in Connect resources.

- * @public - */ - metadata?: Record | undefined; - - /** - *

The configuration information of the external source that the resource data are imported from.

- * @public - */ - externalSourceConfiguration?: ExternalSourceConfiguration | undefined; -} - -/** - * @public - */ -export interface ListImportJobsRequest { - /** - *

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

- * @public - */ - nextToken?: string | undefined; - - /** - *

The maximum number of results to return per page.

- * @public - */ - maxResults?: number | undefined; - - /** - *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

- * @public - */ - knowledgeBaseId: string | undefined; -} - -/** - * @public - */ -export interface ListImportJobsResponse { - /** - *

Summary information about the import jobs.

- * @public - */ - importJobSummaries: ImportJobSummary[] | undefined; - - /** - *

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface ListKnowledgeBasesRequest { - /** - *

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

- * @public - */ - nextToken?: string | undefined; - - /** - *

The maximum number of results to return per page.

- * @public - */ - maxResults?: number | undefined; -} - -/** - *

Summary information about the knowledge base.

- * @public - */ -export interface KnowledgeBaseSummary { - /** - *

The identifier of the knowledge base.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

The Amazon Resource Name (ARN) of the knowledge base.

- * @public - */ - knowledgeBaseArn: string | undefined; - - /** - *

The name of the knowledge base.

- * @public - */ - name: string | undefined; - - /** - *

The type of knowledge base.

- * @public - */ - knowledgeBaseType: KnowledgeBaseType | undefined; - - /** - *

The status of the knowledge base summary.

- * @public - */ - status: KnowledgeBaseStatus | undefined; - - /** - *

Configuration information about the external data source.

- * @public - */ - sourceConfiguration?: SourceConfiguration | undefined; - - /** - *

Contains details about how to ingest the documents in a data source.

- * @public - */ - vectorIngestionConfiguration?: VectorIngestionConfiguration | undefined; - - /** - *

Information about how to render the content.

- * @public - */ - renderingConfiguration?: RenderingConfiguration | undefined; - - /** - *

The configuration information for the customer managed key used for encryption.

This KMS key must have a policy that allows kms:CreateGrant, kms:DescribeKey, kms:Decrypt, and kms:GenerateDataKey* permissions to the IAM identity using the key to invoke Amazon Q in Connect.

For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance.

- * @public - */ - serverSideEncryptionConfiguration?: ServerSideEncryptionConfiguration | undefined; - - /** - *

The description of the knowledge base.

- * @public - */ - description?: string | undefined; - - /** - *

The tags used to organize, track, or control access for this resource.

- * @public - */ - tags?: Record | undefined; -} - -/** - * @public - */ -export interface ListKnowledgeBasesResponse { - /** - *

Information about the knowledge bases.

- * @public - */ - knowledgeBaseSummaries: KnowledgeBaseSummary[] | undefined; - - /** - *

If there are additional results, this is the token for the next set of results.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface ListMessageTemplatesRequest { - /** - *

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

- * @public - */ - nextToken?: string | undefined; - - /** - *

The maximum number of results to return per page.

- * @public - */ - maxResults?: number | undefined; - - /** - *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

- * @public - */ - knowledgeBaseId: string | undefined; -} - -/** - *

The summary of the message template.

- * @public - */ -export interface MessageTemplateSummary { - /** - *

The Amazon Resource Name (ARN) of the message template.

- * @public - */ - messageTemplateArn: string | undefined; - - /** - *

The identifier of the message template.

- * @public - */ - messageTemplateId: string | undefined; - - /** - *

The Amazon Resource Name (ARN) of the knowledge base.

- * @public - */ - knowledgeBaseArn: string | undefined; - - /** - *

The identifier of the knowledge base.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

The name of the message template.

- * @public - */ - name: string | undefined; - - /** - *

The channel this message template applies to.

- * @public - */ - channel?: string | undefined; - - /** - *

The channel subtype this message template applies to.

- * @public - */ - channelSubtype: ChannelSubtype | undefined; - - /** - *

The timestamp when the message template was created.

- * @public - */ - createdTime: Date | undefined; - - /** - *

The timestamp when the message template data was last modified.

- * @public - */ - lastModifiedTime: Date | undefined; - - /** - *

The Amazon Resource Name (ARN) of the user who last updated the message template data.

- * @public - */ - lastModifiedBy: string | undefined; - - /** - *

The container of message template source configuration.

- * @public - */ - sourceConfiguration?: MessageTemplateSourceConfiguration | undefined; - - /** - *

The version number of the message template version that is activated.

- * @public - */ - activeVersionNumber?: number | undefined; - - /** - *

The description of the message template.

- * @public - */ - description?: string | undefined; - - /** - *

The tags used to organize, track, or control access for this resource.

- * @public - */ - tags?: Record | undefined; -} - -/** - * @public - */ -export interface ListMessageTemplatesResponse { - /** - *

Summary information about the message template.

- * @public - */ - messageTemplateSummaries: MessageTemplateSummary[] | undefined; - - /** - *

If there are additional results, this is the token for the next set of results.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface ListMessageTemplateVersionsRequest { - /** - *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

The identifier of the message template. Can be either the ID or the ARN. It cannot contain any qualifier.

- * @public - */ - messageTemplateId: string | undefined; - - /** - *

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

- * @public - */ - nextToken?: string | undefined; - - /** - *

The maximum number of results to return per page.

- * @public - */ - maxResults?: number | undefined; -} - -/** - *

The summary of the message template version.

- * @public - */ -export interface MessageTemplateVersionSummary { - /** - *

The Amazon Resource Name (ARN) of the message template.

- * @public - */ - messageTemplateArn: string | undefined; - - /** - *

The identifier of the message template.

- * @public - */ - messageTemplateId: string | undefined; - - /** - *

The Amazon Resource Name (ARN) of the knowledge base.

- * @public - */ - knowledgeBaseArn: string | undefined; - - /** - *

The identifier of the knowledge base.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

The name of the message template.

- * @public - */ - name: string | undefined; - - /** - *

The channel of the message template.

- * @public - */ - channel?: string | undefined; - - /** - *

The channel subtype this message template applies to.

- * @public - */ - channelSubtype: ChannelSubtype | undefined; - - /** - *

Whether the version of the message template is activated.

- * @public - */ - isActive: boolean | undefined; - - /** - *

The version number of the message template version.

- * @public - */ - versionNumber: number | undefined; -} - -/** - * @public - */ -export interface ListMessageTemplateVersionsResponse { - /** - *

Summary information about the versions of a message template.

- * @public - */ - messageTemplateVersionSummaries: MessageTemplateVersionSummary[] | undefined; - - /** - *

If there are additional results, this is the token for the next set of results.

- * @public - */ - nextToken?: string | undefined; -} - -/** - * @public - */ -export interface RenderMessageTemplateRequest { - /** - *

The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

- * @public - */ - knowledgeBaseId: string | undefined; - - /** - *

The identifier of the message template. Can be either the ID or the ARN.

- * @public - */ - messageTemplateId: string | undefined; + ImportJobType, + MessageTemplateFilterOperator, + MessageTemplateQueryOperator, + Order, + Priority, + QueryResultType, + QuickResponseFilterOperator, + QuickResponseQueryOperator, + QuickResponseStatus, + RecommendationType, + RelevanceLevel, +} from "./enums"; - /** - *

An object that specifies the values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the value for that variable.

- * @public - */ - attributes: MessageTemplateAttributes | undefined; -} +import { + ContentDataDetails, + ContentSummary, + DataReference, + Document, + EmailOverviewChunkDataDetails, + EmailResponseChunkDataDetails, + ExternalSourceConfiguration, + GroupingConfiguration, + ImportJobData, + IntentDetectedDataDetails, + KnowledgeBaseData, + MessageTemplateAttachment, + MessageTemplateAttributes, + MessageTemplateContentProvider, + MessageTemplateData, + MessageTemplateSourceConfiguration, + MessageTemplateSourceConfigurationSummary, + QuickResponseContents, + QuickResponseData, + QuickResponseDataProvider, + RankingData, + RecommendationTrigger, + SearchExpression, + SourceContentDataDetails, +} from "./models_0"; /** * @public @@ -2132,21 +460,6 @@ export interface SearchContentResponse { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const MessageTemplateFilterOperator = { - EQUALS: "EQUALS", - PREFIX: "PREFIX", -} as const; - -/** - * @public - */ -export type MessageTemplateFilterOperator = - (typeof MessageTemplateFilterOperator)[keyof typeof MessageTemplateFilterOperator]; - /** *

The message template fields to filter the message template query results by. The following is the list of supported field names:

  • name

  • description

  • channel

  • channelSubtype

  • language

  • qualifier

  • createdTime

  • lastModifiedTime

  • lastModifiedBy

  • groupingConfiguration.criteria

  • groupingConfiguration.values

* @public @@ -2177,20 +490,6 @@ export interface MessageTemplateFilterField { includeNoExistence?: boolean | undefined; } -/** - * @public - * @enum - */ -export const Order = { - ASC: "ASC", - DESC: "DESC", -} as const; - -/** - * @public - */ -export type Order = (typeof Order)[keyof typeof Order]; - /** *

The message template fields to order the message template query results by. The following is the list of supported field names:

  • name

  • description

  • channel

  • channelSubtype

  • language

  • qualifier

  • createdTime

  • lastModifiedTime

  • lastModifiedBy

  • groupingConfiguration.criteria

  • groupingConfiguration.values

* @public @@ -2209,36 +508,6 @@ export interface MessageTemplateOrderField { order?: Order | undefined; } -/** - * @public - * @enum - */ -export const MessageTemplateQueryOperator = { - CONTAINS: "CONTAINS", - CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX", -} as const; - -/** - * @public - */ -export type MessageTemplateQueryOperator = - (typeof MessageTemplateQueryOperator)[keyof typeof MessageTemplateQueryOperator]; - -/** - * @public - * @enum - */ -export const Priority = { - HIGH: "HIGH", - LOW: "LOW", - MEDIUM: "MEDIUM", -} as const; - -/** - * @public - */ -export type Priority = (typeof Priority)[keyof typeof Priority]; - /** *

The message template fields to query message templates by. The following is the list of supported field names:

  • name

  • description

* @public @@ -2453,21 +722,6 @@ export interface SearchMessageTemplatesResponse { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const QuickResponseFilterOperator = { - EQUALS: "EQUALS", - PREFIX: "PREFIX", -} as const; - -/** - * @public - */ -export type QuickResponseFilterOperator = - (typeof QuickResponseFilterOperator)[keyof typeof QuickResponseFilterOperator]; - /** *

The quick response fields to filter the quick response query results by.

The following is the list of supported field names.

  • name

  • description

  • shortcutKey

  • isActive

  • channels

  • language

  • contentType

  • createdTime

  • lastModifiedTime

  • lastModifiedBy

  • groupingConfiguration.criteria

  • groupingConfiguration.values

* @public @@ -2516,20 +770,6 @@ export interface QuickResponseOrderField { order?: Order | undefined; } -/** - * @public - * @enum - */ -export const QuickResponseQueryOperator = { - CONTAINS: "CONTAINS", - CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX", -} as const; - -/** - * @public - */ -export type QuickResponseQueryOperator = (typeof QuickResponseQueryOperator)[keyof typeof QuickResponseQueryOperator]; - /** *

The quick response fields to query quick responses by.

The following is the list of supported field names.

  • content

  • name

  • description

  • shortcutKey

* @public diff --git a/clients/client-rds-data/src/index.ts b/clients/client-rds-data/src/index.ts index 2cfaa742de12..87bc4ec3365b 100644 --- a/clients/client-rds-data/src/index.ts +++ b/clients/client-rds-data/src/index.ts @@ -26,6 +26,7 @@ export type { RuntimeExtension } from "./runtimeExtensions"; export type { RDSDataExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-rds-data/src/models/enums.ts b/clients/client-rds-data/src/models/enums.ts new file mode 100644 index 000000000000..4464d9dffeaf --- /dev/null +++ b/clients/client-rds-data/src/models/enums.ts @@ -0,0 +1,56 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const TypeHint = { + DATE: "DATE", + DECIMAL: "DECIMAL", + JSON: "JSON", + TIME: "TIME", + TIMESTAMP: "TIMESTAMP", + UUID: "UUID", +} as const; +/** + * @public + */ +export type TypeHint = (typeof TypeHint)[keyof typeof TypeHint]; + +/** + * @public + * @enum + */ +export const DecimalReturnType = { + DOUBLE_OR_LONG: "DOUBLE_OR_LONG", + STRING: "STRING", +} as const; +/** + * @public + */ +export type DecimalReturnType = (typeof DecimalReturnType)[keyof typeof DecimalReturnType]; + +/** + * @public + * @enum + */ +export const RecordsFormatType = { + JSON: "JSON", + NONE: "NONE", +} as const; +/** + * @public + */ +export type RecordsFormatType = (typeof RecordsFormatType)[keyof typeof RecordsFormatType]; + +/** + * @public + * @enum + */ +export const LongReturnType = { + LONG: "LONG", + STRING: "STRING", +} as const; +/** + * @public + */ +export type LongReturnType = (typeof LongReturnType)[keyof typeof LongReturnType]; diff --git a/clients/client-rds-data/src/models/models_0.ts b/clients/client-rds-data/src/models/models_0.ts index 862188270ba6..b82fc9509f92 100644 --- a/clients/client-rds-data/src/models/models_0.ts +++ b/clients/client-rds-data/src/models/models_0.ts @@ -1,21 +1,5 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const TypeHint = { - DATE: "DATE", - DECIMAL: "DECIMAL", - JSON: "JSON", - TIME: "TIME", - TIMESTAMP: "TIMESTAMP", - UUID: "UUID", -} as const; - -/** - * @public - */ -export type TypeHint = (typeof TypeHint)[keyof typeof TypeHint]; +import { DecimalReturnType, LongReturnType, RecordsFormatType, TypeHint } from "./enums"; /** *

The request parameters represent the input of a request to start a SQL @@ -187,20 +171,6 @@ export interface CommitTransactionResponse { transactionStatus?: string | undefined; } -/** - * @public - * @enum - */ -export const DecimalReturnType = { - DOUBLE_OR_LONG: "DOUBLE_OR_LONG", - STRING: "STRING", -} as const; - -/** - * @public - */ -export type DecimalReturnType = (typeof DecimalReturnType)[keyof typeof DecimalReturnType]; - /** *

The request parameters represent the input of a request to run one or more SQL * statements.

@@ -261,34 +231,6 @@ export interface ResultSetMetadata { columnMetadata?: ColumnMetadata[] | undefined; } -/** - * @public - * @enum - */ -export const RecordsFormatType = { - JSON: "JSON", - NONE: "NONE", -} as const; - -/** - * @public - */ -export type RecordsFormatType = (typeof RecordsFormatType)[keyof typeof RecordsFormatType]; - -/** - * @public - * @enum - */ -export const LongReturnType = { - LONG: "LONG", - STRING: "STRING", -} as const; - -/** - * @public - */ -export type LongReturnType = (typeof LongReturnType)[keyof typeof LongReturnType]; - /** *

Options that control how the result set is returned.

* @public diff --git a/clients/client-redshift-data/src/index.ts b/clients/client-redshift-data/src/index.ts index 5e09010b1918..263a320ed44f 100644 --- a/clients/client-redshift-data/src/index.ts +++ b/clients/client-redshift-data/src/index.ts @@ -13,6 +13,7 @@ export type { RedshiftDataExtensionConfiguration } from "./extensionConfiguratio export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-redshift-data/src/models/enums.ts b/clients/client-redshift-data/src/models/enums.ts new file mode 100644 index 000000000000..c186e71b7ade --- /dev/null +++ b/clients/client-redshift-data/src/models/enums.ts @@ -0,0 +1,48 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ResultFormatString = { + CSV: "CSV", + JSON: "JSON", +} as const; +/** + * @public + */ +export type ResultFormatString = (typeof ResultFormatString)[keyof typeof ResultFormatString]; + +/** + * @public + * @enum + */ +export const StatusString = { + ABORTED: "ABORTED", + ALL: "ALL", + FAILED: "FAILED", + FINISHED: "FINISHED", + PICKED: "PICKED", + STARTED: "STARTED", + SUBMITTED: "SUBMITTED", +} as const; +/** + * @public + */ +export type StatusString = (typeof StatusString)[keyof typeof StatusString]; + +/** + * @public + * @enum + */ +export const StatementStatusString = { + ABORTED: "ABORTED", + FAILED: "FAILED", + FINISHED: "FINISHED", + PICKED: "PICKED", + STARTED: "STARTED", + SUBMITTED: "SUBMITTED", +} as const; +/** + * @public + */ +export type StatementStatusString = (typeof StatementStatusString)[keyof typeof StatementStatusString]; diff --git a/clients/client-redshift-data/src/models/models_0.ts b/clients/client-redshift-data/src/models/models_0.ts index 02a9c7cd7776..3f666bf53c4b 100644 --- a/clients/client-redshift-data/src/models/models_0.ts +++ b/clients/client-redshift-data/src/models/models_0.ts @@ -1,17 +1,5 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const ResultFormatString = { - CSV: "CSV", - JSON: "JSON", -} as const; - -/** - * @public - */ -export type ResultFormatString = (typeof ResultFormatString)[keyof typeof ResultFormatString]; +import { ResultFormatString, StatementStatusString, StatusString } from "./enums"; /** * @public @@ -284,43 +272,6 @@ export interface SqlParameter { value: string | undefined; } -/** - * @public - * @enum - */ -export const StatusString = { - ABORTED: "ABORTED", - ALL: "ALL", - FAILED: "FAILED", - FINISHED: "FINISHED", - PICKED: "PICKED", - STARTED: "STARTED", - SUBMITTED: "SUBMITTED", -} as const; - -/** - * @public - */ -export type StatusString = (typeof StatusString)[keyof typeof StatusString]; - -/** - * @public - * @enum - */ -export const StatementStatusString = { - ABORTED: "ABORTED", - FAILED: "FAILED", - FINISHED: "FINISHED", - PICKED: "PICKED", - STARTED: "STARTED", - SUBMITTED: "SUBMITTED", -} as const; - -/** - * @public - */ -export type StatementStatusString = (typeof StatementStatusString)[keyof typeof StatementStatusString]; - /** *

Information about an SQL statement.

* @public diff --git a/clients/client-redshift-serverless/src/models/enums.ts b/clients/client-redshift-serverless/src/models/enums.ts index 870bf85bdbe2..3a3611615c15 100644 --- a/clients/client-redshift-serverless/src/models/enums.ts +++ b/clients/client-redshift-serverless/src/models/enums.ts @@ -1,4 +1,170 @@ // smithy-typescript generated code +/** + * @public + * @enum + */ +export const SnapshotStatus = { + AVAILABLE: "AVAILABLE", + CANCELLED: "CANCELLED", + COPYING: "COPYING", + CREATING: "CREATING", + DELETED: "DELETED", + FAILED: "FAILED", +} as const; +/** + * @public + */ +export type SnapshotStatus = (typeof SnapshotStatus)[keyof typeof SnapshotStatus]; + +/** + * @public + * @enum + */ +export const LogExport = { + CONNECTION_LOG: "connectionlog", + USER_ACTIVITY_LOG: "useractivitylog", + USER_LOG: "userlog", +} as const; +/** + * @public + */ +export type LogExport = (typeof LogExport)[keyof typeof LogExport]; + +/** + * @public + * @enum + */ +export const NamespaceStatus = { + AVAILABLE: "AVAILABLE", + DELETING: "DELETING", + MODIFYING: "MODIFYING", +} as const; +/** + * @public + */ +export type NamespaceStatus = (typeof NamespaceStatus)[keyof typeof NamespaceStatus]; + +/** + * @public + * @enum + */ +export const OfferingType = { + ALL_UPFRONT: "ALL_UPFRONT", + NO_UPFRONT: "NO_UPFRONT", +} as const; +/** + * @public + */ +export type OfferingType = (typeof OfferingType)[keyof typeof OfferingType]; + +/** + * @public + * @enum + */ +export const State = { + ACTIVE: "ACTIVE", + DISABLED: "DISABLED", +} as const; +/** + * @public + */ +export type State = (typeof State)[keyof typeof State]; + +/** + * @public + * @enum + */ +export const UsageLimitBreachAction = { + DEACTIVATE: "deactivate", + EMIT_METRIC: "emit-metric", + LOG: "log", +} as const; +/** + * @public + */ +export type UsageLimitBreachAction = (typeof UsageLimitBreachAction)[keyof typeof UsageLimitBreachAction]; + +/** + * @public + * @enum + */ +export const UsageLimitPeriod = { + DAILY: "daily", + MONTHLY: "monthly", + WEEKLY: "weekly", +} as const; +/** + * @public + */ +export type UsageLimitPeriod = (typeof UsageLimitPeriod)[keyof typeof UsageLimitPeriod]; + +/** + * @public + * @enum + */ +export const UsageLimitUsageType = { + CROSS_REGION_DATASHARING: "cross-region-datasharing", + SERVERLESS_COMPUTE: "serverless-compute", +} as const; +/** + * @public + */ +export type UsageLimitUsageType = (typeof UsageLimitUsageType)[keyof typeof UsageLimitUsageType]; + +/** + * @public + * @enum + */ +export const PerformanceTargetStatus = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +} as const; +/** + * @public + */ +export type PerformanceTargetStatus = (typeof PerformanceTargetStatus)[keyof typeof PerformanceTargetStatus]; + +/** + * @public + * @enum + */ +export const WorkgroupStatus = { + AVAILABLE: "AVAILABLE", + CREATING: "CREATING", + DELETING: "DELETING", + MODIFYING: "MODIFYING", +} as const; +/** + * @public + */ +export type WorkgroupStatus = (typeof WorkgroupStatus)[keyof typeof WorkgroupStatus]; + +/** + * @public + * @enum + */ +export const LakehouseIdcRegistration = { + ASSOCIATE: "Associate", + DISASSOCIATE: "Disassociate", +} as const; +/** + * @public + */ +export type LakehouseIdcRegistration = (typeof LakehouseIdcRegistration)[keyof typeof LakehouseIdcRegistration]; + +/** + * @public + * @enum + */ +export const LakehouseRegistration = { + DEREGISTER: "Deregister", + REGISTER: "Register", +} as const; +/** + * @public + */ +export type LakehouseRegistration = (typeof LakehouseRegistration)[keyof typeof LakehouseRegistration]; + /** * @public * @enum diff --git a/clients/client-redshift-serverless/src/models/models_0.ts b/clients/client-redshift-serverless/src/models/models_0.ts index 8c8b553d02d6..4a0997992236 100644 --- a/clients/client-redshift-serverless/src/models/models_0.ts +++ b/clients/client-redshift-serverless/src/models/models_0.ts @@ -1,5 +1,19 @@ // smithy-typescript generated code -import { ManagedWorkgroupStatus } from "./enums"; +import { + LakehouseIdcRegistration, + LakehouseRegistration, + LogExport, + ManagedWorkgroupStatus, + NamespaceStatus, + OfferingType, + PerformanceTargetStatus, + SnapshotStatus, + State, + UsageLimitBreachAction, + UsageLimitPeriod, + UsageLimitUsageType, + WorkgroupStatus, +} from "./enums"; /** *

An object that represents the custom domain name association.

@@ -96,24 +110,6 @@ export interface ConvertRecoveryPointToSnapshotRequest { tags?: Tag[] | undefined; } -/** - * @public - * @enum - */ -export const SnapshotStatus = { - AVAILABLE: "AVAILABLE", - CANCELLED: "CANCELLED", - COPYING: "COPYING", - CREATING: "CREATING", - DELETED: "DELETED", - FAILED: "FAILED", -} as const; - -/** - * @public - */ -export type SnapshotStatus = (typeof SnapshotStatus)[keyof typeof SnapshotStatus]; - /** *

A snapshot object that contains databases.

* @public @@ -505,21 +501,6 @@ export interface CreateEndpointAccessResponse { endpoint?: EndpointAccess | undefined; } -/** - * @public - * @enum - */ -export const LogExport = { - CONNECTION_LOG: "connectionlog", - USER_ACTIVITY_LOG: "useractivitylog", - USER_LOG: "userlog", -} as const; - -/** - * @public - */ -export type LogExport = (typeof LogExport)[keyof typeof LogExport]; - /** * @public */ @@ -597,21 +578,6 @@ export interface CreateNamespaceRequest { redshiftIdcApplicationArn?: string | undefined; } -/** - * @public - * @enum - */ -export const NamespaceStatus = { - AVAILABLE: "AVAILABLE", - DELETING: "DELETING", - MODIFYING: "MODIFYING", -} as const; - -/** - * @public - */ -export type NamespaceStatus = (typeof NamespaceStatus)[keyof typeof NamespaceStatus]; - /** *

A collection of database objects and users.

* @public @@ -742,20 +708,6 @@ export interface CreateReservationRequest { clientToken?: string | undefined; } -/** - * @public - * @enum - */ -export const OfferingType = { - ALL_UPFRONT: "ALL_UPFRONT", - NO_UPFRONT: "NO_UPFRONT", -} as const; - -/** - * @public - */ -export type OfferingType = (typeof OfferingType)[keyof typeof OfferingType]; - /** *

The class of offering for the reservation. The offering class determines the payment schedule for the reservation.

* @public @@ -1033,20 +985,6 @@ export interface CreateScheduledActionRequest { endTime?: Date | undefined; } -/** - * @public - * @enum - */ -export const State = { - ACTIVE: "ACTIVE", - DISABLED: "DISABLED", -} as const; - -/** - * @public - */ -export type State = (typeof State)[keyof typeof State]; - /** *

The returned scheduled action object.

* @public @@ -1252,50 +1190,6 @@ export interface CreateSnapshotCopyConfigurationResponse { snapshotCopyConfiguration: SnapshotCopyConfiguration | undefined; } -/** - * @public - * @enum - */ -export const UsageLimitBreachAction = { - DEACTIVATE: "deactivate", - EMIT_METRIC: "emit-metric", - LOG: "log", -} as const; - -/** - * @public - */ -export type UsageLimitBreachAction = (typeof UsageLimitBreachAction)[keyof typeof UsageLimitBreachAction]; - -/** - * @public - * @enum - */ -export const UsageLimitPeriod = { - DAILY: "daily", - MONTHLY: "monthly", - WEEKLY: "weekly", -} as const; - -/** - * @public - */ -export type UsageLimitPeriod = (typeof UsageLimitPeriod)[keyof typeof UsageLimitPeriod]; - -/** - * @public - * @enum - */ -export const UsageLimitUsageType = { - CROSS_REGION_DATASHARING: "cross-region-datasharing", - SERVERLESS_COMPUTE: "serverless-compute", -} as const; - -/** - * @public - */ -export type UsageLimitUsageType = (typeof UsageLimitUsageType)[keyof typeof UsageLimitUsageType]; - /** * @public */ @@ -1390,20 +1284,6 @@ export interface CreateUsageLimitResponse { usageLimit?: UsageLimit | undefined; } -/** - * @public - * @enum - */ -export const PerformanceTargetStatus = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type PerformanceTargetStatus = (typeof PerformanceTargetStatus)[keyof typeof PerformanceTargetStatus]; - /** *

An object that represents the price performance target settings for the workgroup.

* @public @@ -1535,22 +1415,6 @@ export interface Endpoint { vpcEndpoints?: VpcEndpoint[] | undefined; } -/** - * @public - * @enum - */ -export const WorkgroupStatus = { - AVAILABLE: "AVAILABLE", - CREATING: "CREATING", - DELETING: "DELETING", - MODIFYING: "MODIFYING", -} as const; - -/** - * @public - */ -export type WorkgroupStatus = (typeof WorkgroupStatus)[keyof typeof WorkgroupStatus]; - /** *

The collection of computing resources from which an endpoint is created.

* @public @@ -2586,34 +2450,6 @@ export interface GetWorkgroupResponse { workgroup: Workgroup | undefined; } -/** - * @public - * @enum - */ -export const LakehouseIdcRegistration = { - ASSOCIATE: "Associate", - DISASSOCIATE: "Disassociate", -} as const; - -/** - * @public - */ -export type LakehouseIdcRegistration = (typeof LakehouseIdcRegistration)[keyof typeof LakehouseIdcRegistration]; - -/** - * @public - * @enum - */ -export const LakehouseRegistration = { - DEREGISTER: "Deregister", - REGISTER: "Register", -} as const; - -/** - * @public - */ -export type LakehouseRegistration = (typeof LakehouseRegistration)[keyof typeof LakehouseRegistration]; - /** * @public */ diff --git a/clients/client-resource-explorer-2/src/index.ts b/clients/client-resource-explorer-2/src/index.ts index 6bbb72b4cab6..67e43f9f54e3 100644 --- a/clients/client-resource-explorer-2/src/index.ts +++ b/clients/client-resource-explorer-2/src/index.ts @@ -13,6 +13,7 @@ export type { ResourceExplorer2ExtensionConfiguration } from "./extensionConfigu export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-resource-explorer-2/src/models/enums.ts b/clients/client-resource-explorer-2/src/models/enums.ts new file mode 100644 index 000000000000..810057f84ee5 --- /dev/null +++ b/clients/client-resource-explorer-2/src/models/enums.ts @@ -0,0 +1,78 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const AWSServiceAccessStatus = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +} as const; +/** + * @public + */ +export type AWSServiceAccessStatus = (typeof AWSServiceAccessStatus)[keyof typeof AWSServiceAccessStatus]; + +/** + * @public + * @enum + */ +export const IndexState = { + /** + * Index is active. + */ + ACTIVE: "ACTIVE", + /** + * Resource Explorer is creating the index. + */ + CREATING: "CREATING", + /** + * Resource Explorer successfully deleted the index. + */ + DELETED: "DELETED", + /** + * Resource Explorer is deleting the index. + */ + DELETING: "DELETING", + /** + * Resource Explorer is switching the index type between local and aggregator. + */ + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type IndexState = (typeof IndexState)[keyof typeof IndexState]; + +/** + * @public + * @enum + */ +export const IndexType = { + /** + * aggregator index + */ + AGGREGATOR: "AGGREGATOR", + /** + * local index + */ + LOCAL: "LOCAL", +} as const; +/** + * @public + */ +export type IndexType = (typeof IndexType)[keyof typeof IndexType]; + +/** + * @public + * @enum + */ +export const OperationStatus = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SKIPPED: "SKIPPED", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type OperationStatus = (typeof OperationStatus)[keyof typeof OperationStatus]; diff --git a/clients/client-resource-explorer-2/src/models/models_0.ts b/clients/client-resource-explorer-2/src/models/models_0.ts index 87582ae56dc8..38236636b51a 100644 --- a/clients/client-resource-explorer-2/src/models/models_0.ts +++ b/clients/client-resource-explorer-2/src/models/models_0.ts @@ -1,6 +1,8 @@ // smithy-typescript generated code import { DocumentType as __DocumentType } from "@smithy/types"; +import { AWSServiceAccessStatus, IndexState, IndexType, OperationStatus } from "./enums"; + /** * @public */ @@ -41,20 +43,6 @@ export interface ValidationExceptionField { ValidationIssue: string | undefined; } -/** - * @public - * @enum - */ -export const AWSServiceAccessStatus = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type AWSServiceAccessStatus = (typeof AWSServiceAccessStatus)[keyof typeof AWSServiceAccessStatus]; - /** * @public */ @@ -184,38 +172,6 @@ export interface CreateIndexInput { Tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const IndexState = { - /** - * Index is active. - */ - ACTIVE: "ACTIVE", - /** - * Resource Explorer is creating the index. - */ - CREATING: "CREATING", - /** - * Resource Explorer successfully deleted the index. - */ - DELETED: "DELETED", - /** - * Resource Explorer is deleting the index. - */ - DELETING: "DELETING", - /** - * Resource Explorer is switching the index type between local and aggregator. - */ - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type IndexState = (typeof IndexState)[keyof typeof IndexState]; - /** * @public */ @@ -273,26 +229,6 @@ export interface DeleteIndexOutput { LastUpdatedAt?: Date | undefined; } -/** - * @public - * @enum - */ -export const IndexType = { - /** - * aggregator index - */ - AGGREGATOR: "AGGREGATOR", - /** - * local index - */ - LOCAL: "LOCAL", -} as const; - -/** - * @public - */ -export type IndexType = (typeof IndexType)[keyof typeof IndexType]; - /** * @public */ @@ -863,22 +799,6 @@ export interface GetResourceExplorerSetupInput { NextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const OperationStatus = { - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SKIPPED: "SKIPPED", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type OperationStatus = (typeof OperationStatus)[keyof typeof OperationStatus]; - /** *

Contains information about the status of a Resource Explorer index operation in a specific Region.

* @public diff --git a/clients/client-rolesanywhere/src/index.ts b/clients/client-rolesanywhere/src/index.ts index fda83de542c0..dafae7b97cbf 100644 --- a/clients/client-rolesanywhere/src/index.ts +++ b/clients/client-rolesanywhere/src/index.ts @@ -27,6 +27,7 @@ export type { RolesAnywhereExtensionConfiguration } from "./extensionConfigurati export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-rolesanywhere/src/models/enums.ts b/clients/client-rolesanywhere/src/models/enums.ts new file mode 100644 index 000000000000..0b624360bab8 --- /dev/null +++ b/clients/client-rolesanywhere/src/models/enums.ts @@ -0,0 +1,53 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const CertificateField = { + x509Issuer: "x509Issuer", + x509SAN: "x509SAN", + x509Subject: "x509Subject", +} as const; +/** + * @public + */ +export type CertificateField = (typeof CertificateField)[keyof typeof CertificateField]; + +/** + * @public + * @enum + */ +export const NotificationChannel = { + ALL: "ALL", +} as const; +/** + * @public + */ +export type NotificationChannel = (typeof NotificationChannel)[keyof typeof NotificationChannel]; + +/** + * @public + * @enum + */ +export const NotificationEvent = { + CA_CERTIFICATE_EXPIRY: "CA_CERTIFICATE_EXPIRY", + END_ENTITY_CERTIFICATE_EXPIRY: "END_ENTITY_CERTIFICATE_EXPIRY", +} as const; +/** + * @public + */ +export type NotificationEvent = (typeof NotificationEvent)[keyof typeof NotificationEvent]; + +/** + * @public + * @enum + */ +export const TrustAnchorType = { + AWS_ACM_PCA: "AWS_ACM_PCA", + CERTIFICATE_BUNDLE: "CERTIFICATE_BUNDLE", + SELF_SIGNED_REPOSITORY: "SELF_SIGNED_REPOSITORY", +} as const; +/** + * @public + */ +export type TrustAnchorType = (typeof TrustAnchorType)[keyof typeof TrustAnchorType]; diff --git a/clients/client-rolesanywhere/src/models/models_0.ts b/clients/client-rolesanywhere/src/models/models_0.ts index 2e3c0d95ddb3..f9356445197f 100644 --- a/clients/client-rolesanywhere/src/models/models_0.ts +++ b/clients/client-rolesanywhere/src/models/models_0.ts @@ -1,18 +1,5 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const CertificateField = { - x509Issuer: "x509Issuer", - x509SAN: "x509SAN", - x509Subject: "x509Subject", -} as const; - -/** - * @public - */ -export type CertificateField = (typeof CertificateField)[keyof typeof CertificateField]; +import { CertificateField, NotificationChannel, NotificationEvent, TrustAnchorType } from "./enums"; /** *

A single mapping entry for each supported specifier or sub-field.

@@ -226,33 +213,6 @@ export interface ProfileDetailResponse { profile?: ProfileDetail | undefined; } -/** - * @public - * @enum - */ -export const NotificationChannel = { - ALL: "ALL", -} as const; - -/** - * @public - */ -export type NotificationChannel = (typeof NotificationChannel)[keyof typeof NotificationChannel]; - -/** - * @public - * @enum - */ -export const NotificationEvent = { - CA_CERTIFICATE_EXPIRY: "CA_CERTIFICATE_EXPIRY", - END_ENTITY_CERTIFICATE_EXPIRY: "END_ENTITY_CERTIFICATE_EXPIRY", -} as const; - -/** - * @public - */ -export type NotificationEvent = (typeof NotificationEvent)[keyof typeof NotificationEvent]; - /** *

* Customizable notification settings that will be applied to notification events. @@ -343,21 +303,6 @@ export namespace SourceData { } } -/** - * @public - * @enum - */ -export const TrustAnchorType = { - AWS_ACM_PCA: "AWS_ACM_PCA", - CERTIFICATE_BUNDLE: "CERTIFICATE_BUNDLE", - SELF_SIGNED_REPOSITORY: "SELF_SIGNED_REPOSITORY", -} as const; - -/** - * @public - */ -export type TrustAnchorType = (typeof TrustAnchorType)[keyof typeof TrustAnchorType]; - /** *

The trust anchor type and its related certificate data.

* @public diff --git a/clients/client-rum/src/index.ts b/clients/client-rum/src/index.ts index 66539c8fff1b..2e93af0ba2ee 100644 --- a/clients/client-rum/src/index.ts +++ b/clients/client-rum/src/index.ts @@ -13,6 +13,7 @@ export type { RUMExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-rum/src/models/enums.ts b/clients/client-rum/src/models/enums.ts new file mode 100644 index 000000000000..0412c11c1265 --- /dev/null +++ b/clients/client-rum/src/models/enums.ts @@ -0,0 +1,90 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const Telemetry = { + /** + * Includes JS error event plugin + */ + ERRORS: "errors", + /** + * Includes X-Ray Xhr and X-Ray Fetch plugin + */ + HTTP: "http", + /** + * Includes navigation, paint, resource and web vital event plugins + */ + PERFORMANCE: "performance", +} as const; +/** + * @public + */ +export type Telemetry = (typeof Telemetry)[keyof typeof Telemetry]; + +/** + * @public + * @enum + */ +export const CustomEventsStatus = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +} as const; +/** + * @public + */ +export type CustomEventsStatus = (typeof CustomEventsStatus)[keyof typeof CustomEventsStatus]; + +/** + * @public + * @enum + */ +export const DeobfuscationStatus = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +} as const; +/** + * @public + */ +export type DeobfuscationStatus = (typeof DeobfuscationStatus)[keyof typeof DeobfuscationStatus]; + +/** + * @public + * @enum + */ +export const AppMonitorPlatform = { + ANDROID: "Android", + IOS: "iOS", + WEB: "Web", +} as const; +/** + * @public + */ +export type AppMonitorPlatform = (typeof AppMonitorPlatform)[keyof typeof AppMonitorPlatform]; + +/** + * @public + * @enum + */ +export const StateEnum = { + ACTIVE: "ACTIVE", + CREATED: "CREATED", + DELETING: "DELETING", +} as const; +/** + * @public + */ +export type StateEnum = (typeof StateEnum)[keyof typeof StateEnum]; + +/** + * @public + * @enum + */ +export const MetricDestination = { + CloudWatch: "CloudWatch", + Evidently: "Evidently", +} as const; +/** + * @public + */ +export type MetricDestination = (typeof MetricDestination)[keyof typeof MetricDestination]; diff --git a/clients/client-rum/src/models/models_0.ts b/clients/client-rum/src/models/models_0.ts index 77b600b4cc73..2af05ba25f0c 100644 --- a/clients/client-rum/src/models/models_0.ts +++ b/clients/client-rum/src/models/models_0.ts @@ -1,29 +1,14 @@ // smithy-typescript generated code import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/smithy-client"; -/** - * @public - * @enum - */ -export const Telemetry = { - /** - * Includes JS error event plugin - */ - ERRORS: "errors", - /** - * Includes X-Ray Xhr and X-Ray Fetch plugin - */ - HTTP: "http", - /** - * Includes navigation, paint, resource and web vital event plugins - */ - PERFORMANCE: "performance", -} as const; - -/** - * @public - */ -export type Telemetry = (typeof Telemetry)[keyof typeof Telemetry]; +import { + AppMonitorPlatform, + CustomEventsStatus, + DeobfuscationStatus, + MetricDestination, + StateEnum, + Telemetry, +} from "./enums"; /** *

This structure contains much of the configuration data for the app monitor.

@@ -85,20 +70,6 @@ export interface AppMonitorConfiguration { EnableXRay?: boolean | undefined; } -/** - * @public - * @enum - */ -export const CustomEventsStatus = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type CustomEventsStatus = (typeof CustomEventsStatus)[keyof typeof CustomEventsStatus]; - /** *

A structure that contains information about custom events for this app monitor.

* @public @@ -141,20 +112,6 @@ export interface DataStorage { CwLog?: CwLog | undefined; } -/** - * @public - * @enum - */ -export const DeobfuscationStatus = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type DeobfuscationStatus = (typeof DeobfuscationStatus)[keyof typeof DeobfuscationStatus]; - /** *

A structure that contains the configuration for how an app monitor can unminify JavaScript error stack traces using source maps.

* @public @@ -185,36 +142,6 @@ export interface DeobfuscationConfiguration { JavaScriptSourceMaps?: JavaScriptSourceMaps | undefined; } -/** - * @public - * @enum - */ -export const AppMonitorPlatform = { - ANDROID: "Android", - IOS: "iOS", - WEB: "Web", -} as const; - -/** - * @public - */ -export type AppMonitorPlatform = (typeof AppMonitorPlatform)[keyof typeof AppMonitorPlatform]; - -/** - * @public - * @enum - */ -export const StateEnum = { - ACTIVE: "ACTIVE", - CREATED: "CREATED", - DELETING: "DELETING", -} as const; - -/** - * @public - */ -export type StateEnum = (typeof StateEnum)[keyof typeof StateEnum]; - /** *

A RUM app monitor collects telemetry data from your application and sends that data to RUM. The data includes performance and reliability information such as page load time, client-side errors, and user behavior.

* @public @@ -323,20 +250,6 @@ export interface AppMonitorDetails { version?: string | undefined; } -/** - * @public - * @enum - */ -export const MetricDestination = { - CloudWatch: "CloudWatch", - Evidently: "Evidently", -} as const; - -/** - * @public - */ -export type MetricDestination = (typeof MetricDestination)[keyof typeof MetricDestination]; - /** *

Use this structure to define one extended metric or custom metric that RUM will send to CloudWatch or CloudWatch Evidently. For more information, see Custom metrics and extended metrics that you can send to CloudWatch and CloudWatch Evidently.

This structure is validated differently for extended metrics and custom metrics. For extended metrics that are sent to the AWS/RUM namespace, the following validations apply:

  • The Namespace parameter must be omitted or set to AWS/RUM.

  • Only certain combinations of values for Name, ValueKey, and EventPattern are valid. In addition to what is displayed in the following list, the EventPattern can also include information used by the DimensionKeys field.

    • If Name is PerformanceNavigationDuration, then ValueKeymust be event_details.duration and the EventPattern must include \{"event_type":["com.amazon.rum.performance_navigation_event"]\}

    • If Name is PerformanceResourceDuration, then ValueKeymust be event_details.duration and the EventPattern must include \{"event_type":["com.amazon.rum.performance_resource_event"]\}

    • If Name is NavigationSatisfiedTransaction, then ValueKeymust be null and the EventPattern must include \{ "event_type": ["com.amazon.rum.performance_navigation_event"], "event_details": \{ "duration": [\{ "numeric": [">",2000] \}] \} \}

    • If Name is NavigationToleratedTransaction, then ValueKeymust be null and the EventPattern must include \{ "event_type": ["com.amazon.rum.performance_navigation_event"], "event_details": \{ "duration": [\{ "numeric": [">=",2000,"<"8000] \}] \} \}

    • If Name is NavigationFrustratedTransaction, then ValueKeymust be null and the EventPattern must include \{ "event_type": ["com.amazon.rum.performance_navigation_event"], "event_details": \{ "duration": [\{ "numeric": [">=",8000] \}] \} \}

    • If Name is WebVitalsCumulativeLayoutShift, then ValueKeymust be event_details.value and the EventPattern must include \{"event_type":["com.amazon.rum.cumulative_layout_shift_event"]\}

    • If Name is WebVitalsFirstInputDelay, then ValueKeymust be event_details.value and the EventPattern must include \{"event_type":["com.amazon.rum.first_input_delay_event"]\}

    • If Name is WebVitalsLargestContentfulPaint, then ValueKeymust be event_details.value and the EventPattern must include \{"event_type":["com.amazon.rum.largest_contentful_paint_event"]\}

    • If Name is JsErrorCount, then ValueKeymust be null and the EventPattern must include \{"event_type":["com.amazon.rum.js_error_event"]\}

    • If Name is HttpErrorCount, then ValueKeymust be null and the EventPattern must include \{"event_type":["com.amazon.rum.http_event"]\}

    • If Name is SessionCount, then ValueKeymust be null and the EventPattern must include \{"event_type":["com.amazon.rum.session_start_event"]\}

    • If Name is PageViewCount, then ValueKeymust be null and the EventPattern must include \{"event_type":["com.amazon.rum.page_view_event"]\}

    • If Name is Http4xxCount, then ValueKeymust be null and the EventPattern must include \{"event_type": ["com.amazon.rum.http_event"],"event_details":\{"response":\{"status":[\{"numeric":[">=",400,"<",500]\}]\}\}\} \}

    • If Name is Http5xxCount, then ValueKeymust be null and the EventPattern must include \{"event_type": ["com.amazon.rum.http_event"],"event_details":\{"response":\{"status":[\{"numeric":[">=",500,"<=",599]\}]\}\}\} \}

For custom metrics, the following validation rules apply:

  • The namespace can't be omitted and can't be AWS/RUM. You can use the AWS/RUM namespace only for extended metrics.

  • All dimensions listed in the DimensionKeys field must be present in the value of EventPattern.

  • The values that you specify for ValueKey, EventPattern, and DimensionKeys must be fields in RUM events, so all first-level keys in these fields must be one of the keys in the list later in this section.

  • If you set a value for EventPattern, it must be a JSON object.

  • For every non-empty event_details, there must be a non-empty event_type.

  • If EventPattern contains an event_details field, it must also contain an event_type. For every built-in event_type that you use, you must use a value for event_details that corresponds to that event_type. For information about event details that correspond to event types, see RUM event details.

  • In EventPattern, any JSON array must contain only one value.

Valid key values for first-level keys in the ValueKey, EventPattern, and DimensionKeys fields:

  • account_id

  • application_Id

  • application_version

  • application_name

  • batch_id

  • event_details

  • event_id

  • event_interaction

  • event_timestamp

  • event_type

  • event_version

  • log_stream

  • metadata

  • sessionId

  • user_details

  • userId

* @public diff --git a/clients/client-sagemaker-geospatial/src/index.ts b/clients/client-sagemaker-geospatial/src/index.ts index d40a8f33b1af..7f639e5637c3 100644 --- a/clients/client-sagemaker-geospatial/src/index.ts +++ b/clients/client-sagemaker-geospatial/src/index.ts @@ -13,6 +13,7 @@ export type { SageMakerGeospatialExtensionConfiguration } from "./extensionConfi export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-sagemaker-geospatial/src/models/enums.ts b/clients/client-sagemaker-geospatial/src/models/enums.ts new file mode 100644 index 000000000000..a51de6584028 --- /dev/null +++ b/clients/client-sagemaker-geospatial/src/models/enums.ts @@ -0,0 +1,594 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const AlgorithmNameCloudRemoval = { + /** + * INTERPOLATION + */ + INTERPOLATION: "INTERPOLATION", +} as const; +/** + * @public + */ +export type AlgorithmNameCloudRemoval = (typeof AlgorithmNameCloudRemoval)[keyof typeof AlgorithmNameCloudRemoval]; + +/** + * @public + * @enum + */ +export const AlgorithmNameGeoMosaic = { + /** + * AVERAGE + */ + AVERAGE: "AVERAGE", + /** + * BILINEAR + */ + BILINEAR: "BILINEAR", + /** + * CUBIC + */ + CUBIC: "CUBIC", + /** + * CUBICSPLINE + */ + CUBICSPLINE: "CUBICSPLINE", + /** + * LANCZOS + */ + LANCZOS: "LANCZOS", + /** + * MAX + */ + MAX: "MAX", + /** + * MED + */ + MED: "MED", + /** + * MIN + */ + MIN: "MIN", + /** + * MODE + */ + MODE: "MODE", + /** + * NEAR + */ + NEAR: "NEAR", + /** + * Q1 + */ + Q1: "Q1", + /** + * Q3 + */ + Q3: "Q3", + /** + * RMS + */ + RMS: "RMS", + /** + * SUM + */ + SUM: "SUM", +} as const; +/** + * @public + */ +export type AlgorithmNameGeoMosaic = (typeof AlgorithmNameGeoMosaic)[keyof typeof AlgorithmNameGeoMosaic]; + +/** + * @public + * @enum + */ +export const AlgorithmNameResampling = { + /** + * AVERAGE + */ + AVERAGE: "AVERAGE", + /** + * BILINEAR + */ + BILINEAR: "BILINEAR", + /** + * CUBIC + */ + CUBIC: "CUBIC", + /** + * CUBICSPLINE + */ + CUBICSPLINE: "CUBICSPLINE", + /** + * LANCZOS + */ + LANCZOS: "LANCZOS", + /** + * MAX + */ + MAX: "MAX", + /** + * MED + */ + MED: "MED", + /** + * MIN + */ + MIN: "MIN", + /** + * MODE + */ + MODE: "MODE", + /** + * NEAR + */ + NEAR: "NEAR", + /** + * Q1 + */ + Q1: "Q1", + /** + * Q3 + */ + Q3: "Q3", + /** + * RMS + */ + RMS: "RMS", + /** + * SUM + */ + SUM: "SUM", +} as const; +/** + * @public + */ +export type AlgorithmNameResampling = (typeof AlgorithmNameResampling)[keyof typeof AlgorithmNameResampling]; + +/** + * @public + * @enum + */ +export const OutputType = { + /** + * FLOAT32 + */ + FLOAT32: "FLOAT32", + /** + * FLOAT64 + */ + FLOAT64: "FLOAT64", + /** + * INT16 + */ + INT16: "INT16", + /** + * INT32 + */ + INT32: "INT32", + /** + * UINT16 + */ + UINT16: "UINT16", +} as const; +/** + * @public + */ +export type OutputType = (typeof OutputType)[keyof typeof OutputType]; + +/** + * @public + * @enum + */ +export const ComparisonOperator = { + /** + * EQUALS + */ + EQUALS: "EQUALS", + /** + * NOT_EQUALS + */ + NOT_EQUALS: "NOT_EQUALS", + /** + * STARTS_WITH + */ + STARTS_WITH: "STARTS_WITH", +} as const; +/** + * @public + */ +export type ComparisonOperator = (typeof ComparisonOperator)[keyof typeof ComparisonOperator]; + +/** + * @public + * @enum + */ +export const DataCollectionType = { + /** + * PREMIUM + */ + PREMIUM: "PREMIUM", + /** + * PUBLIC + */ + PUBLIC: "PUBLIC", + /** + * USER + */ + USER: "USER", +} as const; +/** + * @public + */ +export type DataCollectionType = (typeof DataCollectionType)[keyof typeof DataCollectionType]; + +/** + * @public + * @enum + */ +export const EarthObservationJobExportStatus = { + /** + * FAILED + */ + FAILED: "FAILED", + /** + * IN_PROGRESS + */ + IN_PROGRESS: "IN_PROGRESS", + /** + * SUCCEEDED + */ + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type EarthObservationJobExportStatus = + (typeof EarthObservationJobExportStatus)[keyof typeof EarthObservationJobExportStatus]; + +/** + * @public + * @enum + */ +export const EarthObservationJobErrorType = { + /** + * CLIENT_ERROR + */ + CLIENT_ERROR: "CLIENT_ERROR", + /** + * SERVER_ERROR + */ + SERVER_ERROR: "SERVER_ERROR", +} as const; +/** + * @public + */ +export type EarthObservationJobErrorType = + (typeof EarthObservationJobErrorType)[keyof typeof EarthObservationJobErrorType]; + +/** + * @public + * @enum + */ +export const ExportErrorType = { + /** + * CLIENT_ERROR + */ + CLIENT_ERROR: "CLIENT_ERROR", + /** + * SERVER_ERROR + */ + SERVER_ERROR: "SERVER_ERROR", +} as const; +/** + * @public + */ +export type ExportErrorType = (typeof ExportErrorType)[keyof typeof ExportErrorType]; + +/** + * @public + * @enum + */ +export const LogicalOperator = { + /** + * AND + */ + AND: "AND", +} as const; +/** + * @public + */ +export type LogicalOperator = (typeof LogicalOperator)[keyof typeof LogicalOperator]; + +/** + * @public + * @enum + */ +export const Unit = { + /** + * METERS + */ + METERS: "METERS", +} as const; +/** + * @public + */ +export type Unit = (typeof Unit)[keyof typeof Unit]; + +/** + * @public + * @enum + */ +export const PredefinedResolution = { + /** + * AVERAGE + */ + AVERAGE: "AVERAGE", + /** + * HIGHEST + */ + HIGHEST: "HIGHEST", + /** + * LOWEST + */ + LOWEST: "LOWEST", +} as const; +/** + * @public + */ +export type PredefinedResolution = (typeof PredefinedResolution)[keyof typeof PredefinedResolution]; + +/** + * @public + * @enum + */ +export const GroupBy = { + /** + * ALL + */ + ALL: "ALL", + /** + * YEARLY + */ + YEARLY: "YEARLY", +} as const; +/** + * @public + */ +export type GroupBy = (typeof GroupBy)[keyof typeof GroupBy]; + +/** + * @public + * @enum + */ +export const TemporalStatistics = { + /** + * MEAN + */ + MEAN: "MEAN", + /** + * MEDIAN + */ + MEDIAN: "MEDIAN", + /** + * STANDARD_DEVIATION + */ + STANDARD_DEVIATION: "STANDARD_DEVIATION", +} as const; +/** + * @public + */ +export type TemporalStatistics = (typeof TemporalStatistics)[keyof typeof TemporalStatistics]; + +/** + * @public + * @enum + */ +export const ZonalStatistics = { + /** + * MAX + */ + MAX: "MAX", + /** + * MEAN + */ + MEAN: "MEAN", + /** + * MEDIAN + */ + MEDIAN: "MEDIAN", + /** + * MIN + */ + MIN: "MIN", + /** + * STANDARD_DEVIATION + */ + STANDARD_DEVIATION: "STANDARD_DEVIATION", + /** + * SUM + */ + SUM: "SUM", +} as const; +/** + * @public + */ +export type ZonalStatistics = (typeof ZonalStatistics)[keyof typeof ZonalStatistics]; + +/** + * @public + * @enum + */ +export const EarthObservationJobStatus = { + /** + * COMPLETED + */ + COMPLETED: "COMPLETED", + /** + * DELETED + */ + DELETED: "DELETED", + /** + * DELETING + */ + DELETING: "DELETING", + /** + * FAILED + */ + FAILED: "FAILED", + /** + * INITIALIZING + */ + INITIALIZING: "INITIALIZING", + /** + * IN_PROGRESS + */ + IN_PROGRESS: "IN_PROGRESS", + /** + * STOPPED + */ + STOPPED: "STOPPED", + /** + * STOPPING + */ + STOPPING: "STOPPING", +} as const; +/** + * @public + */ +export type EarthObservationJobStatus = (typeof EarthObservationJobStatus)[keyof typeof EarthObservationJobStatus]; + +/** + * @public + * @enum + */ +export const TargetOptions = { + /** + * INPUT + */ + INPUT: "INPUT", + /** + * OUTPUT + */ + OUTPUT: "OUTPUT", +} as const; +/** + * @public + */ +export type TargetOptions = (typeof TargetOptions)[keyof typeof TargetOptions]; + +/** + * @public + * @enum + */ +export const SortOrder = { + /** + * ASCENDING + */ + ASCENDING: "ASCENDING", + /** + * DESCENDING + */ + DESCENDING: "DESCENDING", +} as const; +/** + * @public + */ +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; + +/** + * @public + * @enum + */ +export const VectorEnrichmentJobExportStatus = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUCCEEDED: "SUCCEEDED", +} as const; +/** + * @public + */ +export type VectorEnrichmentJobExportStatus = + (typeof VectorEnrichmentJobExportStatus)[keyof typeof VectorEnrichmentJobExportStatus]; + +/** + * @public + * @enum + */ +export const VectorEnrichmentJobErrorType = { + /** + * CLIENT_ERROR + */ + CLIENT_ERROR: "CLIENT_ERROR", + /** + * SERVER_ERROR + */ + SERVER_ERROR: "SERVER_ERROR", +} as const; +/** + * @public + */ +export type VectorEnrichmentJobErrorType = + (typeof VectorEnrichmentJobErrorType)[keyof typeof VectorEnrichmentJobErrorType]; + +/** + * @public + * @enum + */ +export const VectorEnrichmentJobExportErrorType = { + CLIENT_ERROR: "CLIENT_ERROR", + SERVER_ERROR: "SERVER_ERROR", +} as const; +/** + * @public + */ +export type VectorEnrichmentJobExportErrorType = + (typeof VectorEnrichmentJobExportErrorType)[keyof typeof VectorEnrichmentJobExportErrorType]; + +/** + * @public + * @enum + */ +export const VectorEnrichmentJobDocumentType = { + CSV: "CSV", +} as const; +/** + * @public + */ +export type VectorEnrichmentJobDocumentType = + (typeof VectorEnrichmentJobDocumentType)[keyof typeof VectorEnrichmentJobDocumentType]; + +/** + * @public + * @enum + */ +export const VectorEnrichmentJobStatus = { + COMPLETED: "COMPLETED", + DELETED: "DELETED", + DELETING: "DELETING", + FAILED: "FAILED", + INITIALIZING: "INITIALIZING", + IN_PROGRESS: "IN_PROGRESS", + STOPPED: "STOPPED", + STOPPING: "STOPPING", +} as const; +/** + * @public + */ +export type VectorEnrichmentJobStatus = (typeof VectorEnrichmentJobStatus)[keyof typeof VectorEnrichmentJobStatus]; + +/** + * @public + * @enum + */ +export const VectorEnrichmentJobType = { + MAP_MATCHING: "MAP_MATCHING", + REVERSE_GEOCODING: "REVERSE_GEOCODING", +} as const; +/** + * @public + */ +export type VectorEnrichmentJobType = (typeof VectorEnrichmentJobType)[keyof typeof VectorEnrichmentJobType]; diff --git a/clients/client-sagemaker-geospatial/src/models/models_0.ts b/clients/client-sagemaker-geospatial/src/models/models_0.ts index 0a791e609484..9d51685181ad 100644 --- a/clients/client-sagemaker-geospatial/src/models/models_0.ts +++ b/clients/client-sagemaker-geospatial/src/models/models_0.ts @@ -1,157 +1,32 @@ // smithy-typescript generated code import { StreamingBlobTypes } from "@smithy/types"; -/** - * @public - * @enum - */ -export const AlgorithmNameCloudRemoval = { - /** - * INTERPOLATION - */ - INTERPOLATION: "INTERPOLATION", -} as const; - -/** - * @public - */ -export type AlgorithmNameCloudRemoval = (typeof AlgorithmNameCloudRemoval)[keyof typeof AlgorithmNameCloudRemoval]; - -/** - * @public - * @enum - */ -export const AlgorithmNameGeoMosaic = { - /** - * AVERAGE - */ - AVERAGE: "AVERAGE", - /** - * BILINEAR - */ - BILINEAR: "BILINEAR", - /** - * CUBIC - */ - CUBIC: "CUBIC", - /** - * CUBICSPLINE - */ - CUBICSPLINE: "CUBICSPLINE", - /** - * LANCZOS - */ - LANCZOS: "LANCZOS", - /** - * MAX - */ - MAX: "MAX", - /** - * MED - */ - MED: "MED", - /** - * MIN - */ - MIN: "MIN", - /** - * MODE - */ - MODE: "MODE", - /** - * NEAR - */ - NEAR: "NEAR", - /** - * Q1 - */ - Q1: "Q1", - /** - * Q3 - */ - Q3: "Q3", - /** - * RMS - */ - RMS: "RMS", - /** - * SUM - */ - SUM: "SUM", -} as const; - -/** - * @public - */ -export type AlgorithmNameGeoMosaic = (typeof AlgorithmNameGeoMosaic)[keyof typeof AlgorithmNameGeoMosaic]; - -/** - * @public - * @enum - */ -export const AlgorithmNameResampling = { - /** - * AVERAGE - */ - AVERAGE: "AVERAGE", - /** - * BILINEAR - */ - BILINEAR: "BILINEAR", - /** - * CUBIC - */ - CUBIC: "CUBIC", - /** - * CUBICSPLINE - */ - CUBICSPLINE: "CUBICSPLINE", - /** - * LANCZOS - */ - LANCZOS: "LANCZOS", - /** - * MAX - */ - MAX: "MAX", - /** - * MED - */ - MED: "MED", - /** - * MIN - */ - MIN: "MIN", - /** - * MODE - */ - MODE: "MODE", - /** - * NEAR - */ - NEAR: "NEAR", - /** - * Q1 - */ - Q1: "Q1", - /** - * Q3 - */ - Q3: "Q3", - /** - * RMS - */ - RMS: "RMS", - /** - * SUM - */ - SUM: "SUM", -} as const; - -/** - * @public - */ -export type AlgorithmNameResampling = (typeof AlgorithmNameResampling)[keyof typeof AlgorithmNameResampling]; +import { + AlgorithmNameCloudRemoval, + AlgorithmNameGeoMosaic, + AlgorithmNameResampling, + ComparisonOperator, + DataCollectionType, + EarthObservationJobErrorType, + EarthObservationJobExportStatus, + EarthObservationJobStatus, + ExportErrorType, + GroupBy, + LogicalOperator, + OutputType, + PredefinedResolution, + SortOrder, + TargetOptions, + TemporalStatistics, + Unit, + VectorEnrichmentJobDocumentType, + VectorEnrichmentJobErrorType, + VectorEnrichmentJobExportErrorType, + VectorEnrichmentJobExportStatus, + VectorEnrichmentJobStatus, + VectorEnrichmentJobType, + ZonalStatistics, +} from "./enums"; /** *

The structure representing Polygon Geometry based on the GeoJson spec.

@@ -279,38 +154,6 @@ export interface AssetValue { Href?: string | undefined; } -/** - * @public - * @enum - */ -export const OutputType = { - /** - * FLOAT32 - */ - FLOAT32: "FLOAT32", - /** - * FLOAT64 - */ - FLOAT64: "FLOAT64", - /** - * INT16 - */ - INT16: "INT16", - /** - * INT32 - */ - INT32: "INT32", - /** - * UINT16 - */ - UINT16: "UINT16", -} as const; - -/** - * @public - */ -export type OutputType = (typeof OutputType)[keyof typeof OutputType]; - /** *

Represents an arithmetic operation to compute spectral index.

* @public @@ -398,30 +241,6 @@ export interface CloudRemovalConfigInput { TargetBands?: string[] | undefined; } -/** - * @public - * @enum - */ -export const ComparisonOperator = { - /** - * EQUALS - */ - EQUALS: "EQUALS", - /** - * NOT_EQUALS - */ - NOT_EQUALS: "NOT_EQUALS", - /** - * STARTS_WITH - */ - STARTS_WITH: "STARTS_WITH", -} as const; - -/** - * @public - */ -export type ComparisonOperator = (typeof ComparisonOperator)[keyof typeof ComparisonOperator]; - /** *

The structure representing the filters supported by a RasterDataCollection.

* @public @@ -452,30 +271,6 @@ export interface Filter { Maximum?: number | undefined; } -/** - * @public - * @enum - */ -export const DataCollectionType = { - /** - * PREMIUM - */ - PREMIUM: "PREMIUM", - /** - * PUBLIC - */ - PUBLIC: "PUBLIC", - /** - * USER - */ - USER: "USER", -} as const; - -/** - * @public - */ -export type DataCollectionType = (typeof DataCollectionType)[keyof typeof DataCollectionType]; - /** *

Response object containing details for a specific RasterDataCollection.

* @public @@ -621,31 +416,6 @@ export interface ExportEarthObservationJobInput { ExportSourceImages?: boolean | undefined; } -/** - * @public - * @enum - */ -export const EarthObservationJobExportStatus = { - /** - * FAILED - */ - FAILED: "FAILED", - /** - * IN_PROGRESS - */ - IN_PROGRESS: "IN_PROGRESS", - /** - * SUCCEEDED - */ - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type EarthObservationJobExportStatus = - (typeof EarthObservationJobExportStatus)[keyof typeof EarthObservationJobExportStatus]; - /** * @public */ @@ -698,27 +468,6 @@ export interface GetEarthObservationJobInput { Arn: string | undefined; } -/** - * @public - * @enum - */ -export const EarthObservationJobErrorType = { - /** - * CLIENT_ERROR - */ - CLIENT_ERROR: "CLIENT_ERROR", - /** - * SERVER_ERROR - */ - SERVER_ERROR: "SERVER_ERROR", -} as const; - -/** - * @public - */ -export type EarthObservationJobErrorType = - (typeof EarthObservationJobErrorType)[keyof typeof EarthObservationJobErrorType]; - /** *

The structure representing the errors in an EarthObservationJob.

* @public @@ -737,26 +486,6 @@ export interface EarthObservationJobErrorDetails { Message?: string | undefined; } -/** - * @public - * @enum - */ -export const ExportErrorType = { - /** - * CLIENT_ERROR - */ - CLIENT_ERROR: "CLIENT_ERROR", - /** - * SERVER_ERROR - */ - SERVER_ERROR: "SERVER_ERROR", -} as const; - -/** - * @public - */ -export type ExportErrorType = (typeof ExportErrorType)[keyof typeof ExportErrorType]; - /** *

The structure representing the errors in an export EarthObservationJob operation.

* @public @@ -794,22 +523,6 @@ export interface ExportErrorDetails { ExportSourceImages?: ExportErrorDetailsOutput | undefined; } -/** - * @public - * @enum - */ -export const LogicalOperator = { - /** - * AND - */ - AND: "AND", -} as const; - -/** - * @public - */ -export type LogicalOperator = (typeof LogicalOperator)[keyof typeof LogicalOperator]; - /** *

The structure representing the EoCloudCover filter.

* @public @@ -1190,22 +903,6 @@ export interface GeoMosaicConfigInput { */ export interface LandCoverSegmentationConfigInput {} -/** - * @public - * @enum - */ -export const Unit = { - /** - * METERS - */ - METERS: "METERS", -} as const; - -/** - * @public - */ -export type Unit = (typeof Unit)[keyof typeof Unit]; - /** *

The output resolution (in target georeferenced units) * of the result of the operation

@@ -1264,30 +961,6 @@ export interface ResamplingConfigInput { TargetBands?: string[] | undefined; } -/** - * @public - * @enum - */ -export const PredefinedResolution = { - /** - * AVERAGE - */ - AVERAGE: "AVERAGE", - /** - * HIGHEST - */ - HIGHEST: "HIGHEST", - /** - * LOWEST - */ - LOWEST: "LOWEST", -} as const; - -/** - * @public - */ -export type PredefinedResolution = (typeof PredefinedResolution)[keyof typeof PredefinedResolution]; - /** *

The input structure representing Output Resolution for Stacking Operation.

* @public @@ -1326,50 +999,6 @@ export interface StackConfigInput { TargetBands?: string[] | undefined; } -/** - * @public - * @enum - */ -export const GroupBy = { - /** - * ALL - */ - ALL: "ALL", - /** - * YEARLY - */ - YEARLY: "YEARLY", -} as const; - -/** - * @public - */ -export type GroupBy = (typeof GroupBy)[keyof typeof GroupBy]; - -/** - * @public - * @enum - */ -export const TemporalStatistics = { - /** - * MEAN - */ - MEAN: "MEAN", - /** - * MEDIAN - */ - MEDIAN: "MEDIAN", - /** - * STANDARD_DEVIATION - */ - STANDARD_DEVIATION: "STANDARD_DEVIATION", -} as const; - -/** - * @public - */ -export type TemporalStatistics = (typeof TemporalStatistics)[keyof typeof TemporalStatistics]; - /** *

The structure representing the configuration for Temporal Statistics operation.

* @public @@ -1394,42 +1023,6 @@ export interface TemporalStatisticsConfigInput { TargetBands?: string[] | undefined; } -/** - * @public - * @enum - */ -export const ZonalStatistics = { - /** - * MAX - */ - MAX: "MAX", - /** - * MEAN - */ - MEAN: "MEAN", - /** - * MEDIAN - */ - MEDIAN: "MEDIAN", - /** - * MIN - */ - MIN: "MIN", - /** - * STANDARD_DEVIATION - */ - STANDARD_DEVIATION: "STANDARD_DEVIATION", - /** - * SUM - */ - SUM: "SUM", -} as const; - -/** - * @public - */ -export type ZonalStatistics = (typeof ZonalStatistics)[keyof typeof ZonalStatistics]; - /** *

The structure representing input configuration of ZonalStatistics operation.

* @public @@ -1705,50 +1298,6 @@ export interface OutputBand { OutputDataType: OutputType | undefined; } -/** - * @public - * @enum - */ -export const EarthObservationJobStatus = { - /** - * COMPLETED - */ - COMPLETED: "COMPLETED", - /** - * DELETED - */ - DELETED: "DELETED", - /** - * DELETING - */ - DELETING: "DELETING", - /** - * FAILED - */ - FAILED: "FAILED", - /** - * INITIALIZING - */ - INITIALIZING: "INITIALIZING", - /** - * IN_PROGRESS - */ - IN_PROGRESS: "IN_PROGRESS", - /** - * STOPPED - */ - STOPPED: "STOPPED", - /** - * STOPPING - */ - STOPPING: "STOPPING", -} as const; - -/** - * @public - */ -export type EarthObservationJobStatus = (typeof EarthObservationJobStatus)[keyof typeof EarthObservationJobStatus]; - /** * @public */ @@ -1838,26 +1387,6 @@ export interface GetEarthObservationJobOutput { Tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const TargetOptions = { - /** - * INPUT - */ - INPUT: "INPUT", - /** - * OUTPUT - */ - OUTPUT: "OUTPUT", -} as const; - -/** - * @public - */ -export type TargetOptions = (typeof TargetOptions)[keyof typeof TargetOptions]; - /** * @public */ @@ -1946,26 +1475,6 @@ export interface GetTileOutput { BinaryFile?: StreamingBlobTypes | undefined; } -/** - * @public - * @enum - */ -export const SortOrder = { - /** - * ASCENDING - */ - ASCENDING: "ASCENDING", - /** - * DESCENDING - */ - DESCENDING: "DESCENDING", -} as const; - -/** - * @public - */ -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; - /** * @public */ @@ -2323,22 +1832,6 @@ export interface ExportVectorEnrichmentJobInput { OutputConfig: ExportVectorEnrichmentJobOutputConfig | undefined; } -/** - * @public - * @enum - */ -export const VectorEnrichmentJobExportStatus = { - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUCCEEDED: "SUCCEEDED", -} as const; - -/** - * @public - */ -export type VectorEnrichmentJobExportStatus = - (typeof VectorEnrichmentJobExportStatus)[keyof typeof VectorEnrichmentJobExportStatus]; - /** * @public */ @@ -2469,27 +1962,6 @@ export interface GetVectorEnrichmentJobInput { Arn: string | undefined; } -/** - * @public - * @enum - */ -export const VectorEnrichmentJobErrorType = { - /** - * CLIENT_ERROR - */ - CLIENT_ERROR: "CLIENT_ERROR", - /** - * SERVER_ERROR - */ - SERVER_ERROR: "SERVER_ERROR", -} as const; - -/** - * @public - */ -export type VectorEnrichmentJobErrorType = - (typeof VectorEnrichmentJobErrorType)[keyof typeof VectorEnrichmentJobErrorType]; - /** *

VectorEnrichmentJob error details in response from GetVectorEnrichmentJob.

* @public @@ -2509,21 +1981,6 @@ export interface VectorEnrichmentJobErrorDetails { ErrorMessage?: string | undefined; } -/** - * @public - * @enum - */ -export const VectorEnrichmentJobExportErrorType = { - CLIENT_ERROR: "CLIENT_ERROR", - SERVER_ERROR: "SERVER_ERROR", -} as const; - -/** - * @public - */ -export type VectorEnrichmentJobExportErrorType = - (typeof VectorEnrichmentJobExportErrorType)[keyof typeof VectorEnrichmentJobExportErrorType]; - /** *

VectorEnrichmentJob export error details in response from GetVectorEnrichmentJob.

* @public @@ -2581,20 +2038,6 @@ export namespace VectorEnrichmentJobDataSourceConfigInput { } } -/** - * @public - * @enum - */ -export const VectorEnrichmentJobDocumentType = { - CSV: "CSV", -} as const; - -/** - * @public - */ -export type VectorEnrichmentJobDocumentType = - (typeof VectorEnrichmentJobDocumentType)[keyof typeof VectorEnrichmentJobDocumentType]; - /** *

The input structure for the InputConfig in a VectorEnrichmentJob.

* @public @@ -2714,40 +2157,6 @@ export namespace VectorEnrichmentJobConfig { } } -/** - * @public - * @enum - */ -export const VectorEnrichmentJobStatus = { - COMPLETED: "COMPLETED", - DELETED: "DELETED", - DELETING: "DELETING", - FAILED: "FAILED", - INITIALIZING: "INITIALIZING", - IN_PROGRESS: "IN_PROGRESS", - STOPPED: "STOPPED", - STOPPING: "STOPPING", -} as const; - -/** - * @public - */ -export type VectorEnrichmentJobStatus = (typeof VectorEnrichmentJobStatus)[keyof typeof VectorEnrichmentJobStatus]; - -/** - * @public - * @enum - */ -export const VectorEnrichmentJobType = { - MAP_MATCHING: "MAP_MATCHING", - REVERSE_GEOCODING: "REVERSE_GEOCODING", -} as const; - -/** - * @public - */ -export type VectorEnrichmentJobType = (typeof VectorEnrichmentJobType)[keyof typeof VectorEnrichmentJobType]; - /** * @public */ diff --git a/clients/client-scheduler/src/index.ts b/clients/client-scheduler/src/index.ts index d8e9ca30713e..d83d10ce3212 100644 --- a/clients/client-scheduler/src/index.ts +++ b/clients/client-scheduler/src/index.ts @@ -17,6 +17,7 @@ export type { SchedulerExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-scheduler/src/models/enums.ts b/clients/client-scheduler/src/models/enums.ts new file mode 100644 index 000000000000..5c28098dd730 --- /dev/null +++ b/clients/client-scheduler/src/models/enums.ts @@ -0,0 +1,118 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ActionAfterCompletion = { + DELETE: "DELETE", + NONE: "NONE", +} as const; +/** + * @public + */ +export type ActionAfterCompletion = (typeof ActionAfterCompletion)[keyof typeof ActionAfterCompletion]; + +/** + * @public + * @enum + */ +export const AssignPublicIp = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +} as const; +/** + * @public + */ +export type AssignPublicIp = (typeof AssignPublicIp)[keyof typeof AssignPublicIp]; + +/** + * @public + * @enum + */ +export const FlexibleTimeWindowMode = { + FLEXIBLE: "FLEXIBLE", + OFF: "OFF", +} as const; +/** + * @public + */ +export type FlexibleTimeWindowMode = (typeof FlexibleTimeWindowMode)[keyof typeof FlexibleTimeWindowMode]; + +/** + * @public + * @enum + */ +export const ScheduleState = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +} as const; +/** + * @public + */ +export type ScheduleState = (typeof ScheduleState)[keyof typeof ScheduleState]; + +/** + * @public + * @enum + */ +export const LaunchType = { + EC2: "EC2", + EXTERNAL: "EXTERNAL", + FARGATE: "FARGATE", +} as const; +/** + * @public + */ +export type LaunchType = (typeof LaunchType)[keyof typeof LaunchType]; + +/** + * @public + * @enum + */ +export const PlacementConstraintType = { + DISTINCT_INSTANCE: "distinctInstance", + MEMBER_OF: "memberOf", +} as const; +/** + * @public + */ +export type PlacementConstraintType = (typeof PlacementConstraintType)[keyof typeof PlacementConstraintType]; + +/** + * @public + * @enum + */ +export const PlacementStrategyType = { + BINPACK: "binpack", + RANDOM: "random", + SPREAD: "spread", +} as const; +/** + * @public + */ +export type PlacementStrategyType = (typeof PlacementStrategyType)[keyof typeof PlacementStrategyType]; + +/** + * @public + * @enum + */ +export const PropagateTags = { + TASK_DEFINITION: "TASK_DEFINITION", +} as const; +/** + * @public + */ +export type PropagateTags = (typeof PropagateTags)[keyof typeof PropagateTags]; + +/** + * @public + * @enum + */ +export const ScheduleGroupState = { + ACTIVE: "ACTIVE", + DELETING: "DELETING", +} as const; +/** + * @public + */ +export type ScheduleGroupState = (typeof ScheduleGroupState)[keyof typeof ScheduleGroupState]; diff --git a/clients/client-scheduler/src/models/models_0.ts b/clients/client-scheduler/src/models/models_0.ts index 1370d89824ac..33354edb0a7e 100644 --- a/clients/client-scheduler/src/models/models_0.ts +++ b/clients/client-scheduler/src/models/models_0.ts @@ -1,31 +1,15 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const ActionAfterCompletion = { - DELETE: "DELETE", - NONE: "NONE", -} as const; - -/** - * @public - */ -export type ActionAfterCompletion = (typeof ActionAfterCompletion)[keyof typeof ActionAfterCompletion]; - -/** - * @public - * @enum - */ -export const AssignPublicIp = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type AssignPublicIp = (typeof AssignPublicIp)[keyof typeof AssignPublicIp]; +import { + ActionAfterCompletion, + AssignPublicIp, + FlexibleTimeWindowMode, + LaunchType, + PlacementConstraintType, + PlacementStrategyType, + PropagateTags, + ScheduleGroupState, + ScheduleState, +} from "./enums"; /** * @public @@ -67,20 +51,6 @@ export interface ListTagsForResourceOutput { Tags?: Tag[] | undefined; } -/** - * @public - * @enum - */ -export const FlexibleTimeWindowMode = { - FLEXIBLE: "FLEXIBLE", - OFF: "OFF", -} as const; - -/** - * @public - */ -export type FlexibleTimeWindowMode = (typeof FlexibleTimeWindowMode)[keyof typeof FlexibleTimeWindowMode]; - /** *

Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.

* @public @@ -99,20 +69,6 @@ export interface FlexibleTimeWindow { MaximumWindowInMinutes?: number | undefined; } -/** - * @public - * @enum - */ -export const ScheduleState = { - DISABLED: "DISABLED", - ENABLED: "ENABLED", -} as const; - -/** - * @public - */ -export type ScheduleState = (typeof ScheduleState)[keyof typeof ScheduleState]; - /** *

An object that contains information about an Amazon SQS queue that EventBridge Scheduler uses as a dead-letter queue for your schedule. If specified, EventBridge Scheduler delivers failed events that could not be successfully delivered to a target to the queue.

* @public @@ -151,21 +107,6 @@ export interface CapacityProviderStrategyItem { base?: number | undefined; } -/** - * @public - * @enum - */ -export const LaunchType = { - EC2: "EC2", - EXTERNAL: "EXTERNAL", - FARGATE: "FARGATE", -} as const; - -/** - * @public - */ -export type LaunchType = (typeof LaunchType)[keyof typeof LaunchType]; - /** *

This structure specifies the VPC subnets and security groups for the task, and whether a public IP address is to be used. This structure is relevant only for ECS tasks that use the awsvpc network mode.

* @public @@ -203,20 +144,6 @@ export interface NetworkConfiguration { awsvpcConfiguration?: AwsVpcConfiguration | undefined; } -/** - * @public - * @enum - */ -export const PlacementConstraintType = { - DISTINCT_INSTANCE: "distinctInstance", - MEMBER_OF: "memberOf", -} as const; - -/** - * @public - */ -export type PlacementConstraintType = (typeof PlacementConstraintType)[keyof typeof PlacementConstraintType]; - /** *

An object representing a constraint on task placement.

* @public @@ -236,21 +163,6 @@ export interface PlacementConstraint { expression?: string | undefined; } -/** - * @public - * @enum - */ -export const PlacementStrategyType = { - BINPACK: "binpack", - RANDOM: "random", - SPREAD: "spread", -} as const; - -/** - * @public - */ -export type PlacementStrategyType = (typeof PlacementStrategyType)[keyof typeof PlacementStrategyType]; - /** *

The task placement strategy for a task or service.

* @public @@ -273,19 +185,6 @@ export interface PlacementStrategy { field?: string | undefined; } -/** - * @public - * @enum - */ -export const PropagateTags = { - TASK_DEFINITION: "TASK_DEFINITION", -} as const; - -/** - * @public - */ -export type PropagateTags = (typeof PropagateTags)[keyof typeof PropagateTags]; - /** *

The templated target type for the Amazon ECS * RunTask @@ -1209,20 +1108,6 @@ export interface GetScheduleGroupInput { Name: string | undefined; } -/** - * @public - * @enum - */ -export const ScheduleGroupState = { - ACTIVE: "ACTIVE", - DELETING: "DELETING", -} as const; - -/** - * @public - */ -export type ScheduleGroupState = (typeof ScheduleGroupState)[keyof typeof ScheduleGroupState]; - /** * @public */ diff --git a/clients/client-simspaceweaver/src/index.ts b/clients/client-simspaceweaver/src/index.ts index 6ef046bb3361..20a94e030fc0 100644 --- a/clients/client-simspaceweaver/src/index.ts +++ b/clients/client-simspaceweaver/src/index.ts @@ -23,6 +23,7 @@ export type { SimSpaceWeaverExtensionConfiguration } from "./extensionConfigurat export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-simspaceweaver/src/models/enums.ts b/clients/client-simspaceweaver/src/models/enums.ts new file mode 100644 index 000000000000..d5c6f722edd9 --- /dev/null +++ b/clients/client-simspaceweaver/src/models/enums.ts @@ -0,0 +1,112 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ClockStatus = { + STARTED: "STARTED", + STARTING: "STARTING", + STOPPED: "STOPPED", + STOPPING: "STOPPING", + UNKNOWN: "UNKNOWN", +} as const; +/** + * @public + */ +export type ClockStatus = (typeof ClockStatus)[keyof typeof ClockStatus]; + +/** + * @public + * @enum + */ +export const ClockTargetStatus = { + STARTED: "STARTED", + STOPPED: "STOPPED", + UNKNOWN: "UNKNOWN", +} as const; +/** + * @public + */ +export type ClockTargetStatus = (typeof ClockTargetStatus)[keyof typeof ClockTargetStatus]; + +/** + * @public + * @enum + */ +export const SimulationAppStatus = { + ERROR: "ERROR", + STARTED: "STARTED", + STARTING: "STARTING", + STOPPED: "STOPPED", + STOPPING: "STOPPING", + UNKNOWN: "UNKNOWN", +} as const; +/** + * @public + */ +export type SimulationAppStatus = (typeof SimulationAppStatus)[keyof typeof SimulationAppStatus]; + +/** + * @public + * @enum + */ +export const SimulationAppTargetStatus = { + STARTED: "STARTED", + STOPPED: "STOPPED", + UNKNOWN: "UNKNOWN", +} as const; +/** + * @public + */ +export type SimulationAppTargetStatus = (typeof SimulationAppTargetStatus)[keyof typeof SimulationAppTargetStatus]; + +/** + * @public + * @enum + */ +export const LifecycleManagementStrategy = { + ByRequest: "ByRequest", + BySpatialSubdivision: "BySpatialSubdivision", + PerWorker: "PerWorker", + Unknown: "Unknown", +} as const; +/** + * @public + */ +export type LifecycleManagementStrategy = + (typeof LifecycleManagementStrategy)[keyof typeof LifecycleManagementStrategy]; + +/** + * @public + * @enum + */ +export const SimulationStatus = { + DELETED: "DELETED", + DELETING: "DELETING", + FAILED: "FAILED", + SNAPSHOT_IN_PROGRESS: "SNAPSHOT_IN_PROGRESS", + STARTED: "STARTED", + STARTING: "STARTING", + STOPPED: "STOPPED", + STOPPING: "STOPPING", + UNKNOWN: "UNKNOWN", +} as const; +/** + * @public + */ +export type SimulationStatus = (typeof SimulationStatus)[keyof typeof SimulationStatus]; + +/** + * @public + * @enum + */ +export const SimulationTargetStatus = { + DELETED: "DELETED", + STARTED: "STARTED", + STOPPED: "STOPPED", + UNKNOWN: "UNKNOWN", +} as const; +/** + * @public + */ +export type SimulationTargetStatus = (typeof SimulationTargetStatus)[keyof typeof SimulationTargetStatus]; diff --git a/clients/client-simspaceweaver/src/models/models_0.ts b/clients/client-simspaceweaver/src/models/models_0.ts index e6f0eed5f01f..7c0972370d31 100644 --- a/clients/client-simspaceweaver/src/models/models_0.ts +++ b/clients/client-simspaceweaver/src/models/models_0.ts @@ -1,4 +1,14 @@ // smithy-typescript generated code +import { + ClockStatus, + ClockTargetStatus, + LifecycleManagementStrategy, + SimulationAppStatus, + SimulationAppTargetStatus, + SimulationStatus, + SimulationTargetStatus, +} from "./enums"; + /** *

A collection of TCP/UDP ports for a custom or service app.

* @public @@ -22,38 +32,6 @@ export interface SimulationAppPortMapping { Actual?: number | undefined; } -/** - * @public - * @enum - */ -export const ClockStatus = { - STARTED: "STARTED", - STARTING: "STARTING", - STOPPED: "STOPPED", - STOPPING: "STOPPING", - UNKNOWN: "UNKNOWN", -} as const; - -/** - * @public - */ -export type ClockStatus = (typeof ClockStatus)[keyof typeof ClockStatus]; - -/** - * @public - * @enum - */ -export const ClockTargetStatus = { - STARTED: "STARTED", - STOPPED: "STOPPED", - UNKNOWN: "UNKNOWN", -} as const; - -/** - * @public - */ -export type ClockTargetStatus = (typeof ClockTargetStatus)[keyof typeof ClockTargetStatus]; - /** *

The Amazon CloudWatch Logs log group for the simulation. For more information about log groups, see Working with log * groups and log streams in the Amazon CloudWatch Logs User Guide.

@@ -217,39 +195,6 @@ export interface LaunchOverrides { LaunchCommands?: string[] | undefined; } -/** - * @public - * @enum - */ -export const SimulationAppStatus = { - ERROR: "ERROR", - STARTED: "STARTED", - STARTING: "STARTING", - STOPPED: "STOPPED", - STOPPING: "STOPPING", - UNKNOWN: "UNKNOWN", -} as const; - -/** - * @public - */ -export type SimulationAppStatus = (typeof SimulationAppStatus)[keyof typeof SimulationAppStatus]; - -/** - * @public - * @enum - */ -export const SimulationAppTargetStatus = { - STARTED: "STARTED", - STOPPED: "STOPPED", - UNKNOWN: "UNKNOWN", -} as const; - -/** - * @public - */ -export type SimulationAppTargetStatus = (typeof SimulationAppTargetStatus)[keyof typeof SimulationAppTargetStatus]; - /** * @public */ @@ -332,23 +277,6 @@ export interface SimulationClock { TargetStatus?: ClockTargetStatus | undefined; } -/** - * @public - * @enum - */ -export const LifecycleManagementStrategy = { - ByRequest: "ByRequest", - BySpatialSubdivision: "BySpatialSubdivision", - PerWorker: "PerWorker", - Unknown: "Unknown", -} as const; - -/** - * @public - */ -export type LifecycleManagementStrategy = - (typeof LifecycleManagementStrategy)[keyof typeof LifecycleManagementStrategy]; - /** *

A collection of app instances that run the same executable app code and have the same * launch options and commands.

@@ -466,43 +394,6 @@ export interface S3Location { ObjectKey: string | undefined; } -/** - * @public - * @enum - */ -export const SimulationStatus = { - DELETED: "DELETED", - DELETING: "DELETING", - FAILED: "FAILED", - SNAPSHOT_IN_PROGRESS: "SNAPSHOT_IN_PROGRESS", - STARTED: "STARTED", - STARTING: "STARTING", - STOPPED: "STOPPED", - STOPPING: "STOPPING", - UNKNOWN: "UNKNOWN", -} as const; - -/** - * @public - */ -export type SimulationStatus = (typeof SimulationStatus)[keyof typeof SimulationStatus]; - -/** - * @public - * @enum - */ -export const SimulationTargetStatus = { - DELETED: "DELETED", - STARTED: "STARTED", - STOPPED: "STOPPED", - UNKNOWN: "UNKNOWN", -} as const; - -/** - * @public - */ -export type SimulationTargetStatus = (typeof SimulationTargetStatus)[keyof typeof SimulationTargetStatus]; - /** * @public */ diff --git a/clients/client-snow-device-management/src/index.ts b/clients/client-snow-device-management/src/index.ts index f9ad7d1ae12d..79223d90e31c 100644 --- a/clients/client-snow-device-management/src/index.ts +++ b/clients/client-snow-device-management/src/index.ts @@ -13,6 +13,7 @@ export type { SnowDeviceManagementExtensionConfiguration } from "./extensionConf export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-snow-device-management/src/models/enums.ts b/clients/client-snow-device-management/src/models/enums.ts new file mode 100644 index 000000000000..0b624e000f63 --- /dev/null +++ b/clients/client-snow-device-management/src/models/enums.ts @@ -0,0 +1,107 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const AttachmentStatus = { + ATTACHED: "ATTACHED", + ATTACHING: "ATTACHING", + DETACHED: "DETACHED", + DETACHING: "DETACHING", +} as const; +/** + * @public + */ +export type AttachmentStatus = (typeof AttachmentStatus)[keyof typeof AttachmentStatus]; + +/** + * @public + * @enum + */ +export const UnlockState = { + LOCKED: "LOCKED", + UNLOCKED: "UNLOCKED", + UNLOCKING: "UNLOCKING", +} as const; +/** + * @public + */ +export type UnlockState = (typeof UnlockState)[keyof typeof UnlockState]; + +/** + * @public + * @enum + */ +export const IpAddressAssignment = { + DHCP: "DHCP", + STATIC: "STATIC", +} as const; +/** + * @public + */ +export type IpAddressAssignment = (typeof IpAddressAssignment)[keyof typeof IpAddressAssignment]; + +/** + * @public + * @enum + */ +export const PhysicalConnectorType = { + QSFP: "QSFP", + RJ45: "RJ45", + RJ45_2: "RJ45_2", + SFP_PLUS: "SFP_PLUS", + WIFI: "WIFI", +} as const; +/** + * @public + */ +export type PhysicalConnectorType = (typeof PhysicalConnectorType)[keyof typeof PhysicalConnectorType]; + +/** + * @public + * @enum + */ +export const InstanceStateName = { + PENDING: "PENDING", + RUNNING: "RUNNING", + SHUTTING_DOWN: "SHUTTING_DOWN", + STOPPED: "STOPPED", + STOPPING: "STOPPING", + TERMINATED: "TERMINATED", +} as const; +/** + * @public + */ +export type InstanceStateName = (typeof InstanceStateName)[keyof typeof InstanceStateName]; + +/** + * @public + * @enum + */ +export const ExecutionState = { + CANCELED: "CANCELED", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + QUEUED: "QUEUED", + REJECTED: "REJECTED", + SUCCEEDED: "SUCCEEDED", + TIMED_OUT: "TIMED_OUT", +} as const; +/** + * @public + */ +export type ExecutionState = (typeof ExecutionState)[keyof typeof ExecutionState]; + +/** + * @public + * @enum + */ +export const TaskState = { + CANCELED: "CANCELED", + COMPLETED: "COMPLETED", + IN_PROGRESS: "IN_PROGRESS", +} as const; +/** + * @public + */ +export type TaskState = (typeof TaskState)[keyof typeof TaskState]; diff --git a/clients/client-snow-device-management/src/models/models_0.ts b/clients/client-snow-device-management/src/models/models_0.ts index 4813a7785607..4311da68155a 100644 --- a/clients/client-snow-device-management/src/models/models_0.ts +++ b/clients/client-snow-device-management/src/models/models_0.ts @@ -1,19 +1,13 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const AttachmentStatus = { - ATTACHED: "ATTACHED", - ATTACHING: "ATTACHING", - DETACHED: "DETACHED", - DETACHING: "DETACHING", -} as const; - -/** - * @public - */ -export type AttachmentStatus = (typeof AttachmentStatus)[keyof typeof AttachmentStatus]; +import { + AttachmentStatus, + ExecutionState, + InstanceStateName, + IpAddressAssignment, + PhysicalConnectorType, + TaskState, + UnlockState, +} from "./enums"; /** * @public @@ -218,52 +212,6 @@ export interface DescribeDeviceInput { managedDeviceId: string | undefined; } -/** - * @public - * @enum - */ -export const UnlockState = { - LOCKED: "LOCKED", - UNLOCKED: "UNLOCKED", - UNLOCKING: "UNLOCKING", -} as const; - -/** - * @public - */ -export type UnlockState = (typeof UnlockState)[keyof typeof UnlockState]; - -/** - * @public - * @enum - */ -export const IpAddressAssignment = { - DHCP: "DHCP", - STATIC: "STATIC", -} as const; - -/** - * @public - */ -export type IpAddressAssignment = (typeof IpAddressAssignment)[keyof typeof IpAddressAssignment]; - -/** - * @public - * @enum - */ -export const PhysicalConnectorType = { - QSFP: "QSFP", - RJ45: "RJ45", - RJ45_2: "RJ45_2", - SFP_PLUS: "SFP_PLUS", - WIFI: "WIFI", -} as const; - -/** - * @public - */ -export type PhysicalConnectorType = (typeof PhysicalConnectorType)[keyof typeof PhysicalConnectorType]; - /** *

The details about the physical network interface for the device.

* @public @@ -498,24 +446,6 @@ export interface SecurityGroupIdentifier { groupName?: string | undefined; } -/** - * @public - * @enum - */ -export const InstanceStateName = { - PENDING: "PENDING", - RUNNING: "RUNNING", - SHUTTING_DOWN: "SHUTTING_DOWN", - STOPPED: "STOPPED", - STOPPING: "STOPPING", - TERMINATED: "TERMINATED", -} as const; - -/** - * @public - */ -export type InstanceStateName = (typeof InstanceStateName)[keyof typeof InstanceStateName]; - /** *

The description of the current state of an instance.

* @public @@ -710,25 +640,6 @@ export interface DescribeExecutionInput { managedDeviceId: string | undefined; } -/** - * @public - * @enum - */ -export const ExecutionState = { - CANCELED: "CANCELED", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - QUEUED: "QUEUED", - REJECTED: "REJECTED", - SUCCEEDED: "SUCCEEDED", - TIMED_OUT: "TIMED_OUT", -} as const; - -/** - * @public - */ -export type ExecutionState = (typeof ExecutionState)[keyof typeof ExecutionState]; - /** * @public */ @@ -781,21 +692,6 @@ export interface DescribeTaskInput { taskId: string | undefined; } -/** - * @public - * @enum - */ -export const TaskState = { - CANCELED: "CANCELED", - COMPLETED: "COMPLETED", - IN_PROGRESS: "IN_PROGRESS", -} as const; - -/** - * @public - */ -export type TaskState = (typeof TaskState)[keyof typeof TaskState]; - /** * @public */ diff --git a/clients/client-ssm-incidents/src/index.ts b/clients/client-ssm-incidents/src/index.ts index deb2a5edbac5..6c4bbe35fad9 100644 --- a/clients/client-ssm-incidents/src/index.ts +++ b/clients/client-ssm-incidents/src/index.ts @@ -21,6 +21,7 @@ export * from "./commands"; export * from "./pagination"; export * from "./waiters"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-ssm-incidents/src/models/enums.ts b/clients/client-ssm-incidents/src/models/enums.ts new file mode 100644 index 000000000000..b80e308eb872 --- /dev/null +++ b/clients/client-ssm-incidents/src/models/enums.ts @@ -0,0 +1,170 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const VariableType = { + INCIDENT_RECORD_ARN: "INCIDENT_RECORD_ARN", + INVOLVED_RESOURCES: "INVOLVED_RESOURCES", +} as const; +/** + * @public + */ +export type VariableType = (typeof VariableType)[keyof typeof VariableType]; + +/** + * @public + * @enum + */ +export const SsmTargetAccount = { + IMPACTED_ACCOUNT: "IMPACTED_ACCOUNT", + RESPONSE_PLAN_OWNER_ACCOUNT: "RESPONSE_PLAN_OWNER_ACCOUNT", +} as const; +/** + * @public + */ +export type SsmTargetAccount = (typeof SsmTargetAccount)[keyof typeof SsmTargetAccount]; + +/** + * @public + * @enum + */ +export const ResourceType = { + INCIDENT_RECORD: "INCIDENT_RECORD", + REPLICATION_SET: "REPLICATION_SET", + RESOURCE_POLICY: "RESOURCE_POLICY", + RESPONSE_PLAN: "RESPONSE_PLAN", + TIMELINE_EVENT: "TIMELINE_EVENT", +} as const; +/** + * @public + */ +export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; + +/** + * @public + * @enum + */ +export const ServiceCode = { + SSM_INCIDENTS: "ssm-incidents", +} as const; +/** + * @public + */ +export type ServiceCode = (typeof ServiceCode)[keyof typeof ServiceCode]; + +/** + * @public + * @enum + */ +export const IncidentRecordStatus = { + OPEN: "OPEN", + RESOLVED: "RESOLVED", +} as const; +/** + * @public + */ +export type IncidentRecordStatus = (typeof IncidentRecordStatus)[keyof typeof IncidentRecordStatus]; + +/** + * @public + * @enum + */ +export const RegionStatus = { + /** + * All operations have completed successfully and the region is ready to use + */ + ACTIVE: "ACTIVE", + /** + * The region is in the process of being created. + */ + CREATING: "CREATING", + /** + * The region is in the process of being deleted. + */ + DELETING: "DELETING", + /** + * The region is not healthy and we cannot automatically fix it. + */ + FAILED: "FAILED", +} as const; +/** + * @public + */ +export type RegionStatus = (typeof RegionStatus)[keyof typeof RegionStatus]; + +/** + * @public + * @enum + */ +export const ReplicationSetStatus = { + /** + * All operations have completed successfully and the replication set is ready to use + */ + ACTIVE: "ACTIVE", + /** + * Replication set is in the process of being created. + */ + CREATING: "CREATING", + /** + * Replication set is in the process of being deleted. + */ + DELETING: "DELETING", + /** + * Replication set is not healthy and we cannot fix it. + */ + FAILED: "FAILED", + /** + * Replication set is in the process of being updated. + */ + UPDATING: "UPDATING", +} as const; +/** + * @public + */ +export type ReplicationSetStatus = (typeof ReplicationSetStatus)[keyof typeof ReplicationSetStatus]; + +/** + * @public + * @enum + */ +export const ItemType = { + ANALYSIS: "ANALYSIS", + ATTACHMENT: "ATTACHMENT", + AUTOMATION: "AUTOMATION", + INCIDENT: "INCIDENT", + INVOLVED_RESOURCE: "INVOLVED_RESOURCE", + METRIC: "METRIC", + OTHER: "OTHER", + PARENT: "PARENT", + TASK: "TASK", +} as const; +/** + * @public + */ +export type ItemType = (typeof ItemType)[keyof typeof ItemType]; + +/** + * @public + * @enum + */ +export const TimelineEventSort = { + EVENT_TIME: "EVENT_TIME", +} as const; +/** + * @public + */ +export type TimelineEventSort = (typeof TimelineEventSort)[keyof typeof TimelineEventSort]; + +/** + * @public + * @enum + */ +export const SortOrder = { + ASCENDING: "ASCENDING", + DESCENDING: "DESCENDING", +} as const; +/** + * @public + */ +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; diff --git a/clients/client-ssm-incidents/src/models/errors.ts b/clients/client-ssm-incidents/src/models/errors.ts index 6dcb3cd2d79e..d9d8487230e1 100644 --- a/clients/client-ssm-incidents/src/models/errors.ts +++ b/clients/client-ssm-incidents/src/models/errors.ts @@ -1,7 +1,7 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { ResourceType, ServiceCode } from "./models_0"; +import { ResourceType, ServiceCode } from "./enums"; import { SSMIncidentsServiceException as __BaseException } from "./SSMIncidentsServiceException"; /** diff --git a/clients/client-ssm-incidents/src/models/models_0.ts b/clients/client-ssm-incidents/src/models/models_0.ts index 92ed3fb21f0c..7ea241d0f09e 100644 --- a/clients/client-ssm-incidents/src/models/models_0.ts +++ b/clients/client-ssm-incidents/src/models/models_0.ts @@ -1,17 +1,14 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const VariableType = { - INCIDENT_RECORD_ARN: "INCIDENT_RECORD_ARN", - INVOLVED_RESOURCES: "INVOLVED_RESOURCES", -} as const; - -/** - * @public - */ -export type VariableType = (typeof VariableType)[keyof typeof VariableType]; +import { + IncidentRecordStatus, + ItemType, + RegionStatus, + ReplicationSetStatus, + SortOrder, + SsmTargetAccount, + TimelineEventSort, + VariableType, +} from "./enums"; /** *

The dynamic SSM parameter value.

@@ -53,20 +50,6 @@ export namespace DynamicSsmParameterValue { } } -/** - * @public - * @enum - */ -export const SsmTargetAccount = { - IMPACTED_ACCOUNT: "IMPACTED_ACCOUNT", - RESPONSE_PLAN_OWNER_ACCOUNT: "RESPONSE_PLAN_OWNER_ACCOUNT", -} as const; - -/** - * @public - */ -export type SsmTargetAccount = (typeof SsmTargetAccount)[keyof typeof SsmTargetAccount]; - /** *

Details about the Systems Manager automation document that will be used as a runbook * during an incident.

@@ -472,36 +455,6 @@ export interface BatchGetIncidentFindingsOutput { errors: BatchGetIncidentFindingsError[] | undefined; } -/** - * @public - * @enum - */ -export const ResourceType = { - INCIDENT_RECORD: "INCIDENT_RECORD", - REPLICATION_SET: "REPLICATION_SET", - RESOURCE_POLICY: "RESOURCE_POLICY", - RESPONSE_PLAN: "RESPONSE_PLAN", - TIMELINE_EVENT: "TIMELINE_EVENT", -} as const; - -/** - * @public - */ -export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; - -/** - * @public - * @enum - */ -export const ServiceCode = { - SSM_INCIDENTS: "ssm-incidents", -} as const; - -/** - * @public - */ -export type ServiceCode = (typeof ServiceCode)[keyof typeof ServiceCode]; - /** *

Used to remove the chat channel from an incident record or response plan.

* @public @@ -1300,20 +1253,6 @@ export interface IncidentRecordSource { source: string | undefined; } -/** - * @public - * @enum - */ -export const IncidentRecordStatus = { - OPEN: "OPEN", - RESOLVED: "RESOLVED", -} as const; - -/** - * @public - */ -export type IncidentRecordStatus = (typeof IncidentRecordStatus)[keyof typeof IncidentRecordStatus]; - /** *

The record of the incident that's created when an incident occurs.

* @public @@ -1454,34 +1393,6 @@ export interface GetReplicationSetInput { arn: string | undefined; } -/** - * @public - * @enum - */ -export const RegionStatus = { - /** - * All operations have completed successfully and the region is ready to use - */ - ACTIVE: "ACTIVE", - /** - * The region is in the process of being created. - */ - CREATING: "CREATING", - /** - * The region is in the process of being deleted. - */ - DELETING: "DELETING", - /** - * The region is not healthy and we cannot automatically fix it. - */ - FAILED: "FAILED", -} as const; - -/** - * @public - */ -export type RegionStatus = (typeof RegionStatus)[keyof typeof RegionStatus]; - /** *

Information about a Amazon Web Services Region in your replication set.

* @public @@ -1512,38 +1423,6 @@ export interface RegionInfo { statusUpdateDateTime: Date | undefined; } -/** - * @public - * @enum - */ -export const ReplicationSetStatus = { - /** - * All operations have completed successfully and the replication set is ready to use - */ - ACTIVE: "ACTIVE", - /** - * Replication set is in the process of being created. - */ - CREATING: "CREATING", - /** - * Replication set is in the process of being deleted. - */ - DELETING: "DELETING", - /** - * Replication set is not healthy and we cannot fix it. - */ - FAILED: "FAILED", - /** - * Replication set is in the process of being updated. - */ - UPDATING: "UPDATING", -} as const; - -/** - * @public - */ -export type ReplicationSetStatus = (typeof ReplicationSetStatus)[keyof typeof ReplicationSetStatus]; - /** *

The set of Amazon Web Services Region that your Incident Manager data will be replicated to and * the KMS key used to encrypt the data.

@@ -1874,27 +1753,6 @@ export interface IncidentRecordSummary { incidentRecordSource: IncidentRecordSource | undefined; } -/** - * @public - * @enum - */ -export const ItemType = { - ANALYSIS: "ANALYSIS", - ATTACHMENT: "ATTACHMENT", - AUTOMATION: "AUTOMATION", - INCIDENT: "INCIDENT", - INVOLVED_RESOURCE: "INVOLVED_RESOURCE", - METRIC: "METRIC", - OTHER: "OTHER", - PARENT: "PARENT", - TASK: "TASK", -} as const; - -/** - * @public - */ -export type ItemType = (typeof ItemType)[keyof typeof ItemType]; - /** *

Details about the PagerDuty incident associated with an incident created by an Incident Manager * response plan.

@@ -2339,33 +2197,6 @@ export interface ListTagsForResourceResponse { tags: Record | undefined; } -/** - * @public - * @enum - */ -export const TimelineEventSort = { - EVENT_TIME: "EVENT_TIME", -} as const; - -/** - * @public - */ -export type TimelineEventSort = (typeof TimelineEventSort)[keyof typeof TimelineEventSort]; - -/** - * @public - * @enum - */ -export const SortOrder = { - ASCENDING: "ASCENDING", - DESCENDING: "DESCENDING", -} as const; - -/** - * @public - */ -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; - /** * @public */ diff --git a/clients/client-support-app/src/index.ts b/clients/client-support-app/src/index.ts index cbe1dd0178c3..48ead3844343 100644 --- a/clients/client-support-app/src/index.ts +++ b/clients/client-support-app/src/index.ts @@ -66,6 +66,7 @@ export type { SupportAppExtensionConfiguration } from "./extensionConfiguration" export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-support-app/src/models/enums.ts b/clients/client-support-app/src/models/enums.ts new file mode 100644 index 000000000000..edcdd0e19b24 --- /dev/null +++ b/clients/client-support-app/src/models/enums.ts @@ -0,0 +1,27 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const AccountType = { + MANAGEMENT: "management", + MEMBER: "member", +} as const; +/** + * @public + */ +export type AccountType = (typeof AccountType)[keyof typeof AccountType]; + +/** + * @public + * @enum + */ +export const NotificationSeverityLevel = { + ALL: "all", + HIGH: "high", + NONE: "none", +} as const; +/** + * @public + */ +export type NotificationSeverityLevel = (typeof NotificationSeverityLevel)[keyof typeof NotificationSeverityLevel]; diff --git a/clients/client-support-app/src/models/models_0.ts b/clients/client-support-app/src/models/models_0.ts index 688c7537e541..28471466706a 100644 --- a/clients/client-support-app/src/models/models_0.ts +++ b/clients/client-support-app/src/models/models_0.ts @@ -1,32 +1,5 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const AccountType = { - MANAGEMENT: "management", - MEMBER: "member", -} as const; - -/** - * @public - */ -export type AccountType = (typeof AccountType)[keyof typeof AccountType]; - -/** - * @public - * @enum - */ -export const NotificationSeverityLevel = { - ALL: "all", - HIGH: "high", - NONE: "none", -} as const; - -/** - * @public - */ -export type NotificationSeverityLevel = (typeof NotificationSeverityLevel)[keyof typeof NotificationSeverityLevel]; +import { AccountType, NotificationSeverityLevel } from "./enums"; /** * @public diff --git a/clients/client-voice-id/src/index.ts b/clients/client-voice-id/src/index.ts index a91cfe65354f..412ac7024c23 100644 --- a/clients/client-voice-id/src/index.ts +++ b/clients/client-voice-id/src/index.ts @@ -14,6 +14,7 @@ export type { VoiceIDExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-voice-id/src/models/enums.ts b/clients/client-voice-id/src/models/enums.ts new file mode 100644 index 000000000000..350b904e3700 --- /dev/null +++ b/clients/client-voice-id/src/models/enums.ts @@ -0,0 +1,215 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ConflictType = { + ANOTHER_ACTIVE_STREAM: "ANOTHER_ACTIVE_STREAM", + CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT: "CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT", + CANNOT_DELETE_NON_EMPTY_WATCHLIST: "CANNOT_DELETE_NON_EMPTY_WATCHLIST", + CONCURRENT_CHANGES: "CONCURRENT_CHANGES", + DOMAIN_LOCKED_FROM_ENCRYPTION_UPDATES: "DOMAIN_LOCKED_FROM_ENCRYPTION_UPDATES", + DOMAIN_NOT_ACTIVE: "DOMAIN_NOT_ACTIVE", + ENROLLMENT_ALREADY_EXISTS: "ENROLLMENT_ALREADY_EXISTS", + FRAUDSTER_MUST_BELONG_TO_AT_LEAST_ONE_WATCHLIST: "FRAUDSTER_MUST_BELONG_TO_AT_LEAST_ONE_WATCHLIST", + SPEAKER_NOT_SET: "SPEAKER_NOT_SET", + SPEAKER_OPTED_OUT: "SPEAKER_OPTED_OUT", +} as const; +/** + * @public + */ +export type ConflictType = (typeof ConflictType)[keyof typeof ConflictType]; + +/** + * @public + * @enum + */ +export const ResourceType = { + BATCH_JOB: "BATCH_JOB", + COMPLIANCE_CONSENT: "COMPLIANCE_CONSENT", + DOMAIN: "DOMAIN", + FRAUDSTER: "FRAUDSTER", + SESSION: "SESSION", + SPEAKER: "SPEAKER", + WATCHLIST: "WATCHLIST", +} as const; +/** + * @public + */ +export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; + +/** + * @public + * @enum + */ +export const AuthenticationDecision = { + ACCEPT: "ACCEPT", + NOT_ENOUGH_SPEECH: "NOT_ENOUGH_SPEECH", + REJECT: "REJECT", + SPEAKER_EXPIRED: "SPEAKER_EXPIRED", + SPEAKER_ID_NOT_PROVIDED: "SPEAKER_ID_NOT_PROVIDED", + SPEAKER_NOT_ENROLLED: "SPEAKER_NOT_ENROLLED", + SPEAKER_OPTED_OUT: "SPEAKER_OPTED_OUT", +} as const; +/** + * @public + */ +export type AuthenticationDecision = (typeof AuthenticationDecision)[keyof typeof AuthenticationDecision]; + +/** + * @public + * @enum + */ +export const DomainStatus = { + ACTIVE: "ACTIVE", + PENDING: "PENDING", + SUSPENDED: "SUSPENDED", +} as const; +/** + * @public + */ +export type DomainStatus = (typeof DomainStatus)[keyof typeof DomainStatus]; + +/** + * @public + * @enum + */ +export const ServerSideEncryptionUpdateStatus = { + COMPLETED: "COMPLETED", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", +} as const; +/** + * @public + */ +export type ServerSideEncryptionUpdateStatus = + (typeof ServerSideEncryptionUpdateStatus)[keyof typeof ServerSideEncryptionUpdateStatus]; + +/** + * @public + * @enum + */ +export const FraudsterRegistrationJobStatus = { + COMPLETED: "COMPLETED", + COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUBMITTED: "SUBMITTED", +} as const; +/** + * @public + */ +export type FraudsterRegistrationJobStatus = + (typeof FraudsterRegistrationJobStatus)[keyof typeof FraudsterRegistrationJobStatus]; + +/** + * @public + * @enum + */ +export const DuplicateRegistrationAction = { + REGISTER_AS_NEW: "REGISTER_AS_NEW", + SKIP: "SKIP", +} as const; +/** + * @public + */ +export type DuplicateRegistrationAction = + (typeof DuplicateRegistrationAction)[keyof typeof DuplicateRegistrationAction]; + +/** + * @public + * @enum + */ +export const SpeakerStatus = { + ENROLLED: "ENROLLED", + EXPIRED: "EXPIRED", + OPTED_OUT: "OPTED_OUT", + PENDING: "PENDING", +} as const; +/** + * @public + */ +export type SpeakerStatus = (typeof SpeakerStatus)[keyof typeof SpeakerStatus]; + +/** + * @public + * @enum + */ +export const ExistingEnrollmentAction = { + OVERWRITE: "OVERWRITE", + SKIP: "SKIP", +} as const; +/** + * @public + */ +export type ExistingEnrollmentAction = (typeof ExistingEnrollmentAction)[keyof typeof ExistingEnrollmentAction]; + +/** + * @public + * @enum + */ +export const FraudDetectionAction = { + FAIL: "FAIL", + IGNORE: "IGNORE", +} as const; +/** + * @public + */ +export type FraudDetectionAction = (typeof FraudDetectionAction)[keyof typeof FraudDetectionAction]; + +/** + * @public + * @enum + */ +export const SpeakerEnrollmentJobStatus = { + COMPLETED: "COMPLETED", + COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS", + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SUBMITTED: "SUBMITTED", +} as const; +/** + * @public + */ +export type SpeakerEnrollmentJobStatus = (typeof SpeakerEnrollmentJobStatus)[keyof typeof SpeakerEnrollmentJobStatus]; + +/** + * @public + * @enum + */ +export const FraudDetectionDecision = { + HIGH_RISK: "HIGH_RISK", + LOW_RISK: "LOW_RISK", + NOT_ENOUGH_SPEECH: "NOT_ENOUGH_SPEECH", +} as const; +/** + * @public + */ +export type FraudDetectionDecision = (typeof FraudDetectionDecision)[keyof typeof FraudDetectionDecision]; + +/** + * @public + * @enum + */ +export const FraudDetectionReason = { + KNOWN_FRAUDSTER: "KNOWN_FRAUDSTER", + VOICE_SPOOFING: "VOICE_SPOOFING", +} as const; +/** + * @public + */ +export type FraudDetectionReason = (typeof FraudDetectionReason)[keyof typeof FraudDetectionReason]; + +/** + * @public + * @enum + */ +export const StreamingStatus = { + ENDED: "ENDED", + ONGOING: "ONGOING", + PENDING_CONFIGURATION: "PENDING_CONFIGURATION", +} as const; +/** + * @public + */ +export type StreamingStatus = (typeof StreamingStatus)[keyof typeof StreamingStatus]; diff --git a/clients/client-voice-id/src/models/errors.ts b/clients/client-voice-id/src/models/errors.ts index 28ad83801c4f..ea1c19f517a6 100644 --- a/clients/client-voice-id/src/models/errors.ts +++ b/clients/client-voice-id/src/models/errors.ts @@ -1,7 +1,7 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { ConflictType, ResourceType } from "./models_0"; +import { ConflictType, ResourceType } from "./enums"; import { VoiceIDServiceException as __BaseException } from "./VoiceIDServiceException"; /** diff --git a/clients/client-voice-id/src/models/models_0.ts b/clients/client-voice-id/src/models/models_0.ts index ab63bd438bc8..17b039ab7959 100644 --- a/clients/client-voice-id/src/models/models_0.ts +++ b/clients/client-voice-id/src/models/models_0.ts @@ -1,4 +1,19 @@ // smithy-typescript generated code +import { + AuthenticationDecision, + DomainStatus, + DuplicateRegistrationAction, + ExistingEnrollmentAction, + FraudDetectionAction, + FraudDetectionDecision, + FraudDetectionReason, + FraudsterRegistrationJobStatus, + ServerSideEncryptionUpdateStatus, + SpeakerEnrollmentJobStatus, + SpeakerStatus, + StreamingStatus, +} from "./enums"; + /** * @public */ @@ -63,47 +78,6 @@ export interface AssociateFraudsterResponse { Fraudster?: Fraudster | undefined; } -/** - * @public - * @enum - */ -export const ConflictType = { - ANOTHER_ACTIVE_STREAM: "ANOTHER_ACTIVE_STREAM", - CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT: "CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT", - CANNOT_DELETE_NON_EMPTY_WATCHLIST: "CANNOT_DELETE_NON_EMPTY_WATCHLIST", - CONCURRENT_CHANGES: "CONCURRENT_CHANGES", - DOMAIN_LOCKED_FROM_ENCRYPTION_UPDATES: "DOMAIN_LOCKED_FROM_ENCRYPTION_UPDATES", - DOMAIN_NOT_ACTIVE: "DOMAIN_NOT_ACTIVE", - ENROLLMENT_ALREADY_EXISTS: "ENROLLMENT_ALREADY_EXISTS", - FRAUDSTER_MUST_BELONG_TO_AT_LEAST_ONE_WATCHLIST: "FRAUDSTER_MUST_BELONG_TO_AT_LEAST_ONE_WATCHLIST", - SPEAKER_NOT_SET: "SPEAKER_NOT_SET", - SPEAKER_OPTED_OUT: "SPEAKER_OPTED_OUT", -} as const; - -/** - * @public - */ -export type ConflictType = (typeof ConflictType)[keyof typeof ConflictType]; - -/** - * @public - * @enum - */ -export const ResourceType = { - BATCH_JOB: "BATCH_JOB", - COMPLIANCE_CONSENT: "COMPLIANCE_CONSENT", - DOMAIN: "DOMAIN", - FRAUDSTER: "FRAUDSTER", - SESSION: "SESSION", - SPEAKER: "SPEAKER", - WATCHLIST: "WATCHLIST", -} as const; - -/** - * @public - */ -export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; - /** *

The configuration used to authenticate a speaker during a session.

* @public @@ -116,25 +90,6 @@ export interface AuthenticationConfiguration { AcceptanceThreshold: number | undefined; } -/** - * @public - * @enum - */ -export const AuthenticationDecision = { - ACCEPT: "ACCEPT", - NOT_ENOUGH_SPEECH: "NOT_ENOUGH_SPEECH", - REJECT: "REJECT", - SPEAKER_EXPIRED: "SPEAKER_EXPIRED", - SPEAKER_ID_NOT_PROVIDED: "SPEAKER_ID_NOT_PROVIDED", - SPEAKER_NOT_ENROLLED: "SPEAKER_NOT_ENROLLED", - SPEAKER_OPTED_OUT: "SPEAKER_OPTED_OUT", -} as const; - -/** - * @public - */ -export type AuthenticationDecision = (typeof AuthenticationDecision)[keyof typeof AuthenticationDecision]; - /** *

The authentication result produced by Voice ID, processed against the current session * state and streamed audio of the speaker.

@@ -277,37 +232,6 @@ export interface CreateDomainRequest { Tags?: Tag[] | undefined; } -/** - * @public - * @enum - */ -export const DomainStatus = { - ACTIVE: "ACTIVE", - PENDING: "PENDING", - SUSPENDED: "SUSPENDED", -} as const; - -/** - * @public - */ -export type DomainStatus = (typeof DomainStatus)[keyof typeof DomainStatus]; - -/** - * @public - * @enum - */ -export const ServerSideEncryptionUpdateStatus = { - COMPLETED: "COMPLETED", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", -} as const; - -/** - * @public - */ -export type ServerSideEncryptionUpdateStatus = - (typeof ServerSideEncryptionUpdateStatus)[keyof typeof ServerSideEncryptionUpdateStatus]; - /** *

Details about the most recent server-side encryption configuration update. When the * server-side encryption configuration is changed, dependency on the old KMS key is removed through an asynchronous process. When this update is @@ -696,24 +620,6 @@ export interface JobProgress { PercentComplete?: number | undefined; } -/** - * @public - * @enum - */ -export const FraudsterRegistrationJobStatus = { - COMPLETED: "COMPLETED", - COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUBMITTED: "SUBMITTED", -} as const; - -/** - * @public - */ -export type FraudsterRegistrationJobStatus = - (typeof FraudsterRegistrationJobStatus)[keyof typeof FraudsterRegistrationJobStatus]; - /** *

The configuration containing output file information for a batch job.

* @public @@ -738,21 +644,6 @@ export interface OutputDataConfig { KmsKeyId?: string | undefined; } -/** - * @public - * @enum - */ -export const DuplicateRegistrationAction = { - REGISTER_AS_NEW: "REGISTER_AS_NEW", - SKIP: "SKIP", -} as const; - -/** - * @public - */ -export type DuplicateRegistrationAction = - (typeof DuplicateRegistrationAction)[keyof typeof DuplicateRegistrationAction]; - /** *

The registration configuration to be used during the batch fraudster registration job.

* @public @@ -899,22 +790,6 @@ export interface DescribeSpeakerRequest { SpeakerId: string | undefined; } -/** - * @public - * @enum - */ -export const SpeakerStatus = { - ENROLLED: "ENROLLED", - EXPIRED: "EXPIRED", - OPTED_OUT: "OPTED_OUT", - PENDING: "PENDING", -} as const; - -/** - * @public - */ -export type SpeakerStatus = (typeof SpeakerStatus)[keyof typeof SpeakerStatus]; - /** *

Contains all the information about a speaker.

* @public @@ -992,34 +867,6 @@ export interface DescribeSpeakerEnrollmentJobRequest { JobId: string | undefined; } -/** - * @public - * @enum - */ -export const ExistingEnrollmentAction = { - OVERWRITE: "OVERWRITE", - SKIP: "SKIP", -} as const; - -/** - * @public - */ -export type ExistingEnrollmentAction = (typeof ExistingEnrollmentAction)[keyof typeof ExistingEnrollmentAction]; - -/** - * @public - * @enum - */ -export const FraudDetectionAction = { - FAIL: "FAIL", - IGNORE: "IGNORE", -} as const; - -/** - * @public - */ -export type FraudDetectionAction = (typeof FraudDetectionAction)[keyof typeof FraudDetectionAction]; - /** *

The fraud detection configuration to be used during the batch speaker enrollment job.

* @public @@ -1072,23 +919,6 @@ export interface EnrollmentConfig { FraudDetectionConfig?: EnrollmentJobFraudDetectionConfig | undefined; } -/** - * @public - * @enum - */ -export const SpeakerEnrollmentJobStatus = { - COMPLETED: "COMPLETED", - COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS", - FAILED: "FAILED", - IN_PROGRESS: "IN_PROGRESS", - SUBMITTED: "SUBMITTED", -} as const; - -/** - * @public - */ -export type SpeakerEnrollmentJobStatus = (typeof SpeakerEnrollmentJobStatus)[keyof typeof SpeakerEnrollmentJobStatus]; - /** *

Contains all the information about a speaker enrollment job.

* @public @@ -1446,35 +1276,6 @@ export interface FraudDetectionConfiguration { WatchlistId?: string | undefined; } -/** - * @public - * @enum - */ -export const FraudDetectionDecision = { - HIGH_RISK: "HIGH_RISK", - LOW_RISK: "LOW_RISK", - NOT_ENOUGH_SPEECH: "NOT_ENOUGH_SPEECH", -} as const; - -/** - * @public - */ -export type FraudDetectionDecision = (typeof FraudDetectionDecision)[keyof typeof FraudDetectionDecision]; - -/** - * @public - * @enum - */ -export const FraudDetectionReason = { - KNOWN_FRAUDSTER: "KNOWN_FRAUDSTER", - VOICE_SPOOFING: "VOICE_SPOOFING", -} as const; - -/** - * @public - */ -export type FraudDetectionReason = (typeof FraudDetectionReason)[keyof typeof FraudDetectionReason]; - /** *

Contains details produced as a result of performing known fraudster risk analysis on a * speaker.

@@ -1587,21 +1388,6 @@ export interface FraudDetectionResult { RiskDetails?: FraudRiskDetails | undefined; } -/** - * @public - * @enum - */ -export const StreamingStatus = { - ENDED: "ENDED", - ONGOING: "ONGOING", - PENDING_CONFIGURATION: "PENDING_CONFIGURATION", -} as const; - -/** - * @public - */ -export type StreamingStatus = (typeof StreamingStatus)[keyof typeof StreamingStatus]; - /** * @public */ diff --git a/clients/client-vpc-lattice/src/index.ts b/clients/client-vpc-lattice/src/index.ts index f56af2240e1e..768bc7643743 100644 --- a/clients/client-vpc-lattice/src/index.ts +++ b/clients/client-vpc-lattice/src/index.ts @@ -13,6 +13,7 @@ export type { VPCLatticeExtensionConfiguration } from "./extensionConfiguration" export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-vpc-lattice/src/models/enums.ts b/clients/client-vpc-lattice/src/models/enums.ts new file mode 100644 index 000000000000..35e8f74c9494 --- /dev/null +++ b/clients/client-vpc-lattice/src/models/enums.ts @@ -0,0 +1,617 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const ServiceNetworkLogType = { + /** + * Indicates logs for Lattice resource configurations. + */ + RESOURCE: "RESOURCE", + /** + * Indicates logs for Lattice services. + */ + SERVICE: "SERVICE", +} as const; +/** + * @public + */ +export type ServiceNetworkLogType = (typeof ServiceNetworkLogType)[keyof typeof ServiceNetworkLogType]; + +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + CANNOT_PARSE: "cannotParse", + FIELD_VALIDATION_FAILED: "fieldValidationFailed", + OTHER: "other", + UNKNOWN_OPERATION: "unknownOperation", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const AuthPolicyState = { + Active: "Active", + Inactive: "Inactive", +} as const; +/** + * @public + */ +export type AuthPolicyState = (typeof AuthPolicyState)[keyof typeof AuthPolicyState]; + +/** + * @public + * @enum + */ +export const AuthType = { + AWS_IAM: "AWS_IAM", + NONE: "NONE", +} as const; +/** + * @public + */ +export type AuthType = (typeof AuthType)[keyof typeof AuthType]; + +/** + * @public + * @enum + */ +export const ListenerProtocol = { + /** + * Indicates HTTP protocol + */ + HTTP: "HTTP", + /** + * Indicates HTTPS protocol + */ + HTTPS: "HTTPS", + /** + * Indicates TLS_PASSTHROUGH protocol + */ + TLS_PASSTHROUGH: "TLS_PASSTHROUGH", +} as const; +/** + * @public + */ +export type ListenerProtocol = (typeof ListenerProtocol)[keyof typeof ListenerProtocol]; + +/** + * @public + * @enum + */ +export const ProtocolType = { + /** + * Resource Configuration protocol type TCP + */ + TCP: "TCP", +} as const; +/** + * @public + */ +export type ProtocolType = (typeof ProtocolType)[keyof typeof ProtocolType]; + +/** + * @public + * @enum + */ +export const ResourceConfigurationIpAddressType = { + /** + * Dualstack ip address type for dns type resource configs + */ + DUALSTACK: "DUALSTACK", + /** + * Ipv4 ip address type for dns type resource configs + */ + IPV4: "IPV4", + /** + * IPv6 ip address type for dns type resource configs + */ + IPV6: "IPV6", +} as const; +/** + * @public + */ +export type ResourceConfigurationIpAddressType = + (typeof ResourceConfigurationIpAddressType)[keyof typeof ResourceConfigurationIpAddressType]; + +/** + * @public + * @enum + */ +export const ResourceConfigurationType = { + /** + * Resource Configuration of type ARN + */ + ARN: "ARN", + /** + * Resource Configuration of type CHILD + */ + CHILD: "CHILD", + /** + * Resource Configuration of type GROUP + */ + GROUP: "GROUP", + /** + * Resource Configuration of type SINGLE + */ + SINGLE: "SINGLE", +} as const; +/** + * @public + */ +export type ResourceConfigurationType = (typeof ResourceConfigurationType)[keyof typeof ResourceConfigurationType]; + +/** + * @public + * @enum + */ +export const ResourceConfigurationStatus = { + /** + * Resource Configuration is active. + */ + ACTIVE: "ACTIVE", + /** + * Resource Configuration creation failed + */ + CREATE_FAILED: "CREATE_FAILED", + /** + * Resource Configuration creation in progress. + */ + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + /** + * Resource Configuration deletion failed. + */ + DELETE_FAILED: "DELETE_FAILED", + /** + * Resource Configuration deletion in progress + */ + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", + /** + * Resource Configuration update failed + */ + UPDATE_FAILED: "UPDATE_FAILED", + /** + * Resource Configuration update in progress. + */ + UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS", +} as const; +/** + * @public + */ +export type ResourceConfigurationStatus = + (typeof ResourceConfigurationStatus)[keyof typeof ResourceConfigurationStatus]; + +/** + * @public + * @enum + */ +export const ResourceGatewayIpAddressType = { + /** + * Dualstack ip address type for resource gateway + */ + DUALSTACK: "DUALSTACK", + /** + * Ipv4 ip address type for resource gateway + */ + IPV4: "IPV4", + /** + * IPv6 ip address type for resource gateway + */ + IPV6: "IPV6", +} as const; +/** + * @public + */ +export type ResourceGatewayIpAddressType = + (typeof ResourceGatewayIpAddressType)[keyof typeof ResourceGatewayIpAddressType]; + +/** + * @public + * @enum + */ +export const ResourceGatewayStatus = { + /** + * Resource Gateway is active. + */ + ACTIVE: "ACTIVE", + /** + * Resource Gateway creation failed + */ + CREATE_FAILED: "CREATE_FAILED", + /** + * Resource Gateway creation in progress. + */ + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + /** + * Resource Gateway deletion failed. + */ + DELETE_FAILED: "DELETE_FAILED", + /** + * Resource Gateway deletion in progress + */ + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", + /** + * Reosurce Gateway update failed + */ + UPDATE_FAILED: "UPDATE_FAILED", + /** + * Resource Gateway update in progress. + */ + UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS", +} as const; +/** + * @public + */ +export type ResourceGatewayStatus = (typeof ResourceGatewayStatus)[keyof typeof ResourceGatewayStatus]; + +/** + * @public + * @enum + */ +export const ServiceStatus = { + /** + * Service is active. + */ + ACTIVE: "ACTIVE", + /** + * Service creation failed + */ + CREATE_FAILED: "CREATE_FAILED", + /** + * Service creation in progress. + */ + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + /** + * Service deletion failed. + */ + DELETE_FAILED: "DELETE_FAILED", + /** + * Service deletion in progress + */ + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", +} as const; +/** + * @public + */ +export type ServiceStatus = (typeof ServiceStatus)[keyof typeof ServiceStatus]; + +/** + * @public + * @enum + */ +export const ServiceNetworkResourceAssociationStatus = { + /** + * ServiceNetwork and Service association is active + */ + ACTIVE: "ACTIVE", + /** + * ServiceNetwork and Service association creation failed. + */ + CREATE_FAILED: "CREATE_FAILED", + /** + * ServiceNetwork and Service association creation in progress + */ + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + /** + * ServiceNetwork and Service association deletion failed + */ + DELETE_FAILED: "DELETE_FAILED", + /** + * ServiceNetwork and Service association deletion in progress + */ + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", + /** + * ServiceNetwork and Service association is partial + */ + PARTIAL: "PARTIAL", +} as const; +/** + * @public + */ +export type ServiceNetworkResourceAssociationStatus = + (typeof ServiceNetworkResourceAssociationStatus)[keyof typeof ServiceNetworkResourceAssociationStatus]; + +/** + * @public + * @enum + */ +export const ServiceNetworkServiceAssociationStatus = { + /** + * ServiceNetwork and Service association is active + */ + ACTIVE: "ACTIVE", + /** + * ServiceNetwork and Service association creation failed. + */ + CREATE_FAILED: "CREATE_FAILED", + /** + * ServiceNetwork and Service association creation in progress + */ + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + /** + * ServiceNetwork and Service association deletion failed + */ + DELETE_FAILED: "DELETE_FAILED", + /** + * ServiceNetwork and Service association deletion in progress + */ + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", +} as const; +/** + * @public + */ +export type ServiceNetworkServiceAssociationStatus = + (typeof ServiceNetworkServiceAssociationStatus)[keyof typeof ServiceNetworkServiceAssociationStatus]; + +/** + * @public + * @enum + */ +export const PrivateDnsPreference = { + ALL_DOMAINS: "ALL_DOMAINS", + SPECIFIED_DOMAINS_ONLY: "SPECIFIED_DOMAINS_ONLY", + VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS: "VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS", + VERIFIED_DOMAINS_ONLY: "VERIFIED_DOMAINS_ONLY", +} as const; +/** + * @public + */ +export type PrivateDnsPreference = (typeof PrivateDnsPreference)[keyof typeof PrivateDnsPreference]; + +/** + * @public + * @enum + */ +export const ServiceNetworkVpcAssociationStatus = { + /** + * ServiceNetwork and Vpc association is active + */ + ACTIVE: "ACTIVE", + /** + * ServiceNetwork and Vpc association creation failed. + */ + CREATE_FAILED: "CREATE_FAILED", + /** + * ServiceNetwork and Vpc association creation in progress + */ + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + /** + * ServiceNetwork and Vpc association deletion failed + */ + DELETE_FAILED: "DELETE_FAILED", + /** + * ServiceNetwork and Vpc association deletion in progress + */ + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", + /** + * ServiceNetwork and Vpc association update failed + */ + UPDATE_FAILED: "UPDATE_FAILED", + /** + * ServiceNetwork and Vpc association update in progress + */ + UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS", +} as const; +/** + * @public + */ +export type ServiceNetworkVpcAssociationStatus = + (typeof ServiceNetworkVpcAssociationStatus)[keyof typeof ServiceNetworkVpcAssociationStatus]; + +/** + * @public + * @enum + */ +export const TargetGroupProtocol = { + /** + * Indicates HTTP protocol + */ + HTTP: "HTTP", + /** + * Indicates HTTPS protocol + */ + HTTPS: "HTTPS", + /** + * Indicates TCP protocol + */ + TCP: "TCP", +} as const; +/** + * @public + */ +export type TargetGroupProtocol = (typeof TargetGroupProtocol)[keyof typeof TargetGroupProtocol]; + +/** + * @public + * @enum + */ +export const HealthCheckProtocolVersion = { + /** + * Indicates use of HTTP/1.1 to send requests to target + */ + HTTP1: "HTTP1", + /** + * Indicates use of HTTP/2 to send requests to target + */ + HTTP2: "HTTP2", +} as const; +/** + * @public + */ +export type HealthCheckProtocolVersion = (typeof HealthCheckProtocolVersion)[keyof typeof HealthCheckProtocolVersion]; + +/** + * @public + * @enum + */ +export const IpAddressType = { + /** + * Indicates IPv4 address type + */ + IPV4: "IPV4", + /** + * Indicates IPv6 address type + */ + IPV6: "IPV6", +} as const; +/** + * @public + */ +export type IpAddressType = (typeof IpAddressType)[keyof typeof IpAddressType]; + +/** + * @public + * @enum + */ +export const LambdaEventStructureVersion = { + /** + * This is the default lambda event structure version + */ + V1: "V1", + /** + * Indicates use of lambda event structure version 2 + */ + V2: "V2", +} as const; +/** + * @public + */ +export type LambdaEventStructureVersion = + (typeof LambdaEventStructureVersion)[keyof typeof LambdaEventStructureVersion]; + +/** + * @public + * @enum + */ +export const TargetGroupProtocolVersion = { + /** + * Indicates use of gRPC to send requests to target + */ + GRPC: "GRPC", + /** + * Indicates use of HTTP/1.1 to send requests to target + */ + HTTP1: "HTTP1", + /** + * Indicates use of HTTP/2 to send requests to target + */ + HTTP2: "HTTP2", +} as const; +/** + * @public + */ +export type TargetGroupProtocolVersion = (typeof TargetGroupProtocolVersion)[keyof typeof TargetGroupProtocolVersion]; + +/** + * @public + * @enum + */ +export const TargetGroupType = { + /** + * Indicates target in this target group is an ALB + */ + ALB: "ALB", + /** + * Indicates targets in this target group are EC2 instances + */ + INSTANCE: "INSTANCE", + /** + * Indicates targets in this target group are IP + */ + IP: "IP", + /** + * Indicates targets in this target group are Lambda + */ + LAMBDA: "LAMBDA", +} as const; +/** + * @public + */ +export type TargetGroupType = (typeof TargetGroupType)[keyof typeof TargetGroupType]; + +/** + * @public + * @enum + */ +export const TargetGroupStatus = { + /** + * TargetGroup is active + */ + ACTIVE: "ACTIVE", + /** + * TargetGroup creation failed. + */ + CREATE_FAILED: "CREATE_FAILED", + /** + * TargetGroup creation in progress + */ + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + /** + * TargetGroup deletion failed + */ + DELETE_FAILED: "DELETE_FAILED", + /** + * TargetGroup deletion in progress + */ + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", +} as const; +/** + * @public + */ +export type TargetGroupStatus = (typeof TargetGroupStatus)[keyof typeof TargetGroupStatus]; + +/** + * @public + * @enum + */ +export const VerificationStatus = { + PENDING: "PENDING", + VERIFICATION_TIMED_OUT: "VERIFICATION_TIMED_OUT", + VERIFIED: "VERIFIED", +} as const; +/** + * @public + */ +export type VerificationStatus = (typeof VerificationStatus)[keyof typeof VerificationStatus]; + +/** + * @public + * @enum + */ +export const TargetStatus = { + /** + * The target is deregistering and connection draining is in process. + */ + DRAINING: "DRAINING", + /** + * The target is healthy. + */ + HEALTHY: "HEALTHY", + /** + * The initial health check is in progress. + */ + INITIAL: "INITIAL", + /** + * Health checks are disabled. + */ + UNAVAILABLE: "UNAVAILABLE", + /** + * The target failed the health check. + */ + UNHEALTHY: "UNHEALTHY", + /** + * The target group is not used in a listener rule. + */ + UNUSED: "UNUSED", +} as const; +/** + * @public + */ +export type TargetStatus = (typeof TargetStatus)[keyof typeof TargetStatus]; diff --git a/clients/client-vpc-lattice/src/models/errors.ts b/clients/client-vpc-lattice/src/models/errors.ts index a2425f9c3c2e..568cc899f35a 100644 --- a/clients/client-vpc-lattice/src/models/errors.ts +++ b/clients/client-vpc-lattice/src/models/errors.ts @@ -1,7 +1,8 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionReason } from "./enums"; +import { ValidationExceptionField } from "./models_0"; import { VPCLatticeServiceException as __BaseException } from "./VPCLatticeServiceException"; /** diff --git a/clients/client-vpc-lattice/src/models/models_0.ts b/clients/client-vpc-lattice/src/models/models_0.ts index 4e7d4db00e88..c169a079dec4 100644 --- a/clients/client-vpc-lattice/src/models/models_0.ts +++ b/clients/client-vpc-lattice/src/models/models_0.ts @@ -1,23 +1,30 @@ // smithy-typescript generated code -/** - * @public - * @enum - */ -export const ServiceNetworkLogType = { - /** - * Indicates logs for Lattice resource configurations. - */ - RESOURCE: "RESOURCE", - /** - * Indicates logs for Lattice services. - */ - SERVICE: "SERVICE", -} as const; - -/** - * @public - */ -export type ServiceNetworkLogType = (typeof ServiceNetworkLogType)[keyof typeof ServiceNetworkLogType]; +import { + AuthPolicyState, + AuthType, + HealthCheckProtocolVersion, + IpAddressType, + LambdaEventStructureVersion, + ListenerProtocol, + PrivateDnsPreference, + ProtocolType, + ResourceConfigurationIpAddressType, + ResourceConfigurationStatus, + ResourceConfigurationType, + ResourceGatewayIpAddressType, + ResourceGatewayStatus, + ServiceNetworkLogType, + ServiceNetworkResourceAssociationStatus, + ServiceNetworkServiceAssociationStatus, + ServiceNetworkVpcAssociationStatus, + ServiceStatus, + TargetGroupProtocol, + TargetGroupProtocolVersion, + TargetGroupStatus, + TargetGroupType, + TargetStatus, + VerificationStatus, +} from "./enums"; /** * @public @@ -113,22 +120,6 @@ export interface ValidationExceptionField { message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - CANNOT_PARSE: "cannotParse", - FIELD_VALIDATION_FAILED: "fieldValidationFailed", - OTHER: "other", - UNKNOWN_OPERATION: "unknownOperation", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** * @public */ @@ -367,34 +358,6 @@ export interface ArnResource { arn?: string | undefined; } -/** - * @public - * @enum - */ -export const AuthPolicyState = { - Active: "Active", - Inactive: "Inactive", -} as const; - -/** - * @public - */ -export type AuthPolicyState = (typeof AuthPolicyState)[keyof typeof AuthPolicyState]; - -/** - * @public - * @enum - */ -export const AuthType = { - AWS_IAM: "AWS_IAM", - NONE: "NONE", -} as const; - -/** - * @public - */ -export type AuthType = (typeof AuthType)[keyof typeof AuthType]; - /** *

Describes an action that returns a custom HTTP response.

* @public @@ -851,30 +814,6 @@ export interface BatchUpdateRuleResponse { unsuccessful?: RuleUpdateFailure[] | undefined; } -/** - * @public - * @enum - */ -export const ListenerProtocol = { - /** - * Indicates HTTP protocol - */ - HTTP: "HTTP", - /** - * Indicates HTTPS protocol - */ - HTTPS: "HTTPS", - /** - * Indicates TLS_PASSTHROUGH protocol - */ - TLS_PASSTHROUGH: "TLS_PASSTHROUGH", -} as const; - -/** - * @public - */ -export type ListenerProtocol = (typeof ListenerProtocol)[keyof typeof ListenerProtocol]; - /** * @public */ @@ -975,47 +914,6 @@ export interface CreateListenerResponse { defaultAction?: RuleAction | undefined; } -/** - * @public - * @enum - */ -export const ProtocolType = { - /** - * Resource Configuration protocol type TCP - */ - TCP: "TCP", -} as const; - -/** - * @public - */ -export type ProtocolType = (typeof ProtocolType)[keyof typeof ProtocolType]; - -/** - * @public - * @enum - */ -export const ResourceConfigurationIpAddressType = { - /** - * Dualstack ip address type for dns type resource configs - */ - DUALSTACK: "DUALSTACK", - /** - * Ipv4 ip address type for dns type resource configs - */ - IPV4: "IPV4", - /** - * IPv6 ip address type for dns type resource configs - */ - IPV6: "IPV6", -} as const; - -/** - * @public - */ -export type ResourceConfigurationIpAddressType = - (typeof ResourceConfigurationIpAddressType)[keyof typeof ResourceConfigurationIpAddressType]; - /** *

The DNS name of the resource.

* @public @@ -1115,34 +1013,6 @@ export namespace ResourceConfigurationDefinition { } } -/** - * @public - * @enum - */ -export const ResourceConfigurationType = { - /** - * Resource Configuration of type ARN - */ - ARN: "ARN", - /** - * Resource Configuration of type CHILD - */ - CHILD: "CHILD", - /** - * Resource Configuration of type GROUP - */ - GROUP: "GROUP", - /** - * Resource Configuration of type SINGLE - */ - SINGLE: "SINGLE", -} as const; - -/** - * @public - */ -export type ResourceConfigurationType = (typeof ResourceConfigurationType)[keyof typeof ResourceConfigurationType]; - /** * @public */ @@ -1226,47 +1096,6 @@ export interface CreateResourceConfigurationRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const ResourceConfigurationStatus = { - /** - * Resource Configuration is active. - */ - ACTIVE: "ACTIVE", - /** - * Resource Configuration creation failed - */ - CREATE_FAILED: "CREATE_FAILED", - /** - * Resource Configuration creation in progress. - */ - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - /** - * Resource Configuration deletion failed. - */ - DELETE_FAILED: "DELETE_FAILED", - /** - * Resource Configuration deletion in progress - */ - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", - /** - * Resource Configuration update failed - */ - UPDATE_FAILED: "UPDATE_FAILED", - /** - * Resource Configuration update in progress. - */ - UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type ResourceConfigurationStatus = - (typeof ResourceConfigurationStatus)[keyof typeof ResourceConfigurationStatus]; - /** * @public */ @@ -1374,31 +1203,6 @@ export interface CreateResourceConfigurationResponse { domainVerificationArn?: string | undefined; } -/** - * @public - * @enum - */ -export const ResourceGatewayIpAddressType = { - /** - * Dualstack ip address type for resource gateway - */ - DUALSTACK: "DUALSTACK", - /** - * Ipv4 ip address type for resource gateway - */ - IPV4: "IPV4", - /** - * IPv6 ip address type for resource gateway - */ - IPV6: "IPV6", -} as const; - -/** - * @public - */ -export type ResourceGatewayIpAddressType = - (typeof ResourceGatewayIpAddressType)[keyof typeof ResourceGatewayIpAddressType]; - /** * @public */ @@ -1452,46 +1256,6 @@ export interface CreateResourceGatewayRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const ResourceGatewayStatus = { - /** - * Resource Gateway is active. - */ - ACTIVE: "ACTIVE", - /** - * Resource Gateway creation failed - */ - CREATE_FAILED: "CREATE_FAILED", - /** - * Resource Gateway creation in progress. - */ - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - /** - * Resource Gateway deletion failed. - */ - DELETE_FAILED: "DELETE_FAILED", - /** - * Resource Gateway deletion in progress - */ - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", - /** - * Reosurce Gateway update failed - */ - UPDATE_FAILED: "UPDATE_FAILED", - /** - * Resource Gateway update in progress. - */ - UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type ResourceGatewayStatus = (typeof ResourceGatewayStatus)[keyof typeof ResourceGatewayStatus]; - /** * @public */ @@ -1704,38 +1468,6 @@ export interface DnsEntry { hostedZoneId?: string | undefined; } -/** - * @public - * @enum - */ -export const ServiceStatus = { - /** - * Service is active. - */ - ACTIVE: "ACTIVE", - /** - * Service creation failed - */ - CREATE_FAILED: "CREATE_FAILED", - /** - * Service creation in progress. - */ - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - /** - * Service deletion failed. - */ - DELETE_FAILED: "DELETE_FAILED", - /** - * Service deletion in progress - */ - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type ServiceStatus = (typeof ServiceStatus)[keyof typeof ServiceStatus]; - /** * @public */ @@ -1906,43 +1638,6 @@ export interface CreateServiceNetworkResourceAssociationRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const ServiceNetworkResourceAssociationStatus = { - /** - * ServiceNetwork and Service association is active - */ - ACTIVE: "ACTIVE", - /** - * ServiceNetwork and Service association creation failed. - */ - CREATE_FAILED: "CREATE_FAILED", - /** - * ServiceNetwork and Service association creation in progress - */ - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - /** - * ServiceNetwork and Service association deletion failed - */ - DELETE_FAILED: "DELETE_FAILED", - /** - * ServiceNetwork and Service association deletion in progress - */ - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", - /** - * ServiceNetwork and Service association is partial - */ - PARTIAL: "PARTIAL", -} as const; - -/** - * @public - */ -export type ServiceNetworkResourceAssociationStatus = - (typeof ServiceNetworkResourceAssociationStatus)[keyof typeof ServiceNetworkResourceAssociationStatus]; - /** * @public */ @@ -2007,39 +1702,6 @@ export interface CreateServiceNetworkServiceAssociationRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const ServiceNetworkServiceAssociationStatus = { - /** - * ServiceNetwork and Service association is active - */ - ACTIVE: "ACTIVE", - /** - * ServiceNetwork and Service association creation failed. - */ - CREATE_FAILED: "CREATE_FAILED", - /** - * ServiceNetwork and Service association creation in progress - */ - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - /** - * ServiceNetwork and Service association deletion failed - */ - DELETE_FAILED: "DELETE_FAILED", - /** - * ServiceNetwork and Service association deletion in progress - */ - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type ServiceNetworkServiceAssociationStatus = - (typeof ServiceNetworkServiceAssociationStatus)[keyof typeof ServiceNetworkServiceAssociationStatus]; - /** * @public */ @@ -2081,22 +1743,6 @@ export interface CreateServiceNetworkServiceAssociationResponse { dnsEntry?: DnsEntry | undefined; } -/** - * @public - * @enum - */ -export const PrivateDnsPreference = { - ALL_DOMAINS: "ALL_DOMAINS", - SPECIFIED_DOMAINS_ONLY: "SPECIFIED_DOMAINS_ONLY", - VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS: "VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS", - VERIFIED_DOMAINS_ONLY: "VERIFIED_DOMAINS_ONLY", -} as const; - -/** - * @public - */ -export type PrivateDnsPreference = (typeof PrivateDnsPreference)[keyof typeof PrivateDnsPreference]; - /** *

The DNS configuration options.

* @public @@ -2162,47 +1808,6 @@ export interface CreateServiceNetworkVpcAssociationRequest { dnsOptions?: DnsOptions | undefined; } -/** - * @public - * @enum - */ -export const ServiceNetworkVpcAssociationStatus = { - /** - * ServiceNetwork and Vpc association is active - */ - ACTIVE: "ACTIVE", - /** - * ServiceNetwork and Vpc association creation failed. - */ - CREATE_FAILED: "CREATE_FAILED", - /** - * ServiceNetwork and Vpc association creation in progress - */ - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - /** - * ServiceNetwork and Vpc association deletion failed - */ - DELETE_FAILED: "DELETE_FAILED", - /** - * ServiceNetwork and Vpc association deletion in progress - */ - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", - /** - * ServiceNetwork and Vpc association update failed - */ - UPDATE_FAILED: "UPDATE_FAILED", - /** - * ServiceNetwork and Vpc association update in progress - */ - UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type ServiceNetworkVpcAssociationStatus = - (typeof ServiceNetworkVpcAssociationStatus)[keyof typeof ServiceNetworkVpcAssociationStatus]; - /** * @public */ @@ -2287,50 +1892,6 @@ export namespace Matcher { } } -/** - * @public - * @enum - */ -export const TargetGroupProtocol = { - /** - * Indicates HTTP protocol - */ - HTTP: "HTTP", - /** - * Indicates HTTPS protocol - */ - HTTPS: "HTTPS", - /** - * Indicates TCP protocol - */ - TCP: "TCP", -} as const; - -/** - * @public - */ -export type TargetGroupProtocol = (typeof TargetGroupProtocol)[keyof typeof TargetGroupProtocol]; - -/** - * @public - * @enum - */ -export const HealthCheckProtocolVersion = { - /** - * Indicates use of HTTP/1.1 to send requests to target - */ - HTTP1: "HTTP1", - /** - * Indicates use of HTTP/2 to send requests to target - */ - HTTP2: "HTTP2", -} as const; - -/** - * @public - */ -export type HealthCheckProtocolVersion = (typeof HealthCheckProtocolVersion)[keyof typeof HealthCheckProtocolVersion]; - /** *

Describes the health check configuration of a target group. Health check configurations aren't used for target groups of type LAMBDA or ALB.

* @public @@ -2397,71 +1958,6 @@ export interface HealthCheckConfig { matcher?: Matcher | undefined; } -/** - * @public - * @enum - */ -export const IpAddressType = { - /** - * Indicates IPv4 address type - */ - IPV4: "IPV4", - /** - * Indicates IPv6 address type - */ - IPV6: "IPV6", -} as const; - -/** - * @public - */ -export type IpAddressType = (typeof IpAddressType)[keyof typeof IpAddressType]; - -/** - * @public - * @enum - */ -export const LambdaEventStructureVersion = { - /** - * This is the default lambda event structure version - */ - V1: "V1", - /** - * Indicates use of lambda event structure version 2 - */ - V2: "V2", -} as const; - -/** - * @public - */ -export type LambdaEventStructureVersion = - (typeof LambdaEventStructureVersion)[keyof typeof LambdaEventStructureVersion]; - -/** - * @public - * @enum - */ -export const TargetGroupProtocolVersion = { - /** - * Indicates use of gRPC to send requests to target - */ - GRPC: "GRPC", - /** - * Indicates use of HTTP/1.1 to send requests to target - */ - HTTP1: "HTTP1", - /** - * Indicates use of HTTP/2 to send requests to target - */ - HTTP2: "HTTP2", -} as const; - -/** - * @public - */ -export type TargetGroupProtocolVersion = (typeof TargetGroupProtocolVersion)[keyof typeof TargetGroupProtocolVersion]; - /** *

Describes the configuration of a target group.

For more information, see Target groups in the Amazon VPC Lattice User Guide.

* @public @@ -2510,34 +2006,6 @@ export interface TargetGroupConfig { lambdaEventStructureVersion?: LambdaEventStructureVersion | undefined; } -/** - * @public - * @enum - */ -export const TargetGroupType = { - /** - * Indicates target in this target group is an ALB - */ - ALB: "ALB", - /** - * Indicates targets in this target group are EC2 instances - */ - INSTANCE: "INSTANCE", - /** - * Indicates targets in this target group are IP - */ - IP: "IP", - /** - * Indicates targets in this target group are Lambda - */ - LAMBDA: "LAMBDA", -} as const; - -/** - * @public - */ -export type TargetGroupType = (typeof TargetGroupType)[keyof typeof TargetGroupType]; - /** * @public */ @@ -2573,38 +2041,6 @@ export interface CreateTargetGroupRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const TargetGroupStatus = { - /** - * TargetGroup is active - */ - ACTIVE: "ACTIVE", - /** - * TargetGroup creation failed. - */ - CREATE_FAILED: "CREATE_FAILED", - /** - * TargetGroup creation in progress - */ - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - /** - * TargetGroup deletion failed - */ - DELETE_FAILED: "DELETE_FAILED", - /** - * TargetGroup deletion in progress - */ - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type TargetGroupStatus = (typeof TargetGroupStatus)[keyof typeof TargetGroupStatus]; - /** * @public */ @@ -3131,21 +2567,6 @@ export interface GetDomainVerificationRequest { domainVerificationIdentifier: string | undefined; } -/** - * @public - * @enum - */ -export const VerificationStatus = { - PENDING: "PENDING", - VERIFICATION_TIMED_OUT: "VERIFICATION_TIMED_OUT", - VERIFIED: "VERIFIED", -} as const; - -/** - * @public - */ -export type VerificationStatus = (typeof VerificationStatus)[keyof typeof VerificationStatus]; - /** *

Configuration for TXT record-based domain verification method.

* @public @@ -5860,42 +5281,6 @@ export interface ListTargetsRequest { targets?: Target[] | undefined; } -/** - * @public - * @enum - */ -export const TargetStatus = { - /** - * The target is deregistering and connection draining is in process. - */ - DRAINING: "DRAINING", - /** - * The target is healthy. - */ - HEALTHY: "HEALTHY", - /** - * The initial health check is in progress. - */ - INITIAL: "INITIAL", - /** - * Health checks are disabled. - */ - UNAVAILABLE: "UNAVAILABLE", - /** - * The target failed the health check. - */ - UNHEALTHY: "UNHEALTHY", - /** - * The target group is not used in a listener rule. - */ - UNUSED: "UNUSED", -} as const; - -/** - * @public - */ -export type TargetStatus = (typeof TargetStatus)[keyof typeof TargetStatus]; - /** *

Summary information about a target.

* @public diff --git a/clients/client-wisdom/src/index.ts b/clients/client-wisdom/src/index.ts index 1ed8c8edad6d..47aae6006a74 100644 --- a/clients/client-wisdom/src/index.ts +++ b/clients/client-wisdom/src/index.ts @@ -16,6 +16,7 @@ export type { WisdomExtensionConfiguration } from "./extensionConfiguration"; export * from "./commands"; export * from "./pagination"; +export * from "./models/enums"; export * from "./models/errors"; export type * from "./models/models_0"; diff --git a/clients/client-wisdom/src/models/enums.ts b/clients/client-wisdom/src/models/enums.ts new file mode 100644 index 000000000000..6706921252fa --- /dev/null +++ b/clients/client-wisdom/src/models/enums.ts @@ -0,0 +1,280 @@ +// smithy-typescript generated code +/** + * @public + * @enum + */ +export const AssociationType = { + KNOWLEDGE_BASE: "KNOWLEDGE_BASE", +} as const; +/** + * @public + */ +export type AssociationType = (typeof AssociationType)[keyof typeof AssociationType]; + +/** + * @public + * @enum + */ +export const AssistantType = { + AGENT: "AGENT", +} as const; +/** + * @public + */ +export type AssistantType = (typeof AssistantType)[keyof typeof AssistantType]; + +/** + * @public + * @enum + */ +export const AssistantStatus = { + ACTIVE: "ACTIVE", + CREATE_FAILED: "CREATE_FAILED", + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + DELETED: "DELETED", + DELETE_FAILED: "DELETE_FAILED", + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", +} as const; +/** + * @public + */ +export type AssistantStatus = (typeof AssistantStatus)[keyof typeof AssistantStatus]; + +/** + * @public + * @enum + */ +export const RelevanceLevel = { + HIGH: "HIGH", + LOW: "LOW", + MEDIUM: "MEDIUM", +} as const; +/** + * @public + */ +export type RelevanceLevel = (typeof RelevanceLevel)[keyof typeof RelevanceLevel]; + +/** + * @public + * @enum + */ +export const RecommendationType = { + KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT", +} as const; +/** + * @public + */ +export type RecommendationType = (typeof RecommendationType)[keyof typeof RecommendationType]; + +/** + * @public + * @enum + */ +export const RecommendationSourceType = { + ISSUE_DETECTION: "ISSUE_DETECTION", + OTHER: "OTHER", + RULE_EVALUATION: "RULE_EVALUATION", +} as const; +/** + * @public + */ +export type RecommendationSourceType = (typeof RecommendationSourceType)[keyof typeof RecommendationSourceType]; + +/** + * @public + * @enum + */ +export const RecommendationTriggerType = { + QUERY: "QUERY", +} as const; +/** + * @public + */ +export type RecommendationTriggerType = (typeof RecommendationTriggerType)[keyof typeof RecommendationTriggerType]; + +/** + * @public + * @enum + */ +export const FilterField = { + NAME: "NAME", +} as const; +/** + * @public + */ +export type FilterField = (typeof FilterField)[keyof typeof FilterField]; + +/** + * @public + * @enum + */ +export const FilterOperator = { + EQUALS: "EQUALS", +} as const; +/** + * @public + */ +export type FilterOperator = (typeof FilterOperator)[keyof typeof FilterOperator]; + +/** + * @public + * @enum + */ +export const ContentStatus = { + ACTIVE: "ACTIVE", + CREATE_FAILED: "CREATE_FAILED", + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + DELETED: "DELETED", + DELETE_FAILED: "DELETE_FAILED", + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", + UPDATE_FAILED: "UPDATE_FAILED", +} as const; +/** + * @public + */ +export type ContentStatus = (typeof ContentStatus)[keyof typeof ContentStatus]; + +/** + * @public + * @enum + */ +export const KnowledgeBaseType = { + CUSTOM: "CUSTOM", + EXTERNAL: "EXTERNAL", + QUICK_RESPONSES: "QUICK_RESPONSES", +} as const; +/** + * @public + */ +export type KnowledgeBaseType = (typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType]; + +/** + * @public + * @enum + */ +export const KnowledgeBaseStatus = { + ACTIVE: "ACTIVE", + CREATE_FAILED: "CREATE_FAILED", + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + DELETED: "DELETED", + DELETE_FAILED: "DELETE_FAILED", + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", +} as const; +/** + * @public + */ +export type KnowledgeBaseStatus = (typeof KnowledgeBaseStatus)[keyof typeof KnowledgeBaseStatus]; + +/** + * @public + * @enum + */ +export const QuickResponseStatus = { + CREATED: "CREATED", + CREATE_FAILED: "CREATE_FAILED", + CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", + DELETED: "DELETED", + DELETE_FAILED: "DELETE_FAILED", + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", + UPDATE_FAILED: "UPDATE_FAILED", + UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS", +} as const; +/** + * @public + */ +export type QuickResponseStatus = (typeof QuickResponseStatus)[keyof typeof QuickResponseStatus]; + +/** + * @public + * @enum + */ +export const ExternalSource = { + AMAZON_CONNECT: "AMAZON_CONNECT", +} as const; +/** + * @public + */ +export type ExternalSource = (typeof ExternalSource)[keyof typeof ExternalSource]; + +/** + * @public + * @enum + */ +export const ImportJobType = { + QUICK_RESPONSES: "QUICK_RESPONSES", +} as const; +/** + * @public + */ +export type ImportJobType = (typeof ImportJobType)[keyof typeof ImportJobType]; + +/** + * @public + * @enum + */ +export const ImportJobStatus = { + COMPLETE: "COMPLETE", + DELETED: "DELETED", + DELETE_FAILED: "DELETE_FAILED", + DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", + FAILED: "FAILED", + START_IN_PROGRESS: "START_IN_PROGRESS", +} as const; +/** + * @public + */ +export type ImportJobStatus = (typeof ImportJobStatus)[keyof typeof ImportJobStatus]; + +/** + * @public + * @enum + */ +export const QuickResponseFilterOperator = { + EQUALS: "EQUALS", + PREFIX: "PREFIX", +} as const; +/** + * @public + */ +export type QuickResponseFilterOperator = + (typeof QuickResponseFilterOperator)[keyof typeof QuickResponseFilterOperator]; + +/** + * @public + * @enum + */ +export const Order = { + ASC: "ASC", + DESC: "DESC", +} as const; +/** + * @public + */ +export type Order = (typeof Order)[keyof typeof Order]; + +/** + * @public + * @enum + */ +export const QuickResponseQueryOperator = { + CONTAINS: "CONTAINS", + CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX", +} as const; +/** + * @public + */ +export type QuickResponseQueryOperator = (typeof QuickResponseQueryOperator)[keyof typeof QuickResponseQueryOperator]; + +/** + * @public + * @enum + */ +export const Priority = { + HIGH: "HIGH", + LOW: "LOW", + MEDIUM: "MEDIUM", +} as const; +/** + * @public + */ +export type Priority = (typeof Priority)[keyof typeof Priority]; diff --git a/clients/client-wisdom/src/models/models_0.ts b/clients/client-wisdom/src/models/models_0.ts index fe1f46929f19..352d6e83a462 100644 --- a/clients/client-wisdom/src/models/models_0.ts +++ b/clients/client-wisdom/src/models/models_0.ts @@ -1,4 +1,27 @@ // smithy-typescript generated code +import { + AssistantStatus, + AssistantType, + AssociationType, + ContentStatus, + ExternalSource, + FilterField, + FilterOperator, + ImportJobStatus, + ImportJobType, + KnowledgeBaseStatus, + KnowledgeBaseType, + Order, + Priority, + QuickResponseFilterOperator, + QuickResponseQueryOperator, + QuickResponseStatus, + RecommendationSourceType, + RecommendationTriggerType, + RecommendationType, + RelevanceLevel, +} from "./enums"; + /** *

Configuration information for Amazon AppIntegrations to automatically ingest content.

* @public @@ -116,19 +139,6 @@ export namespace AssistantAssociationInputData { } } -/** - * @public - * @enum - */ -export const AssociationType = { - KNOWLEDGE_BASE: "KNOWLEDGE_BASE", -} as const; - -/** - * @public - */ -export type AssociationType = (typeof AssociationType)[keyof typeof AssociationType]; - /** * @public */ @@ -437,19 +447,6 @@ export interface ServerSideEncryptionConfiguration { kmsKeyId?: string | undefined; } -/** - * @public - * @enum - */ -export const AssistantType = { - AGENT: "AGENT", -} as const; - -/** - * @public - */ -export type AssistantType = (typeof AssistantType)[keyof typeof AssistantType]; - /** * @public */ @@ -514,24 +511,6 @@ export interface AssistantIntegrationConfiguration { topicIntegrationArn?: string | undefined; } -/** - * @public - * @enum - */ -export const AssistantStatus = { - ACTIVE: "ACTIVE", - CREATE_FAILED: "CREATE_FAILED", - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - DELETED: "DELETED", - DELETE_FAILED: "DELETE_FAILED", - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type AssistantStatus = (typeof AssistantStatus)[keyof typeof AssistantStatus]; - /** *

The assistant data.

* @public @@ -773,34 +752,6 @@ export interface Document { excerpt?: DocumentText | undefined; } -/** - * @public - * @enum - */ -export const RelevanceLevel = { - HIGH: "HIGH", - LOW: "LOW", - MEDIUM: "MEDIUM", -} as const; - -/** - * @public - */ -export type RelevanceLevel = (typeof RelevanceLevel)[keyof typeof RelevanceLevel]; - -/** - * @public - * @enum - */ -export const RecommendationType = { - KNOWLEDGE_CONTENT: "KNOWLEDGE_CONTENT", -} as const; - -/** - * @public - */ -export type RecommendationType = (typeof RecommendationType)[keyof typeof RecommendationType]; - /** *

Information about the recommendation.

* @public @@ -888,34 +839,6 @@ export namespace RecommendationTriggerData { } } -/** - * @public - * @enum - */ -export const RecommendationSourceType = { - ISSUE_DETECTION: "ISSUE_DETECTION", - OTHER: "OTHER", - RULE_EVALUATION: "RULE_EVALUATION", -} as const; - -/** - * @public - */ -export type RecommendationSourceType = (typeof RecommendationSourceType)[keyof typeof RecommendationSourceType]; - -/** - * @public - * @enum - */ -export const RecommendationTriggerType = { - QUERY: "QUERY", -} as const; - -/** - * @public - */ -export type RecommendationTriggerType = (typeof RecommendationTriggerType)[keyof typeof RecommendationTriggerType]; - /** *

A recommendation trigger provides context on the event that produced the referenced * recommendations. Recommendations are only referenced in recommendationIds by a @@ -1213,32 +1136,6 @@ export interface QueryAssistantResponse { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const FilterField = { - NAME: "NAME", -} as const; - -/** - * @public - */ -export type FilterField = (typeof FilterField)[keyof typeof FilterField]; - -/** - * @public - * @enum - */ -export const FilterOperator = { - EQUALS: "EQUALS", -} as const; - -/** - * @public - */ -export type FilterOperator = (typeof FilterOperator)[keyof typeof FilterOperator]; - /** *

A search filter.

* @public @@ -1593,25 +1490,6 @@ export interface CreateContentRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const ContentStatus = { - ACTIVE: "ACTIVE", - CREATE_FAILED: "CREATE_FAILED", - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - DELETED: "DELETED", - DELETE_FAILED: "DELETE_FAILED", - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", - UPDATE_FAILED: "UPDATE_FAILED", -} as const; - -/** - * @public - */ -export type ContentStatus = (typeof ContentStatus)[keyof typeof ContentStatus]; - /** *

Information about the content.

* @public @@ -1986,21 +1864,6 @@ export interface UpdateContentResponse { content?: ContentData | undefined; } -/** - * @public - * @enum - */ -export const KnowledgeBaseType = { - CUSTOM: "CUSTOM", - EXTERNAL: "EXTERNAL", - QUICK_RESPONSES: "QUICK_RESPONSES", -} as const; - -/** - * @public - */ -export type KnowledgeBaseType = (typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType]; - /** *

Information about how to render the content.

* @public @@ -2134,24 +1997,6 @@ export interface CreateKnowledgeBaseRequest { tags?: Record | undefined; } -/** - * @public - * @enum - */ -export const KnowledgeBaseStatus = { - ACTIVE: "ACTIVE", - CREATE_FAILED: "CREATE_FAILED", - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - DELETED: "DELETED", - DELETE_FAILED: "DELETE_FAILED", - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type KnowledgeBaseStatus = (typeof KnowledgeBaseStatus)[keyof typeof KnowledgeBaseStatus]; - /** *

Information about the knowledge base.

* @public @@ -2464,26 +2309,6 @@ export interface QuickResponseContents { markdown?: QuickResponseContentProvider | undefined; } -/** - * @public - * @enum - */ -export const QuickResponseStatus = { - CREATED: "CREATED", - CREATE_FAILED: "CREATE_FAILED", - CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS", - DELETED: "DELETED", - DELETE_FAILED: "DELETE_FAILED", - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", - UPDATE_FAILED: "UPDATE_FAILED", - UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type QuickResponseStatus = (typeof QuickResponseStatus)[keyof typeof QuickResponseStatus]; - /** *

Information about the quick response.

* @public @@ -2681,19 +2506,6 @@ export interface DeleteQuickResponseRequest { */ export interface DeleteQuickResponseResponse {} -/** - * @public - * @enum - */ -export const ExternalSource = { - AMAZON_CONNECT: "AMAZON_CONNECT", -} as const; - -/** - * @public - */ -export type ExternalSource = (typeof ExternalSource)[keyof typeof ExternalSource]; - /** *

The configuration information of the external data source.

* @public @@ -2729,37 +2541,6 @@ export interface GetImportJobRequest { knowledgeBaseId: string | undefined; } -/** - * @public - * @enum - */ -export const ImportJobType = { - QUICK_RESPONSES: "QUICK_RESPONSES", -} as const; - -/** - * @public - */ -export type ImportJobType = (typeof ImportJobType)[keyof typeof ImportJobType]; - -/** - * @public - * @enum - */ -export const ImportJobStatus = { - COMPLETE: "COMPLETE", - DELETED: "DELETED", - DELETE_FAILED: "DELETE_FAILED", - DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS", - FAILED: "FAILED", - START_IN_PROGRESS: "START_IN_PROGRESS", -} as const; - -/** - * @public - */ -export type ImportJobStatus = (typeof ImportJobStatus)[keyof typeof ImportJobStatus]; - /** *

Summary information about the import job.

* @public @@ -3444,21 +3225,6 @@ export interface SearchContentResponse { nextToken?: string | undefined; } -/** - * @public - * @enum - */ -export const QuickResponseFilterOperator = { - EQUALS: "EQUALS", - PREFIX: "PREFIX", -} as const; - -/** - * @public - */ -export type QuickResponseFilterOperator = - (typeof QuickResponseFilterOperator)[keyof typeof QuickResponseFilterOperator]; - /** *

The quick response fields to filter the quick response query results by.

*

The following is the list of supported field names.

@@ -3528,20 +3294,6 @@ export interface QuickResponseFilterField { includeNoExistence?: boolean | undefined; } -/** - * @public - * @enum - */ -export const Order = { - ASC: "ASC", - DESC: "DESC", -} as const; - -/** - * @public - */ -export type Order = (typeof Order)[keyof typeof Order]; - /** *

The quick response fields to order the quick response query results by.

*

The following is the list of supported field names.

@@ -3599,35 +3351,6 @@ export interface QuickResponseOrderField { order?: Order | undefined; } -/** - * @public - * @enum - */ -export const QuickResponseQueryOperator = { - CONTAINS: "CONTAINS", - CONTAINS_AND_PREFIX: "CONTAINS_AND_PREFIX", -} as const; - -/** - * @public - */ -export type QuickResponseQueryOperator = (typeof QuickResponseQueryOperator)[keyof typeof QuickResponseQueryOperator]; - -/** - * @public - * @enum - */ -export const Priority = { - HIGH: "HIGH", - LOW: "LOW", - MEDIUM: "MEDIUM", -} as const; - -/** - * @public - */ -export type Priority = (typeof Priority)[keyof typeof Priority]; - /** *

The quick response fields to query quick responses by.

*

The following is the list of supported field names.

diff --git a/clients/client-workspaces-web/src/models/enums.ts b/clients/client-workspaces-web/src/models/enums.ts index 3516e567913e..e43d5c59ed3d 100644 --- a/clients/client-workspaces-web/src/models/enums.ts +++ b/clients/client-workspaces-web/src/models/enums.ts @@ -1,4 +1,32 @@ // smithy-typescript generated code +/** + * @public + * @enum + */ +export const ValidationExceptionReason = { + CANNOT_PARSE: "cannotParse", + FIELD_VALIDATION_FAILED: "fieldValidationFailed", + OTHER: "other", + UNKNOWN_OPERATION: "unknownOperation", +} as const; +/** + * @public + */ +export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; + +/** + * @public + * @enum + */ +export const AuthenticationType = { + IAM_IDENTITY_CENTER: "IAM_Identity_Center", + STANDARD: "Standard", +} as const; +/** + * @public + */ +export type AuthenticationType = (typeof AuthenticationType)[keyof typeof AuthenticationType]; + /** * @public * @enum @@ -37,6 +65,18 @@ export const Category = { */ export type Category = (typeof Category)[keyof typeof Category]; +/** + * @public + * @enum + */ +export const RedactionPlaceHolderType = { + CUSTOM_TEXT: "CustomText", +} as const; +/** + * @public + */ +export type RedactionPlaceHolderType = (typeof RedactionPlaceHolderType)[keyof typeof RedactionPlaceHolderType]; + /** * @public * @enum @@ -50,6 +90,23 @@ export const SessionStatus = { */ export type SessionStatus = (typeof SessionStatus)[keyof typeof SessionStatus]; +/** + * @public + * @enum + */ +export const IdentityProviderType = { + Facebook: "Facebook", + Google: "Google", + LoginWithAmazon: "LoginWithAmazon", + OIDC: "OIDC", + SAML: "SAML", + SignInWithApple: "SignInWithApple", +} as const; +/** + * @public + */ +export type IdentityProviderType = (typeof IdentityProviderType)[keyof typeof IdentityProviderType]; + /** * @public * @enum @@ -63,6 +120,58 @@ export const SessionSortBy = { */ export type SessionSortBy = (typeof SessionSortBy)[keyof typeof SessionSortBy]; +/** + * @public + * @enum + */ +export const BrowserType = { + CHROME: "Chrome", +} as const; +/** + * @public + */ +export type BrowserType = (typeof BrowserType)[keyof typeof BrowserType]; + +/** + * @public + * @enum + */ +export const _InstanceType = { + STANDARD_LARGE: "standard.large", + STANDARD_REGULAR: "standard.regular", + STANDARD_XLARGE: "standard.xlarge", +} as const; +/** + * @public + */ +export type _InstanceType = (typeof _InstanceType)[keyof typeof _InstanceType]; + +/** + * @public + * @enum + */ +export const PortalStatus = { + ACTIVE: "Active", + INCOMPLETE: "Incomplete", + PENDING: "Pending", +} as const; +/** + * @public + */ +export type PortalStatus = (typeof PortalStatus)[keyof typeof PortalStatus]; + +/** + * @public + * @enum + */ +export const RendererType = { + APPSTREAM: "AppStream", +} as const; +/** + * @public + */ +export type RendererType = (typeof RendererType)[keyof typeof RendererType]; + /** * @public * @enum @@ -116,3 +225,77 @@ export const LogFileFormat = { * @public */ export type LogFileFormat = (typeof LogFileFormat)[keyof typeof LogFileFormat]; + +/** + * @public + * @enum + */ +export const EnabledType = { + DISABLED: "Disabled", + ENABLED: "Enabled", +} as const; +/** + * @public + */ +export type EnabledType = (typeof EnabledType)[keyof typeof EnabledType]; + +/** + * @public + * @enum + */ +export const ToolbarItem = { + DUAL_MONITOR: "DualMonitor", + FULL_SCREEN: "FullScreen", + MICROPHONE: "Microphone", + WEBCAM: "Webcam", + WINDOWS: "Windows", +} as const; +/** + * @public + */ +export type ToolbarItem = (typeof ToolbarItem)[keyof typeof ToolbarItem]; + +/** + * @public + * @enum + */ +export const MaxDisplayResolution = { + RESOLUTION_1080P: "size1920X1080", + RESOLUTION_1440P: "size2560X1440", + RESOLUTION_1440P_ULTRA_WIDE: "size3440X1440", + RESOLUTION_600P: "size800X600", + RESOLUTION_720P: "size1280X720", + RESOLUTION_768P: "size1024X768", + RESOLUTION_DCI_4K: "size4096X2160", + RESOLUTION_UHD_4K: "size3840X2160", +} as const; +/** + * @public + */ +export type MaxDisplayResolution = (typeof MaxDisplayResolution)[keyof typeof MaxDisplayResolution]; + +/** + * @public + * @enum + */ +export const ToolbarType = { + DOCKED: "Docked", + FLOATING: "Floating", +} as const; +/** + * @public + */ +export type ToolbarType = (typeof ToolbarType)[keyof typeof ToolbarType]; + +/** + * @public + * @enum + */ +export const VisualMode = { + DARK: "Dark", + LIGHT: "Light", +} as const; +/** + * @public + */ +export type VisualMode = (typeof VisualMode)[keyof typeof VisualMode]; diff --git a/clients/client-workspaces-web/src/models/errors.ts b/clients/client-workspaces-web/src/models/errors.ts index 1022b5c1cf9e..6c05f6b4bd5b 100644 --- a/clients/client-workspaces-web/src/models/errors.ts +++ b/clients/client-workspaces-web/src/models/errors.ts @@ -1,7 +1,8 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { ValidationExceptionField, ValidationExceptionReason } from "./models_0"; +import { ValidationExceptionReason } from "./enums"; +import { ValidationExceptionField } from "./models_0"; import { WorkSpacesWebServiceException as __BaseException } from "./WorkSpacesWebServiceException"; /** diff --git a/clients/client-workspaces-web/src/models/models_0.ts b/clients/client-workspaces-web/src/models/models_0.ts index 45e5ede6b1b0..999aab8bb304 100644 --- a/clients/client-workspaces-web/src/models/models_0.ts +++ b/clients/client-workspaces-web/src/models/models_0.ts @@ -1,5 +1,24 @@ // smithy-typescript generated code -import { Category, Event, FolderStructure, LogFileFormat, SessionSortBy, SessionStatus } from "./enums"; +import { + _InstanceType, + AuthenticationType, + BrowserType, + Category, + EnabledType, + Event, + FolderStructure, + IdentityProviderType, + LogFileFormat, + MaxDisplayResolution, + PortalStatus, + RedactionPlaceHolderType, + RendererType, + SessionSortBy, + SessionStatus, + ToolbarItem, + ToolbarType, + VisualMode, +} from "./enums"; /** * @public @@ -53,22 +72,6 @@ export interface ValidationExceptionField { message: string | undefined; } -/** - * @public - * @enum - */ -export const ValidationExceptionReason = { - CANNOT_PARSE: "cannotParse", - FIELD_VALIDATION_FAILED: "fieldValidationFailed", - OTHER: "other", - UNKNOWN_OPERATION: "unknownOperation", -} as const; - -/** - * @public - */ -export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason]; - /** * @public */ @@ -307,20 +310,6 @@ export interface AssociateUserSettingsResponse { userSettingsArn: string | undefined; } -/** - * @public - * @enum - */ -export const AuthenticationType = { - IAM_IDENTITY_CENTER: "IAM_Identity_Center", - STANDARD: "Standard", -} as const; - -/** - * @public - */ -export type AuthenticationType = (typeof AuthenticationType)[keyof typeof AuthenticationType]; - /** *

The tag.

* @public @@ -629,19 +618,6 @@ export interface CustomPattern { keywordRegex?: string | undefined; } -/** - * @public - * @enum - */ -export const RedactionPlaceHolderType = { - CUSTOM_TEXT: "CustomText", -} as const; - -/** - * @public - */ -export type RedactionPlaceHolderType = (typeof RedactionPlaceHolderType)[keyof typeof RedactionPlaceHolderType]; - /** *

The redaction placeholder that will replace the redacted text in session.

* @public @@ -1117,24 +1093,6 @@ export interface GetSessionResponse { session?: Session | undefined; } -/** - * @public - * @enum - */ -export const IdentityProviderType = { - Facebook: "Facebook", - Google: "Google", - LoginWithAmazon: "LoginWithAmazon", - OIDC: "OIDC", - SAML: "SAML", - SignInWithApple: "SignInWithApple", -} as const; - -/** - * @public - */ -export type IdentityProviderType = (typeof IdentityProviderType)[keyof typeof IdentityProviderType]; - /** * @public */ @@ -2538,34 +2496,6 @@ export interface UpdateNetworkSettingsResponse { networkSettings: NetworkSettings | undefined; } -/** - * @public - * @enum - */ -export const BrowserType = { - CHROME: "Chrome", -} as const; - -/** - * @public - */ -export type BrowserType = (typeof BrowserType)[keyof typeof BrowserType]; - -/** - * @public - * @enum - */ -export const _InstanceType = { - STANDARD_LARGE: "standard.large", - STANDARD_REGULAR: "standard.regular", - STANDARD_XLARGE: "standard.xlarge", -} as const; - -/** - * @public - */ -export type _InstanceType = (typeof _InstanceType)[keyof typeof _InstanceType]; - /** * @public */ @@ -2808,34 +2738,6 @@ export interface GetPortalRequest { portalArn: string | undefined; } -/** - * @public - * @enum - */ -export const PortalStatus = { - ACTIVE: "Active", - INCOMPLETE: "Incomplete", - PENDING: "Pending", -} as const; - -/** - * @public - */ -export type PortalStatus = (typeof PortalStatus)[keyof typeof PortalStatus]; - -/** - * @public - * @enum - */ -export const RendererType = { - APPSTREAM: "AppStream", -} as const; - -/** - * @public - */ -export type RendererType = (typeof RendererType)[keyof typeof RendererType]; - /** *

The web portal.

* @public @@ -4242,85 +4144,6 @@ export interface CookieSynchronizationConfiguration { blocklist?: CookieSpecification[] | undefined; } -/** - * @public - * @enum - */ -export const EnabledType = { - DISABLED: "Disabled", - ENABLED: "Enabled", -} as const; - -/** - * @public - */ -export type EnabledType = (typeof EnabledType)[keyof typeof EnabledType]; - -/** - * @public - * @enum - */ -export const ToolbarItem = { - DUAL_MONITOR: "DualMonitor", - FULL_SCREEN: "FullScreen", - MICROPHONE: "Microphone", - WEBCAM: "Webcam", - WINDOWS: "Windows", -} as const; - -/** - * @public - */ -export type ToolbarItem = (typeof ToolbarItem)[keyof typeof ToolbarItem]; - -/** - * @public - * @enum - */ -export const MaxDisplayResolution = { - RESOLUTION_1080P: "size1920X1080", - RESOLUTION_1440P: "size2560X1440", - RESOLUTION_1440P_ULTRA_WIDE: "size3440X1440", - RESOLUTION_600P: "size800X600", - RESOLUTION_720P: "size1280X720", - RESOLUTION_768P: "size1024X768", - RESOLUTION_DCI_4K: "size4096X2160", - RESOLUTION_UHD_4K: "size3840X2160", -} as const; - -/** - * @public - */ -export type MaxDisplayResolution = (typeof MaxDisplayResolution)[keyof typeof MaxDisplayResolution]; - -/** - * @public - * @enum - */ -export const ToolbarType = { - DOCKED: "Docked", - FLOATING: "Floating", -} as const; - -/** - * @public - */ -export type ToolbarType = (typeof ToolbarType)[keyof typeof ToolbarType]; - -/** - * @public - * @enum - */ -export const VisualMode = { - DARK: "Dark", - LIGHT: "Light", -} as const; - -/** - * @public - */ -export type VisualMode = (typeof VisualMode)[keyof typeof VisualMode]; - /** *

The configuration of the toolbar. This allows administrators to select the toolbar type and visual mode, set maximum display resolution for sessions, and choose which items are visible to end users during their sessions. If administrators do not modify these settings, end users retain control over their toolbar preferences.

* @public diff --git a/packages/nested-clients/src/submodules/sts/commands/AssumeRoleCommand.ts b/packages/nested-clients/src/submodules/sts/commands/AssumeRoleCommand.ts index ba0a3dde0744..0fcadd48c64a 100644 --- a/packages/nested-clients/src/submodules/sts/commands/AssumeRoleCommand.ts +++ b/packages/nested-clients/src/submodules/sts/commands/AssumeRoleCommand.ts @@ -200,9 +200,8 @@ export interface AssumeRoleCommandOutput extends AssumeRoleResponse, __MetadataB * @throws {@link RegionDisabledException} (client fault) *

STS is not activated in the requested region for the account that is being asked to * generate credentials. The account administrator must use the IAM console to activate - * STS in that region. For more information, see Activating and - * Deactivating STS in an Amazon Web Services Region in the IAM User - * Guide.

+ * STS in that region. For more information, see Activating and Deactivating STS in an Amazon Web Services Region in the IAM + * User Guide.

* * @throws {@link STSServiceException} *

Base exception class for all service exceptions from STS service.

diff --git a/packages/nested-clients/src/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.ts b/packages/nested-clients/src/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.ts index d2d55076d86f..99dd2018c54b 100644 --- a/packages/nested-clients/src/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.ts +++ b/packages/nested-clients/src/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.ts @@ -233,9 +233,8 @@ export interface AssumeRoleWithWebIdentityCommandOutput extends AssumeRoleWithWe * @throws {@link RegionDisabledException} (client fault) *

STS is not activated in the requested region for the account that is being asked to * generate credentials. The account administrator must use the IAM console to activate - * STS in that region. For more information, see Activating and - * Deactivating STS in an Amazon Web Services Region in the IAM User - * Guide.

+ * STS in that region. For more information, see Activating and Deactivating STS in an Amazon Web Services Region in the IAM + * User Guide.

* * @throws {@link STSServiceException} *

Base exception class for all service exceptions from STS service.

diff --git a/packages/nested-clients/src/submodules/sts/models/errors.ts b/packages/nested-clients/src/submodules/sts/models/errors.ts index cd1489a2dafb..846c31116c67 100644 --- a/packages/nested-clients/src/submodules/sts/models/errors.ts +++ b/packages/nested-clients/src/submodules/sts/models/errors.ts @@ -76,9 +76,8 @@ export class PackedPolicyTooLargeException extends __BaseException { /** *

STS is not activated in the requested region for the account that is being asked to * generate credentials. The account administrator must use the IAM console to activate - * STS in that region. For more information, see Activating and - * Deactivating STS in an Amazon Web Services Region in the IAM User - * Guide.

+ * STS in that region. For more information, see Activating and Deactivating STS in an Amazon Web Services Region in the IAM + * User Guide.

* @public */ export class RegionDisabledException extends __BaseException { diff --git a/private/aws-restjson-validation-server/src/models/enums.ts b/private/aws-restjson-validation-server/src/models/enums.ts index 14e9cb50f700..f1a08a899379 100644 --- a/private/aws-restjson-validation-server/src/models/enums.ts +++ b/private/aws-restjson-validation-server/src/models/enums.ts @@ -36,6 +36,20 @@ export const EnumString = { */ export type EnumString = (typeof EnumString)[keyof typeof EnumString]; +/** + * @public + * @enum + */ +export const EnumTraitString = { + ABC: "abc", + DEF: "def", + GHI: "ghi", +} as const; +/** + * @public + */ +export type EnumTraitString = (typeof EnumTraitString)[keyof typeof EnumTraitString]; + /** * @public * @enum diff --git a/private/aws-restjson-validation-server/src/models/models_0.ts b/private/aws-restjson-validation-server/src/models/models_0.ts index 5b70901747e4..18368cc65de6 100644 --- a/private/aws-restjson-validation-server/src/models/models_0.ts +++ b/private/aws-restjson-validation-server/src/models/models_0.ts @@ -18,7 +18,7 @@ import { } from "@aws-smithy/server-common"; import { SENSITIVE_STRING } from "@smithy/smithy-client"; -import { EnumString, FooEnum, IntegerEnum, RecursiveEnumString } from "./enums"; +import { EnumString, EnumTraitString, FooEnum, IntegerEnum, RecursiveEnumString } from "./enums"; /** * @public @@ -52,20 +52,6 @@ export namespace GreetingStruct { }; } -/** - * @public - * @enum - */ -export const EnumTraitString = { - ABC: "abc", - DEF: "def", - GHI: "ghi", -} as const; -/** - * @public - */ -export type EnumTraitString = (typeof EnumTraitString)[keyof typeof EnumTraitString]; - /** * @public */ diff --git a/scripts/generate-clients/config.js b/scripts/generate-clients/config.js index 4561d927c07d..8b18d6e6fd2d 100644 --- a/scripts/generate-clients/config.js +++ b/scripts/generate-clients/config.js @@ -2,8 +2,8 @@ module.exports = { // Use full commit hash as we explicitly fetch it. // Comparison link (update with previous hash): - // https://github.com/smithy-lang/smithy-typescript/compare/7be577c4d67a62cb304470718cc11222c991bcbf...775cd5b119247e544cfa1c51feb89b9e18805725 - SMITHY_TS_COMMIT: "775cd5b119247e544cfa1c51feb89b9e18805725", + // https://github.com/smithy-lang/smithy-typescript/compare/775cd5b119247e544cfa1c51feb89b9e18805725...f8bed213e93a537ea1e26cc0a1dba8d45501bf3d + SMITHY_TS_COMMIT: "f8bed213e93a537ea1e26cc0a1dba8d45501bf3d", }; if (module.exports.SMITHY_TS_COMMIT.length < 40) {