@aws-sdk/client-fis 3.504.0 → 3.507.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
@@ -587,7 +587,7 @@ var se_UpdateTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (i
587
587
  }, "se_UpdateTargetAccountConfigurationCommand");
588
588
  var de_CreateExperimentTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
589
589
  if (output.statusCode !== 200 && output.statusCode >= 300) {
590
- return de_CreateExperimentTemplateCommandError(output, context);
590
+ return de_CommandError(output, context);
591
591
  }
592
592
  const contents = (0, import_smithy_client.map)({
593
593
  $metadata: deserializeMetadata(output)
@@ -599,37 +599,9 @@ var de_CreateExperimentTemplateCommand = /* @__PURE__ */ __name(async (output, c
599
599
  Object.assign(contents, doc);
600
600
  return contents;
601
601
  }, "de_CreateExperimentTemplateCommand");
602
- var de_CreateExperimentTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
603
- const parsedOutput = {
604
- ...output,
605
- body: await parseErrorBody(output.body, context)
606
- };
607
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
608
- switch (errorCode) {
609
- case "ConflictException":
610
- case "com.amazonaws.fis#ConflictException":
611
- throw await de_ConflictExceptionRes(parsedOutput, context);
612
- case "ResourceNotFoundException":
613
- case "com.amazonaws.fis#ResourceNotFoundException":
614
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
615
- case "ServiceQuotaExceededException":
616
- case "com.amazonaws.fis#ServiceQuotaExceededException":
617
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
618
- case "ValidationException":
619
- case "com.amazonaws.fis#ValidationException":
620
- throw await de_ValidationExceptionRes(parsedOutput, context);
621
- default:
622
- const parsedBody = parsedOutput.body;
623
- return throwDefaultError({
624
- output,
625
- parsedBody,
626
- errorCode
627
- });
628
- }
629
- }, "de_CreateExperimentTemplateCommandError");
630
602
  var de_CreateTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
631
603
  if (output.statusCode !== 200 && output.statusCode >= 300) {
632
- return de_CreateTargetAccountConfigurationCommandError(output, context);
604
+ return de_CommandError(output, context);
633
605
  }
634
606
  const contents = (0, import_smithy_client.map)({
635
607
  $metadata: deserializeMetadata(output)
@@ -641,37 +613,9 @@ var de_CreateTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (o
641
613
  Object.assign(contents, doc);
642
614
  return contents;
643
615
  }, "de_CreateTargetAccountConfigurationCommand");
644
- var de_CreateTargetAccountConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
645
- const parsedOutput = {
646
- ...output,
647
- body: await parseErrorBody(output.body, context)
648
- };
649
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
650
- switch (errorCode) {
651
- case "ConflictException":
652
- case "com.amazonaws.fis#ConflictException":
653
- throw await de_ConflictExceptionRes(parsedOutput, context);
654
- case "ResourceNotFoundException":
655
- case "com.amazonaws.fis#ResourceNotFoundException":
656
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
657
- case "ServiceQuotaExceededException":
658
- case "com.amazonaws.fis#ServiceQuotaExceededException":
659
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
660
- case "ValidationException":
661
- case "com.amazonaws.fis#ValidationException":
662
- throw await de_ValidationExceptionRes(parsedOutput, context);
663
- default:
664
- const parsedBody = parsedOutput.body;
665
- return throwDefaultError({
666
- output,
667
- parsedBody,
668
- errorCode
669
- });
670
- }
671
- }, "de_CreateTargetAccountConfigurationCommandError");
672
616
  var de_DeleteExperimentTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
673
617
  if (output.statusCode !== 200 && output.statusCode >= 300) {
674
- return de_DeleteExperimentTemplateCommandError(output, context);
618
+ return de_CommandError(output, context);
675
619
  }
