@aws-sdk/client-kms 3.35.0 → 3.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +8 -7
- package/dist-cjs/KMS.js +8 -8
- package/dist-cjs/KMSClient.js +8 -8
- package/dist-cjs/commands/CancelKeyDeletionCommand.js +6 -5
- package/dist-cjs/commands/ConnectCustomKeyStoreCommand.js +3 -4
- package/dist-cjs/commands/CreateAliasCommand.js +11 -8
- package/dist-cjs/commands/CreateCustomKeyStoreCommand.js +0 -1
- package/dist-cjs/commands/CreateGrantCommand.js +14 -12
- package/dist-cjs/commands/CreateKeyCommand.js +16 -15
- package/dist-cjs/commands/DecryptCommand.js +24 -22
- package/dist-cjs/commands/DeleteAliasCommand.js +11 -8
- package/dist-cjs/commands/DeleteCustomKeyStoreCommand.js +10 -12
- package/dist-cjs/commands/DeleteImportedKeyMaterialCommand.js +5 -7
- package/dist-cjs/commands/DescribeCustomKeyStoresCommand.js +4 -5
- package/dist-cjs/commands/DescribeKeyCommand.js +12 -11
- package/dist-cjs/commands/DisableKeyCommand.js +5 -5
- package/dist-cjs/commands/DisableKeyRotationCommand.js +2 -2
- package/dist-cjs/commands/DisconnectCustomKeyStoreCommand.js +6 -5
- package/dist-cjs/commands/EnableKeyCommand.js +4 -3
- package/dist-cjs/commands/EnableKeyRotationCommand.js +2 -2
- package/dist-cjs/commands/EncryptCommand.js +14 -13
- package/dist-cjs/commands/GenerateDataKeyCommand.js +15 -13
- package/dist-cjs/commands/GenerateDataKeyPairCommand.js +15 -14
- package/dist-cjs/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +16 -14
- package/dist-cjs/commands/GenerateDataKeyWithoutPlaintextCommand.js +11 -10
- package/dist-cjs/commands/GenerateRandomCommand.js +2 -2
- package/dist-cjs/commands/GetKeyPolicyCommand.js +0 -1
- package/dist-cjs/commands/GetKeyRotationStatusCommand.js +2 -2
- package/dist-cjs/commands/GetParametersForImportCommand.js +7 -9
- package/dist-cjs/commands/GetPublicKeyCommand.js +7 -6
- package/dist-cjs/commands/ImportKeyMaterialCommand.js +13 -14
- package/dist-cjs/commands/ListAliasesCommand.js +13 -11
- package/dist-cjs/commands/ListGrantsCommand.js +2 -3
- package/dist-cjs/commands/ListKeyPoliciesCommand.js +3 -4
- package/dist-cjs/commands/ListKeysCommand.js +1 -3
- package/dist-cjs/commands/ListResourceTagsCommand.js +0 -1
- package/dist-cjs/commands/ListRetirableGrantsCommand.js +7 -7
- package/dist-cjs/commands/PutKeyPolicyCommand.js +0 -1
- package/dist-cjs/commands/ReEncryptCommand.js +33 -28
- package/dist-cjs/commands/ReplicateKeyCommand.js +5 -6
- package/dist-cjs/commands/RetireGrantCommand.js +7 -6
- package/dist-cjs/commands/RevokeGrantCommand.js +1 -3
- package/dist-cjs/commands/ScheduleKeyDeletionCommand.js +19 -16
- package/dist-cjs/commands/SignCommand.js +10 -10
- package/dist-cjs/commands/TagResourceCommand.js +6 -5
- package/dist-cjs/commands/UntagResourceCommand.js +3 -4
- package/dist-cjs/commands/UpdateAliasCommand.js +15 -12
- package/dist-cjs/commands/UpdateCustomKeyStoreCommand.js +17 -18
- package/dist-cjs/commands/UpdateKeyDescriptionCommand.js +3 -4
- package/dist-cjs/commands/UpdatePrimaryRegionCommand.js +1 -2
- package/dist-cjs/commands/VerifyCommand.js +5 -6
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListAliasesPaginator.js +0 -1
- package/dist-cjs/pagination/ListGrantsPaginator.js +0 -1
- package/dist-cjs/pagination/ListKeyPoliciesPaginator.js +0 -1
- package/dist-cjs/pagination/ListKeysPaginator.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-es/KMS.js +0 -1
- package/dist-es/KMSClient.js +0 -1
- package/dist-es/commands/CancelKeyDeletionCommand.js +0 -1
- package/dist-es/commands/ConnectCustomKeyStoreCommand.js +0 -1
- package/dist-es/commands/CreateAliasCommand.js +0 -1
- package/dist-es/commands/CreateCustomKeyStoreCommand.js +0 -1
- package/dist-es/commands/CreateGrantCommand.js +0 -1
- package/dist-es/commands/CreateKeyCommand.js +0 -1
- package/dist-es/commands/DecryptCommand.js +0 -1
- package/dist-es/commands/DeleteAliasCommand.js +0 -1
- package/dist-es/commands/DeleteCustomKeyStoreCommand.js +0 -1
- package/dist-es/commands/DeleteImportedKeyMaterialCommand.js +0 -1
- package/dist-es/commands/DescribeCustomKeyStoresCommand.js +0 -1
- package/dist-es/commands/DescribeKeyCommand.js +0 -1
- package/dist-es/commands/DisableKeyCommand.js +0 -1
- package/dist-es/commands/DisableKeyRotationCommand.js +0 -1
- package/dist-es/commands/DisconnectCustomKeyStoreCommand.js +0 -1
- package/dist-es/commands/EnableKeyCommand.js +0 -1
- package/dist-es/commands/EnableKeyRotationCommand.js +0 -1
- package/dist-es/commands/EncryptCommand.js +0 -1
- package/dist-es/commands/GenerateDataKeyCommand.js +0 -1
- package/dist-es/commands/GenerateDataKeyPairCommand.js +0 -1
- package/dist-es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +0 -1
- package/dist-es/commands/GenerateDataKeyWithoutPlaintextCommand.js +0 -1
- package/dist-es/commands/GenerateRandomCommand.js +0 -1
- package/dist-es/commands/GetKeyPolicyCommand.js +0 -1
- package/dist-es/commands/GetKeyRotationStatusCommand.js +0 -1
- package/dist-es/commands/GetParametersForImportCommand.js +0 -1
- package/dist-es/commands/GetPublicKeyCommand.js +0 -1
- package/dist-es/commands/ImportKeyMaterialCommand.js +0 -1
- package/dist-es/commands/ListAliasesCommand.js +0 -1
- package/dist-es/commands/ListGrantsCommand.js +0 -1
- package/dist-es/commands/ListKeyPoliciesCommand.js +0 -1
- package/dist-es/commands/ListKeysCommand.js +0 -1
- package/dist-es/commands/ListResourceTagsCommand.js +0 -1
- package/dist-es/commands/ListRetirableGrantsCommand.js +0 -1
- package/dist-es/commands/PutKeyPolicyCommand.js +0 -1
- package/dist-es/commands/ReEncryptCommand.js +0 -1
- package/dist-es/commands/ReplicateKeyCommand.js +0 -1
- package/dist-es/commands/RetireGrantCommand.js +0 -1
- package/dist-es/commands/RevokeGrantCommand.js +0 -1
- package/dist-es/commands/ScheduleKeyDeletionCommand.js +0 -1
- package/dist-es/commands/SignCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateAliasCommand.js +0 -1
- package/dist-es/commands/UpdateCustomKeyStoreCommand.js +0 -1
- package/dist-es/commands/UpdateKeyDescriptionCommand.js +0 -1
- package/dist-es/commands/UpdatePrimaryRegionCommand.js +0 -1
- package/dist-es/commands/VerifyCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListAliasesPaginator.js +0 -1
- package/dist-es/pagination/ListGrantsPaginator.js +0 -1
- package/dist-es/pagination/ListKeyPoliciesPaginator.js +0 -1
- package/dist-es/pagination/ListKeysPaginator.js +0 -1
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/KMS.d.ts +396 -334
- package/dist-types/KMSClient.d.ts +8 -7
- package/dist-types/commands/CancelKeyDeletionCommand.d.ts +6 -4
- package/dist-types/commands/ConnectCustomKeyStoreCommand.d.ts +3 -3
- package/dist-types/commands/CreateAliasCommand.d.ts +11 -7
- package/dist-types/commands/CreateGrantCommand.d.ts +14 -11
- package/dist-types/commands/CreateKeyCommand.d.ts +16 -14
- package/dist-types/commands/DecryptCommand.d.ts +24 -21
- package/dist-types/commands/DeleteAliasCommand.d.ts +11 -7
- package/dist-types/commands/DeleteCustomKeyStoreCommand.d.ts +10 -11
- package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +5 -6
- package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +4 -4
- package/dist-types/commands/DescribeKeyCommand.d.ts +12 -10
- package/dist-types/commands/DisableKeyCommand.d.ts +5 -4
- package/dist-types/commands/DisableKeyRotationCommand.d.ts +2 -1
- package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +6 -4
- package/dist-types/commands/EnableKeyCommand.d.ts +4 -2
- package/dist-types/commands/EnableKeyRotationCommand.d.ts +2 -1
- package/dist-types/commands/EncryptCommand.d.ts +14 -12
- package/dist-types/commands/GenerateDataKeyCommand.d.ts +15 -12
- package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +15 -13
- package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +16 -13
- package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +11 -9
- package/dist-types/commands/GenerateRandomCommand.d.ts +2 -1
- package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +2 -1
- package/dist-types/commands/GetParametersForImportCommand.d.ts +7 -8
- package/dist-types/commands/GetPublicKeyCommand.d.ts +7 -5
- package/dist-types/commands/ImportKeyMaterialCommand.d.ts +13 -13
- package/dist-types/commands/ListAliasesCommand.d.ts +13 -10
- package/dist-types/commands/ListGrantsCommand.d.ts +2 -2
- package/dist-types/commands/ListKeyPoliciesCommand.d.ts +3 -3
- package/dist-types/commands/ListKeysCommand.d.ts +1 -2
- package/dist-types/commands/ListRetirableGrantsCommand.d.ts +7 -6
- package/dist-types/commands/ReEncryptCommand.d.ts +33 -27
- package/dist-types/commands/ReplicateKeyCommand.d.ts +5 -5
- package/dist-types/commands/RetireGrantCommand.d.ts +7 -5
- package/dist-types/commands/RevokeGrantCommand.d.ts +1 -2
- package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +19 -15
- package/dist-types/commands/SignCommand.d.ts +10 -9
- package/dist-types/commands/TagResourceCommand.d.ts +6 -4
- package/dist-types/commands/UntagResourceCommand.d.ts +3 -3
- package/dist-types/commands/UpdateAliasCommand.d.ts +15 -11
- package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +17 -17
- package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +3 -3
- package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +1 -1
- package/dist-types/commands/VerifyCommand.d.ts +5 -5
- package/dist-types/models/models_0.d.ts +296 -249
- package/dist-types/ts3.4/KMS.d.ts +396 -334
- package/dist-types/ts3.4/KMSClient.d.ts +8 -7
- package/dist-types/ts3.4/commands/CancelKeyDeletionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ConnectCustomKeyStoreCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +11 -7
- package/dist-types/ts3.4/commands/CreateGrantCommand.d.ts +14 -11
- package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +16 -14
- package/dist-types/ts3.4/commands/DecryptCommand.d.ts +24 -21
- package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +11 -7
- package/dist-types/ts3.4/commands/DeleteCustomKeyStoreCommand.d.ts +10 -11
- package/dist-types/ts3.4/commands/DeleteImportedKeyMaterialCommand.d.ts +5 -6
- package/dist-types/ts3.4/commands/DescribeCustomKeyStoresCommand.d.ts +4 -4
- package/dist-types/ts3.4/commands/DescribeKeyCommand.d.ts +12 -10
- package/dist-types/ts3.4/commands/DisableKeyCommand.d.ts +5 -4
- package/dist-types/ts3.4/commands/DisableKeyRotationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DisconnectCustomKeyStoreCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/EnableKeyCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/EnableKeyRotationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/EncryptCommand.d.ts +14 -12
- package/dist-types/ts3.4/commands/GenerateDataKeyCommand.d.ts +15 -12
- package/dist-types/ts3.4/commands/GenerateDataKeyPairCommand.d.ts +15 -13
- package/dist-types/ts3.4/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +16 -13
- package/dist-types/ts3.4/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +11 -9
- package/dist-types/ts3.4/commands/GenerateRandomCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetKeyRotationStatusCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +7 -8
- package/dist-types/ts3.4/commands/GetPublicKeyCommand.d.ts +7 -5
- package/dist-types/ts3.4/commands/ImportKeyMaterialCommand.d.ts +13 -13
- package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +13 -10
- package/dist-types/ts3.4/commands/ListGrantsCommand.d.ts +2 -2
- package/dist-types/ts3.4/commands/ListKeyPoliciesCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/ListRetirableGrantsCommand.d.ts +7 -6
- package/dist-types/ts3.4/commands/ReEncryptCommand.d.ts +33 -27
- package/dist-types/ts3.4/commands/ReplicateKeyCommand.d.ts +5 -5
- package/dist-types/ts3.4/commands/RetireGrantCommand.d.ts +7 -5
- package/dist-types/ts3.4/commands/RevokeGrantCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/ScheduleKeyDeletionCommand.d.ts +19 -15
- package/dist-types/ts3.4/commands/SignCommand.d.ts +10 -9
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +15 -11
- package/dist-types/ts3.4/commands/UpdateCustomKeyStoreCommand.d.ts +17 -17
- package/dist-types/ts3.4/commands/UpdateKeyDescriptionCommand.d.ts +3 -3
- package/dist-types/ts3.4/commands/UpdatePrimaryRegionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/VerifyCommand.d.ts +5 -5
- package/dist-types/ts3.4/models/models_0.d.ts +296 -249
- package/package.json +33 -30
- package/dist-cjs/KMS.js.map +0 -1
- package/dist-cjs/KMSClient.js.map +0 -1
- package/dist-cjs/commands/CancelKeyDeletionCommand.js.map +0 -1
- package/dist-cjs/commands/ConnectCustomKeyStoreCommand.js.map +0 -1
- package/dist-cjs/commands/CreateAliasCommand.js.map +0 -1
- package/dist-cjs/commands/CreateCustomKeyStoreCommand.js.map +0 -1
- package/dist-cjs/commands/CreateGrantCommand.js.map +0 -1
- package/dist-cjs/commands/CreateKeyCommand.js.map +0 -1
- package/dist-cjs/commands/DecryptCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteAliasCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteCustomKeyStoreCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteImportedKeyMaterialCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeCustomKeyStoresCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeKeyCommand.js.map +0 -1
- package/dist-cjs/commands/DisableKeyCommand.js.map +0 -1
- package/dist-cjs/commands/DisableKeyRotationCommand.js.map +0 -1
- package/dist-cjs/commands/DisconnectCustomKeyStoreCommand.js.map +0 -1
- package/dist-cjs/commands/EnableKeyCommand.js.map +0 -1
- package/dist-cjs/commands/EnableKeyRotationCommand.js.map +0 -1
- package/dist-cjs/commands/EncryptCommand.js.map +0 -1
- package/dist-cjs/commands/GenerateDataKeyCommand.js.map +0 -1
- package/dist-cjs/commands/GenerateDataKeyPairCommand.js.map +0 -1
- package/dist-cjs/commands/GenerateDataKeyPairWithoutPlaintextCommand.js.map +0 -1
- package/dist-cjs/commands/GenerateDataKeyWithoutPlaintextCommand.js.map +0 -1
- package/dist-cjs/commands/GenerateRandomCommand.js.map +0 -1
- package/dist-cjs/commands/GetKeyPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/GetKeyRotationStatusCommand.js.map +0 -1
- package/dist-cjs/commands/GetParametersForImportCommand.js.map +0 -1
- package/dist-cjs/commands/GetPublicKeyCommand.js.map +0 -1
- package/dist-cjs/commands/ImportKeyMaterialCommand.js.map +0 -1
- package/dist-cjs/commands/ListAliasesCommand.js.map +0 -1
- package/dist-cjs/commands/ListGrantsCommand.js.map +0 -1
- package/dist-cjs/commands/ListKeyPoliciesCommand.js.map +0 -1
- package/dist-cjs/commands/ListKeysCommand.js.map +0 -1
- package/dist-cjs/commands/ListResourceTagsCommand.js.map +0 -1
- package/dist-cjs/commands/ListRetirableGrantsCommand.js.map +0 -1
- package/dist-cjs/commands/PutKeyPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/ReEncryptCommand.js.map +0 -1
- package/dist-cjs/commands/ReplicateKeyCommand.js.map +0 -1
- package/dist-cjs/commands/RetireGrantCommand.js.map +0 -1
- package/dist-cjs/commands/RevokeGrantCommand.js.map +0 -1
- package/dist-cjs/commands/ScheduleKeyDeletionCommand.js.map +0 -1
- package/dist-cjs/commands/SignCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateAliasCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateCustomKeyStoreCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateKeyDescriptionCommand.js.map +0 -1
- package/dist-cjs/commands/UpdatePrimaryRegionCommand.js.map +0 -1
- package/dist-cjs/commands/VerifyCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListAliasesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListGrantsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListKeyPoliciesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListKeysPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/KMS.js.map +0 -1
- package/dist-es/KMSClient.js.map +0 -1
- package/dist-es/commands/CancelKeyDeletionCommand.js.map +0 -1
- package/dist-es/commands/ConnectCustomKeyStoreCommand.js.map +0 -1
- package/dist-es/commands/CreateAliasCommand.js.map +0 -1
- package/dist-es/commands/CreateCustomKeyStoreCommand.js.map +0 -1
- package/dist-es/commands/CreateGrantCommand.js.map +0 -1
- package/dist-es/commands/CreateKeyCommand.js.map +0 -1
- package/dist-es/commands/DecryptCommand.js.map +0 -1
- package/dist-es/commands/DeleteAliasCommand.js.map +0 -1
- package/dist-es/commands/DeleteCustomKeyStoreCommand.js.map +0 -1
- package/dist-es/commands/DeleteImportedKeyMaterialCommand.js.map +0 -1
- package/dist-es/commands/DescribeCustomKeyStoresCommand.js.map +0 -1
- package/dist-es/commands/DescribeKeyCommand.js.map +0 -1
- package/dist-es/commands/DisableKeyCommand.js.map +0 -1
- package/dist-es/commands/DisableKeyRotationCommand.js.map +0 -1
- package/dist-es/commands/DisconnectCustomKeyStoreCommand.js.map +0 -1
- package/dist-es/commands/EnableKeyCommand.js.map +0 -1
- package/dist-es/commands/EnableKeyRotationCommand.js.map +0 -1
- package/dist-es/commands/EncryptCommand.js.map +0 -1
- package/dist-es/commands/GenerateDataKeyCommand.js.map +0 -1
- package/dist-es/commands/GenerateDataKeyPairCommand.js.map +0 -1
- package/dist-es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js.map +0 -1
- package/dist-es/commands/GenerateDataKeyWithoutPlaintextCommand.js.map +0 -1
- package/dist-es/commands/GenerateRandomCommand.js.map +0 -1
- package/dist-es/commands/GetKeyPolicyCommand.js.map +0 -1
- package/dist-es/commands/GetKeyRotationStatusCommand.js.map +0 -1
- package/dist-es/commands/GetParametersForImportCommand.js.map +0 -1
- package/dist-es/commands/GetPublicKeyCommand.js.map +0 -1
- package/dist-es/commands/ImportKeyMaterialCommand.js.map +0 -1
- package/dist-es/commands/ListAliasesCommand.js.map +0 -1
- package/dist-es/commands/ListGrantsCommand.js.map +0 -1
- package/dist-es/commands/ListKeyPoliciesCommand.js.map +0 -1
- package/dist-es/commands/ListKeysCommand.js.map +0 -1
- package/dist-es/commands/ListResourceTagsCommand.js.map +0 -1
- package/dist-es/commands/ListRetirableGrantsCommand.js.map +0 -1
- package/dist-es/commands/PutKeyPolicyCommand.js.map +0 -1
- package/dist-es/commands/ReEncryptCommand.js.map +0 -1
- package/dist-es/commands/ReplicateKeyCommand.js.map +0 -1
- package/dist-es/commands/RetireGrantCommand.js.map +0 -1
- package/dist-es/commands/RevokeGrantCommand.js.map +0 -1
- package/dist-es/commands/ScheduleKeyDeletionCommand.js.map +0 -1
- package/dist-es/commands/SignCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateAliasCommand.js.map +0 -1
- package/dist-es/commands/UpdateCustomKeyStoreCommand.js.map +0 -1
- package/dist-es/commands/UpdateKeyDescriptionCommand.js.map +0 -1
- package/dist-es/commands/UpdatePrimaryRegionCommand.js.map +0 -1
- package/dist-es/commands/VerifyCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListAliasesPaginator.js.map +0 -1
- package/dist-es/pagination/ListGrantsPaginator.js.map +0 -1
- package/dist-es/pagination/ListKeyPoliciesPaginator.js.map +0 -1
- package/dist-es/pagination/ListKeysPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/KMS.ts +0 -4019
- package/src/KMSClient.ts +0 -516
- package/src/commands/CancelKeyDeletionCommand.ts +0 -106
- package/src/commands/ConnectCustomKeyStoreCommand.ts +0 -156
- package/src/commands/CreateAliasCommand.ts +0 -148
- package/src/commands/CreateCustomKeyStoreCommand.ts +0 -144
- package/src/commands/CreateGrantCommand.ts +0 -154
- package/src/commands/CreateKeyCommand.ts +0 -210
- package/src/commands/DecryptCommand.ts +0 -173
- package/src/commands/DeleteAliasCommand.ts +0 -138
- package/src/commands/DeleteCustomKeyStoreCommand.ts +0 -150
- package/src/commands/DeleteImportedKeyMaterialCommand.ts +0 -128
- package/src/commands/DescribeCustomKeyStoresCommand.ts +0 -148
- package/src/commands/DescribeKeyCommand.ts +0 -172
- package/src/commands/DisableKeyCommand.ts +0 -109
- package/src/commands/DisableKeyRotationCommand.ts +0 -119
- package/src/commands/DisconnectCustomKeyStoreCommand.ts +0 -145
- package/src/commands/EnableKeyCommand.ts +0 -98
- package/src/commands/EnableKeyRotationCommand.ts +0 -119
- package/src/commands/EncryptCommand.ts +0 -210
- package/src/commands/GenerateDataKeyCommand.ts +0 -189
- package/src/commands/GenerateDataKeyPairCommand.ts +0 -169
- package/src/commands/GenerateDataKeyPairWithoutPlaintextCommand.ts +0 -169
- package/src/commands/GenerateDataKeyWithoutPlaintextCommand.ts +0 -172
- package/src/commands/GenerateRandomCommand.ts +0 -103
- package/src/commands/GetKeyPolicyCommand.ts +0 -103
- package/src/commands/GetKeyRotationStatusCommand.ts +0 -131
- package/src/commands/GetParametersForImportCommand.ts +0 -130
- package/src/commands/GetPublicKeyCommand.ts +0 -139
- package/src/commands/ImportKeyMaterialCommand.ts +0 -158
- package/src/commands/ListAliasesCommand.ts +0 -134
- package/src/commands/ListGrantsCommand.ts +0 -140
- package/src/commands/ListKeyPoliciesCommand.ts +0 -117
- package/src/commands/ListKeysCommand.ts +0 -119
- package/src/commands/ListResourceTagsCommand.ts +0 -129
- package/src/commands/ListRetirableGrantsCommand.ts +0 -137
- package/src/commands/PutKeyPolicyCommand.ts +0 -108
- package/src/commands/ReEncryptCommand.ts +0 -180
- package/src/commands/ReplicateKeyCommand.ts +0 -172
- package/src/commands/RetireGrantCommand.ts +0 -139
- package/src/commands/RevokeGrantCommand.ts +0 -139
- package/src/commands/ScheduleKeyDeletionCommand.ts +0 -145
- package/src/commands/SignCommand.ts +0 -132
- package/src/commands/TagResourceCommand.ts +0 -140
- package/src/commands/UntagResourceCommand.ts +0 -138
- package/src/commands/UpdateAliasCommand.ts +0 -153
- package/src/commands/UpdateCustomKeyStoreCommand.ts +0 -167
- package/src/commands/UpdateKeyDescriptionCommand.ts +0 -118
- package/src/commands/UpdatePrimaryRegionCommand.ts +0 -160
- package/src/commands/VerifyCommand.ts +0 -118
- package/src/endpoints.ts +0 -62
- package/src/index.ts +0 -56
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -4742
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListAliasesPaginator.ts +0 -55
- package/src/pagination/ListGrantsPaginator.ts +0 -55
- package/src/pagination/ListKeyPoliciesPaginator.ts +0 -59
- package/src/pagination/ListKeysPaginator.ts +0 -55
- package/src/protocols/Aws_json1_1.ts +0 -7632
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/src/KMSClient.ts
DELETED
|
@@ -1,516 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EndpointsInputConfig,
|
|
3
|
-
EndpointsResolvedConfig,
|
|
4
|
-
RegionInputConfig,
|
|
5
|
-
RegionResolvedConfig,
|
|
6
|
-
resolveEndpointsConfig,
|
|
7
|
-
resolveRegionConfig,
|
|
8
|
-
} from "@aws-sdk/config-resolver";
|
|
9
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
10
|
-
import {
|
|
11
|
-
getHostHeaderPlugin,
|
|
12
|
-
HostHeaderInputConfig,
|
|
13
|
-
HostHeaderResolvedConfig,
|
|
14
|
-
resolveHostHeaderConfig,
|
|
15
|
-
} from "@aws-sdk/middleware-host-header";
|
|
16
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
17
|
-
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
18
|
-
import {
|
|
19
|
-
AwsAuthInputConfig,
|
|
20
|
-
AwsAuthResolvedConfig,
|
|
21
|
-
getAwsAuthPlugin,
|
|
22
|
-
resolveAwsAuthConfig,
|
|
23
|
-
} from "@aws-sdk/middleware-signing";
|
|
24
|
-
import {
|
|
25
|
-
getUserAgentPlugin,
|
|
26
|
-
resolveUserAgentConfig,
|
|
27
|
-
UserAgentInputConfig,
|
|
28
|
-
UserAgentResolvedConfig,
|
|
29
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
30
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
31
|
-
import {
|
|
32
|
-
Client as __Client,
|
|
33
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
34
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
35
|
-
} from "@aws-sdk/smithy-client";
|
|
36
|
-
import {
|
|
37
|
-
Credentials as __Credentials,
|
|
38
|
-
Decoder as __Decoder,
|
|
39
|
-
Encoder as __Encoder,
|
|
40
|
-
Hash as __Hash,
|
|
41
|
-
HashConstructor as __HashConstructor,
|
|
42
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
43
|
-
Logger as __Logger,
|
|
44
|
-
Provider as __Provider,
|
|
45
|
-
Provider,
|
|
46
|
-
RegionInfoProvider,
|
|
47
|
-
StreamCollector as __StreamCollector,
|
|
48
|
-
UrlParser as __UrlParser,
|
|
49
|
-
UserAgent as __UserAgent,
|
|
50
|
-
} from "@aws-sdk/types";
|
|
51
|
-
|
|
52
|
-
import { CancelKeyDeletionCommandInput, CancelKeyDeletionCommandOutput } from "./commands/CancelKeyDeletionCommand";
|
|
53
|
-
import {
|
|
54
|
-
ConnectCustomKeyStoreCommandInput,
|
|
55
|
-
ConnectCustomKeyStoreCommandOutput,
|
|
56
|
-
} from "./commands/ConnectCustomKeyStoreCommand";
|
|
57
|
-
import { CreateAliasCommandInput, CreateAliasCommandOutput } from "./commands/CreateAliasCommand";
|
|
58
|
-
import {
|
|
59
|
-
CreateCustomKeyStoreCommandInput,
|
|
60
|
-
CreateCustomKeyStoreCommandOutput,
|
|
61
|
-
} from "./commands/CreateCustomKeyStoreCommand";
|
|
62
|
-
import { CreateGrantCommandInput, CreateGrantCommandOutput } from "./commands/CreateGrantCommand";
|
|
63
|
-
import { CreateKeyCommandInput, CreateKeyCommandOutput } from "./commands/CreateKeyCommand";
|
|
64
|
-
import { DecryptCommandInput, DecryptCommandOutput } from "./commands/DecryptCommand";
|
|
65
|
-
import { DeleteAliasCommandInput, DeleteAliasCommandOutput } from "./commands/DeleteAliasCommand";
|
|
66
|
-
import {
|
|
67
|
-
DeleteCustomKeyStoreCommandInput,
|
|
68
|
-
DeleteCustomKeyStoreCommandOutput,
|
|
69
|
-
} from "./commands/DeleteCustomKeyStoreCommand";
|
|
70
|
-
import {
|
|
71
|
-
DeleteImportedKeyMaterialCommandInput,
|
|
72
|
-
DeleteImportedKeyMaterialCommandOutput,
|
|
73
|
-
} from "./commands/DeleteImportedKeyMaterialCommand";
|
|
74
|
-
import {
|
|
75
|
-
DescribeCustomKeyStoresCommandInput,
|
|
76
|
-
DescribeCustomKeyStoresCommandOutput,
|
|
77
|
-
} from "./commands/DescribeCustomKeyStoresCommand";
|
|
78
|
-
import { DescribeKeyCommandInput, DescribeKeyCommandOutput } from "./commands/DescribeKeyCommand";
|
|
79
|
-
import { DisableKeyCommandInput, DisableKeyCommandOutput } from "./commands/DisableKeyCommand";
|
|
80
|
-
import { DisableKeyRotationCommandInput, DisableKeyRotationCommandOutput } from "./commands/DisableKeyRotationCommand";
|
|
81
|
-
import {
|
|
82
|
-
DisconnectCustomKeyStoreCommandInput,
|
|
83
|
-
DisconnectCustomKeyStoreCommandOutput,
|
|
84
|
-
} from "./commands/DisconnectCustomKeyStoreCommand";
|
|
85
|
-
import { EnableKeyCommandInput, EnableKeyCommandOutput } from "./commands/EnableKeyCommand";
|
|
86
|
-
import { EnableKeyRotationCommandInput, EnableKeyRotationCommandOutput } from "./commands/EnableKeyRotationCommand";
|
|
87
|
-
import { EncryptCommandInput, EncryptCommandOutput } from "./commands/EncryptCommand";
|
|
88
|
-
import { GenerateDataKeyCommandInput, GenerateDataKeyCommandOutput } from "./commands/GenerateDataKeyCommand";
|
|
89
|
-
import {
|
|
90
|
-
GenerateDataKeyPairCommandInput,
|
|
91
|
-
GenerateDataKeyPairCommandOutput,
|
|
92
|
-
} from "./commands/GenerateDataKeyPairCommand";
|
|
93
|
-
import {
|
|
94
|
-
GenerateDataKeyPairWithoutPlaintextCommandInput,
|
|
95
|
-
GenerateDataKeyPairWithoutPlaintextCommandOutput,
|
|
96
|
-
} from "./commands/GenerateDataKeyPairWithoutPlaintextCommand";
|
|
97
|
-
import {
|
|
98
|
-
GenerateDataKeyWithoutPlaintextCommandInput,
|
|
99
|
-
GenerateDataKeyWithoutPlaintextCommandOutput,
|
|
100
|
-
} from "./commands/GenerateDataKeyWithoutPlaintextCommand";
|
|
101
|
-
import { GenerateRandomCommandInput, GenerateRandomCommandOutput } from "./commands/GenerateRandomCommand";
|
|
102
|
-
import { GetKeyPolicyCommandInput, GetKeyPolicyCommandOutput } from "./commands/GetKeyPolicyCommand";
|
|
103
|
-
import {
|
|
104
|
-
GetKeyRotationStatusCommandInput,
|
|
105
|
-
GetKeyRotationStatusCommandOutput,
|
|
106
|
-
} from "./commands/GetKeyRotationStatusCommand";
|
|
107
|
-
import {
|
|
108
|
-
GetParametersForImportCommandInput,
|
|
109
|
-
GetParametersForImportCommandOutput,
|
|
110
|
-
} from "./commands/GetParametersForImportCommand";
|
|
111
|
-
import { GetPublicKeyCommandInput, GetPublicKeyCommandOutput } from "./commands/GetPublicKeyCommand";
|
|
112
|
-
import { ImportKeyMaterialCommandInput, ImportKeyMaterialCommandOutput } from "./commands/ImportKeyMaterialCommand";
|
|
113
|
-
import { ListAliasesCommandInput, ListAliasesCommandOutput } from "./commands/ListAliasesCommand";
|
|
114
|
-
import { ListGrantsCommandInput, ListGrantsCommandOutput } from "./commands/ListGrantsCommand";
|
|
115
|
-
import { ListKeyPoliciesCommandInput, ListKeyPoliciesCommandOutput } from "./commands/ListKeyPoliciesCommand";
|
|
116
|
-
import { ListKeysCommandInput, ListKeysCommandOutput } from "./commands/ListKeysCommand";
|
|
117
|
-
import { ListResourceTagsCommandInput, ListResourceTagsCommandOutput } from "./commands/ListResourceTagsCommand";
|
|
118
|
-
import {
|
|
119
|
-
ListRetirableGrantsCommandInput,
|
|
120
|
-
ListRetirableGrantsCommandOutput,
|
|
121
|
-
} from "./commands/ListRetirableGrantsCommand";
|
|
122
|
-
import { PutKeyPolicyCommandInput, PutKeyPolicyCommandOutput } from "./commands/PutKeyPolicyCommand";
|
|
123
|
-
import { ReEncryptCommandInput, ReEncryptCommandOutput } from "./commands/ReEncryptCommand";
|
|
124
|
-
import { ReplicateKeyCommandInput, ReplicateKeyCommandOutput } from "./commands/ReplicateKeyCommand";
|
|
125
|
-
import { RetireGrantCommandInput, RetireGrantCommandOutput } from "./commands/RetireGrantCommand";
|
|
126
|
-
import { RevokeGrantCommandInput, RevokeGrantCommandOutput } from "./commands/RevokeGrantCommand";
|
|
127
|
-
import {
|
|
128
|
-
ScheduleKeyDeletionCommandInput,
|
|
129
|
-
ScheduleKeyDeletionCommandOutput,
|
|
130
|
-
} from "./commands/ScheduleKeyDeletionCommand";
|
|
131
|
-
import { SignCommandInput, SignCommandOutput } from "./commands/SignCommand";
|
|
132
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
133
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
134
|
-
import { UpdateAliasCommandInput, UpdateAliasCommandOutput } from "./commands/UpdateAliasCommand";
|
|
135
|
-
import {
|
|
136
|
-
UpdateCustomKeyStoreCommandInput,
|
|
137
|
-
UpdateCustomKeyStoreCommandOutput,
|
|
138
|
-
} from "./commands/UpdateCustomKeyStoreCommand";
|
|
139
|
-
import {
|
|
140
|
-
UpdateKeyDescriptionCommandInput,
|
|
141
|
-
UpdateKeyDescriptionCommandOutput,
|
|
142
|
-
} from "./commands/UpdateKeyDescriptionCommand";
|
|
143
|
-
import {
|
|
144
|
-
UpdatePrimaryRegionCommandInput,
|
|
145
|
-
UpdatePrimaryRegionCommandOutput,
|
|
146
|
-
} from "./commands/UpdatePrimaryRegionCommand";
|
|
147
|
-
import { VerifyCommandInput, VerifyCommandOutput } from "./commands/VerifyCommand";
|
|
148
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
149
|
-
|
|
150
|
-
export type ServiceInputTypes =
|
|
151
|
-
| CancelKeyDeletionCommandInput
|
|
152
|
-
| ConnectCustomKeyStoreCommandInput
|
|
153
|
-
| CreateAliasCommandInput
|
|
154
|
-
| CreateCustomKeyStoreCommandInput
|
|
155
|
-
| CreateGrantCommandInput
|
|
156
|
-
| CreateKeyCommandInput
|
|
157
|
-
| DecryptCommandInput
|
|
158
|
-
| DeleteAliasCommandInput
|
|
159
|
-
| DeleteCustomKeyStoreCommandInput
|
|
160
|
-
| DeleteImportedKeyMaterialCommandInput
|
|
161
|
-
| DescribeCustomKeyStoresCommandInput
|
|
162
|
-
| DescribeKeyCommandInput
|
|
163
|
-
| DisableKeyCommandInput
|
|
164
|
-
| DisableKeyRotationCommandInput
|
|
165
|
-
| DisconnectCustomKeyStoreCommandInput
|
|
166
|
-
| EnableKeyCommandInput
|
|
167
|
-
| EnableKeyRotationCommandInput
|
|
168
|
-
| EncryptCommandInput
|
|
169
|
-
| GenerateDataKeyCommandInput
|
|
170
|
-
| GenerateDataKeyPairCommandInput
|
|
171
|
-
| GenerateDataKeyPairWithoutPlaintextCommandInput
|
|
172
|
-
| GenerateDataKeyWithoutPlaintextCommandInput
|
|
173
|
-
| GenerateRandomCommandInput
|
|
174
|
-
| GetKeyPolicyCommandInput
|
|
175
|
-
| GetKeyRotationStatusCommandInput
|
|
176
|
-
| GetParametersForImportCommandInput
|
|
177
|
-
| GetPublicKeyCommandInput
|
|
178
|
-
| ImportKeyMaterialCommandInput
|
|
179
|
-
| ListAliasesCommandInput
|
|
180
|
-
| ListGrantsCommandInput
|
|
181
|
-
| ListKeyPoliciesCommandInput
|
|
182
|
-
| ListKeysCommandInput
|
|
183
|
-
| ListResourceTagsCommandInput
|
|
184
|
-
| ListRetirableGrantsCommandInput
|
|
185
|
-
| PutKeyPolicyCommandInput
|
|
186
|
-
| ReEncryptCommandInput
|
|
187
|
-
| ReplicateKeyCommandInput
|
|
188
|
-
| RetireGrantCommandInput
|
|
189
|
-
| RevokeGrantCommandInput
|
|
190
|
-
| ScheduleKeyDeletionCommandInput
|
|
191
|
-
| SignCommandInput
|
|
192
|
-
| TagResourceCommandInput
|
|
193
|
-
| UntagResourceCommandInput
|
|
194
|
-
| UpdateAliasCommandInput
|
|
195
|
-
| UpdateCustomKeyStoreCommandInput
|
|
196
|
-
| UpdateKeyDescriptionCommandInput
|
|
197
|
-
| UpdatePrimaryRegionCommandInput
|
|
198
|
-
| VerifyCommandInput;
|
|
199
|
-
|
|
200
|
-
export type ServiceOutputTypes =
|
|
201
|
-
| CancelKeyDeletionCommandOutput
|
|
202
|
-
| ConnectCustomKeyStoreCommandOutput
|
|
203
|
-
| CreateAliasCommandOutput
|
|
204
|
-
| CreateCustomKeyStoreCommandOutput
|
|
205
|
-
| CreateGrantCommandOutput
|
|
206
|
-
| CreateKeyCommandOutput
|
|
207
|
-
| DecryptCommandOutput
|
|
208
|
-
| DeleteAliasCommandOutput
|
|
209
|
-
| DeleteCustomKeyStoreCommandOutput
|
|
210
|
-
| DeleteImportedKeyMaterialCommandOutput
|
|
211
|
-
| DescribeCustomKeyStoresCommandOutput
|
|
212
|
-
| DescribeKeyCommandOutput
|
|
213
|
-
| DisableKeyCommandOutput
|
|
214
|
-
| DisableKeyRotationCommandOutput
|
|
215
|
-
| DisconnectCustomKeyStoreCommandOutput
|
|
216
|
-
| EnableKeyCommandOutput
|
|
217
|
-
| EnableKeyRotationCommandOutput
|
|
218
|
-
| EncryptCommandOutput
|
|
219
|
-
| GenerateDataKeyCommandOutput
|
|
220
|
-
| GenerateDataKeyPairCommandOutput
|
|
221
|
-
| GenerateDataKeyPairWithoutPlaintextCommandOutput
|
|
222
|
-
| GenerateDataKeyWithoutPlaintextCommandOutput
|
|
223
|
-
| GenerateRandomCommandOutput
|
|
224
|
-
| GetKeyPolicyCommandOutput
|
|
225
|
-
| GetKeyRotationStatusCommandOutput
|
|
226
|
-
| GetParametersForImportCommandOutput
|
|
227
|
-
| GetPublicKeyCommandOutput
|
|
228
|
-
| ImportKeyMaterialCommandOutput
|
|
229
|
-
| ListAliasesCommandOutput
|
|
230
|
-
| ListGrantsCommandOutput
|
|
231
|
-
| ListKeyPoliciesCommandOutput
|
|
232
|
-
| ListKeysCommandOutput
|
|
233
|
-
| ListResourceTagsCommandOutput
|
|
234
|
-
| ListRetirableGrantsCommandOutput
|
|
235
|
-
| PutKeyPolicyCommandOutput
|
|
236
|
-
| ReEncryptCommandOutput
|
|
237
|
-
| ReplicateKeyCommandOutput
|
|
238
|
-
| RetireGrantCommandOutput
|
|
239
|
-
| RevokeGrantCommandOutput
|
|
240
|
-
| ScheduleKeyDeletionCommandOutput
|
|
241
|
-
| SignCommandOutput
|
|
242
|
-
| TagResourceCommandOutput
|
|
243
|
-
| UntagResourceCommandOutput
|
|
244
|
-
| UpdateAliasCommandOutput
|
|
245
|
-
| UpdateCustomKeyStoreCommandOutput
|
|
246
|
-
| UpdateKeyDescriptionCommandOutput
|
|
247
|
-
| UpdatePrimaryRegionCommandOutput
|
|
248
|
-
| VerifyCommandOutput;
|
|
249
|
-
|
|
250
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
251
|
-
/**
|
|
252
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
253
|
-
*/
|
|
254
|
-
requestHandler?: __HttpHandler;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
258
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
259
|
-
* @internal
|
|
260
|
-
*/
|
|
261
|
-
sha256?: __HashConstructor;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
265
|
-
* @internal
|
|
266
|
-
*/
|
|
267
|
-
urlParser?: __UrlParser;
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* A function that can calculate the length of a request body.
|
|
271
|
-
* @internal
|
|
272
|
-
*/
|
|
273
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* A function that converts a stream into an array of bytes.
|
|
277
|
-
* @internal
|
|
278
|
-
*/
|
|
279
|
-
streamCollector?: __StreamCollector;
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
283
|
-
* @internal
|
|
284
|
-
*/
|
|
285
|
-
base64Decoder?: __Decoder;
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
289
|
-
* @internal
|
|
290
|
-
*/
|
|
291
|
-
base64Encoder?: __Encoder;
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
295
|
-
* @internal
|
|
296
|
-
*/
|
|
297
|
-
utf8Decoder?: __Decoder;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
301
|
-
* @internal
|
|
302
|
-
*/
|
|
303
|
-
utf8Encoder?: __Encoder;
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* The runtime environment.
|
|
307
|
-
* @internal
|
|
308
|
-
*/
|
|
309
|
-
runtime?: string;
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
313
|
-
* trait of an operation.
|
|
314
|
-
*/
|
|
315
|
-
disableHostPrefix?: boolean;
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
319
|
-
*/
|
|
320
|
-
maxAttempts?: number | __Provider<number>;
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* Specifies which retry algorithm to use.
|
|
324
|
-
*/
|
|
325
|
-
retryMode?: string | __Provider<string>;
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Optional logger for logging debug/info/warn/error.
|
|
329
|
-
*/
|
|
330
|
-
logger?: __Logger;
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Unique service identifier.
|
|
334
|
-
* @internal
|
|
335
|
-
*/
|
|
336
|
-
serviceId?: string;
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* The AWS region to which this client will send requests
|
|
340
|
-
*/
|
|
341
|
-
region?: string | __Provider<string>;
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Default credentials provider; Not available in browser runtime.
|
|
345
|
-
* @internal
|
|
346
|
-
*/
|
|
347
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
351
|
-
* @internal
|
|
352
|
-
*/
|
|
353
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
357
|
-
* @internal
|
|
358
|
-
*/
|
|
359
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
type KMSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
363
|
-
ClientDefaults &
|
|
364
|
-
RegionInputConfig &
|
|
365
|
-
EndpointsInputConfig &
|
|
366
|
-
RetryInputConfig &
|
|
367
|
-
HostHeaderInputConfig &
|
|
368
|
-
AwsAuthInputConfig &
|
|
369
|
-
UserAgentInputConfig;
|
|
370
|
-
/**
|
|
371
|
-
* The configuration interface of KMSClient class constructor that set the region, credentials and other options.
|
|
372
|
-
*/
|
|
373
|
-
export interface KMSClientConfig extends KMSClientConfigType {}
|
|
374
|
-
|
|
375
|
-
type KMSClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
376
|
-
Required<ClientDefaults> &
|
|
377
|
-
RegionResolvedConfig &
|
|
378
|
-
EndpointsResolvedConfig &
|
|
379
|
-
RetryResolvedConfig &
|
|
380
|
-
HostHeaderResolvedConfig &
|
|
381
|
-
AwsAuthResolvedConfig &
|
|
382
|
-
UserAgentResolvedConfig;
|
|
383
|
-
/**
|
|
384
|
-
* The resolved configuration interface of KMSClient class. This is resolved and normalized from the {@link KMSClientConfig | constructor configuration interface}.
|
|
385
|
-
*/
|
|
386
|
-
export interface KMSClientResolvedConfig extends KMSClientResolvedConfigType {}
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* <fullname>Key Management Service</fullname>
|
|
390
|
-
* <p>Key Management Service (KMS) is an encryption and key management web service. This guide describes
|
|
391
|
-
* the KMS operations that you can call programmatically. For general information about KMS,
|
|
392
|
-
* see the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/">
|
|
393
|
-
* <i>Key Management Service Developer Guide</i>
|
|
394
|
-
* </a>.</p>
|
|
395
|
-
* <note>
|
|
396
|
-
* <p>KMS is replacing the term <i>customer master key (CMK)</i> with <i>KMS key</i> and <i>KMS key</i>. The concept has not changed. To prevent breaking changes, KMS is keeping some variations of this term.</p>
|
|
397
|
-
* <p>Amazon Web Services provides SDKs that consist of libraries and sample code for various programming
|
|
398
|
-
* languages and platforms (Java, Ruby, .Net, macOS, Android, etc.). The SDKs provide a
|
|
399
|
-
* convenient way to create programmatic access to KMS and other Amazon Web Services services. For example,
|
|
400
|
-
* the SDKs take care of tasks such as signing requests (see below), managing errors, and
|
|
401
|
-
* retrying requests automatically. For more information about the Amazon Web Services SDKs, including how to
|
|
402
|
-
* download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web
|
|
403
|
-
* Services</a>.</p>
|
|
404
|
-
* </note>
|
|
405
|
-
* <p>We recommend that you use the Amazon Web Services SDKs to make programmatic API calls to KMS.</p>
|
|
406
|
-
* <p>Clients must support TLS (Transport Layer Security) 1.0. We recommend TLS 1.2. Clients
|
|
407
|
-
* must also support cipher suites with Perfect Forward Secrecy (PFS) such as Ephemeral
|
|
408
|
-
* Diffie-Hellman (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems
|
|
409
|
-
* such as Java 7 and later support these modes.</p>
|
|
410
|
-
* <p>
|
|
411
|
-
* <b>Signing Requests</b>
|
|
412
|
-
* </p>
|
|
413
|
-
* <p>Requests must be signed by using an access key ID and a secret access key. We strongly
|
|
414
|
-
* recommend that you <i>do not</i> use your Amazon Web Services account (root) access key ID and
|
|
415
|
-
* secret key for everyday work with KMS. Instead, use the access key ID and secret access key
|
|
416
|
-
* for an IAM user. You can also use the Amazon Web Services Security Token Service to generate temporary
|
|
417
|
-
* security credentials that you can use to sign requests.</p>
|
|
418
|
-
* <p>All KMS operations require <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4</a>.</p>
|
|
419
|
-
* <p>
|
|
420
|
-
* <b>Logging API Requests</b>
|
|
421
|
-
* </p>
|
|
422
|
-
* <p>KMS supports CloudTrail, a service that logs Amazon Web Services API calls and related events for your Amazon Web Services account and delivers them to an Amazon S3 bucket that you specify. By using the information
|
|
423
|
-
* collected by CloudTrail, you can determine what requests were made to KMS, who made the request,
|
|
424
|
-
* when it was made, and so on. To learn more about CloudTrail, including how to turn it on and find
|
|
425
|
-
* your log files, see the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/">CloudTrail User Guide</a>.</p>
|
|
426
|
-
* <p>
|
|
427
|
-
* <b>Additional Resources</b>
|
|
428
|
-
* </p>
|
|
429
|
-
* <p>For more information about credentials and request signing, see the following:</p>
|
|
430
|
-
* <ul>
|
|
431
|
-
* <li>
|
|
432
|
-
* <p>
|
|
433
|
-
* <a href="https://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html">Amazon Web Services Security
|
|
434
|
-
* Credentials</a> - This topic provides general information about the types of
|
|
435
|
-
* credentials used to access Amazon Web Services.</p>
|
|
436
|
-
* </li>
|
|
437
|
-
* <li>
|
|
438
|
-
* <p>
|
|
439
|
-
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html">Temporary
|
|
440
|
-
* Security Credentials</a> - This section of the <i>IAM User Guide</i>
|
|
441
|
-
* describes how to create and use temporary security credentials.</p>
|
|
442
|
-
* </li>
|
|
443
|
-
* <li>
|
|
444
|
-
* <p>
|
|
445
|
-
* <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version
|
|
446
|
-
* 4 Signing Process</a> - This set of topics walks you through the process of signing
|
|
447
|
-
* a request using an access key ID and a secret access key.</p>
|
|
448
|
-
* </li>
|
|
449
|
-
* </ul>
|
|
450
|
-
* <p>
|
|
451
|
-
* <b>Commonly Used API Operations</b>
|
|
452
|
-
* </p>
|
|
453
|
-
* <p>Of the API operations discussed in this guide, the following will prove the most useful
|
|
454
|
-
* for most applications. You will likely perform operations other than these, such as creating
|
|
455
|
-
* keys and assigning policies, by using the console.</p>
|
|
456
|
-
* <ul>
|
|
457
|
-
* <li>
|
|
458
|
-
* <p>
|
|
459
|
-
* <a>Encrypt</a>
|
|
460
|
-
* </p>
|
|
461
|
-
* </li>
|
|
462
|
-
* <li>
|
|
463
|
-
* <p>
|
|
464
|
-
* <a>Decrypt</a>
|
|
465
|
-
* </p>
|
|
466
|
-
* </li>
|
|
467
|
-
* <li>
|
|
468
|
-
* <p>
|
|
469
|
-
* <a>GenerateDataKey</a>
|
|
470
|
-
* </p>
|
|
471
|
-
* </li>
|
|
472
|
-
* <li>
|
|
473
|
-
* <p>
|
|
474
|
-
* <a>GenerateDataKeyWithoutPlaintext</a>
|
|
475
|
-
* </p>
|
|
476
|
-
* </li>
|
|
477
|
-
* </ul>
|
|
478
|
-
*/
|
|
479
|
-
export class KMSClient extends __Client<
|
|
480
|
-
__HttpHandlerOptions,
|
|
481
|
-
ServiceInputTypes,
|
|
482
|
-
ServiceOutputTypes,
|
|
483
|
-
KMSClientResolvedConfig
|
|
484
|
-
> {
|
|
485
|
-
/**
|
|
486
|
-
* The resolved configuration of KMSClient class. This is resolved and normalized from the {@link KMSClientConfig | constructor configuration interface}.
|
|
487
|
-
*/
|
|
488
|
-
readonly config: KMSClientResolvedConfig;
|
|
489
|
-
|
|
490
|
-
constructor(configuration: KMSClientConfig) {
|
|
491
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
492
|
-
const _config_1 = resolveRegionConfig(_config_0);
|
|
493
|
-
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
494
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
495
|
-
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
496
|
-
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
497
|
-
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
498
|
-
super(_config_6);
|
|
499
|
-
this.config = _config_6;
|
|
500
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
501
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
502
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
503
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
504
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
505
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
/**
|
|
509
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
510
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
511
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
512
|
-
*/
|
|
513
|
-
destroy(): void {
|
|
514
|
-
super.destroy();
|
|
515
|
-
}
|
|
516
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient";
|
|
15
|
-
import { CancelKeyDeletionRequest, CancelKeyDeletionResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CancelKeyDeletionCommand,
|
|
18
|
-
serializeAws_json1_1CancelKeyDeletionCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CancelKeyDeletionCommandInput extends CancelKeyDeletionRequest {}
|
|
22
|
-
export interface CancelKeyDeletionCommandOutput extends CancelKeyDeletionResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Cancels the deletion of a KMS key. When this operation succeeds, the key
|
|
26
|
-
* state of the KMS key is <code>Disabled</code>. To enable the KMS key, use <a>EnableKey</a>. </p>
|
|
27
|
-
* <p>For more information about scheduling and canceling deletion of a KMS key, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html">Deleting KMS keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
28
|
-
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
29
|
-
* details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your KMS key</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
30
|
-
* <p>
|
|
31
|
-
* <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
|
|
32
|
-
* <p>
|
|
33
|
-
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CancelKeyDeletion</a> (key policy)</p>
|
|
34
|
-
* <p>
|
|
35
|
-
* <b>Related operations</b>: <a>ScheduleKeyDeletion</a>
|
|
36
|
-
* </p>
|
|
37
|
-
* @example
|
|
38
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
-
* ```javascript
|
|
40
|
-
* import { KMSClient, CancelKeyDeletionCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
41
|
-
* // const { KMSClient, CancelKeyDeletionCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
42
|
-
* const client = new KMSClient(config);
|
|
43
|
-
* const command = new CancelKeyDeletionCommand(input);
|
|
44
|
-
* const response = await client.send(command);
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @see {@link CancelKeyDeletionCommandInput} for command's `input` shape.
|
|
48
|
-
* @see {@link CancelKeyDeletionCommandOutput} for command's `response` shape.
|
|
49
|
-
* @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
export class CancelKeyDeletionCommand extends $Command<
|
|
53
|
-
CancelKeyDeletionCommandInput,
|
|
54
|
-
CancelKeyDeletionCommandOutput,
|
|
55
|
-
KMSClientResolvedConfig
|
|
56
|
-
> {
|
|
57
|
-
// Start section: command_properties
|
|
58
|
-
// End section: command_properties
|
|
59
|
-
|
|
60
|
-
constructor(readonly input: CancelKeyDeletionCommandInput) {
|
|
61
|
-
// Start section: command_constructor
|
|
62
|
-
super();
|
|
63
|
-
// End section: command_constructor
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
69
|
-
resolveMiddleware(
|
|
70
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
71
|
-
configuration: KMSClientResolvedConfig,
|
|
72
|
-
options?: __HttpHandlerOptions
|
|
73
|
-
): Handler<CancelKeyDeletionCommandInput, CancelKeyDeletionCommandOutput> {
|
|
74
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
75
|
-
|
|
76
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
77
|
-
|
|
78
|
-
const { logger } = configuration;
|
|
79
|
-
const clientName = "KMSClient";
|
|
80
|
-
const commandName = "CancelKeyDeletionCommand";
|
|
81
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
82
|
-
logger,
|
|
83
|
-
clientName,
|
|
84
|
-
commandName,
|
|
85
|
-
inputFilterSensitiveLog: CancelKeyDeletionRequest.filterSensitiveLog,
|
|
86
|
-
outputFilterSensitiveLog: CancelKeyDeletionResponse.filterSensitiveLog,
|
|
87
|
-
};
|
|
88
|
-
const { requestHandler } = configuration;
|
|
89
|
-
return stack.resolve(
|
|
90
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
91
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
92
|
-
handlerExecutionContext
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
private serialize(input: CancelKeyDeletionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
97
|
-
return serializeAws_json1_1CancelKeyDeletionCommand(input, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CancelKeyDeletionCommandOutput> {
|
|
101
|
-
return deserializeAws_json1_1CancelKeyDeletionCommand(output, context);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Start section: command_body_extra
|
|
105
|
-
// End section: command_body_extra
|
|
106
|
-
}
|