@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,159 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { GenerateDataKeyRequest, GenerateDataKeyResponse } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_json1_1GenerateDataKeyCommand, serializeAws_json1_1GenerateDataKeyCommand, } 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>Generates a unique symmetric data key for client-side encryption. This operation returns a
|
|
8
|
-
* plaintext copy of the data key and a copy that is encrypted under a KMS key
|
|
9
|
-
* that you specify. You can use the plaintext key to encrypt your data outside of KMS and
|
|
10
|
-
* store the encrypted data key with the encrypted data.</p>
|
|
11
|
-
*
|
|
12
|
-
* <p>
|
|
13
|
-
* <code>GenerateDataKey</code> returns a unique data key for each request. The bytes in the
|
|
14
|
-
* plaintext key are not related to the caller or the KMS key.</p>
|
|
15
|
-
*
|
|
16
|
-
* <p>To generate a data key, specify the symmetric KMS key that will be used to encrypt the data
|
|
17
|
-
* key. You cannot use an asymmetric KMS key to generate data keys. To get the type of your KMS key, use
|
|
18
|
-
* the <a>DescribeKey</a> operation. You must also specify the length of the data key.
|
|
19
|
-
* Use either the <code>KeySpec</code> or <code>NumberOfBytes</code> parameters (but not both).
|
|
20
|
-
* For 128-bit and 256-bit data keys, use the <code>KeySpec</code> parameter. </p>
|
|
21
|
-
*
|
|
22
|
-
* <p>To get only an encrypted copy of the data key, use <a>GenerateDataKeyWithoutPlaintext</a>. To generate an asymmetric data key pair, use
|
|
23
|
-
* the <a>GenerateDataKeyPair</a> or <a>GenerateDataKeyPairWithoutPlaintext</a> operation. To get a cryptographically secure
|
|
24
|
-
* random byte string, use <a>GenerateRandom</a>.</p>
|
|
25
|
-
*
|
|
26
|
-
* <p>You can use the optional encryption context to add additional security to the encryption
|
|
27
|
-
* operation. If you specify an <code>EncryptionContext</code>, you must specify the same
|
|
28
|
-
* encryption context (a case-sensitive exact match) when decrypting the encrypted data key.
|
|
29
|
-
* Otherwise, the request to decrypt fails with an <code>InvalidCiphertextException</code>. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a> in the
|
|
30
|
-
* <i>Key Management Service Developer Guide</i>.</p>
|
|
31
|
-
* <p>Applications in Amazon Web Services Nitro Enclaves can call this operation by using the <a href="https://github.com/aws/aws-nitro-enclaves-sdk-c">Amazon Web Services Nitro Enclaves Development Kit</a>. For information about the supporting parameters, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/services-nitro-enclaves.html">How Amazon Web Services Nitro Enclaves use KMS</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
32
|
-
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
33
|
-
* 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>
|
|
34
|
-
* <p>
|
|
35
|
-
* <b>How to use your data key</b>
|
|
36
|
-
* </p>
|
|
37
|
-
* <p>We recommend that you use the following pattern to encrypt data locally in your application.
|
|
38
|
-
* You can write your own code or use a client-side encryption library, such as the <a href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a>, the <a href="https://docs.aws.amazon.com/dynamodb-encryption-client/latest/devguide/">Amazon DynamoDB Encryption Client</a>, or
|
|
39
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3
|
|
40
|
-
* client-side encryption</a> to do these tasks for you.</p>
|
|
41
|
-
* <p>To encrypt data outside of KMS:</p>
|
|
42
|
-
* <ol>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>Use the <code>GenerateDataKey</code> operation to get a data key.</p>
|
|
45
|
-
* </li>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>Use the plaintext data key (in the <code>Plaintext</code> field of the response) to
|
|
48
|
-
* encrypt your data outside of KMS. Then erase the plaintext data key from memory.</p>
|
|
49
|
-
* </li>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>Store the encrypted data key (in the <code>CiphertextBlob</code> field of the
|
|
52
|
-
* response) with the encrypted data.</p>
|
|
53
|
-
* </li>
|
|
54
|
-
* </ol>
|
|
55
|
-
* <p>To decrypt data outside of KMS:</p>
|
|
56
|
-
* <ol>
|
|
57
|
-
* <li>
|
|
58
|
-
* <p>Use the <a>Decrypt</a> operation to decrypt the encrypted data key. The
|
|
59
|
-
* operation returns a plaintext copy of the data key.</p>
|
|
60
|
-
* </li>
|
|
61
|
-
* <li>
|
|
62
|
-
* <p>Use the plaintext data key to decrypt data outside of KMS, then erase the plaintext
|
|
63
|
-
* data key from memory.</p>
|
|
64
|
-
* </li>
|
|
65
|
-
* </ol>
|
|
66
|
-
* <p>
|
|
67
|
-
* <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify
|
|
68
|
-
* the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.</p>
|
|
69
|
-
*
|
|
70
|
-
* <p>
|
|
71
|
-
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:GenerateDataKey</a> (key policy)</p>
|
|
72
|
-
* <p>
|
|
73
|
-
* <b>Related operations:</b>
|
|
74
|
-
* </p>
|
|
75
|
-
* <ul>
|
|
76
|
-
* <li>
|
|
77
|
-
* <p>
|
|
78
|
-
* <a>Decrypt</a>
|
|
79
|
-
* </p>
|
|
80
|
-
* </li>
|
|
81
|
-
* <li>
|
|
82
|
-
* <p>
|
|
83
|
-
* <a>Encrypt</a>
|
|
84
|
-
* </p>
|
|
85
|
-
* </li>
|
|
86
|
-
* <li>
|
|
87
|
-
* <p>
|
|
88
|
-
* <a>GenerateDataKeyPair</a>
|
|
89
|
-
* </p>
|
|
90
|
-
* </li>
|
|
91
|
-
* <li>
|
|
92
|
-
* <p>
|
|
93
|
-
* <a>GenerateDataKeyPairWithoutPlaintext</a>
|
|
94
|
-
* </p>
|
|
95
|
-
* </li>
|
|
96
|
-
* <li>
|
|
97
|
-
* <p>
|
|
98
|
-
* <a>GenerateDataKeyWithoutPlaintext</a>
|
|
99
|
-
* </p>
|
|
100
|
-
* </li>
|
|
101
|
-
* </ul>
|
|
102
|
-
* @example
|
|
103
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
104
|
-
* ```javascript
|
|
105
|
-
* import { KMSClient, GenerateDataKeyCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
106
|
-
* // const { KMSClient, GenerateDataKeyCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
107
|
-
* const client = new KMSClient(config);
|
|
108
|
-
* const command = new GenerateDataKeyCommand(input);
|
|
109
|
-
* const response = await client.send(command);
|
|
110
|
-
* ```
|
|
111
|
-
*
|
|
112
|
-
* @see {@link GenerateDataKeyCommandInput} for command's `input` shape.
|
|
113
|
-
* @see {@link GenerateDataKeyCommandOutput} for command's `response` shape.
|
|
114
|
-
* @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
|
|
115
|
-
*
|
|
116
|
-
*/
|
|
117
|
-
var GenerateDataKeyCommand = /** @class */ (function (_super) {
|
|
118
|
-
__extends(GenerateDataKeyCommand, _super);
|
|
119
|
-
// Start section: command_properties
|
|
120
|
-
// End section: command_properties
|
|
121
|
-
function GenerateDataKeyCommand(input) {
|
|
122
|
-
var _this =
|
|
123
|
-
// Start section: command_constructor
|
|
124
|
-
_super.call(this) || this;
|
|
125
|
-
_this.input = input;
|
|
126
|
-
return _this;
|
|
127
|
-
// End section: command_constructor
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* @internal
|
|
131
|
-
*/
|
|
132
|
-
GenerateDataKeyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
133
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
134
|
-
var stack = clientStack.concat(this.middlewareStack);
|
|
135
|
-
var logger = configuration.logger;
|
|
136
|
-
var clientName = "KMSClient";
|
|
137
|
-
var commandName = "GenerateDataKeyCommand";
|
|
138
|
-
var handlerExecutionContext = {
|
|
139
|
-
logger: logger,
|
|
140
|
-
clientName: clientName,
|
|
141
|
-
commandName: commandName,
|
|
142
|
-
inputFilterSensitiveLog: GenerateDataKeyRequest.filterSensitiveLog,
|
|
143
|
-
outputFilterSensitiveLog: GenerateDataKeyResponse.filterSensitiveLog,
|
|
144
|
-
};
|
|
145
|
-
var requestHandler = configuration.requestHandler;
|
|
146
|
-
return stack.resolve(function (request) {
|
|
147
|
-
return requestHandler.handle(request.request, options || {});
|
|
148
|
-
}, handlerExecutionContext);
|
|
149
|
-
};
|
|
150
|
-
GenerateDataKeyCommand.prototype.serialize = function (input, context) {
|
|
151
|
-
return serializeAws_json1_1GenerateDataKeyCommand(input, context);
|
|
152
|
-
};
|
|
153
|
-
GenerateDataKeyCommand.prototype.deserialize = function (output, context) {
|
|
154
|
-
return deserializeAws_json1_1GenerateDataKeyCommand(output, context);
|
|
155
|
-
};
|
|
156
|
-
return GenerateDataKeyCommand;
|
|
157
|
-
}($Command));
|
|
158
|
-
export { GenerateDataKeyCommand };
|
|
159
|
-
//# sourceMappingURL=GenerateDataKeyCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GenerateDataKeyCommand.js","sourceRoot":"","sources":["../../../commands/GenerateDataKeyCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EACL,4CAA4C,EAC5C,0CAA0C,GAC3C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8GG;AACH;IAA4C,0CAI3C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,gCAAqB,KAAkC;QAAvD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA6B;;QAGrD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,kDAAiB,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,wBAAwB,CAAC;QAC7C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,sBAAsB,CAAC,kBAAkB;YAClE,wBAAwB,EAAE,uBAAuB,CAAC,kBAAkB;SACrE,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,0CAAS,GAAjB,UAAkB,KAAkC,EAAE,OAAuB;QAC3E,OAAO,0CAA0C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAEO,4CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,4CAA4C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAIH,6BAAC;AAAD,CAAC,AAtDD,CAA4C,QAAQ,GAsDnD"}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { GenerateDataKeyPairRequest, GenerateDataKeyPairResponse } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_json1_1GenerateDataKeyPairCommand, serializeAws_json1_1GenerateDataKeyPairCommand, } 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>Generates a unique asymmetric data key pair. The <code>GenerateDataKeyPair</code>
|
|
8
|
-
* operation returns a plaintext public key, a plaintext private key, and a copy of the private
|
|
9
|
-
* key that is encrypted under the symmetric KMS key you specify. You can use the data key pair to
|
|
10
|
-
* perform asymmetric cryptography and implement digital signatures outside of KMS.</p>
|
|
11
|
-
*
|
|
12
|
-
* <p>You can use the public key that <code>GenerateDataKeyPair</code> returns to encrypt data
|
|
13
|
-
* or verify a signature outside of KMS. Then, store the encrypted private key with the data.
|
|
14
|
-
* When you are ready to decrypt data or sign a message, you can use the <a>Decrypt</a> operation to decrypt the encrypted private key.</p>
|
|
15
|
-
*
|
|
16
|
-
* <p>To generate a data key pair, you must specify a symmetric KMS key to
|
|
17
|
-
* encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a
|
|
18
|
-
* custom key store. To get the type and origin of your KMS key, use the <a>DescribeKey</a> operation. </p>
|
|
19
|
-
* <p>Use the <code>KeyPairSpec</code> parameter to choose an RSA or Elliptic Curve (ECC) data
|
|
20
|
-
* key pair. KMS recommends that your use ECC key pairs for signing, and use RSA key pairs
|
|
21
|
-
* for either encryption or signing, but not both. However, KMS cannot enforce any restrictions
|
|
22
|
-
* on the use of data key pairs outside of KMS.</p>
|
|
23
|
-
*
|
|
24
|
-
* <p>If you are using the data key pair to encrypt data, or for any operation where you don't
|
|
25
|
-
* immediately need a private key, consider using the <a>GenerateDataKeyPairWithoutPlaintext</a> operation.
|
|
26
|
-
* <code>GenerateDataKeyPairWithoutPlaintext</code> returns a plaintext public key and an
|
|
27
|
-
* encrypted private key, but omits the plaintext private key that you need only to decrypt
|
|
28
|
-
* ciphertext or sign a message. Later, when you need to decrypt the data or sign a message, use
|
|
29
|
-
* the <a>Decrypt</a> operation to decrypt the encrypted private key in the data key
|
|
30
|
-
* pair.</p>
|
|
31
|
-
*
|
|
32
|
-
* <p>
|
|
33
|
-
* <code>GenerateDataKeyPair</code> returns a unique data key pair for each request. The
|
|
34
|
-
* bytes in the keys are not related to the caller or the KMS key that is used to encrypt the private
|
|
35
|
-
* key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in <a href="https://tools.ietf.org/html/rfc5280">RFC 5280</a>. The
|
|
36
|
-
* private key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in <a href="https://tools.ietf.org/html/rfc5958">RFC
|
|
37
|
-
* 5958</a>.</p>
|
|
38
|
-
*
|
|
39
|
-
* <p>You can use the optional encryption context to add additional security to the encryption
|
|
40
|
-
* operation. If you specify an <code>EncryptionContext</code>, you must specify the same
|
|
41
|
-
* encryption context (a case-sensitive exact match) when decrypting the encrypted data key.
|
|
42
|
-
* Otherwise, the request to decrypt fails with an <code>InvalidCiphertextException</code>. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a> in the
|
|
43
|
-
* <i>Key Management Service Developer Guide</i>.</p>
|
|
44
|
-
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
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>
|
|
46
|
-
* <p>
|
|
47
|
-
* <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify
|
|
48
|
-
* the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.</p>
|
|
49
|
-
*
|
|
50
|
-
* <p>
|
|
51
|
-
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:GenerateDataKeyPair</a> (key policy)</p>
|
|
52
|
-
* <p>
|
|
53
|
-
* <b>Related operations:</b>
|
|
54
|
-
* </p>
|
|
55
|
-
* <ul>
|
|
56
|
-
* <li>
|
|
57
|
-
* <p>
|
|
58
|
-
* <a>Decrypt</a>
|
|
59
|
-
* </p>
|
|
60
|
-
* </li>
|
|
61
|
-
* <li>
|
|
62
|
-
* <p>
|
|
63
|
-
* <a>Encrypt</a>
|
|
64
|
-
* </p>
|
|
65
|
-
* </li>
|
|
66
|
-
* <li>
|
|
67
|
-
* <p>
|
|
68
|
-
* <a>GenerateDataKey</a>
|
|
69
|
-
* </p>
|
|
70
|
-
* </li>
|
|
71
|
-
* <li>
|
|
72
|
-
* <p>
|
|
73
|
-
* <a>GenerateDataKeyPairWithoutPlaintext</a>
|
|
74
|
-
* </p>
|
|
75
|
-
* </li>
|
|
76
|
-
* <li>
|
|
77
|
-
* <p>
|
|
78
|
-
* <a>GenerateDataKeyWithoutPlaintext</a>
|
|
79
|
-
* </p>
|
|
80
|
-
* </li>
|
|
81
|
-
* </ul>
|
|
82
|
-
* @example
|
|
83
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
84
|
-
* ```javascript
|
|
85
|
-
* import { KMSClient, GenerateDataKeyPairCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
86
|
-
* // const { KMSClient, GenerateDataKeyPairCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
87
|
-
* const client = new KMSClient(config);
|
|
88
|
-
* const command = new GenerateDataKeyPairCommand(input);
|
|
89
|
-
* const response = await client.send(command);
|
|
90
|
-
* ```
|
|
91
|
-
*
|
|
92
|
-
* @see {@link GenerateDataKeyPairCommandInput} for command's `input` shape.
|
|
93
|
-
* @see {@link GenerateDataKeyPairCommandOutput} for command's `response` shape.
|
|
94
|
-
* @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
|
|
95
|
-
*
|
|
96
|
-
*/
|
|
97
|
-
var GenerateDataKeyPairCommand = /** @class */ (function (_super) {
|
|
98
|
-
__extends(GenerateDataKeyPairCommand, _super);
|
|
99
|
-
// Start section: command_properties
|
|
100
|
-
// End section: command_properties
|
|
101
|
-
function GenerateDataKeyPairCommand(input) {
|
|
102
|
-
var _this =
|
|
103
|
-
// Start section: command_constructor
|
|
104
|
-
_super.call(this) || this;
|
|
105
|
-
_this.input = input;
|
|
106
|
-
return _this;
|
|
107
|
-
// End section: command_constructor
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* @internal
|
|
111
|
-
*/
|
|
112
|
-
GenerateDataKeyPairCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
113
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
114
|
-
var stack = clientStack.concat(this.middlewareStack);
|
|
115
|
-
var logger = configuration.logger;
|
|
116
|
-
var clientName = "KMSClient";
|
|
117
|
-
var commandName = "GenerateDataKeyPairCommand";
|
|
118
|
-
var handlerExecutionContext = {
|
|
119
|
-
logger: logger,
|
|
120
|
-
clientName: clientName,
|
|
121
|
-
commandName: commandName,
|
|
122
|
-
inputFilterSensitiveLog: GenerateDataKeyPairRequest.filterSensitiveLog,
|
|
123
|
-
outputFilterSensitiveLog: GenerateDataKeyPairResponse.filterSensitiveLog,
|
|
124
|
-
};
|
|
125
|
-
var requestHandler = configuration.requestHandler;
|
|
126
|
-
return stack.resolve(function (request) {
|
|
127
|
-
return requestHandler.handle(request.request, options || {});
|
|
128
|
-
}, handlerExecutionContext);
|
|
129
|
-
};
|
|
130
|
-
GenerateDataKeyPairCommand.prototype.serialize = function (input, context) {
|
|
131
|
-
return serializeAws_json1_1GenerateDataKeyPairCommand(input, context);
|
|
132
|
-
};
|
|
133
|
-
GenerateDataKeyPairCommand.prototype.deserialize = function (output, context) {
|
|
134
|
-
return deserializeAws_json1_1GenerateDataKeyPairCommand(output, context);
|
|
135
|
-
};
|
|
136
|
-
return GenerateDataKeyPairCommand;
|
|
137
|
-
}($Command));
|
|
138
|
-
export { GenerateDataKeyPairCommand };
|
|
139
|
-
//# sourceMappingURL=GenerateDataKeyPairCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GenerateDataKeyPairCommand.js","sourceRoot":"","sources":["../../../commands/GenerateDataKeyPairCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EACL,gDAAgD,EAChD,8CAA8C,GAC/C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FG;AACH;IAAgD,8CAI/C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,oCAAqB,KAAsC;QAA3D;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAiC;;QAGzD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,sDAAiB,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,4BAA4B,CAAC;QACjD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,0BAA0B,CAAC,kBAAkB;YACtE,wBAAwB,EAAE,2BAA2B,CAAC,kBAAkB;SACzE,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,8CAAS,GAAjB,UAAkB,KAAsC,EAAE,OAAuB;QAC/E,OAAO,8CAA8C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAEO,gDAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,gDAAgD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAIH,iCAAC;AAAD,CAAC,AAtDD,CAAgD,QAAQ,GAsDvD"}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { GenerateDataKeyPairWithoutPlaintextRequest, GenerateDataKeyPairWithoutPlaintextResponse, } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommand, serializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommand, } 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>Generates a unique asymmetric data key pair. The
|
|
8
|
-
* <code>GenerateDataKeyPairWithoutPlaintext</code> operation returns a plaintext public key
|
|
9
|
-
* and a copy of the private key that is encrypted under the symmetric KMS key you specify. Unlike
|
|
10
|
-
* <a>GenerateDataKeyPair</a>, this operation does not return a plaintext private
|
|
11
|
-
* key. </p>
|
|
12
|
-
* <p>You can use the public key that <code>GenerateDataKeyPairWithoutPlaintext</code> returns
|
|
13
|
-
* to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key
|
|
14
|
-
* with the data. When you are ready to decrypt data or sign a message, you can use the <a>Decrypt</a> operation to decrypt the encrypted private key.</p>
|
|
15
|
-
* <p>To generate a data key pair, you must specify a symmetric KMS key to
|
|
16
|
-
* encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a
|
|
17
|
-
* custom key store. To get the type and origin of your KMS key, use the <a>DescribeKey</a> operation. </p>
|
|
18
|
-
* <p>Use the <code>KeyPairSpec</code> parameter to choose an RSA or Elliptic Curve (ECC) data
|
|
19
|
-
* key pair. KMS recommends that your use ECC key pairs for signing, and use RSA key pairs
|
|
20
|
-
* for either encryption or signing, but not both. However, KMS cannot enforce any restrictions
|
|
21
|
-
* on the use of data key pairs outside of KMS.</p>
|
|
22
|
-
* <p>
|
|
23
|
-
* <code>GenerateDataKeyPairWithoutPlaintext</code> returns a unique data key pair for each
|
|
24
|
-
* request. The bytes in the key are not related to the caller or KMS key that is used to encrypt the
|
|
25
|
-
* private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in
|
|
26
|
-
* <a href="https://tools.ietf.org/html/rfc5280">RFC 5280</a>.</p>
|
|
27
|
-
*
|
|
28
|
-
* <p>You can use the optional encryption context to add additional security to the encryption
|
|
29
|
-
* operation. If you specify an <code>EncryptionContext</code>, you must specify the same
|
|
30
|
-
* encryption context (a case-sensitive exact match) when decrypting the encrypted data key.
|
|
31
|
-
* Otherwise, the request to decrypt fails with an <code>InvalidCiphertextException</code>. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a> in the
|
|
32
|
-
* <i>Key Management Service Developer Guide</i>.</p>
|
|
33
|
-
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
34
|
-
* 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>
|
|
35
|
-
* <p>
|
|
36
|
-
* <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify
|
|
37
|
-
* the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.</p>
|
|
38
|
-
*
|
|
39
|
-
* <p>
|
|
40
|
-
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:GenerateDataKeyPairWithoutPlaintext</a> (key policy)</p>
|
|
41
|
-
* <p>
|
|
42
|
-
* <b>Related operations:</b>
|
|
43
|
-
* </p>
|
|
44
|
-
* <ul>
|
|
45
|
-
* <li>
|
|
46
|
-
* <p>
|
|
47
|
-
* <a>Decrypt</a>
|
|
48
|
-
* </p>
|
|
49
|
-
* </li>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>
|
|
52
|
-
* <a>Encrypt</a>
|
|
53
|
-
* </p>
|
|
54
|
-
* </li>
|
|
55
|
-
* <li>
|
|
56
|
-
* <p>
|
|
57
|
-
* <a>GenerateDataKey</a>
|
|
58
|
-
* </p>
|
|
59
|
-
* </li>
|
|
60
|
-
* <li>
|
|
61
|
-
* <p>
|
|
62
|
-
* <a>GenerateDataKeyPair</a>
|
|
63
|
-
* </p>
|
|
64
|
-
* </li>
|
|
65
|
-
* <li>
|
|
66
|
-
* <p>
|
|
67
|
-
* <a>GenerateDataKeyWithoutPlaintext</a>
|
|
68
|
-
* </p>
|
|
69
|
-
* </li>
|
|
70
|
-
* </ul>
|
|
71
|
-
* @example
|
|
72
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
73
|
-
* ```javascript
|
|
74
|
-
* import { KMSClient, GenerateDataKeyPairWithoutPlaintextCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
75
|
-
* // const { KMSClient, GenerateDataKeyPairWithoutPlaintextCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
76
|
-
* const client = new KMSClient(config);
|
|
77
|
-
* const command = new GenerateDataKeyPairWithoutPlaintextCommand(input);
|
|
78
|
-
* const response = await client.send(command);
|
|
79
|
-
* ```
|
|
80
|
-
*
|
|
81
|
-
* @see {@link GenerateDataKeyPairWithoutPlaintextCommandInput} for command's `input` shape.
|
|
82
|
-
* @see {@link GenerateDataKeyPairWithoutPlaintextCommandOutput} for command's `response` shape.
|
|
83
|
-
* @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
|
|
84
|
-
*
|
|
85
|
-
*/
|
|
86
|
-
var GenerateDataKeyPairWithoutPlaintextCommand = /** @class */ (function (_super) {
|
|
87
|
-
__extends(GenerateDataKeyPairWithoutPlaintextCommand, _super);
|
|
88
|
-
// Start section: command_properties
|
|
89
|
-
// End section: command_properties
|
|
90
|
-
function GenerateDataKeyPairWithoutPlaintextCommand(input) {
|
|
91
|
-
var _this =
|
|
92
|
-
// Start section: command_constructor
|
|
93
|
-
_super.call(this) || this;
|
|
94
|
-
_this.input = input;
|
|
95
|
-
return _this;
|
|
96
|
-
// End section: command_constructor
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
101
|
-
GenerateDataKeyPairWithoutPlaintextCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
102
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
103
|
-
var stack = clientStack.concat(this.middlewareStack);
|
|
104
|
-
var logger = configuration.logger;
|
|
105
|
-
var clientName = "KMSClient";
|
|
106
|
-
var commandName = "GenerateDataKeyPairWithoutPlaintextCommand";
|
|
107
|
-
var handlerExecutionContext = {
|
|
108
|
-
logger: logger,
|
|
109
|
-
clientName: clientName,
|
|
110
|
-
commandName: commandName,
|
|
111
|
-
inputFilterSensitiveLog: GenerateDataKeyPairWithoutPlaintextRequest.filterSensitiveLog,
|
|
112
|
-
outputFilterSensitiveLog: GenerateDataKeyPairWithoutPlaintextResponse.filterSensitiveLog,
|
|
113
|
-
};
|
|
114
|
-
var requestHandler = configuration.requestHandler;
|
|
115
|
-
return stack.resolve(function (request) {
|
|
116
|
-
return requestHandler.handle(request.request, options || {});
|
|
117
|
-
}, handlerExecutionContext);
|
|
118
|
-
};
|
|
119
|
-
GenerateDataKeyPairWithoutPlaintextCommand.prototype.serialize = function (input, context) {
|
|
120
|
-
return serializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommand(input, context);
|
|
121
|
-
};
|
|
122
|
-
GenerateDataKeyPairWithoutPlaintextCommand.prototype.deserialize = function (output, context) {
|
|
123
|
-
return deserializeAws_json1_1GenerateDataKeyPairWithoutPlaintextCommand(output, context);
|
|
124
|
-
};
|
|
125
|
-
return GenerateDataKeyPairWithoutPlaintextCommand;
|
|
126
|
-
}($Command));
|
|
127
|
-
export { GenerateDataKeyPairWithoutPlaintextCommand };
|
|
128
|
-
//# sourceMappingURL=GenerateDataKeyPairWithoutPlaintextCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GenerateDataKeyPairWithoutPlaintextCommand.js","sourceRoot":"","sources":["../../../commands/GenerateDataKeyPairWithoutPlaintextCommand.ts"],"names":[],"mappings":";AACA,OAAO,EACL,0CAA0C,EAC1C,2CAA2C,GAC5C,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,gEAAgE,EAChE,8DAA8D,GAC/D,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAgB7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EG;AACH;IAAgE,8DAI/D;IACC,oCAAoC;IACpC,kCAAkC;IAElC,oDAAqB,KAAsD;QAA3E;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAiD;;QAGzE,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,sEAAiB,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,4CAA4C,CAAC;QACjE,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,0CAA0C,CAAC,kBAAkB;YACtF,wBAAwB,EAAE,2CAA2C,CAAC,kBAAkB;SACzF,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,8DAAS,GAAjB,UACE,KAAsD,EACtD,OAAuB;QAEvB,OAAO,8DAA8D,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAEO,gEAAW,GAAnB,UACE,MAAsB,EACtB,OAAuB;QAEvB,OAAO,gEAAgE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;IAIH,iDAAC;AAAD,CAAC,AA5DD,CAAgE,QAAQ,GA4DvE"}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { GenerateDataKeyWithoutPlaintextRequest, GenerateDataKeyWithoutPlaintextResponse } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_json1_1GenerateDataKeyWithoutPlaintextCommand, serializeAws_json1_1GenerateDataKeyWithoutPlaintextCommand, } 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>Generates a unique symmetric data key. This operation returns a data key that is encrypted
|
|
8
|
-
* under a KMS key that you specify. To request an asymmetric data key pair,
|
|
9
|
-
* use the <a>GenerateDataKeyPair</a> or <a>GenerateDataKeyPairWithoutPlaintext</a> operations.</p>
|
|
10
|
-
* <p>
|
|
11
|
-
* <code>GenerateDataKeyWithoutPlaintext</code> is identical to the <a>GenerateDataKey</a> operation except that returns only the encrypted copy of the
|
|
12
|
-
* data key. This operation is useful for systems that need to encrypt data at some point, but
|
|
13
|
-
* not immediately. When you need to encrypt the data, you call the <a>Decrypt</a>
|
|
14
|
-
* operation on the encrypted copy of the key. </p>
|
|
15
|
-
* <p>It's also useful in distributed systems with different levels of trust. For example, you
|
|
16
|
-
* might store encrypted data in containers. One component of your system creates new containers
|
|
17
|
-
* and stores an encrypted data key with each container. Then, a different component puts the
|
|
18
|
-
* data into the containers. That component first decrypts the data key, uses the plaintext data
|
|
19
|
-
* key to encrypt data, puts the encrypted data into the container, and then destroys the
|
|
20
|
-
* plaintext data key. In this system, the component that creates the containers never sees the
|
|
21
|
-
* plaintext data key.</p>
|
|
22
|
-
* <p>
|
|
23
|
-
* <code>GenerateDataKeyWithoutPlaintext</code> returns a unique data key for each request.
|
|
24
|
-
* The bytes in the keys are not related to the caller or KMS key that is used to encrypt the private
|
|
25
|
-
* key.</p>
|
|
26
|
-
*
|
|
27
|
-
* <p>To generate a data key, you must specify the symmetric KMS key that is
|
|
28
|
-
* used to encrypt the data key. You cannot use an asymmetric KMS key to generate a data key. To get
|
|
29
|
-
* the type of your KMS key, use the <a>DescribeKey</a> operation.</p>
|
|
30
|
-
*
|
|
31
|
-
* <p>If the operation succeeds, you will find the encrypted copy of the data key in the
|
|
32
|
-
* <code>CiphertextBlob</code> field.</p>
|
|
33
|
-
*
|
|
34
|
-
* <p>You can use the optional encryption context to add additional security to the encryption
|
|
35
|
-
* operation. If you specify an <code>EncryptionContext</code>, you must specify the same
|
|
36
|
-
* encryption context (a case-sensitive exact match) when decrypting the encrypted data key.
|
|
37
|
-
* Otherwise, the request to decrypt fails with an <code>InvalidCiphertextException</code>. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">Encryption Context</a> in the
|
|
38
|
-
* <i>Key Management Service Developer Guide</i>.</p>
|
|
39
|
-
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
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>
|
|
41
|
-
* <p>
|
|
42
|
-
* <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify
|
|
43
|
-
* the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.</p>
|
|
44
|
-
*
|
|
45
|
-
* <p>
|
|
46
|
-
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:GenerateDataKeyWithoutPlaintext</a> (key policy)</p>
|
|
47
|
-
* <p>
|
|
48
|
-
* <b>Related operations:</b>
|
|
49
|
-
* </p>
|
|
50
|
-
* <ul>
|
|
51
|
-
* <li>
|
|
52
|
-
* <p>
|
|
53
|
-
* <a>Decrypt</a>
|
|
54
|
-
* </p>
|
|
55
|
-
* </li>
|
|
56
|
-
* <li>
|
|
57
|
-
* <p>
|
|
58
|
-
* <a>Encrypt</a>
|
|
59
|
-
* </p>
|
|
60
|
-
* </li>
|
|
61
|
-
* <li>
|
|
62
|
-
* <p>
|
|
63
|
-
* <a>GenerateDataKey</a>
|
|
64
|
-
* </p>
|
|
65
|
-
* </li>
|
|
66
|
-
* <li>
|
|
67
|
-
* <p>
|
|
68
|
-
* <a>GenerateDataKeyPair</a>
|
|
69
|
-
* </p>
|
|
70
|
-
* </li>
|
|
71
|
-
* <li>
|
|
72
|
-
* <p>
|
|
73
|
-
* <a>GenerateDataKeyPairWithoutPlaintext</a>
|
|
74
|
-
* </p>
|
|
75
|
-
* </li>
|
|
76
|
-
* </ul>
|
|
77
|
-
* @example
|
|
78
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
79
|
-
* ```javascript
|
|
80
|
-
* import { KMSClient, GenerateDataKeyWithoutPlaintextCommand } from "@aws-sdk/client-kms"; // ES Modules import
|
|
81
|
-
* // const { KMSClient, GenerateDataKeyWithoutPlaintextCommand } = require("@aws-sdk/client-kms"); // CommonJS import
|
|
82
|
-
* const client = new KMSClient(config);
|
|
83
|
-
* const command = new GenerateDataKeyWithoutPlaintextCommand(input);
|
|
84
|
-
* const response = await client.send(command);
|
|
85
|
-
* ```
|
|
86
|
-
*
|
|
87
|
-
* @see {@link GenerateDataKeyWithoutPlaintextCommandInput} for command's `input` shape.
|
|
88
|
-
* @see {@link GenerateDataKeyWithoutPlaintextCommandOutput} for command's `response` shape.
|
|
89
|
-
* @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
|
|
90
|
-
*
|
|
91
|
-
*/
|
|
92
|
-
var GenerateDataKeyWithoutPlaintextCommand = /** @class */ (function (_super) {
|
|
93
|
-
__extends(GenerateDataKeyWithoutPlaintextCommand, _super);
|
|
94
|
-
// Start section: command_properties
|
|
95
|
-
// End section: command_properties
|
|
96
|
-
function GenerateDataKeyWithoutPlaintextCommand(input) {
|
|
97
|
-
var _this =
|
|
98
|
-
// Start section: command_constructor
|
|
99
|
-
_super.call(this) || this;
|
|
100
|
-
_this.input = input;
|
|
101
|
-
return _this;
|
|
102
|
-
// End section: command_constructor
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* @internal
|
|
106
|
-
*/
|
|
107
|
-
GenerateDataKeyWithoutPlaintextCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
108
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
109
|
-
var stack = clientStack.concat(this.middlewareStack);
|
|
110
|
-
var logger = configuration.logger;
|
|
111
|
-
var clientName = "KMSClient";
|
|
112
|
-
var commandName = "GenerateDataKeyWithoutPlaintextCommand";
|
|
113
|
-
var handlerExecutionContext = {
|
|
114
|
-
logger: logger,
|
|
115
|
-
clientName: clientName,
|
|
116
|
-
commandName: commandName,
|
|
117
|
-
inputFilterSensitiveLog: GenerateDataKeyWithoutPlaintextRequest.filterSensitiveLog,
|
|
118
|
-
outputFilterSensitiveLog: GenerateDataKeyWithoutPlaintextResponse.filterSensitiveLog,
|
|
119
|
-
};
|
|
120
|
-
var requestHandler = configuration.requestHandler;
|
|
121
|
-
return stack.resolve(function (request) {
|
|
122
|
-
return requestHandler.handle(request.request, options || {});
|
|
123
|
-
}, handlerExecutionContext);
|
|
124
|
-
};
|
|
125
|
-
GenerateDataKeyWithoutPlaintextCommand.prototype.serialize = function (input, context) {
|
|
126
|
-
return serializeAws_json1_1GenerateDataKeyWithoutPlaintextCommand(input, context);
|
|
127
|
-
};
|
|
128
|
-
GenerateDataKeyWithoutPlaintextCommand.prototype.deserialize = function (output, context) {
|
|
129
|
-
return deserializeAws_json1_1GenerateDataKeyWithoutPlaintextCommand(output, context);
|
|
130
|
-
};
|
|
131
|
-
return GenerateDataKeyWithoutPlaintextCommand;
|
|
132
|
-
}($Command));
|
|
133
|
-
export { GenerateDataKeyWithoutPlaintextCommand };
|
|
134
|
-
//# sourceMappingURL=GenerateDataKeyWithoutPlaintextCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GenerateDataKeyWithoutPlaintextCommand.js","sourceRoot":"","sources":["../../../commands/GenerateDataKeyWithoutPlaintextCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,sCAAsC,EAAE,uCAAuC,EAAE,MAAM,oBAAoB,CAAC;AACrH,OAAO,EACL,4DAA4D,EAC5D,0DAA0D,GAC3D,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAgB7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFG;AACH;IAA4D,0DAI3D;IACC,oCAAoC;IACpC,kCAAkC;IAElC,gDAAqB,KAAkD;QAAvE;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA6C;;QAGrE,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,kEAAiB,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,wCAAwC,CAAC;QAC7D,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,sCAAsC,CAAC,kBAAkB;YAClF,wBAAwB,EAAE,uCAAuC,CAAC,kBAAkB;SACrF,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,0DAAS,GAAjB,UACE,KAAkD,EAClD,OAAuB;QAEvB,OAAO,0DAA0D,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAEO,4DAAW,GAAnB,UACE,MAAsB,EACtB,OAAuB;QAEvB,OAAO,4DAA4D,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;IAIH,6CAAC;AAAD,CAAC,AA5DD,CAA4D,QAAQ,GA4DnE"}
|