676
620
  const contents = (0, import_smithy_client.map)({
677
621
  $metadata: deserializeMetadata(output)
@@ -683,31 +627,9 @@ var de_DeleteExperimentTemplateCommand = /* @__PURE__ */ __name(async (output, c
683
627
  Object.assign(contents, doc);
684
628
  return contents;
685
629
  }, "de_DeleteExperimentTemplateCommand");
686
- var de_DeleteExperimentTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
687
- const parsedOutput = {
688
- ...output,
689
- body: await parseErrorBody(output.body, context)
690
- };
691
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
692
- switch (errorCode) {
693
- case "ResourceNotFoundException":
694
- case "com.amazonaws.fis#ResourceNotFoundException":
695
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
696
- case "ValidationException":
697
- case "com.amazonaws.fis#ValidationException":
698
- throw await de_ValidationExceptionRes(parsedOutput, context);
699
- default:
700
- const parsedBody = parsedOutput.body;
701
- return throwDefaultError({
702
- output,
703
- parsedBody,
704
- errorCode
705
- });
706
- }
707
- }, "de_DeleteExperimentTemplateCommandError");
708
630
  var de_DeleteTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
709
631
  if (output.statusCode !== 200 && output.statusCode >= 300) {
710
- return de_DeleteTargetAccountConfigurationCommandError(output, context);
632
+ return de_CommandError(output, context);
711
633
  }
