@aws-sdk/client-dynamodb 3.1067.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.DynamoDBServiceException = 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 DynamoDBServiceException extends client_1.ServiceException {
1
+ const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
+ exports.__ServiceException = __ServiceException;
3
+ exports.DynamoDBServiceException = class DynamoDBServiceException extends __ServiceException {
7
4
  constructor(options) {
8
5
  super(options);
9
6
  Object.setPrototypeOf(this, DynamoDBServiceException.prototype);
10
7
  }
11
- }
12
- exports.DynamoDBServiceException = DynamoDBServiceException;
8
+ };
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransactionCanceledException = exports.ConditionalCheckFailedException = exports.IndexNotFoundException = exports.ReplicaNotFoundException = exports.ReplicaAlreadyExistsException = exports.InvalidRestoreTimeException = exports.TableAlreadyExistsException = exports.ImportConflictException = exports.PointInTimeRecoveryUnavailableException = exports.InvalidExportTimeException = exports.ExportConflictException = exports.TransactionInProgressException = exports.IdempotentParameterMismatchException = exports.DuplicateItemException = exports.ImportNotFoundException = exports.GlobalTableNotFoundException = exports.ExportNotFoundException = exports.PolicyNotFoundException = exports.TransactionConflictException = exports.ResourceInUseException = exports.GlobalTableAlreadyExistsException = exports.TableNotFoundException = exports.TableInUseException = exports.LimitExceededException = exports.ContinuousBackupsUnavailableException = exports.ReplicatedWriteConflictException = exports.ItemCollectionSizeLimitExceededException = exports.ResourceNotFoundException = exports.ProvisionedThroughputExceededException = exports.InvalidEndpointException = exports.ThrottlingException = exports.RequestLimitExceeded = exports.InternalServerError = exports.BackupNotFoundException = exports.BackupInUseException = void 0;
4
- const DynamoDBServiceException_1 = require("./DynamoDBServiceException");
5
- class BackupInUseException extends DynamoDBServiceException_1.DynamoDBServiceException {
1
+ const { DynamoDBServiceException: __BaseException } = require("./DynamoDBServiceException");
2
+ exports.BackupInUseException = class BackupInUseException extends __BaseException {
6
3
  name = "BackupInUseException";
7
4
  $fault = "client";
8
5
  constructor(opts) {
@@ -13,9 +10,8 @@ class BackupInUseException extends DynamoDBServiceException_1.DynamoDBServiceExc
13
10
  });
14
11
  Object.setPrototypeOf(this, BackupInUseException.prototype);
15
12
  }
16
- }
17
- exports.BackupInUseException = BackupInUseException;
18
- class BackupNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
13
+ };
14
+ exports.BackupNotFoundException = class BackupNotFoundException extends __BaseException {
19
15
  name = "BackupNotFoundException";
20
16
  $fault = "client";
21
17
  constructor(opts) {
@@ -26,9 +22,8 @@ class BackupNotFoundException extends DynamoDBServiceException_1.DynamoDBService
26
22
  });
27
23
  Object.setPrototypeOf(this, BackupNotFoundException.prototype);
28
24
  }
29
- }
30
- exports.BackupNotFoundException = BackupNotFoundException;
31
- class InternalServerError extends DynamoDBServiceException_1.DynamoDBServiceException {
25
+ };
26
+ exports.InternalServerError = class InternalServerError extends __BaseException {
32
27
  name = "InternalServerError";
33
28
  $fault = "server";
34
29
  constructor(opts) {
@@ -39,9 +34,8 @@ class InternalServerError extends DynamoDBServiceException_1.DynamoDBServiceExce
39
34
  });
40
35
  Object.setPrototypeOf(this, InternalServerError.prototype);
41
36
  }
