@aws-sdk/client-kms 3.50.0 → 3.53.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 (80) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/KMSServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +433 -3
  5. package/dist-cjs/protocols/Aws_json1_1.js +624 -2521
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/KMSServiceException.js +12 -0
  8. package/dist-es/models/models_0.js +398 -1
  9. package/dist-es/protocols/Aws_json1_1.js +1320 -2648
  10. package/dist-types/index.d.ts +1 -0
  11. package/dist-types/models/KMSServiceException.d.ts +10 -0
  12. package/dist-types/models/models_0.d.ts +233 -133
  13. package/dist-types/ts3.4/KMS.d.ts +245 -0
  14. package/dist-types/ts3.4/KMSClient.d.ts +121 -0
  15. package/dist-types/ts3.4/commands/CancelKeyDeletionCommand.d.ts +17 -0
  16. package/dist-types/ts3.4/commands/ConnectCustomKeyStoreCommand.d.ts +17 -0
  17. package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +17 -0
  18. package/dist-types/ts3.4/commands/CreateCustomKeyStoreCommand.d.ts +17 -0
  19. package/dist-types/ts3.4/commands/CreateGrantCommand.d.ts +17 -0
  20. package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +17 -0
  21. package/dist-types/ts3.4/commands/DecryptCommand.d.ts +17 -0
  22. package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +17 -0
  23. package/dist-types/ts3.4/commands/DeleteCustomKeyStoreCommand.d.ts +17 -0
  24. package/dist-types/ts3.4/commands/DeleteImportedKeyMaterialCommand.d.ts +17 -0
  25. package/dist-types/ts3.4/commands/DescribeCustomKeyStoresCommand.d.ts +17 -0
  26. package/dist-types/ts3.4/commands/DescribeKeyCommand.d.ts +17 -0
  27. package/dist-types/ts3.4/commands/DisableKeyCommand.d.ts +17 -0
  28. package/dist-types/ts3.4/commands/DisableKeyRotationCommand.d.ts +17 -0
  29. package/dist-types/ts3.4/commands/DisconnectCustomKeyStoreCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/EnableKeyCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/EnableKeyRotationCommand.d.ts +17 -0
  32. package/dist-types/ts3.4/commands/EncryptCommand.d.ts +17 -0
  33. package/dist-types/ts3.4/commands/GenerateDataKeyCommand.d.ts +17 -0
  34. package/dist-types/ts3.4/commands/GenerateDataKeyPairCommand.d.ts +17 -0
  35. package/dist-types/ts3.4/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +17 -0
  36. package/dist-types/ts3.4/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +17 -0
  37. package/dist-types/ts3.4/commands/GenerateRandomCommand.d.ts +17 -0
  38. package/dist-types/ts3.4/commands/GetKeyPolicyCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/GetKeyRotationStatusCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/GetPublicKeyCommand.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/ImportKeyMaterialCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/ListGrantsCommand.d.ts +17 -0
  45. package/dist-types/ts3.4/commands/ListKeyPoliciesCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/ListResourceTagsCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/ListRetirableGrantsCommand.d.ts +17 -0
  49. package/dist-types/ts3.4/commands/PutKeyPolicyCommand.d.ts +17 -0
  50. package/dist-types/ts3.4/commands/ReEncryptCommand.d.ts +17 -0
  51. package/dist-types/ts3.4/commands/ReplicateKeyCommand.d.ts +17 -0
  52. package/dist-types/ts3.4/commands/RetireGrantCommand.d.ts +17 -0
  53. package/dist-types/ts3.4/commands/RevokeGrantCommand.d.ts +17 -0
  54. package/dist-types/ts3.4/commands/ScheduleKeyDeletionCommand.d.ts +17 -0
  55. package/dist-types/ts3.4/commands/SignCommand.d.ts +17 -0
  56. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  57. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  58. package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +17 -0
  59. package/dist-types/ts3.4/commands/UpdateCustomKeyStoreCommand.d.ts +17 -0
  60. package/dist-types/ts3.4/commands/UpdateKeyDescriptionCommand.d.ts +17 -0
  61. package/dist-types/ts3.4/commands/UpdatePrimaryRegionCommand.d.ts +17 -0
  62. package/dist-types/ts3.4/commands/VerifyCommand.d.ts +17 -0
  63. package/dist-types/ts3.4/commands/index.d.ts +48 -0
  64. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  65. package/dist-types/ts3.4/index.d.ts +6 -0
  66. package/dist-types/ts3.4/models/KMSServiceException.d.ts +6 -0
  67. package/dist-types/ts3.4/models/index.d.ts +1 -0
  68. package/dist-types/ts3.4/models/models_0.d.ts +1484 -0
  69. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  70. package/dist-types/ts3.4/pagination/ListAliasesPaginator.d.ts +4 -0
  71. package/dist-types/ts3.4/pagination/ListGrantsPaginator.d.ts +4 -0
  72. package/dist-types/ts3.4/pagination/ListKeyPoliciesPaginator.d.ts +4 -0
  73. package/dist-types/ts3.4/pagination/ListKeysPaginator.d.ts +4 -0
  74. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  75. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +146 -0
  76. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  77. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  78. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  79. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  80. package/package.json +33 -33