712
634
  const contents = (0, import_smithy_client.map)({
713
635
  $metadata: deserializeMetadata(output)
@@ -719,31 +641,9 @@ var de_DeleteTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (o
719
641
  Object.assign(contents, doc);
720
642
  return contents;
721
643
  }, "de_DeleteTargetAccountConfigurationCommand");
722
- var de_DeleteTargetAccountConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
723
- const parsedOutput = {
724
- ...output,
725
- body: await parseErrorBody(output.body, context)
726
- };
727
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
728
- switch (errorCode) {
729
- case "ResourceNotFoundException":
730
- case "com.amazonaws.fis#ResourceNotFoundException":
731
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
732
- case "ValidationException":
733
- case "com.amazonaws.fis#ValidationException":
734
- throw await de_ValidationExceptionRes(parsedOutput, context);
735
- default:
736
- const parsedBody = parsedOutput.body;
737
- return throwDefaultError({
738
- output,
739
- parsedBody,
740
- errorCode
741
- });
742
- }
743
- }, "de_DeleteTargetAccountConfigurationCommandError");
744
644
  var de_GetActionCommand = /* @__PURE__ */ __name(async (output, context) => {
745
645
  if (output.statusCode !== 200 && output.statusCode >= 300) {
746
- return de_GetActionCommandError(output, context);
646
+ return de_CommandError(output, context);
747
647
  }
748
648
  const contents = (0, import_smithy_client.map)({
749
649
  $metadata: deserializeMetadata(output)
@@ -755,31 +655,9 @@ var de_GetActionCommand = /* @__PURE__ */ __name(async (output, context) => {
755
655
  Object.assign(contents, doc);
756
656
  return contents;
757
657
  }, "de_GetActionCommand");
758
- var de_GetActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
759
- const parsedOutput = {
760
- ...output,
761
- body: await parseErrorBody(output.body, context)
762
- };
763
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
764
- switch (errorCode) {
765
- case "ResourceNotFoundException":
766
- case "com.amazonaws.fis#ResourceNotFoundException":
767
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
768
- case "ValidationException":
769
- case "com.amazonaws.fis#ValidationException":
770
- throw await de_ValidationExceptionRes(parsedOutput, context);
771
- default:
772
- const parsedBody = parsedOutput.body;
773
- return throwDefaultError({
774
- output,
775
- parsedBody,
776
- errorCode
777
- });
778
- }
779
- }, "de_GetActionCommandError");
780
658
  var de_GetExperimentCommand = /* @__PURE__ */ __name(async (output, context) => {
781
659
  if (output.statusCode !== 200 && output.statusCode >= 300) {
782
- return de_GetExperimentCommandError(output, context);
660
+ return de_CommandError(output, context);
783
661
  }
784
662
  const contents = (0, import_smithy_client.map)({
785
663
  $metadata: deserializeMetadata(output)
@@ -791,31 +669,9 @@ var de_GetExperimentCommand = /* @__PURE__ */ __name(async (output, context) =>
791
669
  Object.assign(contents, doc);
792
670
  return contents;
793
671
  }, "de_GetExperimentCommand");
794
- var de_GetExperimentCommandError = /* @__PURE__ */ __name(async (output, context) => {
795
- const parsedOutput = {
796
- ...output,
797
- body: await parseErrorBody(output.body, context)
798
- };
799
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
800
- switch (errorCode) {
801
- case "ResourceNotFoundException":
802
- case "com.amazonaws.fis#ResourceNotFoundException":
803
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
804
- case "ValidationException":
805
- case "com.amazonaws.fis#ValidationException":
806
- throw await de_ValidationExceptionRes(parsedOutput, context);
807
- default:
808
- const parsedBody = parsedOutput.body;
809
- return throwDefaultError({
810
- output,
811
- parsedBody,
812
- errorCode
813
- });
814
- }
815
- }, "de_GetExperimentCommandError");
816
672
  var de_GetExperimentTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
817
673
  if (output.statusCode !== 200 && output.statusCode >= 300) {
818
- return de_GetExperimentTargetAccountConfigurationCommandError(output, context);
674
+ return de_CommandError(output, context);
819
675
  }
820
676
  const contents = (0, import_smithy_client.map)({
821
677
  $metadata: deserializeMetadata(output)
@@ -827,31 +683,9 @@ var de_GetExperimentTargetAccountConfigurationCommand = /* @__PURE__ */ __name(a
827
683
  Object.assign(contents, doc);
828
684
  return contents;
829
685
  }, "de_GetExperimentTargetAccountConfigurationCommand");
830
- var de_GetExperimentTargetAccountConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
831
- const parsedOutput = {
832
- ...output,
833
- body: await parseErrorBody(output.body, context)
834
- };
835
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
836
- switch (errorCode) {
837
- case "ResourceNotFoundException":
838
- case "com.amazonaws.fis#ResourceNotFoundException":
839
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
840
- case "ValidationException":
841
- case "com.amazonaws.fis#ValidationException":
842
- throw await de_ValidationExceptionRes(parsedOutput, context);
843
- default:
844
- const parsedBody = parsedOutput.body;
845
- return throwDefaultError({
846
- output,
847
- parsedBody,
848
- errorCode
849
- });
850
- }
851
- }, "de_GetExperimentTargetAccountConfigurationCommandError");
852
686
  var de_GetExperimentTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
853
687
  if (output.statusCode !== 200 && output.statusCode >= 300) {
854
- return de_GetExperimentTemplateCommandError(output, context);
688
+ return de_CommandError(output, context);
855
689
  }
856
690
  const contents = (0, import_smithy_client.map)({
857
691
  $metadata: deserializeMetadata(output)
@@ -863,31 +697,9 @@ var de_GetExperimentTemplateCommand = /* @__PURE__ */ __name(async (output, cont
863
697
  Object.assign(contents, doc);
864
698
  return contents;
865
699
  }, "de_GetExperimentTemplateCommand");
866
- var de_GetExperimentTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
867
- const parsedOutput = {
868
- ...output,
869
- body: await parseErrorBody(output.body, context)
870
- };
871
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
872
- switch (errorCode) {
873
- case "ResourceNotFoundException":
874
- case "com.amazonaws.fis#ResourceNotFoundException":
875
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
876
- case "ValidationException":
877
- case "com.amazonaws.fis#ValidationException":
878
- throw await de_ValidationExceptionRes(parsedOutput, context);
879
- default:
880
- const parsedBody = parsedOutput.body;
881
- return throwDefaultError({
882
- output,
883
- parsedBody,
884
- errorCode
885
- });
886
- }
887
- }, "de_GetExperimentTemplateCommandError");
888
700
  var de_GetTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
889
701
  if (output.statusCode !== 200 && output.statusCode >= 300) {
890
- return de_GetTargetAccountConfigurationCommandError(output, context);
702
+ return de_CommandError(output, context);
891
703
  }
892
704
  const contents = (0, import_smithy_client.map)({
893
705
  $metadata: deserializeMetadata(output)
@@ -899,31 +711,9 @@ var de_GetTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (outp
899
711
  Object.assign(contents, doc);
900
712
  return contents;
901
713
  }, "de_GetTargetAccountConfigurationCommand");
902
- var de_GetTargetAccountConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
903
- const parsedOutput = {
904
- ...output,
905
- body: await parseErrorBody(output.body, context)
906
- };
907
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
908
- switch (errorCode) {
909
- case "ResourceNotFoundException":
910
- case "com.amazonaws.fis#ResourceNotFoundException":
911
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
912
- case "ValidationException":
913
- case "com.amazonaws.fis#ValidationException":
914
- throw await de_ValidationExceptionRes(parsedOutput, context);
915
- default:
916
- const parsedBody = parsedOutput.body;
917
- return throwDefaultError({
918
- output,
919
- parsedBody,
920
- errorCode
921
- });
922
- }
923
- }, "de_GetTargetAccountConfigurationCommandError");
924
714
  var de_GetTargetResourceTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
925
715
  if (output.statusCode !== 200 && output.statusCode >= 300) {
926
- return de_GetTargetResourceTypeCommandError(output, context);
716
+ return de_CommandError(output, context);
927
717
  }
928
718
  const contents = (0, import_smithy_client.map)({
929
719
  $metadata: deserializeMetadata(output)
@@ -935,31 +725,9 @@ var de_GetTargetResourceTypeCommand = /* @__PURE__ */ __name(async (output, cont
935
725
  Object.assign(contents, doc);
936
726
  return contents;
937
727
  }, "de_GetTargetResourceTypeCommand");
938
- var de_GetTargetResourceTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
939
- const parsedOutput = {
940
- ...output,
941
- body: await parseErrorBody(output.body, context)
942
- };
943
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
944
- switch (errorCode) {
945
- case "ResourceNotFoundException":
946
- case "com.amazonaws.fis#ResourceNotFoundException":
947
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
948
- case "ValidationException":
949
- case "com.amazonaws.fis#ValidationException":
950
- throw await de_ValidationExceptionRes(parsedOutput, context);
951
- default:
952
- const parsedBody = parsedOutput.body;
953
- return throwDefaultError({
954
- output,
955
- parsedBody,
956
- errorCode
957
- });
958
- }
959
- }, "de_GetTargetResourceTypeCommandError");
960
728
  var de_ListActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
961
729
  if (output.statusCode !== 200 && output.statusCode >= 300) {
962
- return de_ListActionsCommandError(output, context);
730
+ return de_CommandError(output, context);
963
731
  }
964
732
  const contents = (0, import_smithy_client.map)({
965
733
  $metadata: deserializeMetadata(output)
@@ -972,28 +740,9 @@ var de_ListActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
972
740
  Object.assign(contents, doc);
973
741
  return contents;
974
742
  }, "de_ListActionsCommand");
975
- var de_ListActionsCommandError = /* @__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 "ValidationException":
983
- case "com.amazonaws.fis#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_ListActionsCommandError");
994
743
  var de_ListExperimentResolvedTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
995
744
  if (output.statusCode !== 200 && output.statusCode >= 300) {
996
- return de_ListExperimentResolvedTargetsCommandError(output, context);
745
+ return de_CommandError(output, context);
997
746
  }
998
747
  const contents = (0, import_smithy_client.map)({
999
748
  $metadata: deserializeMetadata(output)
@@ -1006,31 +755,9 @@ var de_ListExperimentResolvedTargetsCommand = /* @__PURE__ */ __name(async (outp
1006
755
  Object.assign(contents, doc);
1007
756
  return contents;
1008
757
  }, "de_ListExperimentResolvedTargetsCommand");
1009
- var de_ListExperimentResolvedTargetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1010
- const parsedOutput = {
1011
- ...output,
1012
- body: await parseErrorBody(output.body, context)
1013
- };
1014
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1015
- switch (errorCode) {
1016
- case "ResourceNotFoundException":
1017
- case "com.amazonaws.fis#ResourceNotFoundException":
1018
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1019
- case "ValidationException":
1020
- case "com.amazonaws.fis#ValidationException":
1021
- throw await de_ValidationExceptionRes(parsedOutput, context);
1022
- default:
1023
- const parsedBody = parsedOutput.body;
1024
- return throwDefaultError({
1025
- output,
1026
- parsedBody,
1027
- errorCode
1028
- });
1029
- }
1030
- }, "de_ListExperimentResolvedTargetsCommandError");
1031
758
  var de_ListExperimentsCommand = /* @__PURE__ */ __name(async (output, context) => {
1032
759
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1033
- return de_ListExperimentsCommandError(output, context);
760
+ return de_CommandError(output, context);
1034
761
  }
1035
762
  const contents = (0, import_smithy_client.map)({
1036
763
  $metadata: deserializeMetadata(output)
@@ -1043,28 +770,9 @@ var de_ListExperimentsCommand = /* @__PURE__ */ __name(async (output, context) =
1043
770
  Object.assign(contents, doc);
1044
771
  return contents;
1045
772
  }, "de_ListExperimentsCommand");
1046
- var de_ListExperimentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1047
- const parsedOutput = {
1048
- ...output,
1049
- body: await parseErrorBody(output.body, context)
1050
- };
1051
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1052
- switch (errorCode) {
1053
- case "ValidationException":
1054
- case "com.amazonaws.fis#ValidationException":
1055
- throw await de_ValidationExceptionRes(parsedOutput, context);
1056
- default:
1057
- const parsedBody = parsedOutput.body;
1058
- return throwDefaultError({
1059
- output,
1060
- parsedBody,
1061
- errorCode
1062
- });
1063
- }
1064
- }, "de_ListExperimentsCommandError");
1065
773
  var de_ListExperimentTargetAccountConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1066
774
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1067
- return de_ListExperimentTargetAccountConfigurationsCommandError(output, context);
775
+ return de_CommandError(output, context);
1068
776
  }
