@aws-sdk/client-kms 3.1068.0 → 3.1069.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,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.KMSServiceException = exports.__ServiceException = void 0;
4
- const client_1 = require("@smithy/core/client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
6
- class KMSServiceException extends client_1.ServiceException {
1
+ const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
+ exports.__ServiceException = __ServiceException;
3
+ exports.KMSServiceException = class KMSServiceException extends __ServiceException {
7
4
  constructor(options) {
8
5
  super(options);
9
6
  Object.setPrototypeOf(this, KMSServiceException.prototype);
10
7
  }
11
- }
12
- exports.KMSServiceException = KMSServiceException;
8
+ };
@@ -1,8 +1,5 @@
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 {
1
+ const { KMSServiceException: __BaseException } = require("./KMSServiceException");
2
+ exports.AlreadyExistsException = class AlreadyExistsException extends __BaseException {
6
3
  name = "AlreadyExistsException";
7
4
  $fault = "client";
8
5
  constructor(opts) {
@@ -13,9 +10,8 @@ class AlreadyExistsException extends KMSServiceException_1.KMSServiceException {
13
10
  });
14
11
  Object.setPrototypeOf(this, AlreadyExistsException.prototype);
15
12
  }
16
- }
17
- exports.AlreadyExistsException = AlreadyExistsException;
18
- class DependencyTimeoutException extends KMSServiceException_1.KMSServiceException {
13
+ };
14
+ exports.DependencyTimeoutException = class DependencyTimeoutException extends __BaseException {
19
15
  name = "DependencyTimeoutException";
20
16
  $fault = "server";
21
17
  constructor(opts) {
@@ -26,9 +22,8 @@ class DependencyTimeoutException extends KMSServiceException_1.KMSServiceExcepti
26
22
  });
27
23
  Object.setPrototypeOf(this, DependencyTimeoutException.prototype);
28
24
  }
29
- }
30
- exports.DependencyTimeoutException = DependencyTimeoutException;
31
- class InvalidArnException extends KMSServiceException_1.KMSServiceException {
25
+ };
26
+ exports.InvalidArnException = class InvalidArnException extends __BaseException {
32
27
  name = "InvalidArnException";
33
28
  $fault = "client";
34
29
  constructor(opts) {
@@ -39,9 +34,8 @@ class InvalidArnException extends KMSServiceException_1.KMSServiceException {
39
34
  });
40
35
  Object.setPrototypeOf(this, InvalidArnException.prototype);
41
36
  }
42
- }
43
- exports.InvalidArnException = InvalidArnException;
44
- class KMSInternalException extends KMSServiceException_1.KMSServiceException {
37
+ };
38
+ exports.KMSInternalException = class KMSInternalException extends __BaseException {
45
39
  name = "KMSInternalException";
46
40
  $fault = "server";
47
41
  constructor(opts) {
@@ -52,9 +46,8 @@ class KMSInternalException extends KMSServiceException_1.KMSServiceException {
52
46
  });
53
47
  Object.setPrototypeOf(this, KMSInternalException.prototype);
54
48
  }
55
- }
56
- exports.KMSInternalException = KMSInternalException;
57
- class KMSInvalidStateException extends KMSServiceException_1.KMSServiceException {
49
+ };
50
+ exports.KMSInvalidStateException = class KMSInvalidStateException extends __BaseException {
58
51
  name = "KMSInvalidStateException";
59
52
  $fault = "client";
60
53
  constructor(opts) {
@@ -65,9 +58,8 @@ class KMSInvalidStateException extends KMSServiceException_1.KMSServiceException
65
58
  });
66
59
  Object.setPrototypeOf(this, KMSInvalidStateException.prototype);
67
60
  }
68
- }
69
- exports.KMSInvalidStateException = KMSInvalidStateException;
70
- class NotFoundException extends KMSServiceException_1.KMSServiceException {
61
+ };
62
+ exports.NotFoundException = class NotFoundException extends __BaseException {
71
63
  name = "NotFoundException";
72
64
  $fault = "client";
73
65
  constructor(opts) {
@@ -78,9 +70,8 @@ class NotFoundException extends KMSServiceException_1.KMSServiceException {
78
70
  });
79
71
  Object.setPrototypeOf(this, NotFoundException.prototype);
80
72
  }
