@aws-sdk/client-arc-zonal-shift 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
@@ -484,7 +484,7 @@ var se_UpdateZonalShiftCommand = /* @__PURE__ */ __name(async (input, context) =
484
484
  }, "se_UpdateZonalShiftCommand");
485
485
  var de_CancelZonalShiftCommand = /* @__PURE__ */ __name(async (output, context) => {
486
486
  if (output.statusCode !== 200 && output.statusCode >= 300) {
487
- return de_CancelZonalShiftCommandError(output, context);
487
+ return de_CommandError(output, context);
488
488
  }
489
489
  const contents = (0, import_smithy_client.map)({
490
490
  $metadata: deserializeMetadata(output)
@@ -502,43 +502,9 @@ var de_CancelZonalShiftCommand = /* @__PURE__ */ __name(async (output, context)
502
502
  Object.assign(contents, doc);
503
503
  return contents;
504
504
  }, "de_CancelZonalShiftCommand");
505
- var de_CancelZonalShiftCommandError = /* @__PURE__ */ __name(async (output, context) => {
506
- const parsedOutput = {
507
- ...output,
508
- body: await parseErrorBody(output.body, context)
509
- };
510
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
511
- switch (errorCode) {
512
- case "AccessDeniedException":
513
- case "com.amazonaws.arczonalshift#AccessDeniedException":
514
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
515
- case "ConflictException":
516
- case "com.amazonaws.arczonalshift#ConflictException":
517
- throw await de_ConflictExceptionRes(parsedOutput, context);
518
- case "InternalServerException":
519
- case "com.amazonaws.arczonalshift#InternalServerException":
520
- throw await de_InternalServerExceptionRes(parsedOutput, context);
521
- case "ResourceNotFoundException":
522
- case "com.amazonaws.arczonalshift#ResourceNotFoundException":
523
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
524
- case "ThrottlingException":
525
- case "com.amazonaws.arczonalshift#ThrottlingException":
526
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
527
- case "ValidationException":
528
- case "com.amazonaws.arczonalshift#ValidationException":
529
- throw await de_ValidationExceptionRes(parsedOutput, context);
530
- default:
531
- const parsedBody = parsedOutput.body;
532
- return throwDefaultError({
533
- output,
534
- parsedBody,
535
- errorCode
536
- });
537
- }
538
- }, "de_CancelZonalShiftCommandError");
539
505
  var de_CreatePracticeRunConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
540
506
  if (output.statusCode !== 201 && output.statusCode >= 300) {
541
- return de_CreatePracticeRunConfigurationCommandError(output, context);
507
+ return de_CommandError(output, context);
542
508
  }
543
509
  const contents = (0, import_smithy_client.map)({
544
510
  $metadata: deserializeMetadata(output)
@@ -553,43 +519,9 @@ var de_CreatePracticeRunConfigurationCommand = /* @__PURE__ */ __name(async (out
553
519
  Object.assign(contents, doc);
554
520
  return contents;
555
521
  }, "de_CreatePracticeRunConfigurationCommand");
556
- var de_CreatePracticeRunConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
557
- const parsedOutput = {
558
- ...output,
559
- body: await parseErrorBody(output.body, context)
560
- };
561
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
562
- switch (errorCode) {
563
- case "AccessDeniedException":
564
- case "com.amazonaws.arczonalshift#AccessDeniedException":
565
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
566
- case "ConflictException":
567
- case "com.amazonaws.arczonalshift#ConflictException":
568
- throw await de_ConflictExceptionRes(parsedOutput, context);
569
- case "InternalServerException":
570
- case "com.amazonaws.arczonalshift#InternalServerException":
571
- throw await de_InternalServerExceptionRes(parsedOutput, context);
572
- case "ResourceNotFoundException":
573
- case "com.amazonaws.arczonalshift#ResourceNotFoundException":
574
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
575
- case "ThrottlingException":
576
- case "com.amazonaws.arczonalshift#ThrottlingException":
577
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
578
- case "ValidationException":
579
- case "com.amazonaws.arczonalshift#ValidationException":
580
- throw await de_ValidationExceptionRes(parsedOutput, context);
581
- default:
582
- const parsedBody = parsedOutput.body;
583
- return throwDefaultError({
584
- output,
585
- parsedBody,
586
- errorCode
587
- });
588
- }
589
- }, "de_CreatePracticeRunConfigurationCommandError");
590
522
  var de_DeletePracticeRunConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
591
523
  if (output.statusCode !== 200 && output.statusCode >= 300) {
592
- return de_DeletePracticeRunConfigurationCommandError(output, context);
524
+ return de_CommandError(output, context);
593
525
  }
594
526
  const contents = (0, import_smithy_client.map)({
595
527
  $metadata: deserializeMetadata(output)
@@ -603,43 +535,9 @@ var de_DeletePracticeRunConfigurationCommand = /* @__PURE__ */ __name(async (out
603
535
  Object.assign(contents, doc);
604
536
  return contents;
605
537
  }, "de_DeletePracticeRunConfigurationCommand");
606
- var de_DeletePracticeRunConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
607
- const parsedOutput = {
608
- ...output,
609
- body: await parseErrorBody(output.body, context)
610
- };
611
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
612
- switch (errorCode) {
613
- case "AccessDeniedException":
614
- case "com.amazonaws.arczonalshift#AccessDeniedException":
615
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
616
- case "ConflictException":
617
- case "com.amazonaws.arczonalshift#ConflictException":
618
- throw await de_ConflictExceptionRes(parsedOutput, context);
619
- case "InternalServerException":
620
- case "com.amazonaws.arczonalshift#InternalServerException":
621
- throw await de_InternalServerExceptionRes(parsedOutput, context);
622
- case "ResourceNotFoundException":
623
- case "com.amazonaws.arczonalshift#ResourceNotFoundException":
624
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
625
- case "ThrottlingException":
626
- case "com.amazonaws.arczonalshift#ThrottlingException":
627
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
628
- case "ValidationException":
629
- case "com.amazonaws.arczonalshift#ValidationException":
630
- throw await de_ValidationExceptionRes(parsedOutput, context);
631
- default:
632
- const parsedBody = parsedOutput.body;
633
- return throwDefaultError({
634
- output,
635
- parsedBody,
636
- errorCode
637
- });
638
- }
639
- }, "de_DeletePracticeRunConfigurationCommandError");
640
538
  var de_GetManagedResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
641
539
  if (output.statusCode !== 200 && output.statusCode >= 300) {
642
- return de_GetManagedResourceCommandError(output, context);
540
+ return de_CommandError(output, context);
643
541
  }
644
542
  const contents = (0, import_smithy_client.map)({
645
543
  $metadata: deserializeMetadata(output)
@@ -657,40 +555,9 @@ var de_GetManagedResourceCommand = /* @__PURE__ */ __name(async (output, context
657
555
  Object.assign(contents, doc);
658
556
  return contents;
659
557
  }, "de_GetManagedResourceCommand");
660
- var de_GetManagedResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
661
- const parsedOutput = {
662
- ...output,
663
- body: await parseErrorBody(output.body, context)
664
- };
665
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
666
- switch (errorCode) {
667
- case "AccessDeniedException":
668
- case "com.amazonaws.arczonalshift#AccessDeniedException":
669
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
670
- case "InternalServerException":
671
- case "com.amazonaws.arczonalshift#InternalServerException":
672
- throw await de_InternalServerExceptionRes(parsedOutput, context);
673
- case "ResourceNotFoundException":
674
- case "com.amazonaws.arczonalshift#ResourceNotFoundException":
675
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
676
- case "ThrottlingException":
677
- case "com.amazonaws.arczonalshift#ThrottlingException":
678
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
679
- case "ValidationException":
680
- case "com.amazonaws.arczonalshift#ValidationException":
681
- throw await de_ValidationExceptionRes(parsedOutput, context);
682
- default:
683
- const parsedBody = parsedOutput.body;
684
- return throwDefaultError({
685
- output,
686
- parsedBody,
687
- errorCode
688
- });
689
- }
690
- }, "de_GetManagedResourceCommandError");
691
558
  var de_ListAutoshiftsCommand = /* @__PURE__ */ __name(async (output, context) => {
692
559
  if (output.statusCode !== 200 && output.statusCode >= 300) {
693
- return de_ListAutoshiftsCommandError(output, context);
560
+ return de_CommandError(output, context);
694
561
  }
695
562
  const contents = (0, import_smithy_client.map)({
696
563
  $metadata: deserializeMetadata(output)
@@ -703,37 +570,9 @@ var de_ListAutoshiftsCommand = /* @__PURE__ */ __name(async (output, context) =>
703
570
  Object.assign(contents, doc);
704
571
  return contents;
705
572
  }, "de_ListAutoshiftsCommand");
706
- var de_ListAutoshiftsCommandError = /* @__PURE__ */ __name(async (output, context) => {
707
- const parsedOutput = {
708
- ...output,
709
- body: await parseErrorBody(output.body, context)
710
- };
711
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
712
- switch (errorCode) {
713
- case "AccessDeniedException":
714
- case "com.amazonaws.arczonalshift#AccessDeniedException":
715
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
716
- case "InternalServerException":
717
- case "com.amazonaws.arczonalshift#InternalServerException":
718
- throw await de_InternalServerExceptionRes(parsedOutput, context);
719
- case "ThrottlingException":
720
- case "com.amazonaws.arczonalshift#ThrottlingException":
721
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
722
- case "ValidationException":
723
- case "com.amazonaws.arczonalshift#ValidationException":
724
- throw await de_ValidationExceptionRes(parsedOutput, context);
725
- default:
726
- const parsedBody = parsedOutput.body;
727
- return throwDefaultError({
728
- output,
729
- parsedBody,
730
- errorCode
731
- });
732
- }
733
- }, "de_ListAutoshiftsCommandError");
734
573
  var de_ListManagedResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
735
574
  if (output.statusCode !== 200 && output.statusCode >= 300) {
736
- return de_ListManagedResourcesCommandError(output, context);
575
+ return de_CommandError(output, context);
737
576
  }
738
577
  const contents = (0, import_smithy_client.map)({
739
578
  $metadata: deserializeMetadata(output)
@@ -746,37 +585,9 @@ var de_ListManagedResourcesCommand = /* @__PURE__ */ __name(async (output, conte
746
585
  Object.assign(contents, doc);
747
586
  return contents;
748
587
  }, "de_ListManagedResourcesCommand");
749
- var de_ListManagedResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
750
- const parsedOutput = {
751
- ...output,
752
- body: await parseErrorBody(output.body, context)
753
- };
754
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
755
- switch (errorCode) {
756
- case "AccessDeniedException":
757
- case "com.amazonaws.arczonalshift#AccessDeniedException":
758
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
759
- case "InternalServerException":
760
- case "com.amazonaws.arczonalshift#InternalServerException":
761
- throw await de_InternalServerExceptionRes(parsedOutput, context);
762
- case "ThrottlingException":
763
- case "com.amazonaws.arczonalshift#ThrottlingException":
764
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
765
- case "ValidationException":
766
- case "com.amazonaws.arczonalshift#ValidationException":
767
- throw await de_ValidationExceptionRes(parsedOutput, context);
768
- default:
769
- const parsedBody = parsedOutput.body;
770
- return throwDefaultError({
771
- output,
772
- parsedBody,
773
- errorCode
774
- });
775
- }
776
- }, "de_ListManagedResourcesCommandError");
777
588
  var de_ListZonalShiftsCommand = /* @__PURE__ */ __name(async (output, context) => {
778
589
  if (output.statusCode !== 200 && output.statusCode >= 300) {
779
- return de_ListZonalShiftsCommandError(output, context);
590
+ return de_CommandError(output, context);
780
591
  }
781
592
  const contents = (0, import_smithy_client.map)({
782
593
  $metadata: deserializeMetadata(output)
@@ -789,37 +600,9 @@ var de_ListZonalShiftsCommand = /* @__PURE__ */ __name(async (output, context) =
789
600
  Object.assign(contents, doc);
790
601
  return contents;
791
602
  }, "de_ListZonalShiftsCommand");
792
- var de_ListZonalShiftsCommandError = /* @__PURE__ */ __name(async (output, context) => {
793
- const parsedOutput = {
794
- ...output,
795
- body: await parseErrorBody(output.body, context)
796
- };
797
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
798
- switch (errorCode) {
799
- case "AccessDeniedException":
800
- case "com.amazonaws.arczonalshift#AccessDeniedException":
801
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
802
- case "InternalServerException":
803
- case "com.amazonaws.arczonalshift#InternalServerException":
804
- throw await de_InternalServerExceptionRes(parsedOutput, context);
805
- case "ThrottlingException":
806
- case "com.amazonaws.arczonalshift#ThrottlingException":
807
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
808
- case "ValidationException":
809
- case "com.amazonaws.arczonalshift#ValidationException":
810
- throw await de_ValidationExceptionRes(parsedOutput, context);
811
- default:
812
- const parsedBody = parsedOutput.body;
813
- return throwDefaultError({
814
- output,
815
- parsedBody,
816
- errorCode
817
- });
818
- }
819
- }, "de_ListZonalShiftsCommandError");
820
603
  var de_StartZonalShiftCommand = /* @__PURE__ */ __name(async (output, context) => {
821
604
  if (output.statusCode !== 201 && output.statusCode >= 300) {
822
- return de_StartZonalShiftCommandError(output, context);
605
+ return de_CommandError(output, context);
823
606
  }
824
607
  const contents = (0, import_smithy_client.map)({
825
608
  $metadata: deserializeMetadata(output)
@@ -837,43 +620,9 @@ var de_StartZonalShiftCommand = /* @__PURE__ */ __name(async (output, context) =
837
620
  Object.assign(contents, doc);
838
621
  return contents;
839
622
  }, "de_StartZonalShiftCommand");
840
- var de_StartZonalShiftCommandError = /* @__PURE__ */ __name(async (output, context) => {
841
- const parsedOutput = {
842
- ...output,
843
- body: await parseErrorBody(output.body, context)
844
- };
845
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
846
- switch (errorCode) {
847
- case "AccessDeniedException":
848
- case "com.amazonaws.arczonalshift#AccessDeniedException":
849
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
850
- case "ConflictException":
851
- case "com.amazonaws.arczonalshift#ConflictException":
852
- throw await de_ConflictExceptionRes(parsedOutput, context);
853
- case "InternalServerException":
854
- case "com.amazonaws.arczonalshift#InternalServerException":
855
- throw await de_InternalServerExceptionRes(parsedOutput, context);
856
- case "ResourceNotFoundException":
857
- case "com.amazonaws.arczonalshift#ResourceNotFoundException":
858
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
859
- case "ThrottlingException":
860
- case "com.amazonaws.arczonalshift#ThrottlingException":
861
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
862
- case "ValidationException":
863
- case "com.amazonaws.arczonalshift#ValidationException":
864
- throw await de_ValidationExceptionRes(parsedOutput, context);
865
- default:
866
- const parsedBody = parsedOutput.body;
867
- return throwDefaultError({
868
- output,
869
- parsedBody,
870
- errorCode
871
- });
872
- }
873
- }, "de_StartZonalShiftCommandError");
874
623
  var de_UpdatePracticeRunConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
875
624
  if (output.statusCode !== 200 && output.statusCode >= 300) {
876
- return de_UpdatePracticeRunConfigurationCommandError(output, context);
625
+ return de_CommandError(output, context);
877
626
  }
878
627
  const contents = (0, import_smithy_client.map)({
879
628
  $metadata: deserializeMetadata(output)
@@ -888,43 +637,9 @@ var de_UpdatePracticeRunConfigurationCommand = /* @__PURE__ */ __name(async (out
888
637
  Object.assign(contents, doc);
889
638
  return contents;
890
639
  }, "de_UpdatePracticeRunConfigurationCommand");
891
- var de_UpdatePracticeRunConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
892
- const parsedOutput = {
893
- ...output,
894
- body: await parseErrorBody(output.body, context)
895
- };
896
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
897
- switch (errorCode) {
898
- case "AccessDeniedException":
899
- case "com.amazonaws.arczonalshift#AccessDeniedException":
900
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
901
- case "ConflictException":
902
- case "com.amazonaws.arczonalshift#ConflictException":
903
- throw await de_ConflictExceptionRes(parsedOutput, context);
904
- case "InternalServerException":
905
- case "com.amazonaws.arczonalshift#InternalServerException":
906
- throw await de_InternalServerExceptionRes(parsedOutput, context);
907
- case "ResourceNotFoundException":
908
- case "com.amazonaws.arczonalshift#ResourceNotFoundException":
909
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
910
- case "ThrottlingException":
911
- case "com.amazonaws.arczonalshift#ThrottlingException":
912
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
913
- case "ValidationException":
914
- case "com.amazonaws.arczonalshift#ValidationException":
915
- throw await de_ValidationExceptionRes(parsedOutput, context);
916
- default:
917
- const parsedBody = parsedOutput.body;
918
- return throwDefaultError({
919
- output,
920
- parsedBody,
921
- errorCode
922
- });
923
- }
924
- }, "de_UpdatePracticeRunConfigurationCommandError");
925
640
  var de_UpdateZonalAutoshiftConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
926
641
  if (output.statusCode !== 200 && output.statusCode >= 300) {
927
- return de_UpdateZonalAutoshiftConfigurationCommandError(output, context);
642
+ return de_CommandError(output, context);
928
643
  }
929
644
  const contents = (0, import_smithy_client.map)({
930
645
  $metadata: deserializeMetadata(output)
@@ -937,43 +652,9 @@ var de_UpdateZonalAutoshiftConfigurationCommand = /* @__PURE__ */ __name(async (
937
652
  Object.assign(contents, doc);
938
653
  return contents;
939
654
  }, "de_UpdateZonalAutoshiftConfigurationCommand");
940
- var de_UpdateZonalAutoshiftConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
941
- const parsedOutput = {
942
- ...output,
943
- body: await parseErrorBody(output.body, context)
944
- };
945
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
946
- switch (errorCode) {
947
- case "AccessDeniedException":
948
- case "com.amazonaws.arczonalshift#AccessDeniedException":
949
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
950
- case "ConflictException":
951
- case "com.amazonaws.arczonalshift#ConflictException":
952
- throw await de_ConflictExceptionRes(parsedOutput, context);
953
- case "InternalServerException":
954
- case "com.amazonaws.arczonalshift#InternalServerException":
955
- throw await de_InternalServerExceptionRes(parsedOutput, context);
956
- case "ResourceNotFoundException":
957
- case "com.amazonaws.arczonalshift#ResourceNotFoundException":
958
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
959
- case "ThrottlingException":
960
- case "com.amazonaws.arczonalshift#ThrottlingException":
961
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
962
- case "ValidationException":
963
- case "com.amazonaws.arczonalshift#ValidationException":
964
- throw await de_ValidationExceptionRes(parsedOutput, context);
965
- default:
966
- const parsedBody = parsedOutput.body;
967
- return throwDefaultError({
968
- output,
969
- parsedBody,
970
- errorCode
971
- });
972
- }
973
- }, "de_UpdateZonalAutoshiftConfigurationCommandError");
974
655
  var de_UpdateZonalShiftCommand = /* @__PURE__ */ __name(async (output, context) => {
975
656
  if (output.statusCode !== 200 && output.statusCode >= 300) {
976
- return de_UpdateZonalShiftCommandError(output, context);
657
+ return de_CommandError(output, context);
977
658
  }
978
659
  const contents = (0, import_smithy_client.map)({
979
660
  $metadata: deserializeMetadata(output)
@@ -991,7 +672,7 @@ var de_UpdateZonalShiftCommand = /* @__PURE__ */ __name(async (output, context)
991
672
  Object.assign(contents, doc);
992
673
  return contents;
993
674
  }, "de_UpdateZonalShiftCommand");
994
- var de_UpdateZonalShiftCommandError = /* @__PURE__ */ __name(async (output, context) => {
675
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
995
676
  const parsedOutput = {
996
677
  ...output,
997
678
  body: await parseErrorBody(output.body, context)
@@ -1024,7 +705,7 @@ var de_UpdateZonalShiftCommandError = /* @__PURE__ */ __name(async (output, cont
1024
705
  errorCode
1025
706
  });
1026
707
  }
1027
- }, "de_UpdateZonalShiftCommandError");
708
+ }, "de_CommandError");
1028
709
  var throwDefaultError = (0, import_smithy_client.withBaseException)(ARCZonalShiftServiceException);
1029
710
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1030
711
  const contents = (0, import_smithy_client.map)({});
@@ -149,7 +149,7 @@ export const se_UpdateZonalShiftCommand = async (input, context) => {
149
149
  };
150
150
  export const de_CancelZonalShiftCommand = async (output, context) => {
151
151
  if (output.statusCode !== 200 && output.statusCode >= 300) {
152
- return de_CancelZonalShiftCommandError(output, context);
152
+ return de_CommandError(output, context);
153
153
  }
154
154
  const contents = map({
155
155
  $metadata: deserializeMetadata(output),
@@ -167,43 +167,9 @@ export const de_CancelZonalShiftCommand = async (output, context) => {
167
167
  Object.assign(contents, doc);
168
168
  return contents;
169
169
  };
170
- const de_CancelZonalShiftCommandError = async (output, context) => {
171
- const parsedOutput = {
172
- ...output,
173
- body: await parseErrorBody(output.body, context),
174
- };
175
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
176
- switch (errorCode) {
177
- case "AccessDeniedException":
178
- case "com.amazonaws.arczonalshift#AccessDeniedException":
179
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
180
- case "ConflictException":
181
- case "com.amazonaws.arczonalshift#ConflictException":
182
- throw await de_ConflictExceptionRes(parsedOutput, context);
183
- case "InternalServerException":
184
- case "com.amazonaws.arczonalshift#InternalServerException":
185
- throw await de_InternalServerExceptionRes(parsedOutput, context);
186
- case "ResourceNotFoundException":
187
- case "com.amazonaws.arczonalshift#ResourceNotFoundException":
188
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
189
- case "ThrottlingException":
190
- case "com.amazonaws.arczonalshift#ThrottlingException":
191
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
192
- case "ValidationException":
193
- case "com.amazonaws.arczonalshift#ValidationException":
194
- throw await de_ValidationExceptionRes(parsedOutput, context);
195
- default:
196
- const parsedBody = parsedOutput.body;
197
- return throwDefaultError({
198
- output,
199
- parsedBody,
200
- errorCode,
201
- });
202
- }
203
- };
204
170
  export const de_CreatePracticeRunConfigurationCommand = async (output, context) => {
205
171
  if (output.statusCode !== 201 && output.statusCode >= 300) {
206
- return de_CreatePracticeRunConfigurationCommandError(output, context);
172
+ return de_CommandError(output, context);
207
173
  }
208
174
  const contents = map({
209
175
  $metadata: deserializeMetadata(output),
@@ -218,43 +184,9 @@ export const de_CreatePracticeRunConfigurationCommand = async (output, context)
218
184
  Object.assign(contents, doc);
219
185
  return contents;
220
186
  };
221
- const de_CreatePracticeRunConfigurationCommandError = async (output, context) => {
222
- const parsedOutput = {
223
- ...output,
224
- body: await parseErrorBody(output.body, context),
225
- };
226
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
227
- switch (errorCode) {
228
- case "AccessDeniedException":
229
- case "com.amazonaws.arczonalshift#AccessDeniedException":
230
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
231
- case "ConflictException":
232
- case "com.amazonaws.arczonalshift#ConflictException":
233
- throw await de_ConflictExceptionRes(parsedOutput, context);
234
- case "InternalServerException":
235
- case "com.amazonaws.arczonalshift#InternalServerException":
236
- throw await de_InternalServerExceptionRes(parsedOutput, context);
237
- case "ResourceNotFoundException":
238
- case "com.amazonaws.arczonalshift#ResourceNotFoundException":
239
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
240
- case "ThrottlingException":
241
- case "com.amazonaws.arczonalshift#ThrottlingException":
242
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
243
- case "ValidationException":
244
- case "com.amazonaws.arczonalshift#ValidationException":
245
- throw await de_ValidationExceptionRes(parsedOutput, context);
246
- default:
247
- const parsedBody = parsedOutput.body;
248
- return throwDefaultError({
249
- output,
250
- parsedBody,
251
- errorCode,
252
- });
253
- }
254
- };
255
187
  export const de_DeletePracticeRunConfigurationCommand = async (output, context) => {
256
188
  if (output.statusCode !== 200 && output.statusCode >= 300) {
257
- return de_DeletePracticeRunConfigurationCommandError(output, context);
189
+ return de_CommandError(output, context);
258
190
  }
259
191
  const contents = map({
260
192
  $metadata: deserializeMetadata(output),
@@ -268,43 +200,9 @@ export const de_DeletePracticeRunConfigurationCommand = async (output, context)
268
200
  Object.assign(contents, doc);
269
201
  return contents;
270
202
  };
271
- const de_DeletePracticeRunConfigurationCommandError = async (output, context) => {
272
- const parsedOutput = {
273
- ...output,
274
- body: await parseErrorBody(output.body, context),
275
- };
276
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
277
- switch (errorCode) {
278
- case "AccessDeniedException":
279
- case "com.amazonaws.arczonalshift#AccessDeniedException":
280
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
281
- case "ConflictException":
282
- case "com.amazonaws.arczonalshift#ConflictException":
283
- throw await de_ConflictExceptionRes(parsedOutput, context);
284
- case "InternalServerException":
285
- case "com.amazonaws.arczonalshift#InternalServerException":
286
- throw await de_InternalServerExceptionRes(parsedOutput, context);
287
- case "ResourceNotFoundException":
288
- case "com.amazonaws.arczonalshift#ResourceNotFoundException":
289
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
290
- case "ThrottlingException":
291
- case "com.amazonaws.arczonalshift#ThrottlingException":
292
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
293
- case "ValidationException":
294
- case "com.amazonaws.arczonalshift#ValidationException":
295
- throw await de_ValidationExceptionRes(parsedOutput, context);
296
- default:
297
- const parsedBody = parsedOutput.body;
298
- return throwDefaultError({
299
- output,
300
- parsedBody,
301
- errorCode,
302
- });
303
- }
304
- };
305
203
  export const de_GetManagedResourceCommand = async (output, context) => {
306
204
  if (output.statusCode !== 200 && output.statusCode >= 300) {
307
- return de_GetManagedResourceCommandError(output, context);
205
+ return de_CommandError(output, context);
308
206
  }
309
207
  const contents = map({
310
208
  $metadata: deserializeMetadata(output),
@@ -322,40 +220,9 @@ export const de_GetManagedResourceCommand = async (output, context) => {
322
220
  Object.assign(contents, doc);
323
221
  return contents;
324
222
  };
325
- const de_GetManagedResourceCommandError = async (output, context) => {
326
- const parsedOutput = {
327
- ...output,
328
- body: await parseErrorBody(output.body, context),
329
- };
330
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
331
- switch (errorCode) {
332
- case "AccessDeniedException":
333
- case "com.amazonaws.arczonalshift#AccessDeniedException":
334
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
335
- case "InternalServerException":
336
- case "com.amazonaws.arczonalshift#InternalServerException":
337
- throw await de_InternalServerExceptionRes(parsedOutput, context);
338
- case "ResourceNotFoundException":
339
- case "com.amazonaws.arczonalshift#ResourceNotFoundException":
340
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
341
- case "ThrottlingException":
342
- case "com.amazonaws.arczonalshift#ThrottlingException":
343
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
344
- case "ValidationException":
345
- case "com.amazonaws.arczonalshift#ValidationException":
346
- throw await de_ValidationExceptionRes(parsedOutput, context);
347
- default:
348
- const parsedBody = parsedOutput.body;
349
- return throwDefaultError({
350
- output,
351
- parsedBody,
352
- errorCode,
353
- });
354
- }
355
- };
356
223
  export const de_ListAutoshiftsCommand = async (output, context) => {
357
224
  if (output.statusCode !== 200 && output.statusCode >= 300) {
358
- return de_ListAutoshiftsCommandError(output, context);
225
+ return de_CommandError(output, context);
359
226
  }
360
227
  const contents = map({
361
228
  $metadata: deserializeMetadata(output),
@@ -368,37 +235,9 @@ export const de_ListAutoshiftsCommand = async (output, context) => {
368
235
  Object.assign(contents, doc);
369
236
  return contents;
370
237
  };
371
- const de_ListAutoshiftsCommandError = async (output, context) => {
372
- const parsedOutput = {
373
- ...output,
374
- body: await parseErrorBody(output.body, context),
375
- };
376
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
377
- switch (errorCode) {
378
- case "AccessDeniedException":
379
- case "com.amazonaws.arczonalshift#AccessDeniedException":
380
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
381
- case "InternalServerException":
382
- case "com.amazonaws.arczonalshift#InternalServerException":
383
- throw await de_InternalServerExceptionRes(parsedOutput, context);
384
- case "ThrottlingException":
385
- case "com.amazonaws.arczonalshift#ThrottlingException":
386
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
387
- case "ValidationException":
388
- case "com.amazonaws.arczonalshift#ValidationException":
389
- throw await de_ValidationExceptionRes(parsedOutput, context);
390
- default:
391
- const parsedBody = parsedOutput.body;
392
- return throwDefaultError({
393
- output,
394
- parsedBody,
395
- errorCode,
396
- });
397
- }
398
- };
399
238
  export const de_ListManagedResourcesCommand = async (output, context) => {
400
239
  if (output.statusCode !== 200 && output.statusCode >= 300) {
401
- return de_ListManagedResourcesCommandError(output, context);
240
+ return de_CommandError(output, context);
402
241
  }
403
242
  const contents = map({
404
243
  $metadata: deserializeMetadata(output),
@@ -411,37 +250,9 @@ export const de_ListManagedResourcesCommand = async (output, context) => {
411
250
  Object.assign(contents, doc);
412
251
  return contents;
413
252
  };
414
- const de_ListManagedResourcesCommandError = async (output, context) => {
415
- const parsedOutput = {
416
- ...output,
417
- body: await parseErrorBody(output.body, context),
418
- };
419
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
420
- switch (errorCode) {
421
- case "AccessDeniedException":
422
- case "com.amazonaws.arczonalshift#AccessDeniedException":
423
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
424
- case "InternalServerException":
425
- case "com.amazonaws.arczonalshift#InternalServerException":
426
- throw await de_InternalServerExceptionRes(parsedOutput, context);
427
- case "ThrottlingException":
428
- case "com.amazonaws.arczonalshift#ThrottlingException":
429
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
430
- case "ValidationException":
431
- case "com.amazonaws.arczonalshift#ValidationException":
432
- throw await de_ValidationExceptionRes(parsedOutput, context);
433
- default:
434
- const parsedBody = parsedOutput.body;
435
- return throwDefaultError({
436
- output,
437
- parsedBody,
438
- errorCode,
439
- });
440
- }
441
- };
442
253
  export const de_ListZonalShiftsCommand = async (output, context) => {
443
254
  if (output.statusCode !== 200 && output.statusCode >= 300) {
444
- return de_ListZonalShiftsCommandError(output, context);
255
+ return de_CommandError(output, context);
445
256
  }
446
257
  const contents = map({
447
258
  $metadata: deserializeMetadata(output),
@@ -454,37 +265,9 @@ export const de_ListZonalShiftsCommand = async (output, context) => {
454
265
  Object.assign(contents, doc);
455
266
  return contents;
456
267
  };
457
- const de_ListZonalShiftsCommandError = async (output, context) => {
458
- const parsedOutput = {
459
- ...output,
460
- body: await parseErrorBody(output.body, context),
461
- };
462
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
463
- switch (errorCode) {
464
- case "AccessDeniedException":
465
- case "com.amazonaws.arczonalshift#AccessDeniedException":
466
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
467
- case "InternalServerException":
468
- case "com.amazonaws.arczonalshift#InternalServerException":
469
- throw await de_InternalServerExceptionRes(parsedOutput, context);
470
- case "ThrottlingException":
471
- case "com.amazonaws.arczonalshift#ThrottlingException":
472
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
473
- case "ValidationException":
474
- case "com.amazonaws.arczonalshift#ValidationException":
475
- throw await de_ValidationExceptionRes(parsedOutput, context);
476
- default:
477
- const parsedBody = parsedOutput.body;
478
- return throwDefaultError({
479
- output,
480
- parsedBody,
481
- errorCode,
482
- });
483
- }
484
- };
485
268
  export const de_StartZonalShiftCommand = async (output, context) => {
486
269
  if (output.statusCode !== 201 && output.statusCode >= 300) {
487
- return de_StartZonalShiftCommandError(output, context);
270
+ return de_CommandError(output, context);
488
271
  }
489
272
  const contents = map({
490
273
  $metadata: deserializeMetadata(output),
@@ -502,43 +285,9 @@ export const de_StartZonalShiftCommand = async (output, context) => {
502
285
  Object.assign(contents, doc);
503
286
  return contents;
504
287
  };
505
- const de_StartZonalShiftCommandError = async (output, context) => {
506
- const parsedOutput = {
507
- ...output,
508
- body: await parseErrorBody(output.body, context),
509
- };
510
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
511
- switch (errorCode) {
512
- case "AccessDeniedException":
513
- case "com.amazonaws.arczonalshift#AccessDeniedException":
514
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
515
- case "ConflictException":
516
- case "com.amazonaws.arczonalshift#ConflictException":
517
- throw await de_ConflictExceptionRes(parsedOutput, context);
518
- case "InternalServerException":
519
- case "com.amazonaws.arczonalshift#InternalServerException":
520
- throw await de_InternalServerExceptionRes(parsedOutput, context);
521
- case "ResourceNotFoundException":
522
- case "com.amazonaws.arczonalshift#ResourceNotFoundException":
523
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
524
- case "ThrottlingException":
525
- case "com.amazonaws.arczonalshift#ThrottlingException":
526
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
527
- case "ValidationException":
528
- case "com.amazonaws.arczonalshift#ValidationException":
529
- throw await de_ValidationExceptionRes(parsedOutput, context);
530
- default:
531
- const parsedBody = parsedOutput.body;
532
- return throwDefaultError({
533
- output,
534
- parsedBody,
535
- errorCode,
536
- });
537
- }
538
- };
539
288
  export const de_UpdatePracticeRunConfigurationCommand = async (output, context) => {
540
289
  if (output.statusCode !== 200 && output.statusCode >= 300) {
541
- return de_UpdatePracticeRunConfigurationCommandError(output, context);
290
+ return de_CommandError(output, context);
542
291
  }
543
292
  const contents = map({
544
293
  $metadata: deserializeMetadata(output),
@@ -553,43 +302,9 @@ export const de_UpdatePracticeRunConfigurationCommand = async (output, context)
553
302
  Object.assign(contents, doc);
554
303
  return contents;
555
304
  };
556
- const de_UpdatePracticeRunConfigurationCommandError = async (output, context) => {
557
- const parsedOutput = {
558
- ...output,
559
- body: await parseErrorBody(output.body, context),
560
- };
561
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
562
- switch (errorCode) {
563
- case "AccessDeniedException":
564
- case "com.amazonaws.arczonalshift#AccessDeniedException":
565
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
566
- case "ConflictException":
567
- case "com.amazonaws.arczonalshift#ConflictException":
568
- throw await de_ConflictExceptionRes(parsedOutput, context);
569
- case "InternalServerException":
570
- case "com.amazonaws.arczonalshift#InternalServerException":
571
- throw await de_InternalServerExceptionRes(parsedOutput, context);
572
- case "ResourceNotFoundException":
573
- case "com.amazonaws.arczonalshift#ResourceNotFoundException":
574
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
575
- case "ThrottlingException":
576
- case "com.amazonaws.arczonalshift#ThrottlingException":
577
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
578
- case "ValidationException":
579
- case "com.amazonaws.arczonalshift#ValidationException":
580
- throw await de_ValidationExceptionRes(parsedOutput, context);
581
- default:
582
- const parsedBody = parsedOutput.body;
583
- return throwDefaultError({
584
- output,
585
- parsedBody,
586
- errorCode,
587
- });
588
- }
589
- };
590
305
  export const de_UpdateZonalAutoshiftConfigurationCommand = async (output, context) => {
591
306
  if (output.statusCode !== 200 && output.statusCode >= 300) {
592
- return de_UpdateZonalAutoshiftConfigurationCommandError(output, context);
307
+ return de_CommandError(output, context);
593
308
  }
594
309
  const contents = map({
595
310
  $metadata: deserializeMetadata(output),
@@ -602,43 +317,9 @@ export const de_UpdateZonalAutoshiftConfigurationCommand = async (output, contex
602
317
  Object.assign(contents, doc);
603
318
  return contents;
604
319
  };
605
- const de_UpdateZonalAutoshiftConfigurationCommandError = async (output, context) => {
606
- const parsedOutput = {
607
- ...output,
608
- body: await parseErrorBody(output.body, context),
609
- };
610
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
611
- switch (errorCode) {
612
- case "AccessDeniedException":
613
- case "com.amazonaws.arczonalshift#AccessDeniedException":
614
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
615
- case "ConflictException":
616
- case "com.amazonaws.arczonalshift#ConflictException":
617
- throw await de_ConflictExceptionRes(parsedOutput, context);
618
- case "InternalServerException":
619
- case "com.amazonaws.arczonalshift#InternalServerException":
620
- throw await de_InternalServerExceptionRes(parsedOutput, context);
621
- case "ResourceNotFoundException":
622
- case "com.amazonaws.arczonalshift#ResourceNotFoundException":
623
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
624
- case "ThrottlingException":
625
- case "com.amazonaws.arczonalshift#ThrottlingException":
626
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
627
- case "ValidationException":
628
- case "com.amazonaws.arczonalshift#ValidationException":
629
- throw await de_ValidationExceptionRes(parsedOutput, context);
630
- default:
631
- const parsedBody = parsedOutput.body;
632
- return throwDefaultError({
633
- output,
634
- parsedBody,
635
- errorCode,
636
- });
637
- }
638
- };
639
320
  export const de_UpdateZonalShiftCommand = async (output, context) => {
640
321
  if (output.statusCode !== 200 && output.statusCode >= 300) {
641
- return de_UpdateZonalShiftCommandError(output, context);
322
+ return de_CommandError(output, context);
642
323
  }
643
324
  const contents = map({
644
325
  $metadata: deserializeMetadata(output),
@@ -656,7 +337,7 @@ export const de_UpdateZonalShiftCommand = async (output, context) => {
656
337
  Object.assign(contents, doc);
657
338
  return contents;
658
339
  };
659
- const de_UpdateZonalShiftCommandError = async (output, context) => {
340
+ const de_CommandError = async (output, context) => {
660
341
  const parsedOutput = {
661
342
  ...output,
662
343
  body: await parseErrorBody(output.body, context),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-arc-zonal-shift",
3
3
  "description": "AWS SDK for JavaScript Arc Zonal Shift Client for Node.js, Browser and React Native",
4
- "version": "3.504.0",
4
+ "version": "3.507.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-arc-zonal-shift",
@@ -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.507.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",