42
- }
43
- exports.InternalServerError = InternalServerError;
44
- class RequestLimitExceeded extends DynamoDBServiceException_1.DynamoDBServiceException {
37
+ };
38
+ exports.RequestLimitExceeded = class RequestLimitExceeded extends __BaseException {
45
39
  name = "RequestLimitExceeded";
46
40
  $fault = "client";
47
41
  ThrottlingReasons;
@@ -54,9 +48,8 @@ class RequestLimitExceeded extends DynamoDBServiceException_1.DynamoDBServiceExc
54
48
  Object.setPrototypeOf(this, RequestLimitExceeded.prototype);
55
49
  this.ThrottlingReasons = opts.ThrottlingReasons;
56
50
  }
57
- }
58
- exports.RequestLimitExceeded = RequestLimitExceeded;
59
- class ThrottlingException extends DynamoDBServiceException_1.DynamoDBServiceException {
51
+ };
52
+ exports.ThrottlingException = class ThrottlingException extends __BaseException {
60
53
  name = "ThrottlingException";
61
54
  $fault = "client";
62
55
  throttlingReasons;
@@ -69,9 +62,8 @@ class ThrottlingException extends DynamoDBServiceException_1.DynamoDBServiceExce
69
62
  Object.setPrototypeOf(this, ThrottlingException.prototype);
70
63
  this.throttlingReasons = opts.throttlingReasons;
71
64
  }
72
- }
73
- exports.ThrottlingException = ThrottlingException;
74
- class InvalidEndpointException extends DynamoDBServiceException_1.DynamoDBServiceException {
65
+ };
66
+ exports.InvalidEndpointException = class InvalidEndpointException extends __BaseException {
75
67
  name = "InvalidEndpointException";
76
68
  $fault = "client";
77
69
  Message;
@@ -84,9 +76,8 @@ class InvalidEndpointException extends DynamoDBServiceException_1.DynamoDBServic
84
76
  Object.setPrototypeOf(this, InvalidEndpointException.prototype);
85
77
  this.Message = opts.Message;
86
78
  }
87
- }
88
- exports.InvalidEndpointException = InvalidEndpointException;
89
- class ProvisionedThroughputExceededException extends DynamoDBServiceException_1.DynamoDBServiceException {
79
+ };
80
+ exports.ProvisionedThroughputExceededException = class ProvisionedThroughputExceededException extends __BaseException {
90
81
  name = "ProvisionedThroughputExceededException";
91
82
  $fault = "client";
92
83
  ThrottlingReasons;
@@ -99,9 +90,8 @@ class ProvisionedThroughputExceededException extends DynamoDBServiceException_1.
99
90
  Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype);
100
91
  this.ThrottlingReasons = opts.ThrottlingReasons;
101
92
  }
102
- }
103
- exports.ProvisionedThroughputExceededException = ProvisionedThroughputExceededException;
104
- class ResourceNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
93
+ };
94
+ exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
105
95
  name = "ResourceNotFoundException";
106
96
  $fault = "client";
107
97
  constructor(opts) {
@@ -112,9 +102,8 @@ class ResourceNotFoundException extends DynamoDBServiceException_1.DynamoDBServi
112
102
  });
113
103
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
114
104
  }
115
- }
116
- exports.ResourceNotFoundException = ResourceNotFoundException;
117
- class ItemCollectionSizeLimitExceededException extends DynamoDBServiceException_1.DynamoDBServiceException {
105
+ };
106
+ exports.ItemCollectionSizeLimitExceededException = class ItemCollectionSizeLimitExceededException extends __BaseException {
118
107
  name = "ItemCollectionSizeLimitExceededException";
119
108
  $fault = "client";
120
109
  constructor(opts) {
@@ -125,9 +114,8 @@ class ItemCollectionSizeLimitExceededException extends DynamoDBServiceException_
125
114
  });
126
115
  Object.setPrototypeOf(this, ItemCollectionSizeLimitExceededException.prototype);
127
116
  }