1069
777
  const contents = (0, import_smithy_client.map)({
1070
778
  $metadata: deserializeMetadata(output)
@@ -1077,31 +785,9 @@ var de_ListExperimentTargetAccountConfigurationsCommand = /* @__PURE__ */ __name
1077
785
  Object.assign(contents, doc);
1078
786
  return contents;
1079
787
  }, "de_ListExperimentTargetAccountConfigurationsCommand");
1080
- var de_ListExperimentTargetAccountConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1081
- const parsedOutput = {
1082
- ...output,
1083
- body: await parseErrorBody(output.body, context)
1084
- };
1085
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1086
- switch (errorCode) {
1087
- case "ResourceNotFoundException":
1088
- case "com.amazonaws.fis#ResourceNotFoundException":
1089
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1090
- case "ValidationException":
1091
- case "com.amazonaws.fis#ValidationException":
1092
- throw await de_ValidationExceptionRes(parsedOutput, context);
1093
- default:
1094
- const parsedBody = parsedOutput.body;
1095
- return throwDefaultError({
1096
- output,
1097
- parsedBody,
1098
- errorCode
1099
- });
1100
- }
1101
- }, "de_ListExperimentTargetAccountConfigurationsCommandError");
1102
788
  var de_ListExperimentTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
1103
789
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1104
- return de_ListExperimentTemplatesCommandError(output, context);
790
+ return de_CommandError(output, context);
1105
791
  }
