@aws-sdk/client-support 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
@@ -439,7 +439,7 @@ var se_ResolveCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
439
439
  }, "se_ResolveCaseCommand");
440
440
  var de_AddAttachmentsToSetCommand = /* @__PURE__ */ __name(async (output, context) => {
441
441
  if (output.statusCode >= 300) {
442
- return de_AddAttachmentsToSetCommandError(output, context);
442
+ return de_CommandError(output, context);
443
443
  }
444
444
  const data = await parseBody(output.body, context);
445
445
  let contents = {};
@@ -450,40 +450,9 @@ var de_AddAttachmentsToSetCommand = /* @__PURE__ */ __name(async (output, contex
450
450
  };
451
451
  return response;
452
452
  }, "de_AddAttachmentsToSetCommand");
453
- var de_AddAttachmentsToSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
454
- const parsedOutput = {
455
- ...output,
456
- body: await parseErrorBody(output.body, context)
457
- };
458
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
459
- switch (errorCode) {
460
- case "AttachmentLimitExceeded":
461
- case "com.amazonaws.support#AttachmentLimitExceeded":
462
- throw await de_AttachmentLimitExceededRes(parsedOutput, context);
463
- case "AttachmentSetExpired":
464
- case "com.amazonaws.support#AttachmentSetExpired":
465
- throw await de_AttachmentSetExpiredRes(parsedOutput, context);
466
- case "AttachmentSetIdNotFound":
467
- case "com.amazonaws.support#AttachmentSetIdNotFound":
468
- throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
469
- case "AttachmentSetSizeLimitExceeded":
470
- case "com.amazonaws.support#AttachmentSetSizeLimitExceeded":
471
- throw await de_AttachmentSetSizeLimitExceededRes(parsedOutput, context);
472
- case "InternalServerError":
473
- case "com.amazonaws.support#InternalServerError":
474
- throw await de_InternalServerErrorRes(parsedOutput, context);
475
- default:
476
- const parsedBody = parsedOutput.body;
477
- return throwDefaultError({
478
- output,
479
- parsedBody,
480
- errorCode
481
- });
482
- }
483
- }, "de_AddAttachmentsToSetCommandError");
484
453
  var de_AddCommunicationToCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
485
454
  if (output.statusCode >= 300) {
486
- return de_AddCommunicationToCaseCommandError(output, context);
455
+ return de_CommandError(output, context);
487
456
  }
488
457
  const data = await parseBody(output.body, context);
489
458
  let contents = {};
@@ -494,37 +463,9 @@ var de_AddCommunicationToCaseCommand = /* @__PURE__ */ __name(async (output, con
494
463
  };
495
464
  return response;
496
465
  }, "de_AddCommunicationToCaseCommand");
497
- var de_AddCommunicationToCaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
498
- const parsedOutput = {
499
- ...output,
500
- body: await parseErrorBody(output.body, context)
501
- };
502
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
503
- switch (errorCode) {
504
- case "AttachmentSetExpired":
505
- case "com.amazonaws.support#AttachmentSetExpired":
506
- throw await de_AttachmentSetExpiredRes(parsedOutput, context);
507
- case "AttachmentSetIdNotFound":
508
- case "com.amazonaws.support#AttachmentSetIdNotFound":
509
- throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
510
- case "CaseIdNotFound":
511
- case "com.amazonaws.support#CaseIdNotFound":
512
- throw await de_CaseIdNotFoundRes(parsedOutput, context);
513
- case "InternalServerError":
514
- case "com.amazonaws.support#InternalServerError":
515
- throw await de_InternalServerErrorRes(parsedOutput, context);
516
- default:
517
- const parsedBody = parsedOutput.body;
518
- return throwDefaultError({
519
- output,
520
- parsedBody,
521
- errorCode
522
- });
523
- }
524
- }, "de_AddCommunicationToCaseCommandError");
525
466
  var de_CreateCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
526
467
  if (output.statusCode >= 300) {
527
- return de_CreateCaseCommandError(output, context);
468
+ return de_CommandError(output, context);
528
469
  }
529
470
  const data = await parseBody(output.body, context);
530
471
  let contents = {};
@@ -535,37 +476,9 @@ var de_CreateCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
535
476
  };
536
477
  return response;
537
478
  }, "de_CreateCaseCommand");
538
- var de_CreateCaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
539
- const parsedOutput = {
540
- ...output,
541
- body: await parseErrorBody(output.body, context)
542
- };
543
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
544
- switch (errorCode) {
545
- case "AttachmentSetExpired":
546
- case "com.amazonaws.support#AttachmentSetExpired":
547
- throw await de_AttachmentSetExpiredRes(parsedOutput, context);
548
- case "AttachmentSetIdNotFound":
549
- case "com.amazonaws.support#AttachmentSetIdNotFound":
550
- throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
551
- case "CaseCreationLimitExceeded":
552
- case "com.amazonaws.support#CaseCreationLimitExceeded":
553
- throw await de_CaseCreationLimitExceededRes(parsedOutput, context);
554
- case "InternalServerError":
555
- case "com.amazonaws.support#InternalServerError":
556
- throw await de_InternalServerErrorRes(parsedOutput, context);
557
- default:
558
- const parsedBody = parsedOutput.body;
559
- return throwDefaultError({
560
- output,
561
- parsedBody,
562
- errorCode
563
- });
564
- }
565
- }, "de_CreateCaseCommandError");
566
479
  var de_DescribeAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
567
480
  if (output.statusCode >= 300) {
568
- return de_DescribeAttachmentCommandError(output, context);
481
+ return de_CommandError(output, context);
569
482
  }
570
483
  const data = await parseBody(output.body, context);
571
484
  let contents = {};
@@ -576,34 +489,9 @@ var de_DescribeAttachmentCommand = /* @__PURE__ */ __name(async (output, context
576
489
  };
577
490
  return response;
578
491
  }, "de_DescribeAttachmentCommand");