128
- }
129
- exports.ItemCollectionSizeLimitExceededException = ItemCollectionSizeLimitExceededException;
130
- class ReplicatedWriteConflictException extends DynamoDBServiceException_1.DynamoDBServiceException {
117
+ };
118
+ exports.ReplicatedWriteConflictException = class ReplicatedWriteConflictException extends __BaseException {
131
119
  name = "ReplicatedWriteConflictException";
132
120
  $fault = "client";
133
121
  $retryable = {};
@@ -139,9 +127,8 @@ class ReplicatedWriteConflictException extends DynamoDBServiceException_1.Dynamo
139
127
  });
140
128
  Object.setPrototypeOf(this, ReplicatedWriteConflictException.prototype);
141
129
  }
142
- }
143
- exports.ReplicatedWriteConflictException = ReplicatedWriteConflictException;
144
- class ContinuousBackupsUnavailableException extends DynamoDBServiceException_1.DynamoDBServiceException {
130
+ };
131
+ exports.ContinuousBackupsUnavailableException = class ContinuousBackupsUnavailableException extends __BaseException {
145
132
  name = "ContinuousBackupsUnavailableException";
146
133
  $fault = "client";
147
134
  constructor(opts) {
@@ -152,9 +139,8 @@ class ContinuousBackupsUnavailableException extends DynamoDBServiceException_1.D
152
139
  });
153
140
  Object.setPrototypeOf(this, ContinuousBackupsUnavailableException.prototype);
154
141
  }
155
- }
156
- exports.ContinuousBackupsUnavailableException = ContinuousBackupsUnavailableException;
157
- class LimitExceededException extends DynamoDBServiceException_1.DynamoDBServiceException {
142
+ };
143
+ exports.LimitExceededException = class LimitExceededException extends __BaseException {
158
144
  name = "LimitExceededException";
159
145
  $fault = "client";
160
146
  constructor(opts) {
@@ -165,9 +151,8 @@ class LimitExceededException extends DynamoDBServiceException_1.DynamoDBServiceE
165
151
  });
166
152
  Object.setPrototypeOf(this, LimitExceededException.prototype);
167
153
  }
168
- }
169
- exports.LimitExceededException = LimitExceededException;
170
- class TableInUseException extends DynamoDBServiceException_1.DynamoDBServiceException {
154
+ };
155
+ exports.TableInUseException = class TableInUseException extends __BaseException {
171
156
  name = "TableInUseException";
172
157
  $fault = "client";
173
158
  constructor(opts) {
@@ -178,9 +163,8 @@ class TableInUseException extends DynamoDBServiceException_1.DynamoDBServiceExce
178
163
  });
179
164
  Object.setPrototypeOf(this, TableInUseException.prototype);
180
165
  }
181
- }
182
- exports.TableInUseException = TableInUseException;
183
- class TableNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
166
+ };
167
+ exports.TableNotFoundException = class TableNotFoundException extends __BaseException {
184
168
  name = "TableNotFoundException";
185
169
  $fault = "client";
186
170
  constructor(opts) {
@@ -191,9 +175,8 @@ class TableNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceE
191
175
  });
192
176
  Object.setPrototypeOf(this, TableNotFoundException.prototype);
193
177
  }
194
- }
195
- exports.TableNotFoundException = TableNotFoundException;
196
- class GlobalTableAlreadyExistsException extends DynamoDBServiceException_1.DynamoDBServiceException {
178
+ };
179
+ exports.GlobalTableAlreadyExistsException = class GlobalTableAlreadyExistsException extends __BaseException {
197
180
  name = "GlobalTableAlreadyExistsException";
198
181
  $fault = "client";
199
182
  constructor(opts) {
@@ -204,9 +187,8 @@ class GlobalTableAlreadyExistsException extends DynamoDBServiceException_1.Dynam
204
187
  });
205
188
  Object.setPrototypeOf(this, GlobalTableAlreadyExistsException.prototype);
206
189
  }
