@aws-sdk/client-kms 3.36.0 → 3.39.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.
Files changed (131) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/KMS.js +0 -92
  3. package/dist-cjs/KMSClient.js +0 -97
  4. package/dist-cjs/commands/CancelKeyDeletionCommand.js +0 -37
  5. package/dist-cjs/commands/ConnectCustomKeyStoreCommand.js +0 -85
  6. package/dist-cjs/commands/CreateAliasCommand.js +0 -81
  7. package/dist-cjs/commands/CreateCustomKeyStoreCommand.js +0 -73
  8. package/dist-cjs/commands/CreateGrantCommand.js +0 -86
  9. package/dist-cjs/commands/CreateKeyCommand.js +0 -148
  10. package/dist-cjs/commands/DecryptCommand.js +0 -112
  11. package/dist-cjs/commands/DeleteAliasCommand.js +0 -71
  12. package/dist-cjs/commands/DeleteCustomKeyStoreCommand.js +0 -78
  13. package/dist-cjs/commands/DeleteImportedKeyMaterialCommand.js +0 -53
  14. package/dist-cjs/commands/DescribeCustomKeyStoresCommand.js +0 -77
  15. package/dist-cjs/commands/DescribeKeyCommand.js +0 -103
  16. package/dist-cjs/commands/DisableKeyCommand.js +0 -39
  17. package/dist-cjs/commands/DisableKeyRotationCommand.js +0 -49
  18. package/dist-cjs/commands/DisconnectCustomKeyStoreCommand.js +0 -76
  19. package/dist-cjs/commands/EnableKeyCommand.js +0 -36
  20. package/dist-cjs/commands/EnableKeyRotationCommand.js +0 -49
  21. package/dist-cjs/commands/EncryptCommand.js +0 -148
  22. package/dist-cjs/commands/GenerateDataKeyCommand.js +0 -121
  23. package/dist-cjs/commands/GenerateDataKeyPairCommand.js +0 -100
  24. package/dist-cjs/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +0 -90
  25. package/dist-cjs/commands/GenerateDataKeyWithoutPlaintextCommand.js +0 -95
  26. package/dist-cjs/commands/GenerateRandomCommand.js +0 -33
  27. package/dist-cjs/commands/GetKeyPolicyCommand.js +0 -32
  28. package/dist-cjs/commands/GetKeyRotationStatusCommand.js +0 -61
  29. package/dist-cjs/commands/GetParametersForImportCommand.js +0 -58
  30. package/dist-cjs/commands/GetPublicKeyCommand.js +0 -70
  31. package/dist-cjs/commands/ImportKeyMaterialCommand.js +0 -87
  32. package/dist-cjs/commands/ListAliasesCommand.js +0 -66
  33. package/dist-cjs/commands/ListGrantsCommand.js +0 -69
  34. package/dist-cjs/commands/ListKeyPoliciesCommand.js +0 -46
  35. package/dist-cjs/commands/ListKeysCommand.js +0 -54
  36. package/dist-cjs/commands/ListResourceTagsCommand.js +0 -58
  37. package/dist-cjs/commands/ListRetirableGrantsCommand.js +0 -67
  38. package/dist-cjs/commands/PutKeyPolicyCommand.js +0 -37
  39. package/dist-cjs/commands/ReEncryptCommand.js +0 -122
  40. package/dist-cjs/commands/ReplicateKeyCommand.js +0 -101
  41. package/dist-cjs/commands/RetireGrantCommand.js +0 -70
  42. package/dist-cjs/commands/RevokeGrantCommand.js +0 -67
  43. package/dist-cjs/commands/ScheduleKeyDeletionCommand.js +0 -78
  44. package/dist-cjs/commands/SignCommand.js +0 -69
  45. package/dist-cjs/commands/TagResourceCommand.js +0 -71
  46. package/dist-cjs/commands/UntagResourceCommand.js +0 -67
  47. package/dist-cjs/commands/UpdateAliasCommand.js +0 -86
  48. package/dist-cjs/commands/UpdateCustomKeyStoreCommand.js +0 -96
  49. package/dist-cjs/commands/UpdateKeyDescriptionCommand.js +0 -47
  50. package/dist-cjs/commands/UpdatePrimaryRegionCommand.js +0 -89
  51. package/dist-cjs/commands/VerifyCommand.js +0 -54
  52. package/dist-cjs/commands/index.js +51 -0
  53. package/dist-cjs/endpoints.js +6 -1
  54. package/dist-cjs/index.js +4 -55
  55. package/dist-cjs/models/models_0.js +0 -366
  56. package/dist-cjs/pagination/ListAliasesPaginator.js +0 -10
  57. package/dist-cjs/pagination/ListGrantsPaginator.js +0 -10
  58. package/dist-cjs/pagination/ListKeyPoliciesPaginator.js +0 -10
  59. package/dist-cjs/pagination/ListKeysPaginator.js +0 -10
  60. package/dist-cjs/pagination/index.js +8 -0
  61. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  62. package/dist-cjs/runtimeConfig.browser.js +1 -5
  63. package/dist-cjs/runtimeConfig.js +1 -5
  64. package/dist-cjs/runtimeConfig.native.js +0 -3
  65. package/dist-cjs/runtimeConfig.shared.js +0 -3
  66. package/dist-es/commands/index.js +48 -0
  67. package/dist-es/endpoints.js +6 -1
  68. package/dist-es/index.js +4 -55
  69. package/dist-es/pagination/index.js +5 -0
  70. package/dist-types/commands/index.d.ts +48 -0
  71. package/dist-types/index.d.ts +4 -55
  72. package/dist-types/pagination/index.d.ts +5 -0
  73. package/dist-types/ts3.4/KMS.d.ts +49 -2646
  74. package/dist-types/ts3.4/KMSClient.d.ts +24 -178
  75. package/dist-types/ts3.4/commands/CancelKeyDeletionCommand.d.ts +2 -33
  76. package/dist-types/ts3.4/commands/ConnectCustomKeyStoreCommand.d.ts +2 -81
  77. package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +2 -77
  78. package/dist-types/ts3.4/commands/CreateCustomKeyStoreCommand.d.ts +2 -69
  79. package/dist-types/ts3.4/commands/CreateGrantCommand.d.ts +2 -82
  80. package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +2 -144
  81. package/dist-types/ts3.4/commands/DecryptCommand.d.ts +2 -108
  82. package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +2 -67
  83. package/dist-types/ts3.4/commands/DeleteCustomKeyStoreCommand.d.ts +2 -74
  84. package/dist-types/ts3.4/commands/DeleteImportedKeyMaterialCommand.d.ts +2 -49
  85. package/dist-types/ts3.4/commands/DescribeCustomKeyStoresCommand.d.ts +2 -73
  86. package/dist-types/ts3.4/commands/DescribeKeyCommand.d.ts +2 -99
  87. package/dist-types/ts3.4/commands/DisableKeyCommand.d.ts +2 -35
  88. package/dist-types/ts3.4/commands/DisableKeyRotationCommand.d.ts +2 -45
  89. package/dist-types/ts3.4/commands/DisconnectCustomKeyStoreCommand.d.ts +2 -72
  90. package/dist-types/ts3.4/commands/EnableKeyCommand.d.ts +2 -32
  91. package/dist-types/ts3.4/commands/EnableKeyRotationCommand.d.ts +2 -45
  92. package/dist-types/ts3.4/commands/EncryptCommand.d.ts +2 -144
  93. package/dist-types/ts3.4/commands/GenerateDataKeyCommand.d.ts +2 -117
  94. package/dist-types/ts3.4/commands/GenerateDataKeyPairCommand.d.ts +2 -96
  95. package/dist-types/ts3.4/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +2 -86
  96. package/dist-types/ts3.4/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +2 -91
  97. package/dist-types/ts3.4/commands/GenerateRandomCommand.d.ts +2 -29
  98. package/dist-types/ts3.4/commands/GetKeyPolicyCommand.d.ts +2 -28
  99. package/dist-types/ts3.4/commands/GetKeyRotationStatusCommand.d.ts +2 -57
  100. package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +2 -54
  101. package/dist-types/ts3.4/commands/GetPublicKeyCommand.d.ts +2 -66
  102. package/dist-types/ts3.4/commands/ImportKeyMaterialCommand.d.ts +2 -83
  103. package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +2 -62
  104. package/dist-types/ts3.4/commands/ListGrantsCommand.d.ts +2 -65
  105. package/dist-types/ts3.4/commands/ListKeyPoliciesCommand.d.ts +2 -42
  106. package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +2 -50
  107. package/dist-types/ts3.4/commands/ListResourceTagsCommand.d.ts +2 -54
  108. package/dist-types/ts3.4/commands/ListRetirableGrantsCommand.d.ts +2 -63
  109. package/dist-types/ts3.4/commands/PutKeyPolicyCommand.d.ts +2 -33
  110. package/dist-types/ts3.4/commands/ReEncryptCommand.d.ts +2 -118
  111. package/dist-types/ts3.4/commands/ReplicateKeyCommand.d.ts +2 -97
  112. package/dist-types/ts3.4/commands/RetireGrantCommand.d.ts +2 -66
  113. package/dist-types/ts3.4/commands/RevokeGrantCommand.d.ts +2 -63
  114. package/dist-types/ts3.4/commands/ScheduleKeyDeletionCommand.d.ts +2 -74
  115. package/dist-types/ts3.4/commands/SignCommand.d.ts +2 -65
  116. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -67
  117. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -63
  118. package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +2 -82
  119. package/dist-types/ts3.4/commands/UpdateCustomKeyStoreCommand.d.ts +2 -92
  120. package/dist-types/ts3.4/commands/UpdateKeyDescriptionCommand.d.ts +2 -43
  121. package/dist-types/ts3.4/commands/UpdatePrimaryRegionCommand.d.ts +2 -85
  122. package/dist-types/ts3.4/commands/VerifyCommand.d.ts +2 -50
  123. package/dist-types/ts3.4/commands/index.d.ts +48 -0
  124. package/dist-types/ts3.4/index.d.ts +4 -55
  125. package/dist-types/ts3.4/models/models_0.d.ts +445 -2963
  126. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  127. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  128. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  129. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  130. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  131. package/package.json +32 -32