81
- }
82
- exports.NotFoundException = NotFoundException;
83
- class CloudHsmClusterInUseException extends KMSServiceException_1.KMSServiceException {
73
+ };
74
+ exports.CloudHsmClusterInUseException = class CloudHsmClusterInUseException extends __BaseException {
84
75
  name = "CloudHsmClusterInUseException";
85
76
  $fault = "client";
86
77
  constructor(opts) {
@@ -91,9 +82,8 @@ class CloudHsmClusterInUseException extends KMSServiceException_1.KMSServiceExce
91
82
  });
92
83
  Object.setPrototypeOf(this, CloudHsmClusterInUseException.prototype);
93
84
  }
94
- }
95
- exports.CloudHsmClusterInUseException = CloudHsmClusterInUseException;
96
- class CloudHsmClusterInvalidConfigurationException extends KMSServiceException_1.KMSServiceException {
85
+ };
86
+ exports.CloudHsmClusterInvalidConfigurationException = class CloudHsmClusterInvalidConfigurationException extends __BaseException {
97
87
  name = "CloudHsmClusterInvalidConfigurationException";
98
88
  $fault = "client";
99
89
  constructor(opts) {
@@ -104,9 +94,8 @@ class CloudHsmClusterInvalidConfigurationException extends KMSServiceException_1
104
94
  });
105
95
  Object.setPrototypeOf(this, CloudHsmClusterInvalidConfigurationException.prototype);
106
96
  }
107
- }
108
- exports.CloudHsmClusterInvalidConfigurationException = CloudHsmClusterInvalidConfigurationException;
109
- class CloudHsmClusterNotActiveException extends KMSServiceException_1.KMSServiceException {
97
+ };
98
+ exports.CloudHsmClusterNotActiveException = class CloudHsmClusterNotActiveException extends __BaseException {
110
99
  name = "CloudHsmClusterNotActiveException";
111
100
  $fault = "client";
112
101
  constructor(opts) {
@@ -117,9 +106,8 @@ class CloudHsmClusterNotActiveException extends KMSServiceException_1.KMSService
117
106
  });
118
107
  Object.setPrototypeOf(this, CloudHsmClusterNotActiveException.prototype);
119
108
  }
120
- }
121
- exports.CloudHsmClusterNotActiveException = CloudHsmClusterNotActiveException;
122
- class CloudHsmClusterNotFoundException extends KMSServiceException_1.KMSServiceException {
109
+ };
110
+ exports.CloudHsmClusterNotFoundException = class CloudHsmClusterNotFoundException extends __BaseException {
123
111
  name = "CloudHsmClusterNotFoundException";
124
112
  $fault = "client";
125
113
  constructor(opts) {
@@ -130,9 +118,8 @@ class CloudHsmClusterNotFoundException extends KMSServiceException_1.KMSServiceE
130
118
  });
131
119
  Object.setPrototypeOf(this, CloudHsmClusterNotFoundException.prototype);
132
120
  }
133
- }
134
- exports.CloudHsmClusterNotFoundException = CloudHsmClusterNotFoundException;
135
- class CloudHsmClusterNotRelatedException extends KMSServiceException_1.KMSServiceException {
121
+ };
122
+ exports.CloudHsmClusterNotRelatedException = class CloudHsmClusterNotRelatedException extends __BaseException {
136
123
  name = "CloudHsmClusterNotRelatedException";
137
124
  $fault = "client";
138
125
  constructor(opts) {
@@ -143,9 +130,8 @@ class CloudHsmClusterNotRelatedException extends KMSServiceException_1.KMSServic
143
130
  });
144
131
  Object.setPrototypeOf(this, CloudHsmClusterNotRelatedException.prototype);
145
132
  }
146
- }
147
- exports.CloudHsmClusterNotRelatedException = CloudHsmClusterNotRelatedException;
148
- class ConflictException extends KMSServiceException_1.KMSServiceException {
133
+ };
134
+ exports.ConflictException = class ConflictException extends __BaseException {
149
135
  name = "ConflictException";
150
136
  $fault = "client";
151
137
  constructor(opts) {
@@ -156,9 +142,8 @@ class ConflictException extends KMSServiceException_1.KMSServiceException {
156
142
  });
157
143
  Object.setPrototypeOf(this, ConflictException.prototype);
158
144
  }