579
- var de_DescribeAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
580
- const parsedOutput = {
581
- ...output,
582
- body: await parseErrorBody(output.body, context)
583
- };
584
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
585
- switch (errorCode) {
586
- case "AttachmentIdNotFound":
587
- case "com.amazonaws.support#AttachmentIdNotFound":
588
- throw await de_AttachmentIdNotFoundRes(parsedOutput, context);
589
- case "DescribeAttachmentLimitExceeded":
590
- case "com.amazonaws.support#DescribeAttachmentLimitExceeded":
591
- throw await de_DescribeAttachmentLimitExceededRes(parsedOutput, context);
592
- case "InternalServerError":
593
- case "com.amazonaws.support#InternalServerError":
594
- throw await de_InternalServerErrorRes(parsedOutput, context);
595
- default:
596
- const parsedBody = parsedOutput.body;
597
- return throwDefaultError({
598
- output,
599
- parsedBody,
600
- errorCode
601
- });
602
- }
603
- }, "de_DescribeAttachmentCommandError");
604
492
  var de_DescribeCasesCommand = /* @__PURE__ */ __name(async (output, context) => {
605
493
  if (output.statusCode >= 300) {
606
- return de_DescribeCasesCommandError(output, context);
494
+ return de_CommandError(output, context);
607
495
  }
608
496
  const data = await parseBody(output.body, context);
609
497
  let contents = {};
@@ -614,31 +502,9 @@ var de_DescribeCasesCommand = /* @__PURE__ */ __name(async (output, context) =>
614
502
  };
615
503
  return response;
616
504
  }, "de_DescribeCasesCommand");
617
- var de_DescribeCasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
618
- const parsedOutput = {
619
- ...output,
620
- body: await parseErrorBody(output.body, context)
621
- };
622
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
623
- switch (errorCode) {
624
- case "CaseIdNotFound":
625
- case "com.amazonaws.support#CaseIdNotFound":
626
- throw await de_CaseIdNotFoundRes(parsedOutput, context);
627
- case "InternalServerError":
628
- case "com.amazonaws.support#InternalServerError":
629
- throw await de_InternalServerErrorRes(parsedOutput, context);
630
- default:
631
- const parsedBody = parsedOutput.body;
632
- return throwDefaultError({
633
- output,
634
- parsedBody,
635
- errorCode
636
- });
637
- }
638
- }, "de_DescribeCasesCommandError");
639
505
  var de_DescribeCommunicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
640
506
  if (output.statusCode >= 300) {
641
- return de_DescribeCommunicationsCommandError(output, context);
507
+ return de_CommandError(output, context);
642
508
  }
643
509
  const data = await parseBody(output.body, context);
644
510
  let contents = {};
@@ -649,31 +515,9 @@ var de_DescribeCommunicationsCommand = /* @__PURE__ */ __name(async (output, con
649
515
  };
650
516
  return response;
651
517
  }, "de_DescribeCommunicationsCommand");
652
- var de_DescribeCommunicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
653
- const parsedOutput = {
654
- ...output,
655
- body: await parseErrorBody(output.body, context)
656
- };
657
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
658
- switch (errorCode) {
659
- case "CaseIdNotFound":
660
- case "com.amazonaws.support#CaseIdNotFound":
661
- throw await de_CaseIdNotFoundRes(parsedOutput, context);
662
- case "InternalServerError":
663
- case "com.amazonaws.support#InternalServerError":
664
- throw await de_InternalServerErrorRes(parsedOutput, context);
665
- default:
666
- const parsedBody = parsedOutput.body;
667
- return throwDefaultError({
668
- output,
669
- parsedBody,
670
- errorCode
671
- });
672
- }
673
- }, "de_DescribeCommunicationsCommandError");
674
518
  var de_DescribeCreateCaseOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
675
519
  if (output.statusCode >= 300) {
676
- return de_DescribeCreateCaseOptionsCommandError(output, context);
520
+ return de_CommandError(output, context);
677
521
  }
678
522
  const data = await parseBody(output.body, context);
679
523
  let contents = {};
@@ -684,31 +528,9 @@ var de_DescribeCreateCaseOptionsCommand = /* @__PURE__ */ __name(async (output,
684
528
  };
685
529
  return response;
686
530
  }, "de_DescribeCreateCaseOptionsCommand");
687
- var de_DescribeCreateCaseOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
688
- const parsedOutput = {
689
- ...output,
690
- body: await parseErrorBody(output.body, context)
691
- };
692
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
693
- switch (errorCode) {
694
- case "InternalServerError":
695
- case "com.amazonaws.support#InternalServerError":
696
- throw await de_InternalServerErrorRes(parsedOutput, context);
697
- case "ThrottlingException":
698
- case "com.amazonaws.support#ThrottlingException":
699
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
700
- default:
701
- const parsedBody = parsedOutput.body;
702
- return throwDefaultError({
703
- output,
704
- parsedBody,
705
- errorCode
706
- });
707
- }
708
- }, "de_DescribeCreateCaseOptionsCommandError");
709
531
  var de_DescribeServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
710
532
  if (output.statusCode >= 300) {
711
- return de_DescribeServicesCommandError(output, context);
533
+ return de_CommandError(output, context);
712
534
  }
713
535
  const data = await parseBody(output.body, context);
714
536
  let contents = {};
@@ -719,28 +541,9 @@ var de_DescribeServicesCommand = /* @__PURE__ */ __name(async (output, context)
719
541
  };
720
542
  return response;
721
543
  }, "de_DescribeServicesCommand");
