@aws-sdk/client-cognito-sync 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +43 -533
- package/dist-es/protocols/Aws_restJson1.js +46 -536
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -636,7 +636,7 @@ var se_UpdateRecordsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
636
636
|
}, "se_UpdateRecordsCommand");
|
|
637
637
|
var de_BulkPublishCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
638
638
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
639
|
-
return
|
|
639
|
+
return de_CommandError(output, context);
|
|
640
640
|
}
|
|
641
641
|
const contents = (0, import_smithy_client.map)({
|
|
642
642
|
$metadata: deserializeMetadata(output)
|
|
@@ -648,43 +648,9 @@ var de_BulkPublishCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
648
648
|
Object.assign(contents, doc);
|
|
649
649
|
return contents;
|
|
650
650
|
}, "de_BulkPublishCommand");
|
|
651
|
-
var de_BulkPublishCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
652
|
-
const parsedOutput = {
|
|
653
|
-
...output,
|
|
654
|
-
body: await parseErrorBody(output.body, context)
|
|
655
|
-
};
|
|
656
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
657
|
-
switch (errorCode) {
|
|
658
|
-
case "AlreadyStreamedException":
|
|
659
|
-
case "com.amazonaws.cognitosync#AlreadyStreamedException":
|
|
660
|
-
throw await de_AlreadyStreamedExceptionRes(parsedOutput, context);
|
|
661
|
-
case "DuplicateRequestException":
|
|
662
|
-
case "com.amazonaws.cognitosync#DuplicateRequestException":
|
|
663
|
-
throw await de_DuplicateRequestExceptionRes(parsedOutput, context);
|
|
664
|
-
case "InternalErrorException":
|
|
665
|
-
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
666
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
667
|
-
case "InvalidParameterException":
|
|
668
|
-
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
669
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
670
|
-
case "NotAuthorizedException":
|
|
671
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
672
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
673
|
-
case "ResourceNotFoundException":
|
|
674
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException":
|
|
675
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
676
|
-
default:
|
|
677
|
-
const parsedBody = parsedOutput.body;
|
|
678
|
-
return throwDefaultError({
|
|
679
|
-
output,
|
|
680
|
-
parsedBody,
|
|
681
|
-
errorCode
|
|
682
|
-
});
|
|
683
|
-
}
|
|
684
|
-
}, "de_BulkPublishCommandError");
|
|
685
651
|
var de_DeleteDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
686
652
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
687
|
-
return
|
|
653
|
+
return de_CommandError(output, context);
|
|
688
654
|
}
|
|
689
655
|
const contents = (0, import_smithy_client.map)({
|
|
690
656
|
$metadata: deserializeMetadata(output)
|
|
@@ -696,43 +662,9 @@ var de_DeleteDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
696
662
|
Object.assign(contents, doc);
|
|
697
663
|
return contents;
|
|
698
664
|
}, "de_DeleteDatasetCommand");
|
|
699
|
-
var de_DeleteDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
700
|
-
const parsedOutput = {
|
|
701
|
-
...output,
|
|
702
|
-
body: await parseErrorBody(output.body, context)
|
|
703
|
-
};
|
|
704
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
705
|
-
switch (errorCode) {
|
|
706
|
-
case "InternalErrorException":
|
|
707
|
-
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
708
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
709
|
-
case "InvalidParameterException":
|
|
710
|
-
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
711
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
712
|
-
case "NotAuthorizedException":
|
|
713
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
714
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
715
|
-
case "ResourceConflictException":
|
|
716
|
-
case "com.amazonaws.cognitosync#ResourceConflictException":
|
|
717
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
718
|
-
case "ResourceNotFoundException":
|
|
719
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException":
|
|
720
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
721
|
-
case "TooManyRequestsException":
|
|
722
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException":
|
|
723
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
724
|
-
default:
|
|
725
|
-
const parsedBody = parsedOutput.body;
|
|
726
|
-
return throwDefaultError({
|
|
727
|
-
output,
|
|
728
|
-
parsedBody,
|
|
729
|
-
errorCode
|
|
730
|
-
});
|
|
731
|
-
}
|
|
732
|
-
}, "de_DeleteDatasetCommandError");
|
|
733
665
|
var de_DescribeDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
734
666
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
735
|
-
return
|
|
667
|
+
return de_CommandError(output, context);
|
|
736
668
|
}
|
|
737
669
|
const contents = (0, import_smithy_client.map)({
|
|
738
670
|
$metadata: deserializeMetadata(output)
|
|
@@ -744,40 +676,9 @@ var de_DescribeDatasetCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
744
676
|
Object.assign(contents, doc);
|
|
745
677
|
return contents;
|
|
746
678
|
}, "de_DescribeDatasetCommand");
|
|
747
|
-
var de_DescribeDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
748
|
-
const parsedOutput = {
|
|
749
|
-
...output,
|
|
750
|
-
body: await parseErrorBody(output.body, context)
|
|
751
|
-
};
|
|
752
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
753
|
-
switch (errorCode) {
|
|
754
|
-
case "InternalErrorException":
|
|
755
|
-
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
756
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
757
|
-
case "InvalidParameterException":
|
|
758
|
-
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
759
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
760
|
-
case "NotAuthorizedException":
|
|
761
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
762
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
763
|
-
case "ResourceNotFoundException":
|
|
764
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException":
|
|
765
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
766
|
-
case "TooManyRequestsException":
|
|
767
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException":
|
|
768
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
769
|
-
default:
|
|
770
|
-
const parsedBody = parsedOutput.body;
|
|
771
|
-
return throwDefaultError({
|
|
772
|
-
output,
|
|
773
|
-
parsedBody,
|
|
774
|
-
errorCode
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
}, "de_DescribeDatasetCommandError");
|
|
778
679
|
var de_DescribeIdentityPoolUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
779
680
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
780
|
-
return
|
|
681
|
+
return de_CommandError(output, context);
|
|
781
682
|
}
|
|
782
683
|
const contents = (0, import_smithy_client.map)({
|
|
783
684
|
$metadata: deserializeMetadata(output)
|
|
@@ -789,40 +690,9 @@ var de_DescribeIdentityPoolUsageCommand = /* @__PURE__ */ __name(async (output,
|
|
|
789
690
|
Object.assign(contents, doc);
|
|
790
691
|
return contents;
|
|
791
692
|
}, "de_DescribeIdentityPoolUsageCommand");
|
|
792
|
-
var de_DescribeIdentityPoolUsageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
793
|
-
const parsedOutput = {
|
|
794
|
-
...output,
|
|
795
|
-
body: await parseErrorBody(output.body, context)
|
|
796
|
-
};
|
|
797
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
798
|
-
switch (errorCode) {
|
|
799
|
-
case "InternalErrorException":
|
|
800
|
-
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
801
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
802
|
-
case "InvalidParameterException":
|
|
803
|
-
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
804
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
805
|
-
case "NotAuthorizedException":
|
|
806
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
807
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
808
|
-
case "ResourceNotFoundException":
|
|
809
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException":
|
|
810
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
811
|
-
case "TooManyRequestsException":
|
|
812
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException":
|
|
813
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
814
|
-
default:
|
|
815
|
-
const parsedBody = parsedOutput.body;
|
|
816
|
-
return throwDefaultError({
|
|
817
|
-
output,
|
|
818
|
-
parsedBody,
|
|
819
|
-
errorCode
|
|
820
|
-
});
|
|
821
|
-
}
|
|
822
|
-
}, "de_DescribeIdentityPoolUsageCommandError");
|
|
823
693
|
var de_DescribeIdentityUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
824
694
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
825
|
-
return
|
|
695
|
+
return de_CommandError(output, context);
|
|
826
696
|
}
|
|
827
697
|
const contents = (0, import_smithy_client.map)({
|
|
828
698
|
$metadata: deserializeMetadata(output)
|
|
@@ -834,40 +704,9 @@ var de_DescribeIdentityUsageCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
834
704
|
Object.assign(contents, doc);
|
|
835
705
|
return contents;
|
|
836
706
|
}, "de_DescribeIdentityUsageCommand");
|
|
837
|
-
var de_DescribeIdentityUsageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
838
|
-
const parsedOutput = {
|
|
839
|
-
...output,
|
|
840
|
-
body: await parseErrorBody(output.body, context)
|
|
841
|
-
};
|
|
842
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
843
|
-
switch (errorCode) {
|
|
844
|
-
case "InternalErrorException":
|
|
845
|
-
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
846
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
847
|
-
case "InvalidParameterException":
|
|
848
|
-
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
849
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
850
|
-
case "NotAuthorizedException":
|
|
851
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
852
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
853
|
-
case "ResourceNotFoundException":
|
|
854
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException":
|
|
855
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
856
|
-
case "TooManyRequestsException":
|
|
857
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException":
|
|
858
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
859
|
-
default:
|
|
860
|
-
const parsedBody = parsedOutput.body;
|
|
861
|
-
return throwDefaultError({
|
|
862
|
-
output,
|
|
863
|
-
parsedBody,
|
|
864
|
-
errorCode
|
|
865
|
-
});
|
|
866
|
-
}
|
|
867
|
-
}, "de_DescribeIdentityUsageCommandError");
|
|
868
707
|
var de_GetBulkPublishDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
869
708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
870
|
-
return
|
|
709
|
+
return de_CommandError(output, context);
|
|
871
710
|
}
|
|
872
711
|
const contents = (0, import_smithy_client.map)({
|
|
873
712
|
$metadata: deserializeMetadata(output)
|
|
@@ -883,37 +722,9 @@ var de_GetBulkPublishDetailsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
883
722
|
Object.assign(contents, doc);
|
|
884
723
|
return contents;
|
|
885
724
|
}, "de_GetBulkPublishDetailsCommand");
|
|
886
|
-
var de_GetBulkPublishDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
887
|
-
const parsedOutput = {
|
|
888
|
-
...output,
|
|
889
|
-
body: await parseErrorBody(output.body, context)
|
|
890
|
-
};
|
|
891
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
892
|
-
switch (errorCode) {
|
|
893
|
-
case "InternalErrorException":
|
|
894
|
-
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
895
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
896
|
-
case "InvalidParameterException":
|
|
897
|
-
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
898
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
899
|
-
case "NotAuthorizedException":
|
|
900
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
901
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
902
|
-
case "ResourceNotFoundException":
|
|
903
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException":
|
|
904
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
905
|
-
default:
|
|
906
|
-
const parsedBody = parsedOutput.body;
|
|
907
|
-
return throwDefaultError({
|
|
908
|
-
output,
|
|
909
|
-
parsedBody,
|
|
910
|
-
errorCode
|
|
911
|
-
});
|
|
912
|
-
}
|
|
913
|
-
}, "de_GetBulkPublishDetailsCommandError");
|
|
914
725
|
var de_GetCognitoEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
915
726
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
916
|
-
return
|
|
727
|
+
return de_CommandError(output, context);
|
|
917
728
|
}
|
|
918
729
|
const contents = (0, import_smithy_client.map)({
|
|
919
730
|
$metadata: deserializeMetadata(output)
|
|
@@ -925,40 +736,9 @@ var de_GetCognitoEventsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
925
736
|
Object.assign(contents, doc);
|
|
926
737
|
return contents;
|
|
927
738
|
}, "de_GetCognitoEventsCommand");
|
|
928
|
-
var de_GetCognitoEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
929
|
-
const parsedOutput = {
|
|
930
|
-
...output,
|
|
931
|
-
body: await parseErrorBody(output.body, context)
|
|
932
|
-
};
|
|
933
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
|
-
switch (errorCode) {
|
|
935
|
-
case "InternalErrorException":
|
|
936
|
-
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
937
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
938
|
-
case "InvalidParameterException":
|
|
939
|
-
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
940
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
941
|
-
case "NotAuthorizedException":
|
|
942
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
943
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
944
|
-
case "ResourceNotFoundException":
|
|
945
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException":
|
|
946
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
947
|
-
case "TooManyRequestsException":
|
|
948
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException":
|
|
949
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
950
|
-
default:
|
|
951
|
-
const parsedBody = parsedOutput.body;
|
|
952
|
-
return throwDefaultError({
|
|
953
|
-
output,
|
|
954
|
-
parsedBody,
|
|
955
|
-
errorCode
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
}, "de_GetCognitoEventsCommandError");
|
|
959
739
|
var de_GetIdentityPoolConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
960
740
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
961
|
-
return
|
|
741
|
+
return de_CommandError(output, context);
|
|
962
742
|
}
|
|
963
743
|
const contents = (0, import_smithy_client.map)({
|
|
964
744
|
$metadata: deserializeMetadata(output)
|
|
@@ -972,40 +752,9 @@ var de_GetIdentityPoolConfigurationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
972
752
|
Object.assign(contents, doc);
|
|
973
753
|
return contents;
|
|
974
754
|
}, "de_GetIdentityPoolConfigurationCommand");
|
|
975
|
-
var de_GetIdentityPoolConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
976
|
-
const parsedOutput = {
|
|
977
|
-
...output,
|
|
978
|
-
body: await parseErrorBody(output.body, context)
|
|
979
|
-
};
|
|
980
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
981
|
-
switch (errorCode) {
|
|
982
|
-
case "InternalErrorException":
|
|
983
|
-
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
984
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
985
|
-
case "InvalidParameterException":
|
|
986
|
-
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
987
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
988
|
-
case "NotAuthorizedException":
|
|
989
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
990
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
991
|
-
case "ResourceNotFoundException":
|
|
992
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException":
|
|
993
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
994
|
-
case "TooManyRequestsException":
|
|
995
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException":
|
|
996
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
997
|
-
default:
|
|
998
|
-
const parsedBody = parsedOutput.body;
|
|
999
|
-
return throwDefaultError({
|
|
1000
|
-
output,
|
|
1001
|
-
parsedBody,
|
|
1002
|
-
errorCode
|
|
1003
|
-
});
|
|
1004
|
-
}
|
|
1005
|
-
}, "de_GetIdentityPoolConfigurationCommandError");
|
|
1006
755
|
var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1007
756
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1008
|
-
return
|
|
757
|
+
return de_CommandError(output, context);
|
|
1009
758
|
}
|
|
1010
759
|
const contents = (0, import_smithy_client.map)({
|
|
1011
760
|
$metadata: deserializeMetadata(output)
|
|
@@ -1019,37 +768,9 @@ var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1019
768
|
Object.assign(contents, doc);
|
|
1020
769
|
return contents;
|
|
1021
770
|
}, "de_ListDatasetsCommand");
|
|
1022
|
-
var de_ListDatasetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1023
|
-
const parsedOutput = {
|
|
1024
|
-
...output,
|
|
1025
|
-
body: await parseErrorBody(output.body, context)
|
|
1026
|
-
};
|
|
1027
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1028
|
-
switch (errorCode) {
|
|
1029
|
-
case "InternalErrorException":
|
|
1030
|
-
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
1031
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1032
|
-
case "InvalidParameterException":
|
|
1033
|
-
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
1034
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "NotAuthorizedException":
|
|
1036
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
1037
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1038
|
-
case "TooManyRequestsException":
|
|
1039
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException":
|
|
1040
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1041
|
-
default:
|
|
1042
|
-
const parsedBody = parsedOutput.body;
|
|
1043
|
-
return throwDefaultError({
|
|
1044
|
-
output,
|
|
1045
|
-
parsedBody,
|
|
1046
|
-
errorCode
|
|
1047
|
-
});
|
|
1048
|
-
}
|
|
1049
|
-
}, "de_ListDatasetsCommandError");
|
|
1050
771
|
var de_ListIdentityPoolUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1051
772
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1052
|
-
return
|
|
773
|
+
return de_CommandError(output, context);
|
|
1053
774
|
}
|
|
1054
775
|
const contents = (0, import_smithy_client.map)({
|
|
1055
776
|
$metadata: deserializeMetadata(output)
|
|
@@ -1064,37 +785,9 @@ var de_ListIdentityPoolUsageCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1064
785
|
Object.assign(contents, doc);
|
|
1065
786
|
return contents;
|
|
1066
787
|
}, "de_ListIdentityPoolUsageCommand");
|
|
1067
|
-
var de_ListIdentityPoolUsageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1068
|
-
const parsedOutput = {
|
|
1069
|
-
...output,
|
|
1070
|
-
body: await parseErrorBody(output.body, context)
|
|
1071
|
-
};
|
|
1072
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1073
|
-
switch (errorCode) {
|
|
1074
|
-
case "InternalErrorException":
|
|
1075
|
-
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
1076
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "InvalidParameterException":
|
|
1078
|
-
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
1079
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1080
|
-
case "NotAuthorizedException":
|
|
1081
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
1082
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1083
|
-
case "TooManyRequestsException":
|
|
1084
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException":
|
|
1085
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1086
|
-
default:
|
|
1087
|
-
const parsedBody = parsedOutput.body;
|
|
1088
|
-
return throwDefaultError({
|
|
1089
|
-
output,
|
|
1090
|
-
parsedBody,
|
|
1091
|
-
errorCode
|
|
1092
|
-
});
|
|
1093
|
-
}
|
|
1094
|
-
}, "de_ListIdentityPoolUsageCommandError");
|
|
1095
788
|
var de_ListRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1096
789
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1097
|
-
return
|
|
790
|
+
return de_CommandError(output, context);
|
|
1098
791
|
}
|
|
1099
792
|
const contents = (0, import_smithy_client.map)({
|
|
1100
793
|
$metadata: deserializeMetadata(output)
|
|
@@ -1114,37 +807,9 @@ var de_ListRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1114
807
|
Object.assign(contents, doc);
|
|
1115
808
|
return contents;
|
|
1116
809
|
}, "de_ListRecordsCommand");
|
|
1117
|
-
var de_ListRecordsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1118
|
-
const parsedOutput = {
|
|
1119
|
-
...output,
|
|
1120
|
-
body: await parseErrorBody(output.body, context)
|
|
1121
|
-
};
|
|
1122
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
|
-
switch (errorCode) {
|
|
1124
|
-
case "InternalErrorException":
|
|
1125
|
-
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
1126
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "InvalidParameterException":
|
|
1128
|
-
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
1129
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "NotAuthorizedException":
|
|
1131
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
1132
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "TooManyRequestsException":
|
|
1134
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException":
|
|
1135
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1136
|
-
default:
|
|
1137
|
-
const parsedBody = parsedOutput.body;
|
|
1138
|
-
return throwDefaultError({
|
|
1139
|
-
output,
|
|
1140
|
-
parsedBody,
|
|
1141
|
-
errorCode
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
}, "de_ListRecordsCommandError");
|
|
1145
810
|
var de_RegisterDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1146
811
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1147
|
-
return
|
|
812
|
+
return de_CommandError(output, context);
|
|
1148
813
|
}
|
|
1149
814
|
const contents = (0, import_smithy_client.map)({
|
|
1150
815
|
$metadata: deserializeMetadata(output)
|
|
@@ -1156,43 +821,9 @@ var de_RegisterDeviceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1156
821
|
Object.assign(contents, doc);
|
|
1157
822
|
return contents;
|
|
1158
823
|
}, "de_RegisterDeviceCommand");
|
|
1159
|
-
var de_RegisterDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1160
|
-
const parsedOutput = {
|
|
1161
|
-
...output,
|
|
1162
|
-
body: await parseErrorBody(output.body, context)
|
|
1163
|
-
};
|
|
1164
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1165
|
-
switch (errorCode) {
|
|
1166
|
-
case "InternalErrorException":
|
|
1167
|
-
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
1168
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "InvalidConfigurationException":
|
|
1170
|
-
case "com.amazonaws.cognitosync#InvalidConfigurationException":
|
|
1171
|
-
throw await de_InvalidConfigurationExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "InvalidParameterException":
|
|
1173
|
-
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
1174
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "NotAuthorizedException":
|
|
1176
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
1177
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "ResourceNotFoundException":
|
|
1179
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException":
|
|
1180
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "TooManyRequestsException":
|
|
1182
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException":
|
|
1183
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1184
|
-
default:
|
|
1185
|
-
const parsedBody = parsedOutput.body;
|
|
1186
|
-
return throwDefaultError({
|
|
1187
|
-
output,
|
|
1188
|
-
parsedBody,
|
|
1189
|
-
errorCode
|
|
1190
|
-
});
|
|
1191
|
-
}
|
|
1192
|
-
}, "de_RegisterDeviceCommandError");
|
|
1193
824
|
var de_SetCognitoEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1194
825
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1195
|
-
return
|
|
826
|
+
return de_CommandError(output, context);
|
|
1196
827
|
}
|
|
1197
828
|
const contents = (0, import_smithy_client.map)({
|
|
1198
829
|
$metadata: deserializeMetadata(output)
|
|
@@ -1200,40 +831,9 @@ var de_SetCognitoEventsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1200
831
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1201
832
|
return contents;
|
|
1202
833
|
}, "de_SetCognitoEventsCommand");
|
|
1203
|
-
var de_SetCognitoEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1204
|
-
const parsedOutput = {
|
|
1205
|
-
...output,
|
|
1206
|
-
body: await parseErrorBody(output.body, context)
|
|
1207
|
-
};
|
|
1208
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1209
|
-
switch (errorCode) {
|
|
1210
|
-
case "InternalErrorException":
|
|
1211
|
-
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
1212
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "InvalidParameterException":
|
|
1214
|
-
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
1215
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "NotAuthorizedException":
|
|
1217
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
1218
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1219
|
-
case "ResourceNotFoundException":
|
|
1220
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException":
|
|
1221
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1222
|
-
case "TooManyRequestsException":
|
|
1223
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException":
|
|
1224
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1225
|
-
default:
|
|
1226
|
-
const parsedBody = parsedOutput.body;
|
|
1227
|
-
return throwDefaultError({
|
|
1228
|
-
output,
|
|
1229
|
-
parsedBody,
|
|
1230
|
-
errorCode
|
|
1231
|
-
});
|
|
1232
|
-
}
|
|
1233
|
-
}, "de_SetCognitoEventsCommandError");
|
|
1234
834
|
var de_SetIdentityPoolConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1235
835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1236
|
-
return
|
|
836
|
+
return de_CommandError(output, context);
|
|
1237
837
|
}
|
|
1238
838
|
const contents = (0, import_smithy_client.map)({
|
|
1239
839
|
$metadata: deserializeMetadata(output)
|
|
@@ -1247,43 +847,9 @@ var de_SetIdentityPoolConfigurationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1247
847
|
Object.assign(contents, doc);
|
|
1248
848
|
return contents;
|
|
1249
849
|
}, "de_SetIdentityPoolConfigurationCommand");
|
|
1250
|
-
var de_SetIdentityPoolConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1251
|
-
const parsedOutput = {
|
|
1252
|
-
...output,
|
|
1253
|
-
body: await parseErrorBody(output.body, context)
|
|
1254
|
-
};
|
|
1255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
|
-
switch (errorCode) {
|
|
1257
|
-
case "ConcurrentModificationException":
|
|
1258
|
-
case "com.amazonaws.cognitosync#ConcurrentModificationException":
|
|
1259
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1260
|
-
case "InternalErrorException":
|
|
1261
|
-
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
1262
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1263
|
-
case "InvalidParameterException":
|
|
1264
|
-
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
1265
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "NotAuthorizedException":
|
|
1267
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
1268
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "ResourceNotFoundException":
|
|
1270
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException":
|
|
1271
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "TooManyRequestsException":
|
|
1273
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException":
|
|
1274
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1275
|
-
default:
|
|
1276
|
-
const parsedBody = parsedOutput.body;
|
|
1277
|
-
return throwDefaultError({
|
|
1278
|
-
output,
|
|
1279
|
-
parsedBody,
|
|
1280
|
-
errorCode
|
|
1281
|
-
});
|
|
1282
|
-
}
|
|
1283
|
-
}, "de_SetIdentityPoolConfigurationCommandError");
|
|
1284
850
|
var de_SubscribeToDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1285
851
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1286
|
-
return
|
|
852
|
+
return de_CommandError(output, context);
|
|
1287
853
|
}
|
|
1288
854
|
const contents = (0, import_smithy_client.map)({
|
|
1289
855
|
$metadata: deserializeMetadata(output)
|
|
@@ -1291,43 +857,9 @@ var de_SubscribeToDatasetCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1291
857
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1292
858
|
return contents;
|
|
1293
859
|
}, "de_SubscribeToDatasetCommand");
|
|
1294
|
-
var de_SubscribeToDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1295
|
-
const parsedOutput = {
|
|
1296
|
-
...output,
|
|
1297
|
-
body: await parseErrorBody(output.body, context)
|
|
1298
|
-
};
|
|
1299
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1300
|
-
switch (errorCode) {
|
|
1301
|
-
case "InternalErrorException":
|
|
1302
|
-
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
1303
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1304
|
-
case "InvalidConfigurationException":
|
|
1305
|
-
case "com.amazonaws.cognitosync#InvalidConfigurationException":
|
|
1306
|
-
throw await de_InvalidConfigurationExceptionRes(parsedOutput, context);
|
|
1307
|
-
case "InvalidParameterException":
|
|
1308
|
-
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
1309
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "NotAuthorizedException":
|
|
1311
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
1312
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "ResourceNotFoundException":
|
|
1314
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException":
|
|
1315
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1316
|
-
case "TooManyRequestsException":
|
|
1317
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException":
|
|
1318
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1319
|
-
default:
|
|
1320
|
-
const parsedBody = parsedOutput.body;
|
|
1321
|
-
return throwDefaultError({
|
|
1322
|
-
output,
|
|
1323
|
-
parsedBody,
|
|
1324
|
-
errorCode
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
}, "de_SubscribeToDatasetCommandError");
|
|
1328
860
|
var de_UnsubscribeFromDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1329
861
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1330
|
-
return
|
|
862
|
+
return de_CommandError(output, context);
|
|
1331
863
|
}
|
|
1332
864
|
const contents = (0, import_smithy_client.map)({
|
|
1333
865
|
$metadata: deserializeMetadata(output)
|
|
@@ -1335,43 +867,9 @@ var de_UnsubscribeFromDatasetCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1335
867
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1336
868
|
return contents;
|
|
1337
869
|
}, "de_UnsubscribeFromDatasetCommand");
|
|
1338
|
-
var de_UnsubscribeFromDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1339
|
-
const parsedOutput = {
|
|
1340
|
-
...output,
|
|
1341
|
-
body: await parseErrorBody(output.body, context)
|
|
1342
|
-
};
|
|
1343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
|
-
switch (errorCode) {
|
|
1345
|
-
case "InternalErrorException":
|
|
1346
|
-
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
1347
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "InvalidConfigurationException":
|
|
1349
|
-
case "com.amazonaws.cognitosync#InvalidConfigurationException":
|
|
1350
|
-
throw await de_InvalidConfigurationExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "InvalidParameterException":
|
|
1352
|
-
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
1353
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1354
|
-
case "NotAuthorizedException":
|
|
1355
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
1356
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1357
|
-
case "ResourceNotFoundException":
|
|
1358
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException":
|
|
1359
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1360
|
-
case "TooManyRequestsException":
|
|
1361
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException":
|
|
1362
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1363
|
-
default:
|
|
1364
|
-
const parsedBody = parsedOutput.body;
|
|
1365
|
-
return throwDefaultError({
|
|
1366
|
-
output,
|
|
1367
|
-
parsedBody,
|
|
1368
|
-
errorCode
|
|
1369
|
-
});
|
|
1370
|
-
}
|
|
1371
|
-
}, "de_UnsubscribeFromDatasetCommandError");
|
|
1372
870
|
var de_UpdateRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1373
871
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1374
|
-
return
|
|
872
|
+
return de_CommandError(output, context);
|
|
1375
873
|
}
|
|
1376
874
|
const contents = (0, import_smithy_client.map)({
|
|
1377
875
|
$metadata: deserializeMetadata(output)
|
|
@@ -1383,40 +881,52 @@ var de_UpdateRecordsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1383
881
|
Object.assign(contents, doc);
|
|
1384
882
|
return contents;
|
|
1385
883
|
}, "de_UpdateRecordsCommand");
|
|
1386
|
-
var
|
|
884
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1387
885
|
const parsedOutput = {
|
|
1388
886
|
...output,
|
|
1389
887
|
body: await parseErrorBody(output.body, context)
|
|
1390
888
|
};
|
|
1391
889
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
890
|
switch (errorCode) {
|
|
891
|
+
case "AlreadyStreamedException":
|
|
892
|
+
case "com.amazonaws.cognitosync#AlreadyStreamedException":
|
|
893
|
+
throw await de_AlreadyStreamedExceptionRes(parsedOutput, context);
|
|
894
|
+
case "DuplicateRequestException":
|
|
895
|
+
case "com.amazonaws.cognitosync#DuplicateRequestException":
|
|
896
|
+
throw await de_DuplicateRequestExceptionRes(parsedOutput, context);
|
|
1393
897
|
case "InternalErrorException":
|
|
1394
898
|
case "com.amazonaws.cognitosync#InternalErrorException":
|
|
1395
899
|
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "InvalidLambdaFunctionOutputException":
|
|
1397
|
-
case "com.amazonaws.cognitosync#InvalidLambdaFunctionOutputException":
|
|
1398
|
-
throw await de_InvalidLambdaFunctionOutputExceptionRes(parsedOutput, context);
|
|
1399
900
|
case "InvalidParameterException":
|
|
1400
901
|
case "com.amazonaws.cognitosync#InvalidParameterException":
|
|
1401
902
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1402
|
-
case "LambdaThrottledException":
|
|
1403
|
-
case "com.amazonaws.cognitosync#LambdaThrottledException":
|
|
1404
|
-
throw await de_LambdaThrottledExceptionRes(parsedOutput, context);
|
|
1405
|
-
case "LimitExceededException":
|
|
1406
|
-
case "com.amazonaws.cognitosync#LimitExceededException":
|
|
1407
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1408
903
|
case "NotAuthorizedException":
|
|
1409
904
|
case "com.amazonaws.cognitosync#NotAuthorizedException":
|
|
1410
905
|
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1411
|
-
case "ResourceConflictException":
|
|
1412
|
-
case "com.amazonaws.cognitosync#ResourceConflictException":
|
|
1413
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1414
906
|
case "ResourceNotFoundException":
|
|
1415
907
|
case "com.amazonaws.cognitosync#ResourceNotFoundException":
|
|
1416
908
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
909
|
+
case "ResourceConflictException":
|
|
910
|
+
case "com.amazonaws.cognitosync#ResourceConflictException":
|
|
911
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1417
912
|
case "TooManyRequestsException":
|
|
1418
913
|
case "com.amazonaws.cognitosync#TooManyRequestsException":
|
|
1419
914
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
915
|
+
case "InvalidConfigurationException":
|
|
916
|
+
case "com.amazonaws.cognitosync#InvalidConfigurationException":
|
|
917
|
+
throw await de_InvalidConfigurationExceptionRes(parsedOutput, context);
|
|
918
|
+
case "ConcurrentModificationException":
|
|
919
|
+
case "com.amazonaws.cognitosync#ConcurrentModificationException":
|
|
920
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
921
|
+
case "InvalidLambdaFunctionOutputException":
|
|
922
|
+
case "com.amazonaws.cognitosync#InvalidLambdaFunctionOutputException":
|
|
923
|
+
throw await de_InvalidLambdaFunctionOutputExceptionRes(parsedOutput, context);
|
|
924
|
+
case "LambdaThrottledException":
|
|
925
|
+
case "com.amazonaws.cognitosync#LambdaThrottledException":
|
|
926
|
+
throw await de_LambdaThrottledExceptionRes(parsedOutput, context);
|
|
927
|
+
case "LimitExceededException":
|
|
928
|
+
case "com.amazonaws.cognitosync#LimitExceededException":
|
|
929
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1420
930
|
default:
|
|
1421
931
|
const parsedBody = parsedOutput.body;
|
|
1422
932
|
return throwDefaultError({
|
|
@@ -1425,7 +935,7 @@ var de_UpdateRecordsCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
1425
935
|
errorCode
|
|
1426
936
|
});
|
|
1427
937
|
}
|
|
1428
|
-
}, "
|
|
938
|
+
}, "de_CommandError");
|
|
1429
939
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(CognitoSyncServiceException);
|
|
1430
940
|
var de_AlreadyStreamedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1431
941
|
const contents = (0, import_smithy_client.map)({});
|