159
- }
160
- exports.ConflictException = ConflictException;
161
- class CustomKeyStoreInvalidStateException extends KMSServiceException_1.KMSServiceException {
145
+ };
146
+ exports.CustomKeyStoreInvalidStateException = class CustomKeyStoreInvalidStateException extends __BaseException {
162
147
  name = "CustomKeyStoreInvalidStateException";
163
148
  $fault = "client";
164
149
  constructor(opts) {
@@ -169,9 +154,8 @@ class CustomKeyStoreInvalidStateException extends KMSServiceException_1.KMSServi
169
154
  });
170
155
  Object.setPrototypeOf(this, CustomKeyStoreInvalidStateException.prototype);
171
156
  }
172
- }
173
- exports.CustomKeyStoreInvalidStateException = CustomKeyStoreInvalidStateException;
174
- class CustomKeyStoreNotFoundException extends KMSServiceException_1.KMSServiceException {
157
+ };
158
+ exports.CustomKeyStoreNotFoundException = class CustomKeyStoreNotFoundException extends __BaseException {
175
159
  name = "CustomKeyStoreNotFoundException";
176
160
  $fault = "client";
177
161
  constructor(opts) {
@@ -182,9 +166,8 @@ class CustomKeyStoreNotFoundException extends KMSServiceException_1.KMSServiceEx
182
166
  });
183
167
  Object.setPrototypeOf(this, CustomKeyStoreNotFoundException.prototype);
184
168
  }
185
- }
186
- exports.CustomKeyStoreNotFoundException = CustomKeyStoreNotFoundException;
187
- class InvalidAliasNameException extends KMSServiceException_1.KMSServiceException {
169
+ };
170
+ exports.InvalidAliasNameException = class InvalidAliasNameException extends __BaseException {
188
171
  name = "InvalidAliasNameException";
189
172
  $fault = "client";
190
173
  constructor(opts) {
@@ -195,9 +178,8 @@ class InvalidAliasNameException extends KMSServiceException_1.KMSServiceExceptio
195
178
  });
196
179
  Object.setPrototypeOf(this, InvalidAliasNameException.prototype);
197
180
  }
198
- }
199
- exports.InvalidAliasNameException = InvalidAliasNameException;
200
- class LimitExceededException extends KMSServiceException_1.KMSServiceException {
181
+ };
182
+ exports.LimitExceededException = class LimitExceededException extends __BaseException {
201
183
  name = "LimitExceededException";
202
184
  $fault = "client";
203
185
  constructor(opts) {
@@ -208,9 +190,8 @@ class LimitExceededException extends KMSServiceException_1.KMSServiceException {
208
190
  });
209
191
  Object.setPrototypeOf(this, LimitExceededException.prototype);
210
192
  }
211
- }
212
- exports.LimitExceededException = LimitExceededException;
213
- class CustomKeyStoreNameInUseException extends KMSServiceException_1.KMSServiceException {
193
+ };
194
+ exports.CustomKeyStoreNameInUseException = class CustomKeyStoreNameInUseException extends __BaseException {
214
195
  name = "CustomKeyStoreNameInUseException";
215
196
  $fault = "client";
216
197
  constructor(opts) {
@@ -221,9 +202,8 @@ class CustomKeyStoreNameInUseException extends KMSServiceException_1.KMSServiceE
221
202
  });
222
203
  Object.setPrototypeOf(this, CustomKeyStoreNameInUseException.prototype);
223
204
  }
224
- }
225
- exports.CustomKeyStoreNameInUseException = CustomKeyStoreNameInUseException;
226
- class IncorrectTrustAnchorException extends KMSServiceException_1.KMSServiceException {
205
+ };
206
+ exports.IncorrectTrustAnchorException = class IncorrectTrustAnchorException extends __BaseException {
227
207
  name = "IncorrectTrustAnchorException";
228
208
  $fault = "client";
229
209
  constructor(opts) {
@@ -234,9 +214,8 @@ class IncorrectTrustAnchorException extends KMSServiceException_1.KMSServiceExce
234
214
  });
235
215
  Object.setPrototypeOf(this, IncorrectTrustAnchorException.prototype);
236
216
  }
237
- }
238
- exports.IncorrectTrustAnchorException = IncorrectTrustAnchorException;
239
- class XksProxyIncorrectAuthenticationCredentialException extends KMSServiceException_1.KMSServiceException {
217
+ };
218
+ exports.XksProxyIncorrectAuthenticationCredentialException = class XksProxyIncorrectAuthenticationCredentialException extends __BaseException {
240
219
  name = "XksProxyIncorrectAuthenticationCredentialException";
241
220
  $fault = "client";
242
221
  constructor(opts) {
@@ -247,9 +226,8 @@ class XksProxyIncorrectAuthenticationCredentialException extends KMSServiceExcep
247
226
  });
