@aws-sdk/client-kms 3.28.0 → 3.32.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 +35 -0
- package/KMS.ts +567 -572
- package/KMSClient.ts +18 -18
- package/README.md +18 -18
- package/commands/CancelKeyDeletionCommand.ts +6 -7
- package/commands/ConnectCustomKeyStoreCommand.ts +9 -9
- package/commands/CreateAliasCommand.ts +13 -14
- package/commands/CreateCustomKeyStoreCommand.ts +8 -8
- package/commands/CreateGrantCommand.ts +15 -22
- package/commands/CreateKeyCommand.ts +44 -44
- package/commands/DecryptCommand.ts +23 -22
- package/commands/DeleteAliasCommand.ts +7 -8
- package/commands/DeleteCustomKeyStoreCommand.ts +13 -13
- package/commands/DeleteImportedKeyMaterialCommand.ts +9 -9
- package/commands/DescribeCustomKeyStoresCommand.ts +6 -6
- package/commands/DescribeKeyCommand.ts +18 -19
- package/commands/DisableKeyCommand.ts +7 -7
- package/commands/DisableKeyRotationCommand.ts +5 -6
- package/commands/DisconnectCustomKeyStoreCommand.ts +6 -8
- package/commands/EnableKeyCommand.ts +4 -5
- package/commands/EnableKeyRotationCommand.ts +5 -5
- package/commands/EncryptCommand.ts +20 -21
- package/commands/GenerateDataKeyCommand.ts +17 -18
- package/commands/GenerateDataKeyPairCommand.ts +21 -15
- package/commands/GenerateDataKeyPairWithoutPlaintextCommand.ts +16 -12
- package/commands/GenerateDataKeyWithoutPlaintextCommand.ts +9 -9
- package/commands/GenerateRandomCommand.ts +4 -3
- package/commands/GetKeyPolicyCommand.ts +2 -2
- package/commands/GetKeyRotationStatusCommand.ts +9 -9
- package/commands/GetParametersForImportCommand.ts +8 -8
- package/commands/GetPublicKeyCommand.ts +15 -15
- package/commands/ImportKeyMaterialCommand.ts +18 -18
- package/commands/ListAliasesCommand.ts +8 -10
- package/commands/ListGrantsCommand.ts +9 -4
- package/commands/ListKeyPoliciesCommand.ts +2 -2
- package/commands/ListKeysCommand.ts +2 -2
- package/commands/ListResourceTagsCommand.ts +4 -4
- package/commands/ListRetirableGrantsCommand.ts +14 -14
- package/commands/PutKeyPolicyCommand.ts +5 -5
- package/commands/ReEncryptCommand.ts +30 -34
- package/commands/ReplicateKeyCommand.ts +16 -16
- package/commands/RetireGrantCommand.ts +9 -9
- package/commands/RevokeGrantCommand.ts +9 -4
- package/commands/ScheduleKeyDeletionCommand.ts +17 -17
- package/commands/SignCommand.ts +12 -13
- package/commands/TagResourceCommand.ts +10 -12
- package/commands/UntagResourceCommand.ts +9 -10
- package/commands/UpdateAliasCommand.ts +15 -15
- package/commands/UpdateCustomKeyStoreCommand.ts +9 -9
- package/commands/UpdateKeyDescriptionCommand.ts +4 -4
- package/commands/UpdatePrimaryRegionCommand.ts +13 -13
- package/commands/VerifyCommand.ts +14 -14
- package/dist/cjs/KMS.js +18 -18
- package/dist/cjs/KMS.js.map +1 -1
- package/dist/cjs/KMSClient.js +18 -18
- package/dist/cjs/commands/CancelKeyDeletionCommand.js +6 -7
- package/dist/cjs/commands/CancelKeyDeletionCommand.js.map +1 -1
- package/dist/cjs/commands/ConnectCustomKeyStoreCommand.js +9 -9
- package/dist/cjs/commands/CreateAliasCommand.js +13 -14
- package/dist/cjs/commands/CreateAliasCommand.js.map +1 -1
- package/dist/cjs/commands/CreateCustomKeyStoreCommand.js +8 -8
- package/dist/cjs/commands/CreateGrantCommand.js +15 -22
- package/dist/cjs/commands/CreateGrantCommand.js.map +1 -1
- package/dist/cjs/commands/CreateKeyCommand.js +44 -44
- package/dist/cjs/commands/DecryptCommand.js +23 -22
- package/dist/cjs/commands/DecryptCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAliasCommand.js +7 -8
- package/dist/cjs/commands/DeleteAliasCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteCustomKeyStoreCommand.js +13 -13
- package/dist/cjs/commands/DeleteImportedKeyMaterialCommand.js +9 -9
- package/dist/cjs/commands/DescribeCustomKeyStoresCommand.js +6 -6
- package/dist/cjs/commands/DescribeKeyCommand.js +18 -19
- package/dist/cjs/commands/DescribeKeyCommand.js.map +1 -1
- package/dist/cjs/commands/DisableKeyCommand.js +7 -7
- package/dist/cjs/commands/DisableKeyRotationCommand.js +5 -6
- package/dist/cjs/commands/DisableKeyRotationCommand.js.map +1 -1
- package/dist/cjs/commands/DisconnectCustomKeyStoreCommand.js +6 -8
- package/dist/cjs/commands/DisconnectCustomKeyStoreCommand.js.map +1 -1
- package/dist/cjs/commands/EnableKeyCommand.js +4 -5
- package/dist/cjs/commands/EnableKeyCommand.js.map +1 -1
- package/dist/cjs/commands/EnableKeyRotationCommand.js +5 -5
- package/dist/cjs/commands/EncryptCommand.js +20 -21
- package/dist/cjs/commands/EncryptCommand.js.map +1 -1
- package/dist/cjs/commands/GenerateDataKeyCommand.js +17 -18
- package/dist/cjs/commands/GenerateDataKeyCommand.js.map +1 -1
- package/dist/cjs/commands/GenerateDataKeyPairCommand.js +21 -15
- package/dist/cjs/commands/GenerateDataKeyPairCommand.js.map +1 -1
- package/dist/cjs/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +16 -12
- package/dist/cjs/commands/GenerateDataKeyPairWithoutPlaintextCommand.js.map +1 -1
- package/dist/cjs/commands/GenerateDataKeyWithoutPlaintextCommand.js +9 -9
- package/dist/cjs/commands/GenerateRandomCommand.js +4 -3
- package/dist/cjs/commands/GenerateRandomCommand.js.map +1 -1
- package/dist/cjs/commands/GetKeyPolicyCommand.js +2 -2
- package/dist/cjs/commands/GetKeyRotationStatusCommand.js +9 -9
- package/dist/cjs/commands/GetParametersForImportCommand.js +8 -8
- package/dist/cjs/commands/GetPublicKeyCommand.js +15 -15
- package/dist/cjs/commands/ImportKeyMaterialCommand.js +18 -18
- package/dist/cjs/commands/ListAliasesCommand.js +8 -10
- package/dist/cjs/commands/ListAliasesCommand.js.map +1 -1
- package/dist/cjs/commands/ListGrantsCommand.js +9 -4
- package/dist/cjs/commands/ListGrantsCommand.js.map +1 -1
- package/dist/cjs/commands/ListKeyPoliciesCommand.js +2 -2
- package/dist/cjs/commands/ListKeysCommand.js +2 -2
- package/dist/cjs/commands/ListResourceTagsCommand.js +4 -4
- package/dist/cjs/commands/ListRetirableGrantsCommand.js +14 -14
- package/dist/cjs/commands/PutKeyPolicyCommand.js +5 -5
- package/dist/cjs/commands/ReEncryptCommand.js +30 -34
- package/dist/cjs/commands/ReEncryptCommand.js.map +1 -1
- package/dist/cjs/commands/ReplicateKeyCommand.js +16 -16
- package/dist/cjs/commands/RetireGrantCommand.js +9 -9
- package/dist/cjs/commands/RevokeGrantCommand.js +9 -4
- package/dist/cjs/commands/RevokeGrantCommand.js.map +1 -1
- package/dist/cjs/commands/ScheduleKeyDeletionCommand.js +17 -17
- package/dist/cjs/commands/SignCommand.js +12 -13
- package/dist/cjs/commands/SignCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +10 -12
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +9 -10
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateAliasCommand.js +15 -15
- package/dist/cjs/commands/UpdateCustomKeyStoreCommand.js +9 -9
- package/dist/cjs/commands/UpdateKeyDescriptionCommand.js +4 -4
- package/dist/cjs/commands/UpdatePrimaryRegionCommand.js +13 -13
- package/dist/cjs/commands/VerifyCommand.js +14 -14
- package/dist/cjs/models/models_0.js +14 -3
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_json1_1.js +16 -11
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/KMS.js +18 -18
- package/dist/es/KMS.js.map +1 -1
- package/dist/es/KMSClient.js +18 -18
- package/dist/es/commands/CancelKeyDeletionCommand.js +6 -7
- package/dist/es/commands/CancelKeyDeletionCommand.js.map +1 -1
- package/dist/es/commands/ConnectCustomKeyStoreCommand.js +9 -9
- package/dist/es/commands/CreateAliasCommand.js +13 -14
- package/dist/es/commands/CreateAliasCommand.js.map +1 -1
- package/dist/es/commands/CreateCustomKeyStoreCommand.js +8 -8
- package/dist/es/commands/CreateGrantCommand.js +15 -22
- package/dist/es/commands/CreateGrantCommand.js.map +1 -1
- package/dist/es/commands/CreateKeyCommand.js +44 -44
- package/dist/es/commands/DecryptCommand.js +23 -22
- package/dist/es/commands/DecryptCommand.js.map +1 -1
- package/dist/es/commands/DeleteAliasCommand.js +7 -8
- package/dist/es/commands/DeleteAliasCommand.js.map +1 -1
- package/dist/es/commands/DeleteCustomKeyStoreCommand.js +13 -13
- package/dist/es/commands/DeleteImportedKeyMaterialCommand.js +9 -9
- package/dist/es/commands/DescribeCustomKeyStoresCommand.js +6 -6
- package/dist/es/commands/DescribeKeyCommand.js +18 -19
- package/dist/es/commands/DescribeKeyCommand.js.map +1 -1
- package/dist/es/commands/DisableKeyCommand.js +7 -7
- package/dist/es/commands/DisableKeyRotationCommand.js +5 -6
- package/dist/es/commands/DisableKeyRotationCommand.js.map +1 -1
- package/dist/es/commands/DisconnectCustomKeyStoreCommand.js +6 -8
- package/dist/es/commands/DisconnectCustomKeyStoreCommand.js.map +1 -1
- package/dist/es/commands/EnableKeyCommand.js +4 -5
- package/dist/es/commands/EnableKeyCommand.js.map +1 -1
- package/dist/es/commands/EnableKeyRotationCommand.js +5 -5
- package/dist/es/commands/EncryptCommand.js +20 -21
- package/dist/es/commands/EncryptCommand.js.map +1 -1
- package/dist/es/commands/GenerateDataKeyCommand.js +17 -18
- package/dist/es/commands/GenerateDataKeyCommand.js.map +1 -1
- package/dist/es/commands/GenerateDataKeyPairCommand.js +21 -15
- package/dist/es/commands/GenerateDataKeyPairCommand.js.map +1 -1
- package/dist/es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +16 -12
- package/dist/es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js.map +1 -1
- package/dist/es/commands/GenerateDataKeyWithoutPlaintextCommand.js +9 -9
- package/dist/es/commands/GenerateRandomCommand.js +4 -3
- package/dist/es/commands/GenerateRandomCommand.js.map +1 -1
- package/dist/es/commands/GetKeyPolicyCommand.js +2 -2
- package/dist/es/commands/GetKeyRotationStatusCommand.js +9 -9
- package/dist/es/commands/GetParametersForImportCommand.js +8 -8
- package/dist/es/commands/GetPublicKeyCommand.js +15 -15
- package/dist/es/commands/ImportKeyMaterialCommand.js +18 -18
- package/dist/es/commands/ListAliasesCommand.js +8 -10
- package/dist/es/commands/ListAliasesCommand.js.map +1 -1
- package/dist/es/commands/ListGrantsCommand.js +9 -4
- package/dist/es/commands/ListGrantsCommand.js.map +1 -1
- package/dist/es/commands/ListKeyPoliciesCommand.js +2 -2
- package/dist/es/commands/ListKeysCommand.js +2 -2
- package/dist/es/commands/ListResourceTagsCommand.js +4 -4
- package/dist/es/commands/ListRetirableGrantsCommand.js +14 -14
- package/dist/es/commands/PutKeyPolicyCommand.js +5 -5
- package/dist/es/commands/ReEncryptCommand.js +30 -34
- package/dist/es/commands/ReEncryptCommand.js.map +1 -1
- package/dist/es/commands/ReplicateKeyCommand.js +16 -16
- package/dist/es/commands/RetireGrantCommand.js +9 -9
- package/dist/es/commands/RevokeGrantCommand.js +9 -4
- package/dist/es/commands/RevokeGrantCommand.js.map +1 -1
- package/dist/es/commands/ScheduleKeyDeletionCommand.js +17 -17
- package/dist/es/commands/SignCommand.js +12 -13
- package/dist/es/commands/SignCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +10 -12
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +9 -10
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UpdateAliasCommand.js +15 -15
- package/dist/es/commands/UpdateCustomKeyStoreCommand.js +9 -9
- package/dist/es/commands/UpdateKeyDescriptionCommand.js +4 -4
- package/dist/es/commands/UpdatePrimaryRegionCommand.js +13 -13
- package/dist/es/commands/VerifyCommand.js +14 -14
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +11 -0
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_json1_1.js +18 -14
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/types/KMS.d.ts +567 -572
- package/dist/types/KMSClient.d.ts +18 -18
- package/dist/types/commands/CancelKeyDeletionCommand.d.ts +6 -7
- package/dist/types/commands/ConnectCustomKeyStoreCommand.d.ts +9 -9
- package/dist/types/commands/CreateAliasCommand.d.ts +13 -14
- package/dist/types/commands/CreateCustomKeyStoreCommand.d.ts +8 -8
- package/dist/types/commands/CreateGrantCommand.d.ts +15 -22
- package/dist/types/commands/CreateKeyCommand.d.ts +44 -44
- package/dist/types/commands/DecryptCommand.d.ts +23 -22
- package/dist/types/commands/DeleteAliasCommand.d.ts +7 -8
- package/dist/types/commands/DeleteCustomKeyStoreCommand.d.ts +13 -13
- package/dist/types/commands/DeleteImportedKeyMaterialCommand.d.ts +9 -9
- package/dist/types/commands/DescribeCustomKeyStoresCommand.d.ts +6 -6
- package/dist/types/commands/DescribeKeyCommand.d.ts +18 -19
- package/dist/types/commands/DisableKeyCommand.d.ts +7 -7
- package/dist/types/commands/DisableKeyRotationCommand.d.ts +5 -6
- package/dist/types/commands/DisconnectCustomKeyStoreCommand.d.ts +6 -8
- package/dist/types/commands/EnableKeyCommand.d.ts +4 -5
- package/dist/types/commands/EnableKeyRotationCommand.d.ts +5 -5
- package/dist/types/commands/EncryptCommand.d.ts +20 -21
- package/dist/types/commands/GenerateDataKeyCommand.d.ts +17 -18
- package/dist/types/commands/GenerateDataKeyPairCommand.d.ts +21 -15
- package/dist/types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +16 -12
- package/dist/types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +9 -9
- package/dist/types/commands/GenerateRandomCommand.d.ts +4 -3
- package/dist/types/commands/GetKeyPolicyCommand.d.ts +2 -2
- package/dist/types/commands/GetKeyRotationStatusCommand.d.ts +9 -9
- package/dist/types/commands/GetParametersForImportCommand.d.ts +8 -8
- package/dist/types/commands/GetPublicKeyCommand.d.ts +15 -15
- package/dist/types/commands/ImportKeyMaterialCommand.d.ts +18 -18
- package/dist/types/commands/ListAliasesCommand.d.ts +8 -10
- package/dist/types/commands/ListGrantsCommand.d.ts +9 -4
- package/dist/types/commands/ListKeyPoliciesCommand.d.ts +2 -2
- package/dist/types/commands/ListKeysCommand.d.ts +2 -2
- package/dist/types/commands/ListResourceTagsCommand.d.ts +4 -4
- package/dist/types/commands/ListRetirableGrantsCommand.d.ts +14 -14
- package/dist/types/commands/PutKeyPolicyCommand.d.ts +5 -5
- package/dist/types/commands/ReEncryptCommand.d.ts +30 -34
- package/dist/types/commands/ReplicateKeyCommand.d.ts +16 -16
- package/dist/types/commands/RetireGrantCommand.d.ts +9 -9
- package/dist/types/commands/RevokeGrantCommand.d.ts +9 -4
- package/dist/types/commands/ScheduleKeyDeletionCommand.d.ts +17 -17
- package/dist/types/commands/SignCommand.d.ts +12 -13
- package/dist/types/commands/TagResourceCommand.d.ts +10 -12
- package/dist/types/commands/UntagResourceCommand.d.ts +9 -10
- package/dist/types/commands/UpdateAliasCommand.d.ts +15 -15
- package/dist/types/commands/UpdateCustomKeyStoreCommand.d.ts +9 -9
- package/dist/types/commands/UpdateKeyDescriptionCommand.d.ts +4 -4
- package/dist/types/commands/UpdatePrimaryRegionCommand.d.ts +13 -13
- package/dist/types/commands/VerifyCommand.d.ts +14 -14
- package/dist/types/models/models_0.d.ts +584 -570
- package/dist/types/ts3.4/KMS.d.ts +567 -572
- package/dist/types/ts3.4/KMSClient.d.ts +18 -18
- package/dist/types/ts3.4/commands/CancelKeyDeletionCommand.d.ts +6 -7
- package/dist/types/ts3.4/commands/ConnectCustomKeyStoreCommand.d.ts +9 -9
- package/dist/types/ts3.4/commands/CreateAliasCommand.d.ts +13 -14
- package/dist/types/ts3.4/commands/CreateCustomKeyStoreCommand.d.ts +8 -8
- package/dist/types/ts3.4/commands/CreateGrantCommand.d.ts +15 -22
- package/dist/types/ts3.4/commands/CreateKeyCommand.d.ts +44 -44
- package/dist/types/ts3.4/commands/DecryptCommand.d.ts +23 -22
- package/dist/types/ts3.4/commands/DeleteAliasCommand.d.ts +7 -8
- package/dist/types/ts3.4/commands/DeleteCustomKeyStoreCommand.d.ts +13 -13
- package/dist/types/ts3.4/commands/DeleteImportedKeyMaterialCommand.d.ts +9 -9
- package/dist/types/ts3.4/commands/DescribeCustomKeyStoresCommand.d.ts +6 -6
- package/dist/types/ts3.4/commands/DescribeKeyCommand.d.ts +18 -19
- package/dist/types/ts3.4/commands/DisableKeyCommand.d.ts +7 -7
- package/dist/types/ts3.4/commands/DisableKeyRotationCommand.d.ts +5 -6
- package/dist/types/ts3.4/commands/DisconnectCustomKeyStoreCommand.d.ts +6 -8
- package/dist/types/ts3.4/commands/EnableKeyCommand.d.ts +4 -5
- package/dist/types/ts3.4/commands/EnableKeyRotationCommand.d.ts +5 -5
- package/dist/types/ts3.4/commands/EncryptCommand.d.ts +20 -21
- package/dist/types/ts3.4/commands/GenerateDataKeyCommand.d.ts +17 -18
- package/dist/types/ts3.4/commands/GenerateDataKeyPairCommand.d.ts +21 -15
- package/dist/types/ts3.4/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +16 -12
- package/dist/types/ts3.4/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +9 -9
- package/dist/types/ts3.4/commands/GenerateRandomCommand.d.ts +4 -3
- package/dist/types/ts3.4/commands/GetKeyPolicyCommand.d.ts +2 -2
- package/dist/types/ts3.4/commands/GetKeyRotationStatusCommand.d.ts +9 -9
- package/dist/types/ts3.4/commands/GetParametersForImportCommand.d.ts +8 -8
- package/dist/types/ts3.4/commands/GetPublicKeyCommand.d.ts +15 -15
- package/dist/types/ts3.4/commands/ImportKeyMaterialCommand.d.ts +18 -18
- package/dist/types/ts3.4/commands/ListAliasesCommand.d.ts +8 -10
- package/dist/types/ts3.4/commands/ListGrantsCommand.d.ts +9 -4
- package/dist/types/ts3.4/commands/ListKeyPoliciesCommand.d.ts +2 -2
- package/dist/types/ts3.4/commands/ListKeysCommand.d.ts +2 -2
- package/dist/types/ts3.4/commands/ListResourceTagsCommand.d.ts +4 -4
- package/dist/types/ts3.4/commands/ListRetirableGrantsCommand.d.ts +14 -14
- package/dist/types/ts3.4/commands/PutKeyPolicyCommand.d.ts +5 -5
- package/dist/types/ts3.4/commands/ReEncryptCommand.d.ts +30 -34
- package/dist/types/ts3.4/commands/ReplicateKeyCommand.d.ts +16 -16
- package/dist/types/ts3.4/commands/RetireGrantCommand.d.ts +9 -9
- package/dist/types/ts3.4/commands/RevokeGrantCommand.d.ts +9 -4
- package/dist/types/ts3.4/commands/ScheduleKeyDeletionCommand.d.ts +17 -17
- package/dist/types/ts3.4/commands/SignCommand.d.ts +12 -13
- package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +10 -12
- package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +9 -10
- package/dist/types/ts3.4/commands/UpdateAliasCommand.d.ts +15 -15
- package/dist/types/ts3.4/commands/UpdateCustomKeyStoreCommand.d.ts +9 -9
- package/dist/types/ts3.4/commands/UpdateKeyDescriptionCommand.d.ts +4 -4
- package/dist/types/ts3.4/commands/UpdatePrimaryRegionCommand.d.ts +13 -13
- package/dist/types/ts3.4/commands/VerifyCommand.d.ts +14 -14
- package/dist/types/ts3.4/models/models_0.d.ts +584 -570
- package/models/models_0.ts +588 -570
- package/package.json +31 -31
- package/protocols/Aws_json1_1.ts +20 -12
|
@@ -5,23 +5,23 @@ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
7
|
* <p>Returns the items you need to import key material into a symmetric, customer managed
|
|
8
|
-
*
|
|
8
|
+
* KMS key. For more information about importing key material into KMS, see
|
|
9
9
|
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key
|
|
10
|
-
* Material</a> in the <i>
|
|
10
|
+
* Material</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
11
11
|
* <p>This operation returns a public key and an import token. Use the public key to encrypt the
|
|
12
12
|
* symmetric key material. Store the import token to send with a subsequent <a>ImportKeyMaterial</a> request.</p>
|
|
13
|
-
* <p>You must specify the key ID of the symmetric
|
|
14
|
-
* This
|
|
13
|
+
* <p>You must specify the key ID of the symmetric KMS key into which you will import key material.
|
|
14
|
+
* This KMS key's <code>Origin</code> must be <code>EXTERNAL</code>. You must also specify the
|
|
15
15
|
* wrapping algorithm and type of wrapping key (public key) that you will use to encrypt the key
|
|
16
|
-
* material. You cannot perform this operation on an asymmetric
|
|
16
|
+
* material. You cannot perform this operation on an asymmetric KMS key or on any KMS key in a different Amazon Web Services account.</p>
|
|
17
17
|
* <p>To import key material, you must use the public key and import token from the same
|
|
18
18
|
* response. These items are valid for 24 hours. The expiration date and time appear in the
|
|
19
19
|
* <code>GetParametersForImport</code> response. You cannot use an expired token in an <a>ImportKeyMaterial</a> request. If your key and token expire, send another
|
|
20
20
|
* <code>GetParametersForImport</code> request.</p>
|
|
21
|
-
* <p>The
|
|
22
|
-
* details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your
|
|
21
|
+
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
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. You cannot perform this operation on a
|
|
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:GetParametersForImport</a> (key policy)</p>
|
|
@@ -4,22 +4,22 @@ import { deserializeAws_json1_1GetPublicKeyCommand, serializeAws_json1_1GetPubli
|
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
|
-
* <p>Returns the public key of an asymmetric
|
|
8
|
-
* which never leaves
|
|
9
|
-
* can download the public key of an asymmetric
|
|
10
|
-
* to encrypt messages and verify signatures outside of
|
|
7
|
+
* <p>Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key,
|
|
8
|
+
* which never leaves KMS unencrypted, callers with <code>kms:GetPublicKey</code> permission
|
|
9
|
+
* can download the public key of an asymmetric KMS key. You can share the public key to allow others
|
|
10
|
+
* to encrypt messages and verify signatures 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>
|
|
11
11
|
* <p>You do not need to download the public key. Instead, you can use the public key within
|
|
12
|
-
*
|
|
13
|
-
* public key within
|
|
14
|
-
* are part of every
|
|
15
|
-
* decrypted. These features are not effective outside of
|
|
12
|
+
* KMS by calling the <a>Encrypt</a>, <a>ReEncrypt</a>, or <a>Verify</a> operations with the identifier of an asymmetric KMS key. When you use the
|
|
13
|
+
* public key within KMS, you benefit from the authentication, authorization, and logging that
|
|
14
|
+
* are part of every KMS operation. You also reduce of risk of encrypting data that cannot be
|
|
15
|
+
* decrypted. These features are not effective outside of KMS. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/download-public-key.html#download-public-key-considerations">Special
|
|
16
16
|
* Considerations for Downloading Public Keys</a>.</p>
|
|
17
|
-
* <p>To help you use the public key safely outside of
|
|
17
|
+
* <p>To help you use the public key safely outside of KMS, <code>GetPublicKey</code> returns
|
|
18
18
|
* important information about the public key in the response, including:</p>
|
|
19
19
|
* <ul>
|
|
20
20
|
* <li>
|
|
21
21
|
* <p>
|
|
22
|
-
* <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-
|
|
22
|
+
* <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-KeySpec">KeySpec</a>: The type of key material in the public key, such as
|
|
23
23
|
* <code>RSA_4096</code> or <code>ECC_NIST_P521</code>.</p>
|
|
24
24
|
* </li>
|
|
25
25
|
* <li>
|
|
@@ -32,16 +32,16 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
32
32
|
* algorithms for the key.</p>
|
|
33
33
|
* </li>
|
|
34
34
|
* </ul>
|
|
35
|
-
* <p>Although
|
|
35
|
+
* <p>Although KMS cannot enforce these restrictions on external operations, it is crucial
|
|
36
36
|
* that you use this information to prevent the public key from being used improperly. For
|
|
37
37
|
* example, you can prevent a public signing key from being used encrypt data, or prevent a
|
|
38
|
-
* public key from being used with an encryption algorithm that is not supported by
|
|
38
|
+
* public key from being used with an encryption algorithm that is not supported by KMS. You
|
|
39
39
|
* can also avoid errors, such as using the wrong signing algorithm in a verification
|
|
40
40
|
* operation.</p>
|
|
41
|
-
* <p>The
|
|
42
|
-
* details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your
|
|
41
|
+
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
42
|
+
* 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>
|
|
43
43
|
* <p>
|
|
44
|
-
* <b>Cross-account use</b>: Yes. To perform this operation with a
|
|
44
|
+
* <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify
|
|
45
45
|
* the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.</p>
|
|
46
46
|
*
|
|
47
47
|
* <p>
|
|
@@ -4,13 +4,13 @@ import { deserializeAws_json1_1ImportKeyMaterialCommand, serializeAws_json1_1Imp
|
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
|
-
* <p>Imports key material into an existing symmetric
|
|
8
|
-
* created without key material. After you successfully import key material into a
|
|
9
|
-
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material">reimport the same key material</a> into that
|
|
7
|
+
* <p>Imports key material into an existing symmetric KMS KMS key that was
|
|
8
|
+
* created without key material. After you successfully import key material into a KMS key, you can
|
|
9
|
+
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material">reimport the same key material</a> into that KMS key, but you cannot import different key
|
|
10
10
|
* material. </p>
|
|
11
|
-
* <p>You cannot perform this operation on an asymmetric
|
|
11
|
+
* <p>You cannot perform this operation on an asymmetric KMS key or on any KMS key in a different Amazon Web Services account. For more information about creating KMS keys with no key material and
|
|
12
12
|
* then importing key material, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in the
|
|
13
|
-
* <i>
|
|
13
|
+
* <i>Key Management Service Developer Guide</i>.</p>
|
|
14
14
|
* <p>Before using this operation, call <a>GetParametersForImport</a>. Its response
|
|
15
15
|
* includes a public key and an import token. Use the public key to encrypt the key material.
|
|
16
16
|
* Then, submit the import token from the same <code>GetParametersForImport</code>
|
|
@@ -18,11 +18,11 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
18
18
|
* <p>When calling this operation, you must specify the following values:</p>
|
|
19
19
|
* <ul>
|
|
20
20
|
* <li>
|
|
21
|
-
* <p>The key ID or key ARN of a
|
|
21
|
+
* <p>The key ID or key ARN of a KMS key with no key material. Its <code>Origin</code> must be
|
|
22
22
|
* <code>EXTERNAL</code>.</p>
|
|
23
|
-
* <p>To create a
|
|
23
|
+
* <p>To create a KMS key with no key material, call <a>CreateKey</a> and set the
|
|
24
24
|
* value of its <code>Origin</code> parameter to <code>EXTERNAL</code>. To get the
|
|
25
|
-
* <code>Origin</code> of a
|
|
25
|
+
* <code>Origin</code> of a KMS key, call <a>DescribeKey</a>.)</p>
|
|
26
26
|
* </li>
|
|
27
27
|
* <li>
|
|
28
28
|
* <p>The encrypted key material. To get the public key to encrypt the key material, call
|
|
@@ -33,23 +33,23 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
33
33
|
* a public key and token from the same <code>GetParametersForImport</code> response.</p>
|
|
34
34
|
* </li>
|
|
35
35
|
* <li>
|
|
36
|
-
* <p>Whether the key material expires and if so, when. If you set an expiration date,
|
|
37
|
-
* deletes the key material from the
|
|
38
|
-
* To use the
|
|
36
|
+
* <p>Whether the key material expires and if so, when. If you set an expiration date, KMS
|
|
37
|
+
* deletes the key material from the KMS key on the specified date, and the KMS key becomes unusable.
|
|
38
|
+
* To use the KMS key again, you must reimport the same key material. The only way to change an
|
|
39
39
|
* expiration date is by reimporting the same key material and specifying a new expiration
|
|
40
40
|
* date. </p>
|
|
41
41
|
* </li>
|
|
42
42
|
* </ul>
|
|
43
|
-
* <p>When this operation is successful, the key state of the
|
|
44
|
-
* <code>PendingImport</code> to <code>Enabled</code>, and you can use the
|
|
43
|
+
* <p>When this operation is successful, the key state of the KMS key changes from
|
|
44
|
+
* <code>PendingImport</code> to <code>Enabled</code>, and you can use the KMS key.</p>
|
|
45
45
|
* <p>If this operation fails, use the exception to help determine the problem. If the error is
|
|
46
|
-
* related to the key material, the import token, or wrapping key, use <a>GetParametersForImport</a> to get a new public key and import token for the
|
|
46
|
+
* related to the key material, the import token, or wrapping key, use <a>GetParametersForImport</a> to get a new public key and import token for the KMS key and
|
|
47
47
|
* repeat the import procedure. For help, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#importing-keys-overview">How To Import Key
|
|
48
|
-
* Material</a> in the <i>
|
|
49
|
-
* <p>The
|
|
50
|
-
* details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your
|
|
48
|
+
* Material</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
49
|
+
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
50
|
+
* 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>
|
|
51
51
|
* <p>
|
|
52
|
-
* <b>Cross-account use</b>: No. You cannot perform this operation on a
|
|
52
|
+
* <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
|
|
53
53
|
*
|
|
54
54
|
* <p>
|
|
55
55
|
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ImportKeyMaterial</a> (key policy)</p>
|
|
@@ -4,28 +4,26 @@ import { deserializeAws_json1_1ListAliasesCommand, serializeAws_json1_1ListAlias
|
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
|
-
* <p>Gets a list of aliases in the caller's
|
|
7
|
+
* <p>Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about
|
|
8
8
|
* aliases, see <a>CreateAlias</a>.</p>
|
|
9
9
|
* <p>By default, the <code>ListAliases</code> operation returns all aliases in the account and
|
|
10
|
-
* region. To get only the aliases associated with a particular
|
|
10
|
+
* region. To get only the aliases associated with a particular KMS key, use
|
|
11
11
|
* the <code>KeyId</code> parameter.</p>
|
|
12
12
|
* <p>The <code>ListAliases</code> response can include aliases that you created and associated
|
|
13
|
-
* with your customer managed
|
|
14
|
-
* CMKs in your account. You can recognize AWS aliases because their names have the format
|
|
13
|
+
* with your customer managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services managed keys in your account. You can recognize Amazon Web Services aliases because their names have the format
|
|
15
14
|
* <code>aws/<service-name></code>, such as <code>aws/dynamodb</code>.</p>
|
|
16
15
|
* <p>The response might also include aliases that have no <code>TargetKeyId</code> field. These
|
|
17
|
-
* are predefined aliases that
|
|
18
|
-
* that
|
|
19
|
-
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#aliases-limit">
|
|
16
|
+
* are predefined aliases that Amazon Web Services has created but has not yet associated with a KMS key. Aliases
|
|
17
|
+
* that Amazon Web Services creates in your account, including predefined aliases, do not count against your
|
|
18
|
+
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#aliases-limit">KMS aliases
|
|
20
19
|
* quota</a>.</p>
|
|
21
20
|
* <p>
|
|
22
21
|
* <b>Cross-account use</b>: No. <code>ListAliases</code> does not
|
|
23
|
-
* return aliases in other
|
|
24
|
-
*
|
|
22
|
+
* return aliases in other Amazon Web Services accounts.</p>
|
|
25
23
|
*
|
|
26
24
|
* <p>
|
|
27
25
|
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListAliases</a> (IAM policy)</p>
|
|
28
|
-
* <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 <i>
|
|
26
|
+
* <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 <i>Key Management Service Developer Guide</i>.</p>
|
|
29
27
|
* <p>
|
|
30
28
|
* <b>Related operations:</b>
|
|
31
29
|
* </p>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListAliasesCommand.js","sourceRoot":"","sources":["../../../commands/ListAliasesCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EACL,wCAAwC,EACxC,sCAAsC,GACvC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D
|
|
1
|
+
{"version":3,"file":"ListAliasesCommand.js","sourceRoot":"","sources":["../../../commands/ListAliasesCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EACL,wCAAwC,EACxC,sCAAsC,GACvC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH;IAAwC,sCAIvC;IACC,oCAAoC;IACpC,kCAAkC;IAElC,4BAAqB,KAA8B;QAAnD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAyB;;QAGjD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,8CAAiB,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,oBAAoB,CAAC;QACzC,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,kBAAkB,CAAC,kBAAkB;YAC9D,wBAAwB,EAAE,mBAAmB,CAAC,kBAAkB;SACjE,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,sCAAS,GAAjB,UAAkB,KAA8B,EAAE,OAAuB;QACvE,OAAO,sCAAsC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAEO,wCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,wCAAwC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAIH,yBAAC;AAAD,CAAC,AAtDD,CAAwC,QAAQ,GAsD/C"}
|
|
@@ -4,18 +4,23 @@ import { deserializeAws_json1_1ListGrantsCommand, serializeAws_json1_1ListGrants
|
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
|
-
* <p>Gets a list of all grants for the specified
|
|
8
|
-
* <p>You must specify the
|
|
7
|
+
* <p>Gets a list of all grants for the specified KMS key. </p>
|
|
8
|
+
* <p>You must specify the KMS key in all requests. You can filter the grant list by grant ID
|
|
9
9
|
* or grantee principal.</p>
|
|
10
|
+
* <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
|
|
11
|
+
* <i>
|
|
12
|
+
* <i>Key Management Service Developer Guide</i>
|
|
13
|
+
* </i>. For examples of working with grants in several
|
|
14
|
+
* programming languages, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>. </p>
|
|
10
15
|
* <note>
|
|
11
16
|
* <p>The <code>GranteePrincipal</code> field in the <code>ListGrants</code> response usually contains the
|
|
12
17
|
* user or role designated as the grantee principal in the grant. However, when the grantee
|
|
13
|
-
* principal in the grant is an
|
|
18
|
+
* principal in the grant is an Amazon Web Services service, the <code>GranteePrincipal</code> field contains
|
|
14
19
|
* the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services">service
|
|
15
20
|
* principal</a>, which might represent several different grantee principals.</p>
|
|
16
21
|
* </note>
|
|
17
22
|
* <p>
|
|
18
|
-
* <b>Cross-account use</b>: Yes. To perform this operation on a
|
|
23
|
+
* <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key
|
|
19
24
|
* ARN in the value of the <code>KeyId</code> parameter.</p>
|
|
20
25
|
*
|
|
21
26
|
* <p>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListGrantsCommand.js","sourceRoot":"","sources":["../../../commands/ListGrantsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EACL,uCAAuC,EACvC,qCAAqC,GACtC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D
|
|
1
|
+
{"version":3,"file":"ListGrantsCommand.js","sourceRoot":"","sources":["../../../commands/ListGrantsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EACL,uCAAuC,EACvC,qCAAqC,GACtC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH;IAAuC,qCAItC;IACC,oCAAoC;IACpC,kCAAkC;IAElC,2BAAqB,KAA6B;QAAlD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAwB;;QAGhD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,6CAAiB,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,mBAAmB,CAAC;QACxC,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,iBAAiB,CAAC,kBAAkB;YAC7D,wBAAwB,EAAE,kBAAkB,CAAC,kBAAkB;SAChE,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,qCAAS,GAAjB,UAAkB,KAA6B,EAAE,OAAuB;QACtE,OAAO,qCAAqC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAEO,uCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,uCAAuC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAIH,wBAAC;AAAD,CAAC,AAtDD,CAAuC,QAAQ,GAsD9C"}
|
|
@@ -4,11 +4,11 @@ import { deserializeAws_json1_1ListKeyPoliciesCommand, serializeAws_json1_1ListK
|
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
|
-
* <p>Gets the names of the key policies that are attached to a
|
|
7
|
+
* <p>Gets the names of the key policies that are attached to a KMS key. This
|
|
8
8
|
* operation is designed to get policy names that you can use in a <a>GetKeyPolicy</a>
|
|
9
9
|
* operation. However, the only valid policy name is <code>default</code>. </p>
|
|
10
10
|
* <p>
|
|
11
|
-
* <b>Cross-account use</b>: No. You cannot perform this operation on a
|
|
11
|
+
* <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
|
|
12
12
|
*
|
|
13
13
|
* <p>
|
|
14
14
|
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListKeyPolicies</a> (key policy)</p>
|
|
@@ -4,10 +4,10 @@ import { deserializeAws_json1_1ListKeysCommand, serializeAws_json1_1ListKeysComm
|
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
|
-
* <p>Gets a list of all
|
|
7
|
+
* <p>Gets a list of all KMS keys in the caller's Amazon Web Services account and
|
|
8
8
|
* Region.</p>
|
|
9
9
|
* <p>
|
|
10
|
-
* <b>Cross-account use</b>: No. You cannot perform this operation on a
|
|
10
|
+
* <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
|
|
11
11
|
*
|
|
12
12
|
* <p>
|
|
13
13
|
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListKeys</a> (IAM policy)</p>
|
|
@@ -4,13 +4,13 @@ import { deserializeAws_json1_1ListResourceTagsCommand, serializeAws_json1_1List
|
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
|
-
* <p>Returns all tags on the specified
|
|
8
|
-
* <p>For general information about tags, including the format and syntax, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging
|
|
7
|
+
* <p>Returns all tags on the specified KMS key.</p>
|
|
8
|
+
* <p>For general information about 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
|
|
9
9
|
* the <i>Amazon Web Services General Reference</i>. For information about using
|
|
10
|
-
* tags in
|
|
10
|
+
* tags in KMS, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging
|
|
11
11
|
* keys</a>.</p>
|
|
12
12
|
* <p>
|
|
13
|
-
* <b>Cross-account use</b>: No. You cannot perform this operation on a
|
|
13
|
+
* <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
|
|
14
14
|
*
|
|
15
15
|
* <p>
|
|
16
16
|
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListResourceTags</a> (key policy)</p>
|
|
@@ -4,24 +4,24 @@ import { deserializeAws_json1_1ListRetirableGrantsCommand, serializeAws_json1_1L
|
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
|
-
* <p>Returns information about all grants in the
|
|
8
|
-
* retiring principal.
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* <p>
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
7
|
+
* <p>Returns information about all grants in the Amazon Web Services account and Region that have the specified
|
|
8
|
+
* retiring principal. </p>
|
|
9
|
+
* <p>You can specify any principal in your Amazon Web Services account. The grants that are returned include
|
|
10
|
+
* grants for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this operation to
|
|
11
|
+
* determine which grants you may retire. To retire a grant, use the <a>RetireGrant</a> operation.</p>
|
|
12
|
+
* <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
|
|
13
|
+
* <i>
|
|
14
|
+
* <i>Key Management Service Developer Guide</i>
|
|
15
|
+
* </i>. For examples of working with grants in several
|
|
16
|
+
* programming languages, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>. </p>
|
|
16
17
|
* <p>
|
|
17
18
|
* <b>Cross-account use</b>: You must specify a principal in your
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
19
|
+
* Amazon Web Services account. However, this operation can return grants in any Amazon Web Services account. You do not need
|
|
20
|
+
* <code>kms:ListRetirableGrants</code> permission (or any other additional permission) in any
|
|
21
|
+
* Amazon Web Services account other than your own.</p>
|
|
21
22
|
*
|
|
22
23
|
* <p>
|
|
23
|
-
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListRetirableGrants</a> (IAM policy) in your
|
|
24
|
-
* account.</p>
|
|
24
|
+
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListRetirableGrants</a> (IAM policy) in your Amazon Web Services account.</p>
|
|
25
25
|
* <p>
|
|
26
26
|
* <b>Related operations:</b>
|
|
27
27
|
* </p>
|
|
@@ -4,14 +4,14 @@ import { deserializeAws_json1_1PutKeyPolicyCommand, serializeAws_json1_1PutKeyPo
|
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
|
-
* <p>Attaches a key policy to the specified
|
|
8
|
-
* <p>For more information about key policies, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key Policies</a> in the <i>
|
|
7
|
+
* <p>Attaches a key policy to the specified KMS key. </p>
|
|
8
|
+
* <p>For more information about key policies, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key Policies</a> in the <i>Key Management Service Developer Guide</i>.
|
|
9
9
|
* For help writing and formatting a JSON policy document, see the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy Reference</a> in the <i>
|
|
10
|
-
* <i>
|
|
10
|
+
* <i>Identity and Access Management User Guide</i>
|
|
11
11
|
* </i>. For examples of adding a key policy in multiple programming languages,
|
|
12
|
-
* see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-key-policies.html#put-policy">Setting a key policy</a> in the <i>
|
|
12
|
+
* see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-key-policies.html#put-policy">Setting a key policy</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
13
13
|
* <p>
|
|
14
|
-
* <b>Cross-account use</b>: No. You cannot perform this operation on a
|
|
14
|
+
* <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
|
|
15
15
|
*
|
|
16
16
|
* <p>
|
|
17
17
|
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:PutKeyPolicy</a> (key policy)</p>
|
|
@@ -4,77 +4,73 @@ import { deserializeAws_json1_1ReEncryptCommand, serializeAws_json1_1ReEncryptCo
|
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
|
-
* <p>Decrypts ciphertext and then reencrypts it entirely within
|
|
8
|
-
* operation to change the
|
|
9
|
-
* you <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-manually">manually rotate</a> a
|
|
10
|
-
* use it to reencrypt ciphertext under the same
|
|
7
|
+
* <p>Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this
|
|
8
|
+
* operation to change the KMS key under which data is encrypted, such as when
|
|
9
|
+
* you <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-manually">manually rotate</a> a KMS key or change the KMS key that protects a ciphertext. You can also
|
|
10
|
+
* use 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
|
|
11
11
|
* context</a> of a ciphertext.</p>
|
|
12
12
|
* <p>The <code>ReEncrypt</code> operation can decrypt ciphertext that was encrypted by using an
|
|
13
|
-
*
|
|
14
|
-
* public key of an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks">asymmetric
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* encryption</a>. These libraries return a ciphertext format that is incompatible with
|
|
18
|
-
* AWS KMS.</p>
|
|
13
|
+
* 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
|
|
14
|
+
* public key of an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks">asymmetric KMS key</a> outside of KMS. However, it cannot decrypt ciphertext
|
|
15
|
+
* produced by other libraries, such as the <a href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a> or <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3 client-side encryption</a>.
|
|
16
|
+
* These libraries return a ciphertext format that is incompatible with KMS.</p>
|
|
19
17
|
* <p>When you use the <code>ReEncrypt</code> operation, you need to provide information for the
|
|
20
18
|
* decrypt operation and the subsequent encrypt operation.</p>
|
|
21
19
|
* <ul>
|
|
22
20
|
* <li>
|
|
23
|
-
* <p>If your ciphertext was encrypted under an asymmetric
|
|
24
|
-
* <code>SourceKeyId</code> parameter to identify the
|
|
21
|
+
* <p>If your ciphertext was encrypted under an asymmetric KMS key, you must use the
|
|
22
|
+
* <code>SourceKeyId</code> parameter to identify the KMS key that encrypted the ciphertext.
|
|
25
23
|
* You must also supply the encryption algorithm that was used. This information is required
|
|
26
24
|
* to decrypt the data.</p>
|
|
27
25
|
* </li>
|
|
28
26
|
* <li>
|
|
29
|
-
* <p>If your ciphertext was encrypted under a symmetric
|
|
30
|
-
* parameter is optional.
|
|
27
|
+
* <p>If your ciphertext was encrypted under a symmetric KMS key, the <code>SourceKeyId</code>
|
|
28
|
+
* parameter is optional. KMS can get this information from metadata that it adds to the
|
|
31
29
|
* symmetric ciphertext blob. This feature adds durability to your implementation by ensuring
|
|
32
30
|
* that authorized users can decrypt ciphertext decades after it was encrypted, even if
|
|
33
|
-
* they've lost track of the
|
|
34
|
-
* as a best practice. When you use the <code>SourceKeyId</code> parameter to specify a
|
|
35
|
-
*
|
|
36
|
-
* CMK, the <code>ReEncrypt</code> operation fails. This practice ensures that you use the
|
|
37
|
-
* CMK that you intend.</p>
|
|
31
|
+
* they've lost track of the key ID. However, specifying the source KMS key is always recommended
|
|
32
|
+
* as a best practice. When you use the <code>SourceKeyId</code> parameter to specify a KMS key,
|
|
33
|
+
* KMS uses only the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the <code>ReEncrypt</code> operation fails. This practice ensures that you use the KMS key that you intend.</p>
|
|
38
34
|
* </li>
|
|
39
35
|
* <li>
|
|
40
36
|
* <p>To reencrypt the data, you must use the <code>DestinationKeyId</code> parameter
|
|
41
|
-
* specify the
|
|
42
|
-
* symmetric or asymmetric
|
|
37
|
+
* specify the KMS key that re-encrypts the data after it is decrypted. You can select a
|
|
38
|
+
* symmetric or asymmetric KMS key. If the destination KMS key is an asymmetric KMS key, you must also
|
|
43
39
|
* provide the encryption algorithm. The algorithm that you choose must be compatible with
|
|
44
|
-
* the
|
|
40
|
+
* the KMS key.</p>
|
|
45
41
|
*
|
|
46
42
|
* <important>
|
|
47
|
-
* <p>When you use an asymmetric
|
|
48
|
-
* <p>You are not required to supply the
|
|
43
|
+
* <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>
|
|
44
|
+
* <p>You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric KMS keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable fields.</p>
|
|
49
45
|
* </important>
|
|
50
46
|
* </li>
|
|
51
47
|
* </ul>
|
|
52
48
|
*
|
|
53
49
|
*
|
|
54
50
|
*
|
|
55
|
-
* <p>The
|
|
56
|
-
* details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your
|
|
51
|
+
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
52
|
+
* 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>
|
|
57
53
|
* <p>
|
|
58
|
-
* <b>Cross-account use</b>: Yes. The source
|
|
59
|
-
*
|
|
60
|
-
*
|
|
54
|
+
* <b>Cross-account use</b>: Yes. The source KMS key and destination KMS key can be in different Amazon Web Services accounts. Either or both KMS keys can be in a different account than
|
|
55
|
+
* the caller. To specify a KMS key in a different account, you must use its key ARN or alias
|
|
56
|
+
* ARN.</p>
|
|
61
57
|
*
|
|
62
58
|
* <p>
|
|
63
59
|
* <b>Required permissions</b>:</p>
|
|
64
60
|
* <ul>
|
|
65
61
|
* <li>
|
|
66
62
|
* <p>
|
|
67
|
-
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptFrom</a> permission on the source
|
|
63
|
+
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptFrom</a> permission on the source KMS key (key policy)</p>
|
|
68
64
|
* </li>
|
|
69
65
|
* <li>
|
|
70
66
|
* <p>
|
|
71
|
-
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptTo</a> permission on the destination
|
|
67
|
+
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptTo</a> permission on the destination KMS key (key policy)</p>
|
|
72
68
|
* </li>
|
|
73
69
|
* </ul>
|
|
74
|
-
* <p>To permit reencryption from or to a
|
|
70
|
+
* <p>To permit reencryption from or to a KMS key, include the <code>"kms:ReEncrypt*"</code>
|
|
75
71
|
* permission in your <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">key policy</a>. This permission is
|
|
76
|
-
* automatically included in the key policy when you use the console to create a
|
|
77
|
-
* must include it manually when you create a
|
|
72
|
+
* automatically included in the key policy when you use the console to create a KMS key. But you
|
|
73
|
+
* must include it manually when you create a KMS key programmatically or when you use the <a>PutKeyPolicy</a> operation to set a key policy.</p>
|
|
78
74
|
*
|
|
79
75
|
* <p>
|
|
80
76
|
* <b>Related operations:</b>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReEncryptCommand.js","sourceRoot":"","sources":["../../../commands/ReEncryptCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,sCAAsC,EAAE,oCAAoC,EAAE,MAAM,0BAA0B,CAAC;AACxH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D
|
|
1
|
+
{"version":3,"file":"ReEncryptCommand.js","sourceRoot":"","sources":["../../../commands/ReEncryptCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,sCAAsC,EAAE,oCAAoC,EAAE,MAAM,0BAA0B,CAAC;AACxH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4GG;AACH;IAAsC,oCAAgF;IACpH,oCAAoC;IACpC,kCAAkC;IAElC,0BAAqB,KAA4B;QAAjD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAuB;;QAG/C,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,4CAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,kBAAkB,CAAC;QACvC,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,gBAAgB,CAAC,kBAAkB;YAC5D,wBAAwB,EAAE,iBAAiB,CAAC,kBAAkB;SAC/D,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,oCAAS,GAAjB,UAAkB,KAA4B,EAAE,OAAuB;QACrE,OAAO,oCAAoC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAEO,sCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,sCAAsC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAIH,uBAAC;AAAD,CAAC,AAlDD,CAAsC,QAAQ,GAkD7C"}
|
|
@@ -6,24 +6,24 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
6
6
|
/**
|
|
7
7
|
* <p>Replicates a multi-Region key into the specified Region. This operation creates a
|
|
8
8
|
* multi-Region replica key based on a multi-Region primary key in a different Region of the same
|
|
9
|
-
*
|
|
9
|
+
* Amazon Web Services partition. You can create multiple replicas of a primary key, but each must be in a
|
|
10
10
|
* different Region. To create a multi-Region primary key, use the <a>CreateKey</a>
|
|
11
11
|
* operation.</p>
|
|
12
|
-
* <p>This operation supports <i>multi-Region keys</i>, an
|
|
13
|
-
* interoperable
|
|
14
|
-
* material, and other metadata, you can use them to encrypt data in one
|
|
15
|
-
* it in a different
|
|
16
|
-
* <p>A <i>replica key</i> is a fully-functional
|
|
12
|
+
* <p>This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple
|
|
13
|
+
* interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key
|
|
14
|
+
* material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt
|
|
15
|
+
* it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Using multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
16
|
+
* <p>A <i>replica key</i> is a fully-functional KMS key that can be used
|
|
17
17
|
* independently of its primary and peer replica keys. A primary key and its replica keys share
|
|
18
18
|
* properties that make them interoperable. They have the same <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id">key ID</a> and key material. They also
|
|
19
19
|
* have the same <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-spec">key
|
|
20
20
|
* spec</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-usage">key
|
|
21
21
|
* usage</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-origin">key
|
|
22
|
-
* material origin</a>, and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic key rotation status</a>.
|
|
22
|
+
* material origin</a>, and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic key rotation status</a>. KMS automatically synchronizes these shared
|
|
23
23
|
* properties among related multi-Region keys. All other properties of a replica key can differ,
|
|
24
24
|
* including its <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">key
|
|
25
25
|
* policy</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">tags</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html">aliases</a>, and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">key
|
|
26
|
-
* state</a>.
|
|
26
|
+
* state</a>. KMS pricing and quotas for KMS keys apply to each primary key and replica
|
|
27
27
|
* key.</p>
|
|
28
28
|
* <p>When this operation completes, the new replica key has a transient key state of
|
|
29
29
|
* <code>Creating</code>. This key state changes to <code>Enabled</code> (or
|
|
@@ -32,31 +32,31 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
32
32
|
* cannot yet use it in cryptographic operations. If you are creating and using the replica key
|
|
33
33
|
* programmatically, retry on <code>KMSInvalidStateException</code> or call
|
|
34
34
|
* <code>DescribeKey</code> to check its <code>KeyState</code> value before using it. For
|
|
35
|
-
* details about the <code>Creating</code> key state, see <a href="kms/latest/developerguide/key-state.html">Key state: Effect on your
|
|
36
|
-
* <i>
|
|
37
|
-
* <p>The
|
|
35
|
+
* 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
|
|
36
|
+
* <i>Key Management Service Developer Guide</i>.</p>
|
|
37
|
+
* <p>The CloudTrail log of a <code>ReplicateKey</code> operation records a
|
|
38
38
|
* <code>ReplicateKey</code> operation in the primary key's Region and a <a>CreateKey</a> operation in the replica key's Region.</p>
|
|
39
39
|
* <p>If you replicate a multi-Region primary key with imported key material, the replica key is
|
|
40
40
|
* created with no key material. You must import the same key material that you imported into the
|
|
41
|
-
* 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>
|
|
41
|
+
* 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>
|
|
42
42
|
* <p>To convert a replica key to a primary key, use the <a>UpdatePrimaryRegion</a>
|
|
43
43
|
* operation.</p>
|
|
44
44
|
* <note>
|
|
45
45
|
* <p>
|
|
46
46
|
* <code>ReplicateKey</code> uses different default values for the <code>KeyPolicy</code> and
|
|
47
|
-
* <code>Tags</code> parameters than those used in the
|
|
47
|
+
* <code>Tags</code> parameters than those used in the KMS console. For details, see the
|
|
48
48
|
* parameter descriptions.</p>
|
|
49
49
|
* </note>
|
|
50
50
|
* <p>
|
|
51
51
|
* <b>Cross-account use</b>: No. You cannot use this operation to
|
|
52
|
-
* create a
|
|
52
|
+
* create a replica key in a different Amazon Web Services account. </p>
|
|
53
53
|
* <p>
|
|
54
54
|
* <b>Required permissions</b>: </p>
|
|
55
55
|
* <ul>
|
|
56
56
|
* <li>
|
|
57
57
|
* <p>
|
|
58
|
-
* <code>kms:ReplicateKey</code> on the primary
|
|
59
|
-
* permission in the primary
|
|
58
|
+
* <code>kms:ReplicateKey</code> on the primary key (in the primary key's Region). Include this
|
|
59
|
+
* permission in the primary key's key policy.</p>
|
|
60
60
|
* </li>
|
|
61
61
|
* <li>
|
|
62
62
|
* <p>
|