@aws-sdk/client-kms 3.986.0 → 3.988.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-cjs/index.js +72 -2261
- package/dist-cjs/models/KMSServiceException.js +12 -0
- package/dist-cjs/models/errors.js +628 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +1392 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +282 -276
- package/dist-types/schemas/schemas_0.d.ts +52 -45
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +47 -45
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KMSServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class KMSServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, KMSServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.KMSServiceException = KMSServiceException;
|
|
@@ -0,0 +1,628 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KMSInvalidSignatureException = exports.KMSInvalidMacException = exports.InvalidGrantIdException = exports.InvalidImportTokenException = exports.IncorrectKeyMaterialException = exports.ExpiredImportTokenException = exports.InvalidMarkerException = exports.KeyUnavailableException = exports.InvalidKeyUsageException = exports.InvalidCiphertextException = exports.IncorrectKeyException = exports.CustomKeyStoreHasCMKsException = exports.XksKeyNotFoundException = exports.XksKeyInvalidConfigurationException = exports.XksKeyAlreadyInUseException = exports.UnsupportedOperationException = exports.TagException = exports.MalformedPolicyDocumentException = exports.InvalidGrantTokenException = exports.DryRunOperationException = exports.DisabledException = exports.XksProxyVpcEndpointServiceNotFoundException = exports.XksProxyVpcEndpointServiceInvalidConfigurationException = exports.XksProxyVpcEndpointServiceInUseException = exports.XksProxyUriUnreachableException = exports.XksProxyUriInUseException = exports.XksProxyUriEndpointInUseException = exports.XksProxyInvalidResponseException = exports.XksProxyInvalidConfigurationException = exports.XksProxyIncorrectAuthenticationCredentialException = exports.IncorrectTrustAnchorException = exports.CustomKeyStoreNameInUseException = exports.LimitExceededException = exports.InvalidAliasNameException = exports.CustomKeyStoreNotFoundException = exports.CustomKeyStoreInvalidStateException = exports.ConflictException = exports.CloudHsmClusterNotRelatedException = exports.CloudHsmClusterNotFoundException = exports.CloudHsmClusterNotActiveException = exports.CloudHsmClusterInvalidConfigurationException = exports.CloudHsmClusterInUseException = exports.NotFoundException = exports.KMSInvalidStateException = exports.KMSInternalException = exports.InvalidArnException = exports.DependencyTimeoutException = exports.AlreadyExistsException = void 0;
|
|
4
|
+
const KMSServiceException_1 = require("./KMSServiceException");
|
|
5
|
+
class AlreadyExistsException extends KMSServiceException_1.KMSServiceException {
|
|
6
|
+
name = "AlreadyExistsException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "AlreadyExistsException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, AlreadyExistsException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.AlreadyExistsException = AlreadyExistsException;
|
|
18
|
+
class DependencyTimeoutException extends KMSServiceException_1.KMSServiceException {
|
|
19
|
+
name = "DependencyTimeoutException";
|
|
20
|
+
$fault = "server";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "DependencyTimeoutException",
|
|
24
|
+
$fault: "server",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, DependencyTimeoutException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.DependencyTimeoutException = DependencyTimeoutException;
|
|
31
|
+
class InvalidArnException extends KMSServiceException_1.KMSServiceException {
|
|
32
|
+
name = "InvalidArnException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "InvalidArnException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, InvalidArnException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.InvalidArnException = InvalidArnException;
|
|
44
|
+
class KMSInternalException extends KMSServiceException_1.KMSServiceException {
|
|
45
|
+
name = "KMSInternalException";
|
|
46
|
+
$fault = "server";
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "KMSInternalException",
|
|
50
|
+
$fault: "server",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
Object.setPrototypeOf(this, KMSInternalException.prototype);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.KMSInternalException = KMSInternalException;
|
|
57
|
+
class KMSInvalidStateException extends KMSServiceException_1.KMSServiceException {
|
|
58
|
+
name = "KMSInvalidStateException";
|
|
59
|
+
$fault = "client";
|
|
60
|
+
constructor(opts) {
|
|
61
|
+
super({
|
|
62
|
+
name: "KMSInvalidStateException",
|
|
63
|
+
$fault: "client",
|
|
64
|
+
...opts,
|
|
65
|
+
});
|
|
66
|
+
Object.setPrototypeOf(this, KMSInvalidStateException.prototype);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.KMSInvalidStateException = KMSInvalidStateException;
|
|
70
|
+
class NotFoundException extends KMSServiceException_1.KMSServiceException {
|
|
71
|
+
name = "NotFoundException";
|
|
72
|
+
$fault = "client";
|
|
73
|
+
constructor(opts) {
|
|
74
|
+
super({
|
|
75
|
+
name: "NotFoundException",
|
|
76
|
+
$fault: "client",
|
|
77
|
+
...opts,
|
|
78
|
+
});
|
|
79
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.NotFoundException = NotFoundException;
|
|
83
|
+
class CloudHsmClusterInUseException extends KMSServiceException_1.KMSServiceException {
|
|
84
|
+
name = "CloudHsmClusterInUseException";
|
|
85
|
+
$fault = "client";
|
|
86
|
+
constructor(opts) {
|
|
87
|
+
super({
|
|
88
|
+
name: "CloudHsmClusterInUseException",
|
|
89
|
+
$fault: "client",
|
|
90
|
+
...opts,
|
|
91
|
+
});
|
|
92
|
+
Object.setPrototypeOf(this, CloudHsmClusterInUseException.prototype);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.CloudHsmClusterInUseException = CloudHsmClusterInUseException;
|
|
96
|
+
class CloudHsmClusterInvalidConfigurationException extends KMSServiceException_1.KMSServiceException {
|
|
97
|
+
name = "CloudHsmClusterInvalidConfigurationException";
|
|
98
|
+
$fault = "client";
|
|
99
|
+
constructor(opts) {
|
|
100
|
+
super({
|
|
101
|
+
name: "CloudHsmClusterInvalidConfigurationException",
|
|
102
|
+
$fault: "client",
|
|
103
|
+
...opts,
|
|
104
|
+
});
|
|
105
|
+
Object.setPrototypeOf(this, CloudHsmClusterInvalidConfigurationException.prototype);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.CloudHsmClusterInvalidConfigurationException = CloudHsmClusterInvalidConfigurationException;
|
|
109
|
+
class CloudHsmClusterNotActiveException extends KMSServiceException_1.KMSServiceException {
|
|
110
|
+
name = "CloudHsmClusterNotActiveException";
|
|
111
|
+
$fault = "client";
|
|
112
|
+
constructor(opts) {
|
|
113
|
+
super({
|
|
114
|
+
name: "CloudHsmClusterNotActiveException",
|
|
115
|
+
$fault: "client",
|
|
116
|
+
...opts,
|
|
117
|
+
});
|
|
118
|
+
Object.setPrototypeOf(this, CloudHsmClusterNotActiveException.prototype);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.CloudHsmClusterNotActiveException = CloudHsmClusterNotActiveException;
|
|
122
|
+
class CloudHsmClusterNotFoundException extends KMSServiceException_1.KMSServiceException {
|
|
123
|
+
name = "CloudHsmClusterNotFoundException";
|
|
124
|
+
$fault = "client";
|
|
125
|
+
constructor(opts) {
|
|
126
|
+
super({
|
|
127
|
+
name: "CloudHsmClusterNotFoundException",
|
|
128
|
+
$fault: "client",
|
|
129
|
+
...opts,
|
|
130
|
+
});
|
|
131
|
+
Object.setPrototypeOf(this, CloudHsmClusterNotFoundException.prototype);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.CloudHsmClusterNotFoundException = CloudHsmClusterNotFoundException;
|
|
135
|
+
class CloudHsmClusterNotRelatedException extends KMSServiceException_1.KMSServiceException {
|
|
136
|
+
name = "CloudHsmClusterNotRelatedException";
|
|
137
|
+
$fault = "client";
|
|
138
|
+
constructor(opts) {
|
|
139
|
+
super({
|
|
140
|
+
name: "CloudHsmClusterNotRelatedException",
|
|
141
|
+
$fault: "client",
|
|
142
|
+
...opts,
|
|
143
|
+
});
|
|
144
|
+
Object.setPrototypeOf(this, CloudHsmClusterNotRelatedException.prototype);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.CloudHsmClusterNotRelatedException = CloudHsmClusterNotRelatedException;
|
|
148
|
+
class ConflictException extends KMSServiceException_1.KMSServiceException {
|
|
149
|
+
name = "ConflictException";
|
|
150
|
+
$fault = "client";
|
|
151
|
+
constructor(opts) {
|
|
152
|
+
super({
|
|
153
|
+
name: "ConflictException",
|
|
154
|
+
$fault: "client",
|
|
155
|
+
...opts,
|
|
156
|
+
});
|
|
157
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
exports.ConflictException = ConflictException;
|
|
161
|
+
class CustomKeyStoreInvalidStateException extends KMSServiceException_1.KMSServiceException {
|
|
162
|
+
name = "CustomKeyStoreInvalidStateException";
|
|
163
|
+
$fault = "client";
|
|
164
|
+
constructor(opts) {
|
|
165
|
+
super({
|
|
166
|
+
name: "CustomKeyStoreInvalidStateException",
|
|
167
|
+
$fault: "client",
|
|
168
|
+
...opts,
|
|
169
|
+
});
|
|
170
|
+
Object.setPrototypeOf(this, CustomKeyStoreInvalidStateException.prototype);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
exports.CustomKeyStoreInvalidStateException = CustomKeyStoreInvalidStateException;
|
|
174
|
+
class CustomKeyStoreNotFoundException extends KMSServiceException_1.KMSServiceException {
|
|
175
|
+
name = "CustomKeyStoreNotFoundException";
|
|
176
|
+
$fault = "client";
|
|
177
|
+
constructor(opts) {
|
|
178
|
+
super({
|
|
179
|
+
name: "CustomKeyStoreNotFoundException",
|
|
180
|
+
$fault: "client",
|
|
181
|
+
...opts,
|
|
182
|
+
});
|
|
183
|
+
Object.setPrototypeOf(this, CustomKeyStoreNotFoundException.prototype);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
exports.CustomKeyStoreNotFoundException = CustomKeyStoreNotFoundException;
|
|
187
|
+
class InvalidAliasNameException extends KMSServiceException_1.KMSServiceException {
|
|
188
|
+
name = "InvalidAliasNameException";
|
|
189
|
+
$fault = "client";
|
|
190
|
+
constructor(opts) {
|
|
191
|
+
super({
|
|
192
|
+
name: "InvalidAliasNameException",
|
|
193
|
+
$fault: "client",
|
|
194
|
+
...opts,
|
|
195
|
+
});
|
|
196
|
+
Object.setPrototypeOf(this, InvalidAliasNameException.prototype);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
exports.InvalidAliasNameException = InvalidAliasNameException;
|
|
200
|
+
class LimitExceededException extends KMSServiceException_1.KMSServiceException {
|
|
201
|
+
name = "LimitExceededException";
|
|
202
|
+
$fault = "client";
|
|
203
|
+
constructor(opts) {
|
|
204
|
+
super({
|
|
205
|
+
name: "LimitExceededException",
|
|
206
|
+
$fault: "client",
|
|
207
|
+
...opts,
|
|
208
|
+
});
|
|
209
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
exports.LimitExceededException = LimitExceededException;
|
|
213
|
+
class CustomKeyStoreNameInUseException extends KMSServiceException_1.KMSServiceException {
|
|
214
|
+
name = "CustomKeyStoreNameInUseException";
|
|
215
|
+
$fault = "client";
|
|
216
|
+
constructor(opts) {
|
|
217
|
+
super({
|
|
218
|
+
name: "CustomKeyStoreNameInUseException",
|
|
219
|
+
$fault: "client",
|
|
220
|
+
...opts,
|
|
221
|
+
});
|
|
222
|
+
Object.setPrototypeOf(this, CustomKeyStoreNameInUseException.prototype);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
exports.CustomKeyStoreNameInUseException = CustomKeyStoreNameInUseException;
|
|
226
|
+
class IncorrectTrustAnchorException extends KMSServiceException_1.KMSServiceException {
|
|
227
|
+
name = "IncorrectTrustAnchorException";
|
|
228
|
+
$fault = "client";
|
|
229
|
+
constructor(opts) {
|
|
230
|
+
super({
|
|
231
|
+
name: "IncorrectTrustAnchorException",
|
|
232
|
+
$fault: "client",
|
|
233
|
+
...opts,
|
|
234
|
+
});
|
|
235
|
+
Object.setPrototypeOf(this, IncorrectTrustAnchorException.prototype);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
exports.IncorrectTrustAnchorException = IncorrectTrustAnchorException;
|
|
239
|
+
class XksProxyIncorrectAuthenticationCredentialException extends KMSServiceException_1.KMSServiceException {
|
|
240
|
+
name = "XksProxyIncorrectAuthenticationCredentialException";
|
|
241
|
+
$fault = "client";
|
|
242
|
+
constructor(opts) {
|
|
243
|
+
super({
|
|
244
|
+
name: "XksProxyIncorrectAuthenticationCredentialException",
|
|
245
|
+
$fault: "client",
|
|
246
|
+
...opts,
|
|
247
|
+
});
|
|
248
|
+
Object.setPrototypeOf(this, XksProxyIncorrectAuthenticationCredentialException.prototype);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
exports.XksProxyIncorrectAuthenticationCredentialException = XksProxyIncorrectAuthenticationCredentialException;
|
|
252
|
+
class XksProxyInvalidConfigurationException extends KMSServiceException_1.KMSServiceException {
|
|
253
|
+
name = "XksProxyInvalidConfigurationException";
|
|
254
|
+
$fault = "client";
|
|
255
|
+
constructor(opts) {
|
|
256
|
+
super({
|
|
257
|
+
name: "XksProxyInvalidConfigurationException",
|
|
258
|
+
$fault: "client",
|
|
259
|
+
...opts,
|
|
260
|
+
});
|
|
261
|
+
Object.setPrototypeOf(this, XksProxyInvalidConfigurationException.prototype);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
exports.XksProxyInvalidConfigurationException = XksProxyInvalidConfigurationException;
|
|
265
|
+
class XksProxyInvalidResponseException extends KMSServiceException_1.KMSServiceException {
|
|
266
|
+
name = "XksProxyInvalidResponseException";
|
|
267
|
+
$fault = "client";
|
|
268
|
+
constructor(opts) {
|
|
269
|
+
super({
|
|
270
|
+
name: "XksProxyInvalidResponseException",
|
|
271
|
+
$fault: "client",
|
|
272
|
+
...opts,
|
|
273
|
+
});
|
|
274
|
+
Object.setPrototypeOf(this, XksProxyInvalidResponseException.prototype);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
exports.XksProxyInvalidResponseException = XksProxyInvalidResponseException;
|
|
278
|
+
class XksProxyUriEndpointInUseException extends KMSServiceException_1.KMSServiceException {
|
|
279
|
+
name = "XksProxyUriEndpointInUseException";
|
|
280
|
+
$fault = "client";
|
|
281
|
+
constructor(opts) {
|
|
282
|
+
super({
|
|
283
|
+
name: "XksProxyUriEndpointInUseException",
|
|
284
|
+
$fault: "client",
|
|
285
|
+
...opts,
|
|
286
|
+
});
|
|
287
|
+
Object.setPrototypeOf(this, XksProxyUriEndpointInUseException.prototype);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
exports.XksProxyUriEndpointInUseException = XksProxyUriEndpointInUseException;
|
|
291
|
+
class XksProxyUriInUseException extends KMSServiceException_1.KMSServiceException {
|
|
292
|
+
name = "XksProxyUriInUseException";
|
|
293
|
+
$fault = "client";
|
|
294
|
+
constructor(opts) {
|
|
295
|
+
super({
|
|
296
|
+
name: "XksProxyUriInUseException",
|
|
297
|
+
$fault: "client",
|
|
298
|
+
...opts,
|
|
299
|
+
});
|
|
300
|
+
Object.setPrototypeOf(this, XksProxyUriInUseException.prototype);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
exports.XksProxyUriInUseException = XksProxyUriInUseException;
|
|
304
|
+
class XksProxyUriUnreachableException extends KMSServiceException_1.KMSServiceException {
|
|
305
|
+
name = "XksProxyUriUnreachableException";
|
|
306
|
+
$fault = "client";
|
|
307
|
+
constructor(opts) {
|
|
308
|
+
super({
|
|
309
|
+
name: "XksProxyUriUnreachableException",
|
|
310
|
+
$fault: "client",
|
|
311
|
+
...opts,
|
|
312
|
+
});
|
|
313
|
+
Object.setPrototypeOf(this, XksProxyUriUnreachableException.prototype);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
exports.XksProxyUriUnreachableException = XksProxyUriUnreachableException;
|
|
317
|
+
class XksProxyVpcEndpointServiceInUseException extends KMSServiceException_1.KMSServiceException {
|
|
318
|
+
name = "XksProxyVpcEndpointServiceInUseException";
|
|
319
|
+
$fault = "client";
|
|
320
|
+
constructor(opts) {
|
|
321
|
+
super({
|
|
322
|
+
name: "XksProxyVpcEndpointServiceInUseException",
|
|
323
|
+
$fault: "client",
|
|
324
|
+
...opts,
|
|
325
|
+
});
|
|
326
|
+
Object.setPrototypeOf(this, XksProxyVpcEndpointServiceInUseException.prototype);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
exports.XksProxyVpcEndpointServiceInUseException = XksProxyVpcEndpointServiceInUseException;
|
|
330
|
+
class XksProxyVpcEndpointServiceInvalidConfigurationException extends KMSServiceException_1.KMSServiceException {
|
|
331
|
+
name = "XksProxyVpcEndpointServiceInvalidConfigurationException";
|
|
332
|
+
$fault = "client";
|
|
333
|
+
constructor(opts) {
|
|
334
|
+
super({
|
|
335
|
+
name: "XksProxyVpcEndpointServiceInvalidConfigurationException",
|
|
336
|
+
$fault: "client",
|
|
337
|
+
...opts,
|
|
338
|
+
});
|
|
339
|
+
Object.setPrototypeOf(this, XksProxyVpcEndpointServiceInvalidConfigurationException.prototype);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
exports.XksProxyVpcEndpointServiceInvalidConfigurationException = XksProxyVpcEndpointServiceInvalidConfigurationException;
|
|
343
|
+
class XksProxyVpcEndpointServiceNotFoundException extends KMSServiceException_1.KMSServiceException {
|
|
344
|
+
name = "XksProxyVpcEndpointServiceNotFoundException";
|
|
345
|
+
$fault = "client";
|
|
346
|
+
constructor(opts) {
|
|
347
|
+
super({
|
|
348
|
+
name: "XksProxyVpcEndpointServiceNotFoundException",
|
|
349
|
+
$fault: "client",
|
|
350
|
+
...opts,
|
|
351
|
+
});
|
|
352
|
+
Object.setPrototypeOf(this, XksProxyVpcEndpointServiceNotFoundException.prototype);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
exports.XksProxyVpcEndpointServiceNotFoundException = XksProxyVpcEndpointServiceNotFoundException;
|
|
356
|
+
class DisabledException extends KMSServiceException_1.KMSServiceException {
|
|
357
|
+
name = "DisabledException";
|
|
358
|
+
$fault = "client";
|
|
359
|
+
constructor(opts) {
|
|
360
|
+
super({
|
|
361
|
+
name: "DisabledException",
|
|
362
|
+
$fault: "client",
|
|
363
|
+
...opts,
|
|
364
|
+
});
|
|
365
|
+
Object.setPrototypeOf(this, DisabledException.prototype);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
exports.DisabledException = DisabledException;
|
|
369
|
+
class DryRunOperationException extends KMSServiceException_1.KMSServiceException {
|
|
370
|
+
name = "DryRunOperationException";
|
|
371
|
+
$fault = "client";
|
|
372
|
+
constructor(opts) {
|
|
373
|
+
super({
|
|
374
|
+
name: "DryRunOperationException",
|
|
375
|
+
$fault: "client",
|
|
376
|
+
...opts,
|
|
377
|
+
});
|
|
378
|
+
Object.setPrototypeOf(this, DryRunOperationException.prototype);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
exports.DryRunOperationException = DryRunOperationException;
|
|
382
|
+
class InvalidGrantTokenException extends KMSServiceException_1.KMSServiceException {
|
|
383
|
+
name = "InvalidGrantTokenException";
|
|
384
|
+
$fault = "client";
|
|
385
|
+
constructor(opts) {
|
|
386
|
+
super({
|
|
387
|
+
name: "InvalidGrantTokenException",
|
|
388
|
+
$fault: "client",
|
|
389
|
+
...opts,
|
|
390
|
+
});
|
|
391
|
+
Object.setPrototypeOf(this, InvalidGrantTokenException.prototype);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
exports.InvalidGrantTokenException = InvalidGrantTokenException;
|
|
395
|
+
class MalformedPolicyDocumentException extends KMSServiceException_1.KMSServiceException {
|
|
396
|
+
name = "MalformedPolicyDocumentException";
|
|
397
|
+
$fault = "client";
|
|
398
|
+
constructor(opts) {
|
|
399
|
+
super({
|
|
400
|
+
name: "MalformedPolicyDocumentException",
|
|
401
|
+
$fault: "client",
|
|
402
|
+
...opts,
|
|
403
|
+
});
|
|
404
|
+
Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
|
|
408
|
+
class TagException extends KMSServiceException_1.KMSServiceException {
|
|
409
|
+
name = "TagException";
|
|
410
|
+
$fault = "client";
|
|
411
|
+
constructor(opts) {
|
|
412
|
+
super({
|
|
413
|
+
name: "TagException",
|
|
414
|
+
$fault: "client",
|
|
415
|
+
...opts,
|
|
416
|
+
});
|
|
417
|
+
Object.setPrototypeOf(this, TagException.prototype);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
exports.TagException = TagException;
|
|
421
|
+
class UnsupportedOperationException extends KMSServiceException_1.KMSServiceException {
|
|
422
|
+
name = "UnsupportedOperationException";
|
|
423
|
+
$fault = "client";
|
|
424
|
+
constructor(opts) {
|
|
425
|
+
super({
|
|
426
|
+
name: "UnsupportedOperationException",
|
|
427
|
+
$fault: "client",
|
|
428
|
+
...opts,
|
|
429
|
+
});
|
|
430
|
+
Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
exports.UnsupportedOperationException = UnsupportedOperationException;
|
|
434
|
+
class XksKeyAlreadyInUseException extends KMSServiceException_1.KMSServiceException {
|
|
435
|
+
name = "XksKeyAlreadyInUseException";
|
|
436
|
+
$fault = "client";
|
|
437
|
+
constructor(opts) {
|
|
438
|
+
super({
|
|
439
|
+
name: "XksKeyAlreadyInUseException",
|
|
440
|
+
$fault: "client",
|
|
441
|
+
...opts,
|
|
442
|
+
});
|
|
443
|
+
Object.setPrototypeOf(this, XksKeyAlreadyInUseException.prototype);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
exports.XksKeyAlreadyInUseException = XksKeyAlreadyInUseException;
|
|
447
|
+
class XksKeyInvalidConfigurationException extends KMSServiceException_1.KMSServiceException {
|
|
448
|
+
name = "XksKeyInvalidConfigurationException";
|
|
449
|
+
$fault = "client";
|
|
450
|
+
constructor(opts) {
|
|
451
|
+
super({
|
|
452
|
+
name: "XksKeyInvalidConfigurationException",
|
|
453
|
+
$fault: "client",
|
|
454
|
+
...opts,
|
|
455
|
+
});
|
|
456
|
+
Object.setPrototypeOf(this, XksKeyInvalidConfigurationException.prototype);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
exports.XksKeyInvalidConfigurationException = XksKeyInvalidConfigurationException;
|
|
460
|
+
class XksKeyNotFoundException extends KMSServiceException_1.KMSServiceException {
|
|
461
|
+
name = "XksKeyNotFoundException";
|
|
462
|
+
$fault = "client";
|
|
463
|
+
constructor(opts) {
|
|
464
|
+
super({
|
|
465
|
+
name: "XksKeyNotFoundException",
|
|
466
|
+
$fault: "client",
|
|
467
|
+
...opts,
|
|
468
|
+
});
|
|
469
|
+
Object.setPrototypeOf(this, XksKeyNotFoundException.prototype);
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
exports.XksKeyNotFoundException = XksKeyNotFoundException;
|
|
473
|
+
class CustomKeyStoreHasCMKsException extends KMSServiceException_1.KMSServiceException {
|
|
474
|
+
name = "CustomKeyStoreHasCMKsException";
|
|
475
|
+
$fault = "client";
|
|
476
|
+
constructor(opts) {
|
|
477
|
+
super({
|
|
478
|
+
name: "CustomKeyStoreHasCMKsException",
|
|
479
|
+
$fault: "client",
|
|
480
|
+
...opts,
|
|
481
|
+
});
|
|
482
|
+
Object.setPrototypeOf(this, CustomKeyStoreHasCMKsException.prototype);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
exports.CustomKeyStoreHasCMKsException = CustomKeyStoreHasCMKsException;
|
|
486
|
+
class IncorrectKeyException extends KMSServiceException_1.KMSServiceException {
|
|
487
|
+
name = "IncorrectKeyException";
|
|
488
|
+
$fault = "client";
|
|
489
|
+
constructor(opts) {
|
|
490
|
+
super({
|
|
491
|
+
name: "IncorrectKeyException",
|
|
492
|
+
$fault: "client",
|
|
493
|
+
...opts,
|
|
494
|
+
});
|
|
495
|
+
Object.setPrototypeOf(this, IncorrectKeyException.prototype);
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
exports.IncorrectKeyException = IncorrectKeyException;
|
|
499
|
+
class InvalidCiphertextException extends KMSServiceException_1.KMSServiceException {
|
|
500
|
+
name = "InvalidCiphertextException";
|
|
501
|
+
$fault = "client";
|
|
502
|
+
constructor(opts) {
|
|
503
|
+
super({
|
|
504
|
+
name: "InvalidCiphertextException",
|
|
505
|
+
$fault: "client",
|
|
506
|
+
...opts,
|
|
507
|
+
});
|
|
508
|
+
Object.setPrototypeOf(this, InvalidCiphertextException.prototype);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
exports.InvalidCiphertextException = InvalidCiphertextException;
|
|
512
|
+
class InvalidKeyUsageException extends KMSServiceException_1.KMSServiceException {
|
|
513
|
+
name = "InvalidKeyUsageException";
|
|
514
|
+
$fault = "client";
|
|
515
|
+
constructor(opts) {
|
|
516
|
+
super({
|
|
517
|
+
name: "InvalidKeyUsageException",
|
|
518
|
+
$fault: "client",
|
|
519
|
+
...opts,
|
|
520
|
+
});
|
|
521
|
+
Object.setPrototypeOf(this, InvalidKeyUsageException.prototype);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
exports.InvalidKeyUsageException = InvalidKeyUsageException;
|
|
525
|
+
class KeyUnavailableException extends KMSServiceException_1.KMSServiceException {
|
|
526
|
+
name = "KeyUnavailableException";
|
|
527
|
+
$fault = "server";
|
|
528
|
+
constructor(opts) {
|
|
529
|
+
super({
|
|
530
|
+
name: "KeyUnavailableException",
|
|
531
|
+
$fault: "server",
|
|
532
|
+
...opts,
|
|
533
|
+
});
|
|
534
|
+
Object.setPrototypeOf(this, KeyUnavailableException.prototype);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
exports.KeyUnavailableException = KeyUnavailableException;
|
|
538
|
+
class InvalidMarkerException extends KMSServiceException_1.KMSServiceException {
|
|
539
|
+
name = "InvalidMarkerException";
|
|
540
|
+
$fault = "client";
|
|
541
|
+
constructor(opts) {
|
|
542
|
+
super({
|
|
543
|
+
name: "InvalidMarkerException",
|
|
544
|
+
$fault: "client",
|
|
545
|
+
...opts,
|
|
546
|
+
});
|
|
547
|
+
Object.setPrototypeOf(this, InvalidMarkerException.prototype);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
exports.InvalidMarkerException = InvalidMarkerException;
|
|
551
|
+
class ExpiredImportTokenException extends KMSServiceException_1.KMSServiceException {
|
|
552
|
+
name = "ExpiredImportTokenException";
|
|
553
|
+
$fault = "client";
|
|
554
|
+
constructor(opts) {
|
|
555
|
+
super({
|
|
556
|
+
name: "ExpiredImportTokenException",
|
|
557
|
+
$fault: "client",
|
|
558
|
+
...opts,
|
|
559
|
+
});
|
|
560
|
+
Object.setPrototypeOf(this, ExpiredImportTokenException.prototype);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
exports.ExpiredImportTokenException = ExpiredImportTokenException;
|
|
564
|
+
class IncorrectKeyMaterialException extends KMSServiceException_1.KMSServiceException {
|
|
565
|
+
name = "IncorrectKeyMaterialException";
|
|
566
|
+
$fault = "client";
|
|
567
|
+
constructor(opts) {
|
|
568
|
+
super({
|
|
569
|
+
name: "IncorrectKeyMaterialException",
|
|
570
|
+
$fault: "client",
|
|
571
|
+
...opts,
|
|
572
|
+
});
|
|
573
|
+
Object.setPrototypeOf(this, IncorrectKeyMaterialException.prototype);
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
exports.IncorrectKeyMaterialException = IncorrectKeyMaterialException;
|
|
577
|
+
class InvalidImportTokenException extends KMSServiceException_1.KMSServiceException {
|
|
578
|
+
name = "InvalidImportTokenException";
|
|
579
|
+
$fault = "client";
|
|
580
|
+
constructor(opts) {
|
|
581
|
+
super({
|
|
582
|
+
name: "InvalidImportTokenException",
|
|
583
|
+
$fault: "client",
|
|
584
|
+
...opts,
|
|
585
|
+
});
|
|
586
|
+
Object.setPrototypeOf(this, InvalidImportTokenException.prototype);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
exports.InvalidImportTokenException = InvalidImportTokenException;
|
|
590
|
+
class InvalidGrantIdException extends KMSServiceException_1.KMSServiceException {
|
|
591
|
+
name = "InvalidGrantIdException";
|
|
592
|
+
$fault = "client";
|
|
593
|
+
constructor(opts) {
|
|
594
|
+
super({
|
|
595
|
+
name: "InvalidGrantIdException",
|
|
596
|
+
$fault: "client",
|
|
597
|
+
...opts,
|
|
598
|
+
});
|
|
599
|
+
Object.setPrototypeOf(this, InvalidGrantIdException.prototype);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
exports.InvalidGrantIdException = InvalidGrantIdException;
|
|
603
|
+
class KMSInvalidMacException extends KMSServiceException_1.KMSServiceException {
|
|
604
|
+
name = "KMSInvalidMacException";
|
|
605
|
+
$fault = "client";
|
|
606
|
+
constructor(opts) {
|
|
607
|
+
super({
|
|
608
|
+
name: "KMSInvalidMacException",
|
|
609
|
+
$fault: "client",
|
|
610
|
+
...opts,
|
|
611
|
+
});
|
|
612
|
+
Object.setPrototypeOf(this, KMSInvalidMacException.prototype);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
exports.KMSInvalidMacException = KMSInvalidMacException;
|
|
616
|
+
class KMSInvalidSignatureException extends KMSServiceException_1.KMSServiceException {
|
|
617
|
+
name = "KMSInvalidSignatureException";
|
|
618
|
+
$fault = "client";
|
|
619
|
+
constructor(opts) {
|
|
620
|
+
super({
|
|
621
|
+
name: "KMSInvalidSignatureException",
|
|
622
|
+
$fault: "client",
|
|
623
|
+
...opts,
|
|
624
|
+
});
|
|
625
|
+
Object.setPrototypeOf(this, KMSInvalidSignatureException.prototype);
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
exports.KMSInvalidSignatureException = KMSInvalidSignatureException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2014-11-01",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.kms",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
xmlNamespace: "https://trent.amazonaws.com/doc/2014-11-01/",
|
|
33
35
|
version: "2014-11-01",
|
|
34
36
|
serviceTarget: "TrentService",
|