248
227
  Object.setPrototypeOf(this, XksProxyIncorrectAuthenticationCredentialException.prototype);
249
228
  }
250
- }
251
- exports.XksProxyIncorrectAuthenticationCredentialException = XksProxyIncorrectAuthenticationCredentialException;
252
- class XksProxyInvalidConfigurationException extends KMSServiceException_1.KMSServiceException {
229
+ };
230
+ exports.XksProxyInvalidConfigurationException = class XksProxyInvalidConfigurationException extends __BaseException {
253
231
  name = "XksProxyInvalidConfigurationException";
254
232
  $fault = "client";
255
233
  constructor(opts) {
@@ -260,9 +238,8 @@ class XksProxyInvalidConfigurationException extends KMSServiceException_1.KMSSer
260
238
  });
261
239
  Object.setPrototypeOf(this, XksProxyInvalidConfigurationException.prototype);
262
240
  }
263
- }
264
- exports.XksProxyInvalidConfigurationException = XksProxyInvalidConfigurationException;
265
- class XksProxyInvalidResponseException extends KMSServiceException_1.KMSServiceException {
241
+ };
242
+ exports.XksProxyInvalidResponseException = class XksProxyInvalidResponseException extends __BaseException {
266
243
  name = "XksProxyInvalidResponseException";
267
244
  $fault = "client";
268
245
  constructor(opts) {
@@ -273,9 +250,8 @@ class XksProxyInvalidResponseException extends KMSServiceException_1.KMSServiceE
273
250
  });
274
251
  Object.setPrototypeOf(this, XksProxyInvalidResponseException.prototype);
275
252
  }
276
- }
277
- exports.XksProxyInvalidResponseException = XksProxyInvalidResponseException;
278
- class XksProxyUriEndpointInUseException extends KMSServiceException_1.KMSServiceException {
253
+ };
254
+ exports.XksProxyUriEndpointInUseException = class XksProxyUriEndpointInUseException extends __BaseException {
279
255
  name = "XksProxyUriEndpointInUseException";
280
256
  $fault = "client";
281
257
  constructor(opts) {
@@ -286,9 +262,8 @@ class XksProxyUriEndpointInUseException extends KMSServiceException_1.KMSService
286
262
  });
287
263
  Object.setPrototypeOf(this, XksProxyUriEndpointInUseException.prototype);
288
264
  }
289
- }
290
- exports.XksProxyUriEndpointInUseException = XksProxyUriEndpointInUseException;
291
- class XksProxyUriInUseException extends KMSServiceException_1.KMSServiceException {
265
+ };
266
+ exports.XksProxyUriInUseException = class XksProxyUriInUseException extends __BaseException {
292
267
  name = "XksProxyUriInUseException";
293
268
  $fault = "client";
294
269
  constructor(opts) {
@@ -299,9 +274,8 @@ class XksProxyUriInUseException extends KMSServiceException_1.KMSServiceExceptio
299
274
  });
300
275
  Object.setPrototypeOf(this, XksProxyUriInUseException.prototype);
301
276
  }
302
- }
303
- exports.XksProxyUriInUseException = XksProxyUriInUseException;
304
- class XksProxyUriUnreachableException extends KMSServiceException_1.KMSServiceException {
277
+ };
278
+ exports.XksProxyUriUnreachableException = class XksProxyUriUnreachableException extends __BaseException {
305
279
  name = "XksProxyUriUnreachableException";
306
280
  $fault = "client";
307
281
  constructor(opts) {
@@ -312,9 +286,8 @@ class XksProxyUriUnreachableException extends KMSServiceException_1.KMSServiceEx
312
286
  });
313
287
  Object.setPrototypeOf(this, XksProxyUriUnreachableException.prototype);
314
288
  }
