@aws-sdk/client-kms 3.32.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 +45 -0
- package/README.md +8 -7
- package/{dist/cjs → dist-cjs}/KMS.js +9 -9
- package/{dist/cjs → dist-cjs}/KMSClient.js +16 -16
- package/{dist/cjs → dist-cjs}/commands/CancelKeyDeletionCommand.js +8 -7
- package/{dist/cjs → dist-cjs}/commands/ConnectCustomKeyStoreCommand.js +5 -6
- package/{dist/cjs → dist-cjs}/commands/CreateAliasCommand.js +13 -10
- package/{dist/cjs → dist-cjs}/commands/CreateCustomKeyStoreCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateGrantCommand.js +16 -14
- package/{dist/cjs → dist-cjs}/commands/CreateKeyCommand.js +18 -17
- package/{dist/cjs → dist-cjs}/commands/DecryptCommand.js +26 -24
- package/{dist/cjs → dist-cjs}/commands/DeleteAliasCommand.js +13 -10
- package/{dist/cjs → dist-cjs}/commands/DeleteCustomKeyStoreCommand.js +12 -14
- package/{dist/cjs → dist-cjs}/commands/DeleteImportedKeyMaterialCommand.js +7 -9
- package/{dist/cjs → dist-cjs}/commands/DescribeCustomKeyStoresCommand.js +6 -7
- package/{dist/cjs → dist-cjs}/commands/DescribeKeyCommand.js +14 -13
- package/{dist/cjs → dist-cjs}/commands/DisableKeyCommand.js +7 -7
- package/{dist/cjs → dist-cjs}/commands/DisableKeyRotationCommand.js +4 -4
- package/{dist/cjs → dist-cjs}/commands/DisconnectCustomKeyStoreCommand.js +8 -7
- package/{dist/cjs → dist-cjs}/commands/EnableKeyCommand.js +6 -5
- package/{dist/cjs → dist-cjs}/commands/EnableKeyRotationCommand.js +4 -4
- package/{dist/cjs → dist-cjs}/commands/EncryptCommand.js +16 -15
- package/{dist/cjs → dist-cjs}/commands/GenerateDataKeyCommand.js +17 -15
- package/{dist/cjs → dist-cjs}/commands/GenerateDataKeyPairCommand.js +17 -16
- package/{dist/cjs → dist-cjs}/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +18 -16
- package/{dist/cjs → dist-cjs}/commands/GenerateDataKeyWithoutPlaintextCommand.js +13 -12
- package/{dist/cjs → dist-cjs}/commands/GenerateRandomCommand.js +4 -4
- package/{dist/cjs → dist-cjs}/commands/GetKeyPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetKeyRotationStatusCommand.js +4 -4
- package/{dist/cjs → dist-cjs}/commands/GetParametersForImportCommand.js +9 -11
- package/{dist/cjs → dist-cjs}/commands/GetPublicKeyCommand.js +9 -8
- package/{dist/cjs → dist-cjs}/commands/ImportKeyMaterialCommand.js +15 -16
- package/{dist/cjs → dist-cjs}/commands/ListAliasesCommand.js +15 -13
- package/{dist/cjs → dist-cjs}/commands/ListGrantsCommand.js +4 -5
- package/{dist/cjs → dist-cjs}/commands/ListKeyPoliciesCommand.js +5 -6
- package/{dist/cjs → dist-cjs}/commands/ListKeysCommand.js +3 -5
- package/{dist/cjs → dist-cjs}/commands/ListResourceTagsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListRetirableGrantsCommand.js +9 -9
- package/{dist/cjs → dist-cjs}/commands/PutKeyPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ReEncryptCommand.js +35 -30
- package/{dist/cjs → dist-cjs}/commands/ReplicateKeyCommand.js +7 -8
- package/{dist/cjs → dist-cjs}/commands/RetireGrantCommand.js +9 -8
- package/{dist/cjs → dist-cjs}/commands/RevokeGrantCommand.js +3 -5
- package/{dist/cjs → dist-cjs}/commands/ScheduleKeyDeletionCommand.js +21 -18
- package/{dist/cjs → dist-cjs}/commands/SignCommand.js +12 -12
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +8 -7
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +5 -6
- package/{dist/cjs → dist-cjs}/commands/UpdateAliasCommand.js +17 -14
- package/{dist/cjs → dist-cjs}/commands/UpdateCustomKeyStoreCommand.js +19 -20
- package/{dist/cjs → dist-cjs}/commands/UpdateKeyDescriptionCommand.js +5 -6
- package/{dist/cjs → dist-cjs}/commands/UpdatePrimaryRegionCommand.js +3 -4
- package/{dist/cjs → dist-cjs}/commands/VerifyCommand.js +7 -8
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListAliasesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListGrantsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListKeyPoliciesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListKeysPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/KMS.js +2 -94
- package/dist-es/KMSClient.js +37 -0
- package/dist-es/commands/CancelKeyDeletionCommand.js +39 -0
- package/dist-es/commands/ConnectCustomKeyStoreCommand.js +39 -0
- package/dist-es/commands/CreateAliasCommand.js +39 -0
- package/dist-es/commands/CreateCustomKeyStoreCommand.js +39 -0
- package/dist-es/commands/CreateGrantCommand.js +39 -0
- package/dist-es/commands/CreateKeyCommand.js +39 -0
- package/dist-es/commands/DecryptCommand.js +39 -0
- package/dist-es/commands/DeleteAliasCommand.js +39 -0
- package/dist-es/commands/DeleteCustomKeyStoreCommand.js +39 -0
- package/dist-es/commands/DeleteImportedKeyMaterialCommand.js +39 -0
- package/dist-es/commands/DescribeCustomKeyStoresCommand.js +39 -0
- package/dist-es/commands/DescribeKeyCommand.js +39 -0
- package/dist-es/commands/DisableKeyCommand.js +39 -0
- package/dist-es/commands/DisableKeyRotationCommand.js +39 -0
- package/dist-es/commands/DisconnectCustomKeyStoreCommand.js +39 -0
- package/dist-es/commands/EnableKeyCommand.js +39 -0
- package/dist-es/commands/EnableKeyRotationCommand.js +39 -0
- package/dist-es/commands/EncryptCommand.js +39 -0
- package/dist-es/commands/GenerateDataKeyCommand.js +39 -0
- package/dist-es/commands/GenerateDataKeyPairCommand.js +39 -0
- package/dist-es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +39 -0
- package/dist-es/commands/GenerateDataKeyWithoutPlaintextCommand.js +39 -0
- package/dist-es/commands/GenerateRandomCommand.js +39 -0
- package/{dist/es → dist-es}/commands/GetKeyPolicyCommand.js +4 -38
- package/dist-es/commands/GetKeyRotationStatusCommand.js +39 -0
- package/dist-es/commands/GetParametersForImportCommand.js +39 -0
- package/dist-es/commands/GetPublicKeyCommand.js +39 -0
- package/dist-es/commands/ImportKeyMaterialCommand.js +39 -0
- package/dist-es/commands/ListAliasesCommand.js +39 -0
- package/dist-es/commands/ListGrantsCommand.js +39 -0
- package/dist-es/commands/ListKeyPoliciesCommand.js +39 -0
- package/dist-es/commands/ListKeysCommand.js +39 -0
- package/dist-es/commands/ListResourceTagsCommand.js +39 -0
- package/dist-es/commands/ListRetirableGrantsCommand.js +39 -0
- package/dist-es/commands/PutKeyPolicyCommand.js +39 -0
- package/dist-es/commands/ReEncryptCommand.js +39 -0
- package/dist-es/commands/ReplicateKeyCommand.js +39 -0
- package/dist-es/commands/RetireGrantCommand.js +39 -0
- package/dist-es/commands/RevokeGrantCommand.js +39 -0
- package/dist-es/commands/ScheduleKeyDeletionCommand.js +39 -0
- package/dist-es/commands/SignCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateAliasCommand.js +39 -0
- package/dist-es/commands/UpdateCustomKeyStoreCommand.js +39 -0
- package/dist-es/commands/UpdateKeyDescriptionCommand.js +39 -0
- package/dist-es/commands/UpdatePrimaryRegionCommand.js +39 -0
- package/dist-es/commands/VerifyCommand.js +39 -0
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -367
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListAliasesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListGrantsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListKeyPoliciesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListKeysPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +1615 -1621
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/KMS.d.ts +398 -336
- package/{dist/types → dist-types}/KMSClient.d.ts +16 -15
- package/{dist/types → dist-types}/commands/CancelKeyDeletionCommand.d.ts +8 -6
- package/{dist/types → dist-types}/commands/ConnectCustomKeyStoreCommand.d.ts +5 -5
- package/{dist/types → dist-types}/commands/CreateAliasCommand.d.ts +13 -9
- package/{dist/types → dist-types}/commands/CreateCustomKeyStoreCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateGrantCommand.d.ts +16 -13
- package/{dist/types → dist-types}/commands/CreateKeyCommand.d.ts +18 -16
- package/{dist/types → dist-types}/commands/DecryptCommand.d.ts +26 -23
- package/{dist/types → dist-types}/commands/DeleteAliasCommand.d.ts +13 -9
- package/{dist/types → dist-types}/commands/DeleteCustomKeyStoreCommand.d.ts +12 -13
- package/{dist/types → dist-types}/commands/DeleteImportedKeyMaterialCommand.d.ts +7 -8
- package/{dist/types → dist-types}/commands/DescribeCustomKeyStoresCommand.d.ts +6 -6
- package/{dist/types → dist-types}/commands/DescribeKeyCommand.d.ts +14 -12
- package/{dist/types → dist-types}/commands/DisableKeyCommand.d.ts +7 -6
- package/{dist/types → dist-types}/commands/DisableKeyRotationCommand.d.ts +4 -3
- package/{dist/types → dist-types}/commands/DisconnectCustomKeyStoreCommand.d.ts +8 -6
- package/{dist/types → dist-types}/commands/EnableKeyCommand.d.ts +6 -4
- package/{dist/types → dist-types}/commands/EnableKeyRotationCommand.d.ts +4 -3
- package/{dist/types → dist-types}/commands/EncryptCommand.d.ts +16 -14
- package/{dist/types → dist-types}/commands/GenerateDataKeyCommand.d.ts +17 -14
- package/{dist/types → dist-types}/commands/GenerateDataKeyPairCommand.d.ts +17 -15
- package/{dist/types → dist-types}/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +18 -15
- package/{dist/types → dist-types}/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +13 -11
- package/{dist/types → dist-types}/commands/GenerateRandomCommand.d.ts +4 -3
- package/{dist/types → dist-types}/commands/GetKeyPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetKeyRotationStatusCommand.d.ts +4 -3
- package/{dist/types → dist-types}/commands/GetParametersForImportCommand.d.ts +9 -10
- package/{dist/types → dist-types}/commands/GetPublicKeyCommand.d.ts +9 -7
- package/{dist/types → dist-types}/commands/ImportKeyMaterialCommand.d.ts +15 -15
- package/{dist/types → dist-types}/commands/ListAliasesCommand.d.ts +15 -12
- package/{dist/types → dist-types}/commands/ListGrantsCommand.d.ts +4 -4
- package/{dist/types → dist-types}/commands/ListKeyPoliciesCommand.d.ts +5 -5
- package/{dist/types → dist-types}/commands/ListKeysCommand.d.ts +3 -4
- package/{dist/types → dist-types}/commands/ListResourceTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListRetirableGrantsCommand.d.ts +9 -8
- package/{dist/types → dist-types}/commands/PutKeyPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ReEncryptCommand.d.ts +35 -29
- package/{dist/types → dist-types}/commands/ReplicateKeyCommand.d.ts +7 -7
- package/{dist/types → dist-types}/commands/RetireGrantCommand.d.ts +9 -7
- package/{dist/types → dist-types}/commands/RevokeGrantCommand.d.ts +3 -4
- package/{dist/types → dist-types}/commands/ScheduleKeyDeletionCommand.d.ts +21 -17
- package/{dist/types → dist-types}/commands/SignCommand.d.ts +12 -11
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +8 -6
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +5 -5
- package/{dist/types → dist-types}/commands/UpdateAliasCommand.d.ts +17 -13
- package/{dist/types → dist-types}/commands/UpdateCustomKeyStoreCommand.d.ts +19 -19
- package/{dist/types → dist-types}/commands/UpdateKeyDescriptionCommand.d.ts +5 -5
- package/{dist/types → dist-types}/commands/UpdatePrimaryRegionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/VerifyCommand.d.ts +7 -7
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +296 -249
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAliasesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListGrantsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListKeyPoliciesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListKeysPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +2 -1
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/KMS.d.ts +398 -336
- package/{dist/types → dist-types}/ts3.4/KMSClient.d.ts +16 -15
- package/{dist/types → dist-types}/ts3.4/commands/CancelKeyDeletionCommand.d.ts +8 -6
- package/{dist/types → dist-types}/ts3.4/commands/ConnectCustomKeyStoreCommand.d.ts +5 -5
- package/{dist/types → dist-types}/ts3.4/commands/CreateAliasCommand.d.ts +13 -9
- package/{dist/types → dist-types}/ts3.4/commands/CreateCustomKeyStoreCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateGrantCommand.d.ts +16 -13
- package/{dist/types → dist-types}/ts3.4/commands/CreateKeyCommand.d.ts +18 -16
- package/{dist/types → dist-types}/ts3.4/commands/DecryptCommand.d.ts +26 -23
- package/{dist/types → dist-types}/ts3.4/commands/DeleteAliasCommand.d.ts +13 -9
- package/{dist/types → dist-types}/ts3.4/commands/DeleteCustomKeyStoreCommand.d.ts +12 -13
- package/{dist/types → dist-types}/ts3.4/commands/DeleteImportedKeyMaterialCommand.d.ts +7 -8
- package/{dist/types → dist-types}/ts3.4/commands/DescribeCustomKeyStoresCommand.d.ts +6 -6
- package/{dist/types → dist-types}/ts3.4/commands/DescribeKeyCommand.d.ts +14 -12
- package/{dist/types → dist-types}/ts3.4/commands/DisableKeyCommand.d.ts +7 -6
- package/{dist/types → dist-types}/ts3.4/commands/DisableKeyRotationCommand.d.ts +4 -3
- package/{dist/types → dist-types}/ts3.4/commands/DisconnectCustomKeyStoreCommand.d.ts +8 -6
- package/{dist/types → dist-types}/ts3.4/commands/EnableKeyCommand.d.ts +6 -4
- package/{dist/types → dist-types}/ts3.4/commands/EnableKeyRotationCommand.d.ts +4 -3
- package/{dist/types → dist-types}/ts3.4/commands/EncryptCommand.d.ts +16 -14
- package/{dist/types → dist-types}/ts3.4/commands/GenerateDataKeyCommand.d.ts +17 -14
- package/{dist/types → dist-types}/ts3.4/commands/GenerateDataKeyPairCommand.d.ts +17 -15
- package/{dist/types → dist-types}/ts3.4/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +18 -15
- package/{dist/types → dist-types}/ts3.4/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +13 -11
- package/{dist/types → dist-types}/ts3.4/commands/GenerateRandomCommand.d.ts +4 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetKeyPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetKeyRotationStatusCommand.d.ts +4 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetParametersForImportCommand.d.ts +9 -10
- package/{dist/types → dist-types}/ts3.4/commands/GetPublicKeyCommand.d.ts +9 -7
- package/{dist/types → dist-types}/ts3.4/commands/ImportKeyMaterialCommand.d.ts +15 -15
- package/{dist/types → dist-types}/ts3.4/commands/ListAliasesCommand.d.ts +15 -12
- package/{dist/types → dist-types}/ts3.4/commands/ListGrantsCommand.d.ts +4 -4
- package/{dist/types → dist-types}/ts3.4/commands/ListKeyPoliciesCommand.d.ts +5 -5
- package/{dist/types → dist-types}/ts3.4/commands/ListKeysCommand.d.ts +3 -4
- package/{dist/types → dist-types}/ts3.4/commands/ListResourceTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListRetirableGrantsCommand.d.ts +9 -8
- package/{dist/types → dist-types}/ts3.4/commands/PutKeyPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ReEncryptCommand.d.ts +35 -29
- package/{dist/types → dist-types}/ts3.4/commands/ReplicateKeyCommand.d.ts +7 -7
- package/{dist/types → dist-types}/ts3.4/commands/RetireGrantCommand.d.ts +9 -7
- package/{dist/types → dist-types}/ts3.4/commands/RevokeGrantCommand.d.ts +3 -4
- package/{dist/types → dist-types}/ts3.4/commands/ScheduleKeyDeletionCommand.d.ts +21 -17
- package/{dist/types → dist-types}/ts3.4/commands/SignCommand.d.ts +12 -11
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +8 -6
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +5 -5
- package/{dist/types → dist-types}/ts3.4/commands/UpdateAliasCommand.d.ts +17 -13
- package/{dist/types → dist-types}/ts3.4/commands/UpdateCustomKeyStoreCommand.d.ts +19 -19
- package/{dist/types → dist-types}/ts3.4/commands/UpdateKeyDescriptionCommand.d.ts +5 -5
- package/{dist/types → dist-types}/ts3.4/commands/UpdatePrimaryRegionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/VerifyCommand.d.ts +7 -7
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +296 -249
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAliasesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListGrantsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListKeyPoliciesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListKeysPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -1
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/KMS.ts +0 -4018
- package/KMSClient.ts +0 -515
- package/commands/CancelKeyDeletionCommand.ts +0 -105
- package/commands/ConnectCustomKeyStoreCommand.ts +0 -155
- package/commands/CreateAliasCommand.ts +0 -147
- package/commands/CreateCustomKeyStoreCommand.ts +0 -143
- package/commands/CreateGrantCommand.ts +0 -153
- package/commands/CreateKeyCommand.ts +0 -209
- package/commands/DecryptCommand.ts +0 -172
- package/commands/DeleteAliasCommand.ts +0 -137
- package/commands/DeleteCustomKeyStoreCommand.ts +0 -149
- package/commands/DeleteImportedKeyMaterialCommand.ts +0 -127
- package/commands/DescribeCustomKeyStoresCommand.ts +0 -147
- package/commands/DescribeKeyCommand.ts +0 -171
- package/commands/DisableKeyCommand.ts +0 -108
- package/commands/DisableKeyRotationCommand.ts +0 -118
- package/commands/DisconnectCustomKeyStoreCommand.ts +0 -144
- package/commands/EnableKeyCommand.ts +0 -97
- package/commands/EnableKeyRotationCommand.ts +0 -118
- package/commands/EncryptCommand.ts +0 -209
- package/commands/GenerateDataKeyCommand.ts +0 -188
- package/commands/GenerateDataKeyPairCommand.ts +0 -168
- package/commands/GenerateDataKeyPairWithoutPlaintextCommand.ts +0 -168
- package/commands/GenerateDataKeyWithoutPlaintextCommand.ts +0 -171
- package/commands/GenerateRandomCommand.ts +0 -102
- package/commands/GetKeyPolicyCommand.ts +0 -102
- package/commands/GetKeyRotationStatusCommand.ts +0 -130
- package/commands/GetParametersForImportCommand.ts +0 -129
- package/commands/GetPublicKeyCommand.ts +0 -138
- package/commands/ImportKeyMaterialCommand.ts +0 -157
- package/commands/ListAliasesCommand.ts +0 -133
- package/commands/ListGrantsCommand.ts +0 -139
- package/commands/ListKeyPoliciesCommand.ts +0 -116
- package/commands/ListKeysCommand.ts +0 -118
- package/commands/ListResourceTagsCommand.ts +0 -128
- package/commands/ListRetirableGrantsCommand.ts +0 -136
- package/commands/PutKeyPolicyCommand.ts +0 -107
- package/commands/ReEncryptCommand.ts +0 -179
- package/commands/ReplicateKeyCommand.ts +0 -171
- package/commands/RetireGrantCommand.ts +0 -138
- package/commands/RevokeGrantCommand.ts +0 -138
- package/commands/ScheduleKeyDeletionCommand.ts +0 -144
- package/commands/SignCommand.ts +0 -131
- package/commands/TagResourceCommand.ts +0 -139
- package/commands/UntagResourceCommand.ts +0 -137
- package/commands/UpdateAliasCommand.ts +0 -152
- package/commands/UpdateCustomKeyStoreCommand.ts +0 -166
- package/commands/UpdateKeyDescriptionCommand.ts +0 -117
- package/commands/UpdatePrimaryRegionCommand.ts +0 -159
- package/commands/VerifyCommand.ts +0 -117
- 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/package.json +0 -91
- 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 +0 -134
- package/dist/es/KMSClient.js.map +0 -1
- package/dist/es/commands/CancelKeyDeletionCommand.js +0 -76
- package/dist/es/commands/CancelKeyDeletionCommand.js.map +0 -1
- package/dist/es/commands/ConnectCustomKeyStoreCommand.js +0 -126
- package/dist/es/commands/ConnectCustomKeyStoreCommand.js.map +0 -1
- package/dist/es/commands/CreateAliasCommand.js +0 -118
- package/dist/es/commands/CreateAliasCommand.js.map +0 -1
- package/dist/es/commands/CreateCustomKeyStoreCommand.js +0 -114
- package/dist/es/commands/CreateCustomKeyStoreCommand.js.map +0 -1
- package/dist/es/commands/CreateGrantCommand.js +0 -124
- package/dist/es/commands/CreateGrantCommand.js.map +0 -1
- package/dist/es/commands/CreateKeyCommand.js +0 -187
- package/dist/es/commands/CreateKeyCommand.js.map +0 -1
- package/dist/es/commands/DecryptCommand.js +0 -150
- package/dist/es/commands/DecryptCommand.js.map +0 -1
- package/dist/es/commands/DeleteAliasCommand.js +0 -108
- package/dist/es/commands/DeleteAliasCommand.js.map +0 -1
- package/dist/es/commands/DeleteCustomKeyStoreCommand.js +0 -120
- package/dist/es/commands/DeleteCustomKeyStoreCommand.js.map +0 -1
- package/dist/es/commands/DeleteImportedKeyMaterialCommand.js +0 -95
- package/dist/es/commands/DeleteImportedKeyMaterialCommand.js.map +0 -1
- package/dist/es/commands/DescribeCustomKeyStoresCommand.js +0 -118
- package/dist/es/commands/DescribeCustomKeyStoresCommand.js.map +0 -1
- package/dist/es/commands/DescribeKeyCommand.js +0 -142
- package/dist/es/commands/DescribeKeyCommand.js.map +0 -1
- package/dist/es/commands/DisableKeyCommand.js +0 -79
- package/dist/es/commands/DisableKeyCommand.js.map +0 -1
- package/dist/es/commands/DisableKeyRotationCommand.js +0 -89
- package/dist/es/commands/DisableKeyRotationCommand.js.map +0 -1
- package/dist/es/commands/DisconnectCustomKeyStoreCommand.js +0 -115
- package/dist/es/commands/DisconnectCustomKeyStoreCommand.js.map +0 -1
- package/dist/es/commands/EnableKeyCommand.js +0 -75
- package/dist/es/commands/EnableKeyCommand.js.map +0 -1
- package/dist/es/commands/EnableKeyRotationCommand.js +0 -89
- package/dist/es/commands/EnableKeyRotationCommand.js.map +0 -1
- package/dist/es/commands/EncryptCommand.js +0 -187
- package/dist/es/commands/EncryptCommand.js.map +0 -1
- package/dist/es/commands/GenerateDataKeyCommand.js +0 -159
- package/dist/es/commands/GenerateDataKeyCommand.js.map +0 -1
- package/dist/es/commands/GenerateDataKeyPairCommand.js +0 -139
- package/dist/es/commands/GenerateDataKeyPairCommand.js.map +0 -1
- package/dist/es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +0 -128
- package/dist/es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js.map +0 -1
- package/dist/es/commands/GenerateDataKeyWithoutPlaintextCommand.js +0 -134
- package/dist/es/commands/GenerateDataKeyWithoutPlaintextCommand.js.map +0 -1
- package/dist/es/commands/GenerateRandomCommand.js +0 -73
- package/dist/es/commands/GenerateRandomCommand.js.map +0 -1
- package/dist/es/commands/GetKeyPolicyCommand.js.map +0 -1
- package/dist/es/commands/GetKeyRotationStatusCommand.js +0 -101
- package/dist/es/commands/GetKeyRotationStatusCommand.js.map +0 -1
- package/dist/es/commands/GetParametersForImportCommand.js +0 -100
- package/dist/es/commands/GetParametersForImportCommand.js.map +0 -1
- package/dist/es/commands/GetPublicKeyCommand.js +0 -109
- package/dist/es/commands/GetPublicKeyCommand.js.map +0 -1
- package/dist/es/commands/ImportKeyMaterialCommand.js +0 -128
- package/dist/es/commands/ImportKeyMaterialCommand.js.map +0 -1
- package/dist/es/commands/ListAliasesCommand.js +0 -104
- package/dist/es/commands/ListAliasesCommand.js.map +0 -1
- package/dist/es/commands/ListGrantsCommand.js +0 -110
- package/dist/es/commands/ListGrantsCommand.js.map +0 -1
- package/dist/es/commands/ListKeyPoliciesCommand.js +0 -87
- package/dist/es/commands/ListKeyPoliciesCommand.js.map +0 -1
- package/dist/es/commands/ListKeysCommand.js +0 -96
- package/dist/es/commands/ListKeysCommand.js.map +0 -1
- package/dist/es/commands/ListResourceTagsCommand.js +0 -99
- package/dist/es/commands/ListResourceTagsCommand.js.map +0 -1
- package/dist/es/commands/ListRetirableGrantsCommand.js +0 -107
- package/dist/es/commands/ListRetirableGrantsCommand.js.map +0 -1
- package/dist/es/commands/PutKeyPolicyCommand.js +0 -78
- package/dist/es/commands/PutKeyPolicyCommand.js.map +0 -1
- package/dist/es/commands/ReEncryptCommand.js +0 -157
- package/dist/es/commands/ReEncryptCommand.js.map +0 -1
- package/dist/es/commands/ReplicateKeyCommand.js +0 -142
- package/dist/es/commands/ReplicateKeyCommand.js.map +0 -1
- package/dist/es/commands/RetireGrantCommand.js +0 -109
- package/dist/es/commands/RetireGrantCommand.js.map +0 -1
- package/dist/es/commands/RevokeGrantCommand.js +0 -109
- package/dist/es/commands/RevokeGrantCommand.js.map +0 -1
- package/dist/es/commands/ScheduleKeyDeletionCommand.js +0 -115
- package/dist/es/commands/ScheduleKeyDeletionCommand.js.map +0 -1
- package/dist/es/commands/SignCommand.js +0 -109
- package/dist/es/commands/SignCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js +0 -110
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js +0 -108
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateAliasCommand.js +0 -123
- package/dist/es/commands/UpdateAliasCommand.js.map +0 -1
- package/dist/es/commands/UpdateCustomKeyStoreCommand.js +0 -137
- package/dist/es/commands/UpdateCustomKeyStoreCommand.js.map +0 -1
- package/dist/es/commands/UpdateKeyDescriptionCommand.js +0 -88
- package/dist/es/commands/UpdateKeyDescriptionCommand.js.map +0 -1
- package/dist/es/commands/UpdatePrimaryRegionCommand.js +0 -130
- package/dist/es/commands/UpdatePrimaryRegionCommand.js.map +0 -1
- package/dist/es/commands/VerifyCommand.js +0 -95
- package/dist/es/commands/VerifyCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -57
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/Interfaces.js +0 -2
- 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/endpoints.ts +0 -62
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -4742
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListAliasesPaginator.ts +0 -54
- package/pagination/ListGrantsPaginator.ts +0 -54
- package/pagination/ListKeyPoliciesPaginator.ts +0 -58
- package/pagination/ListKeysPaginator.ts +0 -54
- package/protocols/Aws_json1_1.ts +0 -7631
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { DisableKeyRotationRequest } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_json1_1DisableKeyRotationCommand, serializeAws_json1_1DisableKeyRotationCommand, } from "../protocols/Aws_json1_1";
|
|
4
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
/**
|
|
7
|
-
* <p>Disables <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic
|
|
8
|
-
* rotation of the key material</a> for the specified symmetric KMS key.</p>
|
|
9
|
-
* <p> You cannot enable automatic rotation of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks">asymmetric KMS keys</a>, KMS keys with <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>, or KMS keys in a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>. To enable or disable automatic rotation of a set of related <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html#mrk-replica-key">multi-Region keys</a>, set the property on the primary key. </p>
|
|
10
|
-
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
11
|
-
* 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>
|
|
12
|
-
* <p>
|
|
13
|
-
* <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
|
|
14
|
-
*
|
|
15
|
-
* <p>
|
|
16
|
-
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DisableKeyRotation</a> (key policy)</p>
|
|
17
|
-
* <p>
|
|
18
|
-
* <b>Related operations:</b>
|
|
19
|
-
* </p>
|
|
20
|
-
* <ul>
|
|
21
|
-
* <li>
|
|
22
|
-
* <p>
|
|
23
|
-
* <a>EnableKeyRotation</a>
|
|
24
|
-
* </p>
|
|
25
|
-
* </li>
|
|
26
|
-
* <li>
|
|
27
|
-
* <p>
|
|
28
|
-
* <a>GetKeyRotationStatus</a>
|
|
29
|
-
* </p>
|
|
30
|
-
* </li>
|
|
31
|
-
* </ul>
|
|
32
|
-
* @example
|
|
33
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
-
* ```javascript
|
|
35
|
-
* import { KMSClient, DisableKeyRotationCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
36
|
-
* // const { KMSClient, DisableKeyRotationCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
37
|
-
* const client = new KMSClient(config);
|
|
38
|
-
* const command = new DisableKeyRotationCommand(input);
|
|
39
|
-
* const response = await client.send(command);
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link DisableKeyRotationCommandInput} for command's `input` shape.
|
|
43
|
-
* @see {@link DisableKeyRotationCommandOutput} for command's `response` shape.
|
|
44
|
-
* @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
var DisableKeyRotationCommand = /** @class */ (function (_super) {
|
|
48
|
-
__extends(DisableKeyRotationCommand, _super);
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
function DisableKeyRotationCommand(input) {
|
|
52
|
-
var _this =
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
_super.call(this) || this;
|
|
55
|
-
_this.input = input;
|
|
56
|
-
return _this;
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
DisableKeyRotationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
var stack = clientStack.concat(this.middlewareStack);
|
|
65
|
-
var logger = configuration.logger;
|
|
66
|
-
var clientName = "KMSClient";
|
|
67
|
-
var commandName = "DisableKeyRotationCommand";
|
|
68
|
-
var handlerExecutionContext = {
|
|
69
|
-
logger: logger,
|
|
70
|
-
clientName: clientName,
|
|
71
|
-
commandName: commandName,
|
|
72
|
-
inputFilterSensitiveLog: DisableKeyRotationRequest.filterSensitiveLog,
|
|
73
|
-
outputFilterSensitiveLog: function (output) { return output; },
|
|
74
|
-
};
|
|
75
|
-
var requestHandler = configuration.requestHandler;
|
|
76
|
-
return stack.resolve(function (request) {
|
|
77
|
-
return requestHandler.handle(request.request, options || {});
|
|
78
|
-
}, handlerExecutionContext);
|
|
79
|
-
};
|
|
80
|
-
DisableKeyRotationCommand.prototype.serialize = function (input, context) {
|
|
81
|
-
return serializeAws_json1_1DisableKeyRotationCommand(input, context);
|
|
82
|
-
};
|
|
83
|
-
DisableKeyRotationCommand.prototype.deserialize = function (output, context) {
|
|
84
|
-
return deserializeAws_json1_1DisableKeyRotationCommand(output, context);
|
|
85
|
-
};
|
|
86
|
-
return DisableKeyRotationCommand;
|
|
87
|
-
}($Command));
|
|
88
|
-
export { DisableKeyRotationCommand };
|
|
89
|
-
//# sourceMappingURL=DisableKeyRotationCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DisableKeyRotationCommand.js","sourceRoot":"","sources":["../../../commands/DisableKeyRotationCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,+CAA+C,EAC/C,6CAA6C,GAC9C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH;IAA+C,6CAI9C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,mCAAqB,KAAqC;QAA1D;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAgC;;QAGxD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,qDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,2BAA2B,CAAC;QAChD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,yBAAyB,CAAC,kBAAkB;YACrE,wBAAwB,EAAE,UAAC,MAAW,IAAK,OAAA,MAAM,EAAN,CAAM;SAClD,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,6CAAS,GAAjB,UAAkB,KAAqC,EAAE,OAAuB;QAC9E,OAAO,6CAA6C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAEO,+CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,+CAA+C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAIH,gCAAC;AAAD,CAAC,AAtDD,CAA+C,QAAQ,GAsDtD"}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { DisconnectCustomKeyStoreRequest, DisconnectCustomKeyStoreResponse } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_json1_1DisconnectCustomKeyStoreCommand, serializeAws_json1_1DisconnectCustomKeyStoreCommand, } from "../protocols/Aws_json1_1";
|
|
4
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
/**
|
|
7
|
-
* <p>Disconnects the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a> from its associated CloudHSM cluster. While a custom key
|
|
8
|
-
* store is disconnected, you can manage the custom key store and its KMS keys, but you cannot create or use KMS keys in the custom key store. You can reconnect the
|
|
9
|
-
* custom key store at any time.</p>
|
|
10
|
-
* <note>
|
|
11
|
-
* <p>While a custom key store is disconnected, all attempts to create KMS keys in the custom key store or to use existing KMS keys in <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic operations</a> will
|
|
12
|
-
* fail. This action can prevent users from storing and accessing sensitive data.</p>
|
|
13
|
-
* </note>
|
|
14
|
-
* <p></p>
|
|
15
|
-
* <p>To find the connection state of a custom key store, use the <a>DescribeCustomKeyStores</a> operation. To reconnect a custom key store, use the
|
|
16
|
-
* <a>ConnectCustomKeyStore</a> operation.</p>
|
|
17
|
-
* <p>If the operation succeeds, it returns a JSON object with no
|
|
18
|
-
* properties.</p>
|
|
19
|
-
* <p>This operation is part of the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">Custom Key Store feature</a> feature in KMS, which
|
|
20
|
-
* combines the convenience and extensive integration of KMS with the isolation and control of a
|
|
21
|
-
* single-tenant key store.</p>
|
|
22
|
-
*
|
|
23
|
-
* <p>
|
|
24
|
-
* <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.</p>
|
|
25
|
-
*
|
|
26
|
-
* <p>
|
|
27
|
-
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DisconnectCustomKeyStore</a> (IAM policy)</p>
|
|
28
|
-
* <p>
|
|
29
|
-
* <b>Related operations:</b>
|
|
30
|
-
* </p>
|
|
31
|
-
* <ul>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>
|
|
34
|
-
* <a>ConnectCustomKeyStore</a>
|
|
35
|
-
* </p>
|
|
36
|
-
* </li>
|
|
37
|
-
* <li>
|
|
38
|
-
* <p>
|
|
39
|
-
* <a>CreateCustomKeyStore</a>
|
|
40
|
-
* </p>
|
|
41
|
-
* </li>
|
|
42
|
-
* <li>
|
|
43
|
-
* <p>
|
|
44
|
-
* <a>DeleteCustomKeyStore</a>
|
|
45
|
-
* </p>
|
|
46
|
-
* </li>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>
|
|
49
|
-
* <a>DescribeCustomKeyStores</a>
|
|
50
|
-
* </p>
|
|
51
|
-
* </li>
|
|
52
|
-
* <li>
|
|
53
|
-
* <p>
|
|
54
|
-
* <a>UpdateCustomKeyStore</a>
|
|
55
|
-
* </p>
|
|
56
|
-
* </li>
|
|
57
|
-
* </ul>
|
|
58
|
-
* @example
|
|
59
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
60
|
-
* ```javascript
|
|
61
|
-
* import { KMSClient, DisconnectCustomKeyStoreCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
62
|
-
* // const { KMSClient, DisconnectCustomKeyStoreCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
63
|
-
* const client = new KMSClient(config);
|
|
64
|
-
* const command = new DisconnectCustomKeyStoreCommand(input);
|
|
65
|
-
* const response = await client.send(command);
|
|
66
|
-
* ```
|
|
67
|
-
*
|
|
68
|
-
* @see {@link DisconnectCustomKeyStoreCommandInput} for command's `input` shape.
|
|
69
|
-
* @see {@link DisconnectCustomKeyStoreCommandOutput} for command's `response` shape.
|
|
70
|
-
* @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
var DisconnectCustomKeyStoreCommand = /** @class */ (function (_super) {
|
|
74
|
-
__extends(DisconnectCustomKeyStoreCommand, _super);
|
|
75
|
-
// Start section: command_properties
|
|
76
|
-
// End section: command_properties
|
|
77
|
-
function DisconnectCustomKeyStoreCommand(input) {
|
|
78
|
-
var _this =
|
|
79
|
-
// Start section: command_constructor
|
|
80
|
-
_super.call(this) || this;
|
|
81
|
-
_this.input = input;
|
|
82
|
-
return _this;
|
|
83
|
-
// End section: command_constructor
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
DisconnectCustomKeyStoreCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
89
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
90
|
-
var stack = clientStack.concat(this.middlewareStack);
|
|
91
|
-
var logger = configuration.logger;
|
|
92
|
-
var clientName = "KMSClient";
|
|
93
|
-
var commandName = "DisconnectCustomKeyStoreCommand";
|
|
94
|
-
var handlerExecutionContext = {
|
|
95
|
-
logger: logger,
|
|
96
|
-
clientName: clientName,
|
|
97
|
-
commandName: commandName,
|
|
98
|
-
inputFilterSensitiveLog: DisconnectCustomKeyStoreRequest.filterSensitiveLog,
|
|
99
|
-
outputFilterSensitiveLog: DisconnectCustomKeyStoreResponse.filterSensitiveLog,
|
|
100
|
-
};
|
|
101
|
-
var requestHandler = configuration.requestHandler;
|
|
102
|
-
return stack.resolve(function (request) {
|
|
103
|
-
return requestHandler.handle(request.request, options || {});
|
|
104
|
-
}, handlerExecutionContext);
|
|
105
|
-
};
|
|
106
|
-
DisconnectCustomKeyStoreCommand.prototype.serialize = function (input, context) {
|
|
107
|
-
return serializeAws_json1_1DisconnectCustomKeyStoreCommand(input, context);
|
|
108
|
-
};
|
|
109
|
-
DisconnectCustomKeyStoreCommand.prototype.deserialize = function (output, context) {
|
|
110
|
-
return deserializeAws_json1_1DisconnectCustomKeyStoreCommand(output, context);
|
|
111
|
-
};
|
|
112
|
-
return DisconnectCustomKeyStoreCommand;
|
|
113
|
-
}($Command));
|
|
114
|
-
export { DisconnectCustomKeyStoreCommand };
|
|
115
|
-
//# sourceMappingURL=DisconnectCustomKeyStoreCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DisconnectCustomKeyStoreCommand.js","sourceRoot":"","sources":["../../../commands/DisconnectCustomKeyStoreCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,+BAA+B,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAC;AACvG,OAAO,EACL,qDAAqD,EACrD,mDAAmD,GACpD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACH;IAAqD,mDAIpD;IACC,oCAAoC;IACpC,kCAAkC;IAElC,yCAAqB,KAA2C;QAAhE;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAsC;;QAG9D,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,2DAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,iCAAiC,CAAC;QACtD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,+BAA+B,CAAC,kBAAkB;YAC3E,wBAAwB,EAAE,gCAAgC,CAAC,kBAAkB;SAC9E,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,mDAAS,GAAjB,UAAkB,KAA2C,EAAE,OAAuB;QACpF,OAAO,mDAAmD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAEO,qDAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,qDAAqD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAIH,sCAAC;AAAD,CAAC,AAtDD,CAAqD,QAAQ,GAsD5D"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { EnableKeyRequest } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_json1_1EnableKeyCommand, serializeAws_json1_1EnableKeyCommand } from "../protocols/Aws_json1_1";
|
|
4
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
/**
|
|
7
|
-
* <p>Sets the key state of a KMS key to enabled. This allows you to use the KMS key for <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic operations</a>. </p>
|
|
8
|
-
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
9
|
-
* 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>
|
|
10
|
-
* <p>
|
|
11
|
-
* <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
|
|
12
|
-
*
|
|
13
|
-
* <p>
|
|
14
|
-
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:EnableKey</a> (key policy)</p>
|
|
15
|
-
* <p>
|
|
16
|
-
* <b>Related operations</b>: <a>DisableKey</a>
|
|
17
|
-
* </p>
|
|
18
|
-
* @example
|
|
19
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
-
* ```javascript
|
|
21
|
-
* import { KMSClient, EnableKeyCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
22
|
-
* // const { KMSClient, EnableKeyCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
23
|
-
* const client = new KMSClient(config);
|
|
24
|
-
* const command = new EnableKeyCommand(input);
|
|
25
|
-
* const response = await client.send(command);
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @see {@link EnableKeyCommandInput} for command's `input` shape.
|
|
29
|
-
* @see {@link EnableKeyCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
var EnableKeyCommand = /** @class */ (function (_super) {
|
|
34
|
-
__extends(EnableKeyCommand, _super);
|
|
35
|
-
// Start section: command_properties
|
|
36
|
-
// End section: command_properties
|
|
37
|
-
function EnableKeyCommand(input) {
|
|
38
|
-
var _this =
|
|
39
|
-
// Start section: command_constructor
|
|
40
|
-
_super.call(this) || this;
|
|
41
|
-
_this.input = input;
|
|
42
|
-
return _this;
|
|
43
|
-
// End section: command_constructor
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
|
-
EnableKeyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
49
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
50
|
-
var stack = clientStack.concat(this.middlewareStack);
|
|
51
|
-
var logger = configuration.logger;
|
|
52
|
-
var clientName = "KMSClient";
|
|
53
|
-
var commandName = "EnableKeyCommand";
|
|
54
|
-
var handlerExecutionContext = {
|
|
55
|
-
logger: logger,
|
|
56
|
-
clientName: clientName,
|
|
57
|
-
commandName: commandName,
|
|
58
|
-
inputFilterSensitiveLog: EnableKeyRequest.filterSensitiveLog,
|
|
59
|
-
outputFilterSensitiveLog: function (output) { return output; },
|
|
60
|
-
};
|
|
61
|
-
var requestHandler = configuration.requestHandler;
|
|
62
|
-
return stack.resolve(function (request) {
|
|
63
|
-
return requestHandler.handle(request.request, options || {});
|
|
64
|
-
}, handlerExecutionContext);
|
|
65
|
-
};
|
|
66
|
-
EnableKeyCommand.prototype.serialize = function (input, context) {
|
|
67
|
-
return serializeAws_json1_1EnableKeyCommand(input, context);
|
|
68
|
-
};
|
|
69
|
-
EnableKeyCommand.prototype.deserialize = function (output, context) {
|
|
70
|
-
return deserializeAws_json1_1EnableKeyCommand(output, context);
|
|
71
|
-
};
|
|
72
|
-
return EnableKeyCommand;
|
|
73
|
-
}($Command));
|
|
74
|
-
export { EnableKeyCommand };
|
|
75
|
-
//# sourceMappingURL=EnableKeyCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EnableKeyCommand.js","sourceRoot":"","sources":["../../../commands/EnableKeyCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sCAAsC,EAAE,oCAAoC,EAAE,MAAM,0BAA0B,CAAC;AACxH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH;IAAsC,oCAAgF;IACpH,oCAAoC;IACpC,kCAAkC;IAElC,0BAAqB,KAA4B;QAAjD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAuB;;QAG/C,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,4CAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,kBAAkB,CAAC;QACvC,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,gBAAgB,CAAC,kBAAkB;YAC5D,wBAAwB,EAAE,UAAC,MAAW,IAAK,OAAA,MAAM,EAAN,CAAM;SAClD,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,oCAAS,GAAjB,UAAkB,KAA4B,EAAE,OAAuB;QACrE,OAAO,oCAAoC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAEO,sCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,sCAAsC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAIH,uBAAC;AAAD,CAAC,AAlDD,CAAsC,QAAQ,GAkD7C"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { EnableKeyRotationRequest } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_json1_1EnableKeyRotationCommand, serializeAws_json1_1EnableKeyRotationCommand, } from "../protocols/Aws_json1_1";
|
|
4
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
/**
|
|
7
|
-
* <p>Enables <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic rotation
|
|
8
|
-
* of the key material</a> for the specified symmetric KMS key.</p>
|
|
9
|
-
* <p>You cannot enable automatic rotation of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks">asymmetric KMS keys</a>, KMS keys with <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>, or KMS keys in a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>. To enable or disable automatic rotation of a set of related <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html#mrk-replica-key">multi-Region keys</a>, set the property on the primary key.</p>
|
|
10
|
-
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
11
|
-
* 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>
|
|
12
|
-
* <p>
|
|
13
|
-
* <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
|
|
14
|
-
*
|
|
15
|
-
* <p>
|
|
16
|
-
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:EnableKeyRotation</a> (key policy)</p>
|
|
17
|
-
* <p>
|
|
18
|
-
* <b>Related operations:</b>
|
|
19
|
-
* </p>
|
|
20
|
-
* <ul>
|
|
21
|
-
* <li>
|
|
22
|
-
* <p>
|
|
23
|
-
* <a>DisableKeyRotation</a>
|
|
24
|
-
* </p>
|
|
25
|
-
* </li>
|
|
26
|
-
* <li>
|
|
27
|
-
* <p>
|
|
28
|
-
* <a>GetKeyRotationStatus</a>
|
|
29
|
-
* </p>
|
|
30
|
-
* </li>
|
|
31
|
-
* </ul>
|
|
32
|
-
* @example
|
|
33
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
-
* ```javascript
|
|
35
|
-
* import { KMSClient, EnableKeyRotationCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
36
|
-
* // const { KMSClient, EnableKeyRotationCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
37
|
-
* const client = new KMSClient(config);
|
|
38
|
-
* const command = new EnableKeyRotationCommand(input);
|
|
39
|
-
* const response = await client.send(command);
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link EnableKeyRotationCommandInput} for command's `input` shape.
|
|
43
|
-
* @see {@link EnableKeyRotationCommandOutput} for command's `response` shape.
|
|
44
|
-
* @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
var EnableKeyRotationCommand = /** @class */ (function (_super) {
|
|
48
|
-
__extends(EnableKeyRotationCommand, _super);
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
function EnableKeyRotationCommand(input) {
|
|
52
|
-
var _this =
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
_super.call(this) || this;
|
|
55
|
-
_this.input = input;
|
|
56
|
-
return _this;
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
EnableKeyRotationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
var stack = clientStack.concat(this.middlewareStack);
|
|
65
|
-
var logger = configuration.logger;
|
|
66
|
-
var clientName = "KMSClient";
|
|
67
|
-
var commandName = "EnableKeyRotationCommand";
|
|
68
|
-
var handlerExecutionContext = {
|
|
69
|
-
logger: logger,
|
|
70
|
-
clientName: clientName,
|
|
71
|
-
commandName: commandName,
|
|
72
|
-
inputFilterSensitiveLog: EnableKeyRotationRequest.filterSensitiveLog,
|
|
73
|
-
outputFilterSensitiveLog: function (output) { return output; },
|
|
74
|
-
};
|
|
75
|
-
var requestHandler = configuration.requestHandler;
|
|
76
|
-
return stack.resolve(function (request) {
|
|
77
|
-
return requestHandler.handle(request.request, options || {});
|
|
78
|
-
}, handlerExecutionContext);
|
|
79
|
-
};
|
|
80
|
-
EnableKeyRotationCommand.prototype.serialize = function (input, context) {
|
|
81
|
-
return serializeAws_json1_1EnableKeyRotationCommand(input, context);
|
|
82
|
-
};
|
|
83
|
-
EnableKeyRotationCommand.prototype.deserialize = function (output, context) {
|
|
84
|
-
return deserializeAws_json1_1EnableKeyRotationCommand(output, context);
|
|
85
|
-
};
|
|
86
|
-
return EnableKeyRotationCommand;
|
|
87
|
-
}($Command));
|
|
88
|
-
export { EnableKeyRotationCommand };
|
|
89
|
-
//# sourceMappingURL=EnableKeyRotationCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EnableKeyRotationCommand.js","sourceRoot":"","sources":["../../../commands/EnableKeyRotationCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EACL,8CAA8C,EAC9C,4CAA4C,GAC7C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH;IAA8C,4CAI7C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,kCAAqB,KAAoC;QAAzD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA+B;;QAGvD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,oDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,0BAA0B,CAAC;QAC/C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,wBAAwB,CAAC,kBAAkB;YACpE,wBAAwB,EAAE,UAAC,MAAW,IAAK,OAAA,MAAM,EAAN,CAAM;SAClD,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,4CAAS,GAAjB,UAAkB,KAAoC,EAAE,OAAuB;QAC7E,OAAO,4CAA4C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAEO,8CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,8CAA8C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAIH,+BAAC;AAAD,CAAC,AAtDD,CAA8C,QAAQ,GAsDrD"}
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { EncryptRequest, EncryptResponse } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_json1_1EncryptCommand, serializeAws_json1_1EncryptCommand } from "../protocols/Aws_json1_1";
|
|
4
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
/**
|
|
7
|
-
* <p>Encrypts plaintext into ciphertext by using a KMS key. The
|
|
8
|
-
* <code>Encrypt</code> operation has two primary use cases:</p>
|
|
9
|
-
* <ul>
|
|
10
|
-
* <li>
|
|
11
|
-
* <p>You can encrypt small amounts of arbitrary data, such as a personal identifier or
|
|
12
|
-
* database password, or other sensitive information. </p>
|
|
13
|
-
* </li>
|
|
14
|
-
* <li>
|
|
15
|
-
* <p>You can use the <code>Encrypt</code> operation to move encrypted data from one Amazon Web Services Region to another. For example, in Region A, generate a data key and use the plaintext key to encrypt
|
|
16
|
-
* your data. Then, in Region A, use the <code>Encrypt</code> operation to encrypt the
|
|
17
|
-
* plaintext data key under a KMS key in Region B. Now, you can move the encrypted data and the
|
|
18
|
-
* encrypted data key to Region B. When necessary, you can decrypt the encrypted data key and
|
|
19
|
-
* the encrypted data entirely within in Region B.</p>
|
|
20
|
-
* </li>
|
|
21
|
-
* </ul>
|
|
22
|
-
*
|
|
23
|
-
* <p>You don't need to use the <code>Encrypt</code> operation to encrypt a data key. The <a>GenerateDataKey</a> and <a>GenerateDataKeyPair</a> operations return a
|
|
24
|
-
* plaintext data key and an encrypted copy of that data key.</p>
|
|
25
|
-
*
|
|
26
|
-
* <p>When you encrypt data, you must specify a symmetric or asymmetric KMS key to use in the
|
|
27
|
-
* encryption operation. The KMS key must have a <code>KeyUsage</code> value of
|
|
28
|
-
* <code>ENCRYPT_DECRYPT.</code> To find the <code>KeyUsage</code> of a KMS key, use the <a>DescribeKey</a> operation. </p>
|
|
29
|
-
*
|
|
30
|
-
* <p>If you use a symmetric KMS key, you can use an encryption context to add additional security
|
|
31
|
-
* to your encryption operation. If you specify an <code>EncryptionContext</code> when encrypting
|
|
32
|
-
* data, you must specify the same encryption context (a case-sensitive exact match) when
|
|
33
|
-
* decrypting the data. Otherwise, the request to decrypt fails with an
|
|
34
|
-
* <code>InvalidCiphertextException</code>. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption
|
|
35
|
-
* Context</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
36
|
-
* <p>If you specify an asymmetric KMS key, you must also specify the encryption algorithm. The
|
|
37
|
-
* algorithm must be compatible with the KMS key type.</p>
|
|
38
|
-
* <important>
|
|
39
|
-
* <p>When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails.</p>
|
|
40
|
-
* <p>You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric KMS keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable fields.</p>
|
|
41
|
-
* </important>
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* <p>The maximum size of the data that you can encrypt varies with the type of KMS key and the
|
|
45
|
-
* encryption algorithm that you choose.</p>
|
|
46
|
-
* <ul>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>Symmetric KMS keys</p>
|
|
49
|
-
* <ul>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>
|
|
52
|
-
* <code>SYMMETRIC_DEFAULT</code>: 4096 bytes</p>
|
|
53
|
-
* </li>
|
|
54
|
-
* </ul>
|
|
55
|
-
* </li>
|
|
56
|
-
* <li>
|
|
57
|
-
* <p>
|
|
58
|
-
* <code>RSA_2048</code>
|
|
59
|
-
* </p>
|
|
60
|
-
* <ul>
|
|
61
|
-
* <li>
|
|
62
|
-
* <p>
|
|
63
|
-
* <code>RSAES_OAEP_SHA_1</code>: 214 bytes</p>
|
|
64
|
-
* </li>
|
|
65
|
-
* <li>
|
|
66
|
-
* <p>
|
|
67
|
-
* <code>RSAES_OAEP_SHA_256</code>: 190 bytes</p>
|
|
68
|
-
* </li>
|
|
69
|
-
* </ul>
|
|
70
|
-
* </li>
|
|
71
|
-
* <li>
|
|
72
|
-
* <p>
|
|
73
|
-
* <code>RSA_3072</code>
|
|
74
|
-
* </p>
|
|
75
|
-
* <ul>
|
|
76
|
-
* <li>
|
|
77
|
-
* <p>
|
|
78
|
-
* <code>RSAES_OAEP_SHA_1</code>: 342 bytes</p>
|
|
79
|
-
* </li>
|
|
80
|
-
* <li>
|
|
81
|
-
* <p>
|
|
82
|
-
* <code>RSAES_OAEP_SHA_256</code>: 318 bytes</p>
|
|
83
|
-
* </li>
|
|
84
|
-
* </ul>
|
|
85
|
-
* </li>
|
|
86
|
-
* <li>
|
|
87
|
-
* <p>
|
|
88
|
-
* <code>RSA_4096</code>
|
|
89
|
-
* </p>
|
|
90
|
-
* <ul>
|
|
91
|
-
* <li>
|
|
92
|
-
* <p>
|
|
93
|
-
* <code>RSAES_OAEP_SHA_1</code>: 470 bytes</p>
|
|
94
|
-
* </li>
|
|
95
|
-
* <li>
|
|
96
|
-
* <p>
|
|
97
|
-
* <code>RSAES_OAEP_SHA_256</code>: 446 bytes</p>
|
|
98
|
-
* </li>
|
|
99
|
-
* </ul>
|
|
100
|
-
* </li>
|
|
101
|
-
* </ul>
|
|
102
|
-
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
103
|
-
* 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>
|
|
104
|
-
* <p>
|
|
105
|
-
* <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify
|
|
106
|
-
* the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.</p>
|
|
107
|
-
*
|
|
108
|
-
* <p>
|
|
109
|
-
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Encrypt</a> (key policy)</p>
|
|
110
|
-
* <p>
|
|
111
|
-
* <b>Related operations:</b>
|
|
112
|
-
* </p>
|
|
113
|
-
* <ul>
|
|
114
|
-
* <li>
|
|
115
|
-
* <p>
|
|
116
|
-
* <a>Decrypt</a>
|
|
117
|
-
* </p>
|
|
118
|
-
* </li>
|
|
119
|
-
* <li>
|
|
120
|
-
* <p>
|
|
121
|
-
* <a>GenerateDataKey</a>
|
|
122
|
-
* </p>
|
|
123
|
-
* </li>
|
|
124
|
-
* <li>
|
|
125
|
-
* <p>
|
|
126
|
-
* <a>GenerateDataKeyPair</a>
|
|
127
|
-
* </p>
|
|
128
|
-
* </li>
|
|
129
|
-
* </ul>
|
|
130
|
-
* @example
|
|
131
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
132
|
-
* ```javascript
|
|
133
|
-
* import { KMSClient, EncryptCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
134
|
-
* // const { KMSClient, EncryptCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
135
|
-
* const client = new KMSClient(config);
|
|
136
|
-
* const command = new EncryptCommand(input);
|
|
137
|
-
* const response = await client.send(command);
|
|
138
|
-
* ```
|
|
139
|
-
*
|
|
140
|
-
* @see {@link EncryptCommandInput} for command's `input` shape.
|
|
141
|
-
* @see {@link EncryptCommandOutput} for command's `response` shape.
|
|
142
|
-
* @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
|
|
143
|
-
*
|
|
144
|
-
*/
|
|
145
|
-
var EncryptCommand = /** @class */ (function (_super) {
|
|
146
|
-
__extends(EncryptCommand, _super);
|
|
147
|
-
// Start section: command_properties
|
|
148
|
-
// End section: command_properties
|
|
149
|
-
function EncryptCommand(input) {
|
|
150
|
-
var _this =
|
|
151
|
-
// Start section: command_constructor
|
|
152
|
-
_super.call(this) || this;
|
|
153
|
-
_this.input = input;
|
|
154
|
-
return _this;
|
|
155
|
-
// End section: command_constructor
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* @internal
|
|
159
|
-
*/
|
|
160
|
-
EncryptCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
161
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
162
|
-
var stack = clientStack.concat(this.middlewareStack);
|
|
163
|
-
var logger = configuration.logger;
|
|
164
|
-
var clientName = "KMSClient";
|
|
165
|
-
var commandName = "EncryptCommand";
|
|
166
|
-
var handlerExecutionContext = {
|
|
167
|
-
logger: logger,
|
|
168
|
-
clientName: clientName,
|
|
169
|
-
commandName: commandName,
|
|
170
|
-
inputFilterSensitiveLog: EncryptRequest.filterSensitiveLog,
|
|
171
|
-
outputFilterSensitiveLog: EncryptResponse.filterSensitiveLog,
|
|
172
|
-
};
|
|
173
|
-
var requestHandler = configuration.requestHandler;
|
|
174
|
-
return stack.resolve(function (request) {
|
|
175
|
-
return requestHandler.handle(request.request, options || {});
|
|
176
|
-
}, handlerExecutionContext);
|
|
177
|
-
};
|
|
178
|
-
EncryptCommand.prototype.serialize = function (input, context) {
|
|
179
|
-
return serializeAws_json1_1EncryptCommand(input, context);
|
|
180
|
-
};
|
|
181
|
-
EncryptCommand.prototype.deserialize = function (output, context) {
|
|
182
|
-
return deserializeAws_json1_1EncryptCommand(output, context);
|
|
183
|
-
};
|
|
184
|
-
return EncryptCommand;
|
|
185
|
-
}($Command));
|
|
186
|
-
export { EncryptCommand };
|
|
187
|
-
//# sourceMappingURL=EncryptCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EncryptCommand.js","sourceRoot":"","sources":["../../../commands/EncryptCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,oCAAoC,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AACpH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0IG;AACH;IAAoC,kCAA4E;IAC9G,oCAAoC;IACpC,kCAAkC;IAElC,wBAAqB,KAA0B;QAA/C;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAqB;;QAG7C,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,0CAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,gBAAgB,CAAC;QACrC,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,cAAc,CAAC,kBAAkB;YAC1D,wBAAwB,EAAE,eAAe,CAAC,kBAAkB;SAC7D,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,kCAAS,GAAjB,UAAkB,KAA0B,EAAE,OAAuB;QACnE,OAAO,kCAAkC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAEO,oCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,oCAAoC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAIH,qBAAC;AAAD,CAAC,AAlDD,CAAoC,QAAQ,GAkD3C"}
|