@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
|
@@ -4,109 +4,109 @@ import { deserializeAws_json1_1CreateKeyCommand, serializeAws_json1_1CreateKeyCo
|
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
|
-
* <p>Creates a unique customer managed <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#
|
|
8
|
-
*
|
|
7
|
+
* <p>Creates a unique customer managed <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms-keys">KMS key</a> in your Amazon Web Services account and Region.</p>
|
|
8
|
+
* <note>
|
|
9
|
+
* <p>KMS is replacing the term <i>customer master key (CMK)</i> with <i>KMS key</i> and <i>KMS key</i>. The concept has not changed. To prevent breaking changes, KMS is keeping some variations of this term.</p>
|
|
10
|
+
* </note>
|
|
9
11
|
*
|
|
10
|
-
* <p>You can use the <code>CreateKey</code> operation to create symmetric or asymmetric
|
|
11
|
-
* CMKs.</p>
|
|
12
|
+
* <p>You can use the <code>CreateKey</code> operation to create symmetric or asymmetric KMS keys.</p>
|
|
12
13
|
* <ul>
|
|
13
14
|
* <li>
|
|
14
15
|
* <p>
|
|
15
|
-
* <b>Symmetric
|
|
16
|
-
* never leaves
|
|
17
|
-
* symmetric
|
|
16
|
+
* <b>Symmetric KMS keys</b> contain a 256-bit symmetric key that
|
|
17
|
+
* never leaves KMS unencrypted. To use the KMS key, you must call KMS. You can use a
|
|
18
|
+
* symmetric KMS key to encrypt and decrypt small amounts of data, but they are typically used to
|
|
18
19
|
* generate <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-keys">data
|
|
19
20
|
* keys</a> and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-key-pairs">data keys pairs</a>. For details,
|
|
20
21
|
* see <a>GenerateDataKey</a> and <a>GenerateDataKeyPair</a>.</p>
|
|
21
22
|
* </li>
|
|
22
23
|
* <li>
|
|
23
24
|
* <p>
|
|
24
|
-
* <b>Asymmetric
|
|
25
|
-
* Elliptic Curve (ECC) key pair. The private key in an asymmetric
|
|
25
|
+
* <b>Asymmetric KMS keys</b> can contain an RSA key pair or an
|
|
26
|
+
* Elliptic Curve (ECC) key pair. The private key in an asymmetric KMS key never leaves KMS
|
|
26
27
|
* unencrypted. However, you can use the <a>GetPublicKey</a> operation to download
|
|
27
|
-
* the public key so it can be used outside of
|
|
28
|
-
* encrypt or decrypt data or sign and verify messages (but not both).
|
|
28
|
+
* the public key so it can be used outside of KMS. KMS keys with RSA key pairs can be used to
|
|
29
|
+
* encrypt or decrypt data or sign and verify messages (but not both). KMS keys with ECC key
|
|
29
30
|
* pairs can be used only to sign and verify messages.</p>
|
|
30
31
|
* </li>
|
|
31
32
|
* </ul>
|
|
32
|
-
* <p>For information about symmetric and asymmetric
|
|
33
|
+
* <p>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>
|
|
33
34
|
*
|
|
34
35
|
*
|
|
35
|
-
* <p>To create different types of
|
|
36
|
+
* <p>To create different types of KMS keys, use the following guidance:</p>
|
|
36
37
|
*
|
|
37
38
|
* <dl>
|
|
38
|
-
* <dt>Asymmetric
|
|
39
|
+
* <dt>Asymmetric KMS keys</dt>
|
|
39
40
|
* <dd>
|
|
40
|
-
* <p>To create an asymmetric
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
41
|
+
* <p>To create an asymmetric KMS key, use the <code>KeySpec</code> parameter to specify
|
|
42
|
+
* the type of key material in the KMS key. Then, use the <code>KeyUsage</code> parameter
|
|
43
|
+
* to determine whether the KMS key will be used to encrypt and decrypt or sign and verify.
|
|
44
|
+
* You can't change these properties after the KMS key is created.</p>
|
|
44
45
|
* <p> </p>
|
|
45
46
|
* </dd>
|
|
46
|
-
* <dt>Symmetric
|
|
47
|
+
* <dt>Symmetric KMS keys</dt>
|
|
47
48
|
* <dd>
|
|
48
|
-
* <p>When creating a symmetric
|
|
49
|
-
* <code>
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
49
|
+
* <p>When creating a symmetric KMS key, you don't need to specify the
|
|
50
|
+
* <code>KeySpec</code> or <code>KeyUsage</code> parameters. The default value for
|
|
51
|
+
* <code>KeySpec</code>, <code>SYMMETRIC_DEFAULT</code>, and the default value for
|
|
52
|
+
* <code>KeyUsage</code>, <code>ENCRYPT_DECRYPT</code>, are the only valid values for
|
|
53
|
+
* symmetric KMS keys. </p>
|
|
53
54
|
* <p> </p>
|
|
54
55
|
* </dd>
|
|
55
56
|
* <dt>Multi-Region primary keys</dt>
|
|
56
57
|
* <dt>Imported key material</dt>
|
|
57
58
|
* <dd>
|
|
58
|
-
* <p>To create a multi-Region <i>primary key</i> in the local
|
|
59
|
+
* <p>To create a multi-Region <i>primary key</i> in the local Amazon Web Services Region,
|
|
59
60
|
* use the <code>MultiRegion</code> parameter with a value of <code>True</code>. To create
|
|
60
|
-
* a multi-Region <i>replica key</i>, that is, a
|
|
61
|
-
* key material as a primary key, but in a different
|
|
61
|
+
* a multi-Region <i>replica key</i>, that is, a KMS key with the same key ID and
|
|
62
|
+
* key material as a primary key, but in a different Amazon Web Services Region, use the <a>ReplicateKey</a> operation. To change a replica key to a primary key, and its
|
|
62
63
|
* primary key to a replica key, use the <a>UpdatePrimaryRegion</a>
|
|
63
64
|
* operation.</p>
|
|
64
|
-
* <p>This operation supports <i>multi-Region keys</i>, an
|
|
65
|
-
* interoperable
|
|
66
|
-
* material, and other metadata, you can use them to encrypt data in one
|
|
67
|
-
* it in a different
|
|
65
|
+
* <p>This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple
|
|
66
|
+
* interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key
|
|
67
|
+
* material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt
|
|
68
|
+
* 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>
|
|
68
69
|
* <p>You can create symmetric and asymmetric multi-Region keys and multi-Region keys with
|
|
69
70
|
* imported key material. You cannot create multi-Region keys in a custom key store.</p>
|
|
70
71
|
* <p> </p>
|
|
71
72
|
* </dd>
|
|
72
73
|
* <dd>
|
|
73
|
-
* <p>To import your own key material, begin by creating a symmetric
|
|
74
|
+
* <p>To import your own key material, begin by creating a symmetric KMS key with no key
|
|
74
75
|
* material. To do this, use the <code>Origin</code> parameter of <code>CreateKey</code>
|
|
75
76
|
* with a value of <code>EXTERNAL</code>. Next, use <a>GetParametersForImport</a> operation to get a public key and import token, and use the public key to encrypt
|
|
76
77
|
* your key material. Then, use <a>ImportKeyMaterial</a> with your import token
|
|
77
78
|
* to import the key material. For step-by-step instructions, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in the <i>
|
|
78
|
-
* <i>
|
|
79
|
+
* <i>Key Management Service Developer Guide</i>
|
|
79
80
|
* </i>. You
|
|
80
|
-
* cannot import the key material into an asymmetric
|
|
81
|
+
* cannot import the key material into an asymmetric KMS key.</p>
|
|
81
82
|
* <p>To create a multi-Region primary key with imported key material, use the
|
|
82
83
|
* <code>Origin</code> parameter of <code>CreateKey</code> with a value of
|
|
83
84
|
* <code>EXTERNAL</code> and the <code>MultiRegion</code> parameter with a value of
|
|
84
|
-
* <code>True</code>. To create replicas of the multi-Region primary key, use the <a>ReplicateKey</a> operation. 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>
|
|
85
|
+
* <code>True</code>. To create replicas of the multi-Region primary key, use the <a>ReplicateKey</a> operation. 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>
|
|
85
86
|
* <p> </p>
|
|
86
87
|
* </dd>
|
|
87
88
|
* <dt>Custom key store</dt>
|
|
88
89
|
* <dd>
|
|
89
|
-
* <p>To create a symmetric
|
|
90
|
+
* <p>To create a symmetric KMS key in a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>, use the
|
|
90
91
|
* <code>CustomKeyStoreId</code> parameter to specify the custom key store. You must also
|
|
91
92
|
* use the <code>Origin</code> parameter with a value of <code>AWS_CLOUDHSM</code>. The
|
|
92
|
-
*
|
|
93
|
-
* HSMs in different Availability Zones in the
|
|
94
|
-
* <p>You cannot create an asymmetric
|
|
95
|
-
*
|
|
93
|
+
* CloudHSM cluster that is associated with the custom key store must have at least two active
|
|
94
|
+
* HSMs in different Availability Zones in the Amazon Web Services Region. </p>
|
|
95
|
+
* <p>You cannot create an asymmetric KMS key in a custom key store. For information about
|
|
96
|
+
* custom key stores in KMS see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">Using Custom Key Stores</a> in
|
|
96
97
|
* the <i>
|
|
97
|
-
* <i>
|
|
98
|
+
* <i>Key Management Service Developer Guide</i>
|
|
98
99
|
* </i>.</p>
|
|
99
100
|
* </dd>
|
|
100
101
|
* </dl>
|
|
101
102
|
* <p>
|
|
102
103
|
* <b>Cross-account use</b>: No. You cannot use this operation to
|
|
103
|
-
* create a
|
|
104
|
+
* create a KMS key in a different Amazon Web Services account.</p>
|
|
104
105
|
*
|
|
105
106
|
* <p>
|
|
106
107
|
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CreateKey</a> (IAM policy). To use the
|
|
107
108
|
* <code>Tags</code> parameter, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:TagResource</a> (IAM policy). For examples and information about related
|
|
108
|
-
* permissions, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policy-example-create-key">Allow a user to create
|
|
109
|
-
* CMKs</a> in the <i>AWS Key Management Service Developer Guide</i>.</p>
|
|
109
|
+
* permissions, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policy-example-create-key">Allow a user to create KMS keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
110
110
|
* <p>
|
|
111
111
|
* <b>Related operations:</b>
|
|
112
112
|
* </p>
|
|
@@ -4,7 +4,7 @@ import { deserializeAws_json1_1DecryptCommand, serializeAws_json1_1DecryptComman
|
|
|
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 that was encrypted by a
|
|
7
|
+
* <p>Decrypts ciphertext that was encrypted by a KMS key using any of
|
|
8
8
|
* the following operations:</p>
|
|
9
9
|
* <ul>
|
|
10
10
|
* <li>
|
|
@@ -34,33 +34,34 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
34
34
|
* </li>
|
|
35
35
|
* </ul>
|
|
36
36
|
* <p>You can use this operation to decrypt ciphertext that was encrypted under a symmetric or
|
|
37
|
-
* asymmetric
|
|
38
|
-
* algorithm that was used to encrypt the ciphertext. For information about symmetric and asymmetric
|
|
39
|
-
* <p>The Decrypt operation also decrypts ciphertext that was encrypted outside of
|
|
40
|
-
* public key in an
|
|
41
|
-
* libraries, such as the <a href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">
|
|
37
|
+
* asymmetric KMS key. When the KMS key is asymmetric, you must specify the KMS key and the encryption
|
|
38
|
+
* algorithm that was used to encrypt the ciphertext. 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>
|
|
39
|
+
* <p>The Decrypt operation also decrypts ciphertext that was encrypted outside of KMS by the
|
|
40
|
+
* public key in an KMS asymmetric KMS key. However, it cannot decrypt ciphertext produced by other
|
|
41
|
+
* libraries, such as the <a href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption
|
|
42
42
|
* SDK</a> or <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3 client-side encryption</a>. These libraries return a ciphertext format that
|
|
43
|
-
* is incompatible with
|
|
44
|
-
* <p>If the ciphertext was encrypted under a symmetric
|
|
45
|
-
* optional.
|
|
43
|
+
* is incompatible with KMS.</p>
|
|
44
|
+
* <p>If the ciphertext was encrypted under a symmetric KMS key, the <code>KeyId</code> parameter is
|
|
45
|
+
* optional. KMS can get this information from metadata that it adds to the symmetric
|
|
46
46
|
* ciphertext blob. This feature adds durability to your implementation by ensuring that
|
|
47
47
|
* authorized users can decrypt ciphertext decades after it was encrypted, even if they've lost
|
|
48
|
-
* track of the
|
|
49
|
-
* When you use the <code>KeyId</code> parameter to specify a
|
|
50
|
-
* specify. If the ciphertext was encrypted under a different
|
|
51
|
-
* operation fails. This practice ensures that you use the
|
|
48
|
+
* track of the key ID. However, specifying the KMS key is always recommended as a best practice.
|
|
49
|
+
* When you use the <code>KeyId</code> parameter to specify a KMS key, KMS only uses the KMS key you
|
|
50
|
+
* specify. If the ciphertext was encrypted under a different KMS key, the <code>Decrypt</code>
|
|
51
|
+
* operation fails. This practice ensures that you use the KMS key that you intend.</p>
|
|
52
52
|
* <p>Whenever possible, use key policies to give users permission to call the
|
|
53
|
-
* <code>Decrypt</code> operation on a particular
|
|
53
|
+
* <code>Decrypt</code> operation on a particular KMS key, instead of using IAM policies.
|
|
54
54
|
* Otherwise, you might create an IAM user policy that gives the user <code>Decrypt</code>
|
|
55
|
-
* permission on all
|
|
56
|
-
* accounts if the key policy for the cross-account
|
|
57
|
-
* for <code>Decrypt</code> permissions, limit the user to particular
|
|
58
|
-
* accounts. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policies-best-practices">Best practices for IAM policies</a> in the <i>
|
|
59
|
-
* <p>
|
|
60
|
-
*
|
|
55
|
+
* permission on all KMS keys. This user could decrypt ciphertext that was encrypted by KMS keys in other
|
|
56
|
+
* accounts if the key policy for the cross-account KMS key permits it. If you must use an IAM policy
|
|
57
|
+
* for <code>Decrypt</code> permissions, limit the user to particular KMS keys or particular trusted
|
|
58
|
+
* accounts. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html#iam-policies-best-practices">Best practices for IAM policies</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
59
|
+
* <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>
|
|
60
|
+
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
61
|
+
* 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>
|
|
61
62
|
* <p>
|
|
62
|
-
* <b>Cross-account use</b>: Yes.
|
|
63
|
-
*
|
|
63
|
+
* <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify
|
|
64
|
+
* the key ARN or alias ARN in the value of the <code>KeyId</code> parameter. </p>
|
|
64
65
|
*
|
|
65
66
|
* <p>
|
|
66
67
|
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Decrypt</a> (key policy)</p>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DecryptCommand.js","sourceRoot":"","sources":["../../../commands/DecryptCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,oCAAoC,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AACpH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MA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AAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,kCAAS,GAAjB,UAAkB,KAA0B,EAAE,OAAuB;QACnE,OAAO,kCAAkC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAEO,oCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,oCAAoC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAIH,qBAAC;AAAD,CAAC,AAlDD,CAAoC,QAAQ,GAkD3C"}
|
|
@@ -6,15 +6,14 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
6
6
|
/**
|
|
7
7
|
* <p>Deletes the specified alias. </p>
|
|
8
8
|
* <note>
|
|
9
|
-
* <p>Adding, deleting, or updating an alias can allow or deny permission to the
|
|
9
|
+
* <p>Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">Using ABAC in KMS</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
10
10
|
* </note>
|
|
11
|
-
* <p>Because an alias is not a property of a
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* create a new alias. To associate an existing alias with a different customer master key (CMK),
|
|
11
|
+
* <p>Because an alias is not a property of a KMS key, you can delete and change the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the <a>DescribeKey</a> operation. To get the aliases of all KMS keys, use the <a>ListAliases</a> operation. </p>
|
|
12
|
+
* <p>Each KMS key can have multiple aliases. To change the alias of a KMS key, use <a>DeleteAlias</a> to delete the current alias and <a>CreateAlias</a> to
|
|
13
|
+
* create a new alias. To associate an existing alias with a different KMS key,
|
|
15
14
|
* call <a>UpdateAlias</a>.</p>
|
|
16
15
|
* <p>
|
|
17
|
-
* <b>Cross-account use</b>: No. You cannot perform this operation on an alias in a different
|
|
16
|
+
* <b>Cross-account use</b>: No. You cannot perform this operation on an alias in a different Amazon Web Services account.</p>
|
|
18
17
|
* <p>
|
|
19
18
|
* <b>Required permissions</b>
|
|
20
19
|
* </p>
|
|
@@ -25,10 +24,10 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
25
24
|
* </li>
|
|
26
25
|
* <li>
|
|
27
26
|
* <p>
|
|
28
|
-
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DeleteAlias</a> on the
|
|
27
|
+
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DeleteAlias</a> on the KMS key (key policy).</p>
|
|
29
28
|
* </li>
|
|
30
29
|
* </ul>
|
|
31
|
-
* <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>
|
|
30
|
+
* <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>
|
|
32
31
|
* <p>
|
|
33
32
|
* <b>Related operations:</b>
|
|
34
33
|
* </p>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteAliasCommand.js","sourceRoot":"","sources":["../../../commands/DeleteAliasCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,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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,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,29 +4,29 @@ import { deserializeAws_json1_1DeleteCustomKeyStoreCommand, serializeAws_json1_1
|
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
|
-
* <p>Deletes a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>. This operation does not delete the
|
|
7
|
+
* <p>Deletes a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>. This operation does not delete the CloudHSM cluster that is
|
|
8
8
|
* associated with the custom key store, or affect any users or keys in the cluster.</p>
|
|
9
|
-
* <p>The custom key store that you delete cannot contain any
|
|
10
|
-
* deleting the key store, verify that you will never need to use any of the
|
|
9
|
+
* <p>The custom key store that you delete cannot contain any KMS <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys">KMS keys</a>. Before
|
|
10
|
+
* deleting the key store, verify that you will never need to use any of the KMS keys in the key
|
|
11
11
|
* store for any <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic operations</a>. Then, use <a>ScheduleKeyDeletion</a> to delete the
|
|
12
|
-
*
|
|
13
|
-
* expires, the <code>ScheduleKeyDeletion</code> operation deletes the
|
|
12
|
+
* KMS keys from the key store. When the scheduled waiting period
|
|
13
|
+
* expires, the <code>ScheduleKeyDeletion</code> operation deletes the KMS keys. Then it makes a best
|
|
14
14
|
* effort to delete the key material from the associated cluster. However, you might need to
|
|
15
15
|
* manually <a href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete the orphaned key
|
|
16
16
|
* material</a> from the cluster and its backups.</p>
|
|
17
|
-
* <p>After all
|
|
18
|
-
* disconnect the key store from
|
|
19
|
-
* <p>Instead of deleting the custom key store, consider using <a>DisconnectCustomKeyStore</a> to disconnect it from
|
|
20
|
-
* disconnected, you cannot create or use the
|
|
21
|
-
* delete
|
|
17
|
+
* <p>After all KMS keys are deleted from KMS, use <a>DisconnectCustomKeyStore</a> to
|
|
18
|
+
* disconnect the key store from KMS. Then, you can delete the custom key store.</p>
|
|
19
|
+
* <p>Instead of deleting the custom key store, consider using <a>DisconnectCustomKeyStore</a> to disconnect it from KMS. While the key store is
|
|
20
|
+
* disconnected, you cannot create or use the KMS keys in the key store. But, you do not need to
|
|
21
|
+
* delete KMS keys and you can reconnect a disconnected custom key store at any time.</p>
|
|
22
22
|
* <p>If the operation succeeds, it returns a JSON object with no
|
|
23
23
|
* properties.</p>
|
|
24
|
-
* <p>This operation is part of the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">Custom Key Store feature</a> feature in
|
|
25
|
-
* combines the convenience and extensive integration of
|
|
24
|
+
* <p>This operation is part of the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">Custom Key Store feature</a> feature in KMS, which
|
|
25
|
+
* combines the convenience and extensive integration of KMS with the isolation and control of a
|
|
26
26
|
* single-tenant key store.</p>
|
|
27
27
|
*
|
|
28
28
|
* <p>
|
|
29
|
-
* <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different
|
|
29
|
+
* <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.</p>
|
|
30
30
|
*
|
|
31
31
|
* <p>
|
|
32
32
|
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DeleteCustomKeyStore</a> (IAM policy)</p>
|
|
@@ -5,18 +5,18 @@ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
7
|
* <p>Deletes key material that you previously imported. This operation makes the specified
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* Material</a> in the <i>
|
|
11
|
-
* <p>When the specified
|
|
12
|
-
* not change the
|
|
8
|
+
* KMS key unusable. For more information about importing key material into
|
|
9
|
+
* KMS, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key
|
|
10
|
+
* Material</a> in the <i>Key Management Service Developer Guide</i>. </p>
|
|
11
|
+
* <p>When the specified KMS key is in the <code>PendingDeletion</code> state, this operation does
|
|
12
|
+
* not change the KMS key's state. Otherwise, it changes the KMS key's state to
|
|
13
13
|
* <code>PendingImport</code>.</p>
|
|
14
14
|
* <p>After you delete key material, you can use <a>ImportKeyMaterial</a> to reimport
|
|
15
|
-
* the same key material into the
|
|
16
|
-
* <p>The
|
|
17
|
-
* details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your
|
|
15
|
+
* the same key material into the KMS key.</p>
|
|
16
|
+
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
17
|
+
* 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>
|
|
18
18
|
* <p>
|
|
19
|
-
* <b>Cross-account use</b>: No. You cannot perform this operation on a
|
|
19
|
+
* <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
|
|
20
20
|
*
|
|
21
21
|
* <p>
|
|
22
22
|
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DeleteImportedKeyMaterial</a> (key policy)</p>
|
|
@@ -5,14 +5,14 @@ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
7
|
* <p>Gets information about <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key stores</a> in the account and Region.</p>
|
|
8
|
-
* <p>This operation is part of the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">Custom Key Store feature</a> feature in
|
|
9
|
-
* combines the convenience and extensive integration of
|
|
8
|
+
* <p>This operation is part of the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">Custom Key Store feature</a> feature in KMS, which
|
|
9
|
+
* combines the convenience and extensive integration of KMS with the isolation and control of a
|
|
10
10
|
* single-tenant key store.</p>
|
|
11
11
|
* <p>By default, this operation returns information about all custom key stores in the account and
|
|
12
12
|
* Region. To get only information about a particular custom key store, use either the
|
|
13
13
|
* <code>CustomKeyStoreName</code> or <code>CustomKeyStoreId</code> parameter (but not
|
|
14
14
|
* both).</p>
|
|
15
|
-
* <p>To determine whether the custom key store is connected to its
|
|
15
|
+
* <p>To determine whether the custom key store is connected to its CloudHSM cluster, use the
|
|
16
16
|
* <code>ConnectionState</code> element in the response. If an attempt to connect the custom
|
|
17
17
|
* key store failed, the <code>ConnectionState</code> value is <code>FAILED</code> and the
|
|
18
18
|
* <code>ConnectionErrorCode</code> element in the response indicates the cause of the failure.
|
|
@@ -20,12 +20,12 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
20
20
|
* <p>Custom key stores have a <code>DISCONNECTED</code> connection state if the key store has
|
|
21
21
|
* never been connected or you use the <a>DisconnectCustomKeyStore</a> operation to
|
|
22
22
|
* disconnect it. If your custom key store state is <code>CONNECTED</code> but you are having
|
|
23
|
-
* trouble using it, make sure that its associated
|
|
23
|
+
* trouble using it, make sure that its associated CloudHSM cluster is active and contains the
|
|
24
24
|
* minimum number of HSMs required for the operation, if any.</p>
|
|
25
25
|
* <p> For help repairing your custom key store, see the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html">Troubleshooting Custom Key Stores</a> topic in the
|
|
26
|
-
* <i>
|
|
26
|
+
* <i>Key Management Service Developer Guide</i>.</p>
|
|
27
27
|
* <p>
|
|
28
|
-
* <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different
|
|
28
|
+
* <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.</p>
|
|
29
29
|
* <p>
|
|
30
30
|
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DescribeCustomKeyStores</a> (IAM policy)</p>
|
|
31
31
|
* <p>
|
|
@@ -4,41 +4,40 @@ import { deserializeAws_json1_1DescribeKeyCommand, serializeAws_json1_1DescribeK
|
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
|
-
* <p>Provides detailed information about a
|
|
8
|
-
* <code>DescribeKey</code> on a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed
|
|
9
|
-
* CMK</a>.</p>
|
|
7
|
+
* <p>Provides detailed information about a KMS key. You can run
|
|
8
|
+
* <code>DescribeKey</code> on a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a> or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed key</a>.</p>
|
|
10
9
|
* <p>This detailed information includes the key ARN, creation date (and deletion date, if
|
|
11
10
|
* applicable), the key state, and the origin and expiration date (if any) of the key material.
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* the
|
|
11
|
+
* It includes fields, like <code>KeySpec</code>, that help you distinguish symmetric from
|
|
12
|
+
* asymmetric KMS keys. It also provides information that is particularly important to asymmetric
|
|
13
|
+
* keys, such as the key usage (encryption or signing) and the encryption algorithms or signing
|
|
14
|
+
* algorithms that the KMS key supports. For KMS keys in custom key stores, it includes information about
|
|
15
|
+
* the custom key store, such as the key store ID and the CloudHSM cluster ID. For multi-Region
|
|
16
|
+
* keys, it displays the primary key and all related replica keys. </p>
|
|
17
17
|
* <p>
|
|
18
18
|
* <code>DescribeKey</code> does not return the following information:</p>
|
|
19
19
|
* <ul>
|
|
20
20
|
* <li>
|
|
21
|
-
* <p>Aliases associated with the
|
|
21
|
+
* <p>Aliases associated with the KMS key. To get this information, use <a>ListAliases</a>.</p>
|
|
22
22
|
* </li>
|
|
23
23
|
* <li>
|
|
24
|
-
* <p>Whether automatic key rotation is enabled on the
|
|
25
|
-
* <a>GetKeyRotationStatus</a>. Also, some key states prevent a
|
|
24
|
+
* <p>Whether automatic key rotation is enabled on the KMS key. To get this information, use
|
|
25
|
+
* <a>GetKeyRotationStatus</a>. Also, some key states prevent a KMS key from being
|
|
26
26
|
* automatically rotated. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-how-it-works">How Automatic Key Rotation
|
|
27
|
-
* Works</a> in <i>
|
|
27
|
+
* Works</a> in <i>Key Management Service Developer Guide</i>.</p>
|
|
28
28
|
* </li>
|
|
29
29
|
* <li>
|
|
30
|
-
* <p>Tags on the
|
|
30
|
+
* <p>Tags on the KMS key. To get this information, use <a>ListResourceTags</a>.</p>
|
|
31
31
|
* </li>
|
|
32
32
|
* <li>
|
|
33
|
-
* <p>Key policies and grants on the
|
|
33
|
+
* <p>Key policies and grants on the KMS key. To get this information, use <a>GetKeyPolicy</a> and <a>ListGrants</a>.</p>
|
|
34
34
|
* </li>
|
|
35
35
|
* </ul>
|
|
36
|
-
* <p>If you call the <code>DescribeKey</code> operation on a <i>predefined
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* <code>Arn</code> of the new CMK in the response.</p>
|
|
36
|
+
* <p>If you call the <code>DescribeKey</code> operation on a <i>predefined Amazon Web Services alias</i>, that is, an Amazon Web Services alias with no key ID, KMS creates an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed key</a>.
|
|
37
|
+
* Then, it associates the alias with the new KMS key, and returns the <code>KeyId</code> and
|
|
38
|
+
* <code>Arn</code> of the new KMS key in the response.</p>
|
|
40
39
|
* <p>
|
|
41
|
-
* <b>Cross-account use</b>: Yes. To perform this operation with a
|
|
40
|
+
* <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify
|
|
42
41
|
* the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.</p>
|
|
43
42
|
*
|
|
44
43
|
* <p>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescribeKeyCommand.js","sourceRoot":"","sources":["../../../commands/DescribeKeyCommand.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":"DescribeKeyCommand.js","sourceRoot":"","sources":["../../../commands/DescribeKeyCommand.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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kB,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,15 +4,15 @@ import { deserializeAws_json1_1DisableKeyCommand, serializeAws_json1_1DisableKey
|
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
|
-
* <p>Sets the state of a
|
|
8
|
-
* prevents use of the
|
|
9
|
-
* <p>For more information about how key state affects the use of a
|
|
10
|
-
* <i>
|
|
7
|
+
* <p>Sets the state of a KMS key to disabled. This change temporarily
|
|
8
|
+
* prevents use of the KMS key for <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic operations</a>. </p>
|
|
9
|
+
* <p>For more information about how key state affects the use of a KMS key, 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>
|
|
10
|
+
* <i>Key Management Service Developer Guide</i>
|
|
11
11
|
* </i>.</p>
|
|
12
|
-
* <p>The
|
|
13
|
-
* details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your
|
|
12
|
+
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
13
|
+
* 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>
|
|
14
14
|
* <p>
|
|
15
|
-
* <b>Cross-account use</b>: No. You cannot perform this operation on a
|
|
15
|
+
* <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
|
|
16
16
|
*
|
|
17
17
|
* <p>
|
|
18
18
|
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DisableKey</a> (key policy)</p>
|
|
@@ -5,13 +5,12 @@ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
6
|
/**
|
|
7
7
|
* <p>Disables <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic
|
|
8
|
-
* rotation of the key material</a> for the specified symmetric
|
|
9
|
-
*
|
|
10
|
-
* <p>
|
|
11
|
-
*
|
|
12
|
-
* details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your CMK</a> in the <i>AWS Key Management Service Developer Guide</i>.</p>
|
|
8
|
+
* rotation of the key material</a> for the specified symmetric KMS key.</p>
|
|
9
|
+
* <p> You cannot enable automatic rotation of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks">asymmetric KMS keys</a>, KMS keys with <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key material</a>, or KMS keys in a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>. To enable or disable automatic rotation of a set of related <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html#mrk-replica-key">multi-Region keys</a>, set the property on the primary key. </p>
|
|
10
|
+
* <p>The KMS key that you use for this operation must be in a compatible key state. For
|
|
11
|
+
* details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your KMS key</a> in the <i>Key Management Service Developer Guide</i>.</p>
|
|
13
12
|
* <p>
|
|
14
|
-
* <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>
|
|
15
14
|
*
|
|
16
15
|
* <p>
|
|
17
16
|
* <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:DisableKeyRotation</a> (key policy)</p>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisableKeyRotationCommand.js","sourceRoot":"","sources":["../../../commands/DisableKeyRotationCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,+CAA+C,EAC/C,6CAA6C,GAC9C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D
|
|
1
|
+
{"version":3,"file":"DisableKeyRotationCommand.js","sourceRoot":"","sources":["../../../commands/DisableKeyRotationCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,+CAA+C,EAC/C,6CAA6C,GAC9C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH;IAA+C,6CAI9C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,mCAAqB,KAAqC;QAA1D;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAgC;;QAGxD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,qDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAA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