207
- }
208
- exports.GlobalTableAlreadyExistsException = GlobalTableAlreadyExistsException;
209
- class ResourceInUseException extends DynamoDBServiceException_1.DynamoDBServiceException {
190
+ };
191
+ exports.ResourceInUseException = class ResourceInUseException extends __BaseException {
210
192
  name = "ResourceInUseException";
211
193
  $fault = "client";
212
194
  constructor(opts) {
@@ -217,9 +199,8 @@ class ResourceInUseException extends DynamoDBServiceException_1.DynamoDBServiceE
217
199
  });
218
200
  Object.setPrototypeOf(this, ResourceInUseException.prototype);
219
201
  }
220
- }
221
- exports.ResourceInUseException = ResourceInUseException;
222
- class TransactionConflictException extends DynamoDBServiceException_1.DynamoDBServiceException {
202
+ };
203
+ exports.TransactionConflictException = class TransactionConflictException extends __BaseException {
223
204
  name = "TransactionConflictException";
224
205
  $fault = "client";
225
206
  constructor(opts) {
@@ -230,9 +211,8 @@ class TransactionConflictException extends DynamoDBServiceException_1.DynamoDBSe
230
211
  });
231
212
  Object.setPrototypeOf(this, TransactionConflictException.prototype);
232
213
  }
233
- }
234
- exports.TransactionConflictException = TransactionConflictException;
235
- class PolicyNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
214
+ };
215
+ exports.PolicyNotFoundException = class PolicyNotFoundException extends __BaseException {
236
216
  name = "PolicyNotFoundException";
237
217
  $fault = "client";
238
218
  constructor(opts) {
@@ -243,9 +223,8 @@ class PolicyNotFoundException extends DynamoDBServiceException_1.DynamoDBService
243
223
  });
244
224
  Object.setPrototypeOf(this, PolicyNotFoundException.prototype);
245
225
  }
246
- }
247
- exports.PolicyNotFoundException = PolicyNotFoundException;
248
- class ExportNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
226
+ };
227
+ exports.ExportNotFoundException = class ExportNotFoundException extends __BaseException {
249
228
  name = "ExportNotFoundException";
250
229
  $fault = "client";
251
230
  constructor(opts) {
@@ -256,9 +235,8 @@ class ExportNotFoundException extends DynamoDBServiceException_1.DynamoDBService
256
235
  });
257
236
  Object.setPrototypeOf(this, ExportNotFoundException.prototype);
258
237
  }
259
- }
260
- exports.ExportNotFoundException = ExportNotFoundException;
261
- class GlobalTableNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
238
+ };
239
+ exports.GlobalTableNotFoundException = class GlobalTableNotFoundException extends __BaseException {
262
240
  name = "GlobalTableNotFoundException";
263
241
  $fault = "client";
264
242
  constructor(opts) {
@@ -269,9 +247,8 @@ class GlobalTableNotFoundException extends DynamoDBServiceException_1.DynamoDBSe
269
247
  });
270
248
  Object.setPrototypeOf(this, GlobalTableNotFoundException.prototype);
271
249
  }
272
- }
273
- exports.GlobalTableNotFoundException = GlobalTableNotFoundException;
274
- class ImportNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
250
+ };
251
+ exports.ImportNotFoundException = class ImportNotFoundException extends __BaseException {
275
252
  name = "ImportNotFoundException";
276
253
  $fault = "client";
277
254
  constructor(opts) {
@@ -282,9 +259,8 @@ class ImportNotFoundException extends DynamoDBServiceException_1.DynamoDBService
282
259
  });
283
260
  Object.setPrototypeOf(this, ImportNotFoundException.prototype);
284
261
  }
285
- }
286
- exports.ImportNotFoundException = ImportNotFoundException;
287
- class DuplicateItemException extends DynamoDBServiceException_1.DynamoDBServiceException {
262
+ };
263
+ exports.DuplicateItemException = class DuplicateItemException extends __BaseException {
288
264
  name = "DuplicateItemException";
289
265
  $fault = "client";
290
266
  constructor(opts) {
@@ -295,9 +271,8 @@ class DuplicateItemException extends DynamoDBServiceException_1.DynamoDBServiceE
295
271
  });