722
- var de_DescribeServicesCommandError = /* @__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 "InternalServerError":
730
- case "com.amazonaws.support#InternalServerError":
731
- throw await de_InternalServerErrorRes(parsedOutput, context);
732
- default:
733
- const parsedBody = parsedOutput.body;
734
- return throwDefaultError({
735
- output,
736
- parsedBody,
737
- errorCode
738
- });
739
- }
740
- }, "de_DescribeServicesCommandError");
741
544
  var de_DescribeSeverityLevelsCommand = /* @__PURE__ */ __name(async (output, context) => {
742
545
  if (output.statusCode >= 300) {
743
- return de_DescribeSeverityLevelsCommandError(output, context);
546
+ return de_CommandError(output, context);
744
547
  }
745
548
  const data = await parseBody(output.body, context);
746
549
  let contents = {};
@@ -751,28 +554,9 @@ var de_DescribeSeverityLevelsCommand = /* @__PURE__ */ __name(async (output, con
751
554
  };
752
555
  return response;
753
556
  }, "de_DescribeSeverityLevelsCommand");
754
- var de_DescribeSeverityLevelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
755
- const parsedOutput = {
756
- ...output,
757
- body: await parseErrorBody(output.body, context)
758
- };
759
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
760
- switch (errorCode) {
761
- case "InternalServerError":
762
- case "com.amazonaws.support#InternalServerError":
763
- throw await de_InternalServerErrorRes(parsedOutput, context);
764
- default:
765
- const parsedBody = parsedOutput.body;
766
- return throwDefaultError({
767
- output,
768
- parsedBody,
769
- errorCode
770
- });
771
- }
772
- }, "de_DescribeSeverityLevelsCommandError");
773
557
  var de_DescribeSupportedLanguagesCommand = /* @__PURE__ */ __name(async (output, context) => {
774
558
  if (output.statusCode >= 300) {
775
- return de_DescribeSupportedLanguagesCommandError(output, context);
559
+ return de_CommandError(output, context);
776
560
  }
777
561
  const data = await parseBody(output.body, context);
778
562
  let contents = {};
@@ -783,31 +567,9 @@ var de_DescribeSupportedLanguagesCommand = /* @__PURE__ */ __name(async (output,
783
567
  };
784
568
  return response;
785
569
  }, "de_DescribeSupportedLanguagesCommand");
786
- var de_DescribeSupportedLanguagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
787
- const parsedOutput = {
788
- ...output,
789
- body: await parseErrorBody(output.body, context)
790
- };
791
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
792
- switch (errorCode) {
793
- case "InternalServerError":
794
- case "com.amazonaws.support#InternalServerError":
795
- throw await de_InternalServerErrorRes(parsedOutput, context);
796
- case "ThrottlingException":
797
- case "com.amazonaws.support#ThrottlingException":
798
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
799
- default:
800
- const parsedBody = parsedOutput.body;
801
- return throwDefaultError({
802
- output,
803
- parsedBody,
804
- errorCode
805
- });
806
- }
807
- }, "de_DescribeSupportedLanguagesCommandError");
808
570
  var de_DescribeTrustedAdvisorCheckRefreshStatusesCommand = /* @__PURE__ */ __name(async (output, context) => {
809
571
  if (output.statusCode >= 300) {
810
- return de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError(output, context);
572
+ return de_CommandError(output, context);
811
573
  }
812
574
  const data = await parseBody(output.body, context);
813
575
  let contents = {};
@@ -818,31 +580,9 @@ var de_DescribeTrustedAdvisorCheckRefreshStatusesCommand = /* @__PURE__ */ __nam
818
580
  };
819
581
  return response;
820
582
  }, "de_DescribeTrustedAdvisorCheckRefreshStatusesCommand");
821
- var de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError = /* @__PURE__ */ __name(async (output, context) => {
822
- const parsedOutput = {
823
- ...output,
824
- body: await parseErrorBody(output.body, context)
825
- };
826
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
827
- switch (errorCode) {
828
- case "InternalServerError":
829
- case "com.amazonaws.support#InternalServerError":
830
- throw await de_InternalServerErrorRes(parsedOutput, context);
831
- case "ThrottlingException":
832
- case "com.amazonaws.support#ThrottlingException":
833
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
834
- default:
835
- const parsedBody = parsedOutput.body;
836
- return throwDefaultError({
837
- output,
838
- parsedBody,
839
- errorCode
840
- });
841
- }
842
- }, "de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError");
843
583
  var de_DescribeTrustedAdvisorCheckResultCommand = /* @__PURE__ */ __name(async (output, context) => {
844
584
  if (output.statusCode >= 300) {
845
- return de_DescribeTrustedAdvisorCheckResultCommandError(output, context);
585
+ return de_CommandError(output, context);
846
586
  }
847
587
  const data = await parseBody(output.body, context);
848
588
  let contents = {};
@@ -853,31 +593,9 @@ var de_DescribeTrustedAdvisorCheckResultCommand = /* @__PURE__ */ __name(async (
853
593
  };
854
594
  return response;
855
595
  }, "de_DescribeTrustedAdvisorCheckResultCommand");
856
- var de_DescribeTrustedAdvisorCheckResultCommandError = /* @__PURE__ */ __name(async (output, context) => {
857
- const parsedOutput = {
858
- ...output,
859
- body: await parseErrorBody(output.body, context)
860
- };
861
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
862
- switch (errorCode) {
863
- case "InternalServerError":
864
- case "com.amazonaws.support#InternalServerError":
865
- throw await de_InternalServerErrorRes(parsedOutput, context);
866
- case "ThrottlingException":
867
- case "com.amazonaws.support#ThrottlingException":
868
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
869
- default:
870
- const parsedBody = parsedOutput.body;
871
- return throwDefaultError({
872
- output,
873
- parsedBody,
874
- errorCode
875
- });
876
- }
877
- }, "de_DescribeTrustedAdvisorCheckResultCommandError");
878
596
  var de_DescribeTrustedAdvisorChecksCommand = /* @__PURE__ */ __name(async (output, context) => {
879
597
  if (output.statusCode >= 300) {
880
- return de_DescribeTrustedAdvisorChecksCommandError(output, context);
598
+ return de_CommandError(output, context);
881
599
  }
882
600
  const data = await parseBody(output.body, context);
883
601
  let contents = {};
@@ -888,31 +606,9 @@ var de_DescribeTrustedAdvisorChecksCommand = /* @__PURE__ */ __name(async (outpu
888
606
  };
889
607
  return response;
890
608
  }, "de_DescribeTrustedAdvisorChecksCommand");
891
- var de_DescribeTrustedAdvisorChecksCommandError = /* @__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 "InternalServerError":
899
- case "com.amazonaws.support#InternalServerError":
900
- throw await de_InternalServerErrorRes(parsedOutput, context);
901
- case "ThrottlingException":
902
- case "com.amazonaws.support#ThrottlingException":
903
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
904
- default:
905
- const parsedBody = parsedOutput.body;
906
- return throwDefaultError({
907
- output,
908
- parsedBody,
909
- errorCode
910
- });
911
- }
912
- }, "de_DescribeTrustedAdvisorChecksCommandError");
913
609
  var de_DescribeTrustedAdvisorCheckSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
914
610
  if (output.statusCode >= 300) {
915
- return de_DescribeTrustedAdvisorCheckSummariesCommandError(output, context);
611
+ return de_CommandError(output, context);
916
612
  }
917
613
  const data = await parseBody(output.body, context);
918
614
  let contents = {};
@@ -923,31 +619,9 @@ var de_DescribeTrustedAdvisorCheckSummariesCommand = /* @__PURE__ */ __name(asyn
923
619
  };
924
620
  return response;
925
621
  }, "de_DescribeTrustedAdvisorCheckSummariesCommand");