315
- }
316
- exports.XksProxyUriUnreachableException = XksProxyUriUnreachableException;
317
- class XksProxyVpcEndpointServiceInUseException extends KMSServiceException_1.KMSServiceException {
289
+ };
290
+ exports.XksProxyVpcEndpointServiceInUseException = class XksProxyVpcEndpointServiceInUseException extends __BaseException {
318
291
  name = "XksProxyVpcEndpointServiceInUseException";
319
292
  $fault = "client";
320
293
  constructor(opts) {
@@ -325,9 +298,8 @@ class XksProxyVpcEndpointServiceInUseException extends KMSServiceException_1.KMS
325
298
  });
326
299
  Object.setPrototypeOf(this, XksProxyVpcEndpointServiceInUseException.prototype);
327
300
  }
328
- }
329
- exports.XksProxyVpcEndpointServiceInUseException = XksProxyVpcEndpointServiceInUseException;
330
- class XksProxyVpcEndpointServiceInvalidConfigurationException extends KMSServiceException_1.KMSServiceException {
301
+ };
302
+ exports.XksProxyVpcEndpointServiceInvalidConfigurationException = class XksProxyVpcEndpointServiceInvalidConfigurationException extends __BaseException {
331
303
  name = "XksProxyVpcEndpointServiceInvalidConfigurationException";
332
304
  $fault = "client";
333
305
  constructor(opts) {
@@ -338,9 +310,8 @@ class XksProxyVpcEndpointServiceInvalidConfigurationException extends KMSService
338
310
  });
339
311
  Object.setPrototypeOf(this, XksProxyVpcEndpointServiceInvalidConfigurationException.prototype);
340
312
  }
341
- }
342
- exports.XksProxyVpcEndpointServiceInvalidConfigurationException = XksProxyVpcEndpointServiceInvalidConfigurationException;
343
- class XksProxyVpcEndpointServiceNotFoundException extends KMSServiceException_1.KMSServiceException {
313
+ };
314
+ exports.XksProxyVpcEndpointServiceNotFoundException = class XksProxyVpcEndpointServiceNotFoundException extends __BaseException {
344
315
  name = "XksProxyVpcEndpointServiceNotFoundException";
345
316
  $fault = "client";
346
317
  constructor(opts) {
@@ -351,9 +322,8 @@ class XksProxyVpcEndpointServiceNotFoundException extends KMSServiceException_1.
351
322
  });
352
323
  Object.setPrototypeOf(this, XksProxyVpcEndpointServiceNotFoundException.prototype);
353
324
  }
354
- }
355
- exports.XksProxyVpcEndpointServiceNotFoundException = XksProxyVpcEndpointServiceNotFoundException;
356
- class DisabledException extends KMSServiceException_1.KMSServiceException {
325
+ };
326
+ exports.DisabledException = class DisabledException extends __BaseException {
357
327
  name = "DisabledException";
358
328
  $fault = "client";
359
329
  constructor(opts) {
@@ -364,9 +334,8 @@ class DisabledException extends KMSServiceException_1.KMSServiceException {
364
334
  });
365
335
  Object.setPrototypeOf(this, DisabledException.prototype);
366
336
  }
367
- }
368
- exports.DisabledException = DisabledException;
369
- class DryRunOperationException extends KMSServiceException_1.KMSServiceException {
337
+ };
338
+ exports.DryRunOperationException = class DryRunOperationException extends __BaseException {
370
339
  name = "DryRunOperationException";
371
340
  $fault = "client";
372
341
  constructor(opts) {
@@ -377,9 +346,8 @@ class DryRunOperationException extends KMSServiceException_1.KMSServiceException
377
346
  });
378
347
  Object.setPrototypeOf(this, DryRunOperationException.prototype);
379
348
  }
380
- }
381
- exports.DryRunOperationException = DryRunOperationException;
382
- class InvalidGrantTokenException extends KMSServiceException_1.KMSServiceException {
349
+ };
350
+ exports.InvalidGrantTokenException = class InvalidGrantTokenException extends __BaseException {
383
351
  name = "InvalidGrantTokenException";
384
352
  $fault = "client";
385
353
  constructor(opts) {
@@ -390,9 +358,8 @@ class InvalidGrantTokenException extends KMSServiceException_1.KMSServiceExcepti
390
358
  });
391
359
  Object.setPrototypeOf(this, InvalidGrantTokenException.prototype);
392
360
  }