296
272
  Object.setPrototypeOf(this, DuplicateItemException.prototype);
297
273
  }
298
- }
299
- exports.DuplicateItemException = DuplicateItemException;
300
- class IdempotentParameterMismatchException extends DynamoDBServiceException_1.DynamoDBServiceException {
274
+ };
275
+ exports.IdempotentParameterMismatchException = class IdempotentParameterMismatchException extends __BaseException {
301
276
  name = "IdempotentParameterMismatchException";
302
277
  $fault = "client";
303
278
  Message;
@@ -310,9 +285,8 @@ class IdempotentParameterMismatchException extends DynamoDBServiceException_1.Dy
310
285
  Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
311
286
  this.Message = opts.Message;
312
287
  }
313
- }
314
- exports.IdempotentParameterMismatchException = IdempotentParameterMismatchException;
315
- class TransactionInProgressException extends DynamoDBServiceException_1.DynamoDBServiceException {
288
+ };
289
+ exports.TransactionInProgressException = class TransactionInProgressException extends __BaseException {
316
290
  name = "TransactionInProgressException";
317
291
  $fault = "client";
318
292
  Message;
@@ -325,9 +299,8 @@ class TransactionInProgressException extends DynamoDBServiceException_1.DynamoDB
325
299
  Object.setPrototypeOf(this, TransactionInProgressException.prototype);
326
300
  this.Message = opts.Message;
327
301
  }
328
- }
329
- exports.TransactionInProgressException = TransactionInProgressException;
330
- class ExportConflictException extends DynamoDBServiceException_1.DynamoDBServiceException {
302
+ };
303
+ exports.ExportConflictException = class ExportConflictException extends __BaseException {
331
304
  name = "ExportConflictException";
332
305
  $fault = "client";
333
306
  constructor(opts) {
@@ -338,9 +311,8 @@ class ExportConflictException extends DynamoDBServiceException_1.DynamoDBService
338
311
  });
339
312
  Object.setPrototypeOf(this, ExportConflictException.prototype);
340
313
  }
341
- }
342
- exports.ExportConflictException = ExportConflictException;
343
- class InvalidExportTimeException extends DynamoDBServiceException_1.DynamoDBServiceException {
314
+ };
315
+ exports.InvalidExportTimeException = class InvalidExportTimeException extends __BaseException {
344
316
  name = "InvalidExportTimeException";
345
317
  $fault = "client";
346
318
  constructor(opts) {
@@ -351,9 +323,8 @@ class InvalidExportTimeException extends DynamoDBServiceException_1.DynamoDBServ
351
323
  });
352
324
  Object.setPrototypeOf(this, InvalidExportTimeException.prototype);
353
325
  }
354
- }
355
- exports.InvalidExportTimeException = InvalidExportTimeException;
356
- class PointInTimeRecoveryUnavailableException extends DynamoDBServiceException_1.DynamoDBServiceException {
326
+ };
327
+ exports.PointInTimeRecoveryUnavailableException = class PointInTimeRecoveryUnavailableException extends __BaseException {
357
328
  name = "PointInTimeRecoveryUnavailableException";
358
329
  $fault = "client";
359
330
  constructor(opts) {
@@ -364,9 +335,8 @@ class PointInTimeRecoveryUnavailableException extends DynamoDBServiceException_1
364
335
  });
365
336
  Object.setPrototypeOf(this, PointInTimeRecoveryUnavailableException.prototype);
366
337
  }
367
- }
368
- exports.PointInTimeRecoveryUnavailableException = PointInTimeRecoveryUnavailableException;
369
- class ImportConflictException extends DynamoDBServiceException_1.DynamoDBServiceException {
338
+ };
339
+ exports.ImportConflictException = class ImportConflictException extends __BaseException {
370
340
  name = "ImportConflictException";
371
341
  $fault = "client";
372
342
  constructor(opts) {
@@ -377,9 +347,8 @@ class ImportConflictException extends DynamoDBServiceException_1.DynamoDBService
377
347
  });