926
- var de_DescribeTrustedAdvisorCheckSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
927
- const parsedOutput = {
928
- ...output,
929
- body: await parseErrorBody(output.body, context)
930
- };
931
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
932
- switch (errorCode) {
933
- case "InternalServerError":
934
- case "com.amazonaws.support#InternalServerError":
935
- throw await de_InternalServerErrorRes(parsedOutput, context);
936
- case "ThrottlingException":
937
- case "com.amazonaws.support#ThrottlingException":
938
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
939
- default:
940
- const parsedBody = parsedOutput.body;
941
- return throwDefaultError({
942
- output,
943
- parsedBody,
944
- errorCode
945
- });
946
- }
947
- }, "de_DescribeTrustedAdvisorCheckSummariesCommandError");
948
622
  var de_RefreshTrustedAdvisorCheckCommand = /* @__PURE__ */ __name(async (output, context) => {
949
623
  if (output.statusCode >= 300) {
950
- return de_RefreshTrustedAdvisorCheckCommandError(output, context);
624
+ return de_CommandError(output, context);
951
625
  }
952
626
  const data = await parseBody(output.body, context);
953
627
  let contents = {};
@@ -958,28 +632,9 @@ var de_RefreshTrustedAdvisorCheckCommand = /* @__PURE__ */ __name(async (output,
958
632
  };
959
633
  return response;
960
634
  }, "de_RefreshTrustedAdvisorCheckCommand");
961
- var de_RefreshTrustedAdvisorCheckCommandError = /* @__PURE__ */ __name(async (output, context) => {
962
- const parsedOutput = {
963
- ...output,
964
- body: await parseErrorBody(output.body, context)
965
- };
966
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
967
- switch (errorCode) {
968
- case "InternalServerError":
969
- case "com.amazonaws.support#InternalServerError":
970
- throw await de_InternalServerErrorRes(parsedOutput, context);
971
- default:
972
- const parsedBody = parsedOutput.body;
973
- return throwDefaultError({
974
- output,
975
- parsedBody,
976
- errorCode
977
- });
978
- }
979
- }, "de_RefreshTrustedAdvisorCheckCommandError");
980
635
  var de_ResolveCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
981
636
  if (output.statusCode >= 300) {
982
- return de_ResolveCaseCommandError(output, context);
637
+ return de_CommandError(output, context);
983
638
  }
984
639
  const data = await parseBody(output.body, context);
985
640
  let contents = {};
@@ -990,19 +645,43 @@ var de_ResolveCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
990
645
  };
991
646
  return response;
992
647
  }, "de_ResolveCaseCommand");
993
- var de_ResolveCaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
648
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
994
649
  const parsedOutput = {
995
650
  ...output,
996
651
  body: await parseErrorBody(output.body, context)
997
652
  };
998
653
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
999
654
  switch (errorCode) {
1000
- case "CaseIdNotFound":
1001
- case "com.amazonaws.support#CaseIdNotFound":
1002
- throw await de_CaseIdNotFoundRes(parsedOutput, context);
655
+ case "AttachmentLimitExceeded":
656
+ case "com.amazonaws.support#AttachmentLimitExceeded":
657
+ throw await de_AttachmentLimitExceededRes(parsedOutput, context);
658
+ case "AttachmentSetExpired":
659
+ case "com.amazonaws.support#AttachmentSetExpired":
660
+ throw await de_AttachmentSetExpiredRes(parsedOutput, context);
661
+ case "AttachmentSetIdNotFound":
662
+ case "com.amazonaws.support#AttachmentSetIdNotFound":
663
+ throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
664
+ case "AttachmentSetSizeLimitExceeded":
665
+ case "com.amazonaws.support#AttachmentSetSizeLimitExceeded":
666
+ throw await de_AttachmentSetSizeLimitExceededRes(parsedOutput, context);
1003
667
  case "InternalServerError":
1004
668
  case "com.amazonaws.support#InternalServerError":
1005
669
  throw await de_InternalServerErrorRes(parsedOutput, context);
670
+ case "CaseIdNotFound":
671
+ case "com.amazonaws.support#CaseIdNotFound":
672
+ throw await de_CaseIdNotFoundRes(parsedOutput, context);
673
+ case "CaseCreationLimitExceeded":
674
+ case "com.amazonaws.support#CaseCreationLimitExceeded":
675
+ throw await de_CaseCreationLimitExceededRes(parsedOutput, context);
676
+ case "AttachmentIdNotFound":
677
+ case "com.amazonaws.support#AttachmentIdNotFound":
678
+ throw await de_AttachmentIdNotFoundRes(parsedOutput, context);
679
+ case "DescribeAttachmentLimitExceeded":
680
+ case "com.amazonaws.support#DescribeAttachmentLimitExceeded":
681
+ throw await de_DescribeAttachmentLimitExceededRes(parsedOutput, context);
682
+ case "ThrottlingException":
683
+ case "com.amazonaws.support#ThrottlingException":
684
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1006
685
  default:
1007
686
  const parsedBody = parsedOutput.body;
1008
687
  return throwDefaultError({
@@ -1011,7 +690,7 @@ var de_ResolveCaseCommandError = /* @__PURE__ */ __name(async (output, context)
1011
690
  errorCode
1012
691
  });
1013
692
  }
1014
- }, "de_ResolveCaseCommandError");
693
+ }, "de_CommandError");
1015
694
  var de_AttachmentIdNotFoundRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1016