@@ -5,58 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Updates the description of a KMS key. To see the description of a KMS key, use <a>DescribeKey</a>. </p>
10
- * <p>The KMS key that you use for this operation must be in a compatible key state. For
11
- * details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your KMS key</a> in the <i>Key Management Service Developer Guide</i>.</p>
12
- * <p>
13
- * <b>Cross-account
14
- * use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account. </p>
15
- *
16
- * <p>
17
- * <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateKeyDescription</a> (key policy)</p>
18
- * <p>
19
- * <b>Related operations</b>
20
- * </p>
21
- * <ul>
22
- * <li>
23
- * <p>
24
- * <a>CreateKey</a>
25
- * </p>
26
- * </li>
27
- * <li>
28
- * <p>
29
- * <a>DescribeKey</a>
30
- * </p>
31
- * </li>
32
- * </ul>
33
- * @example
34
- * Use a bare-bones client and the command you need to make an API call.
35
- * ```javascript
36
- * import { KMSClient, UpdateKeyDescriptionCommand } from "@aws-sdk/client-kms"; // ES Modules import
37
- * // const { KMSClient, UpdateKeyDescriptionCommand } = require("@aws-sdk/client-kms"); // CommonJS import
38
- * const client = new KMSClient(config);
39
- * const command = new UpdateKeyDescriptionCommand(input);
40
- * const response = await client.send(command);
41
- * ```
42
- *
43
- * @see {@link UpdateKeyDescriptionCommandInput} for command's `input` shape.
44
- * @see {@link UpdateKeyDescriptionCommandOutput} for command's `response` shape.
45
- * @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
46
- *
47
- */
48
8
  class UpdateKeyDescriptionCommand extends smithy_client_1.Command {
49
- // Start section: command_properties
50
- // End section: command_properties
51
9
  constructor(input) {
52
- // Start section: command_constructor
53
10
  super();
54
11
  this.input = input;
55
- // End section: command_constructor
56
12
  }
57
- /**
58
- * @internal
59
- */
60
13
  resolveMiddleware(clientStack, configuration, options) {
61
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
62
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,100 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Changes the primary key of a multi-Region key. </p>
10
- * <p>This operation changes the replica key in the specified Region to a primary key and
11
- * changes the former primary key to a replica key. For example, suppose you have a primary key
12
- * in <code>us-east-1</code> and a replica key in <code>eu-west-2</code>. If you run
13
- * <code>UpdatePrimaryRegion</code> with a <code>PrimaryRegion</code> value of
14
- * <code>eu-west-2</code>, the primary key is now the key in <code>eu-west-2</code>, and the
15
- * key in <code>us-east-1</code> becomes a replica key. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-manage.html#multi-region-update">Updating the primary Region</a> in the <i>Key Management Service Developer Guide</i>.</p>
16
- * <p>This operation supports <i>multi-Region keys</i>, an KMS feature that lets you create multiple
17
- * interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key
18
- * material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt
19
- * 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>
20
- * <p>The <i>primary key</i> of a multi-Region key is the source for properties
21
- * that are always shared by primary and replica keys, including the key material, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-id">key ID</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-spec">key spec</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-usage">key usage</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-origin">key material
22
- * origin</a>, and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html">automatic
23
- * key rotation</a>. It's the only key that can be replicated. You cannot <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_ScheduleKeyDeletion.html">delete the primary
24
- * key</a> until all replica keys are deleted.</p>
25
- * <p>The key ID and primary Region that you specify uniquely identify the replica key that will
26
- * become the primary key. The primary Region must already have a replica key. This operation
27
- * does not create a KMS key in the specified Region. To find the replica keys, use the <a>DescribeKey</a> operation on the primary key or any replica key. To create a replica
28
- * key, use the <a>ReplicateKey</a> operation.</p>
29
- * <p>You can run this operation while using the affected multi-Region keys in cryptographic
30
- * operations. This operation should not delay, interrupt, or cause failures in cryptographic
31
- * operations. </p>
32
- * <p>Even after this operation completes, the process of updating the primary Region might
33
- * still be in progress for a few more seconds. Operations such as <code>DescribeKey</code> might
34
- * display both the old and new primary keys as replicas. The old and new primary keys have a
35
- * transient key state of <code>Updating</code>. The original key state is restored when the
36
- * update is complete. While the key state is <code>Updating</code>, you can use the keys in
37
- * cryptographic operations, but you cannot replicate the new primary key or perform certain
38
- * management operations, such as enabling or disabling these keys. For details about the
39
- * <code>Updating</code> key state, see <a href="kms/latest/developerguide/key-state.html">Key state:
40
- * Effect on your KMS key</a> in the <i>Key Management Service Developer Guide</i>.</p>
41
- * <p>This operation does not return any output. To verify that primary key is changed, use the
42
- * <a>DescribeKey</a> operation.</p>
43
- * <p>
44
- * <b>Cross-account use</b>: No. You cannot use this operation in a
45
- * different Amazon Web Services account. </p>
46
- * <p>
47
- * <b>Required permissions</b>: </p>
48
- * <ul>
49
- * <li>
50
- * <p>
51
- * <code>kms:UpdatePrimaryRegion</code> on the current primary key (in the primary key's
52
- * Region). Include this permission primary key's key policy.</p>
53
- * </li>
54
- * <li>
55
- * <p>
56
- * <code>kms:UpdatePrimaryRegion</code> on the current replica key (in the replica key's
57
- * Region). Include this permission in the replica key's key policy.</p>
58
- * </li>
59
- * </ul>
60
- * <p>
61
- * <b>Related operations</b>
62
- * </p>
63
- * <ul>
64
- * <li>
65
- * <p>
66
- * <a>CreateKey</a>
67
- * </p>
68
- * </li>
69
- * <li>
70
- * <p>
71
- * <a>ReplicateKey</a>
72
- * </p>
73
- * </li>
74
- * </ul>
75
- * @example
76
- * Use a bare-bones client and the command you need to make an API call.
77
- * ```javascript
78
- * import { KMSClient, UpdatePrimaryRegionCommand } from "@aws-sdk/client-kms"; // ES Modules import
79
- * // const { KMSClient, UpdatePrimaryRegionCommand } = require("@aws-sdk/client-kms"); // CommonJS import
80
- * const client = new KMSClient(config);
81
- * const command = new UpdatePrimaryRegionCommand(input);
82
- * const response = await client.send(command);
83
- * ```
84
- *
85
- * @see {@link UpdatePrimaryRegionCommandInput} for command's `input` shape.
86
- * @see {@link UpdatePrimaryRegionCommandOutput} for command's `response` shape.
87
- * @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
88
- *
89
- */
90
8
  class UpdatePrimaryRegionCommand extends smithy_client_1.Command {
91
- // Start section: command_properties
92
- // End section: command_properties
93
9
  constructor(input) {
94
- // Start section: command_constructor
95
10
  super();
96
11
  this.input = input;
97
- // End section: command_constructor
98
12
  }
99
- /**
100
- * @internal
101
- */
102
13
  resolveMiddleware(clientStack, configuration, options) {
103
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
104
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,65 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Verifies a digital signature that was generated by the <a>Sign</a> operation. </p>
10
- * <p></p>
11
- * <p>Verification confirms that an authorized user signed the message with the specified KMS
12
- * key and signing algorithm, and the message hasn't changed since it was signed. If the
13
- * signature is verified, the value of the <code>SignatureValid</code> field in the response is
14
- * <code>True</code>. If the signature verification fails, the <code>Verify</code> operation
15
- * fails with an <code>KMSInvalidSignatureException</code> exception.</p>
16
- * <p>A digital signature is generated by using the private key in an asymmetric KMS key. The
17
- * signature is verified by using the public key in the same asymmetric KMS key.
18
- * 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>
19
- * <p>To verify a digital signature, you can use the <code>Verify</code> operation. Specify the
20
- * same asymmetric KMS key, message, and signing algorithm that were used to produce the
21
- * signature.</p>
22
- * <p>You can also verify the digital signature by using the public key of the KMS key outside
23
- * of KMS. Use the <a>GetPublicKey</a> operation to download the public key in the
24
- * asymmetric KMS key and then use the public key to verify the signature outside of KMS. The
25
- * advantage of using the <code>Verify</code> operation is that it is performed within KMS. As
26
- * a result, it's easy to call, the operation is performed within the FIPS boundary, it is logged
27
- * in CloudTrail, and you can use key policy and IAM policy to determine who is authorized to use
28
- * the KMS key to verify signatures.</p>
29
- * <p>The KMS key that you use for this operation must be in a compatible key state. For
30
- * 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>
31
- * <p>
32
- * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify
33
- * the key ARN or alias ARN in the value of the <code>KeyId</code> parameter. </p>
34
- *
35
- * <p>
36
- * <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:Verify</a> (key policy)</p>
37
- * <p>
38
- * <b>Related operations</b>: <a>Sign</a>
39
- * </p>
40
- * @example
41
- * Use a bare-bones client and the command you need to make an API call.
42
- * ```javascript
43
- * import { KMSClient, VerifyCommand } from "@aws-sdk/client-kms"; // ES Modules import
44
- * // const { KMSClient, VerifyCommand } = require("@aws-sdk/client-kms"); // CommonJS import
45
- * const client = new KMSClient(config);
46
- * const command = new VerifyCommand(input);
47
- * const response = await client.send(command);
48
- * ```
49
- *
50
- * @see {@link VerifyCommandInput} for command's `input` shape.
51
- * @see {@link VerifyCommandOutput} for command's `response` shape.
52
- * @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
53
- *
54
- */
55
8
  class VerifyCommand extends smithy_client_1.Command {
56
- // Start section: command_properties
57
- // End section: command_properties
58
9
  constructor(input) {
59
- // Start section: command_constructor
60
10
  super();
61
11
  this.input = input;
62
- // End section: command_constructor
63
12
  }
64
- /**
65
- * @internal
66
- */
67
13
  resolveMiddleware(clientStack, configuration, options) {
68
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
69
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CancelKeyDeletionCommand"), exports);
5
+ tslib_1.__exportStar(require("./ConnectCustomKeyStoreCommand"), exports);
6
+ tslib_1.__exportStar(require("./CreateAliasCommand"), exports);
7
+ tslib_1.__exportStar(require("./CreateCustomKeyStoreCommand"), exports);
8
+ tslib_1.__exportStar(require("./CreateGrantCommand"), exports);
9
+ tslib_1.__exportStar(require("./CreateKeyCommand"), exports);
10
+ tslib_1.__exportStar(require("./DecryptCommand"), exports);
11
+ tslib_1.__exportStar(require("./DeleteAliasCommand"), exports);
12
+ tslib_1.__exportStar(require("./DeleteCustomKeyStoreCommand"), exports);
13
+ tslib_1.__exportStar(require("./DeleteImportedKeyMaterialCommand"), exports);
14
+ tslib_1.__exportStar(require("./DescribeCustomKeyStoresCommand"), exports);
15
+ tslib_1.__exportStar(require("./DescribeKeyCommand"), exports);
16
+ tslib_1.__exportStar(require("./DisableKeyCommand"), exports);
17
+ tslib_1.__exportStar(require("./DisableKeyRotationCommand"), exports);
18
+ tslib_1.__exportStar(require("./DisconnectCustomKeyStoreCommand"), exports);
19
+ tslib_1.__exportStar(require("./EnableKeyCommand"), exports);
20
+ tslib_1.__exportStar(require("./EnableKeyRotationCommand"), exports);
21
+ tslib_1.__exportStar(require("./EncryptCommand"), exports);
22
+ tslib_1.__exportStar(require("./GenerateDataKeyCommand"), exports);
23
+ tslib_1.__exportStar(require("./GenerateDataKeyPairCommand"), exports);
24
+ tslib_1.__exportStar(require("./GenerateDataKeyPairWithoutPlaintextCommand"), exports);
25
+ tslib_1.__exportStar(require("./GenerateDataKeyWithoutPlaintextCommand"), exports);
26
+ tslib_1.__exportStar(require("./GenerateRandomCommand"), exports);
27
+ tslib_1.__exportStar(require("./GetKeyPolicyCommand"), exports);
28
+ tslib_1.__exportStar(require("./GetKeyRotationStatusCommand"), exports);
29
+ tslib_1.__exportStar(require("./GetParametersForImportCommand"), exports);
30
+ tslib_1.__exportStar(require("./GetPublicKeyCommand"), exports);
31
+ tslib_1.__exportStar(require("./ImportKeyMaterialCommand"), exports);
32
+ tslib_1.__exportStar(require("./ListAliasesCommand"), exports);
33
+ tslib_1.__exportStar(require("./ListGrantsCommand"), exports);
34
+ tslib_1.__exportStar(require("./ListKeyPoliciesCommand"), exports);
35
+ tslib_1.__exportStar(require("./ListKeysCommand"), exports);
36
+ tslib_1.__exportStar(require("./ListResourceTagsCommand"), exports);
37
+ tslib_1.__exportStar(require("./ListRetirableGrantsCommand"), exports);
38
+ tslib_1.__exportStar(require("./PutKeyPolicyCommand"), exports);
39
+ tslib_1.__exportStar(require("./ReEncryptCommand"), exports);
40
+ tslib_1.__exportStar(require("./ReplicateKeyCommand"), exports);
41
+ tslib_1.__exportStar(require("./RetireGrantCommand"), exports);
42
+ tslib_1.__exportStar(require("./RevokeGrantCommand"), exports);
43
+ tslib_1.__exportStar(require("./ScheduleKeyDeletionCommand"), exports);
44
+ tslib_1.__exportStar(require("./SignCommand"), exports);
45
+ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
46
+ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
47
+ tslib_1.__exportStar(require("./UpdateAliasCommand"), exports);
48
+ tslib_1.__exportStar(require("./UpdateCustomKeyStoreCommand"), exports);
49
+ tslib_1.__exportStar(require("./UpdateKeyDescriptionCommand"), exports);
50
+ tslib_1.__exportStar(require("./UpdatePrimaryRegionCommand"), exports);
51
+ tslib_1.__exportStar(require("./VerifyCommand"), exports);
@@ -33,22 +33,27 @@ const partitionHash = {
33
33
  "us-west-1",
34
34
  "us-west-2",
35
35
  ],
36
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
36
37
  hostname: "kms.{region}.amazonaws.com",
37
38
  },
38
39
  "aws-cn": {
39
40
  regions: ["cn-north-1", "cn-northwest-1"],
41
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
40
42
  hostname: "kms.{region}.amazonaws.com.cn",
41
43
  },
42
44
  "aws-iso": {
43
- regions: ["ProdFips", "us-iso-east-1"],
45
+ regions: ["ProdFips", "us-iso-east-1", "us-iso-west-1"],
46
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
44
47
  hostname: "kms.{region}.c2s.ic.gov",
45
48
  },
46
49
  "aws-iso-b": {
47
50
  regions: ["ProdFips", "us-isob-east-1"],
51
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
48
52
  hostname: "kms.{region}.sc2s.sgov.gov",
49
53
  },
50
54
  "aws-us-gov": {
51
55
  regions: ["ProdFips", "us-gov-east-1", "us-gov-west-1"],
56
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
52
57
  hostname: "kms.{region}.amazonaws.com",
53
58
  },
54
59
  };
package/dist-cjs/index.js CHANGED
@@ -1,59 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./KMSClient"), exports);
5
4
  tslib_1.__exportStar(require("./KMS"), exports);
6
- tslib_1.__exportStar(require("./commands/CancelKeyDeletionCommand"), exports);
7
- tslib_1.__exportStar(require("./commands/ConnectCustomKeyStoreCommand"), exports);
8
- tslib_1.__exportStar(require("./commands/CreateAliasCommand"), exports);
9
- tslib_1.__exportStar(require("./commands/CreateCustomKeyStoreCommand"), exports);
10
- tslib_1.__exportStar(require("./commands/CreateGrantCommand"), exports);
11
- tslib_1.__exportStar(require("./commands/CreateKeyCommand"), exports);
12
- tslib_1.__exportStar(require("./commands/DecryptCommand"), exports);
13
- tslib_1.__exportStar(require("./commands/DeleteAliasCommand"), exports);
14
- tslib_1.__exportStar(require("./commands/DeleteCustomKeyStoreCommand"), exports);
15
- tslib_1.__exportStar(require("./commands/DeleteImportedKeyMaterialCommand"), exports);
16
- tslib_1.__exportStar(require("./commands/DescribeCustomKeyStoresCommand"), exports);
17
- tslib_1.__exportStar(require("./commands/DescribeKeyCommand"), exports);
18
- tslib_1.__exportStar(require("./commands/DisableKeyCommand"), exports);
19
- tslib_1.__exportStar(require("./commands/DisableKeyRotationCommand"), exports);
20
- tslib_1.__exportStar(require("./commands/DisconnectCustomKeyStoreCommand"), exports);
21
- tslib_1.__exportStar(require("./commands/EnableKeyCommand"), exports);
22
- tslib_1.__exportStar(require("./commands/EnableKeyRotationCommand"), exports);
23
- tslib_1.__exportStar(require("./commands/EncryptCommand"), exports);
24
- tslib_1.__exportStar(require("./commands/GenerateDataKeyCommand"), exports);
25
- tslib_1.__exportStar(require("./commands/GenerateDataKeyPairCommand"), exports);
26
- tslib_1.__exportStar(require("./commands/GenerateDataKeyPairWithoutPlaintextCommand"), exports);
27
- tslib_1.__exportStar(require("./commands/GenerateDataKeyWithoutPlaintextCommand"), exports);
28
- tslib_1.__exportStar(require("./commands/GenerateRandomCommand"), exports);
29
- tslib_1.__exportStar(require("./commands/GetKeyPolicyCommand"), exports);
30
- tslib_1.__exportStar(require("./commands/GetKeyRotationStatusCommand"), exports);
31
- tslib_1.__exportStar(require("./commands/GetParametersForImportCommand"), exports);
32
- tslib_1.__exportStar(require("./commands/GetPublicKeyCommand"), exports);
33
- tslib_1.__exportStar(require("./commands/ImportKeyMaterialCommand"), exports);
34
- tslib_1.__exportStar(require("./commands/ListAliasesCommand"), exports);
35
- tslib_1.__exportStar(require("./pagination/ListAliasesPaginator"), exports);
36
- tslib_1.__exportStar(require("./commands/ListGrantsCommand"), exports);
37
- tslib_1.__exportStar(require("./pagination/ListGrantsPaginator"), exports);
38
- tslib_1.__exportStar(require("./commands/ListKeyPoliciesCommand"), exports);
39
- tslib_1.__exportStar(require("./pagination/ListKeyPoliciesPaginator"), exports);
40
- tslib_1.__exportStar(require("./commands/ListKeysCommand"), exports);
41
- tslib_1.__exportStar(require("./pagination/ListKeysPaginator"), exports);
42
- tslib_1.__exportStar(require("./commands/ListResourceTagsCommand"), exports);
43
- tslib_1.__exportStar(require("./commands/ListRetirableGrantsCommand"), exports);
44
- tslib_1.__exportStar(require("./commands/PutKeyPolicyCommand"), exports);
45
- tslib_1.__exportStar(require("./commands/ReEncryptCommand"), exports);
46
- tslib_1.__exportStar(require("./commands/ReplicateKeyCommand"), exports);
47
- tslib_1.__exportStar(require("./commands/RetireGrantCommand"), exports);
48
- tslib_1.__exportStar(require("./commands/RevokeGrantCommand"), exports);
49
- tslib_1.__exportStar(require("./commands/ScheduleKeyDeletionCommand"), exports);
50
- tslib_1.__exportStar(require("./commands/SignCommand"), exports);
51
- tslib_1.__exportStar(require("./commands/TagResourceCommand"), exports);
52
- tslib_1.__exportStar(require("./commands/UntagResourceCommand"), exports);
53
- tslib_1.__exportStar(require("./commands/UpdateAliasCommand"), exports);
54
- tslib_1.__exportStar(require("./commands/UpdateCustomKeyStoreCommand"), exports);
55
- tslib_1.__exportStar(require("./commands/UpdateKeyDescriptionCommand"), exports);
56
- tslib_1.__exportStar(require("./commands/UpdatePrimaryRegionCommand"), exports);
57
- tslib_1.__exportStar(require("./commands/VerifyCommand"), exports);
58
- tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
59
- tslib_1.__exportStar(require("./models/index"), exports);
5
+ tslib_1.__exportStar(require("./KMSClient"), exports);
6
+ tslib_1.__exportStar(require("./commands"), exports);
7
+ tslib_1.__exportStar(require("./models"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);