378
348
  Object.setPrototypeOf(this, ImportConflictException.prototype);
379
349
  }
380
- }
381
- exports.ImportConflictException = ImportConflictException;
382
- class TableAlreadyExistsException extends DynamoDBServiceException_1.DynamoDBServiceException {
350
+ };
351
+ exports.TableAlreadyExistsException = class TableAlreadyExistsException extends __BaseException {
383
352
  name = "TableAlreadyExistsException";
384
353
  $fault = "client";
385
354
  constructor(opts) {
@@ -390,9 +359,8 @@ class TableAlreadyExistsException extends DynamoDBServiceException_1.DynamoDBSer
390
359
  });
391
360
  Object.setPrototypeOf(this, TableAlreadyExistsException.prototype);
392
361
  }
393
- }
394
- exports.TableAlreadyExistsException = TableAlreadyExistsException;
395
- class InvalidRestoreTimeException extends DynamoDBServiceException_1.DynamoDBServiceException {
362
+ };
363
+ exports.InvalidRestoreTimeException = class InvalidRestoreTimeException extends __BaseException {
396
364
  name = "InvalidRestoreTimeException";
397
365
  $fault = "client";
398
366
  constructor(opts) {
@@ -403,9 +371,8 @@ class InvalidRestoreTimeException extends DynamoDBServiceException_1.DynamoDBSer
403
371
  });
404
372
  Object.setPrototypeOf(this, InvalidRestoreTimeException.prototype);
405
373
  }
406
- }
407
- exports.InvalidRestoreTimeException = InvalidRestoreTimeException;
408
- class ReplicaAlreadyExistsException extends DynamoDBServiceException_1.DynamoDBServiceException {
374
+ };
375
+ exports.ReplicaAlreadyExistsException = class ReplicaAlreadyExistsException extends __BaseException {
409
376
  name = "ReplicaAlreadyExistsException";
410
377
  $fault = "client";
411
378
  constructor(opts) {
@@ -416,9 +383,8 @@ class ReplicaAlreadyExistsException extends DynamoDBServiceException_1.DynamoDBS
416
383
  });
417
384
  Object.setPrototypeOf(this, ReplicaAlreadyExistsException.prototype);
418
385
  }
419
- }
420
- exports.ReplicaAlreadyExistsException = ReplicaAlreadyExistsException;
421
- class ReplicaNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
386
+ };
387
+ exports.ReplicaNotFoundException = class ReplicaNotFoundException extends __BaseException {
422
388
  name = "ReplicaNotFoundException";
423
389
  $fault = "client";
424
390
  constructor(opts) {
@@ -429,9 +395,8 @@ class ReplicaNotFoundException extends DynamoDBServiceException_1.DynamoDBServic
429
395
  });
430
396
  Object.setPrototypeOf(this, ReplicaNotFoundException.prototype);
431
397
  }
432
- }
433
- exports.ReplicaNotFoundException = ReplicaNotFoundException;
434
- class IndexNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
398
+ };
399
+ exports.IndexNotFoundException = class IndexNotFoundException extends __BaseException {
435
400
  name = "IndexNotFoundException";
436
401
  $fault = "client";
437
402
  constructor(opts) {
@@ -442,9 +407,8 @@ class IndexNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceE
442
407
  });
443
408
  Object.setPrototypeOf(this, IndexNotFoundException.prototype);
444
409
  }
445
- }
446
- exports.IndexNotFoundException = IndexNotFoundException;
447
- class ConditionalCheckFailedException extends DynamoDBServiceException_1.DynamoDBServiceException {
410
+ };
411
+ exports.ConditionalCheckFailedException = class ConditionalCheckFailedException extends __BaseException {
448
412
  name = "ConditionalCheckFailedException";
449
413
  $fault = "client";
450
414
  Item;
@@ -457,9 +421,8 @@ class ConditionalCheckFailedException extends DynamoDBServiceException_1.DynamoD
457
421
  Object.setPrototypeOf(this, ConditionalCheckFailedException.prototype);
458
422
  this.Item = opts.Item;
459
423
  }