393
- }
394
- exports.InvalidGrantTokenException = InvalidGrantTokenException;
395
- class MalformedPolicyDocumentException extends KMSServiceException_1.KMSServiceException {
361
+ };
362
+ exports.MalformedPolicyDocumentException = class MalformedPolicyDocumentException extends __BaseException {
396
363
  name = "MalformedPolicyDocumentException";
397
364
  $fault = "client";
398
365
  constructor(opts) {
@@ -403,9 +370,8 @@ class MalformedPolicyDocumentException extends KMSServiceException_1.KMSServiceE
403
370
  });
404
371
  Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
405
372
  }
406
- }
407
- exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
408
- class TagException extends KMSServiceException_1.KMSServiceException {
373
+ };
374
+ exports.TagException = class TagException extends __BaseException {
409
375
  name = "TagException";
410
376
  $fault = "client";
411
377
  constructor(opts) {
@@ -416,9 +382,8 @@ class TagException extends KMSServiceException_1.KMSServiceException {
416
382
  });
417
383
  Object.setPrototypeOf(this, TagException.prototype);
418
384
  }
419
- }
420
- exports.TagException = TagException;
421
- class UnsupportedOperationException extends KMSServiceException_1.KMSServiceException {
385
+ };
386
+ exports.UnsupportedOperationException = class UnsupportedOperationException extends __BaseException {
422
387
  name = "UnsupportedOperationException";
423
388
  $fault = "client";
424
389
  constructor(opts) {
@@ -429,9 +394,8 @@ class UnsupportedOperationException extends KMSServiceException_1.KMSServiceExce
429
394
  });
430
395
  Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
431
396
  }
432
- }
433
- exports.UnsupportedOperationException = UnsupportedOperationException;
434
- class XksKeyAlreadyInUseException extends KMSServiceException_1.KMSServiceException {
397
+ };
398
+ exports.XksKeyAlreadyInUseException = class XksKeyAlreadyInUseException extends __BaseException {
435
399
  name = "XksKeyAlreadyInUseException";
436
400
  $fault = "client";
437
401
  constructor(opts) {
@@ -442,9 +406,8 @@ class XksKeyAlreadyInUseException extends KMSServiceException_1.KMSServiceExcept
442
406
  });
443
407
  Object.setPrototypeOf(this, XksKeyAlreadyInUseException.prototype);
444
408
  }
445
- }
446
- exports.XksKeyAlreadyInUseException = XksKeyAlreadyInUseException;
447
- class XksKeyInvalidConfigurationException extends KMSServiceException_1.KMSServiceException {
409
+ };
410
+ exports.XksKeyInvalidConfigurationException = class XksKeyInvalidConfigurationException extends __BaseException {
448
411
  name = "XksKeyInvalidConfigurationException";
449
412
  $fault = "client";
450
413
  constructor(opts) {
@@ -455,9 +418,8 @@ class XksKeyInvalidConfigurationException extends KMSServiceException_1.KMSServi
455
418
  });
456
419
  Object.setPrototypeOf(this, XksKeyInvalidConfigurationException.prototype);
457
420
  }
458
- }
459
- exports.XksKeyInvalidConfigurationException = XksKeyInvalidConfigurationException;
460
- class XksKeyNotFoundException extends KMSServiceException_1.KMSServiceException {
421
+ };
422
+ exports.XksKeyNotFoundException = class XksKeyNotFoundException extends __BaseException {
461
423
  name = "XksKeyNotFoundException";
462
424
  $fault = "client";
463
425
  constructor(opts) {
@@ -468,9 +430,8 @@ class XksKeyNotFoundException extends KMSServiceException_1.KMSServiceException
468
430
  });
469
431
  Object.setPrototypeOf(this, XksKeyNotFoundException.prototype);
470
432
  }
471
- }
472
- exports.XksKeyNotFoundException = XksKeyNotFoundException;
473
- class CustomKeyStoreHasCMKsException extends KMSServiceException_1.KMSServiceException {
433
+ };
434
+ exports.CustomKeyStoreHasCMKsException = class CustomKeyStoreHasCMKsException extends __BaseException {
474
435
  name = "CustomKeyStoreHasCMKsException";
475
436
  $fault = "client";
476
437
  constructor(opts) {
@@ -481,9 +442,8 @@ class CustomKeyStoreHasCMKsException extends KMSServiceException_1.KMSServiceExc
481
442
  });
482
443
  Object.setPrototypeOf(this, CustomKeyStoreHasCMKsException.prototype);
483
444
  }
