@aws-sdk/client-kms 3.52.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.
@@ -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",
@@ -22,10 +23,11 @@ export declare namespace AliasListEntry {
22
23
  const filterSensitiveLog: (obj: AliasListEntry) => any;
23
24
  }
24
25
 
25
- export interface AlreadyExistsException extends __SmithyException, $MetadataBearer {
26
- name: "AlreadyExistsException";
27
- $fault: "client";
28
- message?: string;
26
+ export declare class AlreadyExistsException extends __BaseException {
27
+ readonly name: "AlreadyExistsException";
28
+ readonly $fault: "client";
29
+
30
+ constructor(opts: __ExceptionOptionType<AlreadyExistsException, __BaseException>);
29
31
  }
30
32
  export interface CancelKeyDeletionRequest {
31
33
 
@@ -44,64 +46,74 @@ export declare namespace CancelKeyDeletionResponse {
44
46
  const filterSensitiveLog: (obj: CancelKeyDeletionResponse) => any;
45
47
  }
46
48
 
47
- export interface DependencyTimeoutException extends __SmithyException, $MetadataBearer {
48
- name: "DependencyTimeoutException";
49
- $fault: "server";
50
- message?: string;
49
+ export declare class DependencyTimeoutException extends __BaseException {
50
+ readonly name: "DependencyTimeoutException";
51
+ readonly $fault: "server";
52
+
53
+ constructor(opts: __ExceptionOptionType<DependencyTimeoutException, __BaseException>);
51
54
  }
52
55
 
53
- export interface InvalidArnException extends __SmithyException, $MetadataBearer {
54
- name: "InvalidArnException";
55
- $fault: "client";
56
- message?: string;
56
+ export declare class InvalidArnException extends __BaseException {
57
+ readonly name: "InvalidArnException";
58
+ readonly $fault: "client";
59
+
60
+ constructor(opts: __ExceptionOptionType<InvalidArnException, __BaseException>);
57
61
  }
58
62
 
59
- export interface KMSInternalException extends __SmithyException, $MetadataBearer {
60
- name: "KMSInternalException";
61
- $fault: "server";
62
- message?: string;
63
+ export declare class KMSInternalException extends __BaseException {
64
+ readonly name: "KMSInternalException";
65
+ readonly $fault: "server";
66
+
67
+ constructor(opts: __ExceptionOptionType<KMSInternalException, __BaseException>);
63
68
  }
64
69
 
65
- export interface KMSInvalidStateException extends __SmithyException, $MetadataBearer {
66
- name: "KMSInvalidStateException";
67
- $fault: "client";
68
- message?: string;
70
+ export declare class KMSInvalidStateException extends __BaseException {
71
+ readonly name: "KMSInvalidStateException";
72
+ readonly $fault: "client";
73
+
74
+ constructor(opts: __ExceptionOptionType<KMSInvalidStateException, __BaseException>);
69
75
  }
70
76
 
71
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
72
- name: "NotFoundException";
73
- $fault: "client";
74
- message?: string;
77
+ export declare class NotFoundException extends __BaseException {
78
+ readonly name: "NotFoundException";
79
+ readonly $fault: "client";
80
+
81
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
75
82
  }
76
83
 
77
- export interface CloudHsmClusterInUseException extends __SmithyException, $MetadataBearer {
78
- name: "CloudHsmClusterInUseException";
79
- $fault: "client";
80
- message?: string;
84
+ export declare class CloudHsmClusterInUseException extends __BaseException {
85
+ readonly name: "CloudHsmClusterInUseException";
86
+ readonly $fault: "client";
87
+
88
+ constructor(opts: __ExceptionOptionType<CloudHsmClusterInUseException, __BaseException>);
81
89
  }
82
90
 
83
- export interface CloudHsmClusterInvalidConfigurationException extends __SmithyException, $MetadataBearer {
84
- name: "CloudHsmClusterInvalidConfigurationException";
85
- $fault: "client";
86
- message?: string;
91
+ export declare class CloudHsmClusterInvalidConfigurationException extends __BaseException {
92
+ readonly name: "CloudHsmClusterInvalidConfigurationException";
93
+ readonly $fault: "client";
94
+
95
+ constructor(opts: __ExceptionOptionType<CloudHsmClusterInvalidConfigurationException, __BaseException>);
87
96
  }
88
97
 
89
- export interface CloudHsmClusterNotActiveException extends __SmithyException, $MetadataBearer {
90
- name: "CloudHsmClusterNotActiveException";
91
- $fault: "client";
92
- message?: string;
98
+ export declare class CloudHsmClusterNotActiveException extends __BaseException {
99
+ readonly name: "CloudHsmClusterNotActiveException";
100
+ readonly $fault: "client";
101
+
102
+ constructor(opts: __ExceptionOptionType<CloudHsmClusterNotActiveException, __BaseException>);
93
103
  }
94
104
 
95
- export interface CloudHsmClusterNotFoundException extends __SmithyException, $MetadataBearer {
96
- name: "CloudHsmClusterNotFoundException";
97
- $fault: "client";
98
- message?: string;
105
+ export declare class CloudHsmClusterNotFoundException extends __BaseException {
106
+ readonly name: "CloudHsmClusterNotFoundException";
107
+ readonly $fault: "client";
108
+
109
+ constructor(opts: __ExceptionOptionType<CloudHsmClusterNotFoundException, __BaseException>);
99
110
  }
100
111
 
101
- export interface CloudHsmClusterNotRelatedException extends __SmithyException, $MetadataBearer {
102
- name: "CloudHsmClusterNotRelatedException";
103
- $fault: "client";
104
- message?: string;
112
+ export declare class CloudHsmClusterNotRelatedException extends __BaseException {
113
+ readonly name: "CloudHsmClusterNotRelatedException";
114
+ readonly $fault: "client";
115
+
116
+ constructor(opts: __ExceptionOptionType<CloudHsmClusterNotRelatedException, __BaseException>);
105
117
  }
106
118
  export interface ConnectCustomKeyStoreRequest {
107
119
 
@@ -118,16 +130,18 @@ export declare namespace ConnectCustomKeyStoreResponse {
118
130
  const filterSensitiveLog: (obj: ConnectCustomKeyStoreResponse) => any;
119
131
  }
120
132
 
121
- export interface CustomKeyStoreInvalidStateException extends __SmithyException, $MetadataBearer {
122
- name: "CustomKeyStoreInvalidStateException";
123
- $fault: "client";
124
- message?: string;
133
+ export declare class CustomKeyStoreInvalidStateException extends __BaseException {
134
+ readonly name: "CustomKeyStoreInvalidStateException";
135
+ readonly $fault: "client";
136
+
137
+ constructor(opts: __ExceptionOptionType<CustomKeyStoreInvalidStateException, __BaseException>);
125
138
  }
126
139
 
127
- export interface CustomKeyStoreNotFoundException extends __SmithyException, $MetadataBearer {
128
- name: "CustomKeyStoreNotFoundException";
129
- $fault: "client";
130
- message?: string;
140
+ export declare class CustomKeyStoreNotFoundException extends __BaseException {
141
+ readonly name: "CustomKeyStoreNotFoundException";
142
+ readonly $fault: "client";
143
+
144
+ constructor(opts: __ExceptionOptionType<CustomKeyStoreNotFoundException, __BaseException>);
131
145
  }
132
146
  export declare enum ConnectionErrorCodeType {
133
147
  CLUSTER_NOT_FOUND = "CLUSTER_NOT_FOUND",
@@ -158,16 +172,18 @@ export declare namespace CreateAliasRequest {
158
172
  const filterSensitiveLog: (obj: CreateAliasRequest) => any;
159
173
  }
160
174
 
161
- export interface InvalidAliasNameException extends __SmithyException, $MetadataBearer {
162
- name: "InvalidAliasNameException";
163
- $fault: "client";
164
- message?: string;
175
+ export declare class InvalidAliasNameException extends __BaseException {
176
+ readonly name: "InvalidAliasNameException";
177
+ readonly $fault: "client";
178
+
179
+ constructor(opts: __ExceptionOptionType<InvalidAliasNameException, __BaseException>);
165
180
  }
166
181
 
167
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
168
- name: "LimitExceededException";
169
- $fault: "client";
170
- message?: string;
182
+ export declare class LimitExceededException extends __BaseException {
183
+ readonly name: "LimitExceededException";
184
+ readonly $fault: "client";
185
+
186
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
171
187
  }
172
188
  export interface CreateCustomKeyStoreRequest {
173
189
 
@@ -192,16 +208,18 @@ export declare namespace CreateCustomKeyStoreResponse {
192
208
  const filterSensitiveLog: (obj: CreateCustomKeyStoreResponse) => any;
193
209
  }
194
210
 
195
- export interface CustomKeyStoreNameInUseException extends __SmithyException, $MetadataBearer {
196
- name: "CustomKeyStoreNameInUseException";
197
- $fault: "client";
198
- message?: string;
211
+ export declare class CustomKeyStoreNameInUseException extends __BaseException {
212
+ readonly name: "CustomKeyStoreNameInUseException";
213
+ readonly $fault: "client";
214
+
215
+ constructor(opts: __ExceptionOptionType<CustomKeyStoreNameInUseException, __BaseException>);
199
216
  }
200
217
 
201
- export interface IncorrectTrustAnchorException extends __SmithyException, $MetadataBearer {
202
- name: "IncorrectTrustAnchorException";
203
- $fault: "client";
204
- message?: string;
218
+ export declare class IncorrectTrustAnchorException extends __BaseException {
219
+ readonly name: "IncorrectTrustAnchorException";
220
+ readonly $fault: "client";
221
+
222
+ constructor(opts: __ExceptionOptionType<IncorrectTrustAnchorException, __BaseException>);
205
223
  }
206
224
 
207
225
  export interface GrantConstraints {
@@ -265,16 +283,18 @@ export declare namespace CreateGrantResponse {
265
283
  const filterSensitiveLog: (obj: CreateGrantResponse) => any;
266
284
  }
267
285
 
268
- export interface DisabledException extends __SmithyException, $MetadataBearer {
269
- name: "DisabledException";
270
- $fault: "client";
271
- message?: string;
286
+ export declare class DisabledException extends __BaseException {
287
+ readonly name: "DisabledException";
288
+ readonly $fault: "client";
289
+
290
+ constructor(opts: __ExceptionOptionType<DisabledException, __BaseException>);
272
291
  }
273
292
 
274
- export interface InvalidGrantTokenException extends __SmithyException, $MetadataBearer {
275
- name: "InvalidGrantTokenException";
276
- $fault: "client";
277
- message?: string;
293
+ export declare class InvalidGrantTokenException extends __BaseException {
294
+ readonly name: "InvalidGrantTokenException";
295
+ readonly $fault: "client";
296
+
297
+ constructor(opts: __ExceptionOptionType<InvalidGrantTokenException, __BaseException>);
278
298
  }
279
299
  export declare enum CustomerMasterKeySpec {
280
300
  ECC_NIST_P256 = "ECC_NIST_P256",
@@ -464,28 +484,32 @@ export declare namespace CreateKeyResponse {
464
484
  const filterSensitiveLog: (obj: CreateKeyResponse) => any;
465
485
  }
466
486
 
467
- export interface MalformedPolicyDocumentException extends __SmithyException, $MetadataBearer {
468
- name: "MalformedPolicyDocumentException";
469
- $fault: "client";
470
- message?: string;
487
+ export declare class MalformedPolicyDocumentException extends __BaseException {
488
+ readonly name: "MalformedPolicyDocumentException";
489
+ readonly $fault: "client";
490
+
491
+ constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
471
492
  }
472
493
 
473
- export interface TagException extends __SmithyException, $MetadataBearer {
474
- name: "TagException";
475
- $fault: "client";
476
- message?: string;
494
+ export declare class TagException extends __BaseException {
495
+ readonly name: "TagException";
496
+ readonly $fault: "client";
497
+
498
+ constructor(opts: __ExceptionOptionType<TagException, __BaseException>);
477
499
  }
478
500
 
479
- export interface UnsupportedOperationException extends __SmithyException, $MetadataBearer {
480
- name: "UnsupportedOperationException";
481
- $fault: "client";
482
- message?: string;
501
+ export declare class UnsupportedOperationException extends __BaseException {
502
+ readonly name: "UnsupportedOperationException";
503
+ readonly $fault: "client";
504
+
505
+ constructor(opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>);
483
506
  }
484
507
 
485
- export interface CustomKeyStoreHasCMKsException extends __SmithyException, $MetadataBearer {
486
- name: "CustomKeyStoreHasCMKsException";
487
- $fault: "client";
488
- message?: string;
508
+ export declare class CustomKeyStoreHasCMKsException extends __BaseException {
509
+ readonly name: "CustomKeyStoreHasCMKsException";
510
+ readonly $fault: "client";
511
+
512
+ constructor(opts: __ExceptionOptionType<CustomKeyStoreHasCMKsException, __BaseException>);
489
513
  }
490
514
 
491
515
  export interface CustomKeyStoresListEntry {
@@ -552,28 +576,32 @@ export declare namespace DecryptResponse {
552
576
  const filterSensitiveLog: (obj: DecryptResponse) => any;
553
577
  }
554
578
 
555
- export interface IncorrectKeyException extends __SmithyException, $MetadataBearer {
556
- name: "IncorrectKeyException";
557
- $fault: "client";
558
- message?: string;
579
+ export declare class IncorrectKeyException extends __BaseException {
580
+ readonly name: "IncorrectKeyException";
581
+ readonly $fault: "client";
582
+
583
+ constructor(opts: __ExceptionOptionType<IncorrectKeyException, __BaseException>);
559
584
  }
560
585
 
561
- export interface InvalidCiphertextException extends __SmithyException, $MetadataBearer {
562
- name: "InvalidCiphertextException";
563
- $fault: "client";
564
- message?: string;
586
+ export declare class InvalidCiphertextException extends __BaseException {
587
+ readonly name: "InvalidCiphertextException";
588
+ readonly $fault: "client";
589
+
590
+ constructor(opts: __ExceptionOptionType<InvalidCiphertextException, __BaseException>);
565
591
  }
566
592
 
567
- export interface InvalidKeyUsageException extends __SmithyException, $MetadataBearer {
568
- name: "InvalidKeyUsageException";
569
- $fault: "client";
570
- message?: string;
593
+ export declare class InvalidKeyUsageException extends __BaseException {
594
+ readonly name: "InvalidKeyUsageException";
595
+ readonly $fault: "client";
596
+
597
+ constructor(opts: __ExceptionOptionType<InvalidKeyUsageException, __BaseException>);
571
598
  }
572
599
 
573
- export interface KeyUnavailableException extends __SmithyException, $MetadataBearer {
574
- name: "KeyUnavailableException";
575
- $fault: "server";
576
- message?: string;
600
+ export declare class KeyUnavailableException extends __BaseException {
601
+ readonly name: "KeyUnavailableException";
602
+ readonly $fault: "server";
603
+
604
+ constructor(opts: __ExceptionOptionType<KeyUnavailableException, __BaseException>);
577
605
  }
578
606
  export interface DeleteAliasRequest {
579
607
 
@@ -632,10 +660,11 @@ export declare namespace DescribeCustomKeyStoresResponse {
632
660
  const filterSensitiveLog: (obj: DescribeCustomKeyStoresResponse) => any;
633
661
  }
634
662
 
635
- export interface InvalidMarkerException extends __SmithyException, $MetadataBearer {
636
- name: "InvalidMarkerException";
637
- $fault: "client";
638
- message?: string;
663
+ export declare class InvalidMarkerException extends __BaseException {
664
+ readonly name: "InvalidMarkerException";
665
+ readonly $fault: "client";
666
+
667
+ constructor(opts: __ExceptionOptionType<InvalidMarkerException, __BaseException>);
639
668
  }
640
669
  export interface DescribeKeyRequest {
641
670
 
@@ -732,10 +761,11 @@ export declare namespace EncryptResponse {
732
761
  const filterSensitiveLog: (obj: EncryptResponse) => any;
733
762
  }
734
763
 
735
- export interface ExpiredImportTokenException extends __SmithyException, $MetadataBearer {
736
- name: "ExpiredImportTokenException";
737
- $fault: "client";
738
- message?: string;
764
+ export declare class ExpiredImportTokenException extends __BaseException {
765
+ readonly name: "ExpiredImportTokenException";
766
+ readonly $fault: "client";
767
+
768
+ constructor(opts: __ExceptionOptionType<ExpiredImportTokenException, __BaseException>);
739
769
  }
740
770
  export interface GenerateDataKeyRequest {
741
771
 
@@ -1016,22 +1046,25 @@ export declare namespace ImportKeyMaterialResponse {
1016
1046
  const filterSensitiveLog: (obj: ImportKeyMaterialResponse) => any;
1017
1047
  }
1018
1048
 
1019
- export interface IncorrectKeyMaterialException extends __SmithyException, $MetadataBearer {
1020
- name: "IncorrectKeyMaterialException";
1021
- $fault: "client";
1022
- message?: string;
1049
+ export declare class IncorrectKeyMaterialException extends __BaseException {
1050
+ readonly name: "IncorrectKeyMaterialException";
1051
+ readonly $fault: "client";
1052
+
1053
+ constructor(opts: __ExceptionOptionType<IncorrectKeyMaterialException, __BaseException>);
1023
1054
  }
1024
1055
 
1025
- export interface InvalidImportTokenException extends __SmithyException, $MetadataBearer {
1026
- name: "InvalidImportTokenException";
1027
- $fault: "client";
1028
- message?: string;
1056
+ export declare class InvalidImportTokenException extends __BaseException {
1057
+ readonly name: "InvalidImportTokenException";
1058
+ readonly $fault: "client";
1059
+
1060
+ constructor(opts: __ExceptionOptionType<InvalidImportTokenException, __BaseException>);
1029
1061
  }
1030
1062
 
1031
- export interface InvalidGrantIdException extends __SmithyException, $MetadataBearer {
1032
- name: "InvalidGrantIdException";
1033
- $fault: "client";
1034
- message?: string;
1063
+ export declare class InvalidGrantIdException extends __BaseException {
1064
+ readonly name: "InvalidGrantIdException";
1065
+ readonly $fault: "client";
1066
+
1067
+ constructor(opts: __ExceptionOptionType<InvalidGrantIdException, __BaseException>);
1035
1068
  }
1036
1069
 
1037
1070
  export interface KeyListEntry {
@@ -1045,10 +1078,11 @@ export declare namespace KeyListEntry {
1045
1078
  const filterSensitiveLog: (obj: KeyListEntry) => any;
1046
1079
  }
1047
1080
 
1048
- export interface KMSInvalidSignatureException extends __SmithyException, $MetadataBearer {
1049
- name: "KMSInvalidSignatureException";
1050
- $fault: "client";
1051
- message?: string;
1081
+ export declare class KMSInvalidSignatureException extends __BaseException {
1082
+ readonly name: "KMSInvalidSignatureException";
1083
+ readonly $fault: "client";
1084
+
1085
+ constructor(opts: __ExceptionOptionType<KMSInvalidSignatureException, __BaseException>);
1052
1086
  }
1053
1087
  export interface ListAliasesRequest {
1054
1088
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kms",
3
3
  "description": "AWS SDK for JavaScript Kms Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.53.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"