@aws-sdk/client-trustedadvisor 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 +15 -288
- package/dist-es/protocols/Aws_restJson1.js +14 -287
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -587,7 +587,7 @@ var se_UpdateRecommendationLifecycleCommand = /* @__PURE__ */ __name(async (inpu
|
|
|
587
587
|
}, "se_UpdateRecommendationLifecycleCommand");
|
|
588
588
|
var de_GetOrganizationRecommendationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
589
589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
590
|
-
return
|
|
590
|
+
return de_CommandError(output, context);
|
|
591
591
|
}
|
|
592
592
|
const contents = (0, import_smithy_client.map)({
|
|
593
593
|
$metadata: deserializeMetadata(output)
|
|
@@ -599,40 +599,9 @@ var de_GetOrganizationRecommendationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
599
599
|
Object.assign(contents, doc);
|
|
600
600
|
return contents;
|
|
601
601
|
}, "de_GetOrganizationRecommendationCommand");
|
|
602
|
-
var de_GetOrganizationRecommendationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
603
|
-
const parsedOutput = {
|
|
604
|
-
...output,
|
|
605
|
-
body: await parseErrorBody(output.body, context)
|
|
606
|
-
};
|
|
607
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
608
|
-
switch (errorCode) {
|
|
609
|
-
case "AccessDeniedException":
|
|
610
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
611
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
612
|
-
case "InternalServerException":
|
|
613
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
614
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
615
|
-
case "ResourceNotFoundException":
|
|
616
|
-
case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
|
|
617
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
618
|
-
case "ThrottlingException":
|
|
619
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
620
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
621
|
-
case "ValidationException":
|
|
622
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
623
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
624
|
-
default:
|
|
625
|
-
const parsedBody = parsedOutput.body;
|
|
626
|
-
return throwDefaultError({
|
|
627
|
-
output,
|
|
628
|
-
parsedBody,
|
|
629
|
-
errorCode
|
|
630
|
-
});
|
|
631
|
-
}
|
|
632
|
-
}, "de_GetOrganizationRecommendationCommandError");
|
|
633
602
|
var de_GetRecommendationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
634
603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
635
|
-
return
|
|
604
|
+
return de_CommandError(output, context);
|
|
636
605
|
}
|
|
637
606
|
const contents = (0, import_smithy_client.map)({
|
|
638
607
|
$metadata: deserializeMetadata(output)
|
|
@@ -644,40 +613,9 @@ var de_GetRecommendationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
644
613
|
Object.assign(contents, doc);
|
|
645
614
|
return contents;
|
|
646
615
|
}, "de_GetRecommendationCommand");
|
|
647
|
-
var de_GetRecommendationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
648
|
-
const parsedOutput = {
|
|
649
|
-
...output,
|
|
650
|
-
body: await parseErrorBody(output.body, context)
|
|
651
|
-
};
|
|
652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
653
|
-
switch (errorCode) {
|
|
654
|
-
case "AccessDeniedException":
|
|
655
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
656
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
657
|
-
case "InternalServerException":
|
|
658
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
659
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
660
|
-
case "ResourceNotFoundException":
|
|
661
|
-
case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
|
|
662
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
663
|
-
case "ThrottlingException":
|
|
664
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
665
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
666
|
-
case "ValidationException":
|
|
667
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
668
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
669
|
-
default:
|
|
670
|
-
const parsedBody = parsedOutput.body;
|
|
671
|
-
return throwDefaultError({
|
|
672
|
-
output,
|
|
673
|
-
parsedBody,
|
|
674
|
-
errorCode
|
|
675
|
-
});
|
|
676
|
-
}
|
|
677
|
-
}, "de_GetRecommendationCommandError");
|
|
678
616
|
var de_ListChecksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
679
617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
680
|
-
return
|
|
618
|
+
return de_CommandError(output, context);
|
|
681
619
|
}
|
|
682
620
|
const contents = (0, import_smithy_client.map)({
|
|
683
621
|
$metadata: deserializeMetadata(output)
|
|
@@ -690,37 +628,9 @@ var de_ListChecksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
690
628
|
Object.assign(contents, doc);
|
|
691
629
|
return contents;
|
|
692
630
|
}, "de_ListChecksCommand");
|
|
693
|
-
var de_ListChecksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
694
|
-
const parsedOutput = {
|
|
695
|
-
...output,
|
|
696
|
-
body: await parseErrorBody(output.body, context)
|
|
697
|
-
};
|
|
698
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
699
|
-
switch (errorCode) {
|
|
700
|
-
case "AccessDeniedException":
|
|
701
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
702
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
703
|
-
case "InternalServerException":
|
|
704
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
705
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
706
|
-
case "ThrottlingException":
|
|
707
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
708
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
709
|
-
case "ValidationException":
|
|
710
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
711
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
712
|
-
default:
|
|
713
|
-
const parsedBody = parsedOutput.body;
|
|
714
|
-
return throwDefaultError({
|
|
715
|
-
output,
|
|
716
|
-
parsedBody,
|
|
717
|
-
errorCode
|
|
718
|
-
});
|
|
719
|
-
}
|
|
720
|
-
}, "de_ListChecksCommandError");
|
|
721
631
|
var de_ListOrganizationRecommendationAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
722
632
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
723
|
-
return
|
|
633
|
+
return de_CommandError(output, context);
|
|
724
634
|
}
|
|
725
635
|
const contents = (0, import_smithy_client.map)({
|
|
726
636
|
$metadata: deserializeMetadata(output)
|
|
@@ -733,40 +643,9 @@ var de_ListOrganizationRecommendationAccountsCommand = /* @__PURE__ */ __name(as
|
|
|
733
643
|
Object.assign(contents, doc);
|
|
734
644
|
return contents;
|
|
735
645
|
}, "de_ListOrganizationRecommendationAccountsCommand");
|
|
736
|
-
var de_ListOrganizationRecommendationAccountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
737
|
-
const parsedOutput = {
|
|
738
|
-
...output,
|
|
739
|
-
body: await parseErrorBody(output.body, context)
|
|
740
|
-
};
|
|
741
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
742
|
-
switch (errorCode) {
|
|
743
|
-
case "AccessDeniedException":
|
|
744
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
745
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
746
|
-
case "InternalServerException":
|
|
747
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
748
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
749
|
-
case "ResourceNotFoundException":
|
|
750
|
-
case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
|
|
751
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
752
|
-
case "ThrottlingException":
|
|
753
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
754
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
755
|
-
case "ValidationException":
|
|
756
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
757
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
758
|
-
default:
|
|
759
|
-
const parsedBody = parsedOutput.body;
|
|
760
|
-
return throwDefaultError({
|
|
761
|
-
output,
|
|
762
|
-
parsedBody,
|
|
763
|
-
errorCode
|
|
764
|
-
});
|
|
765
|
-
}
|
|
766
|
-
}, "de_ListOrganizationRecommendationAccountsCommandError");
|
|
767
646
|
var de_ListOrganizationRecommendationResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
768
647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
769
|
-
return
|
|
648
|
+
return de_CommandError(output, context);
|
|
770
649
|
}
|
|
771
650
|
const contents = (0, import_smithy_client.map)({
|
|
772
651
|
$metadata: deserializeMetadata(output)
|
|
@@ -779,40 +658,9 @@ var de_ListOrganizationRecommendationResourcesCommand = /* @__PURE__ */ __name(a
|
|
|
779
658
|
Object.assign(contents, doc);
|
|
780
659
|
return contents;
|
|
781
660
|
}, "de_ListOrganizationRecommendationResourcesCommand");
|
|
782
|
-
var de_ListOrganizationRecommendationResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
783
|
-
const parsedOutput = {
|
|
784
|
-
...output,
|
|
785
|
-
body: await parseErrorBody(output.body, context)
|
|
786
|
-
};
|
|
787
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
|
-
switch (errorCode) {
|
|
789
|
-
case "AccessDeniedException":
|
|
790
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
791
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
792
|
-
case "InternalServerException":
|
|
793
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
794
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ResourceNotFoundException":
|
|
796
|
-
case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
|
|
797
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
798
|
-
case "ThrottlingException":
|
|
799
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
800
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
801
|
-
case "ValidationException":
|
|
802
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
803
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
804
|
-
default:
|
|
805
|
-
const parsedBody = parsedOutput.body;
|
|
806
|
-
return throwDefaultError({
|
|
807
|
-
output,
|
|
808
|
-
parsedBody,
|
|
809
|
-
errorCode
|
|
810
|
-
});
|
|
811
|
-
}
|
|
812
|
-
}, "de_ListOrganizationRecommendationResourcesCommandError");
|
|
813
661
|
var de_ListOrganizationRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
814
662
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
815
|
-
return
|
|
663
|
+
return de_CommandError(output, context);
|
|
816
664
|
}
|
|
817
665
|
const contents = (0, import_smithy_client.map)({
|
|
818
666
|
$metadata: deserializeMetadata(output)
|
|
@@ -825,37 +673,9 @@ var de_ListOrganizationRecommendationsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
825
673
|
Object.assign(contents, doc);
|
|
826
674
|
return contents;
|
|
827
675
|
}, "de_ListOrganizationRecommendationsCommand");
|
|
828
|
-
var de_ListOrganizationRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
829
|
-
const parsedOutput = {
|
|
830
|
-
...output,
|
|
831
|
-
body: await parseErrorBody(output.body, context)
|
|
832
|
-
};
|
|
833
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
834
|
-
switch (errorCode) {
|
|
835
|
-
case "AccessDeniedException":
|
|
836
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
837
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
838
|
-
case "InternalServerException":
|
|
839
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
840
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
841
|
-
case "ThrottlingException":
|
|
842
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
843
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
844
|
-
case "ValidationException":
|
|
845
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
846
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
847
|
-
default:
|
|
848
|
-
const parsedBody = parsedOutput.body;
|
|
849
|
-
return throwDefaultError({
|
|
850
|
-
output,
|
|
851
|
-
parsedBody,
|
|
852
|
-
errorCode
|
|
853
|
-
});
|
|
854
|
-
}
|
|
855
|
-
}, "de_ListOrganizationRecommendationsCommandError");
|
|
856
676
|
var de_ListRecommendationResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
857
677
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
858
|
-
return
|
|
678
|
+
return de_CommandError(output, context);
|
|
859
679
|
}
|
|
860
680
|
const contents = (0, import_smithy_client.map)({
|
|
861
681
|
$metadata: deserializeMetadata(output)
|
|
@@ -868,40 +688,9 @@ var de_ListRecommendationResourcesCommand = /* @__PURE__ */ __name(async (output
|
|
|
868
688
|
Object.assign(contents, doc);
|
|
869
689
|
return contents;
|
|
870
690
|
}, "de_ListRecommendationResourcesCommand");
|
|
871
|
-
var de_ListRecommendationResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
872
|
-
const parsedOutput = {
|
|
873
|
-
...output,
|
|
874
|
-
body: await parseErrorBody(output.body, context)
|
|
875
|
-
};
|
|
876
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
|
-
switch (errorCode) {
|
|
878
|
-
case "AccessDeniedException":
|
|
879
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
880
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
881
|
-
case "InternalServerException":
|
|
882
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
883
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
884
|
-
case "ResourceNotFoundException":
|
|
885
|
-
case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
|
|
886
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
887
|
-
case "ThrottlingException":
|
|
888
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
889
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ValidationException":
|
|
891
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
892
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
893
|
-
default:
|
|
894
|
-
const parsedBody = parsedOutput.body;
|
|
895
|
-
return throwDefaultError({
|
|
896
|
-
output,
|
|
897
|
-
parsedBody,
|
|
898
|
-
errorCode
|
|
899
|
-
});
|
|
900
|
-
}
|
|
901
|
-
}, "de_ListRecommendationResourcesCommandError");
|
|
902
691
|
var de_ListRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
903
692
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
904
|
-
return
|
|
693
|
+
return de_CommandError(output, context);
|
|
905
694
|
}
|
|
906
695
|
const contents = (0, import_smithy_client.map)({
|
|
907
696
|
$metadata: deserializeMetadata(output)
|
|
@@ -914,37 +703,9 @@ var de_ListRecommendationsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
914
703
|
Object.assign(contents, doc);
|
|
915
704
|
return contents;
|
|
916
705
|
}, "de_ListRecommendationsCommand");
|
|
917
|
-
var de_ListRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
918
|
-
const parsedOutput = {
|
|
919
|
-
...output,
|
|
920
|
-
body: await parseErrorBody(output.body, context)
|
|
921
|
-
};
|
|
922
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
923
|
-
switch (errorCode) {
|
|
924
|
-
case "AccessDeniedException":
|
|
925
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
926
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
927
|
-
case "InternalServerException":
|
|
928
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
929
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
930
|
-
case "ThrottlingException":
|
|
931
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
932
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
933
|
-
case "ValidationException":
|
|
934
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
935
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
936
|
-
default:
|
|
937
|
-
const parsedBody = parsedOutput.body;
|
|
938
|
-
return throwDefaultError({
|
|
939
|
-
output,
|
|
940
|
-
parsedBody,
|
|
941
|
-
errorCode
|
|
942
|
-
});
|
|
943
|
-
}
|
|
944
|
-
}, "de_ListRecommendationsCommandError");
|
|
945
706
|
var de_UpdateOrganizationRecommendationLifecycleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
946
707
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
947
|
-
return
|
|
708
|
+
return de_CommandError(output, context);
|
|
948
709
|
}
|
|
949
710
|
const contents = (0, import_smithy_client.map)({
|
|
950
711
|
$metadata: deserializeMetadata(output)
|
|
@@ -952,43 +713,9 @@ var de_UpdateOrganizationRecommendationLifecycleCommand = /* @__PURE__ */ __name
|
|
|
952
713
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
953
714
|
return contents;
|
|
954
715
|
}, "de_UpdateOrganizationRecommendationLifecycleCommand");
|
|
955
|
-
var de_UpdateOrganizationRecommendationLifecycleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
956
|
-
const parsedOutput = {
|
|
957
|
-
...output,
|
|
958
|
-
body: await parseErrorBody(output.body, context)
|
|
959
|
-
};
|
|
960
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
|
-
switch (errorCode) {
|
|
962
|
-
case "AccessDeniedException":
|
|
963
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
964
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
965
|
-
case "ConflictException":
|
|
966
|
-
case "com.amazonaws.trustedadvisor#ConflictException":
|
|
967
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
968
|
-
case "InternalServerException":
|
|
969
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
970
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
971
|
-
case "ResourceNotFoundException":
|
|
972
|
-
case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
|
|
973
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
974
|
-
case "ThrottlingException":
|
|
975
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
976
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
977
|
-
case "ValidationException":
|
|
978
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
979
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
980
|
-
default:
|
|
981
|
-
const parsedBody = parsedOutput.body;
|
|
982
|
-
return throwDefaultError({
|
|
983
|
-
output,
|
|
984
|
-
parsedBody,
|
|
985
|
-
errorCode
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
}, "de_UpdateOrganizationRecommendationLifecycleCommandError");
|
|
989
716
|
var de_UpdateRecommendationLifecycleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
990
717
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
991
|
-
return
|
|
718
|
+
return de_CommandError(output, context);
|
|
992
719
|
}
|
|
993
720
|
const contents = (0, import_smithy_client.map)({
|
|
994
721
|
$metadata: deserializeMetadata(output)
|
|
@@ -996,7 +723,7 @@ var de_UpdateRecommendationLifecycleCommand = /* @__PURE__ */ __name(async (outp
|
|
|
996
723
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
997
724
|
return contents;
|
|
998
725
|
}, "de_UpdateRecommendationLifecycleCommand");
|
|
999
|
-
var
|
|
726
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1000
727
|
const parsedOutput = {
|
|
1001
728
|
...output,
|
|
1002
729
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1006,9 +733,6 @@ var de_UpdateRecommendationLifecycleCommandError = /* @__PURE__ */ __name(async
|
|
|
1006
733
|
case "AccessDeniedException":
|
|
1007
734
|
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
1008
735
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "ConflictException":
|
|
1010
|
-
case "com.amazonaws.trustedadvisor#ConflictException":
|
|
1011
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1012
736
|
case "InternalServerException":
|
|
1013
737
|
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
1014
738
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -1021,6 +745,9 @@ var de_UpdateRecommendationLifecycleCommandError = /* @__PURE__ */ __name(async
|
|
|
1021
745
|
case "ValidationException":
|
|
1022
746
|
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
1023
747
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
748
|
+
case "ConflictException":
|
|
749
|
+
case "com.amazonaws.trustedadvisor#ConflictException":
|
|
750
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1024
751
|
default:
|
|
1025
752
|
const parsedBody = parsedOutput.body;
|
|
1026
753
|
return throwDefaultError({
|
|
@@ -1029,7 +756,7 @@ var de_UpdateRecommendationLifecycleCommandError = /* @__PURE__ */ __name(async
|
|
|
1029
756
|
errorCode
|
|
1030
757
|
});
|
|
1031
758
|
}
|
|
1032
|
-
}, "
|
|
759
|
+
}, "de_CommandError");
|
|
1033
760
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(TrustedAdvisorServiceException);
|
|
1034
761
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1035
762
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -167,7 +167,7 @@ export const se_UpdateRecommendationLifecycleCommand = async (input, context) =>
|
|
|
167
167
|
};
|
|
168
168
|
export const de_GetOrganizationRecommendationCommand = async (output, context) => {
|
|
169
169
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
170
|
-
return
|
|
170
|
+
return de_CommandError(output, context);
|
|
171
171
|
}
|
|
172
172
|
const contents = map({
|
|
173
173
|
$metadata: deserializeMetadata(output),
|
|
@@ -179,40 +179,9 @@ export const de_GetOrganizationRecommendationCommand = async (output, context) =
|
|
|
179
179
|
Object.assign(contents, doc);
|
|
180
180
|
return contents;
|
|
181
181
|
};
|
|
182
|
-
const de_GetOrganizationRecommendationCommandError = async (output, context) => {
|
|
183
|
-
const parsedOutput = {
|
|
184
|
-
...output,
|
|
185
|
-
body: await parseErrorBody(output.body, context),
|
|
186
|
-
};
|
|
187
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
188
|
-
switch (errorCode) {
|
|
189
|
-
case "AccessDeniedException":
|
|
190
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
191
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
192
|
-
case "InternalServerException":
|
|
193
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
194
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
195
|
-
case "ResourceNotFoundException":
|
|
196
|
-
case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
|
|
197
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
198
|
-
case "ThrottlingException":
|
|
199
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
200
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
201
|
-
case "ValidationException":
|
|
202
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
203
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
204
|
-
default:
|
|
205
|
-
const parsedBody = parsedOutput.body;
|
|
206
|
-
return throwDefaultError({
|
|
207
|
-
output,
|
|
208
|
-
parsedBody,
|
|
209
|
-
errorCode,
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
182
|
export const de_GetRecommendationCommand = async (output, context) => {
|
|
214
183
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
215
|
-
return
|
|
184
|
+
return de_CommandError(output, context);
|
|
216
185
|
}
|
|
217
186
|
const contents = map({
|
|
218
187
|
$metadata: deserializeMetadata(output),
|
|
@@ -224,40 +193,9 @@ export const de_GetRecommendationCommand = async (output, context) => {
|
|
|
224
193
|
Object.assign(contents, doc);
|
|
225
194
|
return contents;
|
|
226
195
|
};
|
|
227
|
-
const de_GetRecommendationCommandError = async (output, context) => {
|
|
228
|
-
const parsedOutput = {
|
|
229
|
-
...output,
|
|
230
|
-
body: await parseErrorBody(output.body, context),
|
|
231
|
-
};
|
|
232
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
233
|
-
switch (errorCode) {
|
|
234
|
-
case "AccessDeniedException":
|
|
235
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
236
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
237
|
-
case "InternalServerException":
|
|
238
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
239
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
240
|
-
case "ResourceNotFoundException":
|
|
241
|
-
case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
|
|
242
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
243
|
-
case "ThrottlingException":
|
|
244
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
245
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
246
|
-
case "ValidationException":
|
|
247
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
248
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
249
|
-
default:
|
|
250
|
-
const parsedBody = parsedOutput.body;
|
|
251
|
-
return throwDefaultError({
|
|
252
|
-
output,
|
|
253
|
-
parsedBody,
|
|
254
|
-
errorCode,
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
};
|
|
258
196
|
export const de_ListChecksCommand = async (output, context) => {
|
|
259
197
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
260
|
-
return
|
|
198
|
+
return de_CommandError(output, context);
|
|
261
199
|
}
|
|
262
200
|
const contents = map({
|
|
263
201
|
$metadata: deserializeMetadata(output),
|
|
@@ -270,37 +208,9 @@ export const de_ListChecksCommand = async (output, context) => {
|
|
|
270
208
|
Object.assign(contents, doc);
|
|
271
209
|
return contents;
|
|
272
210
|
};
|
|
273
|
-
const de_ListChecksCommandError = async (output, context) => {
|
|
274
|
-
const parsedOutput = {
|
|
275
|
-
...output,
|
|
276
|
-
body: await parseErrorBody(output.body, context),
|
|
277
|
-
};
|
|
278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
279
|
-
switch (errorCode) {
|
|
280
|
-
case "AccessDeniedException":
|
|
281
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
282
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
283
|
-
case "InternalServerException":
|
|
284
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
285
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
286
|
-
case "ThrottlingException":
|
|
287
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
288
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
289
|
-
case "ValidationException":
|
|
290
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
291
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
292
|
-
default:
|
|
293
|
-
const parsedBody = parsedOutput.body;
|
|
294
|
-
return throwDefaultError({
|
|
295
|
-
output,
|
|
296
|
-
parsedBody,
|
|
297
|
-
errorCode,
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
};
|
|
301
211
|
export const de_ListOrganizationRecommendationAccountsCommand = async (output, context) => {
|
|
302
212
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
303
|
-
return
|
|
213
|
+
return de_CommandError(output, context);
|
|
304
214
|
}
|
|
305
215
|
const contents = map({
|
|
306
216
|
$metadata: deserializeMetadata(output),
|
|
@@ -313,40 +223,9 @@ export const de_ListOrganizationRecommendationAccountsCommand = async (output, c
|
|
|
313
223
|
Object.assign(contents, doc);
|
|
314
224
|
return contents;
|
|
315
225
|
};
|
|
316
|
-
const de_ListOrganizationRecommendationAccountsCommandError = async (output, context) => {
|
|
317
|
-
const parsedOutput = {
|
|
318
|
-
...output,
|
|
319
|
-
body: await parseErrorBody(output.body, context),
|
|
320
|
-
};
|
|
321
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
322
|
-
switch (errorCode) {
|
|
323
|
-
case "AccessDeniedException":
|
|
324
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
325
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
326
|
-
case "InternalServerException":
|
|
327
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
328
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
329
|
-
case "ResourceNotFoundException":
|
|
330
|
-
case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
|
|
331
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
332
|
-
case "ThrottlingException":
|
|
333
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
334
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
335
|
-
case "ValidationException":
|
|
336
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
337
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
338
|
-
default:
|
|
339
|
-
const parsedBody = parsedOutput.body;
|
|
340
|
-
return throwDefaultError({
|
|
341
|
-
output,
|
|
342
|
-
parsedBody,
|
|
343
|
-
errorCode,
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
226
|
export const de_ListOrganizationRecommendationResourcesCommand = async (output, context) => {
|
|
348
227
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
349
|
-
return
|
|
228
|
+
return de_CommandError(output, context);
|
|
350
229
|
}
|
|
351
230
|
const contents = map({
|
|
352
231
|
$metadata: deserializeMetadata(output),
|
|
@@ -359,40 +238,9 @@ export const de_ListOrganizationRecommendationResourcesCommand = async (output,
|
|
|
359
238
|
Object.assign(contents, doc);
|
|
360
239
|
return contents;
|
|
361
240
|
};
|
|
362
|
-
const de_ListOrganizationRecommendationResourcesCommandError = async (output, context) => {
|
|
363
|
-
const parsedOutput = {
|
|
364
|
-
...output,
|
|
365
|
-
body: await parseErrorBody(output.body, context),
|
|
366
|
-
};
|
|
367
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
368
|
-
switch (errorCode) {
|
|
369
|
-
case "AccessDeniedException":
|
|
370
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
371
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
372
|
-
case "InternalServerException":
|
|
373
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
374
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
375
|
-
case "ResourceNotFoundException":
|
|
376
|
-
case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
|
|
377
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
378
|
-
case "ThrottlingException":
|
|
379
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
380
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
381
|
-
case "ValidationException":
|
|
382
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
383
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
384
|
-
default:
|
|
385
|
-
const parsedBody = parsedOutput.body;
|
|
386
|
-
return throwDefaultError({
|
|
387
|
-
output,
|
|
388
|
-
parsedBody,
|
|
389
|
-
errorCode,
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
241
|
export const de_ListOrganizationRecommendationsCommand = async (output, context) => {
|
|
394
242
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
395
|
-
return
|
|
243
|
+
return de_CommandError(output, context);
|
|
396
244
|
}
|
|
397
245
|
const contents = map({
|
|
398
246
|
$metadata: deserializeMetadata(output),
|
|
@@ -405,37 +253,9 @@ export const de_ListOrganizationRecommendationsCommand = async (output, context)
|
|
|
405
253
|
Object.assign(contents, doc);
|
|
406
254
|
return contents;
|
|
407
255
|
};
|
|
408
|
-
const de_ListOrganizationRecommendationsCommandError = async (output, context) => {
|
|
409
|
-
const parsedOutput = {
|
|
410
|
-
...output,
|
|
411
|
-
body: await parseErrorBody(output.body, context),
|
|
412
|
-
};
|
|
413
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
414
|
-
switch (errorCode) {
|
|
415
|
-
case "AccessDeniedException":
|
|
416
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
417
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
418
|
-
case "InternalServerException":
|
|
419
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
420
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
421
|
-
case "ThrottlingException":
|
|
422
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
423
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
424
|
-
case "ValidationException":
|
|
425
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
426
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
427
|
-
default:
|
|
428
|
-
const parsedBody = parsedOutput.body;
|
|
429
|
-
return throwDefaultError({
|
|
430
|
-
output,
|
|
431
|
-
parsedBody,
|
|
432
|
-
errorCode,
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
};
|
|
436
256
|
export const de_ListRecommendationResourcesCommand = async (output, context) => {
|
|
437
257
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
438
|
-
return
|
|
258
|
+
return de_CommandError(output, context);
|
|
439
259
|
}
|
|
440
260
|
const contents = map({
|
|
441
261
|
$metadata: deserializeMetadata(output),
|
|
@@ -448,40 +268,9 @@ export const de_ListRecommendationResourcesCommand = async (output, context) =>
|
|
|
448
268
|
Object.assign(contents, doc);
|
|
449
269
|
return contents;
|
|
450
270
|
};
|
|
451
|
-
const de_ListRecommendationResourcesCommandError = async (output, context) => {
|
|
452
|
-
const parsedOutput = {
|
|
453
|
-
...output,
|
|
454
|
-
body: await parseErrorBody(output.body, context),
|
|
455
|
-
};
|
|
456
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
457
|
-
switch (errorCode) {
|
|
458
|
-
case "AccessDeniedException":
|
|
459
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
460
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
461
|
-
case "InternalServerException":
|
|
462
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
463
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
464
|
-
case "ResourceNotFoundException":
|
|
465
|
-
case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
|
|
466
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
467
|
-
case "ThrottlingException":
|
|
468
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
469
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
470
|
-
case "ValidationException":
|
|
471
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
472
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
473
|
-
default:
|
|
474
|
-
const parsedBody = parsedOutput.body;
|
|
475
|
-
return throwDefaultError({
|
|
476
|
-
output,
|
|
477
|
-
parsedBody,
|
|
478
|
-
errorCode,
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
271
|
export const de_ListRecommendationsCommand = async (output, context) => {
|
|
483
272
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
484
|
-
return
|
|
273
|
+
return de_CommandError(output, context);
|
|
485
274
|
}
|
|
486
275
|
const contents = map({
|
|
487
276
|
$metadata: deserializeMetadata(output),
|
|
@@ -494,37 +283,9 @@ export const de_ListRecommendationsCommand = async (output, context) => {
|
|
|
494
283
|
Object.assign(contents, doc);
|
|
495
284
|
return contents;
|
|
496
285
|
};
|
|
497
|
-
const de_ListRecommendationsCommandError = 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 "AccessDeniedException":
|
|
505
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
506
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
507
|
-
case "InternalServerException":
|
|
508
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
509
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
510
|
-
case "ThrottlingException":
|
|
511
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
512
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
513
|
-
case "ValidationException":
|
|
514
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
515
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
516
|
-
default:
|
|
517
|
-
const parsedBody = parsedOutput.body;
|
|
518
|
-
return throwDefaultError({
|
|
519
|
-
output,
|
|
520
|
-
parsedBody,
|
|
521
|
-
errorCode,
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
};
|
|
525
286
|
export const de_UpdateOrganizationRecommendationLifecycleCommand = async (output, context) => {
|
|
526
287
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
527
|
-
return
|
|
288
|
+
return de_CommandError(output, context);
|
|
528
289
|
}
|
|
529
290
|
const contents = map({
|
|
530
291
|
$metadata: deserializeMetadata(output),
|
|
@@ -532,43 +293,9 @@ export const de_UpdateOrganizationRecommendationLifecycleCommand = async (output
|
|
|
532
293
|
await collectBody(output.body, context);
|
|
533
294
|
return contents;
|
|
534
295
|
};
|
|
535
|
-
const de_UpdateOrganizationRecommendationLifecycleCommandError = async (output, context) => {
|
|
536
|
-
const parsedOutput = {
|
|
537
|
-
...output,
|
|
538
|
-
body: await parseErrorBody(output.body, context),
|
|
539
|
-
};
|
|
540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
|
-
switch (errorCode) {
|
|
542
|
-
case "AccessDeniedException":
|
|
543
|
-
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
544
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
545
|
-
case "ConflictException":
|
|
546
|
-
case "com.amazonaws.trustedadvisor#ConflictException":
|
|
547
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
548
|
-
case "InternalServerException":
|
|
549
|
-
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
550
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
551
|
-
case "ResourceNotFoundException":
|
|
552
|
-
case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
|
|
553
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
554
|
-
case "ThrottlingException":
|
|
555
|
-
case "com.amazonaws.trustedadvisor#ThrottlingException":
|
|
556
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
557
|
-
case "ValidationException":
|
|
558
|
-
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
559
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
560
|
-
default:
|
|
561
|
-
const parsedBody = parsedOutput.body;
|
|
562
|
-
return throwDefaultError({
|
|
563
|
-
output,
|
|
564
|
-
parsedBody,
|
|
565
|
-
errorCode,
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
};
|
|
569
296
|
export const de_UpdateRecommendationLifecycleCommand = async (output, context) => {
|
|
570
297
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
571
|
-
return
|
|
298
|
+
return de_CommandError(output, context);
|
|
572
299
|
}
|
|
573
300
|
const contents = map({
|
|
574
301
|
$metadata: deserializeMetadata(output),
|
|
@@ -576,7 +303,7 @@ export const de_UpdateRecommendationLifecycleCommand = async (output, context) =
|
|
|
576
303
|
await collectBody(output.body, context);
|
|
577
304
|
return contents;
|
|
578
305
|
};
|
|
579
|
-
const
|
|
306
|
+
const de_CommandError = async (output, context) => {
|
|
580
307
|
const parsedOutput = {
|
|
581
308
|
...output,
|
|
582
309
|
body: await parseErrorBody(output.body, context),
|
|
@@ -586,9 +313,6 @@ const de_UpdateRecommendationLifecycleCommandError = async (output, context) =>
|
|
|
586
313
|
case "AccessDeniedException":
|
|
587
314
|
case "com.amazonaws.trustedadvisor#AccessDeniedException":
|
|
588
315
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
589
|
-
case "ConflictException":
|
|
590
|
-
case "com.amazonaws.trustedadvisor#ConflictException":
|
|
591
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
592
316
|
case "InternalServerException":
|
|
593
317
|
case "com.amazonaws.trustedadvisor#InternalServerException":
|
|
594
318
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -601,6 +325,9 @@ const de_UpdateRecommendationLifecycleCommandError = async (output, context) =>
|
|
|
601
325
|
case "ValidationException":
|
|
602
326
|
case "com.amazonaws.trustedadvisor#ValidationException":
|
|
603
327
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
328
|
+
case "ConflictException":
|
|
329
|
+
case "com.amazonaws.trustedadvisor#ConflictException":
|
|
330
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
604
331
|
default:
|
|
605
332
|
const parsedBody = parsedOutput.body;
|
|
606
333
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-trustedadvisor",
|
|
3
3
|
"description": "AWS SDK for JavaScript Trustedadvisor Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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-trustedadvisor",
|
|
@@ -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.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
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",
|