484
- }
485
- exports.CustomKeyStoreHasCMKsException = CustomKeyStoreHasCMKsException;
486
- class IncorrectKeyException extends KMSServiceException_1.KMSServiceException {
445
+ };
446
+ exports.IncorrectKeyException = class IncorrectKeyException extends __BaseException {
487
447
  name = "IncorrectKeyException";
488
448
  $fault = "client";
489
449
  constructor(opts) {
@@ -494,9 +454,8 @@ class IncorrectKeyException extends KMSServiceException_1.KMSServiceException {
494
454
  });
495
455
  Object.setPrototypeOf(this, IncorrectKeyException.prototype);
496
456
  }
497
- }
498
- exports.IncorrectKeyException = IncorrectKeyException;
499
- class InvalidCiphertextException extends KMSServiceException_1.KMSServiceException {
457
+ };
458
+ exports.InvalidCiphertextException = class InvalidCiphertextException extends __BaseException {
500
459
  name = "InvalidCiphertextException";
501
460
  $fault = "client";
502
461
  constructor(opts) {
@@ -507,9 +466,8 @@ class InvalidCiphertextException extends KMSServiceException_1.KMSServiceExcepti
507
466
  });
508
467
  Object.setPrototypeOf(this, InvalidCiphertextException.prototype);
509
468
  }
510
- }
511
- exports.InvalidCiphertextException = InvalidCiphertextException;
512
- class InvalidKeyUsageException extends KMSServiceException_1.KMSServiceException {
469
+ };
470
+ exports.InvalidKeyUsageException = class InvalidKeyUsageException extends __BaseException {
513
471
  name = "InvalidKeyUsageException";
514
472
  $fault = "client";
515
473
  constructor(opts) {
@@ -520,9 +478,8 @@ class InvalidKeyUsageException extends KMSServiceException_1.KMSServiceException
520
478
  });
521
479
  Object.setPrototypeOf(this, InvalidKeyUsageException.prototype);
522
480
  }
523
- }
524
- exports.InvalidKeyUsageException = InvalidKeyUsageException;
525
- class KeyUnavailableException extends KMSServiceException_1.KMSServiceException {
481
+ };
482
+ exports.KeyUnavailableException = class KeyUnavailableException extends __BaseException {
526
483
  name = "KeyUnavailableException";
527
484
  $fault = "server";
528
485
  constructor(opts) {
@@ -533,9 +490,8 @@ class KeyUnavailableException extends KMSServiceException_1.KMSServiceException
533
490
  });
534
491
  Object.setPrototypeOf(this, KeyUnavailableException.prototype);
535
492
  }
536
- }
537
- exports.KeyUnavailableException = KeyUnavailableException;
538
- class InvalidMarkerException extends KMSServiceException_1.KMSServiceException {
493
+ };
494
+ exports.InvalidMarkerException = class InvalidMarkerException extends __BaseException {
539
495
  name = "InvalidMarkerException";
540
496
  $fault = "client";
541
497
  constructor(opts) {
@@ -546,9 +502,8 @@ class InvalidMarkerException extends KMSServiceException_1.KMSServiceException {
546
502
  });
547
503
  Object.setPrototypeOf(this, InvalidMarkerException.prototype);
548
504
  }
549
- }
550
- exports.InvalidMarkerException = InvalidMarkerException;
551
- class ExpiredImportTokenException extends KMSServiceException_1.KMSServiceException {
505
+ };
506
+ exports.ExpiredImportTokenException = class ExpiredImportTokenException extends __BaseException {
552
507
  name = "ExpiredImportTokenException";
553
508
  $fault = "client";
554
509
  constructor(opts) {
@@ -559,9 +514,8 @@ class ExpiredImportTokenException extends KMSServiceException_1.KMSServiceExcept
559
514
  });
560
515
  Object.setPrototypeOf(this, ExpiredImportTokenException.prototype);
561
516
  }
562
- }
563
- exports.ExpiredImportTokenException = ExpiredImportTokenException;
564
- class IncorrectKeyMaterialException extends KMSServiceException_1.KMSServiceException {
517
+ };
518
+ exports.IncorrectKeyMaterialException = class IncorrectKeyMaterialException extends __BaseException {
565
519
  name = "IncorrectKeyMaterialException";
566
520
  $fault = "client";
567
521
  constructor(opts) {
@@ -572,9 +526,8 @@ class IncorrectKeyMaterialException extends KMSServiceException_1.KMSServiceExce
572
526
  });