695
  const body = parsedOutput.body;
1017
696
  const deserialized = (0, import_smithy_client._json)(body);
@@ -100,7 +100,7 @@ export const se_ResolveCaseCommand = async (input, context) => {
100
100
  };
101
101
  export const de_AddAttachmentsToSetCommand = async (output, context) => {
102
102
  if (output.statusCode >= 300) {
103
- return de_AddAttachmentsToSetCommandError(output, context);
103
+ return de_CommandError(output, context);
104
104
  }
105
105
  const data = await parseBody(output.body, context);
106
106
  let contents = {};
@@ -111,40 +111,9 @@ export const de_AddAttachmentsToSetCommand = async (output, context) => {
111
111
  };
112
112
  return response;
113
113
  };
114
- const de_AddAttachmentsToSetCommandError = async (output, context) => {
115
- const parsedOutput = {
116
- ...output,
117
- body: await parseErrorBody(output.body, context),
118
- };
119
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
120
- switch (errorCode) {
121
- case "AttachmentLimitExceeded":
122
- case "com.amazonaws.support#AttachmentLimitExceeded":
123
- throw await de_AttachmentLimitExceededRes(parsedOutput, context);
124
- case "AttachmentSetExpired":
125
- case "com.amazonaws.support#AttachmentSetExpired":
126
- throw await de_AttachmentSetExpiredRes(parsedOutput, context);
127
- case "AttachmentSetIdNotFound":
128
- case "com.amazonaws.support#AttachmentSetIdNotFound":
129
- throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
130
- case "AttachmentSetSizeLimitExceeded":
131
- case "com.amazonaws.support#AttachmentSetSizeLimitExceeded":
132
- throw await de_AttachmentSetSizeLimitExceededRes(parsedOutput, context);
133
- case "InternalServerError":
134
- case "com.amazonaws.support#InternalServerError":
135
- throw await de_InternalServerErrorRes(parsedOutput, context);
136
- default:
137
- const parsedBody = parsedOutput.body;
138
- return throwDefaultError({
139
- output,
140
- parsedBody,
141
- errorCode,
142
- });
143
- }
144
- };
145
114
  export const de_AddCommunicationToCaseCommand = async (output, context) => {
146
115
  if (output.statusCode >= 300) {
147
- return de_AddCommunicationToCaseCommandError(output, context);
116
+ return de_CommandError(output, context);
148
117
  }
149
118
  const data = await parseBody(output.body, context);
150
119
  let contents = {};
@@ -155,37 +124,9 @@ export const de_AddCommunicationToCaseCommand = async (output, context) => {
155
124
  };
156
125
  return response;
157
126
  };
158
- const de_AddCommunicationToCaseCommandError = async (output, context) => {
159
- const parsedOutput = {
160
- ...output,
161
- body: await parseErrorBody(output.body, context),
162
- };
163
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
164
- switch (errorCode) {
165
- case "AttachmentSetExpired":
166
- case "com.amazonaws.support#AttachmentSetExpired":
167
- throw await de_AttachmentSetExpiredRes(parsedOutput, context);
168
- case "AttachmentSetIdNotFound":
169
- case "com.amazonaws.support#AttachmentSetIdNotFound":
170
- throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
171
- case "CaseIdNotFound":
172
- case "com.amazonaws.support#CaseIdNotFound":
173
- throw await de_CaseIdNotFoundRes(parsedOutput, context);
174
- case "InternalServerError":
175
- case "com.amazonaws.support#InternalServerError":
176
- throw await de_InternalServerErrorRes(parsedOutput, context);
177
- default:
178
- const parsedBody = parsedOutput.body;
179
- return throwDefaultError({
180
- output,
181
- parsedBody,
182
- errorCode,
183
- });
184
- }
185
- };
186
127
  export const de_CreateCaseCommand = async (output, context) => {
187
128
  if (output.statusCode >= 300) {
188
- return de_CreateCaseCommandError(output, context);
129
+ return de_CommandError(output, context);
189
130
  }
190
131
  const data = await parseBody(output.body, context);
191
132
  let contents = {};
@@ -196,37 +137,9 @@ export const de_CreateCaseCommand = async (output, context) => {
196
137
  };
197
138
  return response;
198
139
  };
199
- const de_CreateCaseCommandError = async (output, context) => {
200
- const parsedOutput = {
201
- ...output,
202
- body: await parseErrorBody(output.body, context),
203
- };
204
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
205
- switch (errorCode) {
206
- case "AttachmentSetExpired":
207
- case "com.amazonaws.support#AttachmentSetExpired":
208
- throw await de_AttachmentSetExpiredRes(parsedOutput, context);
209
- case "AttachmentSetIdNotFound":
210
- case "com.amazonaws.support#AttachmentSetIdNotFound":
211
- throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
212
- case "CaseCreationLimitExceeded":
213
- case "com.amazonaws.support#CaseCreationLimitExceeded":
214
- throw await de_CaseCreationLimitExceededRes(parsedOutput, context);
215
- case "InternalServerError":
216
- case "com.amazonaws.support#InternalServerError":
217
- throw await de_InternalServerErrorRes(parsedOutput, context);
218
- default:
219
- const parsedBody = parsedOutput.body;
220
- return throwDefaultError({
221
- output,
222
- parsedBody,
223
- errorCode,
224
- });
225
- }
226
- };
227
140
  export const de_DescribeAttachmentCommand = async (output, context) => {
228
141
  if (output.statusCode >= 300) {
229
- return de_DescribeAttachmentCommandError(output, context);
142
+ return de_CommandError(output, context);
230
143
  }
231
144
  const data = await parseBody(output.body, context);
232
145
  let contents = {};
@@ -237,34 +150,9 @@ export const de_DescribeAttachmentCommand = async (output, context) => {
237
150
  };
238
151
  return response;
239
152
  };