1106
792
  const contents = (0, import_smithy_client.map)({
1107
793
  $metadata: deserializeMetadata(output)
@@ -1114,28 +800,9 @@ var de_ListExperimentTemplatesCommand = /* @__PURE__ */ __name(async (output, co
1114
800
  Object.assign(contents, doc);
1115
801
  return contents;
1116
802
  }, "de_ListExperimentTemplatesCommand");
1117
- var de_ListExperimentTemplatesCommandError = /* @__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 "ValidationException":
1125
- case "com.amazonaws.fis#ValidationException":
1126
- throw await de_ValidationExceptionRes(parsedOutput, context);
1127
- default:
1128
- const parsedBody = parsedOutput.body;
1129
- return throwDefaultError({
1130
- output,
1131
- parsedBody,
1132
- errorCode
1133
- });
1134
- }
1135
- }, "de_ListExperimentTemplatesCommandError");
1136
803
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1137
804
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1138
- return de_ListTagsForResourceCommandError(output, context);
805
+ return de_CommandError(output, context);
1139
806
  }
1140
807
  const contents = (0, import_smithy_client.map)({
1141
808
  $metadata: deserializeMetadata(output)
@@ -1147,22 +814,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1147
814
  Object.assign(contents, doc);
1148
815
  return contents;
1149
816
  }, "de_ListTagsForResourceCommand");
1150
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1151
- const parsedOutput = {
1152
- ...output,
1153
- body: await parseErrorBody(output.body, context)
1154
- };
1155
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1156
- const parsedBody = parsedOutput.body;
1157
- return throwDefaultError({
1158
- output,
1159
- parsedBody,
1160
- errorCode
1161
- });
1162
- }, "de_ListTagsForResourceCommandError");
1163
817
  var de_ListTargetAccountConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1164
818
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1165
- return de_ListTargetAccountConfigurationsCommandError(output, context);
819
+ return de_CommandError(output, context);
1166
820
  }
1167
821
  const contents = (0, import_smithy_client.map)({
1168
822
  $metadata: deserializeMetadata(output)
@@ -1175,31 +829,9 @@ var de_ListTargetAccountConfigurationsCommand = /* @__PURE__ */ __name(async (ou
1175
829
  Object.assign(contents, doc);
1176
830
  return contents;
1177
831
  }, "de_ListTargetAccountConfigurationsCommand");
1178
- var de_ListTargetAccountConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1179
- const parsedOutput = {
1180
- ...output,
1181
- body: await parseErrorBody(output.body, context)
1182
- };
1183
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1184
- switch (errorCode) {
1185
- case "ResourceNotFoundException":
1186
- case "com.amazonaws.fis#ResourceNotFoundException":
1187
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1188
- case "ValidationException":
1189
- case "com.amazonaws.fis#ValidationException":
1190
- throw await de_ValidationExceptionRes(parsedOutput, context);
1191
- default:
1192
- const parsedBody = parsedOutput.body;
1193
- return throwDefaultError({
1194
- output,
1195
- parsedBody,
1196
- errorCode
1197
- });
1198
- }
1199
- }, "de_ListTargetAccountConfigurationsCommandError");
1200
832
  var de_ListTargetResourceTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
