@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
|
@@ -1,139 +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 { RetireGrantRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1RetireGrantCommand,
|
|
18
|
-
serializeAws_json1_1RetireGrantCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface RetireGrantCommandInput extends RetireGrantRequest {}
|
|
22
|
-
export interface RetireGrantCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To
|
|
26
|
-
* identify the grant to retire, use a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">grant token</a>, or both the grant ID and a
|
|
27
|
-
* key identifier (key ID or key ARN) of the KMS key. The <a>CreateGrant</a> operation returns both values.</p>
|
|
28
|
-
* <p>This operation can be called by the <i>retiring principal</i> for a grant,
|
|
29
|
-
* by the <i>grantee principal</i> if the grant allows the <code>RetireGrant</code>
|
|
30
|
-
* operation, and by the Amazon Web Services account (root user) in which the grant is created. It can also be
|
|
31
|
-
* called by principals to whom permission for retiring a grant is delegated. For details, see
|
|
32
|
-
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
|
|
33
|
-
* revoking grants</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
34
|
-
* <p>For detailed information about grants, including grant terminology, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Using grants</a> in the
|
|
35
|
-
* <i>
|
|
36
|
-
* <i>Key Management Service Developer Guide</i>
|
|
37
|
-
* </i>. For examples of working with grants in several
|
|
38
|
-
* programming languages, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>. </p>
|
|
39
|
-
* <p>
|
|
40
|
-
* <b>Cross-account use</b>: Yes. You can retire a grant on a KMS key
|
|
41
|
-
* in a different Amazon Web Services account.</p>
|
|
42
|
-
* <p>
|
|
43
|
-
* <b>Required permissions:</b>:Permission to retire a grant is
|
|
44
|
-
* determined primarily by the grant. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and revoking grants</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
45
|
-
* <p>
|
|
46
|
-
* <b>Related operations:</b>
|
|
47
|
-
* </p>
|
|
48
|
-
* <ul>
|
|
49
|
-
* <li>
|
|
50
|
-
* <p>
|
|
51
|
-
* <a>CreateGrant</a>
|
|
52
|
-
* </p>
|
|
53
|
-
* </li>
|
|
54
|
-
* <li>
|
|
55
|
-
* <p>
|
|
56
|
-
* <a>ListGrants</a>
|
|
57
|
-
* </p>
|
|
58
|
-
* </li>
|
|
59
|
-
* <li>
|
|
60
|
-
* <p>
|
|
61
|
-
* <a>ListRetirableGrants</a>
|
|
62
|
-
* </p>
|
|
63
|
-
* </li>
|
|
64
|
-
* <li>
|
|
65
|
-
* <p>
|
|
66
|
-
* <a>RevokeGrant</a>
|
|
67
|
-
* </p>
|
|
68
|
-
* </li>
|
|
69
|
-
* </ul>
|
|
70
|
-
* @example
|
|
71
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
72
|
-
* ```javascript
|
|
73
|
-
* import { KMSClient, RetireGrantCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
74
|
-
* // const { KMSClient, RetireGrantCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
75
|
-
* const client = new KMSClient(config);
|
|
76
|
-
* const command = new RetireGrantCommand(input);
|
|
77
|
-
* const response = await client.send(command);
|
|
78
|
-
* ```
|
|
79
|
-
*
|
|
80
|
-
* @see {@link RetireGrantCommandInput} for command's `input` shape.
|
|
81
|
-
* @see {@link RetireGrantCommandOutput} for command's `response` shape.
|
|
82
|
-
* @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
|
|
83
|
-
*
|
|
84
|
-
*/
|
|
85
|
-
export class RetireGrantCommand extends $Command<
|
|
86
|
-
RetireGrantCommandInput,
|
|
87
|
-
RetireGrantCommandOutput,
|
|
88
|
-
KMSClientResolvedConfig
|
|
89
|
-
> {
|
|
90
|
-
// Start section: command_properties
|
|
91
|
-
// End section: command_properties
|
|
92
|
-
|
|
93
|
-
constructor(readonly input: RetireGrantCommandInput) {
|
|
94
|
-
// Start section: command_constructor
|
|
95
|
-
super();
|
|
96
|
-
// End section: command_constructor
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* @internal
|
|
101
|
-
*/
|
|
102
|
-
resolveMiddleware(
|
|
103
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
104
|
-
configuration: KMSClientResolvedConfig,
|
|
105
|
-
options?: __HttpHandlerOptions
|
|
106
|
-
): Handler<RetireGrantCommandInput, RetireGrantCommandOutput> {
|
|
107
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
108
|
-
|
|
109
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
110
|
-
|
|
111
|
-
const { logger } = configuration;
|
|
112
|
-
const clientName = "KMSClient";
|
|
113
|
-
const commandName = "RetireGrantCommand";
|
|
114
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
115
|
-
logger,
|
|
116
|
-
clientName,
|
|
117
|
-
commandName,
|
|
118
|
-
inputFilterSensitiveLog: RetireGrantRequest.filterSensitiveLog,
|
|
119
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
120
|
-
};
|
|
121
|
-
const { requestHandler } = configuration;
|
|
122
|
-
return stack.resolve(
|
|
123
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
124
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
125
|
-
handlerExecutionContext
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
private serialize(input: RetireGrantCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
130
|
-
return serializeAws_json1_1RetireGrantCommand(input, context);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<RetireGrantCommandOutput> {
|
|
134
|
-
return deserializeAws_json1_1RetireGrantCommand(output, context);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// Start section: command_body_extra
|
|
138
|
-
// End section: command_body_extra
|
|
139
|
-
}
|
|
@@ -1,139 +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 { RevokeGrantRequest } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1RevokeGrantCommand,
|
|
18
|
-
serializeAws_json1_1RevokeGrantCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface RevokeGrantCommandInput extends RevokeGrantRequest {}
|
|
22
|
-
export interface RevokeGrantCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes the specified grant. You revoke a grant to terminate the permissions that the
|
|
26
|
-
* grant allows. For more
|
|
27
|
-
* information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/managing-grants.html#grant-delete">Retiring and revoking grants</a> in
|
|
28
|
-
* the <i>
|
|
29
|
-
* <i>Key Management Service Developer Guide</i>
|
|
30
|
-
* </i>.</p>
|
|
31
|
-
* <p>When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until the grant is available throughout KMS. This state is known as <i>eventual consistency</i>. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-eventual-consistency">Eventual consistency</a> in
|
|
32
|
-
* the <i>
|
|
33
|
-
* <i>Key Management Service Developer Guide</i>
|
|
34
|
-
* </i>. </p>
|
|
35
|
-
* <p>For detailed information about grants, including grant terminology, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Using grants</a> in the
|
|
36
|
-
* <i>
|
|
37
|
-
* <i>Key Management Service Developer Guide</i>
|
|
38
|
-
* </i>. For examples of working with grants in several
|
|
39
|
-
* programming languages, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>. </p>
|
|
40
|
-
* <p>
|
|
41
|
-
* <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key
|
|
42
|
-
* ARN in the value of the <code>KeyId</code> parameter.</p>
|
|
43
|
-
* <p>
|
|
44
|
-
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:RevokeGrant</a> (key policy).</p>
|
|
45
|
-
* <p>
|
|
46
|
-
* <b>Related operations:</b>
|
|
47
|
-
* </p>
|
|
48
|
-
* <ul>
|
|
49
|
-
* <li>
|
|
50
|
-
* <p>
|
|
51
|
-
* <a>CreateGrant</a>
|
|
52
|
-
* </p>
|
|
53
|
-
* </li>
|
|
54
|
-
* <li>
|
|
55
|
-
* <p>
|
|
56
|
-
* <a>ListGrants</a>
|
|
57
|
-
* </p>
|
|
58
|
-
* </li>
|
|
59
|
-
* <li>
|
|
60
|
-
* <p>
|
|
61
|
-
* <a>ListRetirableGrants</a>
|
|
62
|
-
* </p>
|
|
63
|
-
* </li>
|
|
64
|
-
* <li>
|
|
65
|
-
* <p>
|
|
66
|
-
* <a>RetireGrant</a>
|
|
67
|
-
* </p>
|
|
68
|
-
* </li>
|
|
69
|
-
* </ul>
|
|
70
|
-
* @example
|
|
71
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
72
|
-
* ```javascript
|
|
73
|
-
* import { KMSClient, RevokeGrantCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
74
|
-
* // const { KMSClient, RevokeGrantCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
75
|
-
* const client = new KMSClient(config);
|
|
76
|
-
* const command = new RevokeGrantCommand(input);
|
|
77
|
-
* const response = await client.send(command);
|
|
78
|
-
* ```
|
|
79
|
-
*
|
|
80
|
-
* @see {@link RevokeGrantCommandInput} for command's `input` shape.
|
|
81
|
-
* @see {@link RevokeGrantCommandOutput} for command's `response` shape.
|
|
82
|
-
* @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
|
|
83
|
-
*
|
|
84
|
-
*/
|
|
85
|
-
export class RevokeGrantCommand extends $Command<
|
|
86
|
-
RevokeGrantCommandInput,
|
|
87
|
-
RevokeGrantCommandOutput,
|
|
88
|
-
KMSClientResolvedConfig
|
|
89
|
-
> {
|
|
90
|
-
// Start section: command_properties
|
|
91
|
-
// End section: command_properties
|
|
92
|
-
|
|
93
|
-
constructor(readonly input: RevokeGrantCommandInput) {
|
|
94
|
-
// Start section: command_constructor
|
|
95
|
-
super();
|
|
96
|
-
// End section: command_constructor
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* @internal
|
|
101
|
-
*/
|
|
102
|
-
resolveMiddleware(
|
|
103
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
104
|
-
configuration: KMSClientResolvedConfig,
|
|
105
|
-
options?: __HttpHandlerOptions
|
|
106
|
-
): Handler<RevokeGrantCommandInput, RevokeGrantCommandOutput> {
|
|
107
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
108
|
-
|
|
109
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
110
|
-
|
|
111
|
-
const { logger } = configuration;
|
|
112
|
-
const clientName = "KMSClient";
|
|
113
|
-
const commandName = "RevokeGrantCommand";
|
|
114
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
115
|
-
logger,
|
|
116
|
-
clientName,
|
|
117
|
-
commandName,
|
|
118
|
-
inputFilterSensitiveLog: RevokeGrantRequest.filterSensitiveLog,
|
|
119
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
120
|
-
};
|
|
121
|
-
const { requestHandler } = configuration;
|
|
122
|
-
return stack.resolve(
|
|
123
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
124
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
125
|
-
handlerExecutionContext
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
private serialize(input: RevokeGrantCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
130
|
-
return serializeAws_json1_1RevokeGrantCommand(input, context);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<RevokeGrantCommandOutput> {
|
|
134
|
-
return deserializeAws_json1_1RevokeGrantCommand(output, context);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// Start section: command_body_extra
|
|
138
|
-
// End section: command_body_extra
|
|
139
|
-
}
|
|
@@ -1,145 +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 { ScheduleKeyDeletionRequest, ScheduleKeyDeletionResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1ScheduleKeyDeletionCommand,
|
|
18
|
-
serializeAws_json1_1ScheduleKeyDeletionCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface ScheduleKeyDeletionCommandInput extends ScheduleKeyDeletionRequest {}
|
|
22
|
-
export interface ScheduleKeyDeletionCommandOutput extends ScheduleKeyDeletionResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Schedules the deletion of a KMS key. By default, KMS applies a waiting
|
|
26
|
-
* period of 30 days, but you can specify a waiting period of 7-30 days. When this operation is
|
|
27
|
-
* successful, the key state of the KMS key changes to <code>PendingDeletion</code> and the key can't
|
|
28
|
-
* be used in any cryptographic operations. It remains in this state for the duration of the
|
|
29
|
-
* waiting period. Before the waiting period ends, you can use <a>CancelKeyDeletion</a> to cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key,
|
|
30
|
-
* its key material, and all KMS data associated with it, including all aliases that refer to
|
|
31
|
-
* it.</p>
|
|
32
|
-
* <important>
|
|
33
|
-
* <p>Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key is
|
|
34
|
-
* deleted, all data that was encrypted under the KMS key is unrecoverable. (The only exception is
|
|
35
|
-
* a multi-Region replica key.) To prevent the use of a KMS key without deleting it, use <a>DisableKey</a>. </p>
|
|
36
|
-
* </important>
|
|
37
|
-
* <p>If you schedule deletion of a KMS key from a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>, when the waiting period
|
|
38
|
-
* expires, <code>ScheduleKeyDeletion</code> deletes the KMS key from KMS. Then KMS makes a best
|
|
39
|
-
* effort to delete the key material from the associated CloudHSM cluster. However, you might need
|
|
40
|
-
* to manually <a href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete the orphaned key
|
|
41
|
-
* material</a> from the cluster and its backups.</p>
|
|
42
|
-
* <p>You can schedule the deletion of a multi-Region primary key and its replica keys at any
|
|
43
|
-
* time. However, KMS will not delete a multi-Region primary key with existing replica keys. If
|
|
44
|
-
* you schedule the deletion of a primary key with replicas, its key state changes to
|
|
45
|
-
* <code>PendingReplicaDeletion</code> and it cannot be replicated or used in cryptographic
|
|
46
|
-
* operations. This status can continue indefinitely. When the last of its replicas keys is
|
|
47
|
-
* deleted (not just scheduled), the key state of the primary key changes to
|
|
48
|
-
* <code>PendingDeletion</code> and its waiting period (<code>PendingWindowInDays</code>)
|
|
49
|
-
* begins. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html">Deleting multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>. </p>
|
|
50
|
-
* <p>For more information about scheduling a KMS key for deletion, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html">Deleting KMS keys</a> in the
|
|
51
|
-
* <i>Key Management Service Developer Guide</i>.</p>
|
|
52
|
-
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
53
|
-
* 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>
|
|
54
|
-
*
|
|
55
|
-
* <p>
|
|
56
|
-
* <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* <p>
|
|
60
|
-
* <b>Required permissions</b>: kms:ScheduleKeyDeletion (key policy)</p>
|
|
61
|
-
* <p>
|
|
62
|
-
* <b>Related operations</b>
|
|
63
|
-
* </p>
|
|
64
|
-
* <ul>
|
|
65
|
-
* <li>
|
|
66
|
-
* <p>
|
|
67
|
-
* <a>CancelKeyDeletion</a>
|
|
68
|
-
* </p>
|
|
69
|
-
* </li>
|
|
70
|
-
* <li>
|
|
71
|
-
* <p>
|
|
72
|
-
* <a>DisableKey</a>
|
|
73
|
-
* </p>
|
|
74
|
-
* </li>
|
|
75
|
-
* </ul>
|
|
76
|
-
* @example
|
|
77
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
78
|
-
* ```javascript
|
|
79
|
-
* import { KMSClient, ScheduleKeyDeletionCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
80
|
-
* // const { KMSClient, ScheduleKeyDeletionCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
81
|
-
* const client = new KMSClient(config);
|
|
82
|
-
* const command = new ScheduleKeyDeletionCommand(input);
|
|
83
|
-
* const response = await client.send(command);
|
|
84
|
-
* ```
|
|
85
|
-
*
|
|
86
|
-
* @see {@link ScheduleKeyDeletionCommandInput} for command's `input` shape.
|
|
87
|
-
* @see {@link ScheduleKeyDeletionCommandOutput} for command's `response` shape.
|
|
88
|
-
* @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
|
|
89
|
-
*
|
|
90
|
-
*/
|
|
91
|
-
export class ScheduleKeyDeletionCommand extends $Command<
|
|
92
|
-
ScheduleKeyDeletionCommandInput,
|
|
93
|
-
ScheduleKeyDeletionCommandOutput,
|
|
94
|
-
KMSClientResolvedConfig
|
|
95
|
-
> {
|
|
96
|
-
// Start section: command_properties
|
|
97
|
-
// End section: command_properties
|
|
98
|
-
|
|
99
|
-
constructor(readonly input: ScheduleKeyDeletionCommandInput) {
|
|
100
|
-
// Start section: command_constructor
|
|
101
|
-
super();
|
|
102
|
-
// End section: command_constructor
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @internal
|
|
107
|
-
*/
|
|
108
|
-
resolveMiddleware(
|
|
109
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
110
|
-
configuration: KMSClientResolvedConfig,
|
|
111
|
-
options?: __HttpHandlerOptions
|
|
112
|
-
): Handler<ScheduleKeyDeletionCommandInput, ScheduleKeyDeletionCommandOutput> {
|
|
113
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
114
|
-
|
|
115
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
116
|
-
|
|
117
|
-
const { logger } = configuration;
|
|
118
|
-
const clientName = "KMSClient";
|
|
119
|
-
const commandName = "ScheduleKeyDeletionCommand";
|
|
120
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
121
|
-
logger,
|
|
122
|
-
clientName,
|
|
123
|
-
commandName,
|
|
124
|
-
inputFilterSensitiveLog: ScheduleKeyDeletionRequest.filterSensitiveLog,
|
|
125
|
-
outputFilterSensitiveLog: ScheduleKeyDeletionResponse.filterSensitiveLog,
|
|
126
|
-
};
|
|
127
|
-
const { requestHandler } = configuration;
|
|
128
|
-
return stack.resolve(
|
|
129
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
130
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
131
|
-
handlerExecutionContext
|
|
132
|
-
);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
private serialize(input: ScheduleKeyDeletionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
136
|
-
return serializeAws_json1_1ScheduleKeyDeletionCommand(input, context);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ScheduleKeyDeletionCommandOutput> {
|
|
140
|
-
return deserializeAws_json1_1ScheduleKeyDeletionCommand(output, context);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// Start section: command_body_extra
|
|
144
|
-
// End section: command_body_extra
|
|
145
|
-
}
|
|
@@ -1,132 +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 { SignRequest, SignResponse } from "../models/models_0";
|
|
16
|
-
import { deserializeAws_json1_1SignCommand, serializeAws_json1_1SignCommand } from "../protocols/Aws_json1_1";
|
|
17
|
-
|
|
18
|
-
export interface SignCommandInput extends SignRequest {}
|
|
19
|
-
export interface SignCommandOutput extends SignResponse, __MetadataBearer {}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* <p>Creates a <a href="https://en.wikipedia.org/wiki/Digital_signature">digital
|
|
23
|
-
* signature</a> for a message or message digest by using the private key in an asymmetric KMS key. To verify the signature, use the <a>Verify</a> operation, or use the public
|
|
24
|
-
* key in the same asymmetric KMS key outside of KMS. For information about symmetric and asymmetric KMS keys, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using Symmetric and Asymmetric KMS keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
25
|
-
* <p>Digital signatures are generated and verified by using asymmetric key pair, such as an RSA
|
|
26
|
-
* or ECC pair that is represented by an asymmetric KMS key. The key owner (or
|
|
27
|
-
* an authorized user) uses their private key to sign a message. Anyone with the public key can
|
|
28
|
-
* verify that the message was signed with that particular private key and that the message
|
|
29
|
-
* hasn't changed since it was signed. </p>
|
|
30
|
-
* <p>To use the <code>Sign</code> operation, provide the following information:</p>
|
|
31
|
-
* <ul>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>Use the <code>KeyId</code> parameter to identify an asymmetric KMS key with a
|
|
34
|
-
* <code>KeyUsage</code> value of <code>SIGN_VERIFY</code>. To get the
|
|
35
|
-
* <code>KeyUsage</code> value of a KMS key, use the <a>DescribeKey</a> operation.
|
|
36
|
-
* The caller must have <code>kms:Sign</code> permission on the KMS key.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>Use the <code>Message</code> parameter to specify the message or message digest to
|
|
40
|
-
* sign. You can submit messages of up to 4096 bytes. To sign a larger message, generate a
|
|
41
|
-
* hash digest of the message, and then provide the hash digest in the <code>Message</code>
|
|
42
|
-
* parameter. To indicate whether the message is a full message or a digest, use the
|
|
43
|
-
* <code>MessageType</code> parameter.</p>
|
|
44
|
-
* </li>
|
|
45
|
-
* <li>
|
|
46
|
-
* <p>Choose a signing algorithm that is compatible with the KMS key. </p>
|
|
47
|
-
* </li>
|
|
48
|
-
* </ul>
|
|
49
|
-
* <important>
|
|
50
|
-
* <p>When signing a message, be sure to record the KMS key and the signing algorithm. This
|
|
51
|
-
* information is required to verify the signature.</p>
|
|
52
|
-
* </important>
|
|
53
|
-
* <p>To verify the signature that this operation generates, use the <a>Verify</a>
|
|
54
|
-
* operation. Or use the <a>GetPublicKey</a> operation to download the public key and
|
|
55
|
-
* then use the public key to verify the signature outside of KMS. </p>
|
|
56
|
-
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
57
|
-
* 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>
|
|
58
|
-
* <p>
|
|
59
|
-
* <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify
|
|
60
|
-
* the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.</p>
|
|
61
|
-
*
|
|
62
|
-
* <p>
|
|
63
|
-
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Sign</a> (key policy)</p>
|
|
64
|
-
* <p>
|
|
65
|
-
* <b>Related operations</b>: <a>Verify</a>
|
|
66
|
-
* </p>
|
|
67
|
-
* @example
|
|
68
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
69
|
-
* ```javascript
|
|
70
|
-
* import { KMSClient, SignCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
71
|
-
* // const { KMSClient, SignCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
72
|
-
* const client = new KMSClient(config);
|
|
73
|
-
* const command = new SignCommand(input);
|
|
74
|
-
* const response = await client.send(command);
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
77
|
-
* @see {@link SignCommandInput} for command's `input` shape.
|
|
78
|
-
* @see {@link SignCommandOutput} for command's `response` shape.
|
|
79
|
-
* @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
|
|
80
|
-
*
|
|
81
|
-
*/
|
|
82
|
-
export class SignCommand extends $Command<SignCommandInput, SignCommandOutput, KMSClientResolvedConfig> {
|
|
83
|
-
// Start section: command_properties
|
|
84
|
-
// End section: command_properties
|
|
85
|
-
|
|
86
|
-
constructor(readonly input: SignCommandInput) {
|
|
87
|
-
// Start section: command_constructor
|
|
88
|
-
super();
|
|
89
|
-
// End section: command_constructor
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @internal
|
|
94
|
-
*/
|
|
95
|
-
resolveMiddleware(
|
|
96
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
97
|
-
configuration: KMSClientResolvedConfig,
|
|
98
|
-
options?: __HttpHandlerOptions
|
|
99
|
-
): Handler<SignCommandInput, SignCommandOutput> {
|
|
100
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
101
|
-
|
|
102
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
103
|
-
|
|
104
|
-
const { logger } = configuration;
|
|
105
|
-
const clientName = "KMSClient";
|
|
106
|
-
const commandName = "SignCommand";
|
|
107
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
108
|
-
logger,
|
|
109
|
-
clientName,
|
|
110
|
-
commandName,
|
|
111
|
-
inputFilterSensitiveLog: SignRequest.filterSensitiveLog,
|
|
112
|
-
outputFilterSensitiveLog: SignResponse.filterSensitiveLog,
|
|
113
|
-
};
|
|
114
|
-
const { requestHandler } = configuration;
|
|
115
|
-
return stack.resolve(
|
|
116
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
117
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
118
|
-
handlerExecutionContext
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
private serialize(input: SignCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
123
|
-
return serializeAws_json1_1SignCommand(input, context);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<SignCommandOutput> {
|
|
127
|
-
return deserializeAws_json1_1SignCommand(output, context);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// Start section: command_body_extra
|
|
131
|
-
// End section: command_body_extra
|
|
132
|
-
}
|