240
- const de_DescribeAttachmentCommandError = async (output, context) => {
241
- const parsedOutput = {
242
- ...output,
243
- body: await parseErrorBody(output.body, context),
244
- };
245
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
246
- switch (errorCode) {
247
- case "AttachmentIdNotFound":
248
- case "com.amazonaws.support#AttachmentIdNotFound":
249
- throw await de_AttachmentIdNotFoundRes(parsedOutput, context);
250
- case "DescribeAttachmentLimitExceeded":
251
- case "com.amazonaws.support#DescribeAttachmentLimitExceeded":
252
- throw await de_DescribeAttachmentLimitExceededRes(parsedOutput, context);
253
- case "InternalServerError":
254
- case "com.amazonaws.support#InternalServerError":
255
- throw await de_InternalServerErrorRes(parsedOutput, context);
256
- default:
257
- const parsedBody = parsedOutput.body;
258
- return throwDefaultError({
259
- output,
260
- parsedBody,
261
- errorCode,
262
- });
263
- }
264
- };
265
153
  export const de_DescribeCasesCommand = async (output, context) => {
266
154
  if (output.statusCode >= 300) {
267
- return de_DescribeCasesCommandError(output, context);
155
+ return de_CommandError(output, context);
268
156
  }
269
157
  const data = await parseBody(output.body, context);
270
158
  let contents = {};
@@ -275,31 +163,9 @@ export const de_DescribeCasesCommand = async (output, context) => {
275
163
  };
276
164
  return response;
277
165
  };
278
- const de_DescribeCasesCommandError = async (output, context) => {
279
- const parsedOutput = {
280
- ...output,
281
- body: await parseErrorBody(output.body, context),
282
- };
283
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
284
- switch (errorCode) {
285
- case "CaseIdNotFound":
286
- case "com.amazonaws.support#CaseIdNotFound":
287
- throw await de_CaseIdNotFoundRes(parsedOutput, context);
288
- case "InternalServerError":
289
- case "com.amazonaws.support#InternalServerError":
290
- throw await de_InternalServerErrorRes(parsedOutput, context);
291
- default:
292
- const parsedBody = parsedOutput.body;
293
- return throwDefaultError({
294
- output,
295
- parsedBody,
296
- errorCode,
297
- });
298
- }
299
- };
300
166
  export const de_DescribeCommunicationsCommand = async (output, context) => {
301
167
  if (output.statusCode >= 300) {
302
- return de_DescribeCommunicationsCommandError(output, context);
168
+ return de_CommandError(output, context);
303
169
  }
304
170
  const data = await parseBody(output.body, context);
305
171
  let contents = {};
@@ -310,31 +176,9 @@ export const de_DescribeCommunicationsCommand = async (output, context) => {
310
176
  };
311
177
  return response;
312
178
  };
313
- const de_DescribeCommunicationsCommandError = async (output, context) => {
314
- const parsedOutput = {
315
- ...output,
316
- body: await parseErrorBody(output.body, context),
317
- };
318
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
319
- switch (errorCode) {
320
- case "CaseIdNotFound":
321
- case "com.amazonaws.support#CaseIdNotFound":
322
- throw await de_CaseIdNotFoundRes(parsedOutput, context);
323
- case "InternalServerError":
324
- case "com.amazonaws.support#InternalServerError":
325
- throw await de_InternalServerErrorRes(parsedOutput, context);
326
- default:
327
- const parsedBody = parsedOutput.body;
328
- return throwDefaultError({
329
- output,
330
- parsedBody,
331
- errorCode,
332
- });
333
- }
334
- };
335
179
  export const de_DescribeCreateCaseOptionsCommand = async (output, context) => {
336
180
  if (output.statusCode >= 300) {
337
- return de_DescribeCreateCaseOptionsCommandError(output, context);
181
+ return de_CommandError(output, context);
338
182
  }
339
183
  const data = await parseBody(output.body, context);
340
184
  let contents = {};
@@ -345,31 +189,9 @@ export const de_DescribeCreateCaseOptionsCommand = async (output, context) => {
345
189
  };
346
190
  return response;
347
191
  };
348
- const de_DescribeCreateCaseOptionsCommandError = async (output, context) => {
349
- const parsedOutput = {
350
- ...output,
351
- body: await parseErrorBody(output.body, context),
352
- };
353
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
354
- switch (errorCode) {
355
- case "InternalServerError":
356
- case "com.amazonaws.support#InternalServerError":
357
- throw await de_InternalServerErrorRes(parsedOutput, context);
358
- case "ThrottlingException":
359
- case "com.amazonaws.support#ThrottlingException":
360
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
361
- default:
362
- const parsedBody = parsedOutput.body;
363
- return throwDefaultError({
364
- output,
365
- parsedBody,
366
- errorCode,
367
- });
368
- }
369
- };
370
192
  export const de_DescribeServicesCommand = async (output, context) => {
371
193
  if (output.statusCode >= 300) {
372
- return de_DescribeServicesCommandError(output, context);
194
+ return de_CommandError(output, context);
373
195
  }
374
196
  const data = await parseBody(output.body, context);
375
197
  let contents = {};
@@ -380,28 +202,9 @@ export const de_DescribeServicesCommand = async (output, context) => {
380
202
  };
381
203
  return response;
382
204
  };