573
527
  Object.setPrototypeOf(this, IncorrectKeyMaterialException.prototype);
574
528
  }
575
- }
576
- exports.IncorrectKeyMaterialException = IncorrectKeyMaterialException;
577
- class InvalidImportTokenException extends KMSServiceException_1.KMSServiceException {
529
+ };
530
+ exports.InvalidImportTokenException = class InvalidImportTokenException extends __BaseException {
578
531
  name = "InvalidImportTokenException";
579
532
  $fault = "client";
580
533
  constructor(opts) {
@@ -585,9 +538,8 @@ class InvalidImportTokenException extends KMSServiceException_1.KMSServiceExcept
585
538
  });
586
539
  Object.setPrototypeOf(this, InvalidImportTokenException.prototype);
587
540
  }
588
- }
589
- exports.InvalidImportTokenException = InvalidImportTokenException;
590
- class InvalidGrantIdException extends KMSServiceException_1.KMSServiceException {
541
+ };
542
+ exports.InvalidGrantIdException = class InvalidGrantIdException extends __BaseException {
591
543
  name = "InvalidGrantIdException";
592
544
  $fault = "client";
593
545
  constructor(opts) {
@@ -598,9 +550,8 @@ class InvalidGrantIdException extends KMSServiceException_1.KMSServiceException
598
550
  });
599
551
  Object.setPrototypeOf(this, InvalidGrantIdException.prototype);
600
552
  }
601
- }
602
- exports.InvalidGrantIdException = InvalidGrantIdException;
603
- class KMSInvalidMacException extends KMSServiceException_1.KMSServiceException {
553
+ };
554
+ exports.KMSInvalidMacException = class KMSInvalidMacException extends __BaseException {
604
555
  name = "KMSInvalidMacException";
605
556
  $fault = "client";
606
557
  constructor(opts) {
@@ -611,9 +562,8 @@ class KMSInvalidMacException extends KMSServiceException_1.KMSServiceException {
611
562
  });
612
563
  Object.setPrototypeOf(this, KMSInvalidMacException.prototype);
613
564
  }
614
- }
615
- exports.KMSInvalidMacException = KMSInvalidMacException;
616
- class KMSInvalidSignatureException extends KMSServiceException_1.KMSServiceException {
565
+ };
566
+ exports.KMSInvalidSignatureException = class KMSInvalidSignatureException extends __BaseException {
617
567
  name = "KMSInvalidSignatureException";
618
568
  $fault = "client";
619
569
  constructor(opts) {
@@ -624,5 +574,4 @@ class KMSInvalidSignatureException extends KMSServiceException_1.KMSServiceExcep
624
574
  });
625
575
  Object.setPrototypeOf(this, KMSInvalidSignatureException.prototype);
626
576
  }
627
- }
628
- exports.KMSInvalidSignatureException = KMSInvalidSignatureException;
577
+ };
@@ -1,36 +1,32 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
- const client_1 = require("@aws-sdk/core/client");
8
- const client_2 = require("@smithy/core/client");
9
- const config_1 = require("@smithy/core/config");
10
- const retry_1 = require("@smithy/core/retry");
11
- const serde_1 = require("@smithy/core/serde");
12
- const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
13
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { Sha256 } = require("@aws-crypto/sha256-browser");
3
+ const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
4
+ const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
5
+ const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
6
+ const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
7
+ const { calculateBodyLength } = require("@smithy/core/serde");
8
+ const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
9
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
14
10
  const getRuntimeConfig = (config) => {
15
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
16
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
17
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
11
+ const defaultsMode = resolveDefaultsModeConfig(config);
12
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
13
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
14
  return {
19
15
  ...clientSharedValues,
20
16
  ...config,
21
17
  runtime: "browser",
22
18
  defaultsMode,
23
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
19
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
24
20
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
25
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
26
- maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
27
- region: config?.region ?? (0, client_2.invalidProvider)("Region is missing"),
28
- requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
29
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
30
- sha256: config?.sha256 ?? sha256_browser_1.Sha256,
31
- streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
32
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
33
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
21
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
22
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
23
+ region: config?.region ?? invalidProvider("Region is missing"),
24
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
+ sha256: config?.sha256 ?? Sha256,
27
+ streamCollector: config?.streamCollector ?? streamCollector,
28
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
34
30
  };
35
31
  };
36
32
  exports.getRuntimeConfig = getRuntimeConfig;