@@ -3,3 +3,4 @@ export * from "./KMSClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { KMSServiceException } from "./models/KMSServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from KMS service.
4
+ */
5
+ export declare class KMSServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { KMSServiceException as __BaseException } from "./KMSServiceException";
2
3
  export declare enum AlgorithmSpec {
3
4
  RSAES_OAEP_SHA_1 = "RSAES_OAEP_SHA_1",
4
5
  RSAES_OAEP_SHA_256 = "RSAES_OAEP_SHA_256",
@@ -41,10 +42,13 @@ export declare namespace AliasListEntry {
41
42
  * <p>The request was rejected because it attempted to create a resource that already
42
43
  * exists.</p>
43
44
  */
44
- export interface AlreadyExistsException extends __SmithyException, $MetadataBearer {
45
- name: "AlreadyExistsException";
46
- $fault: "client";
47
- message?: string;
45
+ export declare class AlreadyExistsException extends __BaseException {
46
+ readonly name: "AlreadyExistsException";
47
+ readonly $fault: "client";
48
+ /**
49
+ * @internal
50
+ */
51
+ constructor(opts: __ExceptionOptionType<AlreadyExistsException, __BaseException>);
48
52
  }
49
53
  export interface CancelKeyDeletionRequest {
50
54
  /**
@@ -88,28 +92,37 @@ export declare namespace CancelKeyDeletionResponse {
88
92
  * <p>The system timed out while trying to fulfill the request. The request can be
89
93
  * retried.</p>
90
94
  */
91
- export interface DependencyTimeoutException extends __SmithyException, $MetadataBearer {
92
- name: "DependencyTimeoutException";
93
- $fault: "server";
94
- message?: string;
95
+ export declare class DependencyTimeoutException extends __BaseException {
96
+ readonly name: "DependencyTimeoutException";
97
+ readonly $fault: "server";
98
+ /**
99
+ * @internal
100
+ */
101
+ constructor(opts: __ExceptionOptionType<DependencyTimeoutException, __BaseException>);
95
102
  }
96
103
  /**
97
104
  * <p>The request was rejected because a specified ARN, or an ARN in a key policy, is not
98
105
  * valid.</p>
99
106
  */
100
- export interface InvalidArnException extends __SmithyException, $MetadataBearer {
101
- name: "InvalidArnException";
102
- $fault: "client";
103
- message?: string;
107
+ export declare class InvalidArnException extends __BaseException {
108
+ readonly name: "InvalidArnException";
109
+ readonly $fault: "client";
110
+ /**
111
+ * @internal
112
+ */
113
+ constructor(opts: __ExceptionOptionType<InvalidArnException, __BaseException>);
104
114
  }
105
115
  /**
106
116
  * <p>The request was rejected because an internal exception occurred. The request can be
107
117
  * retried.</p>
108
118
  */
109
- export interface KMSInternalException extends __SmithyException, $MetadataBearer {
110
- name: "KMSInternalException";
111
- $fault: "server";
112
- message?: string;
119
+ export declare class KMSInternalException extends __BaseException {
120
+ readonly name: "KMSInternalException";
121
+ readonly $fault: "server";
122
+ /**
123
+ * @internal
124
+ */
125
+ constructor(opts: __ExceptionOptionType<KMSInternalException, __BaseException>);
113
126
  }
114
127
  /**
115
128
  * <p>The request was rejected because the state of the specified resource is not valid for this
@@ -119,19 +132,25 @@ export interface KMSInternalException extends __SmithyException, $MetadataBearer
119
132
  * <i>Key Management Service Developer Guide</i>
120
133
  * </i>.</p>
121
134
  */
122
- export interface KMSInvalidStateException extends __SmithyException, $MetadataBearer {
123
- name: "KMSInvalidStateException";
124
- $fault: "client";
125
- message?: string;
135
+ export declare class KMSInvalidStateException extends __BaseException {
136
+ readonly name: "KMSInvalidStateException";
137
+ readonly $fault: "client";
138
+ /**
139
+ * @internal
140
+ */
141
+ constructor(opts: __ExceptionOptionType<KMSInvalidStateException, __BaseException>);
126
142
  }
127
143
  /**
128
144
  * <p>The request was rejected because the specified entity or resource could not be
129
145
  * found.</p>
130
146
  */
131
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
132
- name: "NotFoundException";
133
- $fault: "client";
134
- message?: string;
147
+ export declare class NotFoundException extends __BaseException {
148
+ readonly name: "NotFoundException";
149
+ readonly $fault: "client";
150
+ /**
151
+ * @internal
152
+ */
153
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
135
154
  }
136
155
  /**
137
156
  * <p>The request was rejected because the specified CloudHSM cluster is already associated with a
@@ -140,10 +159,13 @@ export interface NotFoundException extends __SmithyException, $MetadataBearer {
140
159
  * <p>Clusters that share a backup history have the same cluster certificate. To view the
141
160
  * cluster certificate of a cluster, use the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">DescribeClusters</a> operation.</p>
142
161
  */
143
- export interface CloudHsmClusterInUseException extends __SmithyException, $MetadataBearer {
144
- name: "CloudHsmClusterInUseException";
145
- $fault: "client";
146
- message?: string;
162
+ export declare class CloudHsmClusterInUseException extends __BaseException {
163
+ readonly name: "CloudHsmClusterInUseException";
164
+ readonly $fault: "client";
165
+ /**
166
+ * @internal
167
+ */
168
+ constructor(opts: __ExceptionOptionType<CloudHsmClusterInUseException, __BaseException>);
147
169
  }
148
170
  /**
149
171
  * <p>The request was rejected because the associated CloudHSM cluster did not meet the
@@ -180,29 +202,38 @@ export interface CloudHsmClusterInUseException extends __SmithyException, $Metad
180
202
  * <i>CloudHSM User Guide</i>
181
203
  * </i>. </p>
182
204
  */
183
- export interface CloudHsmClusterInvalidConfigurationException extends __SmithyException, $MetadataBearer {
184
- name: "CloudHsmClusterInvalidConfigurationException";
185
- $fault: "client";
186
- message?: string;
205
+ export declare class CloudHsmClusterInvalidConfigurationException extends __BaseException {
206
+ readonly name: "CloudHsmClusterInvalidConfigurationException";
207
+ readonly $fault: "client";
208
+ /**
209
+ * @internal
210
+ */
211
+ constructor(opts: __ExceptionOptionType<CloudHsmClusterInvalidConfigurationException, __BaseException>);
187
212
  }
188
213
  /**
189
214
  * <p>The request was rejected because the CloudHSM cluster that is associated with the custom key
190
215
  * store is not active. Initialize and activate the cluster and try the command again. For
191
216
  * detailed instructions, see <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html">Getting Started</a> in the <i>CloudHSM User Guide</i>.</p>
192
217
  */
193
- export interface CloudHsmClusterNotActiveException extends __SmithyException, $MetadataBearer {
194
- name: "CloudHsmClusterNotActiveException";
195
- $fault: "client";
196
- message?: string;
218
+ export declare class CloudHsmClusterNotActiveException extends __BaseException {
219
+ readonly name: "CloudHsmClusterNotActiveException";
220
+ readonly $fault: "client";
221
+ /**
222
+ * @internal
223
+ */
224
+ constructor(opts: __ExceptionOptionType<CloudHsmClusterNotActiveException, __BaseException>);
197
225
  }
198
226
  /**
199
227
  * <p>The request was rejected because KMS cannot find the CloudHSM cluster with the specified
200
228
  * cluster ID. Retry the request with a different cluster ID.</p>
201
229
  */
202
- export interface CloudHsmClusterNotFoundException extends __SmithyException, $MetadataBearer {
203
- name: "CloudHsmClusterNotFoundException";
204
- $fault: "client";
205
- message?: string;
230
+ export declare class CloudHsmClusterNotFoundException extends __BaseException {
231
+ readonly name: "CloudHsmClusterNotFoundException";
232
+ readonly $fault: "client";
233
+ /**
234
+ * @internal
235
+ */
236
+ constructor(opts: __ExceptionOptionType<CloudHsmClusterNotFoundException, __BaseException>);
206
237
  }
207
238
  /**
208
239
  * <p>The request was rejected because the specified CloudHSM cluster has a different cluster
@@ -214,10 +245,13 @@ export interface CloudHsmClusterNotFoundException extends __SmithyException, $Me
214
245
  * <p>Clusters that share a backup history have the same cluster certificate. To view the
215
246
  * cluster certificate of a cluster, use the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html">DescribeClusters</a> operation.</p>
216
247
  */
217
- export interface CloudHsmClusterNotRelatedException extends __SmithyException, $MetadataBearer {
218
- name: "CloudHsmClusterNotRelatedException";
219
- $fault: "client";
220
- message?: string;
248
+ export declare class CloudHsmClusterNotRelatedException extends __BaseException {
249
+ readonly name: "CloudHsmClusterNotRelatedException";
250
+ readonly $fault: "client";
251
+ /**
252
+ * @internal
253
+ */
254
+ constructor(opts: __ExceptionOptionType<CloudHsmClusterNotRelatedException, __BaseException>);
221
255
  }
222
256
  export interface ConnectCustomKeyStoreRequest {
223
257
  /**
@@ -263,19 +297,25 @@ export declare namespace ConnectCustomKeyStoreResponse {
263
297
  * </li>
264
298
  * </ul>
265
299
  */
266
- export interface CustomKeyStoreInvalidStateException extends __SmithyException, $MetadataBearer {
267
- name: "CustomKeyStoreInvalidStateException";
268
- $fault: "client";
269
- message?: string;
300
+ export declare class CustomKeyStoreInvalidStateException extends __BaseException {
301
+ readonly name: "CustomKeyStoreInvalidStateException";
302
+ readonly $fault: "client";
303
+ /**
304
+ * @internal
305
+ */
306
+ constructor(opts: __ExceptionOptionType<CustomKeyStoreInvalidStateException, __BaseException>);
270
307
  }
271
308
  /**
272
309
  * <p>The request was rejected because KMS cannot find a custom key store with the specified
273
310
  * key store name or ID.</p>
274
311
  */
275
- export interface CustomKeyStoreNotFoundException extends __SmithyException, $MetadataBearer {
276
- name: "CustomKeyStoreNotFoundException";
277
- $fault: "client";
278
- message?: string;
312
+ export declare class CustomKeyStoreNotFoundException extends __BaseException {
313
+ readonly name: "CustomKeyStoreNotFoundException";
314
+ readonly $fault: "client";
315
+ /**
316
+ * @internal
317
+ */
318
+ constructor(opts: __ExceptionOptionType<CustomKeyStoreNotFoundException, __BaseException>);
279
319
  }
280
320
  export declare enum ConnectionErrorCodeType {
281
321
  CLUSTER_NOT_FOUND = "CLUSTER_NOT_FOUND",
@@ -340,19 +380,25 @@ export declare namespace CreateAliasRequest {
340
380
  /**
341
381
  * <p>The request was rejected because the specified alias name is not valid.</p>
342
382
  */
343
- export interface InvalidAliasNameException extends __SmithyException, $MetadataBearer {
344
- name: "InvalidAliasNameException";
345
- $fault: "client";
346
- message?: string;
383
+ export declare class InvalidAliasNameException extends __BaseException {
384
+ readonly name: "InvalidAliasNameException";
385
+ readonly $fault: "client";
386
+ /**
387
+ * @internal
388
+ */
389
+ constructor(opts: __ExceptionOptionType<InvalidAliasNameException, __BaseException>);
347
390
  }
348
391
  /**
349
392
  * <p>The request was rejected because a quota was exceeded. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html">Quotas</a> in the
350
393
  * <i>Key Management Service Developer Guide</i>.</p>
351
394
  */
352
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
353
- name: "LimitExceededException";
354
- $fault: "client";
355
- message?: string;
395
+ export declare class LimitExceededException extends __BaseException {
396
+ readonly name: "LimitExceededException";
397
+ readonly $fault: "client";
398
+ /**
399
+ * @internal
400
+ */
401
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
356
402
  }
357
403
  export interface CreateCustomKeyStoreRequest {
358
404
  /**
@@ -405,10 +451,13 @@ export declare namespace CreateCustomKeyStoreResponse {
405
451
  * to another custom key store in the account. Try again with a custom key store name that is
406
452
  * unique in the account.</p>
407
453
  */
408
- export interface CustomKeyStoreNameInUseException extends __SmithyException, $MetadataBearer {
409
- name: "CustomKeyStoreNameInUseException";
410
- $fault: "client";
411
- message?: string;
454
+ export declare class CustomKeyStoreNameInUseException extends __BaseException {
455
+ readonly name: "CustomKeyStoreNameInUseException";
456
+ readonly $fault: "client";
457
+ /**
458
+ * @internal
459
+ */
460
+ constructor(opts: __ExceptionOptionType<CustomKeyStoreNameInUseException, __BaseException>);
412
461
  }
413
462
  /**
414
463
  * <p>The request was rejected because the trust anchor certificate in the request is not the
@@ -416,10 +465,13 @@ export interface CustomKeyStoreNameInUseException extends __SmithyException, $Me
416
465
  * <p>When you <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr">initialize the cluster</a>, you create the trust anchor certificate and save it in the
417
466
  * <code>customerCA.crt</code> file.</p>
418
467
  */
419
- export interface IncorrectTrustAnchorException extends __SmithyException, $MetadataBearer {
420
- name: "IncorrectTrustAnchorException";
421
- $fault: "client";
422
- message?: string;
468
+ export declare class IncorrectTrustAnchorException extends __BaseException {
469
+ readonly name: "IncorrectTrustAnchorException";
470
+ readonly $fault: "client";
471
+ /**
472
+ * @internal
473
+ */
474
+ constructor(opts: __ExceptionOptionType<IncorrectTrustAnchorException, __BaseException>);
423
475
  }
424
476
  /**
425
477
  * <p>Use this structure to allow <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic operations</a> in the grant only when the operation request
@@ -605,18 +657,24 @@ export declare namespace CreateGrantResponse {
605
657
  /**
606
658
  * <p>The request was rejected because the specified KMS key is not enabled.</p>
607
659
  */
608
- export interface DisabledException extends __SmithyException, $MetadataBearer {
609
- name: "DisabledException";
610
- $fault: "client";
611
- message?: string;
660
+ export declare class DisabledException extends __BaseException {
661
+ readonly name: "DisabledException";
662
+ readonly $fault: "client";
663
+ /**
664
+ * @internal
665
+ */
666
+ constructor(opts: __ExceptionOptionType<DisabledException, __BaseException>);
612
667
  }
613
668
  /**
614
669
  * <p>The request was rejected because the specified grant token is not valid.</p>
615
670
  */
616
- export interface InvalidGrantTokenException extends __SmithyException, $MetadataBearer {
617
- name: "InvalidGrantTokenException";
618
- $fault: "client";
619
- message?: string;
671
+ export declare class InvalidGrantTokenException extends __BaseException {
672
+ readonly name: "InvalidGrantTokenException";
673
+ readonly $fault: "client";
674
+ /**
675
+ * @internal
676
+ */
677
+ constructor(opts: __ExceptionOptionType<InvalidGrantTokenException, __BaseException>);
620
678
  }
621
679
  export declare enum CustomerMasterKeySpec {
622
680
  ECC_NIST_P256 = "ECC_NIST_P256",
@@ -1174,27 +1232,36 @@ export declare namespace CreateKeyResponse {
1174
1232
  * <p>The request was rejected because the specified policy is not syntactically or semantically
1175
1233
  * correct.</p>
1176
1234
  */
1177
- export interface MalformedPolicyDocumentException extends __SmithyException, $MetadataBearer {
1178
- name: "MalformedPolicyDocumentException";
1179
- $fault: "client";
1180
- message?: string;
1235
+ export declare class MalformedPolicyDocumentException extends __BaseException {
1236
+ readonly name: "MalformedPolicyDocumentException";
1237
+ readonly $fault: "client";
1238
+ /**
1239
+ * @internal
1240
+ */
1241
+ constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
1181
1242
  }
1182
1243
  /**
1183
1244
  * <p>The request was rejected because one or more tags are not valid.</p>
1184
1245
  */
1185
- export interface TagException extends __SmithyException, $MetadataBearer {
1186
- name: "TagException";
1187
- $fault: "client";
1188
- message?: string;
1246
+ export declare class TagException extends __BaseException {
1247
+ readonly name: "TagException";
1248
+ readonly $fault: "client";
1249
+ /**
1250
+ * @internal
1251
+ */
1252
+ constructor(opts: __ExceptionOptionType<TagException, __BaseException>);
1189
1253
  }
1190
1254
  /**
1191
1255
  * <p>The request was rejected because a specified parameter is not supported or a specified
1192
1256
  * resource is not valid for this operation.</p>
1193
1257
  */
1194
- export interface UnsupportedOperationException extends __SmithyException, $MetadataBearer {
1195
- name: "UnsupportedOperationException";
1196
- $fault: "client";
1197
- message?: string;
1258
+ export declare class UnsupportedOperationException extends __BaseException {
1259
+ readonly name: "UnsupportedOperationException";
1260
+ readonly $fault: "client";
1261
+ /**
1262
+ * @internal
1263
+ */
1264
+ constructor(opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>);
1198
1265
  }
1199
1266
  /**
1200
1267
  * <p>The request was rejected because the custom key store contains KMS keys. After verifying
@@ -1202,10 +1269,13 @@ export interface UnsupportedOperationException extends __SmithyException, $Metad
1202
1269
  * operation to delete the KMS keys. After they are deleted, you can delete the custom key
1203
1270
  * store.</p>
1204
1271
  */
1205
- export interface CustomKeyStoreHasCMKsException extends __SmithyException, $MetadataBearer {
1206
- name: "CustomKeyStoreHasCMKsException";
1207
- $fault: "client";
1208
- message?: string;
1272
+ export declare class CustomKeyStoreHasCMKsException extends __BaseException {
1273
+ readonly name: "CustomKeyStoreHasCMKsException";
1274
+ readonly $fault: "client";
1275
+ /**
1276
+ * @internal
1277
+ */
1278
+ constructor(opts: __ExceptionOptionType<CustomKeyStoreHasCMKsException, __BaseException>);
1209
1279
  }
1210
1280
  /**
1211
1281
  * <p>Contains information about each custom key store in the custom key store list.</p>
@@ -1438,10 +1508,13 @@ export declare namespace DecryptResponse {
1438
1508
  * in a <a>ReEncrypt</a> request must identify the same KMS key that was used to
1439
1509
  * encrypt the ciphertext.</p>
1440
1510
  */
1441
- export interface IncorrectKeyException extends __SmithyException, $MetadataBearer {
1442
- name: "IncorrectKeyException";
1443
- $fault: "client";
1444
- message?: string;
1511
+ export declare class IncorrectKeyException extends __BaseException {
1512
+ readonly name: "IncorrectKeyException";
1513
+ readonly $fault: "client";
1514
+ /**
1515
+ * @internal
1516
+ */
1517
+ constructor(opts: __ExceptionOptionType<IncorrectKeyException, __BaseException>);
1445
1518
  }
1446
1519
  /**
1447
1520
  * <p>From the <a>Decrypt</a> or <a>ReEncrypt</a> operation, the request
@@ -1451,10 +1524,13 @@ export interface IncorrectKeyException extends __SmithyException, $MetadataBeare
1451
1524
  * <p>From the <a>ImportKeyMaterial</a> operation, the request was rejected because
1452
1525
  * KMS could not decrypt the encrypted (wrapped) key material. </p>
1453
1526
  */
1454
- export interface InvalidCiphertextException extends __SmithyException, $MetadataBearer {
1455
- name: "InvalidCiphertextException";
1456
- $fault: "client";
1457
- message?: string;
1527
+ export declare class InvalidCiphertextException extends __BaseException {
1528
+ readonly name: "InvalidCiphertextException";
1529
+ readonly $fault: "client";
1530
+ /**
1531
+ * @internal
1532
+ */
1533
+ constructor(opts: __ExceptionOptionType<InvalidCiphertextException, __BaseException>);
1458
1534
  }
1459
1535
  /**
1460
1536
  * <p>The request was rejected for one of the following reasons: </p>
@@ -1475,19 +1551,25 @@ export interface InvalidCiphertextException extends __SmithyException, $Metadata
1475
1551
  * <p>To find the encryption or signing algorithms supported for a particular KMS key, use the
1476
1552
  * <a>DescribeKey</a> operation.</p>
1477
1553
  */
1478
- export interface InvalidKeyUsageException extends __SmithyException, $MetadataBearer {
1479
- name: "InvalidKeyUsageException";
1480
- $fault: "client";
1481
- message?: string;
1554
+ export declare class InvalidKeyUsageException extends __BaseException {
1555
+ readonly name: "InvalidKeyUsageException";
1556
+ readonly $fault: "client";
1557
+ /**
1558
+ * @internal
1559
+ */
1560
+ constructor(opts: __ExceptionOptionType<InvalidKeyUsageException, __BaseException>);
1482
1561
  }
1483
1562
  /**
1484
1563
  * <p>The request was rejected because the specified KMS key was not available. You can retry
1485
1564
  * the request.</p>
1486
1565
  */
1487
- export interface KeyUnavailableException extends __SmithyException, $MetadataBearer {
1488
- name: "KeyUnavailableException";
1489
- $fault: "server";
1490
- message?: string;
1566
+ export declare class KeyUnavailableException extends __BaseException {
1567
+ readonly name: "KeyUnavailableException";
1568
+ readonly $fault: "server";
1569
+ /**
1570
+ * @internal
1571
+ */
1572
+ constructor(opts: __ExceptionOptionType<KeyUnavailableException, __BaseException>);
1491
1573
  }
1492
1574
  export interface DeleteAliasRequest {
1493
1575
  /**
@@ -1614,10 +1696,13 @@ export declare namespace DescribeCustomKeyStoresResponse {
1614
1696
  * <p>The request was rejected because the marker that specifies where pagination should next
1615
1697
  * begin is not valid.</p>
1616
1698
  */
1617
- export interface InvalidMarkerException extends __SmithyException, $MetadataBearer {
1618
- name: "InvalidMarkerException";
1619
- $fault: "client";
1620
- message?: string;
1699
+ export declare class InvalidMarkerException extends __BaseException {
1700
+ readonly name: "InvalidMarkerException";
1701
+ readonly $fault: "client";
1702
+ /**
1703
+ * @internal
1704
+ */
1705
+ constructor(opts: __ExceptionOptionType<InvalidMarkerException, __BaseException>);
1621
1706
  }
1622
1707
  export interface DescribeKeyRequest {
1623
1708
  /**
@@ -1883,10 +1968,13 @@ export declare namespace EncryptResponse {
1883
1968
  * <p>The request was rejected because the specified import token is expired. Use <a>GetParametersForImport</a> to get a new import token and public key, use the new
1884
1969
  * public key to encrypt the key material, and then try the request again.</p>
1885
1970
  */
1886
- export interface ExpiredImportTokenException extends __SmithyException, $MetadataBearer {
1887
- name: "ExpiredImportTokenException";
1888
- $fault: "client";
1889
- message?: string;
1971
+ export declare class ExpiredImportTokenException extends __BaseException {
1972
+ readonly name: "ExpiredImportTokenException";
1973
+ readonly $fault: "client";
1974
+ /**
1975
+ * @internal
1976
+ */
1977
+ constructor(opts: __ExceptionOptionType<ExpiredImportTokenException, __BaseException>);
1890
1978
  }
1891
1979
  export interface GenerateDataKeyRequest {
1892
1980
  /**
@@ -2609,27 +2697,36 @@ export declare namespace ImportKeyMaterialResponse {
2609
2697
  * <p>The request was rejected because the key material in the request is, expired, invalid, or
2610
2698
  * is not the same key material that was previously imported into this KMS key.</p>
2611
2699
  */
2612
- export interface IncorrectKeyMaterialException extends __SmithyException, $MetadataBearer {
2613
- name: "IncorrectKeyMaterialException";
2614
- $fault: "client";
2615
- message?: string;
2700
+ export declare class IncorrectKeyMaterialException extends __BaseException {
2701
+ readonly name: "IncorrectKeyMaterialException";
2702
+ readonly $fault: "client";
2703
+ /**
2704
+ * @internal
2705
+ */
2706
+ constructor(opts: __ExceptionOptionType<IncorrectKeyMaterialException, __BaseException>);
2616
2707
  }
2617
2708
  /**
2618
2709
  * <p>The request was rejected because the provided import token is invalid or is associated
2619
2710
  * with a different KMS key.</p>
2620
2711
  */
2621
- export interface InvalidImportTokenException extends __SmithyException, $MetadataBearer {
2622
- name: "InvalidImportTokenException";
2623
- $fault: "client";
2624
- message?: string;
2712
+ export declare class InvalidImportTokenException extends __BaseException {
2713
+ readonly name: "InvalidImportTokenException";
2714
+ readonly $fault: "client";
2715
+ /**
2716
+ * @internal
2717
+ */
2718
+ constructor(opts: __ExceptionOptionType<InvalidImportTokenException, __BaseException>);
2625
2719
  }
2626
2720
  /**
2627
2721
  * <p>The request was rejected because the specified <code>GrantId</code> is not valid.</p>
2628
2722
  */
2629
- export interface InvalidGrantIdException extends __SmithyException, $MetadataBearer {
2630
- name: "InvalidGrantIdException";
2631
- $fault: "client";
2632
- message?: string;
2723
+ export declare class InvalidGrantIdException extends __BaseException {
2724
+ readonly name: "InvalidGrantIdException";
2725
+ readonly $fault: "client";
2726
+ /**
2727
+ * @internal
2728
+ */
2729
+ constructor(opts: __ExceptionOptionType<InvalidGrantIdException, __BaseException>);
2633
2730
  }
2634
2731
  /**
2635
2732
  * <p>Contains information about each entry in the key list.</p>
@@ -2655,10 +2752,13 @@ export declare namespace KeyListEntry {
2655
2752
  * fails when it cannot confirm that signature was produced by signing the specified message with
2656
2753
  * the specified KMS key and signing algorithm.</p>
2657
2754
  */
2658
- export interface KMSInvalidSignatureException extends __SmithyException, $MetadataBearer {
2659
- name: "KMSInvalidSignatureException";
2660
- $fault: "client";
2661
- message?: string;
2755
+ export declare class KMSInvalidSignatureException extends __BaseException {
2756
+ readonly name: "KMSInvalidSignatureException";
2757
+ readonly $fault: "client";
2758
+ /**
2759
+ * @internal
2760
+ */
2761
+ constructor(opts: __ExceptionOptionType<KMSInvalidSignatureException, __BaseException>);
2662
2762
  }
2663
2763
  export interface ListAliasesRequest {
2664
2764
  /**