1201
833
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1202
- return de_ListTargetResourceTypesCommandError(output, context);
834
+ return de_CommandError(output, context);
1203
835
  }
1204
836
  const contents = (0, import_smithy_client.map)({
1205
837
  $metadata: deserializeMetadata(output)
@@ -1212,28 +844,9 @@ var de_ListTargetResourceTypesCommand = /* @__PURE__ */ __name(async (output, co
1212
844
  Object.assign(contents, doc);
1213
845
  return contents;
1214
846
  }, "de_ListTargetResourceTypesCommand");
1215
- var de_ListTargetResourceTypesCommandError = /* @__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 "ValidationException":
1223
- case "com.amazonaws.fis#ValidationException":
1224
- throw await de_ValidationExceptionRes(parsedOutput, context);
1225
- default:
1226
- const parsedBody = parsedOutput.body;
1227
- return throwDefaultError({
1228
- output,
1229
- parsedBody,
1230
- errorCode
1231
- });
1232
- }
1233
- }, "de_ListTargetResourceTypesCommandError");
1234
847
  var de_StartExperimentCommand = /* @__PURE__ */ __name(async (output, context) => {
1235
848
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1236
- return de_StartExperimentCommandError(output, context);
849
+ return de_CommandError(output, context);
1237
850
  }
1238
851
  const contents = (0, import_smithy_client.map)({
1239
852
  $metadata: deserializeMetadata(output)
@@ -1245,37 +858,9 @@ var de_StartExperimentCommand = /* @__PURE__ */ __name(async (output, context) =
1245
858
  Object.assign(contents, doc);
1246
859
  return contents;
1247
860
  }, "de_StartExperimentCommand");
1248
- var de_StartExperimentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1249
- const parsedOutput = {
1250
- ...output,
1251
- body: await parseErrorBody(output.body, context)
1252
- };
1253
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1254
- switch (errorCode) {
1255
- case "ConflictException":
1256
- case "com.amazonaws.fis#ConflictException":
1257
- throw await de_ConflictExceptionRes(parsedOutput, context);
1258
- case "ResourceNotFoundException":
1259
- case "com.amazonaws.fis#ResourceNotFoundException":
1260
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1261
- case "ServiceQuotaExceededException":
1262
- case "com.amazonaws.fis#ServiceQuotaExceededException":
1263
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1264
- case "ValidationException":
1265
- case "com.amazonaws.fis#ValidationException":
1266
- throw await de_ValidationExceptionRes(parsedOutput, context);
1267
- default:
1268
- const parsedBody = parsedOutput.body;
1269
- return throwDefaultError({
1270
- output,
1271
- parsedBody,
1272
- errorCode
1273
- });
1274
- }
1275
- }, "de_StartExperimentCommandError");
1276
861
  var de_StopExperimentCommand = /* @__PURE__ */ __name(async (output, context) => {
1277
862
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1278
- return de_StopExperimentCommandError(output, context);
863
+ return de_CommandError(output, context);
1279
864
  }
1280
865
  const contents = (0, import_smithy_client.map)({
1281
866
  $metadata: deserializeMetadata(output)
@@ -1287,31 +872,9 @@ var de_StopExperimentCommand = /* @__PURE__ */ __name(async (output, context) =>
1287
872
  Object.assign(contents, doc);
1288
873
  return contents;
1289
874
  }, "de_StopExperimentCommand");
1290
- var de_StopExperimentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1291
- const parsedOutput = {
1292
- ...output,
1293
- body: await parseErrorBody(output.body, context)
1294
- };
1295
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1296
- switch (errorCode) {
1297
- case "ResourceNotFoundException":
1298
- case "com.amazonaws.fis#ResourceNotFoundException":
1299
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1300
- case "ValidationException":
1301
- case "com.amazonaws.fis#ValidationException":
1302
- throw await de_ValidationExceptionRes(parsedOutput, context);
1303
- default:
1304
- const parsedBody = parsedOutput.body;
1305
- return throwDefaultError({
1306
- output,
1307
- parsedBody,
1308
- errorCode
1309
- });
1310
- }
1311
- }, "de_StopExperimentCommandError");
1312
875
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1313
876
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1314
- return de_TagResourceCommandError(output, context);
877
+ return de_CommandError(output, context);
1315
878
  }
1316
879
  const contents = (0, import_smithy_client.map)({
1317
880
  $metadata: deserializeMetadata(output)
@@ -1319,22 +882,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1319
882
  await (0, import_smithy_client.collectBody)(output.body, context);
1320
883
  return contents;
1321
884
  }, "de_TagResourceCommand");
1322
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1323
- const parsedOutput = {
1324
- ...output,
1325
- body: await parseErrorBody(output.body, context)
1326
- };
1327
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1328
- const parsedBody = parsedOutput.body;
1329
- return throwDefaultError({
1330
- output,
1331
- parsedBody,
1332
- errorCode
1333
- });
1334
- }, "de_TagResourceCommandError");
1335
885
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1336
886
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1337
- return de_UntagResourceCommandError(output, context);
887
+ return de_CommandError(output, context);
1338
888
  }