383
- const de_DescribeServicesCommandError = async (output, context) => {
384
- const parsedOutput = {
385
- ...output,
386
- body: await parseErrorBody(output.body, context),
387
- };
388
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
389
- switch (errorCode) {
390
- case "InternalServerError":
391
- case "com.amazonaws.support#InternalServerError":
392
- throw await de_InternalServerErrorRes(parsedOutput, context);
393
- default:
394
- const parsedBody = parsedOutput.body;
395
- return throwDefaultError({
396
- output,
397
- parsedBody,
398
- errorCode,
399
- });
400
- }
401
- };
402
205
  export const de_DescribeSeverityLevelsCommand = async (output, context) => {
403
206
  if (output.statusCode >= 300) {
404
- return de_DescribeSeverityLevelsCommandError(output, context);
207
+ return de_CommandError(output, context);
405
208
  }
406
209
  const data = await parseBody(output.body, context);
407
210
  let contents = {};
@@ -412,28 +215,9 @@ export const de_DescribeSeverityLevelsCommand = async (output, context) => {
412
215
  };
413
216
  return response;
414
217
  };
415
- const de_DescribeSeverityLevelsCommandError = async (output, context) => {
416
- const parsedOutput = {
417
- ...output,
418
- body: await parseErrorBody(output.body, context),
419
- };
420
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
421
- switch (errorCode) {
422
- case "InternalServerError":
423
- case "com.amazonaws.support#InternalServerError":
424
- throw await de_InternalServerErrorRes(parsedOutput, context);
425
- default:
426
- const parsedBody = parsedOutput.body;
427
- return throwDefaultError({
428
- output,
429
- parsedBody,
430
- errorCode,
431
- });
432
- }
433
- };
434
218
  export const de_DescribeSupportedLanguagesCommand = async (output, context) => {
435
219
  if (output.statusCode >= 300) {
436
- return de_DescribeSupportedLanguagesCommandError(output, context);
220
+ return de_CommandError(output, context);
437
221
  }
438
222
  const data = await parseBody(output.body, context);
439
223
  let contents = {};
@@ -444,31 +228,9 @@ export const de_DescribeSupportedLanguagesCommand = async (output, context) => {
444
228
  };
445
229
  return response;
446
230
  };
447
- const de_DescribeSupportedLanguagesCommandError = async (output, context) => {
448
- const parsedOutput = {
449
- ...output,
450
- body: await parseErrorBody(output.body, context),
451
- };
452
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
453
- switch (errorCode) {
454
- case "InternalServerError":
455
- case "com.amazonaws.support#InternalServerError":
456
- throw await de_InternalServerErrorRes(parsedOutput, context);
457
- case "ThrottlingException":
458
- case "com.amazonaws.support#ThrottlingException":
459
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
460
- default:
461
- const parsedBody = parsedOutput.body;
462
- return throwDefaultError({
463
- output,
464
- parsedBody,
465
- errorCode,
466
- });
467
- }
468
- };
469
231
  export const de_DescribeTrustedAdvisorCheckRefreshStatusesCommand = async (output, context) => {
470
232
  if (output.statusCode >= 300) {
471
- return de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError(output, context);
233
+ return de_CommandError(output, context);
472
234
  }
473
235
  const data = await parseBody(output.body, context);
474
236
  let contents = {};
@@ -479,31 +241,9 @@ export const de_DescribeTrustedAdvisorCheckRefreshStatusesCommand = async (outpu
479
241
  };
480
242
  return response;
481
243
  };
482
- const de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError = async (output, context) => {
483
- const parsedOutput = {
484
- ...output,
485
- body: await parseErrorBody(output.body, context),
486
- };
487
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
488
- switch (errorCode) {
489
- case "InternalServerError":
490
- case "com.amazonaws.support#InternalServerError":
491
- throw await de_InternalServerErrorRes(parsedOutput, context);
492
- case "ThrottlingException":
493
- case "com.amazonaws.support#ThrottlingException":
494
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
495
- default:
496
- const parsedBody = parsedOutput.body;
497
- return throwDefaultError({
498
- output,
499
- parsedBody,
500
- errorCode,
501
- });
502
- }
503
- };
504
244
  export const de_DescribeTrustedAdvisorCheckResultCommand = async (output, context) => {
505
245
  if (output.statusCode >= 300) {
506
- return de_DescribeTrustedAdvisorCheckResultCommandError(output, context);
246
+ return de_CommandError(output, context);
507
247
  }
508
248
  const data = await parseBody(output.body, context);
509
249
  let contents = {};
@@ -514,31 +254,9 @@ export const de_DescribeTrustedAdvisorCheckResultCommand = async (output, contex
514
254
  };
515
255
  return response;
516
256
  };
517
- const de_DescribeTrustedAdvisorCheckResultCommandError = async (output, context) => {
518
- const parsedOutput = {
519
- ...output,
520
- body: await parseErrorBody(output.body, context),
521
- };
522
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
523
- switch (errorCode) {
524
- case "InternalServerError":
525
- case "com.amazonaws.support#InternalServerError":
526
- throw await de_InternalServerErrorRes(parsedOutput, context);
527
- case "ThrottlingException":
528
- case "com.amazonaws.support#ThrottlingException":
529
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
530
- default:
531
- const parsedBody = parsedOutput.body;
532
- return throwDefaultError({
533
- output,
534
- parsedBody,
535
- errorCode,
536
- });
537
- }
538
- };
539
257
  export const de_DescribeTrustedAdvisorChecksCommand = async (output, context) => {
540
258
  if (output.statusCode >= 300) {
541
- return de_DescribeTrustedAdvisorChecksCommandError(output, context);
259
+ return de_CommandError(output, context);
542
260
  }
543
261
  const data = await parseBody(output.body, context);
544
262
  let contents = {};
@@ -549,31 +267,9 @@ export const de_DescribeTrustedAdvisorChecksCommand = async (output, context) =>
549
267
  };
550
268
  return response;
551
269
  };
