@aws-sdk/client-dynamodb 3.506.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +170 -1621
- package/dist-es/protocols/Aws_json1_0.js +164 -1615
- package/package.json +3 -3
|
@@ -330,7 +330,7 @@ export const se_UpdateTimeToLiveCommand = async (input, context) => {
|
|
|
330
330
|
};
|
|
331
331
|
export const de_BatchExecuteStatementCommand = async (output, context) => {
|
|
332
332
|
if (output.statusCode >= 300) {
|
|
333
|
-
return
|
|
333
|
+
return de_CommandError(output, context);
|
|
334
334
|
}
|
|
335
335
|
const data = await parseBody(output.body, context);
|
|
336
336
|
let contents = {};
|
|
@@ -341,31 +341,9 @@ export const de_BatchExecuteStatementCommand = async (output, context) => {
|
|
|
341
341
|
};
|
|
342
342
|
return response;
|
|
343
343
|
};
|
|
344
|
-
const de_BatchExecuteStatementCommandError = async (output, context) => {
|
|
345
|
-
const parsedOutput = {
|
|
346
|
-
...output,
|
|
347
|
-
body: await parseErrorBody(output.body, context),
|
|
348
|
-
};
|
|
349
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
350
|
-
switch (errorCode) {
|
|
351
|
-
case "InternalServerError":
|
|
352
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
353
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
354
|
-
case "RequestLimitExceeded":
|
|
355
|
-
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
356
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
357
|
-
default:
|
|
358
|
-
const parsedBody = parsedOutput.body;
|
|
359
|
-
return throwDefaultError({
|
|
360
|
-
output,
|
|
361
|
-
parsedBody,
|
|
362
|
-
errorCode,
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
};
|
|
366
344
|
export const de_BatchGetItemCommand = async (output, context) => {
|
|
367
345
|
if (output.statusCode >= 300) {
|
|
368
|
-
return
|
|
346
|
+
return de_CommandError(output, context);
|
|
369
347
|
}
|
|
370
348
|
const data = await parseBody(output.body, context);
|
|
371
349
|
let contents = {};
|
|
@@ -376,40 +354,9 @@ export const de_BatchGetItemCommand = async (output, context) => {
|
|
|
376
354
|
};
|
|
377
355
|
return response;
|
|
378
356
|
};
|
|
379
|
-
const de_BatchGetItemCommandError = async (output, context) => {
|
|
380
|
-
const parsedOutput = {
|
|
381
|
-
...output,
|
|
382
|
-
body: await parseErrorBody(output.body, context),
|
|
383
|
-
};
|
|
384
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
385
|
-
switch (errorCode) {
|
|
386
|
-
case "InternalServerError":
|
|
387
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
388
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
389
|
-
case "InvalidEndpointException":
|
|
390
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
391
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
392
|
-
case "ProvisionedThroughputExceededException":
|
|
393
|
-
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
394
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
395
|
-
case "RequestLimitExceeded":
|
|
396
|
-
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
397
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
398
|
-
case "ResourceNotFoundException":
|
|
399
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
400
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
401
|
-
default:
|
|
402
|
-
const parsedBody = parsedOutput.body;
|
|
403
|
-
return throwDefaultError({
|
|
404
|
-
output,
|
|
405
|
-
parsedBody,
|
|
406
|
-
errorCode,
|
|
407
|
-
});
|
|
408
|
-
}
|
|
409
|
-
};
|
|
410
357
|
export const de_BatchWriteItemCommand = async (output, context) => {
|
|
411
358
|
if (output.statusCode >= 300) {
|
|
412
|
-
return
|
|
359
|
+
return de_CommandError(output, context);
|
|
413
360
|
}
|
|
414
361
|
const data = await parseBody(output.body, context);
|
|
415
362
|
let contents = {};
|
|
@@ -420,43 +367,9 @@ export const de_BatchWriteItemCommand = async (output, context) => {
|
|
|
420
367
|
};
|
|
421
368
|
return response;
|
|
422
369
|
};
|
|
423
|
-
const de_BatchWriteItemCommandError = async (output, context) => {
|
|
424
|
-
const parsedOutput = {
|
|
425
|
-
...output,
|
|
426
|
-
body: await parseErrorBody(output.body, context),
|
|
427
|
-
};
|
|
428
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
429
|
-
switch (errorCode) {
|
|
430
|
-
case "InternalServerError":
|
|
431
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
432
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
433
|
-
case "InvalidEndpointException":
|
|
434
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
435
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
436
|
-
case "ItemCollectionSizeLimitExceededException":
|
|
437
|
-
case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
|
|
438
|
-
throw await de_ItemCollectionSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
439
|
-
case "ProvisionedThroughputExceededException":
|
|
440
|
-
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
441
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
442
|
-
case "RequestLimitExceeded":
|
|
443
|
-
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
444
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
445
|
-
case "ResourceNotFoundException":
|
|
446
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
447
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
448
|
-
default:
|
|
449
|
-
const parsedBody = parsedOutput.body;
|
|
450
|
-
return throwDefaultError({
|
|
451
|
-
output,
|
|
452
|
-
parsedBody,
|
|
453
|
-
errorCode,
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
370
|
export const de_CreateBackupCommand = async (output, context) => {
|
|
458
371
|
if (output.statusCode >= 300) {
|
|
459
|
-
return
|
|
372
|
+
return de_CommandError(output, context);
|
|
460
373
|
}
|
|
461
374
|
const data = await parseBody(output.body, context);
|
|
462
375
|
let contents = {};
|
|
@@ -467,46 +380,9 @@ export const de_CreateBackupCommand = async (output, context) => {
|
|
|
467
380
|
};
|
|
468
381
|
return response;
|
|
469
382
|
};
|
|
470
|
-
const de_CreateBackupCommandError = async (output, context) => {
|
|
471
|
-
const parsedOutput = {
|
|
472
|
-
...output,
|
|
473
|
-
body: await parseErrorBody(output.body, context),
|
|
474
|
-
};
|
|
475
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
476
|
-
switch (errorCode) {
|
|
477
|
-
case "BackupInUseException":
|
|
478
|
-
case "com.amazonaws.dynamodb#BackupInUseException":
|
|
479
|
-
throw await de_BackupInUseExceptionRes(parsedOutput, context);
|
|
480
|
-
case "ContinuousBackupsUnavailableException":
|
|
481
|
-
case "com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":
|
|
482
|
-
throw await de_ContinuousBackupsUnavailableExceptionRes(parsedOutput, context);
|
|
483
|
-
case "InternalServerError":
|
|
484
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
485
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
486
|
-
case "InvalidEndpointException":
|
|
487
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
488
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
489
|
-
case "LimitExceededException":
|
|
490
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
491
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
492
|
-
case "TableInUseException":
|
|
493
|
-
case "com.amazonaws.dynamodb#TableInUseException":
|
|
494
|
-
throw await de_TableInUseExceptionRes(parsedOutput, context);
|
|
495
|
-
case "TableNotFoundException":
|
|
496
|
-
case "com.amazonaws.dynamodb#TableNotFoundException":
|
|
497
|
-
throw await de_TableNotFoundExceptionRes(parsedOutput, context);
|
|
498
|
-
default:
|
|
499
|
-
const parsedBody = parsedOutput.body;
|
|
500
|
-
return throwDefaultError({
|
|
501
|
-
output,
|
|
502
|
-
parsedBody,
|
|
503
|
-
errorCode,
|
|
504
|
-
});
|
|
505
|
-
}
|
|
506
|
-
};
|
|
507
383
|
export const de_CreateGlobalTableCommand = async (output, context) => {
|
|
508
384
|
if (output.statusCode >= 300) {
|
|
509
|
-
return
|
|
385
|
+
return de_CommandError(output, context);
|
|
510
386
|
}
|
|
511
387
|
const data = await parseBody(output.body, context);
|
|
512
388
|
let contents = {};
|
|
@@ -517,40 +393,9 @@ export const de_CreateGlobalTableCommand = async (output, context) => {
|
|
|
517
393
|
};
|
|
518
394
|
return response;
|
|
519
395
|
};
|
|
520
|
-
const de_CreateGlobalTableCommandError = async (output, context) => {
|
|
521
|
-
const parsedOutput = {
|
|
522
|
-
...output,
|
|
523
|
-
body: await parseErrorBody(output.body, context),
|
|
524
|
-
};
|
|
525
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
526
|
-
switch (errorCode) {
|
|
527
|
-
case "GlobalTableAlreadyExistsException":
|
|
528
|
-
case "com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":
|
|
529
|
-
throw await de_GlobalTableAlreadyExistsExceptionRes(parsedOutput, context);
|
|
530
|
-
case "InternalServerError":
|
|
531
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
532
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
533
|
-
case "InvalidEndpointException":
|
|
534
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
535
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
536
|
-
case "LimitExceededException":
|
|
537
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
538
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
539
|
-
case "TableNotFoundException":
|
|
540
|
-
case "com.amazonaws.dynamodb#TableNotFoundException":
|
|
541
|
-
throw await de_TableNotFoundExceptionRes(parsedOutput, context);
|
|
542
|
-
default:
|
|
543
|
-
const parsedBody = parsedOutput.body;
|
|
544
|
-
return throwDefaultError({
|
|
545
|
-
output,
|
|
546
|
-
parsedBody,
|
|
547
|
-
errorCode,
|
|
548
|
-
});
|
|
549
|
-
}
|
|
550
|
-
};
|
|
551
396
|
export const de_CreateTableCommand = async (output, context) => {
|
|
552
397
|
if (output.statusCode >= 300) {
|
|
553
|
-
return
|
|
398
|
+
return de_CommandError(output, context);
|
|
554
399
|
}
|
|
555
400
|
const data = await parseBody(output.body, context);
|
|
556
401
|
let contents = {};
|
|
@@ -561,37 +406,9 @@ export const de_CreateTableCommand = async (output, context) => {
|
|
|
561
406
|
};
|
|
562
407
|
return response;
|
|
563
408
|
};
|
|
564
|
-
const de_CreateTableCommandError = async (output, context) => {
|
|
565
|
-
const parsedOutput = {
|
|
566
|
-
...output,
|
|
567
|
-
body: await parseErrorBody(output.body, context),
|
|
568
|
-
};
|
|
569
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
570
|
-
switch (errorCode) {
|
|
571
|
-
case "InternalServerError":
|
|
572
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
573
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
574
|
-
case "InvalidEndpointException":
|
|
575
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
576
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
577
|
-
case "LimitExceededException":
|
|
578
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
579
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
580
|
-
case "ResourceInUseException":
|
|
581
|
-
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
582
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
583
|
-
default:
|
|
584
|
-
const parsedBody = parsedOutput.body;
|
|
585
|
-
return throwDefaultError({
|
|
586
|
-
output,
|
|
587
|
-
parsedBody,
|
|
588
|
-
errorCode,
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
409
|
export const de_DeleteBackupCommand = async (output, context) => {
|
|
593
410
|
if (output.statusCode >= 300) {
|
|
594
|
-
return
|
|
411
|
+
return de_CommandError(output, context);
|
|
595
412
|
}
|
|
596
413
|
const data = await parseBody(output.body, context);
|
|
597
414
|
let contents = {};
|
|
@@ -602,40 +419,9 @@ export const de_DeleteBackupCommand = async (output, context) => {
|
|
|
602
419
|
};
|
|
603
420
|
return response;
|
|
604
421
|
};
|
|
605
|
-
const de_DeleteBackupCommandError = async (output, context) => {
|
|
606
|
-
const parsedOutput = {
|
|
607
|
-
...output,
|
|
608
|
-
body: await parseErrorBody(output.body, context),
|
|
609
|
-
};
|
|
610
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
611
|
-
switch (errorCode) {
|
|
612
|
-
case "BackupInUseException":
|
|
613
|
-
case "com.amazonaws.dynamodb#BackupInUseException":
|
|
614
|
-
throw await de_BackupInUseExceptionRes(parsedOutput, context);
|
|
615
|
-
case "BackupNotFoundException":
|
|
616
|
-
case "com.amazonaws.dynamodb#BackupNotFoundException":
|
|
617
|
-
throw await de_BackupNotFoundExceptionRes(parsedOutput, context);
|
|
618
|
-
case "InternalServerError":
|
|
619
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
620
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
621
|
-
case "InvalidEndpointException":
|
|
622
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
623
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
624
|
-
case "LimitExceededException":
|
|
625
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
626
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
627
|
-
default:
|
|
628
|
-
const parsedBody = parsedOutput.body;
|
|
629
|
-
return throwDefaultError({
|
|
630
|
-
output,
|
|
631
|
-
parsedBody,
|
|
632
|
-
errorCode,
|
|
633
|
-
});
|
|
634
|
-
}
|
|
635
|
-
};
|
|
636
422
|
export const de_DeleteItemCommand = async (output, context) => {
|
|
637
423
|
if (output.statusCode >= 300) {
|
|
638
|
-
return
|
|
424
|
+
return de_CommandError(output, context);
|
|
639
425
|
}
|
|
640
426
|
const data = await parseBody(output.body, context);
|
|
641
427
|
let contents = {};
|
|
@@ -646,49 +432,9 @@ export const de_DeleteItemCommand = async (output, context) => {
|
|
|
646
432
|
};
|
|
647
433
|
return response;
|
|
648
434
|
};
|
|
649
|
-
const de_DeleteItemCommandError = async (output, context) => {
|
|
650
|
-
const parsedOutput = {
|
|
651
|
-
...output,
|
|
652
|
-
body: await parseErrorBody(output.body, context),
|
|
653
|
-
};
|
|
654
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
655
|
-
switch (errorCode) {
|
|
656
|
-
case "ConditionalCheckFailedException":
|
|
657
|
-
case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
|
|
658
|
-
throw await de_ConditionalCheckFailedExceptionRes(parsedOutput, context);
|
|
659
|
-
case "InternalServerError":
|
|
660
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
661
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
662
|
-
case "InvalidEndpointException":
|
|
663
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
664
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
665
|
-
case "ItemCollectionSizeLimitExceededException":
|
|
666
|
-
case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
|
|
667
|
-
throw await de_ItemCollectionSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ProvisionedThroughputExceededException":
|
|
669
|
-
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
670
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
671
|
-
case "RequestLimitExceeded":
|
|
672
|
-
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
673
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
674
|
-
case "ResourceNotFoundException":
|
|
675
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
676
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
677
|
-
case "TransactionConflictException":
|
|
678
|
-
case "com.amazonaws.dynamodb#TransactionConflictException":
|
|
679
|
-
throw await de_TransactionConflictExceptionRes(parsedOutput, context);
|
|
680
|
-
default:
|
|
681
|
-
const parsedBody = parsedOutput.body;
|
|
682
|
-
return throwDefaultError({
|
|
683
|
-
output,
|
|
684
|
-
parsedBody,
|
|
685
|
-
errorCode,
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
|
-
};
|
|
689
435
|
export const de_DeleteTableCommand = async (output, context) => {
|
|
690
436
|
if (output.statusCode >= 300) {
|
|
691
|
-
return
|
|
437
|
+
return de_CommandError(output, context);
|
|
692
438
|
}
|
|
693
439
|
const data = await parseBody(output.body, context);
|
|
694
440
|
let contents = {};
|
|
@@ -699,40 +445,9 @@ export const de_DeleteTableCommand = async (output, context) => {
|
|
|
699
445
|
};
|
|
700
446
|
return response;
|
|
701
447
|
};
|
|
702
|
-
const de_DeleteTableCommandError = async (output, context) => {
|
|
703
|
-
const parsedOutput = {
|
|
704
|
-
...output,
|
|
705
|
-
body: await parseErrorBody(output.body, context),
|
|
706
|
-
};
|
|
707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
708
|
-
switch (errorCode) {
|
|
709
|
-
case "InternalServerError":
|
|
710
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
711
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
712
|
-
case "InvalidEndpointException":
|
|
713
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
714
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
715
|
-
case "LimitExceededException":
|
|
716
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
717
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
718
|
-
case "ResourceInUseException":
|
|
719
|
-
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
720
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
721
|
-
case "ResourceNotFoundException":
|
|
722
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
723
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
724
|
-
default:
|
|
725
|
-
const parsedBody = parsedOutput.body;
|
|
726
|
-
return throwDefaultError({
|
|
727
|
-
output,
|
|
728
|
-
parsedBody,
|
|
729
|
-
errorCode,
|
|
730
|
-
});
|
|
731
|
-
}
|
|
732
|
-
};
|
|
733
448
|
export const de_DescribeBackupCommand = async (output, context) => {
|
|
734
449
|
if (output.statusCode >= 300) {
|
|
735
|
-
return
|
|
450
|
+
return de_CommandError(output, context);
|
|
736
451
|
}
|
|
737
452
|
const data = await parseBody(output.body, context);
|
|
738
453
|
let contents = {};
|
|
@@ -743,34 +458,9 @@ export const de_DescribeBackupCommand = async (output, context) => {
|
|
|
743
458
|
};
|
|
744
459
|
return response;
|
|
745
460
|
};
|
|
746
|
-
const de_DescribeBackupCommandError = async (output, context) => {
|
|
747
|
-
const parsedOutput = {
|
|
748
|
-
...output,
|
|
749
|
-
body: await parseErrorBody(output.body, context),
|
|
750
|
-
};
|
|
751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
752
|
-
switch (errorCode) {
|
|
753
|
-
case "BackupNotFoundException":
|
|
754
|
-
case "com.amazonaws.dynamodb#BackupNotFoundException":
|
|
755
|
-
throw await de_BackupNotFoundExceptionRes(parsedOutput, context);
|
|
756
|
-
case "InternalServerError":
|
|
757
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
758
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
759
|
-
case "InvalidEndpointException":
|
|
760
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
761
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
762
|
-
default:
|
|
763
|
-
const parsedBody = parsedOutput.body;
|
|
764
|
-
return throwDefaultError({
|
|
765
|
-
output,
|
|
766
|
-
parsedBody,
|
|
767
|
-
errorCode,
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
};
|
|
771
461
|
export const de_DescribeContinuousBackupsCommand = async (output, context) => {
|
|
772
462
|
if (output.statusCode >= 300) {
|
|
773
|
-
return
|
|
463
|
+
return de_CommandError(output, context);
|
|
774
464
|
}
|
|
775
465
|
const data = await parseBody(output.body, context);
|
|
776
466
|
let contents = {};
|
|
@@ -781,34 +471,9 @@ export const de_DescribeContinuousBackupsCommand = async (output, context) => {
|
|
|
781
471
|
};
|
|
782
472
|
return response;
|
|
783
473
|
};
|
|
784
|
-
const de_DescribeContinuousBackupsCommandError = async (output, context) => {
|
|
785
|
-
const parsedOutput = {
|
|
786
|
-
...output,
|
|
787
|
-
body: await parseErrorBody(output.body, context),
|
|
788
|
-
};
|
|
789
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
790
|
-
switch (errorCode) {
|
|
791
|
-
case "InternalServerError":
|
|
792
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
793
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
794
|
-
case "InvalidEndpointException":
|
|
795
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
796
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
797
|
-
case "TableNotFoundException":
|
|
798
|
-
case "com.amazonaws.dynamodb#TableNotFoundException":
|
|
799
|
-
throw await de_TableNotFoundExceptionRes(parsedOutput, context);
|
|
800
|
-
default:
|
|
801
|
-
const parsedBody = parsedOutput.body;
|
|
802
|
-
return throwDefaultError({
|
|
803
|
-
output,
|
|
804
|
-
parsedBody,
|
|
805
|
-
errorCode,
|
|
806
|
-
});
|
|
807
|
-
}
|
|
808
|
-
};
|
|
809
474
|
export const de_DescribeContributorInsightsCommand = async (output, context) => {
|
|
810
475
|
if (output.statusCode >= 300) {
|
|
811
|
-
return
|
|
476
|
+
return de_CommandError(output, context);
|
|
812
477
|
}
|
|
813
478
|
const data = await parseBody(output.body, context);
|
|
814
479
|
let contents = {};
|
|
@@ -819,31 +484,9 @@ export const de_DescribeContributorInsightsCommand = async (output, context) =>
|
|
|
819
484
|
};
|
|
820
485
|
return response;
|
|
821
486
|
};
|
|
822
|
-
const de_DescribeContributorInsightsCommandError = async (output, context) => {
|
|
823
|
-
const parsedOutput = {
|
|
824
|
-
...output,
|
|
825
|
-
body: await parseErrorBody(output.body, context),
|
|
826
|
-
};
|
|
827
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
|
-
switch (errorCode) {
|
|
829
|
-
case "InternalServerError":
|
|
830
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
831
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
832
|
-
case "ResourceNotFoundException":
|
|
833
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
834
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
835
|
-
default:
|
|
836
|
-
const parsedBody = parsedOutput.body;
|
|
837
|
-
return throwDefaultError({
|
|
838
|
-
output,
|
|
839
|
-
parsedBody,
|
|
840
|
-
errorCode,
|
|
841
|
-
});
|
|
842
|
-
}
|
|
843
|
-
};
|
|
844
487
|
export const de_DescribeEndpointsCommand = async (output, context) => {
|
|
845
488
|
if (output.statusCode >= 300) {
|
|
846
|
-
return
|
|
489
|
+
return de_CommandError(output, context);
|
|
847
490
|
}
|
|
848
491
|
const data = await parseBody(output.body, context);
|
|
849
492
|
let contents = {};
|
|
@@ -854,22 +497,9 @@ export const de_DescribeEndpointsCommand = async (output, context) => {
|
|
|
854
497
|
};
|
|
855
498
|
return response;
|
|
856
499
|
};
|
|
857
|
-
const de_DescribeEndpointsCommandError = async (output, context) => {
|
|
858
|
-
const parsedOutput = {
|
|
859
|
-
...output,
|
|
860
|
-
body: await parseErrorBody(output.body, context),
|
|
861
|
-
};
|
|
862
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
863
|
-
const parsedBody = parsedOutput.body;
|
|
864
|
-
return throwDefaultError({
|
|
865
|
-
output,
|
|
866
|
-
parsedBody,
|
|
867
|
-
errorCode,
|
|
868
|
-
});
|
|
869
|
-
};
|
|
870
500
|
export const de_DescribeExportCommand = async (output, context) => {
|
|
871
501
|
if (output.statusCode >= 300) {
|
|
872
|
-
return
|
|
502
|
+
return de_CommandError(output, context);
|
|
873
503
|
}
|
|
874
504
|
const data = await parseBody(output.body, context);
|
|
875
505
|
let contents = {};
|
|
@@ -880,34 +510,9 @@ export const de_DescribeExportCommand = async (output, context) => {
|
|
|
880
510
|
};
|
|
881
511
|
return response;
|
|
882
512
|
};
|
|
883
|
-
const de_DescribeExportCommandError = async (output, context) => {
|
|
884
|
-
const parsedOutput = {
|
|
885
|
-
...output,
|
|
886
|
-
body: await parseErrorBody(output.body, context),
|
|
887
|
-
};
|
|
888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
|
-
switch (errorCode) {
|
|
890
|
-
case "ExportNotFoundException":
|
|
891
|
-
case "com.amazonaws.dynamodb#ExportNotFoundException":
|
|
892
|
-
throw await de_ExportNotFoundExceptionRes(parsedOutput, context);
|
|
893
|
-
case "InternalServerError":
|
|
894
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
895
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
896
|
-
case "LimitExceededException":
|
|
897
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
898
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
899
|
-
default:
|
|
900
|
-
const parsedBody = parsedOutput.body;
|
|
901
|
-
return throwDefaultError({
|
|
902
|
-
output,
|
|
903
|
-
parsedBody,
|
|
904
|
-
errorCode,
|
|
905
|
-
});
|
|
906
|
-
}
|
|
907
|
-
};
|
|
908
513
|
export const de_DescribeGlobalTableCommand = async (output, context) => {
|
|
909
514
|
if (output.statusCode >= 300) {
|
|
910
|
-
return
|
|
515
|
+
return de_CommandError(output, context);
|
|
911
516
|
}
|
|
912
517
|
const data = await parseBody(output.body, context);
|
|
913
518
|
let contents = {};
|
|
@@ -918,34 +523,9 @@ export const de_DescribeGlobalTableCommand = async (output, context) => {
|
|
|
918
523
|
};
|
|
919
524
|
return response;
|
|
920
525
|
};
|
|
921
|
-
const de_DescribeGlobalTableCommandError = async (output, context) => {
|
|
922
|
-
const parsedOutput = {
|
|
923
|
-
...output,
|
|
924
|
-
body: await parseErrorBody(output.body, context),
|
|
925
|
-
};
|
|
926
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
|
-
switch (errorCode) {
|
|
928
|
-
case "GlobalTableNotFoundException":
|
|
929
|
-
case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
|
|
930
|
-
throw await de_GlobalTableNotFoundExceptionRes(parsedOutput, context);
|
|
931
|
-
case "InternalServerError":
|
|
932
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
933
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
934
|
-
case "InvalidEndpointException":
|
|
935
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
936
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
937
|
-
default:
|
|
938
|
-
const parsedBody = parsedOutput.body;
|
|
939
|
-
return throwDefaultError({
|
|
940
|
-
output,
|
|
941
|
-
parsedBody,
|
|
942
|
-
errorCode,
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
};
|
|
946
526
|
export const de_DescribeGlobalTableSettingsCommand = async (output, context) => {
|
|
947
527
|
if (output.statusCode >= 300) {
|
|
948
|
-
return
|
|
528
|
+
return de_CommandError(output, context);
|
|
949
529
|
}
|
|
950
530
|
const data = await parseBody(output.body, context);
|
|
951
531
|
let contents = {};
|
|
@@ -956,34 +536,9 @@ export const de_DescribeGlobalTableSettingsCommand = async (output, context) =>
|
|
|
956
536
|
};
|
|
957
537
|
return response;
|
|
958
538
|
};
|
|
959
|
-
const de_DescribeGlobalTableSettingsCommandError = async (output, context) => {
|
|
960
|
-
const parsedOutput = {
|
|
961
|
-
...output,
|
|
962
|
-
body: await parseErrorBody(output.body, context),
|
|
963
|
-
};
|
|
964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
|
-
switch (errorCode) {
|
|
966
|
-
case "GlobalTableNotFoundException":
|
|
967
|
-
case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
|
|
968
|
-
throw await de_GlobalTableNotFoundExceptionRes(parsedOutput, context);
|
|
969
|
-
case "InternalServerError":
|
|
970
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
971
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
972
|
-
case "InvalidEndpointException":
|
|
973
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
974
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
975
|
-
default:
|
|
976
|
-
const parsedBody = parsedOutput.body;
|
|
977
|
-
return throwDefaultError({
|
|
978
|
-
output,
|
|
979
|
-
parsedBody,
|
|
980
|
-
errorCode,
|
|
981
|
-
});
|
|
982
|
-
}
|
|
983
|
-
};
|
|
984
539
|
export const de_DescribeImportCommand = async (output, context) => {
|
|
985
540
|
if (output.statusCode >= 300) {
|
|
986
|
-
return
|
|
541
|
+
return de_CommandError(output, context);
|
|
987
542
|
}
|
|
988
543
|
const data = await parseBody(output.body, context);
|
|
989
544
|
let contents = {};
|
|
@@ -994,28 +549,9 @@ export const de_DescribeImportCommand = async (output, context) => {
|
|
|
994
549
|
};
|
|
995
550
|
return response;
|
|
996
551
|
};
|
|
997
|
-
const de_DescribeImportCommandError = async (output, context) => {
|
|
998
|
-
const parsedOutput = {
|
|
999
|
-
...output,
|
|
1000
|
-
body: await parseErrorBody(output.body, context),
|
|
1001
|
-
};
|
|
1002
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1003
|
-
switch (errorCode) {
|
|
1004
|
-
case "ImportNotFoundException":
|
|
1005
|
-
case "com.amazonaws.dynamodb#ImportNotFoundException":
|
|
1006
|
-
throw await de_ImportNotFoundExceptionRes(parsedOutput, context);
|
|
1007
|
-
default:
|
|
1008
|
-
const parsedBody = parsedOutput.body;
|
|
1009
|
-
return throwDefaultError({
|
|
1010
|
-
output,
|
|
1011
|
-
parsedBody,
|
|
1012
|
-
errorCode,
|
|
1013
|
-
});
|
|
1014
|
-
}
|
|
1015
|
-
};
|
|
1016
552
|
export const de_DescribeKinesisStreamingDestinationCommand = async (output, context) => {
|
|
1017
553
|
if (output.statusCode >= 300) {
|
|
1018
|
-
return
|
|
554
|
+
return de_CommandError(output, context);
|
|
1019
555
|
}
|
|
1020
556
|
const data = await parseBody(output.body, context);
|
|
1021
557
|
let contents = {};
|
|
@@ -1026,34 +562,9 @@ export const de_DescribeKinesisStreamingDestinationCommand = async (output, cont
|
|
|
1026
562
|
};
|
|
1027
563
|
return response;
|
|
1028
564
|
};
|
|
1029
|
-
const de_DescribeKinesisStreamingDestinationCommandError = async (output, context) => {
|
|
1030
|
-
const parsedOutput = {
|
|
1031
|
-
...output,
|
|
1032
|
-
body: await parseErrorBody(output.body, context),
|
|
1033
|
-
};
|
|
1034
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1035
|
-
switch (errorCode) {
|
|
1036
|
-
case "InternalServerError":
|
|
1037
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1038
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1039
|
-
case "InvalidEndpointException":
|
|
1040
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1041
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1042
|
-
case "ResourceNotFoundException":
|
|
1043
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1044
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1045
|
-
default:
|
|
1046
|
-
const parsedBody = parsedOutput.body;
|
|
1047
|
-
return throwDefaultError({
|
|
1048
|
-
output,
|
|
1049
|
-
parsedBody,
|
|
1050
|
-
errorCode,
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
};
|
|
1054
565
|
export const de_DescribeLimitsCommand = async (output, context) => {
|
|
1055
566
|
if (output.statusCode >= 300) {
|
|
1056
|
-
return
|
|
567
|
+
return de_CommandError(output, context);
|
|
1057
568
|
}
|
|
1058
569
|
const data = await parseBody(output.body, context);
|
|
1059
570
|
let contents = {};
|
|
@@ -1064,31 +575,9 @@ export const de_DescribeLimitsCommand = async (output, context) => {
|
|
|
1064
575
|
};
|
|
1065
576
|
return response;
|
|
1066
577
|
};
|
|
1067
|
-
const de_DescribeLimitsCommandError = async (output, context) => {
|
|
1068
|
-
const parsedOutput = {
|
|
1069
|
-
...output,
|
|
1070
|
-
body: await parseErrorBody(output.body, context),
|
|
1071
|
-
};
|
|
1072
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1073
|
-
switch (errorCode) {
|
|
1074
|
-
case "InternalServerError":
|
|
1075
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1076
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1077
|
-
case "InvalidEndpointException":
|
|
1078
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1079
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1080
|
-
default:
|
|
1081
|
-
const parsedBody = parsedOutput.body;
|
|
1082
|
-
return throwDefaultError({
|
|
1083
|
-
output,
|
|
1084
|
-
parsedBody,
|
|
1085
|
-
errorCode,
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
};
|
|
1089
578
|
export const de_DescribeTableCommand = async (output, context) => {
|
|
1090
579
|
if (output.statusCode >= 300) {
|
|
1091
|
-
return
|
|
580
|
+
return de_CommandError(output, context);
|
|
1092
581
|
}
|
|
1093
582
|
const data = await parseBody(output.body, context);
|
|
1094
583
|
let contents = {};
|
|
@@ -1099,34 +588,9 @@ export const de_DescribeTableCommand = async (output, context) => {
|
|
|
1099
588
|
};
|
|
1100
589
|
return response;
|
|
1101
590
|
};
|
|
1102
|
-
const de_DescribeTableCommandError = async (output, context) => {
|
|
1103
|
-
const parsedOutput = {
|
|
1104
|
-
...output,
|
|
1105
|
-
body: await parseErrorBody(output.body, context),
|
|
1106
|
-
};
|
|
1107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
|
-
switch (errorCode) {
|
|
1109
|
-
case "InternalServerError":
|
|
1110
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1111
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1112
|
-
case "InvalidEndpointException":
|
|
1113
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1114
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "ResourceNotFoundException":
|
|
1116
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1117
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1118
|
-
default:
|
|
1119
|
-
const parsedBody = parsedOutput.body;
|
|
1120
|
-
return throwDefaultError({
|
|
1121
|
-
output,
|
|
1122
|
-
parsedBody,
|
|
1123
|
-
errorCode,
|
|
1124
|
-
});
|
|
1125
|
-
}
|
|
1126
|
-
};
|
|
1127
591
|
export const de_DescribeTableReplicaAutoScalingCommand = async (output, context) => {
|
|
1128
592
|
if (output.statusCode >= 300) {
|
|
1129
|
-
return
|
|
593
|
+
return de_CommandError(output, context);
|
|
1130
594
|
}
|
|
1131
595
|
const data = await parseBody(output.body, context);
|
|
1132
596
|
let contents = {};
|
|
@@ -1137,31 +601,9 @@ export const de_DescribeTableReplicaAutoScalingCommand = async (output, context)
|
|
|
1137
601
|
};
|
|
1138
602
|
return response;
|
|
1139
603
|
};
|
|
1140
|
-
const de_DescribeTableReplicaAutoScalingCommandError = async (output, context) => {
|
|
1141
|
-
const parsedOutput = {
|
|
1142
|
-
...output,
|
|
1143
|
-
body: await parseErrorBody(output.body, context),
|
|
1144
|
-
};
|
|
1145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
|
-
switch (errorCode) {
|
|
1147
|
-
case "InternalServerError":
|
|
1148
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1149
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1150
|
-
case "ResourceNotFoundException":
|
|
1151
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1152
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1153
|
-
default:
|
|
1154
|
-
const parsedBody = parsedOutput.body;
|
|
1155
|
-
return throwDefaultError({
|
|
1156
|
-
output,
|
|
1157
|
-
parsedBody,
|
|
1158
|
-
errorCode,
|
|
1159
|
-
});
|
|
1160
|
-
}
|
|
1161
|
-
};
|
|
1162
604
|
export const de_DescribeTimeToLiveCommand = async (output, context) => {
|
|
1163
605
|
if (output.statusCode >= 300) {
|
|
1164
|
-
return
|
|
606
|
+
return de_CommandError(output, context);
|
|
1165
607
|
}
|
|
1166
608
|
const data = await parseBody(output.body, context);
|
|
1167
609
|
let contents = {};
|
|
@@ -1172,34 +614,9 @@ export const de_DescribeTimeToLiveCommand = async (output, context) => {
|
|
|
1172
614
|
};
|
|
1173
615
|
return response;
|
|
1174
616
|
};
|
|
1175
|
-
const de_DescribeTimeToLiveCommandError = async (output, context) => {
|
|
1176
|
-
const parsedOutput = {
|
|
1177
|
-
...output,
|
|
1178
|
-
body: await parseErrorBody(output.body, context),
|
|
1179
|
-
};
|
|
1180
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1181
|
-
switch (errorCode) {
|
|
1182
|
-
case "InternalServerError":
|
|
1183
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1184
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1185
|
-
case "InvalidEndpointException":
|
|
1186
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1187
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "ResourceNotFoundException":
|
|
1189
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1190
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1191
|
-
default:
|
|
1192
|
-
const parsedBody = parsedOutput.body;
|
|
1193
|
-
return throwDefaultError({
|
|
1194
|
-
output,
|
|
1195
|
-
parsedBody,
|
|
1196
|
-
errorCode,
|
|
1197
|
-
});
|
|
1198
|
-
}
|
|
1199
|
-
};
|
|
1200
617
|
export const de_DisableKinesisStreamingDestinationCommand = async (output, context) => {
|
|
1201
618
|
if (output.statusCode >= 300) {
|
|
1202
|
-
return
|
|
619
|
+
return de_CommandError(output, context);
|
|
1203
620
|
}
|
|
1204
621
|
const data = await parseBody(output.body, context);
|
|
1205
622
|
let contents = {};
|
|
@@ -1210,40 +627,9 @@ export const de_DisableKinesisStreamingDestinationCommand = async (output, conte
|
|
|
1210
627
|
};
|
|
1211
628
|
return response;
|
|
1212
629
|
};
|
|
1213
|
-
const de_DisableKinesisStreamingDestinationCommandError = async (output, context) => {
|
|
1214
|
-
const parsedOutput = {
|
|
1215
|
-
...output,
|
|
1216
|
-
body: await parseErrorBody(output.body, context),
|
|
1217
|
-
};
|
|
1218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
|
-
switch (errorCode) {
|
|
1220
|
-
case "InternalServerError":
|
|
1221
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1222
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1223
|
-
case "InvalidEndpointException":
|
|
1224
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1225
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "LimitExceededException":
|
|
1227
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
1228
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "ResourceInUseException":
|
|
1230
|
-
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
1231
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "ResourceNotFoundException":
|
|
1233
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1234
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1235
|
-
default:
|
|
1236
|
-
const parsedBody = parsedOutput.body;
|
|
1237
|
-
return throwDefaultError({
|
|
1238
|
-
output,
|
|
1239
|
-
parsedBody,
|
|
1240
|
-
errorCode,
|
|
1241
|
-
});
|
|
1242
|
-
}
|
|
1243
|
-
};
|
|
1244
630
|
export const de_EnableKinesisStreamingDestinationCommand = async (output, context) => {
|
|
1245
631
|
if (output.statusCode >= 300) {
|
|
1246
|
-
return
|
|
632
|
+
return de_CommandError(output, context);
|
|
1247
633
|
}
|
|
1248
634
|
const data = await parseBody(output.body, context);
|
|
1249
635
|
let contents = {};
|
|
@@ -1254,40 +640,9 @@ export const de_EnableKinesisStreamingDestinationCommand = async (output, contex
|
|
|
1254
640
|
};
|
|
1255
641
|
return response;
|
|
1256
642
|
};
|
|
1257
|
-
const de_EnableKinesisStreamingDestinationCommandError = async (output, context) => {
|
|
1258
|
-
const parsedOutput = {
|
|
1259
|
-
...output,
|
|
1260
|
-
body: await parseErrorBody(output.body, context),
|
|
1261
|
-
};
|
|
1262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
|
-
switch (errorCode) {
|
|
1264
|
-
case "InternalServerError":
|
|
1265
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1266
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1267
|
-
case "InvalidEndpointException":
|
|
1268
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1269
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "LimitExceededException":
|
|
1271
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
1272
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1273
|
-
case "ResourceInUseException":
|
|
1274
|
-
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
1275
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "ResourceNotFoundException":
|
|
1277
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1278
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1279
|
-
default:
|
|
1280
|
-
const parsedBody = parsedOutput.body;
|
|
1281
|
-
return throwDefaultError({
|
|
1282
|
-
output,
|
|
1283
|
-
parsedBody,
|
|
1284
|
-
errorCode,
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
};
|
|
1288
643
|
export const de_ExecuteStatementCommand = async (output, context) => {
|
|
1289
644
|
if (output.statusCode >= 300) {
|
|
1290
|
-
return
|
|
645
|
+
return de_CommandError(output, context);
|
|
1291
646
|
}
|
|
1292
647
|
const data = await parseBody(output.body, context);
|
|
1293
648
|
let contents = {};
|
|
@@ -1298,49 +653,9 @@ export const de_ExecuteStatementCommand = async (output, context) => {
|
|
|
1298
653
|
};
|
|
1299
654
|
return response;
|
|
1300
655
|
};
|
|
1301
|
-
const de_ExecuteStatementCommandError = async (output, context) => {
|
|
1302
|
-
const parsedOutput = {
|
|
1303
|
-
...output,
|
|
1304
|
-
body: await parseErrorBody(output.body, context),
|
|
1305
|
-
};
|
|
1306
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
|
-
switch (errorCode) {
|
|
1308
|
-
case "ConditionalCheckFailedException":
|
|
1309
|
-
case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
|
|
1310
|
-
throw await de_ConditionalCheckFailedExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "DuplicateItemException":
|
|
1312
|
-
case "com.amazonaws.dynamodb#DuplicateItemException":
|
|
1313
|
-
throw await de_DuplicateItemExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "InternalServerError":
|
|
1315
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1316
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1317
|
-
case "ItemCollectionSizeLimitExceededException":
|
|
1318
|
-
case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
|
|
1319
|
-
throw await de_ItemCollectionSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "ProvisionedThroughputExceededException":
|
|
1321
|
-
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
1322
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "RequestLimitExceeded":
|
|
1324
|
-
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
1325
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
1326
|
-
case "ResourceNotFoundException":
|
|
1327
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1328
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1329
|
-
case "TransactionConflictException":
|
|
1330
|
-
case "com.amazonaws.dynamodb#TransactionConflictException":
|
|
1331
|
-
throw await de_TransactionConflictExceptionRes(parsedOutput, context);
|
|
1332
|
-
default:
|
|
1333
|
-
const parsedBody = parsedOutput.body;
|
|
1334
|
-
return throwDefaultError({
|
|
1335
|
-
output,
|
|
1336
|
-
parsedBody,
|
|
1337
|
-
errorCode,
|
|
1338
|
-
});
|
|
1339
|
-
}
|
|
1340
|
-
};
|
|
1341
656
|
export const de_ExecuteTransactionCommand = async (output, context) => {
|
|
1342
657
|
if (output.statusCode >= 300) {
|
|
1343
|
-
return
|
|
658
|
+
return de_CommandError(output, context);
|
|
1344
659
|
}
|
|
1345
660
|
const data = await parseBody(output.body, context);
|
|
1346
661
|
let contents = {};
|
|
@@ -1351,46 +666,9 @@ export const de_ExecuteTransactionCommand = async (output, context) => {
|
|
|
1351
666
|
};
|
|
1352
667
|
return response;
|
|
1353
668
|
};
|
|
1354
|
-
const de_ExecuteTransactionCommandError = async (output, context) => {
|
|
1355
|
-
const parsedOutput = {
|
|
1356
|
-
...output,
|
|
1357
|
-
body: await parseErrorBody(output.body, context),
|
|
1358
|
-
};
|
|
1359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1360
|
-
switch (errorCode) {
|
|
1361
|
-
case "IdempotentParameterMismatchException":
|
|
1362
|
-
case "com.amazonaws.dynamodb#IdempotentParameterMismatchException":
|
|
1363
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1364
|
-
case "InternalServerError":
|
|
1365
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1366
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1367
|
-
case "ProvisionedThroughputExceededException":
|
|
1368
|
-
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
1369
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1370
|
-
case "RequestLimitExceeded":
|
|
1371
|
-
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
1372
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
1373
|
-
case "ResourceNotFoundException":
|
|
1374
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1375
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1376
|
-
case "TransactionCanceledException":
|
|
1377
|
-
case "com.amazonaws.dynamodb#TransactionCanceledException":
|
|
1378
|
-
throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "TransactionInProgressException":
|
|
1380
|
-
case "com.amazonaws.dynamodb#TransactionInProgressException":
|
|
1381
|
-
throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
|
|
1382
|
-
default:
|
|
1383
|
-
const parsedBody = parsedOutput.body;
|
|
1384
|
-
return throwDefaultError({
|
|
1385
|
-
output,
|
|
1386
|
-
parsedBody,
|
|
1387
|
-
errorCode,
|
|
1388
|
-
});
|
|
1389
|
-
}
|
|
1390
|
-
};
|
|
1391
669
|
export const de_ExportTableToPointInTimeCommand = async (output, context) => {
|
|
1392
670
|
if (output.statusCode >= 300) {
|
|
1393
|
-
return
|
|
671
|
+
return de_CommandError(output, context);
|
|
1394
672
|
}
|
|
1395
673
|
const data = await parseBody(output.body, context);
|
|
1396
674
|
let contents = {};
|
|
@@ -1401,43 +679,9 @@ export const de_ExportTableToPointInTimeCommand = async (output, context) => {
|
|
|
1401
679
|
};
|
|
1402
680
|
return response;
|
|
1403
681
|
};
|
|
1404
|
-
const de_ExportTableToPointInTimeCommandError = async (output, context) => {
|
|
1405
|
-
const parsedOutput = {
|
|
1406
|
-
...output,
|
|
1407
|
-
body: await parseErrorBody(output.body, context),
|
|
1408
|
-
};
|
|
1409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
|
-
switch (errorCode) {
|
|
1411
|
-
case "ExportConflictException":
|
|
1412
|
-
case "com.amazonaws.dynamodb#ExportConflictException":
|
|
1413
|
-
throw await de_ExportConflictExceptionRes(parsedOutput, context);
|
|
1414
|
-
case "InternalServerError":
|
|
1415
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1416
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1417
|
-
case "InvalidExportTimeException":
|
|
1418
|
-
case "com.amazonaws.dynamodb#InvalidExportTimeException":
|
|
1419
|
-
throw await de_InvalidExportTimeExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "LimitExceededException":
|
|
1421
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
1422
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "PointInTimeRecoveryUnavailableException":
|
|
1424
|
-
case "com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":
|
|
1425
|
-
throw await de_PointInTimeRecoveryUnavailableExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "TableNotFoundException":
|
|
1427
|
-
case "com.amazonaws.dynamodb#TableNotFoundException":
|
|
1428
|
-
throw await de_TableNotFoundExceptionRes(parsedOutput, context);
|
|
1429
|
-
default:
|
|
1430
|
-
const parsedBody = parsedOutput.body;
|
|
1431
|
-
return throwDefaultError({
|
|
1432
|
-
output,
|
|
1433
|
-
parsedBody,
|
|
1434
|
-
errorCode,
|
|
1435
|
-
});
|
|
1436
|
-
}
|
|
1437
|
-
};
|
|
1438
682
|
export const de_GetItemCommand = async (output, context) => {
|
|
1439
683
|
if (output.statusCode >= 300) {
|
|
1440
|
-
return
|
|
684
|
+
return de_CommandError(output, context);
|
|
1441
685
|
}
|
|
1442
686
|
const data = await parseBody(output.body, context);
|
|
1443
687
|
let contents = {};
|
|
@@ -1448,40 +692,9 @@ export const de_GetItemCommand = async (output, context) => {
|
|
|
1448
692
|
};
|
|
1449
693
|
return response;
|
|
1450
694
|
};
|
|
1451
|
-
const de_GetItemCommandError = async (output, context) => {
|
|
1452
|
-
const parsedOutput = {
|
|
1453
|
-
...output,
|
|
1454
|
-
body: await parseErrorBody(output.body, context),
|
|
1455
|
-
};
|
|
1456
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1457
|
-
switch (errorCode) {
|
|
1458
|
-
case "InternalServerError":
|
|
1459
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1460
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1461
|
-
case "InvalidEndpointException":
|
|
1462
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1463
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1464
|
-
case "ProvisionedThroughputExceededException":
|
|
1465
|
-
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
1466
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "RequestLimitExceeded":
|
|
1468
|
-
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
1469
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
1470
|
-
case "ResourceNotFoundException":
|
|
1471
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1472
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1473
|
-
default:
|
|
1474
|
-
const parsedBody = parsedOutput.body;
|
|
1475
|
-
return throwDefaultError({
|
|
1476
|
-
output,
|
|
1477
|
-
parsedBody,
|
|
1478
|
-
errorCode,
|
|
1479
|
-
});
|
|
1480
|
-
}
|
|
1481
|
-
};
|
|
1482
695
|
export const de_ImportTableCommand = async (output, context) => {
|
|
1483
696
|
if (output.statusCode >= 300) {
|
|
1484
|
-
return
|
|
697
|
+
return de_CommandError(output, context);
|
|
1485
698
|
}
|
|
1486
699
|
const data = await parseBody(output.body, context);
|
|
1487
700
|
let contents = {};
|
|
@@ -1492,69 +705,22 @@ export const de_ImportTableCommand = async (output, context) => {
|
|
|
1492
705
|
};
|
|
1493
706
|
return response;
|
|
1494
707
|
};
|
|
1495
|
-
const
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
case "LimitExceededException":
|
|
1506
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
1507
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1508
|
-
case "ResourceInUseException":
|
|
1509
|
-
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
1510
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1511
|
-
default:
|
|
1512
|
-
const parsedBody = parsedOutput.body;
|
|
1513
|
-
return throwDefaultError({
|
|
1514
|
-
output,
|
|
1515
|
-
parsedBody,
|
|
1516
|
-
errorCode,
|
|
1517
|
-
});
|
|
1518
|
-
}
|
|
1519
|
-
};
|
|
1520
|
-
export const de_ListBackupsCommand = async (output, context) => {
|
|
1521
|
-
if (output.statusCode >= 300) {
|
|
1522
|
-
return de_ListBackupsCommandError(output, context);
|
|
1523
|
-
}
|
|
1524
|
-
const data = await parseBody(output.body, context);
|
|
1525
|
-
let contents = {};
|
|
1526
|
-
contents = de_ListBackupsOutput(data, context);
|
|
1527
|
-
const response = {
|
|
1528
|
-
$metadata: deserializeMetadata(output),
|
|
1529
|
-
...contents,
|
|
708
|
+
export const de_ListBackupsCommand = async (output, context) => {
|
|
709
|
+
if (output.statusCode >= 300) {
|
|
710
|
+
return de_CommandError(output, context);
|
|
711
|
+
}
|
|
712
|
+
const data = await parseBody(output.body, context);
|
|
713
|
+
let contents = {};
|
|
714
|
+
contents = de_ListBackupsOutput(data, context);
|
|
715
|
+
const response = {
|
|
716
|
+
$metadata: deserializeMetadata(output),
|
|
717
|
+
...contents,
|
|
1530
718
|
};
|
|
1531
719
|
return response;
|
|
1532
720
|
};
|
|
1533
|
-
const de_ListBackupsCommandError = async (output, context) => {
|
|
1534
|
-
const parsedOutput = {
|
|
1535
|
-
...output,
|
|
1536
|
-
body: await parseErrorBody(output.body, context),
|
|
1537
|
-
};
|
|
1538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1539
|
-
switch (errorCode) {
|
|
1540
|
-
case "InternalServerError":
|
|
1541
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1542
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1543
|
-
case "InvalidEndpointException":
|
|
1544
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1545
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1546
|
-
default:
|
|
1547
|
-
const parsedBody = parsedOutput.body;
|
|
1548
|
-
return throwDefaultError({
|
|
1549
|
-
output,
|
|
1550
|
-
parsedBody,
|
|
1551
|
-
errorCode,
|
|
1552
|
-
});
|
|
1553
|
-
}
|
|
1554
|
-
};
|
|
1555
721
|
export const de_ListContributorInsightsCommand = async (output, context) => {
|
|
1556
722
|
if (output.statusCode >= 300) {
|
|
1557
|
-
return
|
|
723
|
+
return de_CommandError(output, context);
|
|
1558
724
|
}
|
|
1559
725
|
const data = await parseBody(output.body, context);
|
|
1560
726
|
let contents = {};
|
|
@@ -1565,31 +731,9 @@ export const de_ListContributorInsightsCommand = async (output, context) => {
|
|
|
1565
731
|
};
|
|
1566
732
|
return response;
|
|
1567
733
|
};
|
|
1568
|
-
const de_ListContributorInsightsCommandError = async (output, context) => {
|
|
1569
|
-
const parsedOutput = {
|
|
1570
|
-
...output,
|
|
1571
|
-
body: await parseErrorBody(output.body, context),
|
|
1572
|
-
};
|
|
1573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
|
-
switch (errorCode) {
|
|
1575
|
-
case "InternalServerError":
|
|
1576
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1577
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1578
|
-
case "ResourceNotFoundException":
|
|
1579
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1580
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1581
|
-
default:
|
|
1582
|
-
const parsedBody = parsedOutput.body;
|
|
1583
|
-
return throwDefaultError({
|
|
1584
|
-
output,
|
|
1585
|
-
parsedBody,
|
|
1586
|
-
errorCode,
|
|
1587
|
-
});
|
|
1588
|
-
}
|
|
1589
|
-
};
|
|
1590
734
|
export const de_ListExportsCommand = async (output, context) => {
|
|
1591
735
|
if (output.statusCode >= 300) {
|
|
1592
|
-
return
|
|
736
|
+
return de_CommandError(output, context);
|
|
1593
737
|
}
|
|
1594
738
|
const data = await parseBody(output.body, context);
|
|
1595
739
|
let contents = {};
|
|
@@ -1600,31 +744,9 @@ export const de_ListExportsCommand = async (output, context) => {
|
|
|
1600
744
|
};
|
|
1601
745
|
return response;
|
|
1602
746
|
};
|
|
1603
|
-
const de_ListExportsCommandError = async (output, context) => {
|
|
1604
|
-
const parsedOutput = {
|
|
1605
|
-
...output,
|
|
1606
|
-
body: await parseErrorBody(output.body, context),
|
|
1607
|
-
};
|
|
1608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1609
|
-
switch (errorCode) {
|
|
1610
|
-
case "InternalServerError":
|
|
1611
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1612
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1613
|
-
case "LimitExceededException":
|
|
1614
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
1615
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1616
|
-
default:
|
|
1617
|
-
const parsedBody = parsedOutput.body;
|
|
1618
|
-
return throwDefaultError({
|
|
1619
|
-
output,
|
|
1620
|
-
parsedBody,
|
|
1621
|
-
errorCode,
|
|
1622
|
-
});
|
|
1623
|
-
}
|
|
1624
|
-
};
|
|
1625
747
|
export const de_ListGlobalTablesCommand = async (output, context) => {
|
|
1626
748
|
if (output.statusCode >= 300) {
|
|
1627
|
-
return
|
|
749
|
+
return de_CommandError(output, context);
|
|
1628
750
|
}
|
|
1629
751
|
const data = await parseBody(output.body, context);
|
|
1630
752
|
let contents = {};
|
|
@@ -1635,31 +757,9 @@ export const de_ListGlobalTablesCommand = async (output, context) => {
|
|
|
1635
757
|
};
|
|
1636
758
|
return response;
|
|
1637
759
|
};
|
|
1638
|
-
const de_ListGlobalTablesCommandError = async (output, context) => {
|
|
1639
|
-
const parsedOutput = {
|
|
1640
|
-
...output,
|
|
1641
|
-
body: await parseErrorBody(output.body, context),
|
|
1642
|
-
};
|
|
1643
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1644
|
-
switch (errorCode) {
|
|
1645
|
-
case "InternalServerError":
|
|
1646
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1647
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1648
|
-
case "InvalidEndpointException":
|
|
1649
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1650
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1651
|
-
default:
|
|
1652
|
-
const parsedBody = parsedOutput.body;
|
|
1653
|
-
return throwDefaultError({
|
|
1654
|
-
output,
|
|
1655
|
-
parsedBody,
|
|
1656
|
-
errorCode,
|
|
1657
|
-
});
|
|
1658
|
-
}
|
|
1659
|
-
};
|
|
1660
760
|
export const de_ListImportsCommand = async (output, context) => {
|
|
1661
761
|
if (output.statusCode >= 300) {
|
|
1662
|
-
return
|
|
762
|
+
return de_CommandError(output, context);
|
|
1663
763
|
}
|
|
1664
764
|
const data = await parseBody(output.body, context);
|
|
1665
765
|
let contents = {};
|
|
@@ -1670,28 +770,9 @@ export const de_ListImportsCommand = async (output, context) => {
|
|
|
1670
770
|
};
|
|
1671
771
|
return response;
|
|
1672
772
|
};
|
|
1673
|
-
const de_ListImportsCommandError = async (output, context) => {
|
|
1674
|
-
const parsedOutput = {
|
|
1675
|
-
...output,
|
|
1676
|
-
body: await parseErrorBody(output.body, context),
|
|
1677
|
-
};
|
|
1678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1679
|
-
switch (errorCode) {
|
|
1680
|
-
case "LimitExceededException":
|
|
1681
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
1682
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1683
|
-
default:
|
|
1684
|
-
const parsedBody = parsedOutput.body;
|
|
1685
|
-
return throwDefaultError({
|
|
1686
|
-
output,
|
|
1687
|
-
parsedBody,
|
|
1688
|
-
errorCode,
|
|
1689
|
-
});
|
|
1690
|
-
}
|
|
1691
|
-
};
|
|
1692
773
|
export const de_ListTablesCommand = async (output, context) => {
|
|
1693
774
|
if (output.statusCode >= 300) {
|
|
1694
|
-
return
|
|
775
|
+
return de_CommandError(output, context);
|
|
1695
776
|
}
|
|
1696
777
|
const data = await parseBody(output.body, context);
|
|
1697
778
|
let contents = {};
|
|
@@ -1702,31 +783,9 @@ export const de_ListTablesCommand = async (output, context) => {
|
|
|
1702
783
|
};
|
|
1703
784
|
return response;
|
|
1704
785
|
};
|
|
1705
|
-
const de_ListTablesCommandError = async (output, context) => {
|
|
1706
|
-
const parsedOutput = {
|
|
1707
|
-
...output,
|
|
1708
|
-
body: await parseErrorBody(output.body, context),
|
|
1709
|
-
};
|
|
1710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1711
|
-
switch (errorCode) {
|
|
1712
|
-
case "InternalServerError":
|
|
1713
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1714
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1715
|
-
case "InvalidEndpointException":
|
|
1716
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1717
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1718
|
-
default:
|
|
1719
|
-
const parsedBody = parsedOutput.body;
|
|
1720
|
-
return throwDefaultError({
|
|
1721
|
-
output,
|
|
1722
|
-
parsedBody,
|
|
1723
|
-
errorCode,
|
|
1724
|
-
});
|
|
1725
|
-
}
|
|
1726
|
-
};
|
|
1727
786
|
export const de_ListTagsOfResourceCommand = async (output, context) => {
|
|
1728
787
|
if (output.statusCode >= 300) {
|
|
1729
|
-
return
|
|
788
|
+
return de_CommandError(output, context);
|
|
1730
789
|
}
|
|
1731
790
|
const data = await parseBody(output.body, context);
|
|
1732
791
|
let contents = {};
|
|
@@ -1737,34 +796,9 @@ export const de_ListTagsOfResourceCommand = async (output, context) => {
|
|
|
1737
796
|
};
|
|
1738
797
|
return response;
|
|
1739
798
|
};
|
|
1740
|
-
const de_ListTagsOfResourceCommandError = async (output, context) => {
|
|
1741
|
-
const parsedOutput = {
|
|
1742
|
-
...output,
|
|
1743
|
-
body: await parseErrorBody(output.body, context),
|
|
1744
|
-
};
|
|
1745
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1746
|
-
switch (errorCode) {
|
|
1747
|
-
case "InternalServerError":
|
|
1748
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1749
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1750
|
-
case "InvalidEndpointException":
|
|
1751
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1752
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1753
|
-
case "ResourceNotFoundException":
|
|
1754
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1755
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1756
|
-
default:
|
|
1757
|
-
const parsedBody = parsedOutput.body;
|
|
1758
|
-
return throwDefaultError({
|
|
1759
|
-
output,
|
|
1760
|
-
parsedBody,
|
|
1761
|
-
errorCode,
|
|
1762
|
-
});
|
|
1763
|
-
}
|
|
1764
|
-
};
|
|
1765
799
|
export const de_PutItemCommand = async (output, context) => {
|
|
1766
800
|
if (output.statusCode >= 300) {
|
|
1767
|
-
return
|
|
801
|
+
return de_CommandError(output, context);
|
|
1768
802
|
}
|
|
1769
803
|
const data = await parseBody(output.body, context);
|
|
1770
804
|
let contents = {};
|
|
@@ -1775,49 +809,9 @@ export const de_PutItemCommand = async (output, context) => {
|
|
|
1775
809
|
};
|
|
1776
810
|
return response;
|
|
1777
811
|
};
|
|
1778
|
-
const de_PutItemCommandError = async (output, context) => {
|
|
1779
|
-
const parsedOutput = {
|
|
1780
|
-
...output,
|
|
1781
|
-
body: await parseErrorBody(output.body, context),
|
|
1782
|
-
};
|
|
1783
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1784
|
-
switch (errorCode) {
|
|
1785
|
-
case "ConditionalCheckFailedException":
|
|
1786
|
-
case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
|
|
1787
|
-
throw await de_ConditionalCheckFailedExceptionRes(parsedOutput, context);
|
|
1788
|
-
case "InternalServerError":
|
|
1789
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1790
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1791
|
-
case "InvalidEndpointException":
|
|
1792
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1793
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1794
|
-
case "ItemCollectionSizeLimitExceededException":
|
|
1795
|
-
case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
|
|
1796
|
-
throw await de_ItemCollectionSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1797
|
-
case "ProvisionedThroughputExceededException":
|
|
1798
|
-
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
1799
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1800
|
-
case "RequestLimitExceeded":
|
|
1801
|
-
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
1802
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
1803
|
-
case "ResourceNotFoundException":
|
|
1804
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1805
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1806
|
-
case "TransactionConflictException":
|
|
1807
|
-
case "com.amazonaws.dynamodb#TransactionConflictException":
|
|
1808
|
-
throw await de_TransactionConflictExceptionRes(parsedOutput, context);
|
|
1809
|
-
default:
|
|
1810
|
-
const parsedBody = parsedOutput.body;
|
|
1811
|
-
return throwDefaultError({
|
|
1812
|
-
output,
|
|
1813
|
-
parsedBody,
|
|
1814
|
-
errorCode,
|
|
1815
|
-
});
|
|
1816
|
-
}
|
|
1817
|
-
};
|
|
1818
812
|
export const de_QueryCommand = async (output, context) => {
|
|
1819
813
|
if (output.statusCode >= 300) {
|
|
1820
|
-
return
|
|
814
|
+
return de_CommandError(output, context);
|
|
1821
815
|
}
|
|
1822
816
|
const data = await parseBody(output.body, context);
|
|
1823
817
|
let contents = {};
|
|
@@ -1828,40 +822,9 @@ export const de_QueryCommand = async (output, context) => {
|
|
|
1828
822
|
};
|
|
1829
823
|
return response;
|
|
1830
824
|
};
|
|
1831
|
-
const de_QueryCommandError = async (output, context) => {
|
|
1832
|
-
const parsedOutput = {
|
|
1833
|
-
...output,
|
|
1834
|
-
body: await parseErrorBody(output.body, context),
|
|
1835
|
-
};
|
|
1836
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1837
|
-
switch (errorCode) {
|
|
1838
|
-
case "InternalServerError":
|
|
1839
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1840
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1841
|
-
case "InvalidEndpointException":
|
|
1842
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1843
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1844
|
-
case "ProvisionedThroughputExceededException":
|
|
1845
|
-
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
1846
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1847
|
-
case "RequestLimitExceeded":
|
|
1848
|
-
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
1849
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
1850
|
-
case "ResourceNotFoundException":
|
|
1851
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1852
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1853
|
-
default:
|
|
1854
|
-
const parsedBody = parsedOutput.body;
|
|
1855
|
-
return throwDefaultError({
|
|
1856
|
-
output,
|
|
1857
|
-
parsedBody,
|
|
1858
|
-
errorCode,
|
|
1859
|
-
});
|
|
1860
|
-
}
|
|
1861
|
-
};
|
|
1862
825
|
export const de_RestoreTableFromBackupCommand = async (output, context) => {
|
|
1863
826
|
if (output.statusCode >= 300) {
|
|
1864
|
-
return
|
|
827
|
+
return de_CommandError(output, context);
|
|
1865
828
|
}
|
|
1866
829
|
const data = await parseBody(output.body, context);
|
|
1867
830
|
let contents = {};
|
|
@@ -1872,99 +835,22 @@ export const de_RestoreTableFromBackupCommand = async (output, context) => {
|
|
|
1872
835
|
};
|
|
1873
836
|
return response;
|
|
1874
837
|
};
|
|
1875
|
-
const
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
case "BackupNotFoundException":
|
|
1886
|
-
case "com.amazonaws.dynamodb#BackupNotFoundException":
|
|
1887
|
-
throw await de_BackupNotFoundExceptionRes(parsedOutput, context);
|
|
1888
|
-
case "InternalServerError":
|
|
1889
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1890
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1891
|
-
case "InvalidEndpointException":
|
|
1892
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1893
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1894
|
-
case "LimitExceededException":
|
|
1895
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
1896
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1897
|
-
case "TableAlreadyExistsException":
|
|
1898
|
-
case "com.amazonaws.dynamodb#TableAlreadyExistsException":
|
|
1899
|
-
throw await de_TableAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "TableInUseException":
|
|
1901
|
-
case "com.amazonaws.dynamodb#TableInUseException":
|
|
1902
|
-
throw await de_TableInUseExceptionRes(parsedOutput, context);
|
|
1903
|
-
default:
|
|
1904
|
-
const parsedBody = parsedOutput.body;
|
|
1905
|
-
return throwDefaultError({
|
|
1906
|
-
output,
|
|
1907
|
-
parsedBody,
|
|
1908
|
-
errorCode,
|
|
1909
|
-
});
|
|
1910
|
-
}
|
|
1911
|
-
};
|
|
1912
|
-
export const de_RestoreTableToPointInTimeCommand = async (output, context) => {
|
|
1913
|
-
if (output.statusCode >= 300) {
|
|
1914
|
-
return de_RestoreTableToPointInTimeCommandError(output, context);
|
|
1915
|
-
}
|
|
1916
|
-
const data = await parseBody(output.body, context);
|
|
1917
|
-
let contents = {};
|
|
1918
|
-
contents = de_RestoreTableToPointInTimeOutput(data, context);
|
|
1919
|
-
const response = {
|
|
1920
|
-
$metadata: deserializeMetadata(output),
|
|
1921
|
-
...contents,
|
|
838
|
+
export const de_RestoreTableToPointInTimeCommand = async (output, context) => {
|
|
839
|
+
if (output.statusCode >= 300) {
|
|
840
|
+
return de_CommandError(output, context);
|
|
841
|
+
}
|
|
842
|
+
const data = await parseBody(output.body, context);
|
|
843
|
+
let contents = {};
|
|
844
|
+
contents = de_RestoreTableToPointInTimeOutput(data, context);
|
|
845
|
+
const response = {
|
|
846
|
+
$metadata: deserializeMetadata(output),
|
|
847
|
+
...contents,
|
|
1922
848
|
};
|
|
1923
849
|
return response;
|
|
1924
850
|
};
|
|
1925
|
-
const de_RestoreTableToPointInTimeCommandError = async (output, context) => {
|
|
1926
|
-
const parsedOutput = {
|
|
1927
|
-
...output,
|
|
1928
|
-
body: await parseErrorBody(output.body, context),
|
|
1929
|
-
};
|
|
1930
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1931
|
-
switch (errorCode) {
|
|
1932
|
-
case "InternalServerError":
|
|
1933
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1934
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1935
|
-
case "InvalidEndpointException":
|
|
1936
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1937
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1938
|
-
case "InvalidRestoreTimeException":
|
|
1939
|
-
case "com.amazonaws.dynamodb#InvalidRestoreTimeException":
|
|
1940
|
-
throw await de_InvalidRestoreTimeExceptionRes(parsedOutput, context);
|
|
1941
|
-
case "LimitExceededException":
|
|
1942
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
1943
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1944
|
-
case "PointInTimeRecoveryUnavailableException":
|
|
1945
|
-
case "com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":
|
|
1946
|
-
throw await de_PointInTimeRecoveryUnavailableExceptionRes(parsedOutput, context);
|
|
1947
|
-
case "TableAlreadyExistsException":
|
|
1948
|
-
case "com.amazonaws.dynamodb#TableAlreadyExistsException":
|
|
1949
|
-
throw await de_TableAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1950
|
-
case "TableInUseException":
|
|
1951
|
-
case "com.amazonaws.dynamodb#TableInUseException":
|
|
1952
|
-
throw await de_TableInUseExceptionRes(parsedOutput, context);
|
|
1953
|
-
case "TableNotFoundException":
|
|
1954
|
-
case "com.amazonaws.dynamodb#TableNotFoundException":
|
|
1955
|
-
throw await de_TableNotFoundExceptionRes(parsedOutput, context);
|
|
1956
|
-
default:
|
|
1957
|
-
const parsedBody = parsedOutput.body;
|
|
1958
|
-
return throwDefaultError({
|
|
1959
|
-
output,
|
|
1960
|
-
parsedBody,
|
|
1961
|
-
errorCode,
|
|
1962
|
-
});
|
|
1963
|
-
}
|
|
1964
|
-
};
|
|
1965
851
|
export const de_ScanCommand = async (output, context) => {
|
|
1966
852
|
if (output.statusCode >= 300) {
|
|
1967
|
-
return
|
|
853
|
+
return de_CommandError(output, context);
|
|
1968
854
|
}
|
|
1969
855
|
const data = await parseBody(output.body, context);
|
|
1970
856
|
let contents = {};
|
|
@@ -1975,40 +861,9 @@ export const de_ScanCommand = async (output, context) => {
|
|
|
1975
861
|
};
|
|
1976
862
|
return response;
|
|
1977
863
|
};
|
|
1978
|
-
const de_ScanCommandError = async (output, context) => {
|
|
1979
|
-
const parsedOutput = {
|
|
1980
|
-
...output,
|
|
1981
|
-
body: await parseErrorBody(output.body, context),
|
|
1982
|
-
};
|
|
1983
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1984
|
-
switch (errorCode) {
|
|
1985
|
-
case "InternalServerError":
|
|
1986
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1987
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1988
|
-
case "InvalidEndpointException":
|
|
1989
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1990
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1991
|
-
case "ProvisionedThroughputExceededException":
|
|
1992
|
-
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
1993
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1994
|
-
case "RequestLimitExceeded":
|
|
1995
|
-
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
1996
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
1997
|
-
case "ResourceNotFoundException":
|
|
1998
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1999
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2000
|
-
default:
|
|
2001
|
-
const parsedBody = parsedOutput.body;
|
|
2002
|
-
return throwDefaultError({
|
|
2003
|
-
output,
|
|
2004
|
-
parsedBody,
|
|
2005
|
-
errorCode,
|
|
2006
|
-
});
|
|
2007
|
-
}
|
|
2008
|
-
};
|
|
2009
864
|
export const de_TagResourceCommand = async (output, context) => {
|
|
2010
865
|
if (output.statusCode >= 300) {
|
|
2011
|
-
return
|
|
866
|
+
return de_CommandError(output, context);
|
|
2012
867
|
}
|
|
2013
868
|
await collectBody(output.body, context);
|
|
2014
869
|
const response = {
|
|
@@ -2016,40 +871,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2016
871
|
};
|
|
2017
872
|
return response;
|
|
2018
873
|
};
|
|
2019
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2020
|
-
const parsedOutput = {
|
|
2021
|
-
...output,
|
|
2022
|
-
body: await parseErrorBody(output.body, context),
|
|
2023
|
-
};
|
|
2024
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2025
|
-
switch (errorCode) {
|
|
2026
|
-
case "InternalServerError":
|
|
2027
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2028
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2029
|
-
case "InvalidEndpointException":
|
|
2030
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2031
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
2032
|
-
case "LimitExceededException":
|
|
2033
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
2034
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2035
|
-
case "ResourceInUseException":
|
|
2036
|
-
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
2037
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2038
|
-
case "ResourceNotFoundException":
|
|
2039
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2040
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2041
|
-
default:
|
|
2042
|
-
const parsedBody = parsedOutput.body;
|
|
2043
|
-
return throwDefaultError({
|
|
2044
|
-
output,
|
|
2045
|
-
parsedBody,
|
|
2046
|
-
errorCode,
|
|
2047
|
-
});
|
|
2048
|
-
}
|
|
2049
|
-
};
|
|
2050
874
|
export const de_TransactGetItemsCommand = async (output, context) => {
|
|
2051
875
|
if (output.statusCode >= 300) {
|
|
2052
|
-
return
|
|
876
|
+
return de_CommandError(output, context);
|
|
2053
877
|
}
|
|
2054
878
|
const data = await parseBody(output.body, context);
|
|
2055
879
|
let contents = {};
|
|
@@ -2060,43 +884,9 @@ export const de_TransactGetItemsCommand = async (output, context) => {
|
|
|
2060
884
|
};
|
|
2061
885
|
return response;
|
|
2062
886
|
};
|
|
2063
|
-
const de_TransactGetItemsCommandError = async (output, context) => {
|
|
2064
|
-
const parsedOutput = {
|
|
2065
|
-
...output,
|
|
2066
|
-
body: await parseErrorBody(output.body, context),
|
|
2067
|
-
};
|
|
2068
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2069
|
-
switch (errorCode) {
|
|
2070
|
-
case "InternalServerError":
|
|
2071
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2072
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2073
|
-
case "InvalidEndpointException":
|
|
2074
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2075
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
2076
|
-
case "ProvisionedThroughputExceededException":
|
|
2077
|
-
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
2078
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
2079
|
-
case "RequestLimitExceeded":
|
|
2080
|
-
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
2081
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
2082
|
-
case "ResourceNotFoundException":
|
|
2083
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2084
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2085
|
-
case "TransactionCanceledException":
|
|
2086
|
-
case "com.amazonaws.dynamodb#TransactionCanceledException":
|
|
2087
|
-
throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
|
|
2088
|
-
default:
|
|
2089
|
-
const parsedBody = parsedOutput.body;
|
|
2090
|
-
return throwDefaultError({
|
|
2091
|
-
output,
|
|
2092
|
-
parsedBody,
|
|
2093
|
-
errorCode,
|
|
2094
|
-
});
|
|
2095
|
-
}
|
|
2096
|
-
};
|
|
2097
887
|
export const de_TransactWriteItemsCommand = async (output, context) => {
|
|
2098
888
|
if (output.statusCode >= 300) {
|
|
2099
|
-
return
|
|
889
|
+
return de_CommandError(output, context);
|
|
2100
890
|
}
|
|
2101
891
|
const data = await parseBody(output.body, context);
|
|
2102
892
|
let contents = {};
|
|
@@ -2107,49 +897,9 @@ export const de_TransactWriteItemsCommand = async (output, context) => {
|
|
|
2107
897
|
};
|
|
2108
898
|
return response;
|
|
2109
899
|
};
|
|
2110
|
-
const de_TransactWriteItemsCommandError = async (output, context) => {
|
|
2111
|
-
const parsedOutput = {
|
|
2112
|
-
...output,
|
|
2113
|
-
body: await parseErrorBody(output.body, context),
|
|
2114
|
-
};
|
|
2115
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2116
|
-
switch (errorCode) {
|
|
2117
|
-
case "IdempotentParameterMismatchException":
|
|
2118
|
-
case "com.amazonaws.dynamodb#IdempotentParameterMismatchException":
|
|
2119
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2120
|
-
case "InternalServerError":
|
|
2121
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2122
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2123
|
-
case "InvalidEndpointException":
|
|
2124
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2125
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
2126
|
-
case "ProvisionedThroughputExceededException":
|
|
2127
|
-
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
2128
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
2129
|
-
case "RequestLimitExceeded":
|
|
2130
|
-
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
2131
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
2132
|
-
case "ResourceNotFoundException":
|
|
2133
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2134
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2135
|
-
case "TransactionCanceledException":
|
|
2136
|
-
case "com.amazonaws.dynamodb#TransactionCanceledException":
|
|
2137
|
-
throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
|
|
2138
|
-
case "TransactionInProgressException":
|
|
2139
|
-
case "com.amazonaws.dynamodb#TransactionInProgressException":
|
|
2140
|
-
throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
|
|
2141
|
-
default:
|
|
2142
|
-
const parsedBody = parsedOutput.body;
|
|
2143
|
-
return throwDefaultError({
|
|
2144
|
-
output,
|
|
2145
|
-
parsedBody,
|
|
2146
|
-
errorCode,
|
|
2147
|
-
});
|
|
2148
|
-
}
|
|
2149
|
-
};
|
|
2150
900
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
2151
901
|
if (output.statusCode >= 300) {
|
|
2152
|
-
return
|
|
902
|
+
return de_CommandError(output, context);
|
|
2153
903
|
}
|
|
2154
904
|
await collectBody(output.body, context);
|
|
2155
905
|
const response = {
|
|
@@ -2157,40 +907,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2157
907
|
};
|
|
2158
908
|
return response;
|
|
2159
909
|
};
|
|
2160
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2161
|
-
const parsedOutput = {
|
|
2162
|
-
...output,
|
|
2163
|
-
body: await parseErrorBody(output.body, context),
|
|
2164
|
-
};
|
|
2165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2166
|
-
switch (errorCode) {
|
|
2167
|
-
case "InternalServerError":
|
|
2168
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2169
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2170
|
-
case "InvalidEndpointException":
|
|
2171
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2172
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
2173
|
-
case "LimitExceededException":
|
|
2174
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
2175
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2176
|
-
case "ResourceInUseException":
|
|
2177
|
-
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
2178
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2179
|
-
case "ResourceNotFoundException":
|
|
2180
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2181
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2182
|
-
default:
|
|
2183
|
-
const parsedBody = parsedOutput.body;
|
|
2184
|
-
return throwDefaultError({
|
|
2185
|
-
output,
|
|
2186
|
-
parsedBody,
|
|
2187
|
-
errorCode,
|
|
2188
|
-
});
|
|
2189
|
-
}
|
|
2190
|
-
};
|
|
2191
910
|
export const de_UpdateContinuousBackupsCommand = async (output, context) => {
|
|
2192
911
|
if (output.statusCode >= 300) {
|
|
2193
|
-
return
|
|
912
|
+
return de_CommandError(output, context);
|
|
2194
913
|
}
|
|
2195
914
|
const data = await parseBody(output.body, context);
|
|
2196
915
|
let contents = {};
|
|
@@ -2201,37 +920,9 @@ export const de_UpdateContinuousBackupsCommand = async (output, context) => {
|
|
|
2201
920
|
};
|
|
2202
921
|
return response;
|
|
2203
922
|
};
|
|
2204
|
-
const de_UpdateContinuousBackupsCommandError = async (output, context) => {
|
|
2205
|
-
const parsedOutput = {
|
|
2206
|
-
...output,
|
|
2207
|
-
body: await parseErrorBody(output.body, context),
|
|
2208
|
-
};
|
|
2209
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2210
|
-
switch (errorCode) {
|
|
2211
|
-
case "ContinuousBackupsUnavailableException":
|
|
2212
|
-
case "com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":
|
|
2213
|
-
throw await de_ContinuousBackupsUnavailableExceptionRes(parsedOutput, context);
|
|
2214
|
-
case "InternalServerError":
|
|
2215
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2216
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2217
|
-
case "InvalidEndpointException":
|
|
2218
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2219
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
2220
|
-
case "TableNotFoundException":
|
|
2221
|
-
case "com.amazonaws.dynamodb#TableNotFoundException":
|
|
2222
|
-
throw await de_TableNotFoundExceptionRes(parsedOutput, context);
|
|
2223
|
-
default:
|
|
2224
|
-
const parsedBody = parsedOutput.body;
|
|
2225
|
-
return throwDefaultError({
|
|
2226
|
-
output,
|
|
2227
|
-
parsedBody,
|
|
2228
|
-
errorCode,
|
|
2229
|
-
});
|
|
2230
|
-
}
|
|
2231
|
-
};
|
|
2232
923
|
export const de_UpdateContributorInsightsCommand = async (output, context) => {
|
|
2233
924
|
if (output.statusCode >= 300) {
|
|
2234
|
-
return
|
|
925
|
+
return de_CommandError(output, context);
|
|
2235
926
|
}
|
|
2236
927
|
const data = await parseBody(output.body, context);
|
|
2237
928
|
let contents = {};
|
|
@@ -2242,78 +933,22 @@ export const de_UpdateContributorInsightsCommand = async (output, context) => {
|
|
|
2242
933
|
};
|
|
2243
934
|
return response;
|
|
2244
935
|
};
|
|
2245
|
-
const de_UpdateContributorInsightsCommandError = async (output, context) => {
|
|
2246
|
-
const parsedOutput = {
|
|
2247
|
-
...output,
|
|
2248
|
-
body: await parseErrorBody(output.body, context),
|
|
2249
|
-
};
|
|
2250
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2251
|
-
switch (errorCode) {
|
|
2252
|
-
case "InternalServerError":
|
|
2253
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2254
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2255
|
-
case "ResourceNotFoundException":
|
|
2256
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2257
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2258
|
-
default:
|
|
2259
|
-
const parsedBody = parsedOutput.body;
|
|
2260
|
-
return throwDefaultError({
|
|
2261
|
-
output,
|
|
2262
|
-
parsedBody,
|
|
2263
|
-
errorCode,
|
|
2264
|
-
});
|
|
2265
|
-
}
|
|
2266
|
-
};
|
|
2267
936
|
export const de_UpdateGlobalTableCommand = async (output, context) => {
|
|
2268
937
|
if (output.statusCode >= 300) {
|
|
2269
|
-
return
|
|
938
|
+
return de_CommandError(output, context);
|
|
2270
939
|
}
|
|
2271
940
|
const data = await parseBody(output.body, context);
|
|
2272
|
-
let contents = {};
|
|
2273
|
-
contents = de_UpdateGlobalTableOutput(data, context);
|
|
2274
|
-
const response = {
|
|
2275
|
-
$metadata: deserializeMetadata(output),
|
|
2276
|
-
...contents,
|
|
2277
|
-
};
|
|
2278
|
-
return response;
|
|
2279
|
-
};
|
|
2280
|
-
const de_UpdateGlobalTableCommandError = async (output, context) => {
|
|
2281
|
-
const parsedOutput = {
|
|
2282
|
-
...output,
|
|
2283
|
-
body: await parseErrorBody(output.body, context),
|
|
2284
|
-
};
|
|
2285
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2286
|
-
switch (errorCode) {
|
|
2287
|
-
case "GlobalTableNotFoundException":
|
|
2288
|
-
case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
|
|
2289
|
-
throw await de_GlobalTableNotFoundExceptionRes(parsedOutput, context);
|
|
2290
|
-
case "InternalServerError":
|
|
2291
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2292
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2293
|
-
case "InvalidEndpointException":
|
|
2294
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2295
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
2296
|
-
case "ReplicaAlreadyExistsException":
|
|
2297
|
-
case "com.amazonaws.dynamodb#ReplicaAlreadyExistsException":
|
|
2298
|
-
throw await de_ReplicaAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2299
|
-
case "ReplicaNotFoundException":
|
|
2300
|
-
case "com.amazonaws.dynamodb#ReplicaNotFoundException":
|
|
2301
|
-
throw await de_ReplicaNotFoundExceptionRes(parsedOutput, context);
|
|
2302
|
-
case "TableNotFoundException":
|
|
2303
|
-
case "com.amazonaws.dynamodb#TableNotFoundException":
|
|
2304
|
-
throw await de_TableNotFoundExceptionRes(parsedOutput, context);
|
|
2305
|
-
default:
|
|
2306
|
-
const parsedBody = parsedOutput.body;
|
|
2307
|
-
return throwDefaultError({
|
|
2308
|
-
output,
|
|
2309
|
-
parsedBody,
|
|
2310
|
-
errorCode,
|
|
2311
|
-
});
|
|
2312
|
-
}
|
|
941
|
+
let contents = {};
|
|
942
|
+
contents = de_UpdateGlobalTableOutput(data, context);
|
|
943
|
+
const response = {
|
|
944
|
+
$metadata: deserializeMetadata(output),
|
|
945
|
+
...contents,
|
|
946
|
+
};
|
|
947
|
+
return response;
|
|
2313
948
|
};
|
|
2314
949
|
export const de_UpdateGlobalTableSettingsCommand = async (output, context) => {
|
|
2315
950
|
if (output.statusCode >= 300) {
|
|
2316
|
-
return
|
|
951
|
+
return de_CommandError(output, context);
|
|
2317
952
|
}
|
|
2318
953
|
const data = await parseBody(output.body, context);
|
|
2319
954
|
let contents = {};
|
|
@@ -2324,46 +959,9 @@ export const de_UpdateGlobalTableSettingsCommand = async (output, context) => {
|
|
|
2324
959
|
};
|
|
2325
960
|
return response;
|
|
2326
961
|
};
|
|
2327
|
-
const de_UpdateGlobalTableSettingsCommandError = async (output, context) => {
|
|
2328
|
-
const parsedOutput = {
|
|
2329
|
-
...output,
|
|
2330
|
-
body: await parseErrorBody(output.body, context),
|
|
2331
|
-
};
|
|
2332
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2333
|
-
switch (errorCode) {
|
|
2334
|
-
case "GlobalTableNotFoundException":
|
|
2335
|
-
case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
|
|
2336
|
-
throw await de_GlobalTableNotFoundExceptionRes(parsedOutput, context);
|
|
2337
|
-
case "IndexNotFoundException":
|
|
2338
|
-
case "com.amazonaws.dynamodb#IndexNotFoundException":
|
|
2339
|
-
throw await de_IndexNotFoundExceptionRes(parsedOutput, context);
|
|
2340
|
-
case "InternalServerError":
|
|
2341
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2342
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2343
|
-
case "InvalidEndpointException":
|
|
2344
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2345
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
2346
|
-
case "LimitExceededException":
|
|
2347
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
2348
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2349
|
-
case "ReplicaNotFoundException":
|
|
2350
|
-
case "com.amazonaws.dynamodb#ReplicaNotFoundException":
|
|
2351
|
-
throw await de_ReplicaNotFoundExceptionRes(parsedOutput, context);
|
|
2352
|
-
case "ResourceInUseException":
|
|
2353
|
-
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
2354
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2355
|
-
default:
|
|
2356
|
-
const parsedBody = parsedOutput.body;
|
|
2357
|
-
return throwDefaultError({
|
|
2358
|
-
output,
|
|
2359
|
-
parsedBody,
|
|
2360
|
-
errorCode,
|
|
2361
|
-
});
|
|
2362
|
-
}
|
|
2363
|
-
};
|
|
2364
962
|
export const de_UpdateItemCommand = async (output, context) => {
|
|
2365
963
|
if (output.statusCode >= 300) {
|
|
2366
|
-
return
|
|
964
|
+
return de_CommandError(output, context);
|
|
2367
965
|
}
|
|
2368
966
|
const data = await parseBody(output.body, context);
|
|
2369
967
|
let contents = {};
|
|
@@ -2374,49 +972,9 @@ export const de_UpdateItemCommand = async (output, context) => {
|
|
|
2374
972
|
};
|
|
2375
973
|
return response;
|
|
2376
974
|
};
|
|
2377
|
-
const de_UpdateItemCommandError = async (output, context) => {
|
|
2378
|
-
const parsedOutput = {
|
|
2379
|
-
...output,
|
|
2380
|
-
body: await parseErrorBody(output.body, context),
|
|
2381
|
-
};
|
|
2382
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2383
|
-
switch (errorCode) {
|
|
2384
|
-
case "ConditionalCheckFailedException":
|
|
2385
|
-
case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
|
|
2386
|
-
throw await de_ConditionalCheckFailedExceptionRes(parsedOutput, context);
|
|
2387
|
-
case "InternalServerError":
|
|
2388
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2389
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2390
|
-
case "InvalidEndpointException":
|
|
2391
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2392
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
2393
|
-
case "ItemCollectionSizeLimitExceededException":
|
|
2394
|
-
case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
|
|
2395
|
-
throw await de_ItemCollectionSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
2396
|
-
case "ProvisionedThroughputExceededException":
|
|
2397
|
-
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
2398
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
2399
|
-
case "RequestLimitExceeded":
|
|
2400
|
-
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
2401
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
2402
|
-
case "ResourceNotFoundException":
|
|
2403
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2404
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2405
|
-
case "TransactionConflictException":
|
|
2406
|
-
case "com.amazonaws.dynamodb#TransactionConflictException":
|
|
2407
|
-
throw await de_TransactionConflictExceptionRes(parsedOutput, context);
|
|
2408
|
-
default:
|
|
2409
|
-
const parsedBody = parsedOutput.body;
|
|
2410
|
-
return throwDefaultError({
|
|
2411
|
-
output,
|
|
2412
|
-
parsedBody,
|
|
2413
|
-
errorCode,
|
|
2414
|
-
});
|
|
2415
|
-
}
|
|
2416
|
-
};
|
|
2417
975
|
export const de_UpdateKinesisStreamingDestinationCommand = async (output, context) => {
|
|
2418
976
|
if (output.statusCode >= 300) {
|
|
2419
|
-
return
|
|
977
|
+
return de_CommandError(output, context);
|
|
2420
978
|
}
|
|
2421
979
|
const data = await parseBody(output.body, context);
|
|
2422
980
|
let contents = {};
|
|
@@ -2427,40 +985,9 @@ export const de_UpdateKinesisStreamingDestinationCommand = async (output, contex
|
|
|
2427
985
|
};
|
|
2428
986
|
return response;
|
|
2429
987
|
};
|
|
2430
|
-
const de_UpdateKinesisStreamingDestinationCommandError = async (output, context) => {
|
|
2431
|
-
const parsedOutput = {
|
|
2432
|
-
...output,
|
|
2433
|
-
body: await parseErrorBody(output.body, context),
|
|
2434
|
-
};
|
|
2435
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2436
|
-
switch (errorCode) {
|
|
2437
|
-
case "InternalServerError":
|
|
2438
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2439
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2440
|
-
case "InvalidEndpointException":
|
|
2441
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2442
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
2443
|
-
case "LimitExceededException":
|
|
2444
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
2445
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2446
|
-
case "ResourceInUseException":
|
|
2447
|
-
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
2448
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2449
|
-
case "ResourceNotFoundException":
|
|
2450
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2451
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2452
|
-
default:
|
|
2453
|
-
const parsedBody = parsedOutput.body;
|
|
2454
|
-
return throwDefaultError({
|
|
2455
|
-
output,
|
|
2456
|
-
parsedBody,
|
|
2457
|
-
errorCode,
|
|
2458
|
-
});
|
|
2459
|
-
}
|
|
2460
|
-
};
|
|
2461
988
|
export const de_UpdateTableCommand = async (output, context) => {
|
|
2462
989
|
if (output.statusCode >= 300) {
|
|
2463
|
-
return
|
|
990
|
+
return de_CommandError(output, context);
|
|
2464
991
|
}
|
|
2465
992
|
const data = await parseBody(output.body, context);
|
|
2466
993
|
let contents = {};
|
|
@@ -2471,40 +998,9 @@ export const de_UpdateTableCommand = async (output, context) => {
|
|
|
2471
998
|
};
|
|
2472
999
|
return response;
|
|
2473
1000
|
};
|
|
2474
|
-
const de_UpdateTableCommandError = async (output, context) => {
|
|
2475
|
-
const parsedOutput = {
|
|
2476
|
-
...output,
|
|
2477
|
-
body: await parseErrorBody(output.body, context),
|
|
2478
|
-
};
|
|
2479
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2480
|
-
switch (errorCode) {
|
|
2481
|
-
case "InternalServerError":
|
|
2482
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2483
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2484
|
-
case "InvalidEndpointException":
|
|
2485
|
-
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2486
|
-
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
2487
|
-
case "LimitExceededException":
|
|
2488
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
2489
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2490
|
-
case "ResourceInUseException":
|
|
2491
|
-
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
2492
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2493
|
-
case "ResourceNotFoundException":
|
|
2494
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2495
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2496
|
-
default:
|
|
2497
|
-
const parsedBody = parsedOutput.body;
|
|
2498
|
-
return throwDefaultError({
|
|
2499
|
-
output,
|
|
2500
|
-
parsedBody,
|
|
2501
|
-
errorCode,
|
|
2502
|
-
});
|
|
2503
|
-
}
|
|
2504
|
-
};
|
|
2505
1001
|
export const de_UpdateTableReplicaAutoScalingCommand = async (output, context) => {
|
|
2506
1002
|
if (output.statusCode >= 300) {
|
|
2507
|
-
return
|
|
1003
|
+
return de_CommandError(output, context);
|
|
2508
1004
|
}
|
|
2509
1005
|
const data = await parseBody(output.body, context);
|
|
2510
1006
|
let contents = {};
|
|
@@ -2515,37 +1011,9 @@ export const de_UpdateTableReplicaAutoScalingCommand = async (output, context) =
|
|
|
2515
1011
|
};
|
|
2516
1012
|
return response;
|
|
2517
1013
|
};
|
|
2518
|
-
const de_UpdateTableReplicaAutoScalingCommandError = async (output, context) => {
|
|
2519
|
-
const parsedOutput = {
|
|
2520
|
-
...output,
|
|
2521
|
-
body: await parseErrorBody(output.body, context),
|
|
2522
|
-
};
|
|
2523
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2524
|
-
switch (errorCode) {
|
|
2525
|
-
case "InternalServerError":
|
|
2526
|
-
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2527
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2528
|
-
case "LimitExceededException":
|
|
2529
|
-
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
2530
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2531
|
-
case "ResourceInUseException":
|
|
2532
|
-
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
2533
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2534
|
-
case "ResourceNotFoundException":
|
|
2535
|
-
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2536
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2537
|
-
default:
|
|
2538
|
-
const parsedBody = parsedOutput.body;
|
|
2539
|
-
return throwDefaultError({
|
|
2540
|
-
output,
|
|
2541
|
-
parsedBody,
|
|
2542
|
-
errorCode,
|
|
2543
|
-
});
|
|
2544
|
-
}
|
|
2545
|
-
};
|
|
2546
1014
|
export const de_UpdateTimeToLiveCommand = async (output, context) => {
|
|
2547
1015
|
if (output.statusCode >= 300) {
|
|
2548
|
-
return
|
|
1016
|
+
return de_CommandError(output, context);
|
|
2549
1017
|
}
|
|
2550
1018
|
const data = await parseBody(output.body, context);
|
|
2551
1019
|
let contents = {};
|
|
@@ -2556,7 +1024,7 @@ export const de_UpdateTimeToLiveCommand = async (output, context) => {
|
|
|
2556
1024
|
};
|
|
2557
1025
|
return response;
|
|
2558
1026
|
};
|
|
2559
|
-
const
|
|
1027
|
+
const de_CommandError = async (output, context) => {
|
|
2560
1028
|
const parsedOutput = {
|
|
2561
1029
|
...output,
|
|
2562
1030
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2566,18 +1034,99 @@ const de_UpdateTimeToLiveCommandError = async (output, context) => {
|
|
|
2566
1034
|
case "InternalServerError":
|
|
2567
1035
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2568
1036
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1037
|
+
case "RequestLimitExceeded":
|
|
1038
|
+
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
1039
|
+
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
2569
1040
|
case "InvalidEndpointException":
|
|
2570
1041
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2571
1042
|
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1043
|
+
case "ProvisionedThroughputExceededException":
|
|
1044
|
+
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
1045
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1046
|
+
case "ResourceNotFoundException":
|
|
1047
|
+
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1048
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1049
|
+
case "ItemCollectionSizeLimitExceededException":
|
|
1050
|
+
case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
|
|
1051
|
+
throw await de_ItemCollectionSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1052
|
+
case "BackupInUseException":
|
|
1053
|
+
case "com.amazonaws.dynamodb#BackupInUseException":
|
|
1054
|
+
throw await de_BackupInUseExceptionRes(parsedOutput, context);
|
|
1055
|
+
case "ContinuousBackupsUnavailableException":
|
|
1056
|
+
case "com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":
|
|
1057
|
+
throw await de_ContinuousBackupsUnavailableExceptionRes(parsedOutput, context);
|
|
2572
1058
|
case "LimitExceededException":
|
|
2573
1059
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
2574
1060
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1061
|
+
case "TableInUseException":
|
|
1062
|
+
case "com.amazonaws.dynamodb#TableInUseException":
|
|
1063
|
+
throw await de_TableInUseExceptionRes(parsedOutput, context);
|
|
1064
|
+
case "TableNotFoundException":
|
|
1065
|
+
case "com.amazonaws.dynamodb#TableNotFoundException":
|
|
1066
|
+
throw await de_TableNotFoundExceptionRes(parsedOutput, context);
|
|
1067
|
+
case "GlobalTableAlreadyExistsException":
|
|
1068
|
+
case "com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":
|
|
1069
|
+
throw await de_GlobalTableAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2575
1070
|
case "ResourceInUseException":
|
|
2576
1071
|
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
2577
1072
|
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2578
|
-
case "
|
|
2579
|
-
case "com.amazonaws.dynamodb#
|
|
2580
|
-
throw await
|
|
1073
|
+
case "BackupNotFoundException":
|
|
1074
|
+
case "com.amazonaws.dynamodb#BackupNotFoundException":
|
|
1075
|
+
throw await de_BackupNotFoundExceptionRes(parsedOutput, context);
|
|
1076
|
+
case "ConditionalCheckFailedException":
|
|
1077
|
+
case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
|
|
1078
|
+
throw await de_ConditionalCheckFailedExceptionRes(parsedOutput, context);
|
|
1079
|
+
case "TransactionConflictException":
|
|
1080
|
+
case "com.amazonaws.dynamodb#TransactionConflictException":
|
|
1081
|
+
throw await de_TransactionConflictExceptionRes(parsedOutput, context);
|
|
1082
|
+
case "ExportNotFoundException":
|
|
1083
|
+
case "com.amazonaws.dynamodb#ExportNotFoundException":
|
|
1084
|
+
throw await de_ExportNotFoundExceptionRes(parsedOutput, context);
|
|
1085
|
+
case "GlobalTableNotFoundException":
|
|
1086
|
+
case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
|
|
1087
|
+
throw await de_GlobalTableNotFoundExceptionRes(parsedOutput, context);
|
|
1088
|
+
case "ImportNotFoundException":
|
|
1089
|
+
case "com.amazonaws.dynamodb#ImportNotFoundException":
|
|
1090
|
+
throw await de_ImportNotFoundExceptionRes(parsedOutput, context);
|
|
1091
|
+
case "DuplicateItemException":
|
|
1092
|
+
case "com.amazonaws.dynamodb#DuplicateItemException":
|
|
1093
|
+
throw await de_DuplicateItemExceptionRes(parsedOutput, context);
|
|
1094
|
+
case "IdempotentParameterMismatchException":
|
|
1095
|
+
case "com.amazonaws.dynamodb#IdempotentParameterMismatchException":
|
|
1096
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1097
|
+
case "TransactionCanceledException":
|
|
1098
|
+
case "com.amazonaws.dynamodb#TransactionCanceledException":
|
|
1099
|
+
throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
|
|
1100
|
+
case "TransactionInProgressException":
|
|
1101
|
+
case "com.amazonaws.dynamodb#TransactionInProgressException":
|
|
1102
|
+
throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
|
|
1103
|
+
case "ExportConflictException":
|
|
1104
|
+
case "com.amazonaws.dynamodb#ExportConflictException":
|
|
1105
|
+
throw await de_ExportConflictExceptionRes(parsedOutput, context);
|
|
1106
|
+
case "InvalidExportTimeException":
|
|
1107
|
+
case "com.amazonaws.dynamodb#InvalidExportTimeException":
|
|
1108
|
+
throw await de_InvalidExportTimeExceptionRes(parsedOutput, context);
|
|
1109
|
+
case "PointInTimeRecoveryUnavailableException":
|
|
1110
|
+
case "com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":
|
|
1111
|
+
throw await de_PointInTimeRecoveryUnavailableExceptionRes(parsedOutput, context);
|
|
1112
|
+
case "ImportConflictException":
|
|
1113
|
+
case "com.amazonaws.dynamodb#ImportConflictException":
|
|
1114
|
+
throw await de_ImportConflictExceptionRes(parsedOutput, context);
|
|
1115
|
+
case "TableAlreadyExistsException":
|
|
1116
|
+
case "com.amazonaws.dynamodb#TableAlreadyExistsException":
|
|
1117
|
+
throw await de_TableAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1118
|
+
case "InvalidRestoreTimeException":
|
|
1119
|
+
case "com.amazonaws.dynamodb#InvalidRestoreTimeException":
|
|
1120
|
+
throw await de_InvalidRestoreTimeExceptionRes(parsedOutput, context);
|
|
1121
|
+
case "ReplicaAlreadyExistsException":
|
|
1122
|
+
case "com.amazonaws.dynamodb#ReplicaAlreadyExistsException":
|
|
1123
|
+
throw await de_ReplicaAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1124
|
+
case "ReplicaNotFoundException":
|
|
1125
|
+
case "com.amazonaws.dynamodb#ReplicaNotFoundException":
|
|
1126
|
+
throw await de_ReplicaNotFoundExceptionRes(parsedOutput, context);
|
|
1127
|
+
case "IndexNotFoundException":
|
|
1128
|
+
case "com.amazonaws.dynamodb#IndexNotFoundException":
|
|
1129
|
+
throw await de_IndexNotFoundExceptionRes(parsedOutput, context);
|
|
2581
1130
|
default:
|
|
2582
1131
|
const parsedBody = parsedOutput.body;
|
|
2583
1132
|
return throwDefaultError({
|