@aws-sdk/client-kms 3.325.0 → 3.327.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/dist-types/commands/CancelKeyDeletionCommand.d.ts +6 -0
- package/dist-types/commands/ConnectCustomKeyStoreCommand.d.ts +4 -0
- package/dist-types/commands/CreateAliasCommand.d.ts +4 -0
- package/dist-types/commands/CreateCustomKeyStoreCommand.d.ts +7 -1
- package/dist-types/commands/CreateGrantCommand.d.ts +7 -0
- package/dist-types/commands/CreateKeyCommand.d.ts +52 -1
- package/dist-types/commands/DecryptCommand.d.ts +55 -3
- package/dist-types/commands/DeleteAliasCommand.d.ts +4 -0
- package/dist-types/commands/DeleteCustomKeyStoreCommand.d.ts +4 -0
- package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +4 -0
- package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +27 -1
- package/dist-types/commands/DescribeKeyCommand.d.ts +52 -1
- package/dist-types/commands/DisableKeyCommand.d.ts +4 -0
- package/dist-types/commands/DisableKeyRotationCommand.d.ts +4 -0
- package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +5 -1
- package/dist-types/commands/EnableKeyCommand.d.ts +4 -0
- package/dist-types/commands/EnableKeyRotationCommand.d.ts +4 -0
- package/dist-types/commands/EncryptCommand.d.ts +32 -3
- package/dist-types/commands/GenerateDataKeyCommand.d.ts +33 -1
- package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +37 -1
- package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +9 -0
- package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +7 -0
- package/dist-types/commands/GenerateMacCommand.d.ts +8 -0
- package/dist-types/commands/GenerateRandomCommand.d.ts +28 -1
- package/dist-types/commands/GetKeyPolicyCommand.d.ts +6 -0
- package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +6 -0
- package/dist-types/commands/GetParametersForImportCommand.d.ts +9 -0
- package/dist-types/commands/GetPublicKeyCommand.d.ts +16 -0
- package/dist-types/commands/ImportKeyMaterialCommand.d.ts +4 -0
- package/dist-types/commands/ListAliasesCommand.d.ts +16 -0
- package/dist-types/commands/ListGrantsCommand.d.ts +29 -0
- package/dist-types/commands/ListKeyPoliciesCommand.d.ts +10 -0
- package/dist-types/commands/ListKeysCommand.d.ts +13 -0
- package/dist-types/commands/ListResourceTagsCommand.d.ts +13 -0
- package/dist-types/commands/ListRetirableGrantsCommand.d.ts +29 -0
- package/dist-types/commands/PutKeyPolicyCommand.d.ts +4 -0
- package/dist-types/commands/ReEncryptCommand.d.ts +10 -0
- package/dist-types/commands/ReplicateKeyCommand.d.ts +58 -0
- package/dist-types/commands/RetireGrantCommand.d.ts +4 -0
- package/dist-types/commands/RevokeGrantCommand.d.ts +4 -0
- package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +9 -0
- package/dist-types/commands/SignCommand.d.ts +8 -0
- package/dist-types/commands/TagResourceCommand.d.ts +4 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
- package/dist-types/commands/UpdateAliasCommand.d.ts +4 -0
- package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +5 -1
- package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +4 -0
- package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +4 -0
- package/dist-types/commands/VerifyCommand.d.ts +8 -0
- package/dist-types/commands/VerifyMacCommand.d.ts +8 -0
- package/package.json +7 -7
|
@@ -144,6 +144,12 @@ export interface GenerateDataKeyCommandOutput extends GenerateDataKeyResponse, _
|
|
|
144
144
|
* };
|
|
145
145
|
* const command = new GenerateDataKeyCommand(input);
|
|
146
146
|
* const response = await client.send(command);
|
|
147
|
+
* // { // GenerateDataKeyResponse
|
|
148
|
+
* // CiphertextBlob: "BLOB_VALUE",
|
|
149
|
+
* // Plaintext: "BLOB_VALUE",
|
|
150
|
+
* // KeyId: "STRING_VALUE",
|
|
151
|
+
* // };
|
|
152
|
+
*
|
|
147
153
|
* ```
|
|
148
154
|
*
|
|
149
155
|
* @param GenerateDataKeyCommandInput - {@link GenerateDataKeyCommandInput}
|
|
@@ -213,6 +219,8 @@ export interface GenerateDataKeyCommandOutput extends GenerateDataKeyResponse, _
|
|
|
213
219
|
* <p>The request was rejected because the specified entity or resource could not be
|
|
214
220
|
* found.</p>
|
|
215
221
|
*
|
|
222
|
+
* @throws {@link KMSServiceException}
|
|
223
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
216
224
|
*
|
|
217
225
|
* @example To generate a data key
|
|
218
226
|
* ```javascript
|
|
@@ -230,7 +238,31 @@ export interface GenerateDataKeyCommandOutput extends GenerateDataKeyResponse, _
|
|
|
230
238
|
* "Plaintext": "<binary data>"
|
|
231
239
|
* }
|
|
232
240
|
* *\/
|
|
233
|
-
* // example id: to-generate-a-data-key-
|
|
241
|
+
* // example id: to-generate-a-data-key-1
|
|
242
|
+
* ```
|
|
243
|
+
*
|
|
244
|
+
* @example To generate a data key pair for a Nitro enclave
|
|
245
|
+
* ```javascript
|
|
246
|
+
* // The following example includes the Recipient parameter with a signed attestation document from an AWS Nitro enclave. Instead of returning a copy of the data key encrypted by the KMS key and a plaintext copy of the data key, GenerateDataKey returns one copy of the data key encrypted by the KMS key (CiphertextBlob) and one copy of the data key encrypted by the public key from the attestation document (CiphertextForRecipient). The operation doesn't return a plaintext data key.
|
|
247
|
+
* const input = {
|
|
248
|
+
* "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
|
|
249
|
+
* "KeySpec": "AES_256",
|
|
250
|
+
* "Recipient": {
|
|
251
|
+
* "AttestationDocument": "<attestation document>",
|
|
252
|
+
* "KeyEncryptionAlgorithm": "RSAES_OAEP_SHA_256"
|
|
253
|
+
* }
|
|
254
|
+
* };
|
|
255
|
+
* const command = new GenerateDataKeyCommand(input);
|
|
256
|
+
* const response = await client.send(command);
|
|
257
|
+
* /* response ==
|
|
258
|
+
* {
|
|
259
|
+
* "CiphertextBlob": "<binary data>",
|
|
260
|
+
* "CiphertextForRecipient": "<binary data>",
|
|
261
|
+
* "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
|
|
262
|
+
* "Plaintext": ""
|
|
263
|
+
* }
|
|
264
|
+
* *\/
|
|
265
|
+
* // example id: to-generate-a-data-key-for-a-nitro-enclave-2
|
|
234
266
|
* ```
|
|
235
267
|
*
|
|
236
268
|
* @example To generate a data key pair for a Nitro enclave
|
|
@@ -121,6 +121,14 @@ export interface GenerateDataKeyPairCommandOutput extends GenerateDataKeyPairRes
|
|
|
121
121
|
* };
|
|
122
122
|
* const command = new GenerateDataKeyPairCommand(input);
|
|
123
123
|
* const response = await client.send(command);
|
|
124
|
+
* // { // GenerateDataKeyPairResponse
|
|
125
|
+
* // PrivateKeyCiphertextBlob: "BLOB_VALUE",
|
|
126
|
+
* // PrivateKeyPlaintext: "BLOB_VALUE",
|
|
127
|
+
* // PublicKey: "BLOB_VALUE",
|
|
128
|
+
* // KeyId: "STRING_VALUE",
|
|
129
|
+
* // KeyPairSpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SM2",
|
|
130
|
+
* // };
|
|
131
|
+
*
|
|
124
132
|
* ```
|
|
125
133
|
*
|
|
126
134
|
* @param GenerateDataKeyPairCommandInput - {@link GenerateDataKeyPairCommandInput}
|
|
@@ -194,6 +202,8 @@ export interface GenerateDataKeyPairCommandOutput extends GenerateDataKeyPairRes
|
|
|
194
202
|
* <p>The request was rejected because a specified parameter is not supported or a specified
|
|
195
203
|
* resource is not valid for this operation.</p>
|
|
196
204
|
*
|
|
205
|
+
* @throws {@link KMSServiceException}
|
|
206
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
197
207
|
*
|
|
198
208
|
* @example To generate an RSA key pair for encryption and decryption
|
|
199
209
|
* ```javascript
|
|
@@ -213,7 +223,33 @@ export interface GenerateDataKeyPairCommandOutput extends GenerateDataKeyPairRes
|
|
|
213
223
|
* "PublicKey": "<binary data>"
|
|
214
224
|
* }
|
|
215
225
|
* *\/
|
|
216
|
-
* // example id: to-generate-an-rsa-key-pair-for-encryption-and-decryption-
|
|
226
|
+
* // example id: to-generate-an-rsa-key-pair-for-encryption-and-decryption-1
|
|
227
|
+
* ```
|
|
228
|
+
*
|
|
229
|
+
* @example To generate a data key pair for a Nitro enclave
|
|
230
|
+
* ```javascript
|
|
231
|
+
* // The following example includes the Recipient parameter with a signed attestation document from an AWS Nitro enclave. Instead of returning a plaintext copy of the private data key, GenerateDataKeyPair returns a copy of the private data key encrypted by the public key from the attestation document (CiphertextForRecipient). It returns the public data key (PublicKey) and a copy of private data key encrypted under the specified KMS key (PrivateKeyCiphertextBlob), as usual, but plaintext private data key field (PrivateKeyPlaintext) is null or empty.
|
|
232
|
+
* const input = {
|
|
233
|
+
* "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
|
|
234
|
+
* "KeyPairSpec": "RSA_3072",
|
|
235
|
+
* "Recipient": {
|
|
236
|
+
* "AttestationDocument": "<attestation document>",
|
|
237
|
+
* "KeyEncryptionAlgorithm": "RSAES_OAEP_SHA_256"
|
|
238
|
+
* }
|
|
239
|
+
* };
|
|
240
|
+
* const command = new GenerateDataKeyPairCommand(input);
|
|
241
|
+
* const response = await client.send(command);
|
|
242
|
+
* /* response ==
|
|
243
|
+
* {
|
|
244
|
+
* "CiphertextForRecipient": "<binary data>",
|
|
245
|
+
* "KeyId": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
|
|
246
|
+
* "KeyPairSpec": "RSA_3072",
|
|
247
|
+
* "PrivateKeyCiphertextBlob": "<binary data>",
|
|
248
|
+
* "PrivateKeyPlaintext": "",
|
|
249
|
+
* "PublicKey": "<binary data>"
|
|
250
|
+
* }
|
|
251
|
+
* *\/
|
|
252
|
+
* // example id: to-generate-a-data-key-pair-for-a-nitro-enclave-2
|
|
217
253
|
* ```
|
|
218
254
|
*
|
|
219
255
|
* @example To generate a data key pair for a Nitro enclave
|
|
@@ -100,6 +100,13 @@ export interface GenerateDataKeyPairWithoutPlaintextCommandOutput extends Genera
|
|
|
100
100
|
* };
|
|
101
101
|
* const command = new GenerateDataKeyPairWithoutPlaintextCommand(input);
|
|
102
102
|
* const response = await client.send(command);
|
|
103
|
+
* // { // GenerateDataKeyPairWithoutPlaintextResponse
|
|
104
|
+
* // PrivateKeyCiphertextBlob: "BLOB_VALUE",
|
|
105
|
+
* // PublicKey: "BLOB_VALUE",
|
|
106
|
+
* // KeyId: "STRING_VALUE",
|
|
107
|
+
* // KeyPairSpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SM2",
|
|
108
|
+
* // };
|
|
109
|
+
*
|
|
103
110
|
* ```
|
|
104
111
|
*
|
|
105
112
|
* @param GenerateDataKeyPairWithoutPlaintextCommandInput - {@link GenerateDataKeyPairWithoutPlaintextCommandInput}
|
|
@@ -173,6 +180,8 @@ export interface GenerateDataKeyPairWithoutPlaintextCommandOutput extends Genera
|
|
|
173
180
|
* <p>The request was rejected because a specified parameter is not supported or a specified
|
|
174
181
|
* resource is not valid for this operation.</p>
|
|
175
182
|
*
|
|
183
|
+
* @throws {@link KMSServiceException}
|
|
184
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
176
185
|
*
|
|
177
186
|
* @example To generate an asymmetric data key pair without a plaintext key
|
|
178
187
|
* ```javascript
|
|
@@ -110,6 +110,11 @@ export interface GenerateDataKeyWithoutPlaintextCommandOutput extends GenerateDa
|
|
|
110
110
|
* };
|
|
111
111
|
* const command = new GenerateDataKeyWithoutPlaintextCommand(input);
|
|
112
112
|
* const response = await client.send(command);
|
|
113
|
+
* // { // GenerateDataKeyWithoutPlaintextResponse
|
|
114
|
+
* // CiphertextBlob: "BLOB_VALUE",
|
|
115
|
+
* // KeyId: "STRING_VALUE",
|
|
116
|
+
* // };
|
|
117
|
+
*
|
|
113
118
|
* ```
|
|
114
119
|
*
|
|
115
120
|
* @param GenerateDataKeyWithoutPlaintextCommandInput - {@link GenerateDataKeyWithoutPlaintextCommandInput}
|
|
@@ -179,6 +184,8 @@ export interface GenerateDataKeyWithoutPlaintextCommandOutput extends GenerateDa
|
|
|
179
184
|
* <p>The request was rejected because the specified entity or resource could not be
|
|
180
185
|
* found.</p>
|
|
181
186
|
*
|
|
187
|
+
* @throws {@link KMSServiceException}
|
|
188
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
182
189
|
*
|
|
183
190
|
* @example To generate an encrypted data key
|
|
184
191
|
* ```javascript
|
|
@@ -63,6 +63,12 @@ export interface GenerateMacCommandOutput extends GenerateMacResponse, __Metadat
|
|
|
63
63
|
* };
|
|
64
64
|
* const command = new GenerateMacCommand(input);
|
|
65
65
|
* const response = await client.send(command);
|
|
66
|
+
* // { // GenerateMacResponse
|
|
67
|
+
* // Mac: "BLOB_VALUE",
|
|
68
|
+
* // MacAlgorithm: "HMAC_SHA_224" || "HMAC_SHA_256" || "HMAC_SHA_384" || "HMAC_SHA_512",
|
|
69
|
+
* // KeyId: "STRING_VALUE",
|
|
70
|
+
* // };
|
|
71
|
+
*
|
|
66
72
|
* ```
|
|
67
73
|
*
|
|
68
74
|
* @param GenerateMacCommandInput - {@link GenerateMacCommandInput}
|
|
@@ -128,6 +134,8 @@ export interface GenerateMacCommandOutput extends GenerateMacResponse, __Metadat
|
|
|
128
134
|
* <p>The request was rejected because the specified entity or resource could not be
|
|
129
135
|
* found.</p>
|
|
130
136
|
*
|
|
137
|
+
* @throws {@link KMSServiceException}
|
|
138
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
131
139
|
*
|
|
132
140
|
* @example To generate an HMAC for a message
|
|
133
141
|
* ```javascript
|
|
@@ -56,6 +56,10 @@ export interface GenerateRandomCommandOutput extends GenerateRandomResponse, __M
|
|
|
56
56
|
* };
|
|
57
57
|
* const command = new GenerateRandomCommand(input);
|
|
58
58
|
* const response = await client.send(command);
|
|
59
|
+
* // { // GenerateRandomResponse
|
|
60
|
+
* // Plaintext: "BLOB_VALUE",
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
59
63
|
* ```
|
|
60
64
|
*
|
|
61
65
|
* @param GenerateRandomCommandInput - {@link GenerateRandomCommandInput}
|
|
@@ -116,6 +120,8 @@ export interface GenerateRandomCommandOutput extends GenerateRandomResponse, __M
|
|
|
116
120
|
* <p>The request was rejected because a specified parameter is not supported or a specified
|
|
117
121
|
* resource is not valid for this operation.</p>
|
|
118
122
|
*
|
|
123
|
+
* @throws {@link KMSServiceException}
|
|
124
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
119
125
|
*
|
|
120
126
|
* @example To generate random data
|
|
121
127
|
* ```javascript
|
|
@@ -130,7 +136,28 @@ export interface GenerateRandomCommandOutput extends GenerateRandomResponse, __M
|
|
|
130
136
|
* "Plaintext": "<binary data>"
|
|
131
137
|
* }
|
|
132
138
|
* *\/
|
|
133
|
-
* // example id: to-generate-random-data-
|
|
139
|
+
* // example id: to-generate-random-data-1
|
|
140
|
+
* ```
|
|
141
|
+
*
|
|
142
|
+
* @example To generate random data
|
|
143
|
+
* ```javascript
|
|
144
|
+
* // The following example includes the Recipient parameter with a signed attestation document from an AWS Nitro enclave. Instead of returning a plaintext (unencrypted) byte string, GenerateRandom returns the byte string encrypted by the public key from the enclave's attestation document.
|
|
145
|
+
* const input = {
|
|
146
|
+
* "NumberOfBytes": 1024,
|
|
147
|
+
* "Recipient": {
|
|
148
|
+
* "AttestationDocument": "<attestation document>",
|
|
149
|
+
* "KeyEncryptionAlgorithm": "RSAES_OAEP_SHA_256"
|
|
150
|
+
* }
|
|
151
|
+
* };
|
|
152
|
+
* const command = new GenerateRandomCommand(input);
|
|
153
|
+
* const response = await client.send(command);
|
|
154
|
+
* /* response ==
|
|
155
|
+
* {
|
|
156
|
+
* "CiphertextForRecipient": "<binary data>",
|
|
157
|
+
* "Plaintext": ""
|
|
158
|
+
* }
|
|
159
|
+
* *\/
|
|
160
|
+
* // example id: to-generate-random-data-2
|
|
134
161
|
* ```
|
|
135
162
|
*
|
|
136
163
|
* @example To generate random data
|
|
@@ -39,6 +39,10 @@ export interface GetKeyPolicyCommandOutput extends GetKeyPolicyResponse, __Metad
|
|
|
39
39
|
* };
|
|
40
40
|
* const command = new GetKeyPolicyCommand(input);
|
|
41
41
|
* const response = await client.send(command);
|
|
42
|
+
* // { // GetKeyPolicyResponse
|
|
43
|
+
* // Policy: "STRING_VALUE",
|
|
44
|
+
* // };
|
|
45
|
+
*
|
|
42
46
|
* ```
|
|
43
47
|
*
|
|
44
48
|
* @param GetKeyPolicyCommandInput - {@link GetKeyPolicyCommandInput}
|
|
@@ -81,6 +85,8 @@ export interface GetKeyPolicyCommandOutput extends GetKeyPolicyResponse, __Metad
|
|
|
81
85
|
* <p>The request was rejected because the specified entity or resource could not be
|
|
82
86
|
* found.</p>
|
|
83
87
|
*
|
|
88
|
+
* @throws {@link KMSServiceException}
|
|
89
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
84
90
|
*
|
|
85
91
|
* @example To retrieve a key policy
|
|
86
92
|
* ```javascript
|
|
@@ -83,6 +83,10 @@ export interface GetKeyRotationStatusCommandOutput extends GetKeyRotationStatusR
|
|
|
83
83
|
* };
|
|
84
84
|
* const command = new GetKeyRotationStatusCommand(input);
|
|
85
85
|
* const response = await client.send(command);
|
|
86
|
+
* // { // GetKeyRotationStatusResponse
|
|
87
|
+
* // KeyRotationEnabled: true || false,
|
|
88
|
+
* // };
|
|
89
|
+
*
|
|
86
90
|
* ```
|
|
87
91
|
*
|
|
88
92
|
* @param GetKeyRotationStatusCommandInput - {@link GetKeyRotationStatusCommandInput}
|
|
@@ -129,6 +133,8 @@ export interface GetKeyRotationStatusCommandOutput extends GetKeyRotationStatusR
|
|
|
129
133
|
* <p>The request was rejected because a specified parameter is not supported or a specified
|
|
130
134
|
* resource is not valid for this operation.</p>
|
|
131
135
|
*
|
|
136
|
+
* @throws {@link KMSServiceException}
|
|
137
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
132
138
|
*
|
|
133
139
|
* @example To retrieve the rotation status for a KMS key
|
|
134
140
|
* ```javascript
|
|
@@ -66,6 +66,13 @@ export interface GetParametersForImportCommandOutput extends GetParametersForImp
|
|
|
66
66
|
* };
|
|
67
67
|
* const command = new GetParametersForImportCommand(input);
|
|
68
68
|
* const response = await client.send(command);
|
|
69
|
+
* // { // GetParametersForImportResponse
|
|
70
|
+
* // KeyId: "STRING_VALUE",
|
|
71
|
+
* // ImportToken: "BLOB_VALUE",
|
|
72
|
+
* // PublicKey: "BLOB_VALUE",
|
|
73
|
+
* // ParametersValidTo: new Date("TIMESTAMP"),
|
|
74
|
+
* // };
|
|
75
|
+
*
|
|
69
76
|
* ```
|
|
70
77
|
*
|
|
71
78
|
* @param GetParametersForImportCommandInput - {@link GetParametersForImportCommandInput}
|
|
@@ -112,6 +119,8 @@ export interface GetParametersForImportCommandOutput extends GetParametersForImp
|
|
|
112
119
|
* <p>The request was rejected because a specified parameter is not supported or a specified
|
|
113
120
|
* resource is not valid for this operation.</p>
|
|
114
121
|
*
|
|
122
|
+
* @throws {@link KMSServiceException}
|
|
123
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
115
124
|
*
|
|
116
125
|
* @example To retrieve the public key and import token for a KMS key
|
|
117
126
|
* ```javascript
|
|
@@ -82,6 +82,20 @@ export interface GetPublicKeyCommandOutput extends GetPublicKeyResponse, __Metad
|
|
|
82
82
|
* };
|
|
83
83
|
* const command = new GetPublicKeyCommand(input);
|
|
84
84
|
* const response = await client.send(command);
|
|
85
|
+
* // { // GetPublicKeyResponse
|
|
86
|
+
* // KeyId: "STRING_VALUE",
|
|
87
|
+
* // PublicKey: "BLOB_VALUE",
|
|
88
|
+
* // CustomerMasterKeySpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SYMMETRIC_DEFAULT" || "HMAC_224" || "HMAC_256" || "HMAC_384" || "HMAC_512" || "SM2",
|
|
89
|
+
* // KeySpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SYMMETRIC_DEFAULT" || "HMAC_224" || "HMAC_256" || "HMAC_384" || "HMAC_512" || "SM2",
|
|
90
|
+
* // KeyUsage: "SIGN_VERIFY" || "ENCRYPT_DECRYPT" || "GENERATE_VERIFY_MAC",
|
|
91
|
+
* // EncryptionAlgorithms: [ // EncryptionAlgorithmSpecList
|
|
92
|
+
* // "SYMMETRIC_DEFAULT" || "RSAES_OAEP_SHA_1" || "RSAES_OAEP_SHA_256" || "SM2PKE",
|
|
93
|
+
* // ],
|
|
94
|
+
* // SigningAlgorithms: [ // SigningAlgorithmSpecList
|
|
95
|
+
* // "RSASSA_PSS_SHA_256" || "RSASSA_PSS_SHA_384" || "RSASSA_PSS_SHA_512" || "RSASSA_PKCS1_V1_5_SHA_256" || "RSASSA_PKCS1_V1_5_SHA_384" || "RSASSA_PKCS1_V1_5_SHA_512" || "ECDSA_SHA_256" || "ECDSA_SHA_384" || "ECDSA_SHA_512" || "SM2DSA",
|
|
96
|
+
* // ],
|
|
97
|
+
* // };
|
|
98
|
+
*
|
|
85
99
|
* ```
|
|
86
100
|
*
|
|
87
101
|
* @param GetPublicKeyCommandInput - {@link GetPublicKeyCommandInput}
|
|
@@ -159,6 +173,8 @@ export interface GetPublicKeyCommandOutput extends GetPublicKeyResponse, __Metad
|
|
|
159
173
|
* <p>The request was rejected because a specified parameter is not supported or a specified
|
|
160
174
|
* resource is not valid for this operation.</p>
|
|
161
175
|
*
|
|
176
|
+
* @throws {@link KMSServiceException}
|
|
177
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
162
178
|
*
|
|
163
179
|
* @example To download the public key of an asymmetric KMS key
|
|
164
180
|
* ```javascript
|
|
@@ -98,6 +98,8 @@ export interface ImportKeyMaterialCommandOutput extends ImportKeyMaterialRespons
|
|
|
98
98
|
* };
|
|
99
99
|
* const command = new ImportKeyMaterialCommand(input);
|
|
100
100
|
* const response = await client.send(command);
|
|
101
|
+
* // {};
|
|
102
|
+
*
|
|
101
103
|
* ```
|
|
102
104
|
*
|
|
103
105
|
* @param ImportKeyMaterialCommandInput - {@link ImportKeyMaterialCommandInput}
|
|
@@ -164,6 +166,8 @@ export interface ImportKeyMaterialCommandOutput extends ImportKeyMaterialRespons
|
|
|
164
166
|
* <p>The request was rejected because a specified parameter is not supported or a specified
|
|
165
167
|
* resource is not valid for this operation.</p>
|
|
166
168
|
*
|
|
169
|
+
* @throws {@link KMSServiceException}
|
|
170
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
167
171
|
*
|
|
168
172
|
* @example To import key material into a KMS key
|
|
169
173
|
* ```javascript
|
|
@@ -73,6 +73,20 @@ export interface ListAliasesCommandOutput extends ListAliasesResponse, __Metadat
|
|
|
73
73
|
* };
|
|
74
74
|
* const command = new ListAliasesCommand(input);
|
|
75
75
|
* const response = await client.send(command);
|
|
76
|
+
* // { // ListAliasesResponse
|
|
77
|
+
* // Aliases: [ // AliasList
|
|
78
|
+
* // { // AliasListEntry
|
|
79
|
+
* // AliasName: "STRING_VALUE",
|
|
80
|
+
* // AliasArn: "STRING_VALUE",
|
|
81
|
+
* // TargetKeyId: "STRING_VALUE",
|
|
82
|
+
* // CreationDate: new Date("TIMESTAMP"),
|
|
83
|
+
* // LastUpdatedDate: new Date("TIMESTAMP"),
|
|
84
|
+
* // },
|
|
85
|
+
* // ],
|
|
86
|
+
* // NextMarker: "STRING_VALUE",
|
|
87
|
+
* // Truncated: true || false,
|
|
88
|
+
* // };
|
|
89
|
+
*
|
|
76
90
|
* ```
|
|
77
91
|
*
|
|
78
92
|
* @param ListAliasesCommandInput - {@link ListAliasesCommandInput}
|
|
@@ -101,6 +115,8 @@ export interface ListAliasesCommandOutput extends ListAliasesResponse, __Metadat
|
|
|
101
115
|
* <p>The request was rejected because the specified entity or resource could not be
|
|
102
116
|
* found.</p>
|
|
103
117
|
*
|
|
118
|
+
* @throws {@link KMSServiceException}
|
|
119
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
104
120
|
*
|
|
105
121
|
* @example To list aliases
|
|
106
122
|
* ```javascript
|
|
@@ -79,6 +79,33 @@ export interface ListGrantsCommandOutput extends ListGrantsResponse, __MetadataB
|
|
|
79
79
|
* };
|
|
80
80
|
* const command = new ListGrantsCommand(input);
|
|
81
81
|
* const response = await client.send(command);
|
|
82
|
+
* // { // ListGrantsResponse
|
|
83
|
+
* // Grants: [ // GrantList
|
|
84
|
+
* // { // GrantListEntry
|
|
85
|
+
* // KeyId: "STRING_VALUE",
|
|
86
|
+
* // GrantId: "STRING_VALUE",
|
|
87
|
+
* // Name: "STRING_VALUE",
|
|
88
|
+
* // CreationDate: new Date("TIMESTAMP"),
|
|
89
|
+
* // GranteePrincipal: "STRING_VALUE",
|
|
90
|
+
* // RetiringPrincipal: "STRING_VALUE",
|
|
91
|
+
* // IssuingAccount: "STRING_VALUE",
|
|
92
|
+
* // Operations: [ // GrantOperationList
|
|
93
|
+
* // "Decrypt" || "Encrypt" || "GenerateDataKey" || "GenerateDataKeyWithoutPlaintext" || "ReEncryptFrom" || "ReEncryptTo" || "Sign" || "Verify" || "GetPublicKey" || "CreateGrant" || "RetireGrant" || "DescribeKey" || "GenerateDataKeyPair" || "GenerateDataKeyPairWithoutPlaintext" || "GenerateMac" || "VerifyMac",
|
|
94
|
+
* // ],
|
|
95
|
+
* // Constraints: { // GrantConstraints
|
|
96
|
+
* // EncryptionContextSubset: { // EncryptionContextType
|
|
97
|
+
* // "<keys>": "STRING_VALUE",
|
|
98
|
+
* // },
|
|
99
|
+
* // EncryptionContextEquals: {
|
|
100
|
+
* // "<keys>": "STRING_VALUE",
|
|
101
|
+
* // },
|
|
102
|
+
* // },
|
|
103
|
+
* // },
|
|
104
|
+
* // ],
|
|
105
|
+
* // NextMarker: "STRING_VALUE",
|
|
106
|
+
* // Truncated: true || false,
|
|
107
|
+
* // };
|
|
108
|
+
*
|
|
82
109
|
* ```
|
|
83
110
|
*
|
|
84
111
|
* @param ListGrantsCommandInput - {@link ListGrantsCommandInput}
|
|
@@ -128,6 +155,8 @@ export interface ListGrantsCommandOutput extends ListGrantsResponse, __MetadataB
|
|
|
128
155
|
* <p>The request was rejected because the specified entity or resource could not be
|
|
129
156
|
* found.</p>
|
|
130
157
|
*
|
|
158
|
+
* @throws {@link KMSServiceException}
|
|
159
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
131
160
|
*
|
|
132
161
|
* @example To list grants for a KMS key
|
|
133
162
|
* ```javascript
|
|
@@ -54,6 +54,14 @@ export interface ListKeyPoliciesCommandOutput extends ListKeyPoliciesResponse, _
|
|
|
54
54
|
* };
|
|
55
55
|
* const command = new ListKeyPoliciesCommand(input);
|
|
56
56
|
* const response = await client.send(command);
|
|
57
|
+
* // { // ListKeyPoliciesResponse
|
|
58
|
+
* // PolicyNames: [ // PolicyNameList
|
|
59
|
+
* // "STRING_VALUE",
|
|
60
|
+
* // ],
|
|
61
|
+
* // NextMarker: "STRING_VALUE",
|
|
62
|
+
* // Truncated: true || false,
|
|
63
|
+
* // };
|
|
64
|
+
*
|
|
57
65
|
* ```
|
|
58
66
|
*
|
|
59
67
|
* @param ListKeyPoliciesCommandInput - {@link ListKeyPoliciesCommandInput}
|
|
@@ -96,6 +104,8 @@ export interface ListKeyPoliciesCommandOutput extends ListKeyPoliciesResponse, _
|
|
|
96
104
|
* <p>The request was rejected because the specified entity or resource could not be
|
|
97
105
|
* found.</p>
|
|
98
106
|
*
|
|
107
|
+
* @throws {@link KMSServiceException}
|
|
108
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
99
109
|
*
|
|
100
110
|
* @example To list key policies for a KMS key
|
|
101
111
|
* ```javascript
|
|
@@ -61,6 +61,17 @@ export interface ListKeysCommandOutput extends ListKeysResponse, __MetadataBeare
|
|
|
61
61
|
* };
|
|
62
62
|
* const command = new ListKeysCommand(input);
|
|
63
63
|
* const response = await client.send(command);
|
|
64
|
+
* // { // ListKeysResponse
|
|
65
|
+
* // Keys: [ // KeyList
|
|
66
|
+
* // { // KeyListEntry
|
|
67
|
+
* // KeyId: "STRING_VALUE",
|
|
68
|
+
* // KeyArn: "STRING_VALUE",
|
|
69
|
+
* // },
|
|
70
|
+
* // ],
|
|
71
|
+
* // NextMarker: "STRING_VALUE",
|
|
72
|
+
* // Truncated: true || false,
|
|
73
|
+
* // };
|
|
74
|
+
*
|
|
64
75
|
* ```
|
|
65
76
|
*
|
|
66
77
|
* @param ListKeysCommandInput - {@link ListKeysCommandInput}
|
|
@@ -81,6 +92,8 @@ export interface ListKeysCommandOutput extends ListKeysResponse, __MetadataBeare
|
|
|
81
92
|
* <p>The request was rejected because an internal exception occurred. The request can be
|
|
82
93
|
* retried.</p>
|
|
83
94
|
*
|
|
95
|
+
* @throws {@link KMSServiceException}
|
|
96
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
84
97
|
*
|
|
85
98
|
* @example To list KMS keys
|
|
86
99
|
* ```javascript
|
|
@@ -66,6 +66,17 @@ export interface ListResourceTagsCommandOutput extends ListResourceTagsResponse,
|
|
|
66
66
|
* };
|
|
67
67
|
* const command = new ListResourceTagsCommand(input);
|
|
68
68
|
* const response = await client.send(command);
|
|
69
|
+
* // { // ListResourceTagsResponse
|
|
70
|
+
* // Tags: [ // TagList
|
|
71
|
+
* // { // Tag
|
|
72
|
+
* // TagKey: "STRING_VALUE", // required
|
|
73
|
+
* // TagValue: "STRING_VALUE", // required
|
|
74
|
+
* // },
|
|
75
|
+
* // ],
|
|
76
|
+
* // NextMarker: "STRING_VALUE",
|
|
77
|
+
* // Truncated: true || false,
|
|
78
|
+
* // };
|
|
79
|
+
*
|
|
69
80
|
* ```
|
|
70
81
|
*
|
|
71
82
|
* @param ListResourceTagsCommandInput - {@link ListResourceTagsCommandInput}
|
|
@@ -90,6 +101,8 @@ export interface ListResourceTagsCommandOutput extends ListResourceTagsResponse,
|
|
|
90
101
|
* <p>The request was rejected because the specified entity or resource could not be
|
|
91
102
|
* found.</p>
|
|
92
103
|
*
|
|
104
|
+
* @throws {@link KMSServiceException}
|
|
105
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
93
106
|
*
|
|
94
107
|
* @example To list tags for a KMS key
|
|
95
108
|
* ```javascript
|
|
@@ -75,6 +75,33 @@ export interface ListRetirableGrantsCommandOutput extends ListGrantsResponse, __
|
|
|
75
75
|
* };
|
|
76
76
|
* const command = new ListRetirableGrantsCommand(input);
|
|
77
77
|
* const response = await client.send(command);
|
|
78
|
+
* // { // ListGrantsResponse
|
|
79
|
+
* // Grants: [ // GrantList
|
|
80
|
+
* // { // GrantListEntry
|
|
81
|
+
* // KeyId: "STRING_VALUE",
|
|
82
|
+
* // GrantId: "STRING_VALUE",
|
|
83
|
+
* // Name: "STRING_VALUE",
|
|
84
|
+
* // CreationDate: new Date("TIMESTAMP"),
|
|
85
|
+
* // GranteePrincipal: "STRING_VALUE",
|
|
86
|
+
* // RetiringPrincipal: "STRING_VALUE",
|
|
87
|
+
* // IssuingAccount: "STRING_VALUE",
|
|
88
|
+
* // Operations: [ // GrantOperationList
|
|
89
|
+
* // "Decrypt" || "Encrypt" || "GenerateDataKey" || "GenerateDataKeyWithoutPlaintext" || "ReEncryptFrom" || "ReEncryptTo" || "Sign" || "Verify" || "GetPublicKey" || "CreateGrant" || "RetireGrant" || "DescribeKey" || "GenerateDataKeyPair" || "GenerateDataKeyPairWithoutPlaintext" || "GenerateMac" || "VerifyMac",
|
|
90
|
+
* // ],
|
|
91
|
+
* // Constraints: { // GrantConstraints
|
|
92
|
+
* // EncryptionContextSubset: { // EncryptionContextType
|
|
93
|
+
* // "<keys>": "STRING_VALUE",
|
|
94
|
+
* // },
|
|
95
|
+
* // EncryptionContextEquals: {
|
|
96
|
+
* // "<keys>": "STRING_VALUE",
|
|
97
|
+
* // },
|
|
98
|
+
* // },
|
|
99
|
+
* // },
|
|
100
|
+
* // ],
|
|
101
|
+
* // NextMarker: "STRING_VALUE",
|
|
102
|
+
* // Truncated: true || false,
|
|
103
|
+
* // };
|
|
104
|
+
*
|
|
78
105
|
* ```
|
|
79
106
|
*
|
|
80
107
|
* @param ListRetirableGrantsCommandInput - {@link ListRetirableGrantsCommandInput}
|
|
@@ -103,6 +130,8 @@ export interface ListRetirableGrantsCommandOutput extends ListGrantsResponse, __
|
|
|
103
130
|
* <p>The request was rejected because the specified entity or resource could not be
|
|
104
131
|
* found.</p>
|
|
105
132
|
*
|
|
133
|
+
* @throws {@link KMSServiceException}
|
|
134
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
106
135
|
*
|
|
107
136
|
* @example To list grants that the specified principal can retire
|
|
108
137
|
* ```javascript
|
|
@@ -46,6 +46,8 @@ export interface PutKeyPolicyCommandOutput extends __MetadataBearer {
|
|
|
46
46
|
* };
|
|
47
47
|
* const command = new PutKeyPolicyCommand(input);
|
|
48
48
|
* const response = await client.send(command);
|
|
49
|
+
* // {};
|
|
50
|
+
*
|
|
49
51
|
* ```
|
|
50
52
|
*
|
|
51
53
|
* @param PutKeyPolicyCommandInput - {@link PutKeyPolicyCommandInput}
|
|
@@ -100,6 +102,8 @@ export interface PutKeyPolicyCommandOutput extends __MetadataBearer {
|
|
|
100
102
|
* <p>The request was rejected because a specified parameter is not supported or a specified
|
|
101
103
|
* resource is not valid for this operation.</p>
|
|
102
104
|
*
|
|
105
|
+
* @throws {@link KMSServiceException}
|
|
106
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
103
107
|
*
|
|
104
108
|
* @example To attach a key policy to a KMS key
|
|
105
109
|
* ```javascript
|
|
@@ -138,6 +138,14 @@ export interface ReEncryptCommandOutput extends ReEncryptResponse, __MetadataBea
|
|
|
138
138
|
* };
|
|
139
139
|
* const command = new ReEncryptCommand(input);
|
|
140
140
|
* const response = await client.send(command);
|
|
141
|
+
* // { // ReEncryptResponse
|
|
142
|
+
* // CiphertextBlob: "BLOB_VALUE",
|
|
143
|
+
* // SourceKeyId: "STRING_VALUE",
|
|
144
|
+
* // KeyId: "STRING_VALUE",
|
|
145
|
+
* // SourceEncryptionAlgorithm: "SYMMETRIC_DEFAULT" || "RSAES_OAEP_SHA_1" || "RSAES_OAEP_SHA_256" || "SM2PKE",
|
|
146
|
+
* // DestinationEncryptionAlgorithm: "SYMMETRIC_DEFAULT" || "RSAES_OAEP_SHA_1" || "RSAES_OAEP_SHA_256" || "SM2PKE",
|
|
147
|
+
* // };
|
|
148
|
+
*
|
|
141
149
|
* ```
|
|
142
150
|
*
|
|
143
151
|
* @param ReEncryptCommandInput - {@link ReEncryptCommandInput}
|
|
@@ -221,6 +229,8 @@ export interface ReEncryptCommandOutput extends ReEncryptResponse, __MetadataBea
|
|
|
221
229
|
* <p>The request was rejected because the specified entity or resource could not be
|
|
222
230
|
* found.</p>
|
|
223
231
|
*
|
|
232
|
+
* @throws {@link KMSServiceException}
|
|
233
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
224
234
|
*
|
|
225
235
|
* @example To reencrypt data
|
|
226
236
|
* ```javascript
|
|
@@ -123,6 +123,62 @@ export interface ReplicateKeyCommandOutput extends ReplicateKeyResponse, __Metad
|
|
|
123
123
|
* };
|
|
124
124
|
* const command = new ReplicateKeyCommand(input);
|
|
125
125
|
* const response = await client.send(command);
|
|
126
|
+
* // { // ReplicateKeyResponse
|
|
127
|
+
* // ReplicaKeyMetadata: { // KeyMetadata
|
|
128
|
+
* // AWSAccountId: "STRING_VALUE",
|
|
129
|
+
* // KeyId: "STRING_VALUE", // required
|
|
130
|
+
* // Arn: "STRING_VALUE",
|
|
131
|
+
* // CreationDate: new Date("TIMESTAMP"),
|
|
132
|
+
* // Enabled: true || false,
|
|
133
|
+
* // Description: "STRING_VALUE",
|
|
134
|
+
* // KeyUsage: "SIGN_VERIFY" || "ENCRYPT_DECRYPT" || "GENERATE_VERIFY_MAC",
|
|
135
|
+
* // KeyState: "Creating" || "Enabled" || "Disabled" || "PendingDeletion" || "PendingImport" || "PendingReplicaDeletion" || "Unavailable" || "Updating",
|
|
136
|
+
* // DeletionDate: new Date("TIMESTAMP"),
|
|
137
|
+
* // ValidTo: new Date("TIMESTAMP"),
|
|
138
|
+
* // Origin: "AWS_KMS" || "EXTERNAL" || "AWS_CLOUDHSM" || "EXTERNAL_KEY_STORE",
|
|
139
|
+
* // CustomKeyStoreId: "STRING_VALUE",
|
|
140
|
+
* // CloudHsmClusterId: "STRING_VALUE",
|
|
141
|
+
* // ExpirationModel: "KEY_MATERIAL_EXPIRES" || "KEY_MATERIAL_DOES_NOT_EXPIRE",
|
|
142
|
+
* // KeyManager: "AWS" || "CUSTOMER",
|
|
143
|
+
* // CustomerMasterKeySpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SYMMETRIC_DEFAULT" || "HMAC_224" || "HMAC_256" || "HMAC_384" || "HMAC_512" || "SM2",
|
|
144
|
+
* // KeySpec: "RSA_2048" || "RSA_3072" || "RSA_4096" || "ECC_NIST_P256" || "ECC_NIST_P384" || "ECC_NIST_P521" || "ECC_SECG_P256K1" || "SYMMETRIC_DEFAULT" || "HMAC_224" || "HMAC_256" || "HMAC_384" || "HMAC_512" || "SM2",
|
|
145
|
+
* // EncryptionAlgorithms: [ // EncryptionAlgorithmSpecList
|
|
146
|
+
* // "SYMMETRIC_DEFAULT" || "RSAES_OAEP_SHA_1" || "RSAES_OAEP_SHA_256" || "SM2PKE",
|
|
147
|
+
* // ],
|
|
148
|
+
* // SigningAlgorithms: [ // SigningAlgorithmSpecList
|
|
149
|
+
* // "RSASSA_PSS_SHA_256" || "RSASSA_PSS_SHA_384" || "RSASSA_PSS_SHA_512" || "RSASSA_PKCS1_V1_5_SHA_256" || "RSASSA_PKCS1_V1_5_SHA_384" || "RSASSA_PKCS1_V1_5_SHA_512" || "ECDSA_SHA_256" || "ECDSA_SHA_384" || "ECDSA_SHA_512" || "SM2DSA",
|
|
150
|
+
* // ],
|
|
151
|
+
* // MultiRegion: true || false,
|
|
152
|
+
* // MultiRegionConfiguration: { // MultiRegionConfiguration
|
|
153
|
+
* // MultiRegionKeyType: "PRIMARY" || "REPLICA",
|
|
154
|
+
* // PrimaryKey: { // MultiRegionKey
|
|
155
|
+
* // Arn: "STRING_VALUE",
|
|
156
|
+
* // Region: "STRING_VALUE",
|
|
157
|
+
* // },
|
|
158
|
+
* // ReplicaKeys: [ // MultiRegionKeyList
|
|
159
|
+
* // {
|
|
160
|
+
* // Arn: "STRING_VALUE",
|
|
161
|
+
* // Region: "STRING_VALUE",
|
|
162
|
+
* // },
|
|
163
|
+
* // ],
|
|
164
|
+
* // },
|
|
165
|
+
* // PendingDeletionWindowInDays: Number("int"),
|
|
166
|
+
* // MacAlgorithms: [ // MacAlgorithmSpecList
|
|
167
|
+
* // "HMAC_SHA_224" || "HMAC_SHA_256" || "HMAC_SHA_384" || "HMAC_SHA_512",
|
|
168
|
+
* // ],
|
|
169
|
+
* // XksKeyConfiguration: { // XksKeyConfigurationType
|
|
170
|
+
* // Id: "STRING_VALUE",
|
|
171
|
+
* // },
|
|
172
|
+
* // },
|
|
173
|
+
* // ReplicaPolicy: "STRING_VALUE",
|
|
174
|
+
* // ReplicaTags: [ // TagList
|
|
175
|
+
* // { // Tag
|
|
176
|
+
* // TagKey: "STRING_VALUE", // required
|
|
177
|
+
* // TagValue: "STRING_VALUE", // required
|
|
178
|
+
* // },
|
|
179
|
+
* // ],
|
|
180
|
+
* // };
|
|
181
|
+
*
|
|
126
182
|
* ```
|
|
127
183
|
*
|
|
128
184
|
* @param ReplicateKeyCommandInput - {@link ReplicateKeyCommandInput}
|
|
@@ -183,6 +239,8 @@ export interface ReplicateKeyCommandOutput extends ReplicateKeyResponse, __Metad
|
|
|
183
239
|
* <p>The request was rejected because a specified parameter is not supported or a specified
|
|
184
240
|
* resource is not valid for this operation.</p>
|
|
185
241
|
*
|
|
242
|
+
* @throws {@link KMSServiceException}
|
|
243
|
+
* <p>Base exception class for all service exceptions from KMS service.</p>
|
|
186
244
|
*
|
|
187
245
|
* @example To replicate a multi-Region key in a different AWS Region
|
|
188
246
|
* ```javascript
|