@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,45 +1,51 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReEncryptCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
8
|
/**
|
|
9
9
|
* <p>Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this
|
|
10
|
-
* operation to change the KMS key under which data is encrypted, such as when
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* operation to change the KMS key under which data is encrypted, such as when you <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-manually">manually
|
|
11
|
+
* rotate</a> a KMS key or change the KMS key that protects a ciphertext. You can also use
|
|
12
|
+
* it to reencrypt ciphertext under the same KMS key, such as to change the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">encryption
|
|
13
13
|
* context</a> of a ciphertext.</p>
|
|
14
14
|
* <p>The <code>ReEncrypt</code> operation can decrypt ciphertext that was encrypted by using an
|
|
15
15
|
* KMS KMS key in an KMS operation, such as <a>Encrypt</a> or <a>GenerateDataKey</a>. It can also decrypt ciphertext that was encrypted by using the
|
|
16
|
-
* public key of an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks">asymmetric KMS key</a>
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* public key of an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks">asymmetric KMS key</a>
|
|
17
|
+
* outside of KMS. However, it cannot decrypt ciphertext produced by other libraries, such as
|
|
18
|
+
* the <a href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a> or
|
|
19
|
+
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3
|
|
20
|
+
* client-side encryption</a>. These libraries return a ciphertext format that is
|
|
21
|
+
* incompatible with KMS.</p>
|
|
19
22
|
* <p>When you use the <code>ReEncrypt</code> operation, you need to provide information for the
|
|
20
23
|
* decrypt operation and the subsequent encrypt operation.</p>
|
|
21
24
|
* <ul>
|
|
22
25
|
* <li>
|
|
23
26
|
* <p>If your ciphertext was encrypted under an asymmetric KMS key, you must use the
|
|
24
|
-
* <code>SourceKeyId</code> parameter to identify the KMS key that encrypted the
|
|
25
|
-
* You must also supply the encryption algorithm that was used. This information
|
|
26
|
-
* to decrypt the data.</p>
|
|
27
|
+
* <code>SourceKeyId</code> parameter to identify the KMS key that encrypted the
|
|
28
|
+
* ciphertext. You must also supply the encryption algorithm that was used. This information
|
|
29
|
+
* is required to decrypt the data.</p>
|
|
27
30
|
* </li>
|
|
28
31
|
* <li>
|
|
29
|
-
* <p>If your ciphertext was encrypted under a symmetric KMS key, the
|
|
30
|
-
*
|
|
31
|
-
* symmetric ciphertext blob. This feature adds durability to
|
|
32
|
-
* that authorized users can decrypt ciphertext decades after
|
|
33
|
-
* they've lost track of the key ID. However, specifying the source
|
|
34
|
-
* as a best practice. When you use the
|
|
35
|
-
*
|
|
32
|
+
* <p>If your ciphertext was encrypted under a symmetric KMS key, the
|
|
33
|
+
* <code>SourceKeyId</code> parameter is optional. KMS can get this information from
|
|
34
|
+
* metadata that it adds to the symmetric ciphertext blob. This feature adds durability to
|
|
35
|
+
* your implementation by ensuring that authorized users can decrypt ciphertext decades after
|
|
36
|
+
* it was encrypted, even if they've lost track of the key ID. However, specifying the source
|
|
37
|
+
* KMS key is always recommended as a best practice. When you use the
|
|
38
|
+
* <code>SourceKeyId</code> parameter to specify a KMS key, KMS uses only the KMS key you
|
|
39
|
+
* specify. If the ciphertext was encrypted under a different KMS key, the
|
|
40
|
+
* <code>ReEncrypt</code> operation fails. This practice ensures that you use the KMS key
|
|
41
|
+
* that you intend.</p>
|
|
36
42
|
* </li>
|
|
37
43
|
* <li>
|
|
38
44
|
* <p>To reencrypt the data, you must use the <code>DestinationKeyId</code> parameter
|
|
39
45
|
* specify the KMS key that re-encrypts the data after it is decrypted. You can select a
|
|
40
|
-
* symmetric or asymmetric KMS key. If the destination KMS key is an asymmetric KMS key, you
|
|
41
|
-
* provide the encryption algorithm. The algorithm that you choose must be
|
|
42
|
-
* the KMS key.</p>
|
|
46
|
+
* symmetric or asymmetric KMS key. If the destination KMS key is an asymmetric KMS key, you
|
|
47
|
+
* must also provide the encryption algorithm. The algorithm that you choose must be
|
|
48
|
+
* compatible with the KMS key.</p>
|
|
43
49
|
*
|
|
44
50
|
* <important>
|
|
45
51
|
* <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>
|
|
@@ -47,26 +53,26 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
47
53
|
* </important>
|
|
48
54
|
* </li>
|
|
49
55
|
* </ul>
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
56
|
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
54
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>
|
|
55
58
|
* <p>
|
|
56
|
-
* <b>Cross-account use</b>: Yes.
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
+
* <b>Cross-account use</b>: Yes.
|
|
60
|
+
* The source KMS key and destination KMS key can be in different Amazon Web Services accounts. Either or both
|
|
61
|
+
* KMS keys can be in a different account than the caller. To specify a KMS key in a different
|
|
62
|
+
* account, you must use its key ARN or alias ARN.</p>
|
|
59
63
|
*
|
|
60
64
|
* <p>
|
|
61
65
|
* <b>Required permissions</b>:</p>
|
|
62
66
|
* <ul>
|
|
63
67
|
* <li>
|
|
64
68
|
* <p>
|
|
65
|
-
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptFrom</a>
|
|
69
|
+
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptFrom</a>
|
|
70
|
+
* permission on the source KMS key (key policy)</p>
|
|
66
71
|
* </li>
|
|
67
72
|
* <li>
|
|
68
73
|
* <p>
|
|
69
|
-
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptTo</a>
|
|
74
|
+
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptTo</a>
|
|
75
|
+
* permission on the destination KMS key (key policy)</p>
|
|
70
76
|
* </li>
|
|
71
77
|
* </ul>
|
|
72
78
|
* <p>To permit reencryption from or to a KMS key, include the <code>"kms:ReEncrypt*"</code>
|
|
@@ -150,4 +156,3 @@ class ReEncryptCommand extends smithy_client_1.Command {
|
|
|
150
156
|
}
|
|
151
157
|
}
|
|
152
158
|
exports.ReEncryptCommand = ReEncryptCommand;
|
|
153
|
-
//# sourceMappingURL=ReEncryptCommand.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReplicateKeyCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
8
|
/**
|
|
9
9
|
* <p>Replicates a multi-Region key into the specified Region. This operation creates a
|
|
10
10
|
* multi-Region replica key based on a multi-Region primary key in a different Region of the same
|
|
@@ -37,7 +37,7 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
37
37
|
* details about the <code>Creating</code> key state, see <a href="kms/latest/developerguide/key-state.html">Key state: Effect on your KMS key</a> in the
|
|
38
38
|
* <i>Key Management Service Developer Guide</i>.</p>
|
|
39
39
|
* <p>The CloudTrail log of a <code>ReplicateKey</code> operation records a
|
|
40
|
-
*
|
|
40
|
+
* <code>ReplicateKey</code> operation in the primary key's Region and a <a>CreateKey</a> operation in the replica key's Region.</p>
|
|
41
41
|
* <p>If you replicate a multi-Region primary key with imported key material, the replica key is
|
|
42
42
|
* created with no key material. You must import the same key material that you imported into the
|
|
43
43
|
* primary key. For details, see <a href="kms/latest/developerguide/multi-region-keys-import.html">Importing key material into multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
@@ -45,8 +45,8 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
45
45
|
* operation.</p>
|
|
46
46
|
* <note>
|
|
47
47
|
* <p>
|
|
48
|
-
* <code>ReplicateKey</code> uses different default values for the <code>KeyPolicy</code>
|
|
49
|
-
*
|
|
48
|
+
* <code>ReplicateKey</code> uses different default values for the <code>KeyPolicy</code>
|
|
49
|
+
* and <code>Tags</code> parameters than those used in the KMS console. For details, see the
|
|
50
50
|
* parameter descriptions.</p>
|
|
51
51
|
* </note>
|
|
52
52
|
* <p>
|
|
@@ -57,8 +57,8 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
57
57
|
* <ul>
|
|
58
58
|
* <li>
|
|
59
59
|
* <p>
|
|
60
|
-
* <code>kms:ReplicateKey</code> on the primary key (in the primary key's Region).
|
|
61
|
-
* permission in the primary key's key policy.</p>
|
|
60
|
+
* <code>kms:ReplicateKey</code> on the primary key (in the primary key's Region).
|
|
61
|
+
* Include this permission in the primary key's key policy.</p>
|
|
62
62
|
* </li>
|
|
63
63
|
* <li>
|
|
64
64
|
* <p>
|
|
@@ -135,4 +135,3 @@ class ReplicateKeyCommand extends smithy_client_1.Command {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
exports.ReplicateKeyCommand = ReplicateKeyCommand;
|
|
138
|
-
//# sourceMappingURL=ReplicateKeyCommand.js.map
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RetireGrantCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
8
|
/**
|
|
9
9
|
* <p>Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To
|
|
10
10
|
* 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
|
|
11
|
-
* key identifier (key ID or key ARN) of the KMS key. The <a>CreateGrant</a> operation
|
|
11
|
+
* key identifier (key ID or key ARN) of the KMS key. The <a>CreateGrant</a> operation
|
|
12
|
+
* returns both values.</p>
|
|
12
13
|
* <p>This operation can be called by the <i>retiring principal</i> for a grant,
|
|
13
14
|
* by the <i>grantee principal</i> if the grant allows the <code>RetireGrant</code>
|
|
14
15
|
* operation, and by the Amazon Web Services account (root user) in which the grant is created. It can also be
|
|
15
16
|
* called by principals to whom permission for retiring a grant is delegated. For details, see
|
|
16
|
-
*
|
|
17
|
+
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
|
|
17
18
|
* revoking grants</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
18
19
|
* <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
|
|
19
20
|
* <i>
|
|
@@ -21,11 +22,12 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
21
22
|
* </i>. For examples of working with grants in several
|
|
22
23
|
* programming languages, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>. </p>
|
|
23
24
|
* <p>
|
|
24
|
-
* <b>Cross-account use</b>: Yes. You can retire a grant on a KMS
|
|
25
|
-
* in a different Amazon Web Services account.</p>
|
|
25
|
+
* <b>Cross-account use</b>: Yes. You can retire a grant on a KMS
|
|
26
|
+
* key in a different Amazon Web Services account.</p>
|
|
26
27
|
* <p>
|
|
27
28
|
* <b>Required permissions:</b>:Permission to retire a grant is
|
|
28
|
-
* 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
|
|
29
|
+
* 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
|
|
30
|
+
* the <i>Key Management Service Developer Guide</i>.</p>
|
|
29
31
|
* <p>
|
|
30
32
|
* <b>Related operations:</b>
|
|
31
33
|
* </p>
|
|
@@ -102,4 +104,3 @@ class RetireGrantCommand extends smithy_client_1.Command {
|
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
106
|
exports.RetireGrantCommand = RetireGrantCommand;
|
|
105
|
-
//# sourceMappingURL=RetireGrantCommand.js.map
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RevokeGrantCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
8
|
/**
|
|
9
9
|
* <p>Deletes the specified grant. You revoke a grant to terminate the permissions that the
|
|
10
|
-
* grant allows. For more
|
|
11
|
-
* information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/managing-grants.html#grant-delete">Retiring and revoking grants</a> in
|
|
10
|
+
* grant allows. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/managing-grants.html#grant-delete">Retiring and revoking grants</a> in
|
|
12
11
|
* the <i>
|
|
13
12
|
* <i>Key Management Service Developer Guide</i>
|
|
14
13
|
* </i>.</p>
|
|
@@ -102,4 +101,3 @@ class RevokeGrantCommand extends smithy_client_1.Command {
|
|
|
102
101
|
}
|
|
103
102
|
}
|
|
104
103
|
exports.RevokeGrantCommand = RevokeGrantCommand;
|
|
105
|
-
//# sourceMappingURL=RevokeGrantCommand.js.map
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ScheduleKeyDeletionCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
8
|
/**
|
|
9
|
-
* <p>Schedules the deletion of a KMS key. By default, KMS applies a waiting
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
9
|
+
* <p>Schedules the deletion of a KMS key. By default, KMS applies a waiting period of 30
|
|
10
|
+
* days, but you can specify a waiting period of 7-30 days. When this operation is successful,
|
|
11
|
+
* the key state of the KMS key changes to <code>PendingDeletion</code> and the key can't be used
|
|
12
|
+
* in any cryptographic operations. It remains in this state for the duration of the waiting
|
|
13
|
+
* period. Before the waiting period ends, you can use <a>CancelKeyDeletion</a> to
|
|
14
|
+
* cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key,
|
|
14
15
|
* its key material, and all KMS data associated with it, including all aliases that refer to
|
|
15
16
|
* it.</p>
|
|
16
17
|
* <important>
|
|
17
|
-
* <p>Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key
|
|
18
|
-
* deleted, all data that was encrypted under the KMS key is unrecoverable. (The only
|
|
19
|
-
* a multi-Region replica key.) To prevent the use of a KMS key without deleting
|
|
18
|
+
* <p>Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key
|
|
19
|
+
* is deleted, all data that was encrypted under the KMS key is unrecoverable. (The only
|
|
20
|
+
* exception is a multi-Region replica key.) To prevent the use of a KMS key without deleting
|
|
21
|
+
* it, use <a>DisableKey</a>. </p>
|
|
20
22
|
* </important>
|
|
21
23
|
* <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
|
|
22
|
-
* expires, <code>ScheduleKeyDeletion</code> deletes the KMS key from KMS. Then KMS makes a
|
|
23
|
-
* effort to delete the key material from the associated CloudHSM cluster. However, you might
|
|
24
|
-
* to manually <a href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete the orphaned key
|
|
24
|
+
* expires, <code>ScheduleKeyDeletion</code> deletes the KMS key from KMS. Then KMS makes a
|
|
25
|
+
* best effort to delete the key material from the associated CloudHSM cluster. However, you might
|
|
26
|
+
* need to manually <a href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete the orphaned key
|
|
25
27
|
* material</a> from the cluster and its backups.</p>
|
|
26
28
|
* <p>You can schedule the deletion of a multi-Region primary key and its replica keys at any
|
|
27
29
|
* time. However, KMS will not delete a multi-Region primary key with existing replica keys. If
|
|
@@ -30,18 +32,20 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
30
32
|
* operations. This status can continue indefinitely. When the last of its replicas keys is
|
|
31
33
|
* deleted (not just scheduled), the key state of the primary key changes to
|
|
32
34
|
* <code>PendingDeletion</code> and its waiting period (<code>PendingWindowInDays</code>)
|
|
33
|
-
* 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
|
|
35
|
+
* 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
|
|
36
|
+
* <i>Key Management Service Developer Guide</i>. </p>
|
|
34
37
|
* <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
|
|
35
38
|
* <i>Key Management Service Developer Guide</i>.</p>
|
|
36
39
|
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
37
40
|
* 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>
|
|
38
|
-
*
|
|
39
41
|
* <p>
|
|
40
|
-
* <b>Cross-account
|
|
42
|
+
* <b>Cross-account
|
|
43
|
+
* use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
|
|
41
44
|
*
|
|
42
45
|
*
|
|
43
46
|
* <p>
|
|
44
|
-
* <b>Required permissions</b>: kms:ScheduleKeyDeletion (key
|
|
47
|
+
* <b>Required permissions</b>: kms:ScheduleKeyDeletion (key
|
|
48
|
+
* policy)</p>
|
|
45
49
|
* <p>
|
|
46
50
|
* <b>Related operations</b>
|
|
47
51
|
* </p>
|
|
@@ -108,4 +112,3 @@ class ScheduleKeyDeletionCommand extends smithy_client_1.Command {
|
|
|
108
112
|
}
|
|
109
113
|
}
|
|
110
114
|
exports.ScheduleKeyDeletionCommand = ScheduleKeyDeletionCommand;
|
|
111
|
-
//# sourceMappingURL=ScheduleKeyDeletionCommand.js.map
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SignCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
8
|
/**
|
|
9
9
|
* <p>Creates a <a href="https://en.wikipedia.org/wiki/Digital_signature">digital
|
|
10
|
-
* signature</a> for a message or message digest by using the private key in an asymmetric
|
|
11
|
-
*
|
|
10
|
+
* signature</a> for a message or message digest by using the private key in an asymmetric
|
|
11
|
+
* KMS key. To verify the signature, use the <a>Verify</a> operation, or use the
|
|
12
|
+
* public 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>
|
|
12
13
|
* <p>Digital signatures are generated and verified by using asymmetric key pair, such as an RSA
|
|
13
|
-
* or ECC pair that is represented by an asymmetric KMS key. The key owner (or
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* or ECC pair that is represented by an asymmetric KMS key. The key owner (or an authorized
|
|
15
|
+
* user) uses their private key to sign a message. Anyone with the public key can verify that the
|
|
16
|
+
* message was signed with that particular private key and that the message hasn't changed since
|
|
17
|
+
* it was signed. </p>
|
|
17
18
|
* <p>To use the <code>Sign</code> operation, provide the following information:</p>
|
|
18
19
|
* <ul>
|
|
19
20
|
* <li>
|
|
20
21
|
* <p>Use the <code>KeyId</code> parameter to identify an asymmetric KMS key with a
|
|
21
22
|
* <code>KeyUsage</code> value of <code>SIGN_VERIFY</code>. To get the
|
|
22
|
-
* <code>KeyUsage</code> value of a KMS key, use the <a>DescribeKey</a>
|
|
23
|
-
* The caller must have <code>kms:Sign</code> permission on the KMS key.</p>
|
|
23
|
+
* <code>KeyUsage</code> value of a KMS key, use the <a>DescribeKey</a>
|
|
24
|
+
* operation. The caller must have <code>kms:Sign</code> permission on the KMS key.</p>
|
|
24
25
|
* </li>
|
|
25
26
|
* <li>
|
|
26
27
|
* <p>Use the <code>Message</code> parameter to specify the message or message digest to
|
|
@@ -42,7 +43,7 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
42
43
|
* then use the public key to verify the signature outside of KMS. </p>
|
|
43
44
|
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
44
45
|
* 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>
|
|
45
|
-
*
|
|
46
|
+
* <p>
|
|
46
47
|
* <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify
|
|
47
48
|
* the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.</p>
|
|
48
49
|
*
|
|
@@ -102,4 +103,3 @@ class SignCommand extends smithy_client_1.Command {
|
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
105
|
exports.SignCommand = SignCommand;
|
|
105
|
-
//# sourceMappingURL=SignCommand.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TagResourceCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
8
|
/**
|
|
9
9
|
* <p>Adds or edits tags on a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>.</p>
|
|
10
10
|
* <note>
|
|
@@ -14,16 +14,18 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
14
14
|
* The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag
|
|
15
15
|
* value. To edit a tag, specify an existing tag key and a new tag value.</p>
|
|
16
16
|
* <p>You can use this operation to tag a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>, but you cannot
|
|
17
|
-
* tag an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* tag an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
|
|
18
|
+
* managed key</a>, an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services owned key</a>, a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#keystore-concept">custom key
|
|
19
|
+
* store</a>, or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#alias-concept">alias</a>.</p>
|
|
20
|
+
* <p>You can also add tags to a KMS key while creating it (<a>CreateKey</a>) or
|
|
21
|
+
* replicating it (<a>ReplicateKey</a>).</p>
|
|
20
22
|
* <p>For information about using tags in KMS, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>. For general information about
|
|
21
23
|
* tags, including the format and syntax, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a> in the <i>Amazon
|
|
22
24
|
* Web Services General Reference</i>. </p>
|
|
23
25
|
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
24
26
|
* 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>
|
|
25
27
|
* <p>
|
|
26
|
-
* <b>Cross-account use</b>: No.
|
|
28
|
+
* <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account. </p>
|
|
27
29
|
*
|
|
28
30
|
* <p>
|
|
29
31
|
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:TagResource</a> (key policy)</p>
|
|
@@ -103,4 +105,3 @@ class TagResourceCommand extends smithy_client_1.Command {
|
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
107
|
exports.TagResourceCommand = TagResourceCommand;
|
|
106
|
-
//# sourceMappingURL=TagResourceCommand.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UntagResourceCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
8
|
/**
|
|
9
9
|
* <p>Deletes tags from a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>. To delete a tag,
|
|
10
10
|
* specify the tag key and the KMS key.</p>
|
|
@@ -12,8 +12,8 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
12
12
|
* <p>Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">Using ABAC in KMS</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
13
13
|
* </note>
|
|
14
14
|
* <p>When it succeeds, the <code>UntagResource</code> operation doesn't return any output.
|
|
15
|
-
* Also, if the specified tag key isn't found on the KMS key, it doesn't throw an exception or
|
|
16
|
-
* a response. To confirm that the operation worked, use the <a>ListResourceTags</a> operation.</p>
|
|
15
|
+
* Also, if the specified tag key isn't found on the KMS key, it doesn't throw an exception or
|
|
16
|
+
* return a response. To confirm that the operation worked, use the <a>ListResourceTags</a> operation.</p>
|
|
17
17
|
*
|
|
18
18
|
* <p>For information about using tags in KMS, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>. For general information about
|
|
19
19
|
* tags, including the format and syntax, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a> in the <i>Amazon
|
|
@@ -21,7 +21,7 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
21
21
|
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
22
22
|
* 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>
|
|
23
23
|
* <p>
|
|
24
|
-
* <b>Cross-account use</b>: No.
|
|
24
|
+
* <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
|
|
25
25
|
*
|
|
26
26
|
* <p>
|
|
27
27
|
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UntagResource</a> (key policy)</p>
|
|
@@ -101,4 +101,3 @@ class UntagResourceCommand extends smithy_client_1.Command {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
exports.UntagResourceCommand = UntagResourceCommand;
|
|
104
|
-
//# sourceMappingURL=UntagResourceCommand.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateAliasCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
8
|
/**
|
|
9
|
-
* <p>Associates an existing KMS alias with a different KMS key. Each alias
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* <p>Associates an existing KMS alias with a different KMS key. Each alias is associated with
|
|
10
|
+
* only one KMS key at a time, although a KMS key can have multiple aliases. The alias and the
|
|
11
|
+
* KMS key must be in the same Amazon Web Services account and Region.</p>
|
|
12
12
|
* <note>
|
|
13
13
|
* <p>Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">Using ABAC in KMS</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
14
14
|
* </note>
|
|
@@ -20,12 +20,12 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
20
20
|
* use <a>DeleteAlias</a> to delete the old alias and <a>CreateAlias</a> to
|
|
21
21
|
* create a new alias.</p>
|
|
22
22
|
* <p>Because an alias is not a property of a KMS key, you can create, update, and delete the
|
|
23
|
-
* aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the
|
|
24
|
-
* the <a>DescribeKey</a> operation. To get the aliases of all KMS keys
|
|
25
|
-
* use the <a>ListAliases</a> operation. </p>
|
|
23
|
+
* aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the
|
|
24
|
+
* response from the <a>DescribeKey</a> operation. To get the aliases of all KMS keys
|
|
25
|
+
* in the account, use the <a>ListAliases</a> operation. </p>
|
|
26
26
|
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
27
27
|
* 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>
|
|
28
|
-
*
|
|
28
|
+
* <p>
|
|
29
29
|
* <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account. </p>
|
|
30
30
|
* <p>
|
|
31
31
|
* <b>Required permissions</b>
|
|
@@ -33,18 +33,22 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
33
33
|
* <ul>
|
|
34
34
|
* <li>
|
|
35
35
|
* <p>
|
|
36
|
-
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias</a> on
|
|
36
|
+
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias</a> on
|
|
37
|
+
* the alias (IAM policy).</p>
|
|
37
38
|
* </li>
|
|
38
39
|
* <li>
|
|
39
40
|
* <p>
|
|
40
|
-
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias</a> on
|
|
41
|
+
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias</a> on
|
|
42
|
+
* the current KMS key (key policy).</p>
|
|
41
43
|
* </li>
|
|
42
44
|
* <li>
|
|
43
45
|
* <p>
|
|
44
|
-
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias</a> on
|
|
46
|
+
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias</a> on
|
|
47
|
+
* the new KMS key (key policy).</p>
|
|
45
48
|
* </li>
|
|
46
49
|
* </ul>
|
|
47
|
-
* <p>For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to aliases</a> in the
|
|
50
|
+
* <p>For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to aliases</a> in the
|
|
51
|
+
* <i>Key Management Service Developer Guide</i>.</p>
|
|
48
52
|
* <p>
|
|
49
53
|
* <b>Related operations:</b>
|
|
50
54
|
* </p>
|
|
@@ -116,4 +120,3 @@ class UpdateAliasCommand extends smithy_client_1.Command {
|
|
|
116
120
|
}
|
|
117
121
|
}
|
|
118
122
|
exports.UpdateAliasCommand = UpdateAliasCommand;
|
|
119
|
-
//# sourceMappingURL=UpdateAliasCommand.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateCustomKeyStoreCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
8
|
/**
|
|
9
9
|
* <p>Changes the properties of a custom key store. Use the <code>CustomKeyStoreId</code>
|
|
10
10
|
* parameter to identify the custom key store you want to edit. Use the remaining parameters to
|
|
@@ -14,29 +14,29 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
14
14
|
* the update completes, use <a>ConnectCustomKeyStore</a>. To find the connection
|
|
15
15
|
* state of a custom key store, use the <a>DescribeCustomKeyStores</a>
|
|
16
16
|
* operation.</p>
|
|
17
|
-
* <p>
|
|
18
|
-
* settings.</p>
|
|
17
|
+
* <p>The <code>CustomKeyStoreId</code> parameter is required in all commands. Use the other
|
|
18
|
+
* parameters of <code>UpdateCustomKeyStore</code> to edit your key store settings.</p>
|
|
19
19
|
* <ul>
|
|
20
20
|
* <li>
|
|
21
|
-
* <p>Use the <
|
|
22
|
-
*
|
|
21
|
+
* <p>Use the <code>NewCustomKeyStoreName</code> parameter to change the friendly name of
|
|
22
|
+
* the custom key store to the value that you specify.</p>
|
|
23
23
|
* <p> </p>
|
|
24
24
|
* </li>
|
|
25
25
|
* <li>
|
|
26
|
-
* <p>Use the <
|
|
27
|
-
*
|
|
28
|
-
* <code>kmsuser</code> crypto
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
26
|
+
* <p>Use the <code>KeyStorePassword</code> parameter tell KMS the current password of the
|
|
27
|
+
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser">
|
|
28
|
+
* <code>kmsuser</code> crypto user (CU)</a> in the associated CloudHSM cluster. You
|
|
29
|
+
* can use this parameter to <a href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-password">fix connection
|
|
30
|
+
* failures</a> that occur when KMS cannot log into the associated cluster because
|
|
31
|
+
* the <code>kmsuser</code> password has changed. This value does not change the password in
|
|
32
|
+
* the CloudHSM cluster.</p>
|
|
33
33
|
* <p> </p>
|
|
34
34
|
* </li>
|
|
35
35
|
* <li>
|
|
36
|
-
* <p>Use the <
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
36
|
+
* <p>Use the <code>CloudHsmClusterId</code> parameter to associate the custom key store
|
|
37
|
+
* with a different, but related, CloudHSM cluster. You can use this parameter to repair a
|
|
38
|
+
* custom key store if its CloudHSM cluster becomes corrupted or is deleted, or when you need to
|
|
39
|
+
* create or restore a cluster from a backup. </p>
|
|
40
40
|
* </li>
|
|
41
41
|
* </ul>
|
|
42
42
|
* <p>If the operation succeeds, it returns a JSON object with no
|
|
@@ -44,9 +44,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
44
44
|
* <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
|
|
45
45
|
* combines the convenience and extensive integration of KMS with the isolation and control of a
|
|
46
46
|
* single-tenant key store.</p>
|
|
47
|
-
*
|
|
48
47
|
* <p>
|
|
49
|
-
* <b>Cross-account
|
|
48
|
+
* <b>Cross-account
|
|
49
|
+
* use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account. </p>
|
|
50
50
|
* <p>
|
|
51
51
|
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateCustomKeyStore</a> (IAM policy)</p>
|
|
52
52
|
* <p>
|
|
@@ -130,4 +130,3 @@ class UpdateCustomKeyStoreCommand extends smithy_client_1.Command {
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
exports.UpdateCustomKeyStoreCommand = UpdateCustomKeyStoreCommand;
|
|
133
|
-
//# sourceMappingURL=UpdateCustomKeyStoreCommand.js.map
|