1339
889
  const contents = (0, import_smithy_client.map)({
1340
890
  $metadata: deserializeMetadata(output)
@@ -1342,22 +892,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1342
892
  await (0, import_smithy_client.collectBody)(output.body, context);
1343
893
  return contents;
1344
894
  }, "de_UntagResourceCommand");
1345
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1346
- const parsedOutput = {
1347
- ...output,
1348
- body: await parseErrorBody(output.body, context)
1349
- };
1350
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1351
- const parsedBody = parsedOutput.body;
1352
- return throwDefaultError({
1353
- output,
1354
- parsedBody,
1355
- errorCode
1356
- });
1357
- }, "de_UntagResourceCommandError");
1358
895
  var de_UpdateExperimentTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1359
896
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1360
- return de_UpdateExperimentTemplateCommandError(output, context);
897
+ return de_CommandError(output, context);
1361
898
  }
1362
899
  const contents = (0, import_smithy_client.map)({
1363
900
  $metadata: deserializeMetadata(output)
@@ -1369,34 +906,9 @@ var de_UpdateExperimentTemplateCommand = /* @__PURE__ */ __name(async (output, c
1369
906
  Object.assign(contents, doc);
1370
907
  return contents;
1371
908
  }, "de_UpdateExperimentTemplateCommand");
1372
- var de_UpdateExperimentTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1373
- const parsedOutput = {
1374
- ...output,
1375
- body: await parseErrorBody(output.body, context)
1376
- };
1377
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1378
- switch (errorCode) {
1379
- case "ResourceNotFoundException":
1380
- case "com.amazonaws.fis#ResourceNotFoundException":
1381
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1382
- case "ServiceQuotaExceededException":
1383
- case "com.amazonaws.fis#ServiceQuotaExceededException":
1384
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1385
- case "ValidationException":
1386
- case "com.amazonaws.fis#ValidationException":
1387
- throw await de_ValidationExceptionRes(parsedOutput, context);
1388
- default:
1389
- const parsedBody = parsedOutput.body;
1390
- return throwDefaultError({
1391
- output,
1392
- parsedBody,
1393
- errorCode
1394
- });
1395
- }
1396
- }, "de_UpdateExperimentTemplateCommandError");
1397
909
  var de_UpdateTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1398
