@aws-sdk/client-dynamodb 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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DynamoDBServiceException = 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 DynamoDBServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, DynamoDBServiceException.prototype);
10
+ }
11
+ }
12
+ exports.DynamoDBServiceException = DynamoDBServiceException;
@@ -0,0 +1,478 @@
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 {
6
+ name = "BackupInUseException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "BackupInUseException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, BackupInUseException.prototype);
15
+ }
16
+ }
17
+ exports.BackupInUseException = BackupInUseException;
18
+ class BackupNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
19
+ name = "BackupNotFoundException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "BackupNotFoundException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, BackupNotFoundException.prototype);
28
+ }
29
+ }
30
+ exports.BackupNotFoundException = BackupNotFoundException;
31
+ class InternalServerError extends DynamoDBServiceException_1.DynamoDBServiceException {
32
+ name = "InternalServerError";
33
+ $fault = "server";
34
+ constructor(opts) {
35
+ super({
36
+ name: "InternalServerError",
37
+ $fault: "server",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, InternalServerError.prototype);
41
+ }
42
+ }
43
+ exports.InternalServerError = InternalServerError;
44
+ class RequestLimitExceeded extends DynamoDBServiceException_1.DynamoDBServiceException {
45
+ name = "RequestLimitExceeded";
46
+ $fault = "client";
47
+ ThrottlingReasons;
48
+ constructor(opts) {
49
+ super({
50
+ name: "RequestLimitExceeded",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ Object.setPrototypeOf(this, RequestLimitExceeded.prototype);
55
+ this.ThrottlingReasons = opts.ThrottlingReasons;
56
+ }
57
+ }
58
+ exports.RequestLimitExceeded = RequestLimitExceeded;
59
+ class ThrottlingException extends DynamoDBServiceException_1.DynamoDBServiceException {
60
+ name = "ThrottlingException";
61
+ $fault = "client";
62
+ throttlingReasons;
63
+ constructor(opts) {
64
+ super({
65
+ name: "ThrottlingException",
66
+ $fault: "client",
67
+ ...opts,
68
+ });
69
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
70
+ this.throttlingReasons = opts.throttlingReasons;
71
+ }
72
+ }
73
+ exports.ThrottlingException = ThrottlingException;
74
+ class InvalidEndpointException extends DynamoDBServiceException_1.DynamoDBServiceException {
75
+ name = "InvalidEndpointException";
76
+ $fault = "client";
77
+ Message;
78
+ constructor(opts) {
79
+ super({
80
+ name: "InvalidEndpointException",
81
+ $fault: "client",
82
+ ...opts,
83
+ });
84
+ Object.setPrototypeOf(this, InvalidEndpointException.prototype);
85
+ this.Message = opts.Message;
86
+ }
87
+ }
88
+ exports.InvalidEndpointException = InvalidEndpointException;
89
+ class ProvisionedThroughputExceededException extends DynamoDBServiceException_1.DynamoDBServiceException {
90
+ name = "ProvisionedThroughputExceededException";
91
+ $fault = "client";
92
+ ThrottlingReasons;
93
+ constructor(opts) {
94
+ super({
95
+ name: "ProvisionedThroughputExceededException",
96
+ $fault: "client",
97
+ ...opts,
98
+ });
99
+ Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype);
100
+ this.ThrottlingReasons = opts.ThrottlingReasons;
101
+ }
102
+ }
103
+ exports.ProvisionedThroughputExceededException = ProvisionedThroughputExceededException;
104
+ class ResourceNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
105
+ name = "ResourceNotFoundException";
106
+ $fault = "client";
107
+ constructor(opts) {
108
+ super({
109
+ name: "ResourceNotFoundException",
110
+ $fault: "client",
111
+ ...opts,
112
+ });
113
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
114
+ }
115
+ }
116
+ exports.ResourceNotFoundException = ResourceNotFoundException;
117
+ class ItemCollectionSizeLimitExceededException extends DynamoDBServiceException_1.DynamoDBServiceException {
118
+ name = "ItemCollectionSizeLimitExceededException";
119
+ $fault = "client";
120
+ constructor(opts) {
121
+ super({
122
+ name: "ItemCollectionSizeLimitExceededException",
123
+ $fault: "client",
124
+ ...opts,
125
+ });
126
+ Object.setPrototypeOf(this, ItemCollectionSizeLimitExceededException.prototype);
127
+ }
128
+ }
129
+ exports.ItemCollectionSizeLimitExceededException = ItemCollectionSizeLimitExceededException;
130
+ class ReplicatedWriteConflictException extends DynamoDBServiceException_1.DynamoDBServiceException {
131
+ name = "ReplicatedWriteConflictException";
132
+ $fault = "client";
133
+ $retryable = {};
134
+ constructor(opts) {
135
+ super({
136
+ name: "ReplicatedWriteConflictException",
137
+ $fault: "client",
138
+ ...opts,
139
+ });
140
+ Object.setPrototypeOf(this, ReplicatedWriteConflictException.prototype);
141
+ }
142
+ }
143
+ exports.ReplicatedWriteConflictException = ReplicatedWriteConflictException;
144
+ class ContinuousBackupsUnavailableException extends DynamoDBServiceException_1.DynamoDBServiceException {
145
+ name = "ContinuousBackupsUnavailableException";
146
+ $fault = "client";
147
+ constructor(opts) {
148
+ super({
149
+ name: "ContinuousBackupsUnavailableException",
150
+ $fault: "client",
151
+ ...opts,
152
+ });
153
+ Object.setPrototypeOf(this, ContinuousBackupsUnavailableException.prototype);
154
+ }
155
+ }
156
+ exports.ContinuousBackupsUnavailableException = ContinuousBackupsUnavailableException;
157
+ class LimitExceededException extends DynamoDBServiceException_1.DynamoDBServiceException {
158
+ name = "LimitExceededException";
159
+ $fault = "client";
160
+ constructor(opts) {
161
+ super({
162
+ name: "LimitExceededException",
163
+ $fault: "client",
164
+ ...opts,
165
+ });
166
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
167
+ }
168
+ }
169
+ exports.LimitExceededException = LimitExceededException;
170
+ class TableInUseException extends DynamoDBServiceException_1.DynamoDBServiceException {
171
+ name = "TableInUseException";
172
+ $fault = "client";
173
+ constructor(opts) {
174
+ super({
175
+ name: "TableInUseException",
176
+ $fault: "client",
177
+ ...opts,
178
+ });
179
+ Object.setPrototypeOf(this, TableInUseException.prototype);
180
+ }
181
+ }
182
+ exports.TableInUseException = TableInUseException;
183
+ class TableNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
184
+ name = "TableNotFoundException";
185
+ $fault = "client";
186
+ constructor(opts) {
187
+ super({
188
+ name: "TableNotFoundException",
189
+ $fault: "client",
190
+ ...opts,
191
+ });
192
+ Object.setPrototypeOf(this, TableNotFoundException.prototype);
193
+ }
194
+ }
195
+ exports.TableNotFoundException = TableNotFoundException;
196
+ class GlobalTableAlreadyExistsException extends DynamoDBServiceException_1.DynamoDBServiceException {
197
+ name = "GlobalTableAlreadyExistsException";
198
+ $fault = "client";
199
+ constructor(opts) {
200
+ super({
201
+ name: "GlobalTableAlreadyExistsException",
202
+ $fault: "client",
203
+ ...opts,
204
+ });
205
+ Object.setPrototypeOf(this, GlobalTableAlreadyExistsException.prototype);
206
+ }
207
+ }
208
+ exports.GlobalTableAlreadyExistsException = GlobalTableAlreadyExistsException;
209
+ class ResourceInUseException extends DynamoDBServiceException_1.DynamoDBServiceException {
210
+ name = "ResourceInUseException";
211
+ $fault = "client";
212
+ constructor(opts) {
213
+ super({
214
+ name: "ResourceInUseException",
215
+ $fault: "client",
216
+ ...opts,
217
+ });
218
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
219
+ }
220
+ }
221
+ exports.ResourceInUseException = ResourceInUseException;
222
+ class TransactionConflictException extends DynamoDBServiceException_1.DynamoDBServiceException {
223
+ name = "TransactionConflictException";
224
+ $fault = "client";
225
+ constructor(opts) {
226
+ super({
227
+ name: "TransactionConflictException",
228
+ $fault: "client",
229
+ ...opts,
230
+ });
231
+ Object.setPrototypeOf(this, TransactionConflictException.prototype);
232
+ }
233
+ }
234
+ exports.TransactionConflictException = TransactionConflictException;
235
+ class PolicyNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
236
+ name = "PolicyNotFoundException";
237
+ $fault = "client";
238
+ constructor(opts) {
239
+ super({
240
+ name: "PolicyNotFoundException",
241
+ $fault: "client",
242
+ ...opts,
243
+ });
244
+ Object.setPrototypeOf(this, PolicyNotFoundException.prototype);
245
+ }
246
+ }
247
+ exports.PolicyNotFoundException = PolicyNotFoundException;
248
+ class ExportNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
249
+ name = "ExportNotFoundException";
250
+ $fault = "client";
251
+ constructor(opts) {
252
+ super({
253
+ name: "ExportNotFoundException",
254
+ $fault: "client",
255
+ ...opts,
256
+ });
257
+ Object.setPrototypeOf(this, ExportNotFoundException.prototype);
258
+ }
259
+ }
260
+ exports.ExportNotFoundException = ExportNotFoundException;
261
+ class GlobalTableNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
262
+ name = "GlobalTableNotFoundException";
263
+ $fault = "client";
264
+ constructor(opts) {
265
+ super({
266
+ name: "GlobalTableNotFoundException",
267
+ $fault: "client",
268
+ ...opts,
269
+ });
270
+ Object.setPrototypeOf(this, GlobalTableNotFoundException.prototype);
271
+ }
272
+ }
273
+ exports.GlobalTableNotFoundException = GlobalTableNotFoundException;
274
+ class ImportNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
275
+ name = "ImportNotFoundException";
276
+ $fault = "client";
277
+ constructor(opts) {
278
+ super({
279
+ name: "ImportNotFoundException",
280
+ $fault: "client",
281
+ ...opts,
282
+ });
283
+ Object.setPrototypeOf(this, ImportNotFoundException.prototype);
284
+ }
285
+ }
286
+ exports.ImportNotFoundException = ImportNotFoundException;
287
+ class DuplicateItemException extends DynamoDBServiceException_1.DynamoDBServiceException {
288
+ name = "DuplicateItemException";
289
+ $fault = "client";
290
+ constructor(opts) {
291
+ super({
292
+ name: "DuplicateItemException",
293
+ $fault: "client",
294
+ ...opts,
295
+ });
296
+ Object.setPrototypeOf(this, DuplicateItemException.prototype);
297
+ }
298
+ }
299
+ exports.DuplicateItemException = DuplicateItemException;
300
+ class IdempotentParameterMismatchException extends DynamoDBServiceException_1.DynamoDBServiceException {
301
+ name = "IdempotentParameterMismatchException";
302
+ $fault = "client";
303
+ Message;
304
+ constructor(opts) {
305
+ super({
306
+ name: "IdempotentParameterMismatchException",
307
+ $fault: "client",
308
+ ...opts,
309
+ });
310
+ Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
311
+ this.Message = opts.Message;
312
+ }
313
+ }
314
+ exports.IdempotentParameterMismatchException = IdempotentParameterMismatchException;
315
+ class TransactionInProgressException extends DynamoDBServiceException_1.DynamoDBServiceException {
316
+ name = "TransactionInProgressException";
317
+ $fault = "client";
318
+ Message;
319
+ constructor(opts) {
320
+ super({
321
+ name: "TransactionInProgressException",
322
+ $fault: "client",
323
+ ...opts,
324
+ });
325
+ Object.setPrototypeOf(this, TransactionInProgressException.prototype);
326
+ this.Message = opts.Message;
327
+ }
328
+ }
329
+ exports.TransactionInProgressException = TransactionInProgressException;
330
+ class ExportConflictException extends DynamoDBServiceException_1.DynamoDBServiceException {
331
+ name = "ExportConflictException";
332
+ $fault = "client";
333
+ constructor(opts) {
334
+ super({
335
+ name: "ExportConflictException",
336
+ $fault: "client",
337
+ ...opts,
338
+ });
339
+ Object.setPrototypeOf(this, ExportConflictException.prototype);
340
+ }
341
+ }
342
+ exports.ExportConflictException = ExportConflictException;
343
+ class InvalidExportTimeException extends DynamoDBServiceException_1.DynamoDBServiceException {
344
+ name = "InvalidExportTimeException";
345
+ $fault = "client";
346
+ constructor(opts) {
347
+ super({
348
+ name: "InvalidExportTimeException",
349
+ $fault: "client",
350
+ ...opts,
351
+ });
352
+ Object.setPrototypeOf(this, InvalidExportTimeException.prototype);
353
+ }
354
+ }
355
+ exports.InvalidExportTimeException = InvalidExportTimeException;
356
+ class PointInTimeRecoveryUnavailableException extends DynamoDBServiceException_1.DynamoDBServiceException {
357
+ name = "PointInTimeRecoveryUnavailableException";
358
+ $fault = "client";
359
+ constructor(opts) {
360
+ super({
361
+ name: "PointInTimeRecoveryUnavailableException",
362
+ $fault: "client",
363
+ ...opts,
364
+ });
365
+ Object.setPrototypeOf(this, PointInTimeRecoveryUnavailableException.prototype);
366
+ }
367
+ }
368
+ exports.PointInTimeRecoveryUnavailableException = PointInTimeRecoveryUnavailableException;
369
+ class ImportConflictException extends DynamoDBServiceException_1.DynamoDBServiceException {
370
+ name = "ImportConflictException";
371
+ $fault = "client";
372
+ constructor(opts) {
373
+ super({
374
+ name: "ImportConflictException",
375
+ $fault: "client",
376
+ ...opts,
377
+ });
378
+ Object.setPrototypeOf(this, ImportConflictException.prototype);
379
+ }
380
+ }
381
+ exports.ImportConflictException = ImportConflictException;
382
+ class TableAlreadyExistsException extends DynamoDBServiceException_1.DynamoDBServiceException {
383
+ name = "TableAlreadyExistsException";
384
+ $fault = "client";
385
+ constructor(opts) {
386
+ super({
387
+ name: "TableAlreadyExistsException",
388
+ $fault: "client",
389
+ ...opts,
390
+ });
391
+ Object.setPrototypeOf(this, TableAlreadyExistsException.prototype);
392
+ }
393
+ }
394
+ exports.TableAlreadyExistsException = TableAlreadyExistsException;
395
+ class InvalidRestoreTimeException extends DynamoDBServiceException_1.DynamoDBServiceException {
396
+ name = "InvalidRestoreTimeException";
397
+ $fault = "client";
398
+ constructor(opts) {
399
+ super({
400
+ name: "InvalidRestoreTimeException",
401
+ $fault: "client",
402
+ ...opts,
403
+ });
404
+ Object.setPrototypeOf(this, InvalidRestoreTimeException.prototype);
405
+ }
406
+ }
407
+ exports.InvalidRestoreTimeException = InvalidRestoreTimeException;
408
+ class ReplicaAlreadyExistsException extends DynamoDBServiceException_1.DynamoDBServiceException {
409
+ name = "ReplicaAlreadyExistsException";
410
+ $fault = "client";
411
+ constructor(opts) {
412
+ super({
413
+ name: "ReplicaAlreadyExistsException",
414
+ $fault: "client",
415
+ ...opts,
416
+ });
417
+ Object.setPrototypeOf(this, ReplicaAlreadyExistsException.prototype);
418
+ }
419
+ }
420
+ exports.ReplicaAlreadyExistsException = ReplicaAlreadyExistsException;
421
+ class ReplicaNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
422
+ name = "ReplicaNotFoundException";
423
+ $fault = "client";
424
+ constructor(opts) {
425
+ super({
426
+ name: "ReplicaNotFoundException",
427
+ $fault: "client",
428
+ ...opts,
429
+ });
430
+ Object.setPrototypeOf(this, ReplicaNotFoundException.prototype);
431
+ }
432
+ }
433
+ exports.ReplicaNotFoundException = ReplicaNotFoundException;
434
+ class IndexNotFoundException extends DynamoDBServiceException_1.DynamoDBServiceException {
435
+ name = "IndexNotFoundException";
436
+ $fault = "client";
437
+ constructor(opts) {
438
+ super({
439
+ name: "IndexNotFoundException",
440
+ $fault: "client",
441
+ ...opts,
442
+ });
443
+ Object.setPrototypeOf(this, IndexNotFoundException.prototype);
444
+ }
445
+ }
446
+ exports.IndexNotFoundException = IndexNotFoundException;
447
+ class ConditionalCheckFailedException extends DynamoDBServiceException_1.DynamoDBServiceException {
448
+ name = "ConditionalCheckFailedException";
449
+ $fault = "client";
450
+ Item;
451
+ constructor(opts) {
452
+ super({
453
+ name: "ConditionalCheckFailedException",
454
+ $fault: "client",
455
+ ...opts,
456
+ });
457
+ Object.setPrototypeOf(this, ConditionalCheckFailedException.prototype);
458
+ this.Item = opts.Item;
459
+ }
460
+ }
461
+ exports.ConditionalCheckFailedException = ConditionalCheckFailedException;
462
+ class TransactionCanceledException extends DynamoDBServiceException_1.DynamoDBServiceException {
463
+ name = "TransactionCanceledException";
464
+ $fault = "client";
465
+ Message;
466
+ CancellationReasons;
467
+ constructor(opts) {
468
+ super({
469
+ name: "TransactionCanceledException",
470
+ $fault: "client",
471
+ ...opts,
472
+ });
473
+ Object.setPrototypeOf(this, TransactionCanceledException.prototype);
474
+ this.Message = opts.Message;
475
+ this.CancellationReasons = opts.CancellationReasons;
476
+ }
477
+ }
478
+ exports.TransactionCanceledException = TransactionCanceledException;
@@ -10,6 +10,7 @@ const util_base64_1 = require("@smithy/util-base64");
10
10
  const util_utf8_1 = require("@smithy/util-utf8");
11
11
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
12
12
  const endpointResolver_1 = require("./endpoint/endpointResolver");
13
+ const schemas_0_1 = require("./schemas/schemas_0");
13
14
  const getRuntimeConfig = (config) => {
14
15
  return {
15
16
  apiVersion: "2012-08-10",
@@ -30,6 +31,7 @@ const getRuntimeConfig = (config) => {
30
31
  protocol: config?.protocol ?? protocols_1.AwsJson1_0Protocol,
31
32
  protocolSettings: config?.protocolSettings ?? {
32
33
  defaultNamespace: "com.amazonaws.dynamodb",
34
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
33
35
  xmlNamespace: "http://dynamodb.amazonaws.com/doc/2012-08-10/",
34
36
  version: "2012-08-10",
35
37
  serviceTarget: "DynamoDB_20120810",