552
- const de_DescribeTrustedAdvisorChecksCommandError = async (output, context) => {
553
- const parsedOutput = {
554
- ...output,
555
- body: await parseErrorBody(output.body, context),
556
- };
557
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
558
- switch (errorCode) {
559
- case "InternalServerError":
560
- case "com.amazonaws.support#InternalServerError":
561
- throw await de_InternalServerErrorRes(parsedOutput, context);
562
- case "ThrottlingException":
563
- case "com.amazonaws.support#ThrottlingException":
564
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
565
- default:
566
- const parsedBody = parsedOutput.body;
567
- return throwDefaultError({
568
- output,
569
- parsedBody,
570
- errorCode,
571
- });
572
- }
573
- };
574
270
  export const de_DescribeTrustedAdvisorCheckSummariesCommand = async (output, context) => {
575
271
  if (output.statusCode >= 300) {
576
- return de_DescribeTrustedAdvisorCheckSummariesCommandError(output, context);
272
+ return de_CommandError(output, context);
577
273
  }
578
274
  const data = await parseBody(output.body, context);
579
275
  let contents = {};
@@ -584,31 +280,9 @@ export const de_DescribeTrustedAdvisorCheckSummariesCommand = async (output, con
584
280
  };
585
281
  return response;
586
282
  };
587
- const de_DescribeTrustedAdvisorCheckSummariesCommandError = 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 "InternalServerError":
595
- case "com.amazonaws.support#InternalServerError":
596
- throw await de_InternalServerErrorRes(parsedOutput, context);
597
- case "ThrottlingException":
598
- case "com.amazonaws.support#ThrottlingException":
599
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
600
- default:
601
- const parsedBody = parsedOutput.body;
602
- return throwDefaultError({
603
- output,
604
- parsedBody,
605
- errorCode,
606
- });
607
- }
608
- };
609
283
  export const de_RefreshTrustedAdvisorCheckCommand = async (output, context) => {
610
284
  if (output.statusCode >= 300) {
611
- return de_RefreshTrustedAdvisorCheckCommandError(output, context);
285
+ return de_CommandError(output, context);
612
286
  }
613
287
  const data = await parseBody(output.body, context);
614
288
  let contents = {};
@@ -619,28 +293,9 @@ export const de_RefreshTrustedAdvisorCheckCommand = async (output, context) => {
619
293
  };
620
294
  return response;
621
295
  };
622
- const de_RefreshTrustedAdvisorCheckCommandError = async (output, context) => {
623
- const parsedOutput = {
624
- ...output,
625
- body: await parseErrorBody(output.body, context),
626
- };
627
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
628
- switch (errorCode) {
629
- case "InternalServerError":
630
- case "com.amazonaws.support#InternalServerError":
631
- throw await de_InternalServerErrorRes(parsedOutput, context);
632
- default:
633
- const parsedBody = parsedOutput.body;
634
- return throwDefaultError({
635
- output,
636
- parsedBody,
637
- errorCode,
638
- });
639
- }
640
- };
641
296
  export const de_ResolveCaseCommand = async (output, context) => {
642
297
  if (output.statusCode >= 300) {
643
- return de_ResolveCaseCommandError(output, context);
298
+ return de_CommandError(output, context);
644
299
  }
645
300
  const data = await parseBody(output.body, context);
646
301
  let contents = {};
@@ -651,19 +306,43 @@ export const de_ResolveCaseCommand = async (output, context) => {
651
306
  };
652
307
  return response;
653
308
  };
654
- const de_ResolveCaseCommandError = async (output, context) => {
309
+ const de_CommandError = async (output, context) => {
655
310
  const parsedOutput = {
656
311
  ...output,
657
312
  body: await parseErrorBody(output.body, context),
658
313
  };
659
314
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
660
315
  switch (errorCode) {
661
- case "CaseIdNotFound":
662
- case "com.amazonaws.support#CaseIdNotFound":
663
- throw await de_CaseIdNotFoundRes(parsedOutput, context);
316
+ case "AttachmentLimitExceeded":
317
+ case "com.amazonaws.support#AttachmentLimitExceeded":
318
+ throw await de_AttachmentLimitExceededRes(parsedOutput, context);
319
+ case "AttachmentSetExpired":
320
+ case "com.amazonaws.support#AttachmentSetExpired":
321
+ throw await de_AttachmentSetExpiredRes(parsedOutput, context);
322
+ case "AttachmentSetIdNotFound":
323
+ case "com.amazonaws.support#AttachmentSetIdNotFound":
324
+ throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
325
+ case "AttachmentSetSizeLimitExceeded":
326
+ case "com.amazonaws.support#AttachmentSetSizeLimitExceeded":
327
+ throw await de_AttachmentSetSizeLimitExceededRes(parsedOutput, context);
664
328
  case "InternalServerError":
665
329
  case "com.amazonaws.support#InternalServerError":
666
330
  throw await de_InternalServerErrorRes(parsedOutput, context);
331
+ case "CaseIdNotFound":
332
+ case "com.amazonaws.support#CaseIdNotFound":
333
+ throw await de_CaseIdNotFoundRes(parsedOutput, context);
334
+ case "CaseCreationLimitExceeded":
335
+ case "com.amazonaws.support#CaseCreationLimitExceeded":
336
+ throw await de_CaseCreationLimitExceededRes(parsedOutput, context);
337
+ case "AttachmentIdNotFound":
338
+ case "com.amazonaws.support#AttachmentIdNotFound":
339
+ throw await de_AttachmentIdNotFoundRes(parsedOutput, context);
340
+ case "DescribeAttachmentLimitExceeded":
341
+ case "com.amazonaws.support#DescribeAttachmentLimitExceeded":
342
+ throw await de_DescribeAttachmentLimitExceededRes(parsedOutput, context);
343
+ case "ThrottlingException":
344
+ case "com.amazonaws.support#ThrottlingException":
345
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
667
346
  default:
668
347
  const parsedBody = parsedOutput.body;
669
348
  return throwDefaultError({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-support",
3
3
  "description": "AWS SDK for JavaScript Support 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-support",
@@ -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",