460
- }
461
- exports.ConditionalCheckFailedException = ConditionalCheckFailedException;
462
- class TransactionCanceledException extends DynamoDBServiceException_1.DynamoDBServiceException {
424
+ };
425
+ exports.TransactionCanceledException = class TransactionCanceledException extends __BaseException {
463
426
  name = "TransactionCanceledException";
464
427
  $fault = "client";
465
428
  Message;
@@ -474,5 +437,4 @@ class TransactionCanceledException extends DynamoDBServiceException_1.DynamoDBSe
474
437
  this.Message = opts.Message;
475
438
  this.CancellationReasons = opts.CancellationReasons;
476
439
  }
477
- }
478
- exports.TransactionCanceledException = TransactionCanceledException;
440
+ };
@@ -1,39 +1,35 @@
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 account_id_endpoint_1 = require("@aws-sdk/core/account-id-endpoint");
8
- const client_1 = require("@aws-sdk/core/client");
9
- const client_2 = require("@smithy/core/client");
10
- const config_1 = require("@smithy/core/config");
11
- const retry_1 = require("@smithy/core/retry");
12
- const serde_1 = require("@smithy/core/serde");
13
- const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
14
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { Sha256 } = require("@aws-crypto/sha256-browser");
3
+ const { DEFAULT_ACCOUNT_ID_ENDPOINT_MODE } = require("@aws-sdk/core/account-id-endpoint");
4
+ const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
5
+ const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
6
+ const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
7
+ const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, Retry } = require("@smithy/core/retry");
8
+ const { calculateBodyLength } = require("@smithy/core/serde");
9
+ const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
10
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
15
11
  const getRuntimeConfig = (config) => {
16
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
17
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
18
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
12
+ const defaultsMode = resolveDefaultsModeConfig(config);
13
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
14
+ const clientSharedValues = getSharedRuntimeConfig(config);
19
15
  return {
20
16
  ...clientSharedValues,
21
17
  ...config,
22
18
  runtime: "browser",
23
19
  defaultsMode,
24
- accountIdEndpointMode: config?.accountIdEndpointMode ?? (() => Promise.resolve(account_id_endpoint_1.DEFAULT_ACCOUNT_ID_ENDPOINT_MODE)),
25
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
20
+ accountIdEndpointMode: config?.accountIdEndpointMode ?? (() => Promise.resolve(DEFAULT_ACCOUNT_ID_ENDPOINT_MODE)),
21
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
26
22
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
28
24
  endpointDiscoveryEnabledProvider: config?.endpointDiscoveryEnabledProvider ?? (() => Promise.resolve(undefined)),
29
- maxAttempts: config?.maxAttempts ?? (retry_1.Retry.v2026 ? 4 : retry_1.DEFAULT_MAX_ATTEMPTS),
30
- region: config?.region ?? (0, client_2.invalidProvider)("Region is missing"),
31
- requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
32
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
33
- sha256: config?.sha256 ?? sha256_browser_1.Sha256,
34
- streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
35
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
36
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
25
+ maxAttempts: config?.maxAttempts ?? (Retry.v2026 ? 4 : DEFAULT_MAX_ATTEMPTS),
26
+ region: config?.region ?? invalidProvider("Region is missing"),
27
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
28
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
29
+ sha256: config?.sha256 ?? Sha256,
30
+ streamCollector: config?.streamCollector ?? streamCollector,
31
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
32
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
37
33
  };
38
34
  };
