@aws-sdk/client-dynamodb 3.52.0 → 3.54.1
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/CHANGELOG.md +28 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/DynamoDBServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +419 -16
- package/dist-cjs/protocols/Aws_json1_0.js +595 -2032
- package/dist-es/index.js +1 -0
- package/dist-es/models/DynamoDBServiceException.js +12 -0
- package/dist-es/models/models_0.js +385 -13
- package/dist-es/protocols/Aws_json1_0.js +1218 -2169
- package/dist-types/DynamoDB.d.ts +10 -0
- package/dist-types/DynamoDBClient.d.ts +2 -2
- package/dist-types/commands/ExecuteStatementCommand.d.ts +10 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/DynamoDBServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +251 -155
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/DynamoDBClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/DynamoDBServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +165 -131
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +29 -29
|
@@ -5,6 +5,7 @@ exports.deserializeAws_json1_0UpdateTimeToLiveCommand = exports.deserializeAws_j
|
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
|
+
const DynamoDBServiceException_1 = require("../models/DynamoDBServiceException");
|
|
8
9
|
const models_0_1 = require("../models/models_0");
|
|
9
10
|
const serializeAws_json1_0BatchExecuteStatementCommand = async (input, context) => {
|
|
10
11
|
const headers = {
|
|
@@ -531,35 +532,19 @@ const deserializeAws_json1_0BatchExecuteStatementCommandError = async (output, c
|
|
|
531
532
|
switch (errorCode) {
|
|
532
533
|
case "InternalServerError":
|
|
533
534
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
534
|
-
|
|
535
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
536
|
-
name: errorCode,
|
|
537
|
-
$metadata: deserializeMetadata(output),
|
|
538
|
-
};
|
|
539
|
-
break;
|
|
535
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
540
536
|
case "RequestLimitExceeded":
|
|
541
537
|
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
542
|
-
|
|
543
|
-
...(await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context)),
|
|
544
|
-
name: errorCode,
|
|
545
|
-
$metadata: deserializeMetadata(output),
|
|
546
|
-
};
|
|
547
|
-
break;
|
|
538
|
+
throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context);
|
|
548
539
|
default:
|
|
549
540
|
const parsedBody = parsedOutput.body;
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
...parsedBody,
|
|
553
|
-
name: `${errorCode}`,
|
|
554
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
541
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
542
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
555
543
|
$fault: "client",
|
|
556
544
|
$metadata: deserializeMetadata(output),
|
|
557
|
-
};
|
|
545
|
+
});
|
|
546
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
558
547
|
}
|
|
559
|
-
const message = response.message || response.Message || errorCode;
|
|
560
|
-
response.message = message;
|
|
561
|
-
delete response.Message;
|
|
562
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
563
548
|
};
|
|
564
549
|
const deserializeAws_json1_0BatchGetItemCommand = async (output, context) => {
|
|
565
550
|
if (output.statusCode >= 300) {
|
|
@@ -586,59 +571,28 @@ const deserializeAws_json1_0BatchGetItemCommandError = async (output, context) =
|
|
|
586
571
|
switch (errorCode) {
|
|
587
572
|
case "InternalServerError":
|
|
588
573
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
589
|
-
|
|
590
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
591
|
-
name: errorCode,
|
|
592
|
-
$metadata: deserializeMetadata(output),
|
|
593
|
-
};
|
|
594
|
-
break;
|
|
574
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
595
575
|
case "InvalidEndpointException":
|
|
596
576
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
597
|
-
|
|
598
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
599
|
-
name: errorCode,
|
|
600
|
-
$metadata: deserializeMetadata(output),
|
|
601
|
-
};
|
|
602
|
-
break;
|
|
577
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
603
578
|
case "ProvisionedThroughputExceededException":
|
|
604
579
|
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
605
|
-
|
|
606
|
-
...(await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)),
|
|
607
|
-
name: errorCode,
|
|
608
|
-
$metadata: deserializeMetadata(output),
|
|
609
|
-
};
|
|
610
|
-
break;
|
|
580
|
+
throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
611
581
|
case "RequestLimitExceeded":
|
|
612
582
|
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
613
|
-
|
|
614
|
-
...(await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context)),
|
|
615
|
-
name: errorCode,
|
|
616
|
-
$metadata: deserializeMetadata(output),
|
|
617
|
-
};
|
|
618
|
-
break;
|
|
583
|
+
throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context);
|
|
619
584
|
case "ResourceNotFoundException":
|
|
620
585
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
621
|
-
|
|
622
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
623
|
-
name: errorCode,
|
|
624
|
-
$metadata: deserializeMetadata(output),
|
|
625
|
-
};
|
|
626
|
-
break;
|
|
586
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
627
587
|
default:
|
|
628
588
|
const parsedBody = parsedOutput.body;
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
...parsedBody,
|
|
632
|
-
name: `${errorCode}`,
|
|
633
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
589
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
590
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
634
591
|
$fault: "client",
|
|
635
592
|
$metadata: deserializeMetadata(output),
|
|
636
|
-
};
|
|
593
|
+
});
|
|
594
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
637
595
|
}
|
|
638
|
-
const message = response.message || response.Message || errorCode;
|
|
639
|
-
response.message = message;
|
|
640
|
-
delete response.Message;
|
|
641
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
642
596
|
};
|
|
643
597
|
const deserializeAws_json1_0BatchWriteItemCommand = async (output, context) => {
|
|
644
598
|
if (output.statusCode >= 300) {
|
|
@@ -665,67 +619,31 @@ const deserializeAws_json1_0BatchWriteItemCommandError = async (output, context)
|
|
|
665
619
|
switch (errorCode) {
|
|
666
620
|
case "InternalServerError":
|
|
667
621
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
668
|
-
|
|
669
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
670
|
-
name: errorCode,
|
|
671
|
-
$metadata: deserializeMetadata(output),
|
|
672
|
-
};
|
|
673
|
-
break;
|
|
622
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
674
623
|
case "InvalidEndpointException":
|
|
675
624
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
676
|
-
|
|
677
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
678
|
-
name: errorCode,
|
|
679
|
-
$metadata: deserializeMetadata(output),
|
|
680
|
-
};
|
|
681
|
-
break;
|
|
625
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
682
626
|
case "ItemCollectionSizeLimitExceededException":
|
|
683
627
|
case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
|
|
684
|
-
|
|
685
|
-
...(await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context)),
|
|
686
|
-
name: errorCode,
|
|
687
|
-
$metadata: deserializeMetadata(output),
|
|
688
|
-
};
|
|
689
|
-
break;
|
|
628
|
+
throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
690
629
|
case "ProvisionedThroughputExceededException":
|
|
691
630
|
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
692
|
-
|
|
693
|
-
...(await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)),
|
|
694
|
-
name: errorCode,
|
|
695
|
-
$metadata: deserializeMetadata(output),
|
|
696
|
-
};
|
|
697
|
-
break;
|
|
631
|
+
throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
698
632
|
case "RequestLimitExceeded":
|
|
699
633
|
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
700
|
-
|
|
701
|
-
...(await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context)),
|
|
702
|
-
name: errorCode,
|
|
703
|
-
$metadata: deserializeMetadata(output),
|
|
704
|
-
};
|
|
705
|
-
break;
|
|
634
|
+
throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context);
|
|
706
635
|
case "ResourceNotFoundException":
|
|
707
636
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
708
|
-
|
|
709
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
710
|
-
name: errorCode,
|
|
711
|
-
$metadata: deserializeMetadata(output),
|
|
712
|
-
};
|
|
713
|
-
break;
|
|
637
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
714
638
|
default:
|
|
715
639
|
const parsedBody = parsedOutput.body;
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
...parsedBody,
|
|
719
|
-
name: `${errorCode}`,
|
|
720
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
640
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
641
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
721
642
|
$fault: "client",
|
|
722
643
|
$metadata: deserializeMetadata(output),
|
|
723
|
-
};
|
|
644
|
+
});
|
|
645
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
724
646
|
}
|
|
725
|
-
const message = response.message || response.Message || errorCode;
|
|
726
|
-
response.message = message;
|
|
727
|
-
delete response.Message;
|
|
728
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
729
647
|
};
|
|
730
648
|
const deserializeAws_json1_0CreateBackupCommand = async (output, context) => {
|
|
731
649
|
if (output.statusCode >= 300) {
|
|
@@ -752,75 +670,34 @@ const deserializeAws_json1_0CreateBackupCommandError = async (output, context) =
|
|
|
752
670
|
switch (errorCode) {
|
|
753
671
|
case "BackupInUseException":
|
|
754
672
|
case "com.amazonaws.dynamodb#BackupInUseException":
|
|
755
|
-
|
|
756
|
-
...(await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context)),
|
|
757
|
-
name: errorCode,
|
|
758
|
-
$metadata: deserializeMetadata(output),
|
|
759
|
-
};
|
|
760
|
-
break;
|
|
673
|
+
throw await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context);
|
|
761
674
|
case "ContinuousBackupsUnavailableException":
|
|
762
675
|
case "com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":
|
|
763
|
-
|
|
764
|
-
...(await deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse(parsedOutput, context)),
|
|
765
|
-
name: errorCode,
|
|
766
|
-
$metadata: deserializeMetadata(output),
|
|
767
|
-
};
|
|
768
|
-
break;
|
|
676
|
+
throw await deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse(parsedOutput, context);
|
|
769
677
|
case "InternalServerError":
|
|
770
678
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
771
|
-
|
|
772
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
773
|
-
name: errorCode,
|
|
774
|
-
$metadata: deserializeMetadata(output),
|
|
775
|
-
};
|
|
776
|
-
break;
|
|
679
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
777
680
|
case "InvalidEndpointException":
|
|
778
681
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
779
|
-
|
|
780
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
781
|
-
name: errorCode,
|
|
782
|
-
$metadata: deserializeMetadata(output),
|
|
783
|
-
};
|
|
784
|
-
break;
|
|
682
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
785
683
|
case "LimitExceededException":
|
|
786
684
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
787
|
-
|
|
788
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
789
|
-
name: errorCode,
|
|
790
|
-
$metadata: deserializeMetadata(output),
|
|
791
|
-
};
|
|
792
|
-
break;
|
|
685
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
793
686
|
case "TableInUseException":
|
|
794
687
|
case "com.amazonaws.dynamodb#TableInUseException":
|
|
795
|
-
|
|
796
|
-
...(await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context)),
|
|
797
|
-
name: errorCode,
|
|
798
|
-
$metadata: deserializeMetadata(output),
|
|
799
|
-
};
|
|
800
|
-
break;
|
|
688
|
+
throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context);
|
|
801
689
|
case "TableNotFoundException":
|
|
802
690
|
case "com.amazonaws.dynamodb#TableNotFoundException":
|
|
803
|
-
|
|
804
|
-
...(await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context)),
|
|
805
|
-
name: errorCode,
|
|
806
|
-
$metadata: deserializeMetadata(output),
|
|
807
|
-
};
|
|
808
|
-
break;
|
|
691
|
+
throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
|
|
809
692
|
default:
|
|
810
693
|
const parsedBody = parsedOutput.body;
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
...parsedBody,
|
|
814
|
-
name: `${errorCode}`,
|
|
815
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
694
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
695
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
816
696
|
$fault: "client",
|
|
817
697
|
$metadata: deserializeMetadata(output),
|
|
818
|
-
};
|
|
698
|
+
});
|
|
699
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
819
700
|
}
|
|
820
|
-
const message = response.message || response.Message || errorCode;
|
|
821
|
-
response.message = message;
|
|
822
|
-
delete response.Message;
|
|
823
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
824
701
|
};
|
|
825
702
|
const deserializeAws_json1_0CreateGlobalTableCommand = async (output, context) => {
|
|
826
703
|
if (output.statusCode >= 300) {
|
|
@@ -847,59 +724,28 @@ const deserializeAws_json1_0CreateGlobalTableCommandError = async (output, conte
|
|
|
847
724
|
switch (errorCode) {
|
|
848
725
|
case "GlobalTableAlreadyExistsException":
|
|
849
726
|
case "com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":
|
|
850
|
-
|
|
851
|
-
...(await deserializeAws_json1_0GlobalTableAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
852
|
-
name: errorCode,
|
|
853
|
-
$metadata: deserializeMetadata(output),
|
|
854
|
-
};
|
|
855
|
-
break;
|
|
727
|
+
throw await deserializeAws_json1_0GlobalTableAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
856
728
|
case "InternalServerError":
|
|
857
729
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
858
|
-
|
|
859
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
860
|
-
name: errorCode,
|
|
861
|
-
$metadata: deserializeMetadata(output),
|
|
862
|
-
};
|
|
863
|
-
break;
|
|
730
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
864
731
|
case "InvalidEndpointException":
|
|
865
732
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
866
|
-
|
|
867
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
868
|
-
name: errorCode,
|
|
869
|
-
$metadata: deserializeMetadata(output),
|
|
870
|
-
};
|
|
871
|
-
break;
|
|
733
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
872
734
|
case "LimitExceededException":
|
|
873
735
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
874
|
-
|
|
875
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
876
|
-
name: errorCode,
|
|
877
|
-
$metadata: deserializeMetadata(output),
|
|
878
|
-
};
|
|
879
|
-
break;
|
|
736
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
880
737
|
case "TableNotFoundException":
|
|
881
738
|
case "com.amazonaws.dynamodb#TableNotFoundException":
|
|
882
|
-
|
|
883
|
-
...(await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context)),
|
|
884
|
-
name: errorCode,
|
|
885
|
-
$metadata: deserializeMetadata(output),
|
|
886
|
-
};
|
|
887
|
-
break;
|
|
739
|
+
throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
|
|
888
740
|
default:
|
|
889
741
|
const parsedBody = parsedOutput.body;
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
...parsedBody,
|
|
893
|
-
name: `${errorCode}`,
|
|
894
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
742
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
743
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
895
744
|
$fault: "client",
|
|
896
745
|
$metadata: deserializeMetadata(output),
|
|
897
|
-
};
|
|
746
|
+
});
|
|
747
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
898
748
|
}
|
|
899
|
-
const message = response.message || response.Message || errorCode;
|
|
900
|
-
response.message = message;
|
|
901
|
-
delete response.Message;
|
|
902
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
903
749
|
};
|
|
904
750
|
const deserializeAws_json1_0CreateTableCommand = async (output, context) => {
|
|
905
751
|
if (output.statusCode >= 300) {
|
|
@@ -926,51 +772,25 @@ const deserializeAws_json1_0CreateTableCommandError = async (output, context) =>
|
|
|
926
772
|
switch (errorCode) {
|
|
927
773
|
case "InternalServerError":
|
|
928
774
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
929
|
-
|
|
930
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
931
|
-
name: errorCode,
|
|
932
|
-
$metadata: deserializeMetadata(output),
|
|
933
|
-
};
|
|
934
|
-
break;
|
|
775
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
935
776
|
case "InvalidEndpointException":
|
|
936
777
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
937
|
-
|
|
938
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
939
|
-
name: errorCode,
|
|
940
|
-
$metadata: deserializeMetadata(output),
|
|
941
|
-
};
|
|
942
|
-
break;
|
|
778
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
943
779
|
case "LimitExceededException":
|
|
944
780
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
945
|
-
|
|
946
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
947
|
-
name: errorCode,
|
|
948
|
-
$metadata: deserializeMetadata(output),
|
|
949
|
-
};
|
|
950
|
-
break;
|
|
781
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
951
782
|
case "ResourceInUseException":
|
|
952
783
|
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
953
|
-
|
|
954
|
-
...(await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
955
|
-
name: errorCode,
|
|
956
|
-
$metadata: deserializeMetadata(output),
|
|
957
|
-
};
|
|
958
|
-
break;
|
|
784
|
+
throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context);
|
|
959
785
|
default:
|
|
960
786
|
const parsedBody = parsedOutput.body;
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
...parsedBody,
|
|
964
|
-
name: `${errorCode}`,
|
|
965
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
787
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
788
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
966
789
|
$fault: "client",
|
|
967
790
|
$metadata: deserializeMetadata(output),
|
|
968
|
-
};
|
|
791
|
+
});
|
|
792
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
969
793
|
}
|
|
970
|
-
const message = response.message || response.Message || errorCode;
|
|
971
|
-
response.message = message;
|
|
972
|
-
delete response.Message;
|
|
973
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
974
794
|
};
|
|
975
795
|
const deserializeAws_json1_0DeleteBackupCommand = async (output, context) => {
|
|
976
796
|
if (output.statusCode >= 300) {
|
|
@@ -997,59 +817,28 @@ const deserializeAws_json1_0DeleteBackupCommandError = async (output, context) =
|
|
|
997
817
|
switch (errorCode) {
|
|
998
818
|
case "BackupInUseException":
|
|
999
819
|
case "com.amazonaws.dynamodb#BackupInUseException":
|
|
1000
|
-
|
|
1001
|
-
...(await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context)),
|
|
1002
|
-
name: errorCode,
|
|
1003
|
-
$metadata: deserializeMetadata(output),
|
|
1004
|
-
};
|
|
1005
|
-
break;
|
|
820
|
+
throw await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context);
|
|
1006
821
|
case "BackupNotFoundException":
|
|
1007
822
|
case "com.amazonaws.dynamodb#BackupNotFoundException":
|
|
1008
|
-
|
|
1009
|
-
...(await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context)),
|
|
1010
|
-
name: errorCode,
|
|
1011
|
-
$metadata: deserializeMetadata(output),
|
|
1012
|
-
};
|
|
1013
|
-
break;
|
|
823
|
+
throw await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context);
|
|
1014
824
|
case "InternalServerError":
|
|
1015
825
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1016
|
-
|
|
1017
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1018
|
-
name: errorCode,
|
|
1019
|
-
$metadata: deserializeMetadata(output),
|
|
1020
|
-
};
|
|
1021
|
-
break;
|
|
826
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1022
827
|
case "InvalidEndpointException":
|
|
1023
828
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1024
|
-
|
|
1025
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
1026
|
-
name: errorCode,
|
|
1027
|
-
$metadata: deserializeMetadata(output),
|
|
1028
|
-
};
|
|
1029
|
-
break;
|
|
829
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1030
830
|
case "LimitExceededException":
|
|
1031
831
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
1032
|
-
|
|
1033
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1034
|
-
name: errorCode,
|
|
1035
|
-
$metadata: deserializeMetadata(output),
|
|
1036
|
-
};
|
|
1037
|
-
break;
|
|
832
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
1038
833
|
default:
|
|
1039
834
|
const parsedBody = parsedOutput.body;
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
...parsedBody,
|
|
1043
|
-
name: `${errorCode}`,
|
|
1044
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
835
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
836
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1045
837
|
$fault: "client",
|
|
1046
838
|
$metadata: deserializeMetadata(output),
|
|
1047
|
-
};
|
|
839
|
+
});
|
|
840
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1048
841
|
}
|
|
1049
|
-
const message = response.message || response.Message || errorCode;
|
|
1050
|
-
response.message = message;
|
|
1051
|
-
delete response.Message;
|
|
1052
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1053
842
|
};
|
|
1054
843
|
const deserializeAws_json1_0DeleteItemCommand = async (output, context) => {
|
|
1055
844
|
if (output.statusCode >= 300) {
|
|
@@ -1076,83 +865,37 @@ const deserializeAws_json1_0DeleteItemCommandError = async (output, context) =>
|
|
|
1076
865
|
switch (errorCode) {
|
|
1077
866
|
case "ConditionalCheckFailedException":
|
|
1078
867
|
case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
|
|
1079
|
-
|
|
1080
|
-
...(await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context)),
|
|
1081
|
-
name: errorCode,
|
|
1082
|
-
$metadata: deserializeMetadata(output),
|
|
1083
|
-
};
|
|
1084
|
-
break;
|
|
868
|
+
throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context);
|
|
1085
869
|
case "InternalServerError":
|
|
1086
870
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1087
|
-
|
|
1088
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1089
|
-
name: errorCode,
|
|
1090
|
-
$metadata: deserializeMetadata(output),
|
|
1091
|
-
};
|
|
1092
|
-
break;
|
|
871
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1093
872
|
case "InvalidEndpointException":
|
|
1094
873
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1095
|
-
|
|
1096
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
1097
|
-
name: errorCode,
|
|
1098
|
-
$metadata: deserializeMetadata(output),
|
|
1099
|
-
};
|
|
1100
|
-
break;
|
|
874
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1101
875
|
case "ItemCollectionSizeLimitExceededException":
|
|
1102
876
|
case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
|
|
1103
|
-
|
|
1104
|
-
...(await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1105
|
-
name: errorCode,
|
|
1106
|
-
$metadata: deserializeMetadata(output),
|
|
1107
|
-
};
|
|
1108
|
-
break;
|
|
877
|
+
throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
1109
878
|
case "ProvisionedThroughputExceededException":
|
|
1110
879
|
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
1111
|
-
|
|
1112
|
-
...(await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)),
|
|
1113
|
-
name: errorCode,
|
|
1114
|
-
$metadata: deserializeMetadata(output),
|
|
1115
|
-
};
|
|
1116
|
-
break;
|
|
880
|
+
throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
1117
881
|
case "RequestLimitExceeded":
|
|
1118
882
|
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
1119
|
-
|
|
1120
|
-
...(await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context)),
|
|
1121
|
-
name: errorCode,
|
|
1122
|
-
$metadata: deserializeMetadata(output),
|
|
1123
|
-
};
|
|
1124
|
-
break;
|
|
883
|
+
throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context);
|
|
1125
884
|
case "ResourceNotFoundException":
|
|
1126
885
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1127
|
-
|
|
1128
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1129
|
-
name: errorCode,
|
|
1130
|
-
$metadata: deserializeMetadata(output),
|
|
1131
|
-
};
|
|
1132
|
-
break;
|
|
886
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1133
887
|
case "TransactionConflictException":
|
|
1134
888
|
case "com.amazonaws.dynamodb#TransactionConflictException":
|
|
1135
|
-
|
|
1136
|
-
...(await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context)),
|
|
1137
|
-
name: errorCode,
|
|
1138
|
-
$metadata: deserializeMetadata(output),
|
|
1139
|
-
};
|
|
1140
|
-
break;
|
|
889
|
+
throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context);
|
|
1141
890
|
default:
|
|
1142
891
|
const parsedBody = parsedOutput.body;
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
...parsedBody,
|
|
1146
|
-
name: `${errorCode}`,
|
|
1147
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
892
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
893
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1148
894
|
$fault: "client",
|
|
1149
895
|
$metadata: deserializeMetadata(output),
|
|
1150
|
-
};
|
|
896
|
+
});
|
|
897
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1151
898
|
}
|
|
1152
|
-
const message = response.message || response.Message || errorCode;
|
|
1153
|
-
response.message = message;
|
|
1154
|
-
delete response.Message;
|
|
1155
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1156
899
|
};
|
|
1157
900
|
const deserializeAws_json1_0DeleteTableCommand = async (output, context) => {
|
|
1158
901
|
if (output.statusCode >= 300) {
|
|
@@ -1179,59 +922,28 @@ const deserializeAws_json1_0DeleteTableCommandError = async (output, context) =>
|
|
|
1179
922
|
switch (errorCode) {
|
|
1180
923
|
case "InternalServerError":
|
|
1181
924
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1182
|
-
|
|
1183
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1184
|
-
name: errorCode,
|
|
1185
|
-
$metadata: deserializeMetadata(output),
|
|
1186
|
-
};
|
|
1187
|
-
break;
|
|
925
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1188
926
|
case "InvalidEndpointException":
|
|
1189
927
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1190
|
-
|
|
1191
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
1192
|
-
name: errorCode,
|
|
1193
|
-
$metadata: deserializeMetadata(output),
|
|
1194
|
-
};
|
|
1195
|
-
break;
|
|
928
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1196
929
|
case "LimitExceededException":
|
|
1197
930
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
1198
|
-
|
|
1199
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1200
|
-
name: errorCode,
|
|
1201
|
-
$metadata: deserializeMetadata(output),
|
|
1202
|
-
};
|
|
1203
|
-
break;
|
|
931
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
1204
932
|
case "ResourceInUseException":
|
|
1205
933
|
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
1206
|
-
|
|
1207
|
-
...(await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1208
|
-
name: errorCode,
|
|
1209
|
-
$metadata: deserializeMetadata(output),
|
|
1210
|
-
};
|
|
1211
|
-
break;
|
|
934
|
+
throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1212
935
|
case "ResourceNotFoundException":
|
|
1213
936
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1214
|
-
|
|
1215
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1216
|
-
name: errorCode,
|
|
1217
|
-
$metadata: deserializeMetadata(output),
|
|
1218
|
-
};
|
|
1219
|
-
break;
|
|
937
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1220
938
|
default:
|
|
1221
939
|
const parsedBody = parsedOutput.body;
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
...parsedBody,
|
|
1225
|
-
name: `${errorCode}`,
|
|
1226
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
940
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
941
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1227
942
|
$fault: "client",
|
|
1228
943
|
$metadata: deserializeMetadata(output),
|
|
1229
|
-
};
|
|
944
|
+
});
|
|
945
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1230
946
|
}
|
|
1231
|
-
const message = response.message || response.Message || errorCode;
|
|
1232
|
-
response.message = message;
|
|
1233
|
-
delete response.Message;
|
|
1234
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1235
947
|
};
|
|
1236
948
|
const deserializeAws_json1_0DescribeBackupCommand = async (output, context) => {
|
|
1237
949
|
if (output.statusCode >= 300) {
|
|
@@ -1258,43 +970,22 @@ const deserializeAws_json1_0DescribeBackupCommandError = async (output, context)
|
|
|
1258
970
|
switch (errorCode) {
|
|
1259
971
|
case "BackupNotFoundException":
|
|
1260
972
|
case "com.amazonaws.dynamodb#BackupNotFoundException":
|
|
1261
|
-
|
|
1262
|
-
...(await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context)),
|
|
1263
|
-
name: errorCode,
|
|
1264
|
-
$metadata: deserializeMetadata(output),
|
|
1265
|
-
};
|
|
1266
|
-
break;
|
|
973
|
+
throw await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context);
|
|
1267
974
|
case "InternalServerError":
|
|
1268
975
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1269
|
-
|
|
1270
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1271
|
-
name: errorCode,
|
|
1272
|
-
$metadata: deserializeMetadata(output),
|
|
1273
|
-
};
|
|
1274
|
-
break;
|
|
976
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1275
977
|
case "InvalidEndpointException":
|
|
1276
978
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1277
|
-
|
|
1278
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
1279
|
-
name: errorCode,
|
|
1280
|
-
$metadata: deserializeMetadata(output),
|
|
1281
|
-
};
|
|
1282
|
-
break;
|
|
979
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1283
980
|
default:
|
|
1284
981
|
const parsedBody = parsedOutput.body;
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
...parsedBody,
|
|
1288
|
-
name: `${errorCode}`,
|
|
1289
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
982
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
983
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1290
984
|
$fault: "client",
|
|
1291
985
|
$metadata: deserializeMetadata(output),
|
|
1292
|
-
};
|
|
986
|
+
});
|
|
987
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1293
988
|
}
|
|
1294
|
-
const message = response.message || response.Message || errorCode;
|
|
1295
|
-
response.message = message;
|
|
1296
|
-
delete response.Message;
|
|
1297
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1298
989
|
};
|
|
1299
990
|
const deserializeAws_json1_0DescribeContinuousBackupsCommand = async (output, context) => {
|
|
1300
991
|
if (output.statusCode >= 300) {
|
|
@@ -1321,43 +1012,22 @@ const deserializeAws_json1_0DescribeContinuousBackupsCommandError = async (outpu
|
|
|
1321
1012
|
switch (errorCode) {
|
|
1322
1013
|
case "InternalServerError":
|
|
1323
1014
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1324
|
-
|
|
1325
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1326
|
-
name: errorCode,
|
|
1327
|
-
$metadata: deserializeMetadata(output),
|
|
1328
|
-
};
|
|
1329
|
-
break;
|
|
1015
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1330
1016
|
case "InvalidEndpointException":
|
|
1331
1017
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1332
|
-
|
|
1333
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
1334
|
-
name: errorCode,
|
|
1335
|
-
$metadata: deserializeMetadata(output),
|
|
1336
|
-
};
|
|
1337
|
-
break;
|
|
1018
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1338
1019
|
case "TableNotFoundException":
|
|
1339
1020
|
case "com.amazonaws.dynamodb#TableNotFoundException":
|
|
1340
|
-
|
|
1341
|
-
...(await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context)),
|
|
1342
|
-
name: errorCode,
|
|
1343
|
-
$metadata: deserializeMetadata(output),
|
|
1344
|
-
};
|
|
1345
|
-
break;
|
|
1021
|
+
throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
|
|
1346
1022
|
default:
|
|
1347
1023
|
const parsedBody = parsedOutput.body;
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
...parsedBody,
|
|
1351
|
-
name: `${errorCode}`,
|
|
1352
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1024
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1025
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1353
1026
|
$fault: "client",
|
|
1354
1027
|
$metadata: deserializeMetadata(output),
|
|
1355
|
-
};
|
|
1028
|
+
});
|
|
1029
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1356
1030
|
}
|
|
1357
|
-
const message = response.message || response.Message || errorCode;
|
|
1358
|
-
response.message = message;
|
|
1359
|
-
delete response.Message;
|
|
1360
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1361
1031
|
};
|
|
1362
1032
|
const deserializeAws_json1_0DescribeContributorInsightsCommand = async (output, context) => {
|
|
1363
1033
|
if (output.statusCode >= 300) {
|
|
@@ -1384,35 +1054,19 @@ const deserializeAws_json1_0DescribeContributorInsightsCommandError = async (out
|
|
|
1384
1054
|
switch (errorCode) {
|
|
1385
1055
|
case "InternalServerError":
|
|
1386
1056
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1387
|
-
|
|
1388
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1389
|
-
name: errorCode,
|
|
1390
|
-
$metadata: deserializeMetadata(output),
|
|
1391
|
-
};
|
|
1392
|
-
break;
|
|
1057
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1393
1058
|
case "ResourceNotFoundException":
|
|
1394
1059
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1395
|
-
|
|
1396
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1397
|
-
name: errorCode,
|
|
1398
|
-
$metadata: deserializeMetadata(output),
|
|
1399
|
-
};
|
|
1400
|
-
break;
|
|
1060
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1401
1061
|
default:
|
|
1402
1062
|
const parsedBody = parsedOutput.body;
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
...parsedBody,
|
|
1406
|
-
name: `${errorCode}`,
|
|
1407
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1063
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1064
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1408
1065
|
$fault: "client",
|
|
1409
1066
|
$metadata: deserializeMetadata(output),
|
|
1410
|
-
};
|
|
1067
|
+
});
|
|
1068
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1411
1069
|
}
|
|
1412
|
-
const message = response.message || response.Message || errorCode;
|
|
1413
|
-
response.message = message;
|
|
1414
|
-
delete response.Message;
|
|
1415
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1416
1070
|
};
|
|
1417
1071
|
const deserializeAws_json1_0DescribeEndpointsCommand = async (output, context) => {
|
|
1418
1072
|
if (output.statusCode >= 300) {
|
|
@@ -1439,19 +1093,13 @@ const deserializeAws_json1_0DescribeEndpointsCommandError = async (output, conte
|
|
|
1439
1093
|
switch (errorCode) {
|
|
1440
1094
|
default:
|
|
1441
1095
|
const parsedBody = parsedOutput.body;
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
...parsedBody,
|
|
1445
|
-
name: `${errorCode}`,
|
|
1446
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1096
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1097
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1447
1098
|
$fault: "client",
|
|
1448
1099
|
$metadata: deserializeMetadata(output),
|
|
1449
|
-
};
|
|
1100
|
+
});
|
|
1101
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1450
1102
|
}
|
|
1451
|
-
const message = response.message || response.Message || errorCode;
|
|
1452
|
-
response.message = message;
|
|
1453
|
-
delete response.Message;
|
|
1454
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1455
1103
|
};
|
|
1456
1104
|
const deserializeAws_json1_0DescribeExportCommand = async (output, context) => {
|
|
1457
1105
|
if (output.statusCode >= 300) {
|
|
@@ -1478,43 +1126,22 @@ const deserializeAws_json1_0DescribeExportCommandError = async (output, context)
|
|
|
1478
1126
|
switch (errorCode) {
|
|
1479
1127
|
case "ExportNotFoundException":
|
|
1480
1128
|
case "com.amazonaws.dynamodb#ExportNotFoundException":
|
|
1481
|
-
|
|
1482
|
-
...(await deserializeAws_json1_0ExportNotFoundExceptionResponse(parsedOutput, context)),
|
|
1483
|
-
name: errorCode,
|
|
1484
|
-
$metadata: deserializeMetadata(output),
|
|
1485
|
-
};
|
|
1486
|
-
break;
|
|
1129
|
+
throw await deserializeAws_json1_0ExportNotFoundExceptionResponse(parsedOutput, context);
|
|
1487
1130
|
case "InternalServerError":
|
|
1488
1131
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1489
|
-
|
|
1490
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1491
|
-
name: errorCode,
|
|
1492
|
-
$metadata: deserializeMetadata(output),
|
|
1493
|
-
};
|
|
1494
|
-
break;
|
|
1132
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1495
1133
|
case "LimitExceededException":
|
|
1496
1134
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
1497
|
-
|
|
1498
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1499
|
-
name: errorCode,
|
|
1500
|
-
$metadata: deserializeMetadata(output),
|
|
1501
|
-
};
|
|
1502
|
-
break;
|
|
1135
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
1503
1136
|
default:
|
|
1504
1137
|
const parsedBody = parsedOutput.body;
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
...parsedBody,
|
|
1508
|
-
name: `${errorCode}`,
|
|
1509
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1138
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1139
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1510
1140
|
$fault: "client",
|
|
1511
1141
|
$metadata: deserializeMetadata(output),
|
|
1512
|
-
};
|
|
1142
|
+
});
|
|
1143
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1513
1144
|
}
|
|
1514
|
-
const message = response.message || response.Message || errorCode;
|
|
1515
|
-
response.message = message;
|
|
1516
|
-
delete response.Message;
|
|
1517
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1518
1145
|
};
|
|
1519
1146
|
const deserializeAws_json1_0DescribeGlobalTableCommand = async (output, context) => {
|
|
1520
1147
|
if (output.statusCode >= 300) {
|
|
@@ -1541,43 +1168,22 @@ const deserializeAws_json1_0DescribeGlobalTableCommandError = async (output, con
|
|
|
1541
1168
|
switch (errorCode) {
|
|
1542
1169
|
case "GlobalTableNotFoundException":
|
|
1543
1170
|
case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
|
|
1544
|
-
|
|
1545
|
-
...(await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context)),
|
|
1546
|
-
name: errorCode,
|
|
1547
|
-
$metadata: deserializeMetadata(output),
|
|
1548
|
-
};
|
|
1549
|
-
break;
|
|
1171
|
+
throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context);
|
|
1550
1172
|
case "InternalServerError":
|
|
1551
1173
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1552
|
-
|
|
1553
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1554
|
-
name: errorCode,
|
|
1555
|
-
$metadata: deserializeMetadata(output),
|
|
1556
|
-
};
|
|
1557
|
-
break;
|
|
1174
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1558
1175
|
case "InvalidEndpointException":
|
|
1559
1176
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1560
|
-
|
|
1561
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
1562
|
-
name: errorCode,
|
|
1563
|
-
$metadata: deserializeMetadata(output),
|
|
1564
|
-
};
|
|
1565
|
-
break;
|
|
1177
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1566
1178
|
default:
|
|
1567
1179
|
const parsedBody = parsedOutput.body;
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
...parsedBody,
|
|
1571
|
-
name: `${errorCode}`,
|
|
1572
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1180
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1181
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1573
1182
|
$fault: "client",
|
|
1574
1183
|
$metadata: deserializeMetadata(output),
|
|
1575
|
-
};
|
|
1184
|
+
});
|
|
1185
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1576
1186
|
}
|
|
1577
|
-
const message = response.message || response.Message || errorCode;
|
|
1578
|
-
response.message = message;
|
|
1579
|
-
delete response.Message;
|
|
1580
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1581
1187
|
};
|
|
1582
1188
|
const deserializeAws_json1_0DescribeGlobalTableSettingsCommand = async (output, context) => {
|
|
1583
1189
|
if (output.statusCode >= 300) {
|
|
@@ -1604,43 +1210,22 @@ const deserializeAws_json1_0DescribeGlobalTableSettingsCommandError = async (out
|
|
|
1604
1210
|
switch (errorCode) {
|
|
1605
1211
|
case "GlobalTableNotFoundException":
|
|
1606
1212
|
case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
|
|
1607
|
-
|
|
1608
|
-
...(await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context)),
|
|
1609
|
-
name: errorCode,
|
|
1610
|
-
$metadata: deserializeMetadata(output),
|
|
1611
|
-
};
|
|
1612
|
-
break;
|
|
1213
|
+
throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context);
|
|
1613
1214
|
case "InternalServerError":
|
|
1614
1215
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1615
|
-
|
|
1616
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1617
|
-
name: errorCode,
|
|
1618
|
-
$metadata: deserializeMetadata(output),
|
|
1619
|
-
};
|
|
1620
|
-
break;
|
|
1216
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1621
1217
|
case "InvalidEndpointException":
|
|
1622
1218
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1623
|
-
|
|
1624
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
1625
|
-
name: errorCode,
|
|
1626
|
-
$metadata: deserializeMetadata(output),
|
|
1627
|
-
};
|
|
1628
|
-
break;
|
|
1219
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1629
1220
|
default:
|
|
1630
1221
|
const parsedBody = parsedOutput.body;
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
...parsedBody,
|
|
1634
|
-
name: `${errorCode}`,
|
|
1635
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1222
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1223
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1636
1224
|
$fault: "client",
|
|
1637
1225
|
$metadata: deserializeMetadata(output),
|
|
1638
|
-
};
|
|
1226
|
+
});
|
|
1227
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1639
1228
|
}
|
|
1640
|
-
const message = response.message || response.Message || errorCode;
|
|
1641
|
-
response.message = message;
|
|
1642
|
-
delete response.Message;
|
|
1643
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1644
1229
|
};
|
|
1645
1230
|
const deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = async (output, context) => {
|
|
1646
1231
|
if (output.statusCode >= 300) {
|
|
@@ -1667,43 +1252,22 @@ const deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError = as
|
|
|
1667
1252
|
switch (errorCode) {
|
|
1668
1253
|
case "InternalServerError":
|
|
1669
1254
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1670
|
-
|
|
1671
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1672
|
-
name: errorCode,
|
|
1673
|
-
$metadata: deserializeMetadata(output),
|
|
1674
|
-
};
|
|
1675
|
-
break;
|
|
1255
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1676
1256
|
case "InvalidEndpointException":
|
|
1677
1257
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1678
|
-
|
|
1679
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
1680
|
-
name: errorCode,
|
|
1681
|
-
$metadata: deserializeMetadata(output),
|
|
1682
|
-
};
|
|
1683
|
-
break;
|
|
1258
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1684
1259
|
case "ResourceNotFoundException":
|
|
1685
1260
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1686
|
-
|
|
1687
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1688
|
-
name: errorCode,
|
|
1689
|
-
$metadata: deserializeMetadata(output),
|
|
1690
|
-
};
|
|
1691
|
-
break;
|
|
1261
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1692
1262
|
default:
|
|
1693
1263
|
const parsedBody = parsedOutput.body;
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
...parsedBody,
|
|
1697
|
-
name: `${errorCode}`,
|
|
1698
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1264
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1265
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1699
1266
|
$fault: "client",
|
|
1700
1267
|
$metadata: deserializeMetadata(output),
|
|
1701
|
-
};
|
|
1268
|
+
});
|
|
1269
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1702
1270
|
}
|
|
1703
|
-
const message = response.message || response.Message || errorCode;
|
|
1704
|
-
response.message = message;
|
|
1705
|
-
delete response.Message;
|
|
1706
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1707
1271
|
};
|
|
1708
1272
|
const deserializeAws_json1_0DescribeLimitsCommand = async (output, context) => {
|
|
1709
1273
|
if (output.statusCode >= 300) {
|
|
@@ -1730,35 +1294,19 @@ const deserializeAws_json1_0DescribeLimitsCommandError = async (output, context)
|
|
|
1730
1294
|
switch (errorCode) {
|
|
1731
1295
|
case "InternalServerError":
|
|
1732
1296
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1733
|
-
|
|
1734
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1735
|
-
name: errorCode,
|
|
1736
|
-
$metadata: deserializeMetadata(output),
|
|
1737
|
-
};
|
|
1738
|
-
break;
|
|
1297
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1739
1298
|
case "InvalidEndpointException":
|
|
1740
1299
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1741
|
-
|
|
1742
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
1743
|
-
name: errorCode,
|
|
1744
|
-
$metadata: deserializeMetadata(output),
|
|
1745
|
-
};
|
|
1746
|
-
break;
|
|
1300
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1747
1301
|
default:
|
|
1748
1302
|
const parsedBody = parsedOutput.body;
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
...parsedBody,
|
|
1752
|
-
name: `${errorCode}`,
|
|
1753
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1303
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1304
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1754
1305
|
$fault: "client",
|
|
1755
1306
|
$metadata: deserializeMetadata(output),
|
|
1756
|
-
};
|
|
1307
|
+
});
|
|
1308
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1757
1309
|
}
|
|
1758
|
-
const message = response.message || response.Message || errorCode;
|
|
1759
|
-
response.message = message;
|
|
1760
|
-
delete response.Message;
|
|
1761
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1762
1310
|
};
|
|
1763
1311
|
const deserializeAws_json1_0DescribeTableCommand = async (output, context) => {
|
|
1764
1312
|
if (output.statusCode >= 300) {
|
|
@@ -1785,43 +1333,22 @@ const deserializeAws_json1_0DescribeTableCommandError = async (output, context)
|
|
|
1785
1333
|
switch (errorCode) {
|
|
1786
1334
|
case "InternalServerError":
|
|
1787
1335
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1788
|
-
|
|
1789
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1790
|
-
name: errorCode,
|
|
1791
|
-
$metadata: deserializeMetadata(output),
|
|
1792
|
-
};
|
|
1793
|
-
break;
|
|
1336
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1794
1337
|
case "InvalidEndpointException":
|
|
1795
1338
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1796
|
-
|
|
1797
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
1798
|
-
name: errorCode,
|
|
1799
|
-
$metadata: deserializeMetadata(output),
|
|
1800
|
-
};
|
|
1801
|
-
break;
|
|
1339
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1802
1340
|
case "ResourceNotFoundException":
|
|
1803
1341
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1804
|
-
|
|
1805
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1806
|
-
name: errorCode,
|
|
1807
|
-
$metadata: deserializeMetadata(output),
|
|
1808
|
-
};
|
|
1809
|
-
break;
|
|
1342
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1810
1343
|
default:
|
|
1811
1344
|
const parsedBody = parsedOutput.body;
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
...parsedBody,
|
|
1815
|
-
name: `${errorCode}`,
|
|
1816
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1345
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1346
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1817
1347
|
$fault: "client",
|
|
1818
1348
|
$metadata: deserializeMetadata(output),
|
|
1819
|
-
};
|
|
1349
|
+
});
|
|
1350
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1820
1351
|
}
|
|
1821
|
-
const message = response.message || response.Message || errorCode;
|
|
1822
|
-
response.message = message;
|
|
1823
|
-
delete response.Message;
|
|
1824
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1825
1352
|
};
|
|
1826
1353
|
const deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = async (output, context) => {
|
|
1827
1354
|
if (output.statusCode >= 300) {
|
|
@@ -1848,35 +1375,19 @@ const deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError = async
|
|
|
1848
1375
|
switch (errorCode) {
|
|
1849
1376
|
case "InternalServerError":
|
|
1850
1377
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1851
|
-
|
|
1852
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1853
|
-
name: errorCode,
|
|
1854
|
-
$metadata: deserializeMetadata(output),
|
|
1855
|
-
};
|
|
1856
|
-
break;
|
|
1378
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1857
1379
|
case "ResourceNotFoundException":
|
|
1858
1380
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1859
|
-
|
|
1860
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1861
|
-
name: errorCode,
|
|
1862
|
-
$metadata: deserializeMetadata(output),
|
|
1863
|
-
};
|
|
1864
|
-
break;
|
|
1381
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1865
1382
|
default:
|
|
1866
1383
|
const parsedBody = parsedOutput.body;
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
...parsedBody,
|
|
1870
|
-
name: `${errorCode}`,
|
|
1871
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1384
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1385
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1872
1386
|
$fault: "client",
|
|
1873
1387
|
$metadata: deserializeMetadata(output),
|
|
1874
|
-
};
|
|
1388
|
+
});
|
|
1389
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1875
1390
|
}
|
|
1876
|
-
const message = response.message || response.Message || errorCode;
|
|
1877
|
-
response.message = message;
|
|
1878
|
-
delete response.Message;
|
|
1879
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1880
1391
|
};
|
|
1881
1392
|
const deserializeAws_json1_0DescribeTimeToLiveCommand = async (output, context) => {
|
|
1882
1393
|
if (output.statusCode >= 300) {
|
|
@@ -1903,43 +1414,22 @@ const deserializeAws_json1_0DescribeTimeToLiveCommandError = async (output, cont
|
|
|
1903
1414
|
switch (errorCode) {
|
|
1904
1415
|
case "InternalServerError":
|
|
1905
1416
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1906
|
-
|
|
1907
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1908
|
-
name: errorCode,
|
|
1909
|
-
$metadata: deserializeMetadata(output),
|
|
1910
|
-
};
|
|
1911
|
-
break;
|
|
1417
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1912
1418
|
case "InvalidEndpointException":
|
|
1913
1419
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1914
|
-
|
|
1915
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
1916
|
-
name: errorCode,
|
|
1917
|
-
$metadata: deserializeMetadata(output),
|
|
1918
|
-
};
|
|
1919
|
-
break;
|
|
1420
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1920
1421
|
case "ResourceNotFoundException":
|
|
1921
1422
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
1922
|
-
|
|
1923
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1924
|
-
name: errorCode,
|
|
1925
|
-
$metadata: deserializeMetadata(output),
|
|
1926
|
-
};
|
|
1927
|
-
break;
|
|
1423
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1928
1424
|
default:
|
|
1929
1425
|
const parsedBody = parsedOutput.body;
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
...parsedBody,
|
|
1933
|
-
name: `${errorCode}`,
|
|
1934
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1426
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1427
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1935
1428
|
$fault: "client",
|
|
1936
1429
|
$metadata: deserializeMetadata(output),
|
|
1937
|
-
};
|
|
1430
|
+
});
|
|
1431
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1938
1432
|
}
|
|
1939
|
-
const message = response.message || response.Message || errorCode;
|
|
1940
|
-
response.message = message;
|
|
1941
|
-
delete response.Message;
|
|
1942
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1943
1433
|
};
|
|
1944
1434
|
const deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = async (output, context) => {
|
|
1945
1435
|
if (output.statusCode >= 300) {
|
|
@@ -1966,59 +1456,28 @@ const deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError = asy
|
|
|
1966
1456
|
switch (errorCode) {
|
|
1967
1457
|
case "InternalServerError":
|
|
1968
1458
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
1969
|
-
|
|
1970
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1971
|
-
name: errorCode,
|
|
1972
|
-
$metadata: deserializeMetadata(output),
|
|
1973
|
-
};
|
|
1974
|
-
break;
|
|
1459
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1975
1460
|
case "InvalidEndpointException":
|
|
1976
1461
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
1977
|
-
|
|
1978
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
1979
|
-
name: errorCode,
|
|
1980
|
-
$metadata: deserializeMetadata(output),
|
|
1981
|
-
};
|
|
1982
|
-
break;
|
|
1462
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1983
1463
|
case "LimitExceededException":
|
|
1984
1464
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
1985
|
-
|
|
1986
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1987
|
-
name: errorCode,
|
|
1988
|
-
$metadata: deserializeMetadata(output),
|
|
1989
|
-
};
|
|
1990
|
-
break;
|
|
1465
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
1991
1466
|
case "ResourceInUseException":
|
|
1992
1467
|
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
1993
|
-
|
|
1994
|
-
...(await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1995
|
-
name: errorCode,
|
|
1996
|
-
$metadata: deserializeMetadata(output),
|
|
1997
|
-
};
|
|
1998
|
-
break;
|
|
1468
|
+
throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1999
1469
|
case "ResourceNotFoundException":
|
|
2000
1470
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2001
|
-
|
|
2002
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2003
|
-
name: errorCode,
|
|
2004
|
-
$metadata: deserializeMetadata(output),
|
|
2005
|
-
};
|
|
2006
|
-
break;
|
|
1471
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2007
1472
|
default:
|
|
2008
1473
|
const parsedBody = parsedOutput.body;
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
...parsedBody,
|
|
2012
|
-
name: `${errorCode}`,
|
|
2013
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1474
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1475
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2014
1476
|
$fault: "client",
|
|
2015
1477
|
$metadata: deserializeMetadata(output),
|
|
2016
|
-
};
|
|
1478
|
+
});
|
|
1479
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2017
1480
|
}
|
|
2018
|
-
const message = response.message || response.Message || errorCode;
|
|
2019
|
-
response.message = message;
|
|
2020
|
-
delete response.Message;
|
|
2021
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2022
1481
|
};
|
|
2023
1482
|
const deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = async (output, context) => {
|
|
2024
1483
|
if (output.statusCode >= 300) {
|
|
@@ -2045,59 +1504,28 @@ const deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError = asyn
|
|
|
2045
1504
|
switch (errorCode) {
|
|
2046
1505
|
case "InternalServerError":
|
|
2047
1506
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2048
|
-
|
|
2049
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
2050
|
-
name: errorCode,
|
|
2051
|
-
$metadata: deserializeMetadata(output),
|
|
2052
|
-
};
|
|
2053
|
-
break;
|
|
1507
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
2054
1508
|
case "InvalidEndpointException":
|
|
2055
1509
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2056
|
-
|
|
2057
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
2058
|
-
name: errorCode,
|
|
2059
|
-
$metadata: deserializeMetadata(output),
|
|
2060
|
-
};
|
|
2061
|
-
break;
|
|
1510
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
2062
1511
|
case "LimitExceededException":
|
|
2063
1512
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
2064
|
-
|
|
2065
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2066
|
-
name: errorCode,
|
|
2067
|
-
$metadata: deserializeMetadata(output),
|
|
2068
|
-
};
|
|
2069
|
-
break;
|
|
1513
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
2070
1514
|
case "ResourceInUseException":
|
|
2071
1515
|
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
2072
|
-
|
|
2073
|
-
...(await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2074
|
-
name: errorCode,
|
|
2075
|
-
$metadata: deserializeMetadata(output),
|
|
2076
|
-
};
|
|
2077
|
-
break;
|
|
1516
|
+
throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context);
|
|
2078
1517
|
case "ResourceNotFoundException":
|
|
2079
1518
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2080
|
-
|
|
2081
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2082
|
-
name: errorCode,
|
|
2083
|
-
$metadata: deserializeMetadata(output),
|
|
2084
|
-
};
|
|
2085
|
-
break;
|
|
1519
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2086
1520
|
default:
|
|
2087
1521
|
const parsedBody = parsedOutput.body;
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
...parsedBody,
|
|
2091
|
-
name: `${errorCode}`,
|
|
2092
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1522
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1523
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2093
1524
|
$fault: "client",
|
|
2094
1525
|
$metadata: deserializeMetadata(output),
|
|
2095
|
-
};
|
|
1526
|
+
});
|
|
1527
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2096
1528
|
}
|
|
2097
|
-
const message = response.message || response.Message || errorCode;
|
|
2098
|
-
response.message = message;
|
|
2099
|
-
delete response.Message;
|
|
2100
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2101
1529
|
};
|
|
2102
1530
|
const deserializeAws_json1_0ExecuteStatementCommand = async (output, context) => {
|
|
2103
1531
|
if (output.statusCode >= 300) {
|
|
@@ -2124,83 +1552,37 @@ const deserializeAws_json1_0ExecuteStatementCommandError = async (output, contex
|
|
|
2124
1552
|
switch (errorCode) {
|
|
2125
1553
|
case "ConditionalCheckFailedException":
|
|
2126
1554
|
case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
|
|
2127
|
-
|
|
2128
|
-
...(await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context)),
|
|
2129
|
-
name: errorCode,
|
|
2130
|
-
$metadata: deserializeMetadata(output),
|
|
2131
|
-
};
|
|
2132
|
-
break;
|
|
1555
|
+
throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context);
|
|
2133
1556
|
case "DuplicateItemException":
|
|
2134
1557
|
case "com.amazonaws.dynamodb#DuplicateItemException":
|
|
2135
|
-
|
|
2136
|
-
...(await deserializeAws_json1_0DuplicateItemExceptionResponse(parsedOutput, context)),
|
|
2137
|
-
name: errorCode,
|
|
2138
|
-
$metadata: deserializeMetadata(output),
|
|
2139
|
-
};
|
|
2140
|
-
break;
|
|
1558
|
+
throw await deserializeAws_json1_0DuplicateItemExceptionResponse(parsedOutput, context);
|
|
2141
1559
|
case "InternalServerError":
|
|
2142
1560
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2143
|
-
|
|
2144
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
2145
|
-
name: errorCode,
|
|
2146
|
-
$metadata: deserializeMetadata(output),
|
|
2147
|
-
};
|
|
2148
|
-
break;
|
|
1561
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
2149
1562
|
case "ItemCollectionSizeLimitExceededException":
|
|
2150
1563
|
case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
|
|
2151
|
-
|
|
2152
|
-
...(await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2153
|
-
name: errorCode,
|
|
2154
|
-
$metadata: deserializeMetadata(output),
|
|
2155
|
-
};
|
|
2156
|
-
break;
|
|
1564
|
+
throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
2157
1565
|
case "ProvisionedThroughputExceededException":
|
|
2158
1566
|
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
2159
|
-
|
|
2160
|
-
...(await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)),
|
|
2161
|
-
name: errorCode,
|
|
2162
|
-
$metadata: deserializeMetadata(output),
|
|
2163
|
-
};
|
|
2164
|
-
break;
|
|
1567
|
+
throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
2165
1568
|
case "RequestLimitExceeded":
|
|
2166
1569
|
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
2167
|
-
|
|
2168
|
-
...(await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context)),
|
|
2169
|
-
name: errorCode,
|
|
2170
|
-
$metadata: deserializeMetadata(output),
|
|
2171
|
-
};
|
|
2172
|
-
break;
|
|
1570
|
+
throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context);
|
|
2173
1571
|
case "ResourceNotFoundException":
|
|
2174
1572
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2175
|
-
|
|
2176
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2177
|
-
name: errorCode,
|
|
2178
|
-
$metadata: deserializeMetadata(output),
|
|
2179
|
-
};
|
|
2180
|
-
break;
|
|
1573
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2181
1574
|
case "TransactionConflictException":
|
|
2182
1575
|
case "com.amazonaws.dynamodb#TransactionConflictException":
|
|
2183
|
-
|
|
2184
|
-
...(await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context)),
|
|
2185
|
-
name: errorCode,
|
|
2186
|
-
$metadata: deserializeMetadata(output),
|
|
2187
|
-
};
|
|
2188
|
-
break;
|
|
1576
|
+
throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context);
|
|
2189
1577
|
default:
|
|
2190
1578
|
const parsedBody = parsedOutput.body;
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
...parsedBody,
|
|
2194
|
-
name: `${errorCode}`,
|
|
2195
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1579
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1580
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2196
1581
|
$fault: "client",
|
|
2197
1582
|
$metadata: deserializeMetadata(output),
|
|
2198
|
-
};
|
|
1583
|
+
});
|
|
1584
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2199
1585
|
}
|
|
2200
|
-
const message = response.message || response.Message || errorCode;
|
|
2201
|
-
response.message = message;
|
|
2202
|
-
delete response.Message;
|
|
2203
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2204
1586
|
};
|
|
2205
1587
|
const deserializeAws_json1_0ExecuteTransactionCommand = async (output, context) => {
|
|
2206
1588
|
if (output.statusCode >= 300) {
|
|
@@ -2227,75 +1609,34 @@ const deserializeAws_json1_0ExecuteTransactionCommandError = async (output, cont
|
|
|
2227
1609
|
switch (errorCode) {
|
|
2228
1610
|
case "IdempotentParameterMismatchException":
|
|
2229
1611
|
case "com.amazonaws.dynamodb#IdempotentParameterMismatchException":
|
|
2230
|
-
|
|
2231
|
-
...(await deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse(parsedOutput, context)),
|
|
2232
|
-
name: errorCode,
|
|
2233
|
-
$metadata: deserializeMetadata(output),
|
|
2234
|
-
};
|
|
2235
|
-
break;
|
|
1612
|
+
throw await deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse(parsedOutput, context);
|
|
2236
1613
|
case "InternalServerError":
|
|
2237
1614
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2238
|
-
|
|
2239
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
2240
|
-
name: errorCode,
|
|
2241
|
-
$metadata: deserializeMetadata(output),
|
|
2242
|
-
};
|
|
2243
|
-
break;
|
|
1615
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
2244
1616
|
case "ProvisionedThroughputExceededException":
|
|
2245
1617
|
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
2246
|
-
|
|
2247
|
-
...(await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)),
|
|
2248
|
-
name: errorCode,
|
|
2249
|
-
$metadata: deserializeMetadata(output),
|
|
2250
|
-
};
|
|
2251
|
-
break;
|
|
1618
|
+
throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
2252
1619
|
case "RequestLimitExceeded":
|
|
2253
1620
|
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
2254
|
-
|
|
2255
|
-
...(await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context)),
|
|
2256
|
-
name: errorCode,
|
|
2257
|
-
$metadata: deserializeMetadata(output),
|
|
2258
|
-
};
|
|
2259
|
-
break;
|
|
1621
|
+
throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context);
|
|
2260
1622
|
case "ResourceNotFoundException":
|
|
2261
1623
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2262
|
-
|
|
2263
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2264
|
-
name: errorCode,
|
|
2265
|
-
$metadata: deserializeMetadata(output),
|
|
2266
|
-
};
|
|
2267
|
-
break;
|
|
1624
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2268
1625
|
case "TransactionCanceledException":
|
|
2269
1626
|
case "com.amazonaws.dynamodb#TransactionCanceledException":
|
|
2270
|
-
|
|
2271
|
-
...(await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context)),
|
|
2272
|
-
name: errorCode,
|
|
2273
|
-
$metadata: deserializeMetadata(output),
|
|
2274
|
-
};
|
|
2275
|
-
break;
|
|
1627
|
+
throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context);
|
|
2276
1628
|
case "TransactionInProgressException":
|
|
2277
1629
|
case "com.amazonaws.dynamodb#TransactionInProgressException":
|
|
2278
|
-
|
|
2279
|
-
...(await deserializeAws_json1_0TransactionInProgressExceptionResponse(parsedOutput, context)),
|
|
2280
|
-
name: errorCode,
|
|
2281
|
-
$metadata: deserializeMetadata(output),
|
|
2282
|
-
};
|
|
2283
|
-
break;
|
|
1630
|
+
throw await deserializeAws_json1_0TransactionInProgressExceptionResponse(parsedOutput, context);
|
|
2284
1631
|
default:
|
|
2285
1632
|
const parsedBody = parsedOutput.body;
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
...parsedBody,
|
|
2289
|
-
name: `${errorCode}`,
|
|
2290
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1633
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1634
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2291
1635
|
$fault: "client",
|
|
2292
1636
|
$metadata: deserializeMetadata(output),
|
|
2293
|
-
};
|
|
1637
|
+
});
|
|
1638
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2294
1639
|
}
|
|
2295
|
-
const message = response.message || response.Message || errorCode;
|
|
2296
|
-
response.message = message;
|
|
2297
|
-
delete response.Message;
|
|
2298
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2299
1640
|
};
|
|
2300
1641
|
const deserializeAws_json1_0ExportTableToPointInTimeCommand = async (output, context) => {
|
|
2301
1642
|
if (output.statusCode >= 300) {
|
|
@@ -2322,67 +1663,31 @@ const deserializeAws_json1_0ExportTableToPointInTimeCommandError = async (output
|
|
|
2322
1663
|
switch (errorCode) {
|
|
2323
1664
|
case "ExportConflictException":
|
|
2324
1665
|
case "com.amazonaws.dynamodb#ExportConflictException":
|
|
2325
|
-
|
|
2326
|
-
...(await deserializeAws_json1_0ExportConflictExceptionResponse(parsedOutput, context)),
|
|
2327
|
-
name: errorCode,
|
|
2328
|
-
$metadata: deserializeMetadata(output),
|
|
2329
|
-
};
|
|
2330
|
-
break;
|
|
1666
|
+
throw await deserializeAws_json1_0ExportConflictExceptionResponse(parsedOutput, context);
|
|
2331
1667
|
case "InternalServerError":
|
|
2332
1668
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2333
|
-
|
|
2334
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
2335
|
-
name: errorCode,
|
|
2336
|
-
$metadata: deserializeMetadata(output),
|
|
2337
|
-
};
|
|
2338
|
-
break;
|
|
1669
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
2339
1670
|
case "InvalidExportTimeException":
|
|
2340
1671
|
case "com.amazonaws.dynamodb#InvalidExportTimeException":
|
|
2341
|
-
|
|
2342
|
-
...(await deserializeAws_json1_0InvalidExportTimeExceptionResponse(parsedOutput, context)),
|
|
2343
|
-
name: errorCode,
|
|
2344
|
-
$metadata: deserializeMetadata(output),
|
|
2345
|
-
};
|
|
2346
|
-
break;
|
|
1672
|
+
throw await deserializeAws_json1_0InvalidExportTimeExceptionResponse(parsedOutput, context);
|
|
2347
1673
|
case "LimitExceededException":
|
|
2348
1674
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
2349
|
-
|
|
2350
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2351
|
-
name: errorCode,
|
|
2352
|
-
$metadata: deserializeMetadata(output),
|
|
2353
|
-
};
|
|
2354
|
-
break;
|
|
1675
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
2355
1676
|
case "PointInTimeRecoveryUnavailableException":
|
|
2356
1677
|
case "com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":
|
|
2357
|
-
|
|
2358
|
-
...(await deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse(parsedOutput, context)),
|
|
2359
|
-
name: errorCode,
|
|
2360
|
-
$metadata: deserializeMetadata(output),
|
|
2361
|
-
};
|
|
2362
|
-
break;
|
|
1678
|
+
throw await deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse(parsedOutput, context);
|
|
2363
1679
|
case "TableNotFoundException":
|
|
2364
1680
|
case "com.amazonaws.dynamodb#TableNotFoundException":
|
|
2365
|
-
|
|
2366
|
-
...(await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context)),
|
|
2367
|
-
name: errorCode,
|
|
2368
|
-
$metadata: deserializeMetadata(output),
|
|
2369
|
-
};
|
|
2370
|
-
break;
|
|
1681
|
+
throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
|
|
2371
1682
|
default:
|
|
2372
1683
|
const parsedBody = parsedOutput.body;
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
...parsedBody,
|
|
2376
|
-
name: `${errorCode}`,
|
|
2377
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1684
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1685
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2378
1686
|
$fault: "client",
|
|
2379
1687
|
$metadata: deserializeMetadata(output),
|
|
2380
|
-
};
|
|
1688
|
+
});
|
|
1689
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2381
1690
|
}
|
|
2382
|
-
const message = response.message || response.Message || errorCode;
|
|
2383
|
-
response.message = message;
|
|
2384
|
-
delete response.Message;
|
|
2385
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2386
1691
|
};
|
|
2387
1692
|
const deserializeAws_json1_0GetItemCommand = async (output, context) => {
|
|
2388
1693
|
if (output.statusCode >= 300) {
|
|
@@ -2409,59 +1714,28 @@ const deserializeAws_json1_0GetItemCommandError = async (output, context) => {
|
|
|
2409
1714
|
switch (errorCode) {
|
|
2410
1715
|
case "InternalServerError":
|
|
2411
1716
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2412
|
-
|
|
2413
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
2414
|
-
name: errorCode,
|
|
2415
|
-
$metadata: deserializeMetadata(output),
|
|
2416
|
-
};
|
|
2417
|
-
break;
|
|
1717
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
2418
1718
|
case "InvalidEndpointException":
|
|
2419
1719
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2420
|
-
|
|
2421
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
2422
|
-
name: errorCode,
|
|
2423
|
-
$metadata: deserializeMetadata(output),
|
|
2424
|
-
};
|
|
2425
|
-
break;
|
|
1720
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
2426
1721
|
case "ProvisionedThroughputExceededException":
|
|
2427
1722
|
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
2428
|
-
|
|
2429
|
-
...(await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)),
|
|
2430
|
-
name: errorCode,
|
|
2431
|
-
$metadata: deserializeMetadata(output),
|
|
2432
|
-
};
|
|
2433
|
-
break;
|
|
1723
|
+
throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
2434
1724
|
case "RequestLimitExceeded":
|
|
2435
1725
|
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
2436
|
-
|
|
2437
|
-
...(await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context)),
|
|
2438
|
-
name: errorCode,
|
|
2439
|
-
$metadata: deserializeMetadata(output),
|
|
2440
|
-
};
|
|
2441
|
-
break;
|
|
1726
|
+
throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context);
|
|
2442
1727
|
case "ResourceNotFoundException":
|
|
2443
1728
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2444
|
-
|
|
2445
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2446
|
-
name: errorCode,
|
|
2447
|
-
$metadata: deserializeMetadata(output),
|
|
2448
|
-
};
|
|
2449
|
-
break;
|
|
1729
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2450
1730
|
default:
|
|
2451
1731
|
const parsedBody = parsedOutput.body;
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
...parsedBody,
|
|
2455
|
-
name: `${errorCode}`,
|
|
2456
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1732
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1733
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2457
1734
|
$fault: "client",
|
|
2458
1735
|
$metadata: deserializeMetadata(output),
|
|
2459
|
-
};
|
|
1736
|
+
});
|
|
1737
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2460
1738
|
}
|
|
2461
|
-
const message = response.message || response.Message || errorCode;
|
|
2462
|
-
response.message = message;
|
|
2463
|
-
delete response.Message;
|
|
2464
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2465
1739
|
};
|
|
2466
1740
|
const deserializeAws_json1_0ListBackupsCommand = async (output, context) => {
|
|
2467
1741
|
if (output.statusCode >= 300) {
|
|
@@ -2488,35 +1762,19 @@ const deserializeAws_json1_0ListBackupsCommandError = async (output, context) =>
|
|
|
2488
1762
|
switch (errorCode) {
|
|
2489
1763
|
case "InternalServerError":
|
|
2490
1764
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2491
|
-
|
|
2492
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
2493
|
-
name: errorCode,
|
|
2494
|
-
$metadata: deserializeMetadata(output),
|
|
2495
|
-
};
|
|
2496
|
-
break;
|
|
1765
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
2497
1766
|
case "InvalidEndpointException":
|
|
2498
1767
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2499
|
-
|
|
2500
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
2501
|
-
name: errorCode,
|
|
2502
|
-
$metadata: deserializeMetadata(output),
|
|
2503
|
-
};
|
|
2504
|
-
break;
|
|
1768
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
2505
1769
|
default:
|
|
2506
1770
|
const parsedBody = parsedOutput.body;
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
...parsedBody,
|
|
2510
|
-
name: `${errorCode}`,
|
|
2511
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1771
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1772
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2512
1773
|
$fault: "client",
|
|
2513
1774
|
$metadata: deserializeMetadata(output),
|
|
2514
|
-
};
|
|
1775
|
+
});
|
|
1776
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2515
1777
|
}
|
|
2516
|
-
const message = response.message || response.Message || errorCode;
|
|
2517
|
-
response.message = message;
|
|
2518
|
-
delete response.Message;
|
|
2519
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2520
1778
|
};
|
|
2521
1779
|
const deserializeAws_json1_0ListContributorInsightsCommand = async (output, context) => {
|
|
2522
1780
|
if (output.statusCode >= 300) {
|
|
@@ -2543,35 +1801,19 @@ const deserializeAws_json1_0ListContributorInsightsCommandError = async (output,
|
|
|
2543
1801
|
switch (errorCode) {
|
|
2544
1802
|
case "InternalServerError":
|
|
2545
1803
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2546
|
-
|
|
2547
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
2548
|
-
name: errorCode,
|
|
2549
|
-
$metadata: deserializeMetadata(output),
|
|
2550
|
-
};
|
|
2551
|
-
break;
|
|
1804
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
2552
1805
|
case "ResourceNotFoundException":
|
|
2553
1806
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2554
|
-
|
|
2555
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2556
|
-
name: errorCode,
|
|
2557
|
-
$metadata: deserializeMetadata(output),
|
|
2558
|
-
};
|
|
2559
|
-
break;
|
|
1807
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2560
1808
|
default:
|
|
2561
1809
|
const parsedBody = parsedOutput.body;
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
...parsedBody,
|
|
2565
|
-
name: `${errorCode}`,
|
|
2566
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1810
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1811
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2567
1812
|
$fault: "client",
|
|
2568
1813
|
$metadata: deserializeMetadata(output),
|
|
2569
|
-
};
|
|
1814
|
+
});
|
|
1815
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2570
1816
|
}
|
|
2571
|
-
const message = response.message || response.Message || errorCode;
|
|
2572
|
-
response.message = message;
|
|
2573
|
-
delete response.Message;
|
|
2574
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2575
1817
|
};
|
|
2576
1818
|
const deserializeAws_json1_0ListExportsCommand = async (output, context) => {
|
|
2577
1819
|
if (output.statusCode >= 300) {
|
|
@@ -2598,35 +1840,19 @@ const deserializeAws_json1_0ListExportsCommandError = async (output, context) =>
|
|
|
2598
1840
|
switch (errorCode) {
|
|
2599
1841
|
case "InternalServerError":
|
|
2600
1842
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2601
|
-
|
|
2602
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
2603
|
-
name: errorCode,
|
|
2604
|
-
$metadata: deserializeMetadata(output),
|
|
2605
|
-
};
|
|
2606
|
-
break;
|
|
1843
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
2607
1844
|
case "LimitExceededException":
|
|
2608
1845
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
2609
|
-
|
|
2610
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2611
|
-
name: errorCode,
|
|
2612
|
-
$metadata: deserializeMetadata(output),
|
|
2613
|
-
};
|
|
2614
|
-
break;
|
|
1846
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
2615
1847
|
default:
|
|
2616
1848
|
const parsedBody = parsedOutput.body;
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
...parsedBody,
|
|
2620
|
-
name: `${errorCode}`,
|
|
2621
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1849
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1850
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2622
1851
|
$fault: "client",
|
|
2623
1852
|
$metadata: deserializeMetadata(output),
|
|
2624
|
-
};
|
|
1853
|
+
});
|
|
1854
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2625
1855
|
}
|
|
2626
|
-
const message = response.message || response.Message || errorCode;
|
|
2627
|
-
response.message = message;
|
|
2628
|
-
delete response.Message;
|
|
2629
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2630
1856
|
};
|
|
2631
1857
|
const deserializeAws_json1_0ListGlobalTablesCommand = async (output, context) => {
|
|
2632
1858
|
if (output.statusCode >= 300) {
|
|
@@ -2653,35 +1879,19 @@ const deserializeAws_json1_0ListGlobalTablesCommandError = async (output, contex
|
|
|
2653
1879
|
switch (errorCode) {
|
|
2654
1880
|
case "InternalServerError":
|
|
2655
1881
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2656
|
-
|
|
2657
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
2658
|
-
name: errorCode,
|
|
2659
|
-
$metadata: deserializeMetadata(output),
|
|
2660
|
-
};
|
|
2661
|
-
break;
|
|
1882
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
2662
1883
|
case "InvalidEndpointException":
|
|
2663
1884
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2664
|
-
|
|
2665
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
2666
|
-
name: errorCode,
|
|
2667
|
-
$metadata: deserializeMetadata(output),
|
|
2668
|
-
};
|
|
2669
|
-
break;
|
|
1885
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
2670
1886
|
default:
|
|
2671
1887
|
const parsedBody = parsedOutput.body;
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
...parsedBody,
|
|
2675
|
-
name: `${errorCode}`,
|
|
2676
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1888
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1889
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2677
1890
|
$fault: "client",
|
|
2678
1891
|
$metadata: deserializeMetadata(output),
|
|
2679
|
-
};
|
|
1892
|
+
});
|
|
1893
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2680
1894
|
}
|
|
2681
|
-
const message = response.message || response.Message || errorCode;
|
|
2682
|
-
response.message = message;
|
|
2683
|
-
delete response.Message;
|
|
2684
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2685
1895
|
};
|
|
2686
1896
|
const deserializeAws_json1_0ListTablesCommand = async (output, context) => {
|
|
2687
1897
|
if (output.statusCode >= 300) {
|
|
@@ -2708,35 +1918,19 @@ const deserializeAws_json1_0ListTablesCommandError = async (output, context) =>
|
|
|
2708
1918
|
switch (errorCode) {
|
|
2709
1919
|
case "InternalServerError":
|
|
2710
1920
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2711
|
-
|
|
2712
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
2713
|
-
name: errorCode,
|
|
2714
|
-
$metadata: deserializeMetadata(output),
|
|
2715
|
-
};
|
|
2716
|
-
break;
|
|
1921
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
2717
1922
|
case "InvalidEndpointException":
|
|
2718
1923
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2719
|
-
|
|
2720
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
2721
|
-
name: errorCode,
|
|
2722
|
-
$metadata: deserializeMetadata(output),
|
|
2723
|
-
};
|
|
2724
|
-
break;
|
|
1924
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
2725
1925
|
default:
|
|
2726
1926
|
const parsedBody = parsedOutput.body;
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
...parsedBody,
|
|
2730
|
-
name: `${errorCode}`,
|
|
2731
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1927
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1928
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2732
1929
|
$fault: "client",
|
|
2733
1930
|
$metadata: deserializeMetadata(output),
|
|
2734
|
-
};
|
|
1931
|
+
});
|
|
1932
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2735
1933
|
}
|
|
2736
|
-
const message = response.message || response.Message || errorCode;
|
|
2737
|
-
response.message = message;
|
|
2738
|
-
delete response.Message;
|
|
2739
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2740
1934
|
};
|
|
2741
1935
|
const deserializeAws_json1_0ListTagsOfResourceCommand = async (output, context) => {
|
|
2742
1936
|
if (output.statusCode >= 300) {
|
|
@@ -2763,43 +1957,22 @@ const deserializeAws_json1_0ListTagsOfResourceCommandError = async (output, cont
|
|
|
2763
1957
|
switch (errorCode) {
|
|
2764
1958
|
case "InternalServerError":
|
|
2765
1959
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2766
|
-
|
|
2767
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
2768
|
-
name: errorCode,
|
|
2769
|
-
$metadata: deserializeMetadata(output),
|
|
2770
|
-
};
|
|
2771
|
-
break;
|
|
1960
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
2772
1961
|
case "InvalidEndpointException":
|
|
2773
1962
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2774
|
-
|
|
2775
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
2776
|
-
name: errorCode,
|
|
2777
|
-
$metadata: deserializeMetadata(output),
|
|
2778
|
-
};
|
|
2779
|
-
break;
|
|
1963
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
2780
1964
|
case "ResourceNotFoundException":
|
|
2781
1965
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2782
|
-
|
|
2783
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2784
|
-
name: errorCode,
|
|
2785
|
-
$metadata: deserializeMetadata(output),
|
|
2786
|
-
};
|
|
2787
|
-
break;
|
|
1966
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2788
1967
|
default:
|
|
2789
1968
|
const parsedBody = parsedOutput.body;
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
...parsedBody,
|
|
2793
|
-
name: `${errorCode}`,
|
|
2794
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1969
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
1970
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2795
1971
|
$fault: "client",
|
|
2796
1972
|
$metadata: deserializeMetadata(output),
|
|
2797
|
-
};
|
|
1973
|
+
});
|
|
1974
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2798
1975
|
}
|
|
2799
|
-
const message = response.message || response.Message || errorCode;
|
|
2800
|
-
response.message = message;
|
|
2801
|
-
delete response.Message;
|
|
2802
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2803
1976
|
};
|
|
2804
1977
|
const deserializeAws_json1_0PutItemCommand = async (output, context) => {
|
|
2805
1978
|
if (output.statusCode >= 300) {
|
|
@@ -2826,83 +1999,37 @@ const deserializeAws_json1_0PutItemCommandError = async (output, context) => {
|
|
|
2826
1999
|
switch (errorCode) {
|
|
2827
2000
|
case "ConditionalCheckFailedException":
|
|
2828
2001
|
case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
|
|
2829
|
-
|
|
2830
|
-
...(await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context)),
|
|
2831
|
-
name: errorCode,
|
|
2832
|
-
$metadata: deserializeMetadata(output),
|
|
2833
|
-
};
|
|
2834
|
-
break;
|
|
2002
|
+
throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context);
|
|
2835
2003
|
case "InternalServerError":
|
|
2836
2004
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2837
|
-
|
|
2838
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
2839
|
-
name: errorCode,
|
|
2840
|
-
$metadata: deserializeMetadata(output),
|
|
2841
|
-
};
|
|
2842
|
-
break;
|
|
2005
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
2843
2006
|
case "InvalidEndpointException":
|
|
2844
2007
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2845
|
-
|
|
2846
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
2847
|
-
name: errorCode,
|
|
2848
|
-
$metadata: deserializeMetadata(output),
|
|
2849
|
-
};
|
|
2850
|
-
break;
|
|
2008
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
2851
2009
|
case "ItemCollectionSizeLimitExceededException":
|
|
2852
2010
|
case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
|
|
2853
|
-
|
|
2854
|
-
...(await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2855
|
-
name: errorCode,
|
|
2856
|
-
$metadata: deserializeMetadata(output),
|
|
2857
|
-
};
|
|
2858
|
-
break;
|
|
2011
|
+
throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
2859
2012
|
case "ProvisionedThroughputExceededException":
|
|
2860
2013
|
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
2861
|
-
|
|
2862
|
-
...(await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)),
|
|
2863
|
-
name: errorCode,
|
|
2864
|
-
$metadata: deserializeMetadata(output),
|
|
2865
|
-
};
|
|
2866
|
-
break;
|
|
2014
|
+
throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
2867
2015
|
case "RequestLimitExceeded":
|
|
2868
2016
|
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
2869
|
-
|
|
2870
|
-
...(await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context)),
|
|
2871
|
-
name: errorCode,
|
|
2872
|
-
$metadata: deserializeMetadata(output),
|
|
2873
|
-
};
|
|
2874
|
-
break;
|
|
2017
|
+
throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context);
|
|
2875
2018
|
case "ResourceNotFoundException":
|
|
2876
2019
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2877
|
-
|
|
2878
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2879
|
-
name: errorCode,
|
|
2880
|
-
$metadata: deserializeMetadata(output),
|
|
2881
|
-
};
|
|
2882
|
-
break;
|
|
2020
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2883
2021
|
case "TransactionConflictException":
|
|
2884
2022
|
case "com.amazonaws.dynamodb#TransactionConflictException":
|
|
2885
|
-
|
|
2886
|
-
...(await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context)),
|
|
2887
|
-
name: errorCode,
|
|
2888
|
-
$metadata: deserializeMetadata(output),
|
|
2889
|
-
};
|
|
2890
|
-
break;
|
|
2023
|
+
throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context);
|
|
2891
2024
|
default:
|
|
2892
2025
|
const parsedBody = parsedOutput.body;
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
...parsedBody,
|
|
2896
|
-
name: `${errorCode}`,
|
|
2897
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2026
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2027
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2898
2028
|
$fault: "client",
|
|
2899
2029
|
$metadata: deserializeMetadata(output),
|
|
2900
|
-
};
|
|
2030
|
+
});
|
|
2031
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2901
2032
|
}
|
|
2902
|
-
const message = response.message || response.Message || errorCode;
|
|
2903
|
-
response.message = message;
|
|
2904
|
-
delete response.Message;
|
|
2905
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2906
2033
|
};
|
|
2907
2034
|
const deserializeAws_json1_0QueryCommand = async (output, context) => {
|
|
2908
2035
|
if (output.statusCode >= 300) {
|
|
@@ -2929,59 +2056,28 @@ const deserializeAws_json1_0QueryCommandError = async (output, context) => {
|
|
|
2929
2056
|
switch (errorCode) {
|
|
2930
2057
|
case "InternalServerError":
|
|
2931
2058
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
2932
|
-
|
|
2933
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
2934
|
-
name: errorCode,
|
|
2935
|
-
$metadata: deserializeMetadata(output),
|
|
2936
|
-
};
|
|
2937
|
-
break;
|
|
2059
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
2938
2060
|
case "InvalidEndpointException":
|
|
2939
2061
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
2940
|
-
|
|
2941
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
2942
|
-
name: errorCode,
|
|
2943
|
-
$metadata: deserializeMetadata(output),
|
|
2944
|
-
};
|
|
2945
|
-
break;
|
|
2062
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
2946
2063
|
case "ProvisionedThroughputExceededException":
|
|
2947
2064
|
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
2948
|
-
|
|
2949
|
-
...(await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)),
|
|
2950
|
-
name: errorCode,
|
|
2951
|
-
$metadata: deserializeMetadata(output),
|
|
2952
|
-
};
|
|
2953
|
-
break;
|
|
2065
|
+
throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
2954
2066
|
case "RequestLimitExceeded":
|
|
2955
2067
|
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
2956
|
-
|
|
2957
|
-
...(await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context)),
|
|
2958
|
-
name: errorCode,
|
|
2959
|
-
$metadata: deserializeMetadata(output),
|
|
2960
|
-
};
|
|
2961
|
-
break;
|
|
2068
|
+
throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context);
|
|
2962
2069
|
case "ResourceNotFoundException":
|
|
2963
2070
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
2964
|
-
|
|
2965
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2966
|
-
name: errorCode,
|
|
2967
|
-
$metadata: deserializeMetadata(output),
|
|
2968
|
-
};
|
|
2969
|
-
break;
|
|
2071
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2970
2072
|
default:
|
|
2971
2073
|
const parsedBody = parsedOutput.body;
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
...parsedBody,
|
|
2975
|
-
name: `${errorCode}`,
|
|
2976
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2074
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2075
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2977
2076
|
$fault: "client",
|
|
2978
2077
|
$metadata: deserializeMetadata(output),
|
|
2979
|
-
};
|
|
2078
|
+
});
|
|
2079
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2980
2080
|
}
|
|
2981
|
-
const message = response.message || response.Message || errorCode;
|
|
2982
|
-
response.message = message;
|
|
2983
|
-
delete response.Message;
|
|
2984
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2985
2081
|
};
|
|
2986
2082
|
const deserializeAws_json1_0RestoreTableFromBackupCommand = async (output, context) => {
|
|
2987
2083
|
if (output.statusCode >= 300) {
|
|
@@ -3008,75 +2104,34 @@ const deserializeAws_json1_0RestoreTableFromBackupCommandError = async (output,
|
|
|
3008
2104
|
switch (errorCode) {
|
|
3009
2105
|
case "BackupInUseException":
|
|
3010
2106
|
case "com.amazonaws.dynamodb#BackupInUseException":
|
|
3011
|
-
|
|
3012
|
-
...(await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context)),
|
|
3013
|
-
name: errorCode,
|
|
3014
|
-
$metadata: deserializeMetadata(output),
|
|
3015
|
-
};
|
|
3016
|
-
break;
|
|
2107
|
+
throw await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context);
|
|
3017
2108
|
case "BackupNotFoundException":
|
|
3018
2109
|
case "com.amazonaws.dynamodb#BackupNotFoundException":
|
|
3019
|
-
|
|
3020
|
-
...(await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context)),
|
|
3021
|
-
name: errorCode,
|
|
3022
|
-
$metadata: deserializeMetadata(output),
|
|
3023
|
-
};
|
|
3024
|
-
break;
|
|
2110
|
+
throw await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context);
|
|
3025
2111
|
case "InternalServerError":
|
|
3026
2112
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
3027
|
-
|
|
3028
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
3029
|
-
name: errorCode,
|
|
3030
|
-
$metadata: deserializeMetadata(output),
|
|
3031
|
-
};
|
|
3032
|
-
break;
|
|
2113
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
3033
2114
|
case "InvalidEndpointException":
|
|
3034
2115
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
3035
|
-
|
|
3036
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
3037
|
-
name: errorCode,
|
|
3038
|
-
$metadata: deserializeMetadata(output),
|
|
3039
|
-
};
|
|
3040
|
-
break;
|
|
2116
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
3041
2117
|
case "LimitExceededException":
|
|
3042
2118
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
3043
|
-
|
|
3044
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3045
|
-
name: errorCode,
|
|
3046
|
-
$metadata: deserializeMetadata(output),
|
|
3047
|
-
};
|
|
3048
|
-
break;
|
|
2119
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
3049
2120
|
case "TableAlreadyExistsException":
|
|
3050
2121
|
case "com.amazonaws.dynamodb#TableAlreadyExistsException":
|
|
3051
|
-
|
|
3052
|
-
...(await deserializeAws_json1_0TableAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
3053
|
-
name: errorCode,
|
|
3054
|
-
$metadata: deserializeMetadata(output),
|
|
3055
|
-
};
|
|
3056
|
-
break;
|
|
2122
|
+
throw await deserializeAws_json1_0TableAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
3057
2123
|
case "TableInUseException":
|
|
3058
2124
|
case "com.amazonaws.dynamodb#TableInUseException":
|
|
3059
|
-
|
|
3060
|
-
...(await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context)),
|
|
3061
|
-
name: errorCode,
|
|
3062
|
-
$metadata: deserializeMetadata(output),
|
|
3063
|
-
};
|
|
3064
|
-
break;
|
|
2125
|
+
throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context);
|
|
3065
2126
|
default:
|
|
3066
2127
|
const parsedBody = parsedOutput.body;
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
...parsedBody,
|
|
3070
|
-
name: `${errorCode}`,
|
|
3071
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2128
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2129
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3072
2130
|
$fault: "client",
|
|
3073
2131
|
$metadata: deserializeMetadata(output),
|
|
3074
|
-
};
|
|
2132
|
+
});
|
|
2133
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3075
2134
|
}
|
|
3076
|
-
const message = response.message || response.Message || errorCode;
|
|
3077
|
-
response.message = message;
|
|
3078
|
-
delete response.Message;
|
|
3079
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3080
2135
|
};
|
|
3081
2136
|
const deserializeAws_json1_0RestoreTableToPointInTimeCommand = async (output, context) => {
|
|
3082
2137
|
if (output.statusCode >= 300) {
|
|
@@ -3103,83 +2158,37 @@ const deserializeAws_json1_0RestoreTableToPointInTimeCommandError = async (outpu
|
|
|
3103
2158
|
switch (errorCode) {
|
|
3104
2159
|
case "InternalServerError":
|
|
3105
2160
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
3106
|
-
|
|
3107
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
3108
|
-
name: errorCode,
|
|
3109
|
-
$metadata: deserializeMetadata(output),
|
|
3110
|
-
};
|
|
3111
|
-
break;
|
|
2161
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
3112
2162
|
case "InvalidEndpointException":
|
|
3113
2163
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
3114
|
-
|
|
3115
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
3116
|
-
name: errorCode,
|
|
3117
|
-
$metadata: deserializeMetadata(output),
|
|
3118
|
-
};
|
|
3119
|
-
break;
|
|
2164
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
3120
2165
|
case "InvalidRestoreTimeException":
|
|
3121
2166
|
case "com.amazonaws.dynamodb#InvalidRestoreTimeException":
|
|
3122
|
-
|
|
3123
|
-
...(await deserializeAws_json1_0InvalidRestoreTimeExceptionResponse(parsedOutput, context)),
|
|
3124
|
-
name: errorCode,
|
|
3125
|
-
$metadata: deserializeMetadata(output),
|
|
3126
|
-
};
|
|
3127
|
-
break;
|
|
2167
|
+
throw await deserializeAws_json1_0InvalidRestoreTimeExceptionResponse(parsedOutput, context);
|
|
3128
2168
|
case "LimitExceededException":
|
|
3129
2169
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
3130
|
-
|
|
3131
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3132
|
-
name: errorCode,
|
|
3133
|
-
$metadata: deserializeMetadata(output),
|
|
3134
|
-
};
|
|
3135
|
-
break;
|
|
2170
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
3136
2171
|
case "PointInTimeRecoveryUnavailableException":
|
|
3137
2172
|
case "com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":
|
|
3138
|
-
|
|
3139
|
-
...(await deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse(parsedOutput, context)),
|
|
3140
|
-
name: errorCode,
|
|
3141
|
-
$metadata: deserializeMetadata(output),
|
|
3142
|
-
};
|
|
3143
|
-
break;
|
|
2173
|
+
throw await deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse(parsedOutput, context);
|
|
3144
2174
|
case "TableAlreadyExistsException":
|
|
3145
2175
|
case "com.amazonaws.dynamodb#TableAlreadyExistsException":
|
|
3146
|
-
|
|
3147
|
-
...(await deserializeAws_json1_0TableAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
3148
|
-
name: errorCode,
|
|
3149
|
-
$metadata: deserializeMetadata(output),
|
|
3150
|
-
};
|
|
3151
|
-
break;
|
|
2176
|
+
throw await deserializeAws_json1_0TableAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
3152
2177
|
case "TableInUseException":
|
|
3153
2178
|
case "com.amazonaws.dynamodb#TableInUseException":
|
|
3154
|
-
|
|
3155
|
-
...(await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context)),
|
|
3156
|
-
name: errorCode,
|
|
3157
|
-
$metadata: deserializeMetadata(output),
|
|
3158
|
-
};
|
|
3159
|
-
break;
|
|
2179
|
+
throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context);
|
|
3160
2180
|
case "TableNotFoundException":
|
|
3161
2181
|
case "com.amazonaws.dynamodb#TableNotFoundException":
|
|
3162
|
-
|
|
3163
|
-
...(await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context)),
|
|
3164
|
-
name: errorCode,
|
|
3165
|
-
$metadata: deserializeMetadata(output),
|
|
3166
|
-
};
|
|
3167
|
-
break;
|
|
2182
|
+
throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
|
|
3168
2183
|
default:
|
|
3169
2184
|
const parsedBody = parsedOutput.body;
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
...parsedBody,
|
|
3173
|
-
name: `${errorCode}`,
|
|
3174
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2185
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2186
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3175
2187
|
$fault: "client",
|
|
3176
2188
|
$metadata: deserializeMetadata(output),
|
|
3177
|
-
};
|
|
2189
|
+
});
|
|
2190
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3178
2191
|
}
|
|
3179
|
-
const message = response.message || response.Message || errorCode;
|
|
3180
|
-
response.message = message;
|
|
3181
|
-
delete response.Message;
|
|
3182
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3183
2192
|
};
|
|
3184
2193
|
const deserializeAws_json1_0ScanCommand = async (output, context) => {
|
|
3185
2194
|
if (output.statusCode >= 300) {
|
|
@@ -3206,59 +2215,28 @@ const deserializeAws_json1_0ScanCommandError = async (output, context) => {
|
|
|
3206
2215
|
switch (errorCode) {
|
|
3207
2216
|
case "InternalServerError":
|
|
3208
2217
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
3209
|
-
|
|
3210
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
3211
|
-
name: errorCode,
|
|
3212
|
-
$metadata: deserializeMetadata(output),
|
|
3213
|
-
};
|
|
3214
|
-
break;
|
|
2218
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
3215
2219
|
case "InvalidEndpointException":
|
|
3216
2220
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
3217
|
-
|
|
3218
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
3219
|
-
name: errorCode,
|
|
3220
|
-
$metadata: deserializeMetadata(output),
|
|
3221
|
-
};
|
|
3222
|
-
break;
|
|
2221
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
3223
2222
|
case "ProvisionedThroughputExceededException":
|
|
3224
2223
|
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
3225
|
-
|
|
3226
|
-
...(await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)),
|
|
3227
|
-
name: errorCode,
|
|
3228
|
-
$metadata: deserializeMetadata(output),
|
|
3229
|
-
};
|
|
3230
|
-
break;
|
|
2224
|
+
throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
3231
2225
|
case "RequestLimitExceeded":
|
|
3232
2226
|
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
3233
|
-
|
|
3234
|
-
...(await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context)),
|
|
3235
|
-
name: errorCode,
|
|
3236
|
-
$metadata: deserializeMetadata(output),
|
|
3237
|
-
};
|
|
3238
|
-
break;
|
|
2227
|
+
throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context);
|
|
3239
2228
|
case "ResourceNotFoundException":
|
|
3240
2229
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
3241
|
-
|
|
3242
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3243
|
-
name: errorCode,
|
|
3244
|
-
$metadata: deserializeMetadata(output),
|
|
3245
|
-
};
|
|
3246
|
-
break;
|
|
2230
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3247
2231
|
default:
|
|
3248
2232
|
const parsedBody = parsedOutput.body;
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
...parsedBody,
|
|
3252
|
-
name: `${errorCode}`,
|
|
3253
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2233
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2234
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3254
2235
|
$fault: "client",
|
|
3255
2236
|
$metadata: deserializeMetadata(output),
|
|
3256
|
-
};
|
|
2237
|
+
});
|
|
2238
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3257
2239
|
}
|
|
3258
|
-
const message = response.message || response.Message || errorCode;
|
|
3259
|
-
response.message = message;
|
|
3260
|
-
delete response.Message;
|
|
3261
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3262
2240
|
};
|
|
3263
2241
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
3264
2242
|
if (output.statusCode >= 300) {
|
|
@@ -3282,59 +2260,28 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
3282
2260
|
switch (errorCode) {
|
|
3283
2261
|
case "InternalServerError":
|
|
3284
2262
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
3285
|
-
|
|
3286
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
3287
|
-
name: errorCode,
|
|
3288
|
-
$metadata: deserializeMetadata(output),
|
|
3289
|
-
};
|
|
3290
|
-
break;
|
|
2263
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
3291
2264
|
case "InvalidEndpointException":
|
|
3292
2265
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
3293
|
-
|
|
3294
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
3295
|
-
name: errorCode,
|
|
3296
|
-
$metadata: deserializeMetadata(output),
|
|
3297
|
-
};
|
|
3298
|
-
break;
|
|
2266
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
3299
2267
|
case "LimitExceededException":
|
|
3300
2268
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
3301
|
-
|
|
3302
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3303
|
-
name: errorCode,
|
|
3304
|
-
$metadata: deserializeMetadata(output),
|
|
3305
|
-
};
|
|
3306
|
-
break;
|
|
2269
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
3307
2270
|
case "ResourceInUseException":
|
|
3308
2271
|
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
3309
|
-
|
|
3310
|
-
...(await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
3311
|
-
name: errorCode,
|
|
3312
|
-
$metadata: deserializeMetadata(output),
|
|
3313
|
-
};
|
|
3314
|
-
break;
|
|
2272
|
+
throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context);
|
|
3315
2273
|
case "ResourceNotFoundException":
|
|
3316
2274
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
3317
|
-
|
|
3318
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3319
|
-
name: errorCode,
|
|
3320
|
-
$metadata: deserializeMetadata(output),
|
|
3321
|
-
};
|
|
3322
|
-
break;
|
|
2275
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3323
2276
|
default:
|
|
3324
2277
|
const parsedBody = parsedOutput.body;
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
...parsedBody,
|
|
3328
|
-
name: `${errorCode}`,
|
|
3329
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2278
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2279
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3330
2280
|
$fault: "client",
|
|
3331
2281
|
$metadata: deserializeMetadata(output),
|
|
3332
|
-
};
|
|
2282
|
+
});
|
|
2283
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3333
2284
|
}
|
|
3334
|
-
const message = response.message || response.Message || errorCode;
|
|
3335
|
-
response.message = message;
|
|
3336
|
-
delete response.Message;
|
|
3337
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3338
2285
|
};
|
|
3339
2286
|
const deserializeAws_json1_0TransactGetItemsCommand = async (output, context) => {
|
|
3340
2287
|
if (output.statusCode >= 300) {
|
|
@@ -3361,67 +2308,31 @@ const deserializeAws_json1_0TransactGetItemsCommandError = async (output, contex
|
|
|
3361
2308
|
switch (errorCode) {
|
|
3362
2309
|
case "InternalServerError":
|
|
3363
2310
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
3364
|
-
|
|
3365
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
3366
|
-
name: errorCode,
|
|
3367
|
-
$metadata: deserializeMetadata(output),
|
|
3368
|
-
};
|
|
3369
|
-
break;
|
|
2311
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
3370
2312
|
case "InvalidEndpointException":
|
|
3371
2313
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
3372
|
-
|
|
3373
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
3374
|
-
name: errorCode,
|
|
3375
|
-
$metadata: deserializeMetadata(output),
|
|
3376
|
-
};
|
|
3377
|
-
break;
|
|
2314
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
3378
2315
|
case "ProvisionedThroughputExceededException":
|
|
3379
2316
|
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
3380
|
-
|
|
3381
|
-
...(await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)),
|
|
3382
|
-
name: errorCode,
|
|
3383
|
-
$metadata: deserializeMetadata(output),
|
|
3384
|
-
};
|
|
3385
|
-
break;
|
|
2317
|
+
throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
3386
2318
|
case "RequestLimitExceeded":
|
|
3387
2319
|
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
3388
|
-
|
|
3389
|
-
...(await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context)),
|
|
3390
|
-
name: errorCode,
|
|
3391
|
-
$metadata: deserializeMetadata(output),
|
|
3392
|
-
};
|
|
3393
|
-
break;
|
|
2320
|
+
throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context);
|
|
3394
2321
|
case "ResourceNotFoundException":
|
|
3395
2322
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
3396
|
-
|
|
3397
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3398
|
-
name: errorCode,
|
|
3399
|
-
$metadata: deserializeMetadata(output),
|
|
3400
|
-
};
|
|
3401
|
-
break;
|
|
2323
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3402
2324
|
case "TransactionCanceledException":
|
|
3403
2325
|
case "com.amazonaws.dynamodb#TransactionCanceledException":
|
|
3404
|
-
|
|
3405
|
-
...(await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context)),
|
|
3406
|
-
name: errorCode,
|
|
3407
|
-
$metadata: deserializeMetadata(output),
|
|
3408
|
-
};
|
|
3409
|
-
break;
|
|
2326
|
+
throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context);
|
|
3410
2327
|
default:
|
|
3411
2328
|
const parsedBody = parsedOutput.body;
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
...parsedBody,
|
|
3415
|
-
name: `${errorCode}`,
|
|
3416
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2329
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2330
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3417
2331
|
$fault: "client",
|
|
3418
2332
|
$metadata: deserializeMetadata(output),
|
|
3419
|
-
};
|
|
2333
|
+
});
|
|
2334
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3420
2335
|
}
|
|
3421
|
-
const message = response.message || response.Message || errorCode;
|
|
3422
|
-
response.message = message;
|
|
3423
|
-
delete response.Message;
|
|
3424
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3425
2336
|
};
|
|
3426
2337
|
const deserializeAws_json1_0TransactWriteItemsCommand = async (output, context) => {
|
|
3427
2338
|
if (output.statusCode >= 300) {
|
|
@@ -3448,83 +2359,37 @@ const deserializeAws_json1_0TransactWriteItemsCommandError = async (output, cont
|
|
|
3448
2359
|
switch (errorCode) {
|
|
3449
2360
|
case "IdempotentParameterMismatchException":
|
|
3450
2361
|
case "com.amazonaws.dynamodb#IdempotentParameterMismatchException":
|
|
3451
|
-
|
|
3452
|
-
...(await deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse(parsedOutput, context)),
|
|
3453
|
-
name: errorCode,
|
|
3454
|
-
$metadata: deserializeMetadata(output),
|
|
3455
|
-
};
|
|
3456
|
-
break;
|
|
2362
|
+
throw await deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse(parsedOutput, context);
|
|
3457
2363
|
case "InternalServerError":
|
|
3458
2364
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
3459
|
-
|
|
3460
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
3461
|
-
name: errorCode,
|
|
3462
|
-
$metadata: deserializeMetadata(output),
|
|
3463
|
-
};
|
|
3464
|
-
break;
|
|
2365
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
3465
2366
|
case "InvalidEndpointException":
|
|
3466
2367
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
3467
|
-
|
|
3468
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
3469
|
-
name: errorCode,
|
|
3470
|
-
$metadata: deserializeMetadata(output),
|
|
3471
|
-
};
|
|
3472
|
-
break;
|
|
2368
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
3473
2369
|
case "ProvisionedThroughputExceededException":
|
|
3474
2370
|
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
3475
|
-
|
|
3476
|
-
...(await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)),
|
|
3477
|
-
name: errorCode,
|
|
3478
|
-
$metadata: deserializeMetadata(output),
|
|
3479
|
-
};
|
|
3480
|
-
break;
|
|
2371
|
+
throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
3481
2372
|
case "RequestLimitExceeded":
|
|
3482
2373
|
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
3483
|
-
|
|
3484
|
-
...(await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context)),
|
|
3485
|
-
name: errorCode,
|
|
3486
|
-
$metadata: deserializeMetadata(output),
|
|
3487
|
-
};
|
|
3488
|
-
break;
|
|
2374
|
+
throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context);
|
|
3489
2375
|
case "ResourceNotFoundException":
|
|
3490
2376
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
3491
|
-
|
|
3492
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3493
|
-
name: errorCode,
|
|
3494
|
-
$metadata: deserializeMetadata(output),
|
|
3495
|
-
};
|
|
3496
|
-
break;
|
|
2377
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3497
2378
|
case "TransactionCanceledException":
|
|
3498
2379
|
case "com.amazonaws.dynamodb#TransactionCanceledException":
|
|
3499
|
-
|
|
3500
|
-
...(await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context)),
|
|
3501
|
-
name: errorCode,
|
|
3502
|
-
$metadata: deserializeMetadata(output),
|
|
3503
|
-
};
|
|
3504
|
-
break;
|
|
2380
|
+
throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context);
|
|
3505
2381
|
case "TransactionInProgressException":
|
|
3506
2382
|
case "com.amazonaws.dynamodb#TransactionInProgressException":
|
|
3507
|
-
|
|
3508
|
-
...(await deserializeAws_json1_0TransactionInProgressExceptionResponse(parsedOutput, context)),
|
|
3509
|
-
name: errorCode,
|
|
3510
|
-
$metadata: deserializeMetadata(output),
|
|
3511
|
-
};
|
|
3512
|
-
break;
|
|
2383
|
+
throw await deserializeAws_json1_0TransactionInProgressExceptionResponse(parsedOutput, context);
|
|
3513
2384
|
default:
|
|
3514
2385
|
const parsedBody = parsedOutput.body;
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
...parsedBody,
|
|
3518
|
-
name: `${errorCode}`,
|
|
3519
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2386
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2387
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3520
2388
|
$fault: "client",
|
|
3521
2389
|
$metadata: deserializeMetadata(output),
|
|
3522
|
-
};
|
|
2390
|
+
});
|
|
2391
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3523
2392
|
}
|
|
3524
|
-
const message = response.message || response.Message || errorCode;
|
|
3525
|
-
response.message = message;
|
|
3526
|
-
delete response.Message;
|
|
3527
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3528
2393
|
};
|
|
3529
2394
|
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
3530
2395
|
if (output.statusCode >= 300) {
|
|
@@ -3548,59 +2413,28 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
3548
2413
|
switch (errorCode) {
|
|
3549
2414
|
case "InternalServerError":
|
|
3550
2415
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
3551
|
-
|
|
3552
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
3553
|
-
name: errorCode,
|
|
3554
|
-
$metadata: deserializeMetadata(output),
|
|
3555
|
-
};
|
|
3556
|
-
break;
|
|
2416
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
3557
2417
|
case "InvalidEndpointException":
|
|
3558
2418
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
3559
|
-
|
|
3560
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
3561
|
-
name: errorCode,
|
|
3562
|
-
$metadata: deserializeMetadata(output),
|
|
3563
|
-
};
|
|
3564
|
-
break;
|
|
2419
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
3565
2420
|
case "LimitExceededException":
|
|
3566
2421
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
3567
|
-
|
|
3568
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3569
|
-
name: errorCode,
|
|
3570
|
-
$metadata: deserializeMetadata(output),
|
|
3571
|
-
};
|
|
3572
|
-
break;
|
|
2422
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
3573
2423
|
case "ResourceInUseException":
|
|
3574
2424
|
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
3575
|
-
|
|
3576
|
-
...(await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
3577
|
-
name: errorCode,
|
|
3578
|
-
$metadata: deserializeMetadata(output),
|
|
3579
|
-
};
|
|
3580
|
-
break;
|
|
2425
|
+
throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context);
|
|
3581
2426
|
case "ResourceNotFoundException":
|
|
3582
2427
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
3583
|
-
|
|
3584
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3585
|
-
name: errorCode,
|
|
3586
|
-
$metadata: deserializeMetadata(output),
|
|
3587
|
-
};
|
|
3588
|
-
break;
|
|
2428
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3589
2429
|
default:
|
|
3590
2430
|
const parsedBody = parsedOutput.body;
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
...parsedBody,
|
|
3594
|
-
name: `${errorCode}`,
|
|
3595
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2431
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2432
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3596
2433
|
$fault: "client",
|
|
3597
2434
|
$metadata: deserializeMetadata(output),
|
|
3598
|
-
};
|
|
2435
|
+
});
|
|
2436
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3599
2437
|
}
|
|
3600
|
-
const message = response.message || response.Message || errorCode;
|
|
3601
|
-
response.message = message;
|
|
3602
|
-
delete response.Message;
|
|
3603
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3604
2438
|
};
|
|
3605
2439
|
const deserializeAws_json1_0UpdateContinuousBackupsCommand = async (output, context) => {
|
|
3606
2440
|
if (output.statusCode >= 300) {
|
|
@@ -3627,51 +2461,25 @@ const deserializeAws_json1_0UpdateContinuousBackupsCommandError = async (output,
|
|
|
3627
2461
|
switch (errorCode) {
|
|
3628
2462
|
case "ContinuousBackupsUnavailableException":
|
|
3629
2463
|
case "com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":
|
|
3630
|
-
|
|
3631
|
-
...(await deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse(parsedOutput, context)),
|
|
3632
|
-
name: errorCode,
|
|
3633
|
-
$metadata: deserializeMetadata(output),
|
|
3634
|
-
};
|
|
3635
|
-
break;
|
|
2464
|
+
throw await deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse(parsedOutput, context);
|
|
3636
2465
|
case "InternalServerError":
|
|
3637
2466
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
3638
|
-
|
|
3639
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
3640
|
-
name: errorCode,
|
|
3641
|
-
$metadata: deserializeMetadata(output),
|
|
3642
|
-
};
|
|
3643
|
-
break;
|
|
2467
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
3644
2468
|
case "InvalidEndpointException":
|
|
3645
2469
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
3646
|
-
|
|
3647
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
3648
|
-
name: errorCode,
|
|
3649
|
-
$metadata: deserializeMetadata(output),
|
|
3650
|
-
};
|
|
3651
|
-
break;
|
|
2470
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
3652
2471
|
case "TableNotFoundException":
|
|
3653
2472
|
case "com.amazonaws.dynamodb#TableNotFoundException":
|
|
3654
|
-
|
|
3655
|
-
...(await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context)),
|
|
3656
|
-
name: errorCode,
|
|
3657
|
-
$metadata: deserializeMetadata(output),
|
|
3658
|
-
};
|
|
3659
|
-
break;
|
|
2473
|
+
throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
|
|
3660
2474
|
default:
|
|
3661
2475
|
const parsedBody = parsedOutput.body;
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
...parsedBody,
|
|
3665
|
-
name: `${errorCode}`,
|
|
3666
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2476
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2477
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3667
2478
|
$fault: "client",
|
|
3668
2479
|
$metadata: deserializeMetadata(output),
|
|
3669
|
-
};
|
|
2480
|
+
});
|
|
2481
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3670
2482
|
}
|
|
3671
|
-
const message = response.message || response.Message || errorCode;
|
|
3672
|
-
response.message = message;
|
|
3673
|
-
delete response.Message;
|
|
3674
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3675
2483
|
};
|
|
3676
2484
|
const deserializeAws_json1_0UpdateContributorInsightsCommand = async (output, context) => {
|
|
3677
2485
|
if (output.statusCode >= 300) {
|
|
@@ -3698,35 +2506,19 @@ const deserializeAws_json1_0UpdateContributorInsightsCommandError = async (outpu
|
|
|
3698
2506
|
switch (errorCode) {
|
|
3699
2507
|
case "InternalServerError":
|
|
3700
2508
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
3701
|
-
|
|
3702
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
3703
|
-
name: errorCode,
|
|
3704
|
-
$metadata: deserializeMetadata(output),
|
|
3705
|
-
};
|
|
3706
|
-
break;
|
|
2509
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
3707
2510
|
case "ResourceNotFoundException":
|
|
3708
2511
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
3709
|
-
|
|
3710
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3711
|
-
name: errorCode,
|
|
3712
|
-
$metadata: deserializeMetadata(output),
|
|
3713
|
-
};
|
|
3714
|
-
break;
|
|
2512
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3715
2513
|
default:
|
|
3716
2514
|
const parsedBody = parsedOutput.body;
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
...parsedBody,
|
|
3720
|
-
name: `${errorCode}`,
|
|
3721
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2515
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2516
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3722
2517
|
$fault: "client",
|
|
3723
2518
|
$metadata: deserializeMetadata(output),
|
|
3724
|
-
};
|
|
2519
|
+
});
|
|
2520
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3725
2521
|
}
|
|
3726
|
-
const message = response.message || response.Message || errorCode;
|
|
3727
|
-
response.message = message;
|
|
3728
|
-
delete response.Message;
|
|
3729
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3730
2522
|
};
|
|
3731
2523
|
const deserializeAws_json1_0UpdateGlobalTableCommand = async (output, context) => {
|
|
3732
2524
|
if (output.statusCode >= 300) {
|
|
@@ -3753,67 +2545,31 @@ const deserializeAws_json1_0UpdateGlobalTableCommandError = async (output, conte
|
|
|
3753
2545
|
switch (errorCode) {
|
|
3754
2546
|
case "GlobalTableNotFoundException":
|
|
3755
2547
|
case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
|
|
3756
|
-
|
|
3757
|
-
...(await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context)),
|
|
3758
|
-
name: errorCode,
|
|
3759
|
-
$metadata: deserializeMetadata(output),
|
|
3760
|
-
};
|
|
3761
|
-
break;
|
|
2548
|
+
throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context);
|
|
3762
2549
|
case "InternalServerError":
|
|
3763
2550
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
3764
|
-
|
|
3765
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
3766
|
-
name: errorCode,
|
|
3767
|
-
$metadata: deserializeMetadata(output),
|
|
3768
|
-
};
|
|
3769
|
-
break;
|
|
2551
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
3770
2552
|
case "InvalidEndpointException":
|
|
3771
2553
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
3772
|
-
|
|
3773
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
3774
|
-
name: errorCode,
|
|
3775
|
-
$metadata: deserializeMetadata(output),
|
|
3776
|
-
};
|
|
3777
|
-
break;
|
|
2554
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
3778
2555
|
case "ReplicaAlreadyExistsException":
|
|
3779
2556
|
case "com.amazonaws.dynamodb#ReplicaAlreadyExistsException":
|
|
3780
|
-
|
|
3781
|
-
...(await deserializeAws_json1_0ReplicaAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
3782
|
-
name: errorCode,
|
|
3783
|
-
$metadata: deserializeMetadata(output),
|
|
3784
|
-
};
|
|
3785
|
-
break;
|
|
2557
|
+
throw await deserializeAws_json1_0ReplicaAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
3786
2558
|
case "ReplicaNotFoundException":
|
|
3787
2559
|
case "com.amazonaws.dynamodb#ReplicaNotFoundException":
|
|
3788
|
-
|
|
3789
|
-
...(await deserializeAws_json1_0ReplicaNotFoundExceptionResponse(parsedOutput, context)),
|
|
3790
|
-
name: errorCode,
|
|
3791
|
-
$metadata: deserializeMetadata(output),
|
|
3792
|
-
};
|
|
3793
|
-
break;
|
|
2560
|
+
throw await deserializeAws_json1_0ReplicaNotFoundExceptionResponse(parsedOutput, context);
|
|
3794
2561
|
case "TableNotFoundException":
|
|
3795
2562
|
case "com.amazonaws.dynamodb#TableNotFoundException":
|
|
3796
|
-
|
|
3797
|
-
...(await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context)),
|
|
3798
|
-
name: errorCode,
|
|
3799
|
-
$metadata: deserializeMetadata(output),
|
|
3800
|
-
};
|
|
3801
|
-
break;
|
|
2563
|
+
throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
|
|
3802
2564
|
default:
|
|
3803
2565
|
const parsedBody = parsedOutput.body;
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
...parsedBody,
|
|
3807
|
-
name: `${errorCode}`,
|
|
3808
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2566
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2567
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3809
2568
|
$fault: "client",
|
|
3810
2569
|
$metadata: deserializeMetadata(output),
|
|
3811
|
-
};
|
|
2570
|
+
});
|
|
2571
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3812
2572
|
}
|
|
3813
|
-
const message = response.message || response.Message || errorCode;
|
|
3814
|
-
response.message = message;
|
|
3815
|
-
delete response.Message;
|
|
3816
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3817
2573
|
};
|
|
3818
2574
|
const deserializeAws_json1_0UpdateGlobalTableSettingsCommand = async (output, context) => {
|
|
3819
2575
|
if (output.statusCode >= 300) {
|
|
@@ -3840,75 +2596,34 @@ const deserializeAws_json1_0UpdateGlobalTableSettingsCommandError = async (outpu
|
|
|
3840
2596
|
switch (errorCode) {
|
|
3841
2597
|
case "GlobalTableNotFoundException":
|
|
3842
2598
|
case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
|
|
3843
|
-
|
|
3844
|
-
...(await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context)),
|
|
3845
|
-
name: errorCode,
|
|
3846
|
-
$metadata: deserializeMetadata(output),
|
|
3847
|
-
};
|
|
3848
|
-
break;
|
|
2599
|
+
throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context);
|
|
3849
2600
|
case "IndexNotFoundException":
|
|
3850
2601
|
case "com.amazonaws.dynamodb#IndexNotFoundException":
|
|
3851
|
-
|
|
3852
|
-
...(await deserializeAws_json1_0IndexNotFoundExceptionResponse(parsedOutput, context)),
|
|
3853
|
-
name: errorCode,
|
|
3854
|
-
$metadata: deserializeMetadata(output),
|
|
3855
|
-
};
|
|
3856
|
-
break;
|
|
2602
|
+
throw await deserializeAws_json1_0IndexNotFoundExceptionResponse(parsedOutput, context);
|
|
3857
2603
|
case "InternalServerError":
|
|
3858
2604
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
3859
|
-
|
|
3860
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
3861
|
-
name: errorCode,
|
|
3862
|
-
$metadata: deserializeMetadata(output),
|
|
3863
|
-
};
|
|
3864
|
-
break;
|
|
2605
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
3865
2606
|
case "InvalidEndpointException":
|
|
3866
2607
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
3867
|
-
|
|
3868
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
3869
|
-
name: errorCode,
|
|
3870
|
-
$metadata: deserializeMetadata(output),
|
|
3871
|
-
};
|
|
3872
|
-
break;
|
|
2608
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
3873
2609
|
case "LimitExceededException":
|
|
3874
2610
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
3875
|
-
|
|
3876
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3877
|
-
name: errorCode,
|
|
3878
|
-
$metadata: deserializeMetadata(output),
|
|
3879
|
-
};
|
|
3880
|
-
break;
|
|
2611
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
3881
2612
|
case "ReplicaNotFoundException":
|
|
3882
2613
|
case "com.amazonaws.dynamodb#ReplicaNotFoundException":
|
|
3883
|
-
|
|
3884
|
-
...(await deserializeAws_json1_0ReplicaNotFoundExceptionResponse(parsedOutput, context)),
|
|
3885
|
-
name: errorCode,
|
|
3886
|
-
$metadata: deserializeMetadata(output),
|
|
3887
|
-
};
|
|
3888
|
-
break;
|
|
2614
|
+
throw await deserializeAws_json1_0ReplicaNotFoundExceptionResponse(parsedOutput, context);
|
|
3889
2615
|
case "ResourceInUseException":
|
|
3890
2616
|
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
3891
|
-
|
|
3892
|
-
...(await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
3893
|
-
name: errorCode,
|
|
3894
|
-
$metadata: deserializeMetadata(output),
|
|
3895
|
-
};
|
|
3896
|
-
break;
|
|
2617
|
+
throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context);
|
|
3897
2618
|
default:
|
|
3898
2619
|
const parsedBody = parsedOutput.body;
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
...parsedBody,
|
|
3902
|
-
name: `${errorCode}`,
|
|
3903
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2620
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2621
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3904
2622
|
$fault: "client",
|
|
3905
2623
|
$metadata: deserializeMetadata(output),
|
|
3906
|
-
};
|
|
2624
|
+
});
|
|
2625
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3907
2626
|
}
|
|
3908
|
-
const message = response.message || response.Message || errorCode;
|
|
3909
|
-
response.message = message;
|
|
3910
|
-
delete response.Message;
|
|
3911
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3912
2627
|
};
|
|
3913
2628
|
const deserializeAws_json1_0UpdateItemCommand = async (output, context) => {
|
|
3914
2629
|
if (output.statusCode >= 300) {
|
|
@@ -3935,83 +2650,37 @@ const deserializeAws_json1_0UpdateItemCommandError = async (output, context) =>
|
|
|
3935
2650
|
switch (errorCode) {
|
|
3936
2651
|
case "ConditionalCheckFailedException":
|
|
3937
2652
|
case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
|
|
3938
|
-
|
|
3939
|
-
...(await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context)),
|
|
3940
|
-
name: errorCode,
|
|
3941
|
-
$metadata: deserializeMetadata(output),
|
|
3942
|
-
};
|
|
3943
|
-
break;
|
|
2653
|
+
throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context);
|
|
3944
2654
|
case "InternalServerError":
|
|
3945
2655
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
3946
|
-
|
|
3947
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
3948
|
-
name: errorCode,
|
|
3949
|
-
$metadata: deserializeMetadata(output),
|
|
3950
|
-
};
|
|
3951
|
-
break;
|
|
2656
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
3952
2657
|
case "InvalidEndpointException":
|
|
3953
2658
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
3954
|
-
|
|
3955
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
3956
|
-
name: errorCode,
|
|
3957
|
-
$metadata: deserializeMetadata(output),
|
|
3958
|
-
};
|
|
3959
|
-
break;
|
|
2659
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
3960
2660
|
case "ItemCollectionSizeLimitExceededException":
|
|
3961
2661
|
case "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":
|
|
3962
|
-
|
|
3963
|
-
...(await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3964
|
-
name: errorCode,
|
|
3965
|
-
$metadata: deserializeMetadata(output),
|
|
3966
|
-
};
|
|
3967
|
-
break;
|
|
2662
|
+
throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
3968
2663
|
case "ProvisionedThroughputExceededException":
|
|
3969
2664
|
case "com.amazonaws.dynamodb#ProvisionedThroughputExceededException":
|
|
3970
|
-
|
|
3971
|
-
...(await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)),
|
|
3972
|
-
name: errorCode,
|
|
3973
|
-
$metadata: deserializeMetadata(output),
|
|
3974
|
-
};
|
|
3975
|
-
break;
|
|
2665
|
+
throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
3976
2666
|
case "RequestLimitExceeded":
|
|
3977
2667
|
case "com.amazonaws.dynamodb#RequestLimitExceeded":
|
|
3978
|
-
|
|
3979
|
-
...(await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context)),
|
|
3980
|
-
name: errorCode,
|
|
3981
|
-
$metadata: deserializeMetadata(output),
|
|
3982
|
-
};
|
|
3983
|
-
break;
|
|
2668
|
+
throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context);
|
|
3984
2669
|
case "ResourceNotFoundException":
|
|
3985
2670
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
3986
|
-
|
|
3987
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3988
|
-
name: errorCode,
|
|
3989
|
-
$metadata: deserializeMetadata(output),
|
|
3990
|
-
};
|
|
3991
|
-
break;
|
|
2671
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3992
2672
|
case "TransactionConflictException":
|
|
3993
2673
|
case "com.amazonaws.dynamodb#TransactionConflictException":
|
|
3994
|
-
|
|
3995
|
-
...(await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context)),
|
|
3996
|
-
name: errorCode,
|
|
3997
|
-
$metadata: deserializeMetadata(output),
|
|
3998
|
-
};
|
|
3999
|
-
break;
|
|
2674
|
+
throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context);
|
|
4000
2675
|
default:
|
|
4001
2676
|
const parsedBody = parsedOutput.body;
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
...parsedBody,
|
|
4005
|
-
name: `${errorCode}`,
|
|
4006
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2677
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2678
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4007
2679
|
$fault: "client",
|
|
4008
2680
|
$metadata: deserializeMetadata(output),
|
|
4009
|
-
};
|
|
2681
|
+
});
|
|
2682
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4010
2683
|
}
|
|
4011
|
-
const message = response.message || response.Message || errorCode;
|
|
4012
|
-
response.message = message;
|
|
4013
|
-
delete response.Message;
|
|
4014
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4015
2684
|
};
|
|
4016
2685
|
const deserializeAws_json1_0UpdateTableCommand = async (output, context) => {
|
|
4017
2686
|
if (output.statusCode >= 300) {
|
|
@@ -4038,59 +2707,28 @@ const deserializeAws_json1_0UpdateTableCommandError = async (output, context) =>
|
|
|
4038
2707
|
switch (errorCode) {
|
|
4039
2708
|
case "InternalServerError":
|
|
4040
2709
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
4041
|
-
|
|
4042
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
4043
|
-
name: errorCode,
|
|
4044
|
-
$metadata: deserializeMetadata(output),
|
|
4045
|
-
};
|
|
4046
|
-
break;
|
|
2710
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
4047
2711
|
case "InvalidEndpointException":
|
|
4048
2712
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
4049
|
-
|
|
4050
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
4051
|
-
name: errorCode,
|
|
4052
|
-
$metadata: deserializeMetadata(output),
|
|
4053
|
-
};
|
|
4054
|
-
break;
|
|
2713
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
4055
2714
|
case "LimitExceededException":
|
|
4056
2715
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
4057
|
-
|
|
4058
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
4059
|
-
name: errorCode,
|
|
4060
|
-
$metadata: deserializeMetadata(output),
|
|
4061
|
-
};
|
|
4062
|
-
break;
|
|
2716
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
4063
2717
|
case "ResourceInUseException":
|
|
4064
2718
|
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
4065
|
-
|
|
4066
|
-
...(await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
4067
|
-
name: errorCode,
|
|
4068
|
-
$metadata: deserializeMetadata(output),
|
|
4069
|
-
};
|
|
4070
|
-
break;
|
|
2719
|
+
throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context);
|
|
4071
2720
|
case "ResourceNotFoundException":
|
|
4072
2721
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
4073
|
-
|
|
4074
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4075
|
-
name: errorCode,
|
|
4076
|
-
$metadata: deserializeMetadata(output),
|
|
4077
|
-
};
|
|
4078
|
-
break;
|
|
2722
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4079
2723
|
default:
|
|
4080
2724
|
const parsedBody = parsedOutput.body;
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
...parsedBody,
|
|
4084
|
-
name: `${errorCode}`,
|
|
4085
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2725
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2726
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4086
2727
|
$fault: "client",
|
|
4087
2728
|
$metadata: deserializeMetadata(output),
|
|
4088
|
-
};
|
|
2729
|
+
});
|
|
2730
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4089
2731
|
}
|
|
4090
|
-
const message = response.message || response.Message || errorCode;
|
|
4091
|
-
response.message = message;
|
|
4092
|
-
delete response.Message;
|
|
4093
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4094
2732
|
};
|
|
4095
2733
|
const deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = async (output, context) => {
|
|
4096
2734
|
if (output.statusCode >= 300) {
|
|
@@ -4117,51 +2755,25 @@ const deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError = async (o
|
|
|
4117
2755
|
switch (errorCode) {
|
|
4118
2756
|
case "InternalServerError":
|
|
4119
2757
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
4120
|
-
|
|
4121
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
4122
|
-
name: errorCode,
|
|
4123
|
-
$metadata: deserializeMetadata(output),
|
|
4124
|
-
};
|
|
4125
|
-
break;
|
|
2758
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
4126
2759
|
case "LimitExceededException":
|
|
4127
2760
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
4128
|
-
|
|
4129
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
4130
|
-
name: errorCode,
|
|
4131
|
-
$metadata: deserializeMetadata(output),
|
|
4132
|
-
};
|
|
4133
|
-
break;
|
|
2761
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
4134
2762
|
case "ResourceInUseException":
|
|
4135
2763
|
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
4136
|
-
|
|
4137
|
-
...(await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
4138
|
-
name: errorCode,
|
|
4139
|
-
$metadata: deserializeMetadata(output),
|
|
4140
|
-
};
|
|
4141
|
-
break;
|
|
2764
|
+
throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context);
|
|
4142
2765
|
case "ResourceNotFoundException":
|
|
4143
2766
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
4144
|
-
|
|
4145
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4146
|
-
name: errorCode,
|
|
4147
|
-
$metadata: deserializeMetadata(output),
|
|
4148
|
-
};
|
|
4149
|
-
break;
|
|
2767
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4150
2768
|
default:
|
|
4151
2769
|
const parsedBody = parsedOutput.body;
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
...parsedBody,
|
|
4155
|
-
name: `${errorCode}`,
|
|
4156
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2770
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2771
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4157
2772
|
$fault: "client",
|
|
4158
2773
|
$metadata: deserializeMetadata(output),
|
|
4159
|
-
};
|
|
2774
|
+
});
|
|
2775
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4160
2776
|
}
|
|
4161
|
-
const message = response.message || response.Message || errorCode;
|
|
4162
|
-
response.message = message;
|
|
4163
|
-
delete response.Message;
|
|
4164
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4165
2777
|
};
|
|
4166
2778
|
const deserializeAws_json1_0UpdateTimeToLiveCommand = async (output, context) => {
|
|
4167
2779
|
if (output.statusCode >= 300) {
|
|
@@ -4188,389 +2800,298 @@ const deserializeAws_json1_0UpdateTimeToLiveCommandError = async (output, contex
|
|
|
4188
2800
|
switch (errorCode) {
|
|
4189
2801
|
case "InternalServerError":
|
|
4190
2802
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
4191
|
-
|
|
4192
|
-
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
4193
|
-
name: errorCode,
|
|
4194
|
-
$metadata: deserializeMetadata(output),
|
|
4195
|
-
};
|
|
4196
|
-
break;
|
|
2803
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
4197
2804
|
case "InvalidEndpointException":
|
|
4198
2805
|
case "com.amazonaws.dynamodb#InvalidEndpointException":
|
|
4199
|
-
|
|
4200
|
-
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
4201
|
-
name: errorCode,
|
|
4202
|
-
$metadata: deserializeMetadata(output),
|
|
4203
|
-
};
|
|
4204
|
-
break;
|
|
2806
|
+
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
4205
2807
|
case "LimitExceededException":
|
|
4206
2808
|
case "com.amazonaws.dynamodb#LimitExceededException":
|
|
4207
|
-
|
|
4208
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
4209
|
-
name: errorCode,
|
|
4210
|
-
$metadata: deserializeMetadata(output),
|
|
4211
|
-
};
|
|
4212
|
-
break;
|
|
2809
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
4213
2810
|
case "ResourceInUseException":
|
|
4214
2811
|
case "com.amazonaws.dynamodb#ResourceInUseException":
|
|
4215
|
-
|
|
4216
|
-
...(await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
4217
|
-
name: errorCode,
|
|
4218
|
-
$metadata: deserializeMetadata(output),
|
|
4219
|
-
};
|
|
4220
|
-
break;
|
|
2812
|
+
throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context);
|
|
4221
2813
|
case "ResourceNotFoundException":
|
|
4222
2814
|
case "com.amazonaws.dynamodb#ResourceNotFoundException":
|
|
4223
|
-
|
|
4224
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4225
|
-
name: errorCode,
|
|
4226
|
-
$metadata: deserializeMetadata(output),
|
|
4227
|
-
};
|
|
4228
|
-
break;
|
|
2815
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4229
2816
|
default:
|
|
4230
2817
|
const parsedBody = parsedOutput.body;
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
...parsedBody,
|
|
4234
|
-
name: `${errorCode}`,
|
|
4235
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2818
|
+
response = new DynamoDBServiceException_1.DynamoDBServiceException({
|
|
2819
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4236
2820
|
$fault: "client",
|
|
4237
2821
|
$metadata: deserializeMetadata(output),
|
|
4238
|
-
};
|
|
2822
|
+
});
|
|
2823
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4239
2824
|
}
|
|
4240
|
-
const message = response.message || response.Message || errorCode;
|
|
4241
|
-
response.message = message;
|
|
4242
|
-
delete response.Message;
|
|
4243
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4244
2825
|
};
|
|
4245
2826
|
const deserializeAws_json1_0BackupInUseExceptionResponse = async (parsedOutput, context) => {
|
|
4246
2827
|
const body = parsedOutput.body;
|
|
4247
2828
|
const deserialized = deserializeAws_json1_0BackupInUseException(body, context);
|
|
4248
|
-
const
|
|
4249
|
-
name: "BackupInUseException",
|
|
4250
|
-
$fault: "client",
|
|
2829
|
+
const exception = new models_0_1.BackupInUseException({
|
|
4251
2830
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4252
2831
|
...deserialized,
|
|
4253
|
-
};
|
|
4254
|
-
return
|
|
2832
|
+
});
|
|
2833
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4255
2834
|
};
|
|
4256
2835
|
const deserializeAws_json1_0BackupNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4257
2836
|
const body = parsedOutput.body;
|
|
4258
2837
|
const deserialized = deserializeAws_json1_0BackupNotFoundException(body, context);
|
|
4259
|
-
const
|
|
4260
|
-
name: "BackupNotFoundException",
|
|
4261
|
-
$fault: "client",
|
|
2838
|
+
const exception = new models_0_1.BackupNotFoundException({
|
|
4262
2839
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4263
2840
|
...deserialized,
|
|
4264
|
-
};
|
|
4265
|
-
return
|
|
2841
|
+
});
|
|
2842
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4266
2843
|
};
|
|
4267
2844
|
const deserializeAws_json1_0ConditionalCheckFailedExceptionResponse = async (parsedOutput, context) => {
|
|
4268
2845
|
const body = parsedOutput.body;
|
|
4269
2846
|
const deserialized = deserializeAws_json1_0ConditionalCheckFailedException(body, context);
|
|
4270
|
-
const
|
|
4271
|
-
name: "ConditionalCheckFailedException",
|
|
4272
|
-
$fault: "client",
|
|
2847
|
+
const exception = new models_0_1.ConditionalCheckFailedException({
|
|
4273
2848
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4274
2849
|
...deserialized,
|
|
4275
|
-
};
|
|
4276
|
-
return
|
|
2850
|
+
});
|
|
2851
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4277
2852
|
};
|
|
4278
2853
|
const deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
4279
2854
|
const body = parsedOutput.body;
|
|
4280
2855
|
const deserialized = deserializeAws_json1_0ContinuousBackupsUnavailableException(body, context);
|
|
4281
|
-
const
|
|
4282
|
-
name: "ContinuousBackupsUnavailableException",
|
|
4283
|
-
$fault: "client",
|
|
2856
|
+
const exception = new models_0_1.ContinuousBackupsUnavailableException({
|
|
4284
2857
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4285
2858
|
...deserialized,
|
|
4286
|
-
};
|
|
4287
|
-
return
|
|
2859
|
+
});
|
|
2860
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4288
2861
|
};
|
|
4289
2862
|
const deserializeAws_json1_0DuplicateItemExceptionResponse = async (parsedOutput, context) => {
|
|
4290
2863
|
const body = parsedOutput.body;
|
|
4291
2864
|
const deserialized = deserializeAws_json1_0DuplicateItemException(body, context);
|
|
4292
|
-
const
|
|
4293
|
-
name: "DuplicateItemException",
|
|
4294
|
-
$fault: "client",
|
|
2865
|
+
const exception = new models_0_1.DuplicateItemException({
|
|
4295
2866
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4296
2867
|
...deserialized,
|
|
4297
|
-
};
|
|
4298
|
-
return
|
|
2868
|
+
});
|
|
2869
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4299
2870
|
};
|
|
4300
2871
|
const deserializeAws_json1_0ExportConflictExceptionResponse = async (parsedOutput, context) => {
|
|
4301
2872
|
const body = parsedOutput.body;
|
|
4302
2873
|
const deserialized = deserializeAws_json1_0ExportConflictException(body, context);
|
|
4303
|
-
const
|
|
4304
|
-
name: "ExportConflictException",
|
|
4305
|
-
$fault: "client",
|
|
2874
|
+
const exception = new models_0_1.ExportConflictException({
|
|
4306
2875
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4307
2876
|
...deserialized,
|
|
4308
|
-
};
|
|
4309
|
-
return
|
|
2877
|
+
});
|
|
2878
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4310
2879
|
};
|
|
4311
2880
|
const deserializeAws_json1_0ExportNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4312
2881
|
const body = parsedOutput.body;
|
|
4313
2882
|
const deserialized = deserializeAws_json1_0ExportNotFoundException(body, context);
|
|
4314
|
-
const
|
|
4315
|
-
name: "ExportNotFoundException",
|
|
4316
|
-
$fault: "client",
|
|
2883
|
+
const exception = new models_0_1.ExportNotFoundException({
|
|
4317
2884
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4318
2885
|
...deserialized,
|
|
4319
|
-
};
|
|
4320
|
-
return
|
|
2886
|
+
});
|
|
2887
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4321
2888
|
};
|
|
4322
2889
|
const deserializeAws_json1_0GlobalTableAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
4323
2890
|
const body = parsedOutput.body;
|
|
4324
2891
|
const deserialized = deserializeAws_json1_0GlobalTableAlreadyExistsException(body, context);
|
|
4325
|
-
const
|
|
4326
|
-
name: "GlobalTableAlreadyExistsException",
|
|
4327
|
-
$fault: "client",
|
|
2892
|
+
const exception = new models_0_1.GlobalTableAlreadyExistsException({
|
|
4328
2893
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4329
2894
|
...deserialized,
|
|
4330
|
-
};
|
|
4331
|
-
return
|
|
2895
|
+
});
|
|
2896
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4332
2897
|
};
|
|
4333
2898
|
const deserializeAws_json1_0GlobalTableNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4334
2899
|
const body = parsedOutput.body;
|
|
4335
2900
|
const deserialized = deserializeAws_json1_0GlobalTableNotFoundException(body, context);
|
|
4336
|
-
const
|
|
4337
|
-
name: "GlobalTableNotFoundException",
|
|
4338
|
-
$fault: "client",
|
|
2901
|
+
const exception = new models_0_1.GlobalTableNotFoundException({
|
|
4339
2902
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4340
2903
|
...deserialized,
|
|
4341
|
-
};
|
|
4342
|
-
return
|
|
2904
|
+
});
|
|
2905
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4343
2906
|
};
|
|
4344
2907
|
const deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse = async (parsedOutput, context) => {
|
|
4345
2908
|
const body = parsedOutput.body;
|
|
4346
2909
|
const deserialized = deserializeAws_json1_0IdempotentParameterMismatchException(body, context);
|
|
4347
|
-
const
|
|
4348
|
-
name: "IdempotentParameterMismatchException",
|
|
4349
|
-
$fault: "client",
|
|
2910
|
+
const exception = new models_0_1.IdempotentParameterMismatchException({
|
|
4350
2911
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4351
2912
|
...deserialized,
|
|
4352
|
-
};
|
|
4353
|
-
return
|
|
2913
|
+
});
|
|
2914
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4354
2915
|
};
|
|
4355
2916
|
const deserializeAws_json1_0IndexNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4356
2917
|
const body = parsedOutput.body;
|
|
4357
2918
|
const deserialized = deserializeAws_json1_0IndexNotFoundException(body, context);
|
|
4358
|
-
const
|
|
4359
|
-
name: "IndexNotFoundException",
|
|
4360
|
-
$fault: "client",
|
|
2919
|
+
const exception = new models_0_1.IndexNotFoundException({
|
|
4361
2920
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4362
2921
|
...deserialized,
|
|
4363
|
-
};
|
|
4364
|
-
return
|
|
2922
|
+
});
|
|
2923
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4365
2924
|
};
|
|
4366
2925
|
const deserializeAws_json1_0InternalServerErrorResponse = async (parsedOutput, context) => {
|
|
4367
2926
|
const body = parsedOutput.body;
|
|
4368
2927
|
const deserialized = deserializeAws_json1_0InternalServerError(body, context);
|
|
4369
|
-
const
|
|
4370
|
-
name: "InternalServerError",
|
|
4371
|
-
$fault: "server",
|
|
2928
|
+
const exception = new models_0_1.InternalServerError({
|
|
4372
2929
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4373
2930
|
...deserialized,
|
|
4374
|
-
};
|
|
4375
|
-
return
|
|
2931
|
+
});
|
|
2932
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4376
2933
|
};
|
|
4377
2934
|
const deserializeAws_json1_0InvalidEndpointExceptionResponse = async (parsedOutput, context) => {
|
|
4378
2935
|
const body = parsedOutput.body;
|
|
4379
2936
|
const deserialized = deserializeAws_json1_0InvalidEndpointException(body, context);
|
|
4380
|
-
const
|
|
4381
|
-
name: "InvalidEndpointException",
|
|
4382
|
-
$fault: "client",
|
|
2937
|
+
const exception = new models_0_1.InvalidEndpointException({
|
|
4383
2938
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4384
2939
|
...deserialized,
|
|
4385
|
-
};
|
|
4386
|
-
return
|
|
2940
|
+
});
|
|
2941
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4387
2942
|
};
|
|
4388
2943
|
const deserializeAws_json1_0InvalidExportTimeExceptionResponse = async (parsedOutput, context) => {
|
|
4389
2944
|
const body = parsedOutput.body;
|
|
4390
2945
|
const deserialized = deserializeAws_json1_0InvalidExportTimeException(body, context);
|
|
4391
|
-
const
|
|
4392
|
-
name: "InvalidExportTimeException",
|
|
4393
|
-
$fault: "client",
|
|
2946
|
+
const exception = new models_0_1.InvalidExportTimeException({
|
|
4394
2947
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4395
2948
|
...deserialized,
|
|
4396
|
-
};
|
|
4397
|
-
return
|
|
2949
|
+
});
|
|
2950
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4398
2951
|
};
|
|
4399
2952
|
const deserializeAws_json1_0InvalidRestoreTimeExceptionResponse = async (parsedOutput, context) => {
|
|
4400
2953
|
const body = parsedOutput.body;
|
|
4401
2954
|
const deserialized = deserializeAws_json1_0InvalidRestoreTimeException(body, context);
|
|
4402
|
-
const
|
|
4403
|
-
name: "InvalidRestoreTimeException",
|
|
4404
|
-
$fault: "client",
|
|
2955
|
+
const exception = new models_0_1.InvalidRestoreTimeException({
|
|
4405
2956
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4406
2957
|
...deserialized,
|
|
4407
|
-
};
|
|
4408
|
-
return
|
|
2958
|
+
});
|
|
2959
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4409
2960
|
};
|
|
4410
2961
|
const deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4411
2962
|
const body = parsedOutput.body;
|
|
4412
2963
|
const deserialized = deserializeAws_json1_0ItemCollectionSizeLimitExceededException(body, context);
|
|
4413
|
-
const
|
|
4414
|
-
name: "ItemCollectionSizeLimitExceededException",
|
|
4415
|
-
$fault: "client",
|
|
2964
|
+
const exception = new models_0_1.ItemCollectionSizeLimitExceededException({
|
|
4416
2965
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4417
2966
|
...deserialized,
|
|
4418
|
-
};
|
|
4419
|
-
return
|
|
2967
|
+
});
|
|
2968
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4420
2969
|
};
|
|
4421
2970
|
const deserializeAws_json1_0LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4422
2971
|
const body = parsedOutput.body;
|
|
4423
2972
|
const deserialized = deserializeAws_json1_0LimitExceededException(body, context);
|
|
4424
|
-
const
|
|
4425
|
-
name: "LimitExceededException",
|
|
4426
|
-
$fault: "client",
|
|
2973
|
+
const exception = new models_0_1.LimitExceededException({
|
|
4427
2974
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4428
2975
|
...deserialized,
|
|
4429
|
-
};
|
|
4430
|
-
return
|
|
2976
|
+
});
|
|
2977
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4431
2978
|
};
|
|
4432
2979
|
const deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
4433
2980
|
const body = parsedOutput.body;
|
|
4434
2981
|
const deserialized = deserializeAws_json1_0PointInTimeRecoveryUnavailableException(body, context);
|
|
4435
|
-
const
|
|
4436
|
-
name: "PointInTimeRecoveryUnavailableException",
|
|
4437
|
-
$fault: "client",
|
|
2982
|
+
const exception = new models_0_1.PointInTimeRecoveryUnavailableException({
|
|
4438
2983
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4439
2984
|
...deserialized,
|
|
4440
|
-
};
|
|
4441
|
-
return
|
|
2985
|
+
});
|
|
2986
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4442
2987
|
};
|
|
4443
2988
|
const deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4444
2989
|
const body = parsedOutput.body;
|
|
4445
2990
|
const deserialized = deserializeAws_json1_0ProvisionedThroughputExceededException(body, context);
|
|
4446
|
-
const
|
|
4447
|
-
name: "ProvisionedThroughputExceededException",
|
|
4448
|
-
$fault: "client",
|
|
2991
|
+
const exception = new models_0_1.ProvisionedThroughputExceededException({
|
|
4449
2992
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4450
2993
|
...deserialized,
|
|
4451
|
-
};
|
|
4452
|
-
return
|
|
2994
|
+
});
|
|
2995
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4453
2996
|
};
|
|
4454
2997
|
const deserializeAws_json1_0ReplicaAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
4455
2998
|
const body = parsedOutput.body;
|
|
4456
2999
|
const deserialized = deserializeAws_json1_0ReplicaAlreadyExistsException(body, context);
|
|
4457
|
-
const
|
|
4458
|
-
name: "ReplicaAlreadyExistsException",
|
|
4459
|
-
$fault: "client",
|
|
3000
|
+
const exception = new models_0_1.ReplicaAlreadyExistsException({
|
|
4460
3001
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4461
3002
|
...deserialized,
|
|
4462
|
-
};
|
|
4463
|
-
return
|
|
3003
|
+
});
|
|
3004
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4464
3005
|
};
|
|
4465
3006
|
const deserializeAws_json1_0ReplicaNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4466
3007
|
const body = parsedOutput.body;
|
|
4467
3008
|
const deserialized = deserializeAws_json1_0ReplicaNotFoundException(body, context);
|
|
4468
|
-
const
|
|
4469
|
-
name: "ReplicaNotFoundException",
|
|
4470
|
-
$fault: "client",
|
|
3009
|
+
const exception = new models_0_1.ReplicaNotFoundException({
|
|
4471
3010
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4472
3011
|
...deserialized,
|
|
4473
|
-
};
|
|
4474
|
-
return
|
|
3012
|
+
});
|
|
3013
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4475
3014
|
};
|
|
4476
3015
|
const deserializeAws_json1_0RequestLimitExceededResponse = async (parsedOutput, context) => {
|
|
4477
3016
|
const body = parsedOutput.body;
|
|
4478
3017
|
const deserialized = deserializeAws_json1_0RequestLimitExceeded(body, context);
|
|
4479
|
-
const
|
|
4480
|
-
name: "RequestLimitExceeded",
|
|
4481
|
-
$fault: "client",
|
|
3018
|
+
const exception = new models_0_1.RequestLimitExceeded({
|
|
4482
3019
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4483
3020
|
...deserialized,
|
|
4484
|
-
};
|
|
4485
|
-
return
|
|
3021
|
+
});
|
|
3022
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4486
3023
|
};
|
|
4487
3024
|
const deserializeAws_json1_0ResourceInUseExceptionResponse = async (parsedOutput, context) => {
|
|
4488
3025
|
const body = parsedOutput.body;
|
|
4489
3026
|
const deserialized = deserializeAws_json1_0ResourceInUseException(body, context);
|
|
4490
|
-
const
|
|
4491
|
-
name: "ResourceInUseException",
|
|
4492
|
-
$fault: "client",
|
|
3027
|
+
const exception = new models_0_1.ResourceInUseException({
|
|
4493
3028
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4494
3029
|
...deserialized,
|
|
4495
|
-
};
|
|
4496
|
-
return
|
|
3030
|
+
});
|
|
3031
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4497
3032
|
};
|
|
4498
3033
|
const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4499
3034
|
const body = parsedOutput.body;
|
|
4500
3035
|
const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
|
|
4501
|
-
const
|
|
4502
|
-
name: "ResourceNotFoundException",
|
|
4503
|
-
$fault: "client",
|
|
3036
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
4504
3037
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4505
3038
|
...deserialized,
|
|
4506
|
-
};
|
|
4507
|
-
return
|
|
3039
|
+
});
|
|
3040
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4508
3041
|
};
|
|
4509
3042
|
const deserializeAws_json1_0TableAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
4510
3043
|
const body = parsedOutput.body;
|
|
4511
3044
|
const deserialized = deserializeAws_json1_0TableAlreadyExistsException(body, context);
|
|
4512
|
-
const
|
|
4513
|
-
name: "TableAlreadyExistsException",
|
|
4514
|
-
$fault: "client",
|
|
3045
|
+
const exception = new models_0_1.TableAlreadyExistsException({
|
|
4515
3046
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4516
3047
|
...deserialized,
|
|
4517
|
-
};
|
|
4518
|
-
return
|
|
3048
|
+
});
|
|
3049
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4519
3050
|
};
|
|
4520
3051
|
const deserializeAws_json1_0TableInUseExceptionResponse = async (parsedOutput, context) => {
|
|
4521
3052
|
const body = parsedOutput.body;
|
|
4522
3053
|
const deserialized = deserializeAws_json1_0TableInUseException(body, context);
|
|
4523
|
-
const
|
|
4524
|
-
name: "TableInUseException",
|
|
4525
|
-
$fault: "client",
|
|
3054
|
+
const exception = new models_0_1.TableInUseException({
|
|
4526
3055
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4527
3056
|
...deserialized,
|
|
4528
|
-
};
|
|
4529
|
-
return
|
|
3057
|
+
});
|
|
3058
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4530
3059
|
};
|
|
4531
3060
|
const deserializeAws_json1_0TableNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4532
3061
|
const body = parsedOutput.body;
|
|
4533
3062
|
const deserialized = deserializeAws_json1_0TableNotFoundException(body, context);
|
|
4534
|
-
const
|
|
4535
|
-
name: "TableNotFoundException",
|
|
4536
|
-
$fault: "client",
|
|
3063
|
+
const exception = new models_0_1.TableNotFoundException({
|
|
4537
3064
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4538
3065
|
...deserialized,
|
|
4539
|
-
};
|
|
4540
|
-
return
|
|
3066
|
+
});
|
|
3067
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4541
3068
|
};
|
|
4542
3069
|
const deserializeAws_json1_0TransactionCanceledExceptionResponse = async (parsedOutput, context) => {
|
|
4543
3070
|
const body = parsedOutput.body;
|
|
4544
3071
|
const deserialized = deserializeAws_json1_0TransactionCanceledException(body, context);
|
|
4545
|
-
const
|
|
4546
|
-
name: "TransactionCanceledException",
|
|
4547
|
-
$fault: "client",
|
|
3072
|
+
const exception = new models_0_1.TransactionCanceledException({
|
|
4548
3073
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4549
3074
|
...deserialized,
|
|
4550
|
-
};
|
|
4551
|
-
return
|
|
3075
|
+
});
|
|
3076
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4552
3077
|
};
|
|
4553
3078
|
const deserializeAws_json1_0TransactionConflictExceptionResponse = async (parsedOutput, context) => {
|
|
4554
3079
|
const body = parsedOutput.body;
|
|
4555
3080
|
const deserialized = deserializeAws_json1_0TransactionConflictException(body, context);
|
|
4556
|
-
const
|
|
4557
|
-
name: "TransactionConflictException",
|
|
4558
|
-
$fault: "client",
|
|
3081
|
+
const exception = new models_0_1.TransactionConflictException({
|
|
4559
3082
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4560
3083
|
...deserialized,
|
|
4561
|
-
};
|
|
4562
|
-
return
|
|
3084
|
+
});
|
|
3085
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4563
3086
|
};
|
|
4564
3087
|
const deserializeAws_json1_0TransactionInProgressExceptionResponse = async (parsedOutput, context) => {
|
|
4565
3088
|
const body = parsedOutput.body;
|
|
4566
3089
|
const deserialized = deserializeAws_json1_0TransactionInProgressException(body, context);
|
|
4567
|
-
const
|
|
4568
|
-
name: "TransactionInProgressException",
|
|
4569
|
-
$fault: "client",
|
|
3090
|
+
const exception = new models_0_1.TransactionInProgressException({
|
|
4570
3091
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4571
3092
|
...deserialized,
|
|
4572
|
-
};
|
|
4573
|
-
return
|
|
3093
|
+
});
|
|
3094
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4574
3095
|
};
|
|
4575
3096
|
const serializeAws_json1_0AttributeDefinition = (input, context) => {
|
|
4576
3097
|
return {
|
|
@@ -5002,6 +3523,7 @@ const serializeAws_json1_0ExecuteStatementInput = (input, context) => {
|
|
|
5002
3523
|
return {
|
|
5003
3524
|
...(input.ConsistentRead !== undefined &&
|
|
5004
3525
|
input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead }),
|
|
3526
|
+
...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
|
|
5005
3527
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
5006
3528
|
...(input.Parameters !== undefined &&
|
|
5007
3529
|
input.Parameters !== null && {
|
|
@@ -6200,7 +4722,7 @@ const deserializeAws_json1_0AttributeDefinition = (output, context) => {
|
|
|
6200
4722
|
};
|
|
6201
4723
|
};
|
|
6202
4724
|
const deserializeAws_json1_0AttributeDefinitions = (output, context) => {
|
|
6203
|
-
|
|
4725
|
+
const retVal = (output || [])
|
|
6204
4726
|
.filter((e) => e != null)
|
|
6205
4727
|
.map((entry) => {
|
|
6206
4728
|
if (entry === null) {
|
|
@@ -6208,6 +4730,7 @@ const deserializeAws_json1_0AttributeDefinitions = (output, context) => {
|
|
|
6208
4730
|
}
|
|
6209
4731
|
return deserializeAws_json1_0AttributeDefinition(entry, context);
|
|
6210
4732
|
});
|
|
4733
|
+
return retVal;
|
|
6211
4734
|
};
|
|
6212
4735
|
const deserializeAws_json1_0AttributeMap = (output, context) => {
|
|
6213
4736
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -6221,7 +4744,7 @@ const deserializeAws_json1_0AttributeMap = (output, context) => {
|
|
|
6221
4744
|
}, {});
|
|
6222
4745
|
};
|
|
6223
4746
|
const deserializeAws_json1_0AttributeNameList = (output, context) => {
|
|
6224
|
-
|
|
4747
|
+
const retVal = (output || [])
|
|
6225
4748
|
.filter((e) => e != null)
|
|
6226
4749
|
.map((entry) => {
|
|
6227
4750
|
if (entry === null) {
|
|
@@ -6229,6 +4752,7 @@ const deserializeAws_json1_0AttributeNameList = (output, context) => {
|
|
|
6229
4752
|
}
|
|
6230
4753
|
return smithy_client_1.expectString(entry);
|
|
6231
4754
|
});
|
|
4755
|
+
return retVal;
|
|
6232
4756
|
};
|
|
6233
4757
|
const deserializeAws_json1_0AttributeValue = (output, context) => {
|
|
6234
4758
|
if (output.B !== undefined && output.B !== null) {
|
|
@@ -6285,7 +4809,7 @@ const deserializeAws_json1_0AutoScalingPolicyDescription = (output, context) =>
|
|
|
6285
4809
|
};
|
|
6286
4810
|
};
|
|
6287
4811
|
const deserializeAws_json1_0AutoScalingPolicyDescriptionList = (output, context) => {
|
|
6288
|
-
|
|
4812
|
+
const retVal = (output || [])
|
|
6289
4813
|
.filter((e) => e != null)
|
|
6290
4814
|
.map((entry) => {
|
|
6291
4815
|
if (entry === null) {
|
|
@@ -6293,6 +4817,7 @@ const deserializeAws_json1_0AutoScalingPolicyDescriptionList = (output, context)
|
|
|
6293
4817
|
}
|
|
6294
4818
|
return deserializeAws_json1_0AutoScalingPolicyDescription(entry, context);
|
|
6295
4819
|
});
|
|
4820
|
+
return retVal;
|
|
6296
4821
|
};
|
|
6297
4822
|
const deserializeAws_json1_0AutoScalingSettingsDescription = (output, context) => {
|
|
6298
4823
|
return {
|
|
@@ -6352,7 +4877,7 @@ const deserializeAws_json1_0BackupNotFoundException = (output, context) => {
|
|
|
6352
4877
|
};
|
|
6353
4878
|
};
|
|
6354
4879
|
const deserializeAws_json1_0BackupSummaries = (output, context) => {
|
|
6355
|
-
|
|
4880
|
+
const retVal = (output || [])
|
|
6356
4881
|
.filter((e) => e != null)
|
|
6357
4882
|
.map((entry) => {
|
|
6358
4883
|
if (entry === null) {
|
|
@@ -6360,6 +4885,7 @@ const deserializeAws_json1_0BackupSummaries = (output, context) => {
|
|
|
6360
4885
|
}
|
|
6361
4886
|
return deserializeAws_json1_0BackupSummary(entry, context);
|
|
6362
4887
|
});
|
|
4888
|
+
return retVal;
|
|
6363
4889
|
};
|
|
6364
4890
|
const deserializeAws_json1_0BackupSummary = (output, context) => {
|
|
6365
4891
|
return {
|
|
@@ -6474,7 +5000,7 @@ const deserializeAws_json1_0BillingModeSummary = (output, context) => {
|
|
|
6474
5000
|
};
|
|
6475
5001
|
};
|
|
6476
5002
|
const deserializeAws_json1_0BinarySetAttributeValue = (output, context) => {
|
|
6477
|
-
|
|
5003
|
+
const retVal = (output || [])
|
|
6478
5004
|
.filter((e) => e != null)
|
|
6479
5005
|
.map((entry) => {
|
|
6480
5006
|
if (entry === null) {
|
|
@@ -6482,6 +5008,7 @@ const deserializeAws_json1_0BinarySetAttributeValue = (output, context) => {
|
|
|
6482
5008
|
}
|
|
6483
5009
|
return context.base64Decoder(entry);
|
|
6484
5010
|
});
|
|
5011
|
+
return retVal;
|
|
6485
5012
|
};
|
|
6486
5013
|
const deserializeAws_json1_0CancellationReason = (output, context) => {
|
|
6487
5014
|
return {
|
|
@@ -6493,7 +5020,7 @@ const deserializeAws_json1_0CancellationReason = (output, context) => {
|
|
|
6493
5020
|
};
|
|
6494
5021
|
};
|
|
6495
5022
|
const deserializeAws_json1_0CancellationReasonList = (output, context) => {
|
|
6496
|
-
|
|
5023
|
+
const retVal = (output || [])
|
|
6497
5024
|
.filter((e) => e != null)
|
|
6498
5025
|
.map((entry) => {
|
|
6499
5026
|
if (entry === null) {
|
|
@@ -6501,6 +5028,7 @@ const deserializeAws_json1_0CancellationReasonList = (output, context) => {
|
|
|
6501
5028
|
}
|
|
6502
5029
|
return deserializeAws_json1_0CancellationReason(entry, context);
|
|
6503
5030
|
});
|
|
5031
|
+
return retVal;
|
|
6504
5032
|
};
|
|
6505
5033
|
const deserializeAws_json1_0Capacity = (output, context) => {
|
|
6506
5034
|
return {
|
|
@@ -6532,7 +5060,7 @@ const deserializeAws_json1_0ConsumedCapacity = (output, context) => {
|
|
|
6532
5060
|
};
|
|
6533
5061
|
};
|
|
6534
5062
|
const deserializeAws_json1_0ConsumedCapacityMultiple = (output, context) => {
|
|
6535
|
-
|
|
5063
|
+
const retVal = (output || [])
|
|
6536
5064
|
.filter((e) => e != null)
|
|
6537
5065
|
.map((entry) => {
|
|
6538
5066
|
if (entry === null) {
|
|
@@ -6540,6 +5068,7 @@ const deserializeAws_json1_0ConsumedCapacityMultiple = (output, context) => {
|
|
|
6540
5068
|
}
|
|
6541
5069
|
return deserializeAws_json1_0ConsumedCapacity(entry, context);
|
|
6542
5070
|
});
|
|
5071
|
+
return retVal;
|
|
6543
5072
|
};
|
|
6544
5073
|
const deserializeAws_json1_0ContinuousBackupsDescription = (output, context) => {
|
|
6545
5074
|
return {
|
|
@@ -6555,7 +5084,7 @@ const deserializeAws_json1_0ContinuousBackupsUnavailableException = (output, con
|
|
|
6555
5084
|
};
|
|
6556
5085
|
};
|
|
6557
5086
|
const deserializeAws_json1_0ContributorInsightsRuleList = (output, context) => {
|
|
6558
|
-
|
|
5087
|
+
const retVal = (output || [])
|
|
6559
5088
|
.filter((e) => e != null)
|
|
6560
5089
|
.map((entry) => {
|
|
6561
5090
|
if (entry === null) {
|
|
@@ -6563,9 +5092,10 @@ const deserializeAws_json1_0ContributorInsightsRuleList = (output, context) => {
|
|
|
6563
5092
|
}
|
|
6564
5093
|
return smithy_client_1.expectString(entry);
|
|
6565
5094
|
});
|
|
5095
|
+
return retVal;
|
|
6566
5096
|
};
|
|
6567
5097
|
const deserializeAws_json1_0ContributorInsightsSummaries = (output, context) => {
|
|
6568
|
-
|
|
5098
|
+
const retVal = (output || [])
|
|
6569
5099
|
.filter((e) => e != null)
|
|
6570
5100
|
.map((entry) => {
|
|
6571
5101
|
if (entry === null) {
|
|
@@ -6573,6 +5103,7 @@ const deserializeAws_json1_0ContributorInsightsSummaries = (output, context) =>
|
|
|
6573
5103
|
}
|
|
6574
5104
|
return deserializeAws_json1_0ContributorInsightsSummary(entry, context);
|
|
6575
5105
|
});
|
|
5106
|
+
return retVal;
|
|
6576
5107
|
};
|
|
6577
5108
|
const deserializeAws_json1_0ContributorInsightsSummary = (output, context) => {
|
|
6578
5109
|
return {
|
|
@@ -6742,7 +5273,7 @@ const deserializeAws_json1_0Endpoint = (output, context) => {
|
|
|
6742
5273
|
};
|
|
6743
5274
|
};
|
|
6744
5275
|
const deserializeAws_json1_0Endpoints = (output, context) => {
|
|
6745
|
-
|
|
5276
|
+
const retVal = (output || [])
|
|
6746
5277
|
.filter((e) => e != null)
|
|
6747
5278
|
.map((entry) => {
|
|
6748
5279
|
if (entry === null) {
|
|
@@ -6750,6 +5281,7 @@ const deserializeAws_json1_0Endpoints = (output, context) => {
|
|
|
6750
5281
|
}
|
|
6751
5282
|
return deserializeAws_json1_0Endpoint(entry, context);
|
|
6752
5283
|
});
|
|
5284
|
+
return retVal;
|
|
6753
5285
|
};
|
|
6754
5286
|
const deserializeAws_json1_0ExecuteStatementOutput = (output, context) => {
|
|
6755
5287
|
return {
|
|
@@ -6759,6 +5291,9 @@ const deserializeAws_json1_0ExecuteStatementOutput = (output, context) => {
|
|
|
6759
5291
|
Items: output.Items !== undefined && output.Items !== null
|
|
6760
5292
|
? deserializeAws_json1_0ItemList(output.Items, context)
|
|
6761
5293
|
: undefined,
|
|
5294
|
+
LastEvaluatedKey: output.LastEvaluatedKey !== undefined && output.LastEvaluatedKey !== null
|
|
5295
|
+
? deserializeAws_json1_0Key(output.LastEvaluatedKey, context)
|
|
5296
|
+
: undefined,
|
|
6762
5297
|
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
6763
5298
|
};
|
|
6764
5299
|
};
|
|
@@ -6812,7 +5347,7 @@ const deserializeAws_json1_0ExportNotFoundException = (output, context) => {
|
|
|
6812
5347
|
};
|
|
6813
5348
|
};
|
|
6814
5349
|
const deserializeAws_json1_0ExportSummaries = (output, context) => {
|
|
6815
|
-
|
|
5350
|
+
const retVal = (output || [])
|
|
6816
5351
|
.filter((e) => e != null)
|
|
6817
5352
|
.map((entry) => {
|
|
6818
5353
|
if (entry === null) {
|
|
@@ -6820,6 +5355,7 @@ const deserializeAws_json1_0ExportSummaries = (output, context) => {
|
|
|
6820
5355
|
}
|
|
6821
5356
|
return deserializeAws_json1_0ExportSummary(entry, context);
|
|
6822
5357
|
});
|
|
5358
|
+
return retVal;
|
|
6823
5359
|
};
|
|
6824
5360
|
const deserializeAws_json1_0ExportSummary = (output, context) => {
|
|
6825
5361
|
return {
|
|
@@ -6881,7 +5417,7 @@ const deserializeAws_json1_0GlobalSecondaryIndexDescription = (output, context)
|
|
|
6881
5417
|
};
|
|
6882
5418
|
};
|
|
6883
5419
|
const deserializeAws_json1_0GlobalSecondaryIndexDescriptionList = (output, context) => {
|
|
6884
|
-
|
|
5420
|
+
const retVal = (output || [])
|
|
6885
5421
|
.filter((e) => e != null)
|
|
6886
5422
|
.map((entry) => {
|
|
6887
5423
|
if (entry === null) {
|
|
@@ -6889,9 +5425,10 @@ const deserializeAws_json1_0GlobalSecondaryIndexDescriptionList = (output, conte
|
|
|
6889
5425
|
}
|
|
6890
5426
|
return deserializeAws_json1_0GlobalSecondaryIndexDescription(entry, context);
|
|
6891
5427
|
});
|
|
5428
|
+
return retVal;
|
|
6892
5429
|
};
|
|
6893
5430
|
const deserializeAws_json1_0GlobalSecondaryIndexes = (output, context) => {
|
|
6894
|
-
|
|
5431
|
+
const retVal = (output || [])
|
|
6895
5432
|
.filter((e) => e != null)
|
|
6896
5433
|
.map((entry) => {
|
|
6897
5434
|
if (entry === null) {
|
|
@@ -6899,6 +5436,7 @@ const deserializeAws_json1_0GlobalSecondaryIndexes = (output, context) => {
|
|
|
6899
5436
|
}
|
|
6900
5437
|
return deserializeAws_json1_0GlobalSecondaryIndexInfo(entry, context);
|
|
6901
5438
|
});
|
|
5439
|
+
return retVal;
|
|
6902
5440
|
};
|
|
6903
5441
|
const deserializeAws_json1_0GlobalSecondaryIndexInfo = (output, context) => {
|
|
6904
5442
|
return {
|
|
@@ -6941,7 +5479,7 @@ const deserializeAws_json1_0GlobalTableDescription = (output, context) => {
|
|
|
6941
5479
|
};
|
|
6942
5480
|
};
|
|
6943
5481
|
const deserializeAws_json1_0GlobalTableList = (output, context) => {
|
|
6944
|
-
|
|
5482
|
+
const retVal = (output || [])
|
|
6945
5483
|
.filter((e) => e != null)
|
|
6946
5484
|
.map((entry) => {
|
|
6947
5485
|
if (entry === null) {
|
|
@@ -6949,6 +5487,7 @@ const deserializeAws_json1_0GlobalTableList = (output, context) => {
|
|
|
6949
5487
|
}
|
|
6950
5488
|
return deserializeAws_json1_0GlobalTable(entry, context);
|
|
6951
5489
|
});
|
|
5490
|
+
return retVal;
|
|
6952
5491
|
};
|
|
6953
5492
|
const deserializeAws_json1_0GlobalTableNotFoundException = (output, context) => {
|
|
6954
5493
|
return {
|
|
@@ -7007,7 +5546,7 @@ const deserializeAws_json1_0ItemCollectionMetrics = (output, context) => {
|
|
|
7007
5546
|
};
|
|
7008
5547
|
};
|
|
7009
5548
|
const deserializeAws_json1_0ItemCollectionMetricsMultiple = (output, context) => {
|
|
7010
|
-
|
|
5549
|
+
const retVal = (output || [])
|
|
7011
5550
|
.filter((e) => e != null)
|
|
7012
5551
|
.map((entry) => {
|
|
7013
5552
|
if (entry === null) {
|
|
@@ -7015,6 +5554,7 @@ const deserializeAws_json1_0ItemCollectionMetricsMultiple = (output, context) =>
|
|
|
7015
5554
|
}
|
|
7016
5555
|
return deserializeAws_json1_0ItemCollectionMetrics(entry, context);
|
|
7017
5556
|
});
|
|
5557
|
+
return retVal;
|
|
7018
5558
|
};
|
|
7019
5559
|
const deserializeAws_json1_0ItemCollectionMetricsPerTable = (output, context) => {
|
|
7020
5560
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -7028,7 +5568,7 @@ const deserializeAws_json1_0ItemCollectionMetricsPerTable = (output, context) =>
|
|
|
7028
5568
|
}, {});
|
|
7029
5569
|
};
|
|
7030
5570
|
const deserializeAws_json1_0ItemCollectionSizeEstimateRange = (output, context) => {
|
|
7031
|
-
|
|
5571
|
+
const retVal = (output || [])
|
|
7032
5572
|
.filter((e) => e != null)
|
|
7033
5573
|
.map((entry) => {
|
|
7034
5574
|
if (entry === null) {
|
|
@@ -7036,6 +5576,7 @@ const deserializeAws_json1_0ItemCollectionSizeEstimateRange = (output, context)
|
|
|
7036
5576
|
}
|
|
7037
5577
|
return smithy_client_1.limitedParseDouble(entry);
|
|
7038
5578
|
});
|
|
5579
|
+
return retVal;
|
|
7039
5580
|
};
|
|
7040
5581
|
const deserializeAws_json1_0ItemCollectionSizeLimitExceededException = (output, context) => {
|
|
7041
5582
|
return {
|
|
@@ -7043,7 +5584,7 @@ const deserializeAws_json1_0ItemCollectionSizeLimitExceededException = (output,
|
|
|
7043
5584
|
};
|
|
7044
5585
|
};
|
|
7045
5586
|
const deserializeAws_json1_0ItemList = (output, context) => {
|
|
7046
|
-
|
|
5587
|
+
const retVal = (output || [])
|
|
7047
5588
|
.filter((e) => e != null)
|
|
7048
5589
|
.map((entry) => {
|
|
7049
5590
|
if (entry === null) {
|
|
@@ -7051,6 +5592,7 @@ const deserializeAws_json1_0ItemList = (output, context) => {
|
|
|
7051
5592
|
}
|
|
7052
5593
|
return deserializeAws_json1_0AttributeMap(entry, context);
|
|
7053
5594
|
});
|
|
5595
|
+
return retVal;
|
|
7054
5596
|
};
|
|
7055
5597
|
const deserializeAws_json1_0ItemResponse = (output, context) => {
|
|
7056
5598
|
return {
|
|
@@ -7060,7 +5602,7 @@ const deserializeAws_json1_0ItemResponse = (output, context) => {
|
|
|
7060
5602
|
};
|
|
7061
5603
|
};
|
|
7062
5604
|
const deserializeAws_json1_0ItemResponseList = (output, context) => {
|
|
7063
|
-
|
|
5605
|
+
const retVal = (output || [])
|
|
7064
5606
|
.filter((e) => e != null)
|
|
7065
5607
|
.map((entry) => {
|
|
7066
5608
|
if (entry === null) {
|
|
@@ -7068,6 +5610,7 @@ const deserializeAws_json1_0ItemResponseList = (output, context) => {
|
|
|
7068
5610
|
}
|
|
7069
5611
|
return deserializeAws_json1_0ItemResponse(entry, context);
|
|
7070
5612
|
});
|
|
5613
|
+
return retVal;
|
|
7071
5614
|
};
|
|
7072
5615
|
const deserializeAws_json1_0Key = (output, context) => {
|
|
7073
5616
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -7081,7 +5624,7 @@ const deserializeAws_json1_0Key = (output, context) => {
|
|
|
7081
5624
|
}, {});
|
|
7082
5625
|
};
|
|
7083
5626
|
const deserializeAws_json1_0KeyList = (output, context) => {
|
|
7084
|
-
|
|
5627
|
+
const retVal = (output || [])
|
|
7085
5628
|
.filter((e) => e != null)
|
|
7086
5629
|
.map((entry) => {
|
|
7087
5630
|
if (entry === null) {
|
|
@@ -7089,6 +5632,7 @@ const deserializeAws_json1_0KeyList = (output, context) => {
|
|
|
7089
5632
|
}
|
|
7090
5633
|
return deserializeAws_json1_0Key(entry, context);
|
|
7091
5634
|
});
|
|
5635
|
+
return retVal;
|
|
7092
5636
|
};
|
|
7093
5637
|
const deserializeAws_json1_0KeysAndAttributes = (output, context) => {
|
|
7094
5638
|
return {
|
|
@@ -7106,7 +5650,7 @@ const deserializeAws_json1_0KeysAndAttributes = (output, context) => {
|
|
|
7106
5650
|
};
|
|
7107
5651
|
};
|
|
7108
5652
|
const deserializeAws_json1_0KeySchema = (output, context) => {
|
|
7109
|
-
|
|
5653
|
+
const retVal = (output || [])
|
|
7110
5654
|
.filter((e) => e != null)
|
|
7111
5655
|
.map((entry) => {
|
|
7112
5656
|
if (entry === null) {
|
|
@@ -7114,6 +5658,7 @@ const deserializeAws_json1_0KeySchema = (output, context) => {
|
|
|
7114
5658
|
}
|
|
7115
5659
|
return deserializeAws_json1_0KeySchemaElement(entry, context);
|
|
7116
5660
|
});
|
|
5661
|
+
return retVal;
|
|
7117
5662
|
};
|
|
7118
5663
|
const deserializeAws_json1_0KeySchemaElement = (output, context) => {
|
|
7119
5664
|
return {
|
|
@@ -7129,7 +5674,7 @@ const deserializeAws_json1_0KinesisDataStreamDestination = (output, context) =>
|
|
|
7129
5674
|
};
|
|
7130
5675
|
};
|
|
7131
5676
|
const deserializeAws_json1_0KinesisDataStreamDestinations = (output, context) => {
|
|
7132
|
-
|
|
5677
|
+
const retVal = (output || [])
|
|
7133
5678
|
.filter((e) => e != null)
|
|
7134
5679
|
.map((entry) => {
|
|
7135
5680
|
if (entry === null) {
|
|
@@ -7137,6 +5682,7 @@ const deserializeAws_json1_0KinesisDataStreamDestinations = (output, context) =>
|
|
|
7137
5682
|
}
|
|
7138
5683
|
return deserializeAws_json1_0KinesisDataStreamDestination(entry, context);
|
|
7139
5684
|
});
|
|
5685
|
+
return retVal;
|
|
7140
5686
|
};
|
|
7141
5687
|
const deserializeAws_json1_0KinesisStreamingDestinationOutput = (output, context) => {
|
|
7142
5688
|
return {
|
|
@@ -7151,7 +5697,7 @@ const deserializeAws_json1_0LimitExceededException = (output, context) => {
|
|
|
7151
5697
|
};
|
|
7152
5698
|
};
|
|
7153
5699
|
const deserializeAws_json1_0ListAttributeValue = (output, context) => {
|
|
7154
|
-
|
|
5700
|
+
const retVal = (output || [])
|
|
7155
5701
|
.filter((e) => e != null)
|
|
7156
5702
|
.map((entry) => {
|
|
7157
5703
|
if (entry === null) {
|
|
@@ -7159,6 +5705,7 @@ const deserializeAws_json1_0ListAttributeValue = (output, context) => {
|
|
|
7159
5705
|
}
|
|
7160
5706
|
return deserializeAws_json1_0AttributeValue(smithy_client_1.expectUnion(entry), context);
|
|
7161
5707
|
});
|
|
5708
|
+
return retVal;
|
|
7162
5709
|
};
|
|
7163
5710
|
const deserializeAws_json1_0ListBackupsOutput = (output, context) => {
|
|
7164
5711
|
return {
|
|
@@ -7223,7 +5770,7 @@ const deserializeAws_json1_0LocalSecondaryIndexDescription = (output, context) =
|
|
|
7223
5770
|
};
|
|
7224
5771
|
};
|
|
7225
5772
|
const deserializeAws_json1_0LocalSecondaryIndexDescriptionList = (output, context) => {
|
|
7226
|
-
|
|
5773
|
+
const retVal = (output || [])
|
|
7227
5774
|
.filter((e) => e != null)
|
|
7228
5775
|
.map((entry) => {
|
|
7229
5776
|
if (entry === null) {
|
|
@@ -7231,9 +5778,10 @@ const deserializeAws_json1_0LocalSecondaryIndexDescriptionList = (output, contex
|
|
|
7231
5778
|
}
|
|
7232
5779
|
return deserializeAws_json1_0LocalSecondaryIndexDescription(entry, context);
|
|
7233
5780
|
});
|
|
5781
|
+
return retVal;
|
|
7234
5782
|
};
|
|
7235
5783
|
const deserializeAws_json1_0LocalSecondaryIndexes = (output, context) => {
|
|
7236
|
-
|
|
5784
|
+
const retVal = (output || [])
|
|
7237
5785
|
.filter((e) => e != null)
|
|
7238
5786
|
.map((entry) => {
|
|
7239
5787
|
if (entry === null) {
|
|
@@ -7241,6 +5789,7 @@ const deserializeAws_json1_0LocalSecondaryIndexes = (output, context) => {
|
|
|
7241
5789
|
}
|
|
7242
5790
|
return deserializeAws_json1_0LocalSecondaryIndexInfo(entry, context);
|
|
7243
5791
|
});
|
|
5792
|
+
return retVal;
|
|
7244
5793
|
};
|
|
7245
5794
|
const deserializeAws_json1_0LocalSecondaryIndexInfo = (output, context) => {
|
|
7246
5795
|
return {
|
|
@@ -7265,7 +5814,7 @@ const deserializeAws_json1_0MapAttributeValue = (output, context) => {
|
|
|
7265
5814
|
}, {});
|
|
7266
5815
|
};
|
|
7267
5816
|
const deserializeAws_json1_0NonKeyAttributeNameList = (output, context) => {
|
|
7268
|
-
|
|
5817
|
+
const retVal = (output || [])
|
|
7269
5818
|
.filter((e) => e != null)
|
|
7270
5819
|
.map((entry) => {
|
|
7271
5820
|
if (entry === null) {
|
|
@@ -7273,9 +5822,10 @@ const deserializeAws_json1_0NonKeyAttributeNameList = (output, context) => {
|
|
|
7273
5822
|
}
|
|
7274
5823
|
return smithy_client_1.expectString(entry);
|
|
7275
5824
|
});
|
|
5825
|
+
return retVal;
|
|
7276
5826
|
};
|
|
7277
5827
|
const deserializeAws_json1_0NumberSetAttributeValue = (output, context) => {
|
|
7278
|
-
|
|
5828
|
+
const retVal = (output || [])
|
|
7279
5829
|
.filter((e) => e != null)
|
|
7280
5830
|
.map((entry) => {
|
|
7281
5831
|
if (entry === null) {
|
|
@@ -7283,9 +5833,10 @@ const deserializeAws_json1_0NumberSetAttributeValue = (output, context) => {
|
|
|
7283
5833
|
}
|
|
7284
5834
|
return smithy_client_1.expectString(entry);
|
|
7285
5835
|
});
|
|
5836
|
+
return retVal;
|
|
7286
5837
|
};
|
|
7287
5838
|
const deserializeAws_json1_0PartiQLBatchResponse = (output, context) => {
|
|
7288
|
-
|
|
5839
|
+
const retVal = (output || [])
|
|
7289
5840
|
.filter((e) => e != null)
|
|
7290
5841
|
.map((entry) => {
|
|
7291
5842
|
if (entry === null) {
|
|
@@ -7293,6 +5844,7 @@ const deserializeAws_json1_0PartiQLBatchResponse = (output, context) => {
|
|
|
7293
5844
|
}
|
|
7294
5845
|
return deserializeAws_json1_0BatchStatementResponse(entry, context);
|
|
7295
5846
|
});
|
|
5847
|
+
return retVal;
|
|
7296
5848
|
};
|
|
7297
5849
|
const deserializeAws_json1_0PointInTimeRecoveryDescription = (output, context) => {
|
|
7298
5850
|
return {
|
|
@@ -7421,7 +5973,7 @@ const deserializeAws_json1_0ReplicaAutoScalingDescription = (output, context) =>
|
|
|
7421
5973
|
};
|
|
7422
5974
|
};
|
|
7423
5975
|
const deserializeAws_json1_0ReplicaAutoScalingDescriptionList = (output, context) => {
|
|
7424
|
-
|
|
5976
|
+
const retVal = (output || [])
|
|
7425
5977
|
.filter((e) => e != null)
|
|
7426
5978
|
.map((entry) => {
|
|
7427
5979
|
if (entry === null) {
|
|
@@ -7429,6 +5981,7 @@ const deserializeAws_json1_0ReplicaAutoScalingDescriptionList = (output, context
|
|
|
7429
5981
|
}
|
|
7430
5982
|
return deserializeAws_json1_0ReplicaAutoScalingDescription(entry, context);
|
|
7431
5983
|
});
|
|
5984
|
+
return retVal;
|
|
7432
5985
|
};
|
|
7433
5986
|
const deserializeAws_json1_0ReplicaDescription = (output, context) => {
|
|
7434
5987
|
return {
|
|
@@ -7452,7 +6005,7 @@ const deserializeAws_json1_0ReplicaDescription = (output, context) => {
|
|
|
7452
6005
|
};
|
|
7453
6006
|
};
|
|
7454
6007
|
const deserializeAws_json1_0ReplicaDescriptionList = (output, context) => {
|
|
7455
|
-
|
|
6008
|
+
const retVal = (output || [])
|
|
7456
6009
|
.filter((e) => e != null)
|
|
7457
6010
|
.map((entry) => {
|
|
7458
6011
|
if (entry === null) {
|
|
@@ -7460,6 +6013,7 @@ const deserializeAws_json1_0ReplicaDescriptionList = (output, context) => {
|
|
|
7460
6013
|
}
|
|
7461
6014
|
return deserializeAws_json1_0ReplicaDescription(entry, context);
|
|
7462
6015
|
});
|
|
6016
|
+
return retVal;
|
|
7463
6017
|
};
|
|
7464
6018
|
const deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescription = (output, context) => {
|
|
7465
6019
|
return {
|
|
@@ -7476,7 +6030,7 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescription =
|
|
|
7476
6030
|
};
|
|
7477
6031
|
};
|
|
7478
6032
|
const deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionList = (output, context) => {
|
|
7479
|
-
|
|
6033
|
+
const retVal = (output || [])
|
|
7480
6034
|
.filter((e) => e != null)
|
|
7481
6035
|
.map((entry) => {
|
|
7482
6036
|
if (entry === null) {
|
|
@@ -7484,6 +6038,7 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionLis
|
|
|
7484
6038
|
}
|
|
7485
6039
|
return deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescription(entry, context);
|
|
7486
6040
|
});
|
|
6041
|
+
return retVal;
|
|
7487
6042
|
};
|
|
7488
6043
|
const deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescription = (output, context) => {
|
|
7489
6044
|
return {
|
|
@@ -7494,7 +6049,7 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescription = (output, co
|
|
|
7494
6049
|
};
|
|
7495
6050
|
};
|
|
7496
6051
|
const deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescriptionList = (output, context) => {
|
|
7497
|
-
|
|
6052
|
+
const retVal = (output || [])
|
|
7498
6053
|
.filter((e) => e != null)
|
|
7499
6054
|
.map((entry) => {
|
|
7500
6055
|
if (entry === null) {
|
|
@@ -7502,6 +6057,7 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescriptionList = (output
|
|
|
7502
6057
|
}
|
|
7503
6058
|
return deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescription(entry, context);
|
|
7504
6059
|
});
|
|
6060
|
+
return retVal;
|
|
7505
6061
|
};
|
|
7506
6062
|
const deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription = (output, context) => {
|
|
7507
6063
|
return {
|
|
@@ -7520,7 +6076,7 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription = (ou
|
|
|
7520
6076
|
};
|
|
7521
6077
|
};
|
|
7522
6078
|
const deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescriptionList = (output, context) => {
|
|
7523
|
-
|
|
6079
|
+
const retVal = (output || [])
|
|
7524
6080
|
.filter((e) => e != null)
|
|
7525
6081
|
.map((entry) => {
|
|
7526
6082
|
if (entry === null) {
|
|
@@ -7528,9 +6084,10 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescriptionList =
|
|
|
7528
6084
|
}
|
|
7529
6085
|
return deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription(entry, context);
|
|
7530
6086
|
});
|
|
6087
|
+
return retVal;
|
|
7531
6088
|
};
|
|
7532
6089
|
const deserializeAws_json1_0ReplicaList = (output, context) => {
|
|
7533
|
-
|
|
6090
|
+
const retVal = (output || [])
|
|
7534
6091
|
.filter((e) => e != null)
|
|
7535
6092
|
.map((entry) => {
|
|
7536
6093
|
if (entry === null) {
|
|
@@ -7538,6 +6095,7 @@ const deserializeAws_json1_0ReplicaList = (output, context) => {
|
|
|
7538
6095
|
}
|
|
7539
6096
|
return deserializeAws_json1_0Replica(entry, context);
|
|
7540
6097
|
});
|
|
6098
|
+
return retVal;
|
|
7541
6099
|
};
|
|
7542
6100
|
const deserializeAws_json1_0ReplicaNotFoundException = (output, context) => {
|
|
7543
6101
|
return {
|
|
@@ -7570,7 +6128,7 @@ const deserializeAws_json1_0ReplicaSettingsDescription = (output, context) => {
|
|
|
7570
6128
|
};
|
|
7571
6129
|
};
|
|
7572
6130
|
const deserializeAws_json1_0ReplicaSettingsDescriptionList = (output, context) => {
|
|
7573
|
-
|
|
6131
|
+
const retVal = (output || [])
|
|
7574
6132
|
.filter((e) => e != null)
|
|
7575
6133
|
.map((entry) => {
|
|
7576
6134
|
if (entry === null) {
|
|
@@ -7578,6 +6136,7 @@ const deserializeAws_json1_0ReplicaSettingsDescriptionList = (output, context) =
|
|
|
7578
6136
|
}
|
|
7579
6137
|
return deserializeAws_json1_0ReplicaSettingsDescription(entry, context);
|
|
7580
6138
|
});
|
|
6139
|
+
return retVal;
|
|
7581
6140
|
};
|
|
7582
6141
|
const deserializeAws_json1_0RequestLimitExceeded = (output, context) => {
|
|
7583
6142
|
return {
|
|
@@ -7699,7 +6258,7 @@ const deserializeAws_json1_0StreamSpecification = (output, context) => {
|
|
|
7699
6258
|
};
|
|
7700
6259
|
};
|
|
7701
6260
|
const deserializeAws_json1_0StringSetAttributeValue = (output, context) => {
|
|
7702
|
-
|
|
6261
|
+
const retVal = (output || [])
|
|
7703
6262
|
.filter((e) => e != null)
|
|
7704
6263
|
.map((entry) => {
|
|
7705
6264
|
if (entry === null) {
|
|
@@ -7707,6 +6266,7 @@ const deserializeAws_json1_0StringSetAttributeValue = (output, context) => {
|
|
|
7707
6266
|
}
|
|
7708
6267
|
return smithy_client_1.expectString(entry);
|
|
7709
6268
|
});
|
|
6269
|
+
return retVal;
|
|
7710
6270
|
};
|
|
7711
6271
|
const deserializeAws_json1_0TableAlreadyExistsException = (output, context) => {
|
|
7712
6272
|
return {
|
|
@@ -7788,7 +6348,7 @@ const deserializeAws_json1_0TableInUseException = (output, context) => {
|
|
|
7788
6348
|
};
|
|
7789
6349
|
};
|
|
7790
6350
|
const deserializeAws_json1_0TableNameList = (output, context) => {
|
|
7791
|
-
|
|
6351
|
+
const retVal = (output || [])
|
|
7792
6352
|
.filter((e) => e != null)
|
|
7793
6353
|
.map((entry) => {
|
|
7794
6354
|
if (entry === null) {
|
|
@@ -7796,6 +6356,7 @@ const deserializeAws_json1_0TableNameList = (output, context) => {
|
|
|
7796
6356
|
}
|
|
7797
6357
|
return smithy_client_1.expectString(entry);
|
|
7798
6358
|
});
|
|
6359
|
+
return retVal;
|
|
7799
6360
|
};
|
|
7800
6361
|
const deserializeAws_json1_0TableNotFoundException = (output, context) => {
|
|
7801
6362
|
return {
|
|
@@ -7809,7 +6370,7 @@ const deserializeAws_json1_0Tag = (output, context) => {
|
|
|
7809
6370
|
};
|
|
7810
6371
|
};
|
|
7811
6372
|
const deserializeAws_json1_0TagList = (output, context) => {
|
|
7812
|
-
|
|
6373
|
+
const retVal = (output || [])
|
|
7813
6374
|
.filter((e) => e != null)
|
|
7814
6375
|
.map((entry) => {
|
|
7815
6376
|
if (entry === null) {
|
|
@@ -7817,6 +6378,7 @@ const deserializeAws_json1_0TagList = (output, context) => {
|
|
|
7817
6378
|
}
|
|
7818
6379
|
return deserializeAws_json1_0Tag(entry, context);
|
|
7819
6380
|
});
|
|
6381
|
+
return retVal;
|
|
7820
6382
|
};
|
|
7821
6383
|
const deserializeAws_json1_0TimeToLiveDescription = (output, context) => {
|
|
7822
6384
|
return {
|
|
@@ -7942,7 +6504,7 @@ const deserializeAws_json1_0WriteRequest = (output, context) => {
|
|
|
7942
6504
|
};
|
|
7943
6505
|
};
|
|
7944
6506
|
const deserializeAws_json1_0WriteRequests = (output, context) => {
|
|
7945
|
-
|
|
6507
|
+
const retVal = (output || [])
|
|
7946
6508
|
.filter((e) => e != null)
|
|
7947
6509
|
.map((entry) => {
|
|
7948
6510
|
if (entry === null) {
|
|
@@ -7950,6 +6512,7 @@ const deserializeAws_json1_0WriteRequests = (output, context) => {
|
|
|
7950
6512
|
}
|
|
7951
6513
|
return deserializeAws_json1_0WriteRequest(entry, context);
|
|
7952
6514
|
});
|
|
6515
|
+
return retVal;
|
|
7953
6516
|
};
|
|
7954
6517
|
const deserializeMetadata = (output) => {
|
|
7955
6518
|
var _a;
|