910
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1399
- return de_UpdateTargetAccountConfigurationCommandError(output, context);
911
+ return de_CommandError(output, context);
1400
912
  }
1401
913
  const contents = (0, import_smithy_client.map)({
1402
914
  $metadata: deserializeMetadata(output)
@@ -1408,16 +920,22 @@ var de_UpdateTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (o
1408
920
  Object.assign(contents, doc);
1409
921
  return contents;
1410
922
  }, "de_UpdateTargetAccountConfigurationCommand");
1411
- var de_UpdateTargetAccountConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
923
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1412
924
  const parsedOutput = {
1413
925
  ...output,
1414
926
  body: await parseErrorBody(output.body, context)
1415
927
  };
1416
928
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1417
929
  switch (errorCode) {
930
+ case "ConflictException":
931
+ case "com.amazonaws.fis#ConflictException":
932
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1418
933
  case "ResourceNotFoundException":
1419
934
  case "com.amazonaws.fis#ResourceNotFoundException":
1420
935
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
936
+ case "ServiceQuotaExceededException":
937
+ case "com.amazonaws.fis#ServiceQuotaExceededException":
938
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1421
939
  case "ValidationException":
1422
940
  case "com.amazonaws.fis#ValidationException":
1423
941
  throw await de_ValidationExceptionRes(parsedOutput, context);
@@ -1429,7 +947,7 @@ var de_UpdateTargetAccountConfigurationCommandError = /* @__PURE__ */ __name(asy
1429
947
  errorCode
1430
948
  });
1431
949
  }
1432
- }, "de_UpdateTargetAccountConfigurationCommandError");
950
+ }, "de_CommandError");
1433
951
  var throwDefaultError = (0, import_smithy_client.withBaseException)(FisServiceException);
1434
952
  var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1435
953
  const contents = (0, import_smithy_client.map)({});