39
35
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,25 +1,21 @@
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 account_id_endpoint_1 = require("@aws-sdk/core/account-id-endpoint");
7
- const client_1 = require("@aws-sdk/core/client");
8
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
9
- const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
10
- const middleware_endpoint_discovery_1 = require("@aws-sdk/middleware-endpoint-discovery");
11
- const client_2 = require("@smithy/core/client");
12
- const config_1 = require("@smithy/core/config");
13
- const retry_1 = require("@smithy/core/retry");
14
- const serde_1 = require("@smithy/core/serde");
15
- const node_http_handler_1 = require("@smithy/node-http-handler");
16
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS } = require("@aws-sdk/core/account-id-endpoint");
3
+ const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
4
+ const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
5
+ const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
6
+ const { NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS } = require("@aws-sdk/middleware-endpoint-discovery");
7
+ const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
8
+ const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
9
+ const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, Retry } = require("@smithy/core/retry");
10
+ const { calculateBodyLength, Hash } = require("@smithy/core/serde");
11
+ const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
12
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
17
13
  const getRuntimeConfig = (config) => {
18
- (0, client_2.emitWarningIfUnsupportedVersion)(process.version);
19
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
20
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
21
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
22
- (0, client_1.emitWarningIfUnsupportedVersion)(process.version);
14
+ emitWarningIfUnsupportedVersion(process.version);
15
+ const defaultsMode = resolveDefaultsModeConfig(config);
16
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
17
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
+ awsCheckVersion(process.version);
23
19
  const loaderConfig = {
24
20
  profile: config?.profile,
25
21
  logger: clientSharedValues.logger,
@@ -29,25 +25,25 @@ const getRuntimeConfig = (config) => {
29
25
  ...config,
30
26
  runtime: "node",
31
27
  defaultsMode,
32
- accountIdEndpointMode: config?.accountIdEndpointMode ?? (0, config_1.loadConfig)(account_id_endpoint_1.NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS, loaderConfig),
33
- authSchemePreference: config?.authSchemePreference ?? (0, config_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
34
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
35
- credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
36
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
- endpointDiscoveryEnabledProvider: config?.endpointDiscoveryEnabledProvider ?? (0, config_1.loadConfig)(middleware_endpoint_discovery_1.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS, loaderConfig),
38
- maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.Retry.v2026 ? { ...retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, default: 4 } : retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
39
- region: config?.region ?? (0, config_1.loadConfig)(config_1.NODE_REGION_CONFIG_OPTIONS, { ...config_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
40
- requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
28
+ accountIdEndpointMode: config?.accountIdEndpointMode ?? loadNodeConfig(NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS, loaderConfig),
29
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
30
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
31
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
32
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
+ endpointDiscoveryEnabledProvider: config?.endpointDiscoveryEnabledProvider ?? loadNodeConfig(NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS, loaderConfig),
34
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(Retry.v2026 ? { ...NODE_MAX_ATTEMPT_CONFIG_OPTIONS, default: 4 } : NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
35
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
36
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
41
37
  retryMode: config?.retryMode ??
42
- (0, config_1.loadConfig)({
43
- ...retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
44
- default: async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE,
38
+ loadNodeConfig({
39
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
45
41
  }, config),
46
- sha256: config?.sha256 ?? serde_1.Hash.bind(null, "sha256"),
47
- streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
48
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
49
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
50
- userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(client_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
42
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
43
+ streamCollector: config?.streamCollector ?? streamCollector,
44
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
45
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
46
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
51
47
  };
52
48
  };
53
49
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,15 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const sha256_js_1 = require("@aws-crypto/sha256-js");
5
- const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
1
+ const { Sha256 } = require("@aws-crypto/sha256-js");
2
+ const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
6
3
  const getRuntimeConfig = (config) => {
7
- const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
8
5
  return {
9
6
  ...browserDefaults,
10
7
  ...config,
11
8
  runtime: "react-native",
12
- sha256: config?.sha256 ?? sha256_js_1.Sha256,
9
+ sha256: config?.sha256 ?? Sha256,
13
10
  };
14
11
  };
15
12
  exports.getRuntimeConfig = getRuntimeConfig;