@aws-sdk/client-simspaceweaver 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 CHANGED
@@ -599,7 +599,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
599
599
  }, "se_UntagResourceCommand");
600
600
  var de_CreateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
601
601
  if (output.statusCode !== 200 && output.statusCode >= 300) {
602
- return de_CreateSnapshotCommandError(output, context);
602
+ return de_CommandError(output, context);
603
603
  }
604
604
  const contents = (0, import_smithy_client.map)({
605
605
  $metadata: deserializeMetadata(output)
@@ -607,40 +607,9 @@ var de_CreateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
607
607
  await (0, import_smithy_client.collectBody)(output.body, context);
608
608
  return contents;
609
609
  }, "de_CreateSnapshotCommand");
610
- var de_CreateSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
611
- const parsedOutput = {
612
- ...output,
613
- body: await parseErrorBody(output.body, context)
614
- };
615
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
616
- switch (errorCode) {
617
- case "AccessDeniedException":
618
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
619
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
620
- case "ConflictException":
621
- case "com.amazonaws.simspaceweaver#ConflictException":
622
- throw await de_ConflictExceptionRes(parsedOutput, context);
623
- case "InternalServerException":
624
- case "com.amazonaws.simspaceweaver#InternalServerException":
625
- throw await de_InternalServerExceptionRes(parsedOutput, context);
626
- case "ResourceNotFoundException":
627
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
628
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
629
- case "ValidationException":
630
- case "com.amazonaws.simspaceweaver#ValidationException":
631
- throw await de_ValidationExceptionRes(parsedOutput, context);
632
- default:
633
- const parsedBody = parsedOutput.body;
634
- return throwDefaultError({
635
- output,
636
- parsedBody,
637
- errorCode
638
- });
639
- }
640
- }, "de_CreateSnapshotCommandError");
641
610
  var de_DeleteAppCommand = /* @__PURE__ */ __name(async (output, context) => {
642
611
  if (output.statusCode !== 200 && output.statusCode >= 300) {
643
- return de_DeleteAppCommandError(output, context);
612
+ return de_CommandError(output, context);
644
613
  }
645
614
  const contents = (0, import_smithy_client.map)({
646
615
  $metadata: deserializeMetadata(output)
@@ -648,40 +617,9 @@ var de_DeleteAppCommand = /* @__PURE__ */ __name(async (output, context) => {
648
617
  await (0, import_smithy_client.collectBody)(output.body, context);
649
618
  return contents;
650
619
  }, "de_DeleteAppCommand");
651
- var de_DeleteAppCommandError = /* @__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 "AccessDeniedException":
659
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
660
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
661
- case "ConflictException":
662
- case "com.amazonaws.simspaceweaver#ConflictException":
663
- throw await de_ConflictExceptionRes(parsedOutput, context);
664
- case "InternalServerException":
665
- case "com.amazonaws.simspaceweaver#InternalServerException":
666
- throw await de_InternalServerExceptionRes(parsedOutput, context);
667
- case "ResourceNotFoundException":
668
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
669
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
670
- case "ValidationException":
671
- case "com.amazonaws.simspaceweaver#ValidationException":
672
- throw await de_ValidationExceptionRes(parsedOutput, context);
673
- default:
674
- const parsedBody = parsedOutput.body;
675
- return throwDefaultError({
676
- output,
677
- parsedBody,
678
- errorCode
679
- });
680
- }
681
- }, "de_DeleteAppCommandError");
682
620
  var de_DeleteSimulationCommand = /* @__PURE__ */ __name(async (output, context) => {
683
621
  if (output.statusCode !== 200 && output.statusCode >= 300) {
684
- return de_DeleteSimulationCommandError(output, context);
622
+ return de_CommandError(output, context);
685
623
  }
686
624
  const contents = (0, import_smithy_client.map)({
687
625
  $metadata: deserializeMetadata(output)
@@ -689,40 +627,9 @@ var de_DeleteSimulationCommand = /* @__PURE__ */ __name(async (output, context)
689
627
  await (0, import_smithy_client.collectBody)(output.body, context);
690
628
  return contents;
691
629
  }, "de_DeleteSimulationCommand");
692
- var de_DeleteSimulationCommandError = /* @__PURE__ */ __name(async (output, context) => {
693
- const parsedOutput = {
694
- ...output,
695
- body: await parseErrorBody(output.body, context)
696
- };
697
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
698
- switch (errorCode) {
699
- case "AccessDeniedException":
700
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
701
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
702
- case "ConflictException":
703
- case "com.amazonaws.simspaceweaver#ConflictException":
704
- throw await de_ConflictExceptionRes(parsedOutput, context);
705
- case "InternalServerException":
706
- case "com.amazonaws.simspaceweaver#InternalServerException":
707
- throw await de_InternalServerExceptionRes(parsedOutput, context);
708
- case "ResourceNotFoundException":
709
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
710
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
711
- case "ValidationException":
712
- case "com.amazonaws.simspaceweaver#ValidationException":
713
- throw await de_ValidationExceptionRes(parsedOutput, context);
714
- default:
715
- const parsedBody = parsedOutput.body;
716
- return throwDefaultError({
717
- output,
718
- parsedBody,
719
- errorCode
720
- });
721
- }
722
- }, "de_DeleteSimulationCommandError");
723
630
  var de_DescribeAppCommand = /* @__PURE__ */ __name(async (output, context) => {
724
631
  if (output.statusCode !== 200 && output.statusCode >= 300) {
725
- return de_DescribeAppCommandError(output, context);
632
+ return de_CommandError(output, context);
726
633
  }
727
634
  const contents = (0, import_smithy_client.map)({
728
635
  $metadata: deserializeMetadata(output)
@@ -741,37 +648,9 @@ var de_DescribeAppCommand = /* @__PURE__ */ __name(async (output, context) => {
741
648
  Object.assign(contents, doc);
742
649
  return contents;
743
650
  }, "de_DescribeAppCommand");
744
- var de_DescribeAppCommandError = /* @__PURE__ */ __name(async (output, context) => {
745
- const parsedOutput = {
746
- ...output,
747
- body: await parseErrorBody(output.body, context)
748
- };
749
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
750
- switch (errorCode) {
751
- case "AccessDeniedException":
752
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
753
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
754
- case "InternalServerException":
755
- case "com.amazonaws.simspaceweaver#InternalServerException":
756
- throw await de_InternalServerExceptionRes(parsedOutput, context);
757
- case "ResourceNotFoundException":
758
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
759
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
760
- case "ValidationException":
761
- case "com.amazonaws.simspaceweaver#ValidationException":
762
- throw await de_ValidationExceptionRes(parsedOutput, context);
763
- default:
764
- const parsedBody = parsedOutput.body;
765
- return throwDefaultError({
766
- output,
767
- parsedBody,
768
- errorCode
769
- });
770
- }
771
- }, "de_DescribeAppCommandError");
772
651
  var de_DescribeSimulationCommand = /* @__PURE__ */ __name(async (output, context) => {
773
652
  if (output.statusCode !== 200 && output.statusCode >= 300) {
774
- return de_DescribeSimulationCommandError(output, context);
653
+ return de_CommandError(output, context);
775
654
  }
776
655
  const contents = (0, import_smithy_client.map)({
777
656
  $metadata: deserializeMetadata(output)
@@ -797,37 +676,9 @@ var de_DescribeSimulationCommand = /* @__PURE__ */ __name(async (output, context
797
676
  Object.assign(contents, doc);
798
677
  return contents;
799
678
  }, "de_DescribeSimulationCommand");
800
- var de_DescribeSimulationCommandError = /* @__PURE__ */ __name(async (output, context) => {
801
- const parsedOutput = {
802
- ...output,
803
- body: await parseErrorBody(output.body, context)
804
- };
805
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
806
- switch (errorCode) {
807
- case "AccessDeniedException":
808
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
809
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
810
- case "InternalServerException":
811
- case "com.amazonaws.simspaceweaver#InternalServerException":
812
- throw await de_InternalServerExceptionRes(parsedOutput, context);
813
- case "ResourceNotFoundException":
814
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
815
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
816
- case "ValidationException":
817
- case "com.amazonaws.simspaceweaver#ValidationException":
818
- throw await de_ValidationExceptionRes(parsedOutput, context);
819
- default:
820
- const parsedBody = parsedOutput.body;
821
- return throwDefaultError({
822
- output,
823
- parsedBody,
824
- errorCode
825
- });
826
- }
827
- }, "de_DescribeSimulationCommandError");
828
679
  var de_ListAppsCommand = /* @__PURE__ */ __name(async (output, context) => {
829
680
  if (output.statusCode !== 200 && output.statusCode >= 300) {
830
- return de_ListAppsCommandError(output, context);
681
+ return de_CommandError(output, context);
831
682
  }
832
683
  const contents = (0, import_smithy_client.map)({
833
684
  $metadata: deserializeMetadata(output)
@@ -840,37 +691,9 @@ var de_ListAppsCommand = /* @__PURE__ */ __name(async (output, context) => {
840
691
  Object.assign(contents, doc);
841
692
  return contents;
842
693
  }, "de_ListAppsCommand");
843
- var de_ListAppsCommandError = /* @__PURE__ */ __name(async (output, context) => {
844
- const parsedOutput = {
845
- ...output,
846
- body: await parseErrorBody(output.body, context)
847
- };
848
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
849
- switch (errorCode) {
850
- case "AccessDeniedException":
851
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
852
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
853
- case "InternalServerException":
854
- case "com.amazonaws.simspaceweaver#InternalServerException":
855
- throw await de_InternalServerExceptionRes(parsedOutput, context);
856
- case "ResourceNotFoundException":
857
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
858
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
859
- case "ValidationException":
860
- case "com.amazonaws.simspaceweaver#ValidationException":
861
- throw await de_ValidationExceptionRes(parsedOutput, context);
862
- default:
863
- const parsedBody = parsedOutput.body;
864
- return throwDefaultError({
865
- output,
866
- parsedBody,
867
- errorCode
868
- });
869
- }
870
- }, "de_ListAppsCommandError");
871
694
  var de_ListSimulationsCommand = /* @__PURE__ */ __name(async (output, context) => {
872
695
  if (output.statusCode !== 200 && output.statusCode >= 300) {
873
- return de_ListSimulationsCommandError(output, context);
696
+ return de_CommandError(output, context);
874
697
  }
875
698
  const contents = (0, import_smithy_client.map)({
876
699
  $metadata: deserializeMetadata(output)
@@ -883,34 +706,9 @@ var de_ListSimulationsCommand = /* @__PURE__ */ __name(async (output, context) =
883
706
  Object.assign(contents, doc);
884
707
  return contents;
885
708
  }, "de_ListSimulationsCommand");
886
- var de_ListSimulationsCommandError = /* @__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 "AccessDeniedException":
894
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
895
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
896
- case "InternalServerException":
897
- case "com.amazonaws.simspaceweaver#InternalServerException":
898
- throw await de_InternalServerExceptionRes(parsedOutput, context);
899
- case "ValidationException":
900
- case "com.amazonaws.simspaceweaver#ValidationException":
901
- throw await de_ValidationExceptionRes(parsedOutput, context);
902
- default:
903
- const parsedBody = parsedOutput.body;
904
- return throwDefaultError({
905
- output,
906
- parsedBody,
907
- errorCode
908
- });
909
- }
910
- }, "de_ListSimulationsCommandError");
911
709
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
912
710
  if (output.statusCode !== 200 && output.statusCode >= 300) {
913
- return de_ListTagsForResourceCommandError(output, context);
711
+ return de_CommandError(output, context);
914
712
  }
915
713
  const contents = (0, import_smithy_client.map)({
916
714
  $metadata: deserializeMetadata(output)
@@ -922,31 +720,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
922
720
  Object.assign(contents, doc);
923
721
  return contents;
924
722
  }, "de_ListTagsForResourceCommand");
925
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
926
- const parsedOutput = {
927
- ...output,
928
- body: await parseErrorBody(output.body, context)
929
- };
930
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
931
- switch (errorCode) {
932
- case "ResourceNotFoundException":
933
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
934
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
935
- case "ValidationException":
936
- case "com.amazonaws.simspaceweaver#ValidationException":
937
- throw await de_ValidationExceptionRes(parsedOutput, context);
938
- default:
939
- const parsedBody = parsedOutput.body;
940
- return throwDefaultError({
941
- output,
942
- parsedBody,
943
- errorCode
944
- });
945
- }
946
- }, "de_ListTagsForResourceCommandError");
947
723
  var de_StartAppCommand = /* @__PURE__ */ __name(async (output, context) => {
948
724
  if (output.statusCode !== 200 && output.statusCode >= 300) {
949
- return de_StartAppCommandError(output, context);
725
+ return de_CommandError(output, context);
950
726
  }
951
727
  const contents = (0, import_smithy_client.map)({
952
728
  $metadata: deserializeMetadata(output)
@@ -960,40 +736,9 @@ var de_StartAppCommand = /* @__PURE__ */ __name(async (output, context) => {
960
736
  Object.assign(contents, doc);
961
737
  return contents;
962
738
  }, "de_StartAppCommand");
963
- var de_StartAppCommandError = /* @__PURE__ */ __name(async (output, context) => {
964
- const parsedOutput = {
965
- ...output,
966
- body: await parseErrorBody(output.body, context)
967
- };
968
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
969
- switch (errorCode) {
970
- case "AccessDeniedException":
971
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
972
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
973
- case "ConflictException":
974
- case "com.amazonaws.simspaceweaver#ConflictException":
975
- throw await de_ConflictExceptionRes(parsedOutput, context);
976
- case "InternalServerException":
977
- case "com.amazonaws.simspaceweaver#InternalServerException":
978
- throw await de_InternalServerExceptionRes(parsedOutput, context);
979
- case "ServiceQuotaExceededException":
980
- case "com.amazonaws.simspaceweaver#ServiceQuotaExceededException":
981
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
982
- case "ValidationException":
983
- case "com.amazonaws.simspaceweaver#ValidationException":
984
- throw await de_ValidationExceptionRes(parsedOutput, context);
985
- default:
986
- const parsedBody = parsedOutput.body;
987
- return throwDefaultError({
988
- output,
989
- parsedBody,
990
- errorCode
991
- });
992
- }
993
- }, "de_StartAppCommandError");
994
739
  var de_StartClockCommand = /* @__PURE__ */ __name(async (output, context) => {
995
740
  if (output.statusCode !== 200 && output.statusCode >= 300) {
996
- return de_StartClockCommandError(output, context);
741
+ return de_CommandError(output, context);
997
742
  }
998
743
  const contents = (0, import_smithy_client.map)({
999
744
  $metadata: deserializeMetadata(output)
@@ -1001,40 +746,9 @@ var de_StartClockCommand = /* @__PURE__ */ __name(async (output, context) => {
1001
746
  await (0, import_smithy_client.collectBody)(output.body, context);
1002
747
  return contents;
1003
748
  }, "de_StartClockCommand");
1004
- var de_StartClockCommandError = /* @__PURE__ */ __name(async (output, context) => {
1005
- const parsedOutput = {
1006
- ...output,
1007
- body: await parseErrorBody(output.body, context)
1008
- };
1009
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1010
- switch (errorCode) {
1011
- case "AccessDeniedException":
1012
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
1013
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1014
- case "ConflictException":
1015
- case "com.amazonaws.simspaceweaver#ConflictException":
1016
- throw await de_ConflictExceptionRes(parsedOutput, context);
1017
- case "InternalServerException":
1018
- case "com.amazonaws.simspaceweaver#InternalServerException":
1019
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1020
- case "ResourceNotFoundException":
1021
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
1022
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1023
- case "ValidationException":
1024
- case "com.amazonaws.simspaceweaver#ValidationException":
1025
- throw await de_ValidationExceptionRes(parsedOutput, context);
1026
- default:
1027
- const parsedBody = parsedOutput.body;
1028
- return throwDefaultError({
1029
- output,
1030
- parsedBody,
1031
- errorCode
1032
- });
1033
- }
1034
- }, "de_StartClockCommandError");
1035
749
  var de_StartSimulationCommand = /* @__PURE__ */ __name(async (output, context) => {
1036
750
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1037
- return de_StartSimulationCommandError(output, context);
751
+ return de_CommandError(output, context);
1038
752
  }
1039
753
  const contents = (0, import_smithy_client.map)({
1040
754
  $metadata: deserializeMetadata(output)
@@ -1048,40 +762,9 @@ var de_StartSimulationCommand = /* @__PURE__ */ __name(async (output, context) =
1048
762
  Object.assign(contents, doc);
1049
763
  return contents;
1050
764
  }, "de_StartSimulationCommand");
1051
- var de_StartSimulationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1052
- const parsedOutput = {
1053
- ...output,
1054
- body: await parseErrorBody(output.body, context)
1055
- };
1056
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1057
- switch (errorCode) {
1058
- case "AccessDeniedException":
1059
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
1060
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1061
- case "ConflictException":
1062
- case "com.amazonaws.simspaceweaver#ConflictException":
1063
- throw await de_ConflictExceptionRes(parsedOutput, context);
1064
- case "InternalServerException":
1065
- case "com.amazonaws.simspaceweaver#InternalServerException":
1066
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1067
- case "ServiceQuotaExceededException":
1068
- case "com.amazonaws.simspaceweaver#ServiceQuotaExceededException":
1069
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1070
- case "ValidationException":
1071
- case "com.amazonaws.simspaceweaver#ValidationException":
1072
- throw await de_ValidationExceptionRes(parsedOutput, context);
1073
- default:
1074
- const parsedBody = parsedOutput.body;
1075
- return throwDefaultError({
1076
- output,
1077
- parsedBody,
1078
- errorCode
1079
- });
1080
- }
1081
- }, "de_StartSimulationCommandError");
1082
765
  var de_StopAppCommand = /* @__PURE__ */ __name(async (output, context) => {
1083
766
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1084
- return de_StopAppCommandError(output, context);
767
+ return de_CommandError(output, context);
1085
768
  }
1086
769
  const contents = (0, import_smithy_client.map)({
1087
770
  $metadata: deserializeMetadata(output)
@@ -1089,40 +772,9 @@ var de_StopAppCommand = /* @__PURE__ */ __name(async (output, context) => {
1089
772
  await (0, import_smithy_client.collectBody)(output.body, context);
1090
773
  return contents;
1091
774
  }, "de_StopAppCommand");
1092
- var de_StopAppCommandError = /* @__PURE__ */ __name(async (output, context) => {
1093
- const parsedOutput = {
1094
- ...output,
1095
- body: await parseErrorBody(output.body, context)
1096
- };
1097
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1098
- switch (errorCode) {
1099
- case "AccessDeniedException":
1100
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
1101
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1102
- case "ConflictException":
1103
- case "com.amazonaws.simspaceweaver#ConflictException":
1104
- throw await de_ConflictExceptionRes(parsedOutput, context);
1105
- case "InternalServerException":
1106
- case "com.amazonaws.simspaceweaver#InternalServerException":
1107
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1108
- case "ResourceNotFoundException":
1109
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
1110
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1111
- case "ValidationException":
1112
- case "com.amazonaws.simspaceweaver#ValidationException":
1113
- throw await de_ValidationExceptionRes(parsedOutput, context);
1114
- default:
1115
- const parsedBody = parsedOutput.body;
1116
- return throwDefaultError({
1117
- output,
1118
- parsedBody,
1119
- errorCode
1120
- });
1121
- }
1122
- }, "de_StopAppCommandError");
1123
775
  var de_StopClockCommand = /* @__PURE__ */ __name(async (output, context) => {
1124
776
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1125
- return de_StopClockCommandError(output, context);
777
+ return de_CommandError(output, context);
1126
778
  }
1127
779
  const contents = (0, import_smithy_client.map)({
1128
780
  $metadata: deserializeMetadata(output)
@@ -1130,40 +782,9 @@ var de_StopClockCommand = /* @__PURE__ */ __name(async (output, context) => {
1130
782
  await (0, import_smithy_client.collectBody)(output.body, context);
1131
783
  return contents;
1132
784
  }, "de_StopClockCommand");
1133
- var de_StopClockCommandError = /* @__PURE__ */ __name(async (output, context) => {
1134
- const parsedOutput = {
1135
- ...output,
1136
- body: await parseErrorBody(output.body, context)
1137
- };
1138
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1139
- switch (errorCode) {
1140
- case "AccessDeniedException":
1141
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
1142
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1143
- case "ConflictException":
1144
- case "com.amazonaws.simspaceweaver#ConflictException":
1145
- throw await de_ConflictExceptionRes(parsedOutput, context);
1146
- case "InternalServerException":
1147
- case "com.amazonaws.simspaceweaver#InternalServerException":
1148
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1149
- case "ResourceNotFoundException":
1150
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
1151
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1152
- case "ValidationException":
1153
- case "com.amazonaws.simspaceweaver#ValidationException":
1154
- throw await de_ValidationExceptionRes(parsedOutput, context);
1155
- default:
1156
- const parsedBody = parsedOutput.body;
1157
- return throwDefaultError({
1158
- output,
1159
- parsedBody,
1160
- errorCode
1161
- });
1162
- }
1163
- }, "de_StopClockCommandError");
1164
785
  var de_StopSimulationCommand = /* @__PURE__ */ __name(async (output, context) => {
1165
786
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1166
- return de_StopSimulationCommandError(output, context);
787
+ return de_CommandError(output, context);
1167
788
  }
1168
789
  const contents = (0, import_smithy_client.map)({
1169
790
  $metadata: deserializeMetadata(output)
@@ -1171,40 +792,9 @@ var de_StopSimulationCommand = /* @__PURE__ */ __name(async (output, context) =>
1171
792
  await (0, import_smithy_client.collectBody)(output.body, context);
1172
793
  return contents;
1173
794
  }, "de_StopSimulationCommand");
1174
- var de_StopSimulationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1175
- const parsedOutput = {
1176
- ...output,
1177
- body: await parseErrorBody(output.body, context)
1178
- };
1179
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1180
- switch (errorCode) {
1181
- case "AccessDeniedException":
1182
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
1183
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1184
- case "ConflictException":
1185
- case "com.amazonaws.simspaceweaver#ConflictException":
1186
- throw await de_ConflictExceptionRes(parsedOutput, context);
1187
- case "InternalServerException":
1188
- case "com.amazonaws.simspaceweaver#InternalServerException":
1189
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1190
- case "ResourceNotFoundException":
1191
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
1192
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1193
- case "ValidationException":
1194
- case "com.amazonaws.simspaceweaver#ValidationException":
1195
- throw await de_ValidationExceptionRes(parsedOutput, context);
1196
- default:
1197
- const parsedBody = parsedOutput.body;
1198
- return throwDefaultError({
1199
- output,
1200
- parsedBody,
1201
- errorCode
1202
- });
1203
- }
1204
- }, "de_StopSimulationCommandError");
1205
795
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1206
796
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1207
- return de_TagResourceCommandError(output, context);
797
+ return de_CommandError(output, context);
1208
798
  }
1209
799
  const contents = (0, import_smithy_client.map)({
1210
800
  $metadata: deserializeMetadata(output)
@@ -1212,34 +802,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1212
802
  await (0, import_smithy_client.collectBody)(output.body, context);
1213
803
  return contents;
1214
804
  }, "de_TagResourceCommand");
1215
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1216
- const parsedOutput = {
1217
- ...output,
1218
- body: await parseErrorBody(output.body, context)
1219
- };
1220
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1221
- switch (errorCode) {
1222
- case "ResourceNotFoundException":
1223
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
1224
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1225
- case "TooManyTagsException":
1226
- case "com.amazonaws.simspaceweaver#TooManyTagsException":
1227
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1228
- case "ValidationException":
1229
- case "com.amazonaws.simspaceweaver#ValidationException":
1230
- throw await de_ValidationExceptionRes(parsedOutput, context);
1231
- default:
1232
- const parsedBody = parsedOutput.body;
1233
- return throwDefaultError({
1234
- output,
1235
- parsedBody,
1236
- errorCode
1237
- });
1238
- }
1239
- }, "de_TagResourceCommandError");
1240
805
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1241
806
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1242
- return de_UntagResourceCommandError(output, context);
807
+ return de_CommandError(output, context);
1243
808
  }
1244
809
  const contents = (0, import_smithy_client.map)({
1245
810
  $metadata: deserializeMetadata(output)
@@ -1247,19 +812,34 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1247
812
  await (0, import_smithy_client.collectBody)(output.body, context);
1248
813
  return contents;
1249
814
  }, "de_UntagResourceCommand");
1250
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
815
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1251
816
  const parsedOutput = {
1252
817
  ...output,
1253
818
  body: await parseErrorBody(output.body, context)
1254
819
  };
1255
820
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1256
821
  switch (errorCode) {
822
+ case "AccessDeniedException":
823
+ case "com.amazonaws.simspaceweaver#AccessDeniedException":
824
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
825
+ case "ConflictException":
826
+ case "com.amazonaws.simspaceweaver#ConflictException":
827
+ throw await de_ConflictExceptionRes(parsedOutput, context);
828
+ case "InternalServerException":
829
+ case "com.amazonaws.simspaceweaver#InternalServerException":
830
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1257
831
  case "ResourceNotFoundException":
1258
832
  case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
1259
833
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1260
834
  case "ValidationException":
1261
835
  case "com.amazonaws.simspaceweaver#ValidationException":
1262
836
  throw await de_ValidationExceptionRes(parsedOutput, context);
837
+ case "ServiceQuotaExceededException":
838
+ case "com.amazonaws.simspaceweaver#ServiceQuotaExceededException":
839
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
840
+ case "TooManyTagsException":
841
+ case "com.amazonaws.simspaceweaver#TooManyTagsException":
842
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1263
843
  default:
1264
844
  const parsedBody = parsedOutput.body;
1265
845
  return throwDefaultError({
@@ -1268,7 +848,7 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
1268
848
  errorCode
1269
849
  });
1270
850
  }
1271
- }, "de_UntagResourceCommandError");
851
+ }, "de_CommandError");
1272
852
  var throwDefaultError = (0, import_smithy_client.withBaseException)(SimSpaceWeaverServiceException);
1273
853
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1274
854
  const contents = (0, import_smithy_client.map)({});
@@ -223,7 +223,7 @@ export const se_UntagResourceCommand = async (input, context) => {
223
223
  };
224
224
  export const de_CreateSnapshotCommand = async (output, context) => {
225
225
  if (output.statusCode !== 200 && output.statusCode >= 300) {
226
- return de_CreateSnapshotCommandError(output, context);
226
+ return de_CommandError(output, context);
227
227
  }
228
228
  const contents = map({
229
229
  $metadata: deserializeMetadata(output),
@@ -231,40 +231,9 @@ export const de_CreateSnapshotCommand = async (output, context) => {
231
231
  await collectBody(output.body, context);
232
232
  return contents;
233
233
  };
234
- const de_CreateSnapshotCommandError = async (output, context) => {
235
- const parsedOutput = {
236
- ...output,
237
- body: await parseErrorBody(output.body, context),
238
- };
239
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
240
- switch (errorCode) {
241
- case "AccessDeniedException":
242
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
243
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
244
- case "ConflictException":
245
- case "com.amazonaws.simspaceweaver#ConflictException":
246
- throw await de_ConflictExceptionRes(parsedOutput, context);
247
- case "InternalServerException":
248
- case "com.amazonaws.simspaceweaver#InternalServerException":
249
- throw await de_InternalServerExceptionRes(parsedOutput, context);
250
- case "ResourceNotFoundException":
251
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
252
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
253
- case "ValidationException":
254
- case "com.amazonaws.simspaceweaver#ValidationException":
255
- throw await de_ValidationExceptionRes(parsedOutput, context);
256
- default:
257
- const parsedBody = parsedOutput.body;
258
- return throwDefaultError({
259
- output,
260
- parsedBody,
261
- errorCode,
262
- });
263
- }
264
- };
265
234
  export const de_DeleteAppCommand = async (output, context) => {
266
235
  if (output.statusCode !== 200 && output.statusCode >= 300) {
267
- return de_DeleteAppCommandError(output, context);
236
+ return de_CommandError(output, context);
268
237
  }
269
238
  const contents = map({
270
239
  $metadata: deserializeMetadata(output),
@@ -272,40 +241,9 @@ export const de_DeleteAppCommand = async (output, context) => {
272
241
  await collectBody(output.body, context);
273
242
  return contents;
274
243
  };
275
- const de_DeleteAppCommandError = async (output, context) => {
276
- const parsedOutput = {
277
- ...output,
278
- body: await parseErrorBody(output.body, context),
279
- };
280
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
281
- switch (errorCode) {
282
- case "AccessDeniedException":
283
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
284
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
285
- case "ConflictException":
286
- case "com.amazonaws.simspaceweaver#ConflictException":
287
- throw await de_ConflictExceptionRes(parsedOutput, context);
288
- case "InternalServerException":
289
- case "com.amazonaws.simspaceweaver#InternalServerException":
290
- throw await de_InternalServerExceptionRes(parsedOutput, context);
291
- case "ResourceNotFoundException":
292
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
293
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
294
- case "ValidationException":
295
- case "com.amazonaws.simspaceweaver#ValidationException":
296
- throw await de_ValidationExceptionRes(parsedOutput, context);
297
- default:
298
- const parsedBody = parsedOutput.body;
299
- return throwDefaultError({
300
- output,
301
- parsedBody,
302
- errorCode,
303
- });
304
- }
305
- };
306
244
  export const de_DeleteSimulationCommand = async (output, context) => {
307
245
  if (output.statusCode !== 200 && output.statusCode >= 300) {
308
- return de_DeleteSimulationCommandError(output, context);
246
+ return de_CommandError(output, context);
309
247
  }
310
248
  const contents = map({
311
249
  $metadata: deserializeMetadata(output),
@@ -313,40 +251,9 @@ export const de_DeleteSimulationCommand = async (output, context) => {
313
251
  await collectBody(output.body, context);
314
252
  return contents;
315
253
  };
316
- const de_DeleteSimulationCommandError = async (output, context) => {
317
- const parsedOutput = {
318
- ...output,
319
- body: await parseErrorBody(output.body, context),
320
- };
321
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
322
- switch (errorCode) {
323
- case "AccessDeniedException":
324
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
325
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
326
- case "ConflictException":
327
- case "com.amazonaws.simspaceweaver#ConflictException":
328
- throw await de_ConflictExceptionRes(parsedOutput, context);
329
- case "InternalServerException":
330
- case "com.amazonaws.simspaceweaver#InternalServerException":
331
- throw await de_InternalServerExceptionRes(parsedOutput, context);
332
- case "ResourceNotFoundException":
333
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
334
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
335
- case "ValidationException":
336
- case "com.amazonaws.simspaceweaver#ValidationException":
337
- throw await de_ValidationExceptionRes(parsedOutput, context);
338
- default:
339
- const parsedBody = parsedOutput.body;
340
- return throwDefaultError({
341
- output,
342
- parsedBody,
343
- errorCode,
344
- });
345
- }
346
- };
347
254
  export const de_DescribeAppCommand = async (output, context) => {
348
255
  if (output.statusCode !== 200 && output.statusCode >= 300) {
349
- return de_DescribeAppCommandError(output, context);
256
+ return de_CommandError(output, context);
350
257
  }
351
258
  const contents = map({
352
259
  $metadata: deserializeMetadata(output),
@@ -365,37 +272,9 @@ export const de_DescribeAppCommand = async (output, context) => {
365
272
  Object.assign(contents, doc);
366
273
  return contents;
367
274
  };
368
- const de_DescribeAppCommandError = async (output, context) => {
369
- const parsedOutput = {
370
- ...output,
371
- body: await parseErrorBody(output.body, context),
372
- };
373
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
374
- switch (errorCode) {
375
- case "AccessDeniedException":
376
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
377
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
378
- case "InternalServerException":
379
- case "com.amazonaws.simspaceweaver#InternalServerException":
380
- throw await de_InternalServerExceptionRes(parsedOutput, context);
381
- case "ResourceNotFoundException":
382
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
383
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
384
- case "ValidationException":
385
- case "com.amazonaws.simspaceweaver#ValidationException":
386
- throw await de_ValidationExceptionRes(parsedOutput, context);
387
- default:
388
- const parsedBody = parsedOutput.body;
389
- return throwDefaultError({
390
- output,
391
- parsedBody,
392
- errorCode,
393
- });
394
- }
395
- };
396
275
  export const de_DescribeSimulationCommand = async (output, context) => {
397
276
  if (output.statusCode !== 200 && output.statusCode >= 300) {
398
- return de_DescribeSimulationCommandError(output, context);
277
+ return de_CommandError(output, context);
399
278
  }
400
279
  const contents = map({
401
280
  $metadata: deserializeMetadata(output),
@@ -421,37 +300,9 @@ export const de_DescribeSimulationCommand = async (output, context) => {
421
300
  Object.assign(contents, doc);
422
301
  return contents;
423
302
  };
424
- const de_DescribeSimulationCommandError = async (output, context) => {
425
- const parsedOutput = {
426
- ...output,
427
- body: await parseErrorBody(output.body, context),
428
- };
429
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
430
- switch (errorCode) {
431
- case "AccessDeniedException":
432
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
433
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
434
- case "InternalServerException":
435
- case "com.amazonaws.simspaceweaver#InternalServerException":
436
- throw await de_InternalServerExceptionRes(parsedOutput, context);
437
- case "ResourceNotFoundException":
438
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
439
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
440
- case "ValidationException":
441
- case "com.amazonaws.simspaceweaver#ValidationException":
442
- throw await de_ValidationExceptionRes(parsedOutput, context);
443
- default:
444
- const parsedBody = parsedOutput.body;
445
- return throwDefaultError({
446
- output,
447
- parsedBody,
448
- errorCode,
449
- });
450
- }
451
- };
452
303
  export const de_ListAppsCommand = async (output, context) => {
453
304
  if (output.statusCode !== 200 && output.statusCode >= 300) {
454
- return de_ListAppsCommandError(output, context);
305
+ return de_CommandError(output, context);
455
306
  }
456
307
  const contents = map({
457
308
  $metadata: deserializeMetadata(output),
@@ -464,37 +315,9 @@ export const de_ListAppsCommand = async (output, context) => {
464
315
  Object.assign(contents, doc);
465
316
  return contents;
466
317
  };
467
- const de_ListAppsCommandError = async (output, context) => {
468
- const parsedOutput = {
469
- ...output,
470
- body: await parseErrorBody(output.body, context),
471
- };
472
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
473
- switch (errorCode) {
474
- case "AccessDeniedException":
475
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
476
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
477
- case "InternalServerException":
478
- case "com.amazonaws.simspaceweaver#InternalServerException":
479
- throw await de_InternalServerExceptionRes(parsedOutput, context);
480
- case "ResourceNotFoundException":
481
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
482
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
483
- case "ValidationException":
484
- case "com.amazonaws.simspaceweaver#ValidationException":
485
- throw await de_ValidationExceptionRes(parsedOutput, context);
486
- default:
487
- const parsedBody = parsedOutput.body;
488
- return throwDefaultError({
489
- output,
490
- parsedBody,
491
- errorCode,
492
- });
493
- }
494
- };
495
318
  export const de_ListSimulationsCommand = async (output, context) => {
496
319
  if (output.statusCode !== 200 && output.statusCode >= 300) {
497
- return de_ListSimulationsCommandError(output, context);
320
+ return de_CommandError(output, context);
498
321
  }
499
322
  const contents = map({
500
323
  $metadata: deserializeMetadata(output),
@@ -507,34 +330,9 @@ export const de_ListSimulationsCommand = async (output, context) => {
507
330
  Object.assign(contents, doc);
508
331
  return contents;
509
332
  };
510
- const de_ListSimulationsCommandError = async (output, context) => {
511
- const parsedOutput = {
512
- ...output,
513
- body: await parseErrorBody(output.body, context),
514
- };
515
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
516
- switch (errorCode) {
517
- case "AccessDeniedException":
518
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
519
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
520
- case "InternalServerException":
521
- case "com.amazonaws.simspaceweaver#InternalServerException":
522
- throw await de_InternalServerExceptionRes(parsedOutput, context);
523
- case "ValidationException":
524
- case "com.amazonaws.simspaceweaver#ValidationException":
525
- throw await de_ValidationExceptionRes(parsedOutput, context);
526
- default:
527
- const parsedBody = parsedOutput.body;
528
- return throwDefaultError({
529
- output,
530
- parsedBody,
531
- errorCode,
532
- });
533
- }
534
- };
535
333
  export const de_ListTagsForResourceCommand = async (output, context) => {
536
334
  if (output.statusCode !== 200 && output.statusCode >= 300) {
537
- return de_ListTagsForResourceCommandError(output, context);
335
+ return de_CommandError(output, context);
538
336
  }
539
337
  const contents = map({
540
338
  $metadata: deserializeMetadata(output),
@@ -546,31 +344,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
546
344
  Object.assign(contents, doc);
547
345
  return contents;
548
346
  };
549
- const de_ListTagsForResourceCommandError = async (output, context) => {
550
- const parsedOutput = {
551
- ...output,
552
- body: await parseErrorBody(output.body, context),
553
- };
554
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
555
- switch (errorCode) {
556
- case "ResourceNotFoundException":
557
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
558
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
559
- case "ValidationException":
560
- case "com.amazonaws.simspaceweaver#ValidationException":
561
- throw await de_ValidationExceptionRes(parsedOutput, context);
562
- default:
563
- const parsedBody = parsedOutput.body;
564
- return throwDefaultError({
565
- output,
566
- parsedBody,
567
- errorCode,
568
- });
569
- }
570
- };
571
347
  export const de_StartAppCommand = async (output, context) => {
572
348
  if (output.statusCode !== 200 && output.statusCode >= 300) {
573
- return de_StartAppCommandError(output, context);
349
+ return de_CommandError(output, context);
574
350
  }
575
351
  const contents = map({
576
352
  $metadata: deserializeMetadata(output),
@@ -584,40 +360,9 @@ export const de_StartAppCommand = async (output, context) => {
584
360
  Object.assign(contents, doc);
585
361
  return contents;
586
362
  };
587
- const de_StartAppCommandError = async (output, context) => {
588
- const parsedOutput = {
589
- ...output,
590
- body: await parseErrorBody(output.body, context),
591
- };
592
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
593
- switch (errorCode) {
594
- case "AccessDeniedException":
595
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
596
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
597
- case "ConflictException":
598
- case "com.amazonaws.simspaceweaver#ConflictException":
599
- throw await de_ConflictExceptionRes(parsedOutput, context);
600
- case "InternalServerException":
601
- case "com.amazonaws.simspaceweaver#InternalServerException":
602
- throw await de_InternalServerExceptionRes(parsedOutput, context);
603
- case "ServiceQuotaExceededException":
604
- case "com.amazonaws.simspaceweaver#ServiceQuotaExceededException":
605
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
606
- case "ValidationException":
607
- case "com.amazonaws.simspaceweaver#ValidationException":
608
- throw await de_ValidationExceptionRes(parsedOutput, context);
609
- default:
610
- const parsedBody = parsedOutput.body;
611
- return throwDefaultError({
612
- output,
613
- parsedBody,
614
- errorCode,
615
- });
616
- }
617
- };
618
363
  export const de_StartClockCommand = async (output, context) => {
619
364
  if (output.statusCode !== 200 && output.statusCode >= 300) {
620
- return de_StartClockCommandError(output, context);
365
+ return de_CommandError(output, context);
621
366
  }
622
367
  const contents = map({
623
368
  $metadata: deserializeMetadata(output),
@@ -625,40 +370,9 @@ export const de_StartClockCommand = async (output, context) => {
625
370
  await collectBody(output.body, context);
626
371
  return contents;
627
372
  };
628
- const de_StartClockCommandError = async (output, context) => {
629
- const parsedOutput = {
630
- ...output,
631
- body: await parseErrorBody(output.body, context),
632
- };
633
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
634
- switch (errorCode) {
635
- case "AccessDeniedException":
636
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
637
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
638
- case "ConflictException":
639
- case "com.amazonaws.simspaceweaver#ConflictException":
640
- throw await de_ConflictExceptionRes(parsedOutput, context);
641
- case "InternalServerException":
642
- case "com.amazonaws.simspaceweaver#InternalServerException":
643
- throw await de_InternalServerExceptionRes(parsedOutput, context);
644
- case "ResourceNotFoundException":
645
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
646
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
647
- case "ValidationException":
648
- case "com.amazonaws.simspaceweaver#ValidationException":
649
- throw await de_ValidationExceptionRes(parsedOutput, context);
650
- default:
651
- const parsedBody = parsedOutput.body;
652
- return throwDefaultError({
653
- output,
654
- parsedBody,
655
- errorCode,
656
- });
657
- }
658
- };
659
373
  export const de_StartSimulationCommand = async (output, context) => {
660
374
  if (output.statusCode !== 200 && output.statusCode >= 300) {
661
- return de_StartSimulationCommandError(output, context);
375
+ return de_CommandError(output, context);
662
376
  }
663
377
  const contents = map({
664
378
  $metadata: deserializeMetadata(output),
@@ -672,40 +386,9 @@ export const de_StartSimulationCommand = async (output, context) => {
672
386
  Object.assign(contents, doc);
673
387
  return contents;
674
388
  };
675
- const de_StartSimulationCommandError = async (output, context) => {
676
- const parsedOutput = {
677
- ...output,
678
- body: await parseErrorBody(output.body, context),
679
- };
680
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
681
- switch (errorCode) {
682
- case "AccessDeniedException":
683
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
684
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
685
- case "ConflictException":
686
- case "com.amazonaws.simspaceweaver#ConflictException":
687
- throw await de_ConflictExceptionRes(parsedOutput, context);
688
- case "InternalServerException":
689
- case "com.amazonaws.simspaceweaver#InternalServerException":
690
- throw await de_InternalServerExceptionRes(parsedOutput, context);
691
- case "ServiceQuotaExceededException":
692
- case "com.amazonaws.simspaceweaver#ServiceQuotaExceededException":
693
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
694
- case "ValidationException":
695
- case "com.amazonaws.simspaceweaver#ValidationException":
696
- throw await de_ValidationExceptionRes(parsedOutput, context);
697
- default:
698
- const parsedBody = parsedOutput.body;
699
- return throwDefaultError({
700
- output,
701
- parsedBody,
702
- errorCode,
703
- });
704
- }
705
- };
706
389
  export const de_StopAppCommand = async (output, context) => {
707
390
  if (output.statusCode !== 200 && output.statusCode >= 300) {
708
- return de_StopAppCommandError(output, context);
391
+ return de_CommandError(output, context);
709
392
  }
710
393
  const contents = map({
711
394
  $metadata: deserializeMetadata(output),
@@ -713,40 +396,9 @@ export const de_StopAppCommand = async (output, context) => {
713
396
  await collectBody(output.body, context);
714
397
  return contents;
715
398
  };
716
- const de_StopAppCommandError = async (output, context) => {
717
- const parsedOutput = {
718
- ...output,
719
- body: await parseErrorBody(output.body, context),
720
- };
721
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
722
- switch (errorCode) {
723
- case "AccessDeniedException":
724
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
725
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
726
- case "ConflictException":
727
- case "com.amazonaws.simspaceweaver#ConflictException":
728
- throw await de_ConflictExceptionRes(parsedOutput, context);
729
- case "InternalServerException":
730
- case "com.amazonaws.simspaceweaver#InternalServerException":
731
- throw await de_InternalServerExceptionRes(parsedOutput, context);
732
- case "ResourceNotFoundException":
733
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
734
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
735
- case "ValidationException":
736
- case "com.amazonaws.simspaceweaver#ValidationException":
737
- throw await de_ValidationExceptionRes(parsedOutput, context);
738
- default:
739
- const parsedBody = parsedOutput.body;
740
- return throwDefaultError({
741
- output,
742
- parsedBody,
743
- errorCode,
744
- });
745
- }
746
- };
747
399
  export const de_StopClockCommand = async (output, context) => {
748
400
  if (output.statusCode !== 200 && output.statusCode >= 300) {
749
- return de_StopClockCommandError(output, context);
401
+ return de_CommandError(output, context);
750
402
  }
751
403
  const contents = map({
752
404
  $metadata: deserializeMetadata(output),
@@ -754,40 +406,9 @@ export const de_StopClockCommand = async (output, context) => {
754
406
  await collectBody(output.body, context);
755
407
  return contents;
756
408
  };
757
- const de_StopClockCommandError = async (output, context) => {
758
- const parsedOutput = {
759
- ...output,
760
- body: await parseErrorBody(output.body, context),
761
- };
762
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
763
- switch (errorCode) {
764
- case "AccessDeniedException":
765
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
766
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
767
- case "ConflictException":
768
- case "com.amazonaws.simspaceweaver#ConflictException":
769
- throw await de_ConflictExceptionRes(parsedOutput, context);
770
- case "InternalServerException":
771
- case "com.amazonaws.simspaceweaver#InternalServerException":
772
- throw await de_InternalServerExceptionRes(parsedOutput, context);
773
- case "ResourceNotFoundException":
774
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
775
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
776
- case "ValidationException":
777
- case "com.amazonaws.simspaceweaver#ValidationException":
778
- throw await de_ValidationExceptionRes(parsedOutput, context);
779
- default:
780
- const parsedBody = parsedOutput.body;
781
- return throwDefaultError({
782
- output,
783
- parsedBody,
784
- errorCode,
785
- });
786
- }
787
- };
788
409
  export const de_StopSimulationCommand = async (output, context) => {
789
410
  if (output.statusCode !== 200 && output.statusCode >= 300) {
790
- return de_StopSimulationCommandError(output, context);
411
+ return de_CommandError(output, context);
791
412
  }
792
413
  const contents = map({
793
414
  $metadata: deserializeMetadata(output),
@@ -795,40 +416,9 @@ export const de_StopSimulationCommand = async (output, context) => {
795
416
  await collectBody(output.body, context);
796
417
  return contents;
797
418
  };
798
- const de_StopSimulationCommandError = async (output, context) => {
799
- const parsedOutput = {
800
- ...output,
801
- body: await parseErrorBody(output.body, context),
802
- };
803
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
804
- switch (errorCode) {
805
- case "AccessDeniedException":
806
- case "com.amazonaws.simspaceweaver#AccessDeniedException":
807
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
808
- case "ConflictException":
809
- case "com.amazonaws.simspaceweaver#ConflictException":
810
- throw await de_ConflictExceptionRes(parsedOutput, context);
811
- case "InternalServerException":
812
- case "com.amazonaws.simspaceweaver#InternalServerException":
813
- throw await de_InternalServerExceptionRes(parsedOutput, context);
814
- case "ResourceNotFoundException":
815
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
816
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
817
- case "ValidationException":
818
- case "com.amazonaws.simspaceweaver#ValidationException":
819
- throw await de_ValidationExceptionRes(parsedOutput, context);
820
- default:
821
- const parsedBody = parsedOutput.body;
822
- return throwDefaultError({
823
- output,
824
- parsedBody,
825
- errorCode,
826
- });
827
- }
828
- };
829
419
  export const de_TagResourceCommand = async (output, context) => {
830
420
  if (output.statusCode !== 200 && output.statusCode >= 300) {
831
- return de_TagResourceCommandError(output, context);
421
+ return de_CommandError(output, context);
832
422
  }
833
423
  const contents = map({
834
424
  $metadata: deserializeMetadata(output),
@@ -836,34 +426,9 @@ export const de_TagResourceCommand = async (output, context) => {
836
426
  await collectBody(output.body, context);
837
427
  return contents;
838
428
  };
839
- const de_TagResourceCommandError = async (output, context) => {
840
- const parsedOutput = {
841
- ...output,
842
- body: await parseErrorBody(output.body, context),
843
- };
844
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
845
- switch (errorCode) {
846
- case "ResourceNotFoundException":
847
- case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
848
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
849
- case "TooManyTagsException":
850
- case "com.amazonaws.simspaceweaver#TooManyTagsException":
851
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
852
- case "ValidationException":
853
- case "com.amazonaws.simspaceweaver#ValidationException":
854
- throw await de_ValidationExceptionRes(parsedOutput, context);
855
- default:
856
- const parsedBody = parsedOutput.body;
857
- return throwDefaultError({
858
- output,
859
- parsedBody,
860
- errorCode,
861
- });
862
- }
863
- };
864
429
  export const de_UntagResourceCommand = async (output, context) => {
865
430
  if (output.statusCode !== 200 && output.statusCode >= 300) {
866
- return de_UntagResourceCommandError(output, context);
431
+ return de_CommandError(output, context);
867
432
  }
868
433
  const contents = map({
869
434
  $metadata: deserializeMetadata(output),
@@ -871,19 +436,34 @@ export const de_UntagResourceCommand = async (output, context) => {
871
436
  await collectBody(output.body, context);
872
437
  return contents;
873
438
  };
874
- const de_UntagResourceCommandError = async (output, context) => {
439
+ const de_CommandError = async (output, context) => {
875
440
  const parsedOutput = {
876
441
  ...output,
877
442
  body: await parseErrorBody(output.body, context),
878
443
  };
879
444
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
880
445
  switch (errorCode) {
446
+ case "AccessDeniedException":
447
+ case "com.amazonaws.simspaceweaver#AccessDeniedException":
448
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
449
+ case "ConflictException":
450
+ case "com.amazonaws.simspaceweaver#ConflictException":
451
+ throw await de_ConflictExceptionRes(parsedOutput, context);
452
+ case "InternalServerException":
453
+ case "com.amazonaws.simspaceweaver#InternalServerException":
454
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
881
455
  case "ResourceNotFoundException":
882
456
  case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
883
457
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
884
458
  case "ValidationException":
885
459
  case "com.amazonaws.simspaceweaver#ValidationException":
886
460
  throw await de_ValidationExceptionRes(parsedOutput, context);
461
+ case "ServiceQuotaExceededException":
462
+ case "com.amazonaws.simspaceweaver#ServiceQuotaExceededException":
463
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
464
+ case "TooManyTagsException":
465
+ case "com.amazonaws.simspaceweaver#TooManyTagsException":
466
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
887
467
  default:
888
468
  const parsedBody = parsedOutput.body;
889
469
  return throwDefaultError({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-simspaceweaver",
3
3
  "description": "AWS SDK for JavaScript Simspaceweaver Client for Node.js, Browser and React Native",
4
- "version": "3.504.0",
4
+ "version": "3.509.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-simspaceweaver",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.504.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.504.0",
25
+ "@aws-sdk/credential-provider-node": "3.509.0",
26
26
  "@aws-sdk/middleware-host-header": "3.502.0",
27
27
  "@aws-sdk/middleware-logger": "3.502.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.502.0",