@aws-sdk/client-mwaa 3.503.1 → 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 +19 -254
- package/dist-es/protocols/Aws_restJson1.js +18 -253
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -594,7 +594,7 @@ var se_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
594
594
|
}, "se_UpdateEnvironmentCommand");
|
|
595
595
|
var de_CreateCliTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
596
596
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
597
|
-
return
|
|
597
|
+
return de_CommandError(output, context);
|
|
598
598
|
}
|
|
599
599
|
const contents = (0, import_smithy_client.map)({
|
|
600
600
|
$metadata: deserializeMetadata(output)
|
|
@@ -607,28 +607,9 @@ var de_CreateCliTokenCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
607
607
|
Object.assign(contents, doc);
|
|
608
608
|
return contents;
|
|
609
609
|
}, "de_CreateCliTokenCommand");
|
|
610
|
-
var de_CreateCliTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
611
|
-
const parsedOutput = {
|
|
612
|
-
...output,
|
|
613
|
-
body: await parseErrorBody(output.body, context)
|
|
614
|
-
};
|
|
615
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
616
|
-
switch (errorCode) {
|
|
617
|
-
case "ResourceNotFoundException":
|
|
618
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
619
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
620
|
-
default:
|
|
621
|
-
const parsedBody = parsedOutput.body;
|
|
622
|
-
return throwDefaultError({
|
|
623
|
-
output,
|
|
624
|
-
parsedBody,
|
|
625
|
-
errorCode
|
|
626
|
-
});
|
|
627
|
-
}
|
|
628
|
-
}, "de_CreateCliTokenCommandError");
|
|
629
610
|
var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
630
611
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
631
|
-
return
|
|
612
|
+
return de_CommandError(output, context);
|
|
632
613
|
}
|
|
633
614
|
const contents = (0, import_smithy_client.map)({
|
|
634
615
|
$metadata: deserializeMetadata(output)
|
|
@@ -640,31 +621,9 @@ var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
640
621
|
Object.assign(contents, doc);
|
|
641
622
|
return contents;
|
|
642
623
|
}, "de_CreateEnvironmentCommand");
|
|
643
|
-
var de_CreateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
644
|
-
const parsedOutput = {
|
|
645
|
-
...output,
|
|
646
|
-
body: await parseErrorBody(output.body, context)
|
|
647
|
-
};
|
|
648
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
649
|
-
switch (errorCode) {
|
|
650
|
-
case "InternalServerException":
|
|
651
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
652
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
653
|
-
case "ValidationException":
|
|
654
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
655
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
656
|
-
default:
|
|
657
|
-
const parsedBody = parsedOutput.body;
|
|
658
|
-
return throwDefaultError({
|
|
659
|
-
output,
|
|
660
|
-
parsedBody,
|
|
661
|
-
errorCode
|
|
662
|
-
});
|
|
663
|
-
}
|
|
664
|
-
}, "de_CreateEnvironmentCommandError");
|
|
665
624
|
var de_CreateWebLoginTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
666
625
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
667
|
-
return
|
|
626
|
+
return de_CommandError(output, context);
|
|
668
627
|
}
|
|
669
628
|
const contents = (0, import_smithy_client.map)({
|
|
670
629
|
$metadata: deserializeMetadata(output)
|
|
@@ -679,37 +638,9 @@ var de_CreateWebLoginTokenCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
679
638
|
Object.assign(contents, doc);
|
|
680
639
|
return contents;
|
|
681
640
|
}, "de_CreateWebLoginTokenCommand");
|
|
682
|
-
var de_CreateWebLoginTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
683
|
-
const parsedOutput = {
|
|
684
|
-
...output,
|
|
685
|
-
body: await parseErrorBody(output.body, context)
|
|
686
|
-
};
|
|
687
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
688
|
-
switch (errorCode) {
|
|
689
|
-
case "AccessDeniedException":
|
|
690
|
-
case "com.amazonaws.mwaa#AccessDeniedException":
|
|
691
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
692
|
-
case "InternalServerException":
|
|
693
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
694
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
695
|
-
case "ResourceNotFoundException":
|
|
696
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
697
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
698
|
-
case "ValidationException":
|
|
699
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
700
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
701
|
-
default:
|
|
702
|
-
const parsedBody = parsedOutput.body;
|
|
703
|
-
return throwDefaultError({
|
|
704
|
-
output,
|
|
705
|
-
parsedBody,
|
|
706
|
-
errorCode
|
|
707
|
-
});
|
|
708
|
-
}
|
|
709
|
-
}, "de_CreateWebLoginTokenCommandError");
|
|
710
641
|
var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
711
642
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
712
|
-
return
|
|
643
|
+
return de_CommandError(output, context);
|
|
713
644
|
}
|
|
714
645
|
const contents = (0, import_smithy_client.map)({
|
|
715
646
|
$metadata: deserializeMetadata(output)
|
|
@@ -717,34 +648,9 @@ var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
717
648
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
718
649
|
return contents;
|
|
719
650
|
}, "de_DeleteEnvironmentCommand");
|
|
720
|
-
var de_DeleteEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
721
|
-
const parsedOutput = {
|
|
722
|
-
...output,
|
|
723
|
-
body: await parseErrorBody(output.body, context)
|
|
724
|
-
};
|
|
725
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
726
|
-
switch (errorCode) {
|
|
727
|
-
case "InternalServerException":
|
|
728
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
729
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
730
|
-
case "ResourceNotFoundException":
|
|
731
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
732
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
733
|
-
case "ValidationException":
|
|
734
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
735
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
736
|
-
default:
|
|
737
|
-
const parsedBody = parsedOutput.body;
|
|
738
|
-
return throwDefaultError({
|
|
739
|
-
output,
|
|
740
|
-
parsedBody,
|
|
741
|
-
errorCode
|
|
742
|
-
});
|
|
743
|
-
}
|
|
744
|
-
}, "de_DeleteEnvironmentCommandError");
|
|
745
651
|
var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
746
652
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
747
|
-
return
|
|
653
|
+
return de_CommandError(output, context);
|
|
748
654
|
}
|
|
749
655
|
const contents = (0, import_smithy_client.map)({
|
|
750
656
|
$metadata: deserializeMetadata(output)
|
|
@@ -756,34 +662,9 @@ var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
756
662
|
Object.assign(contents, doc);
|
|
757
663
|
return contents;
|
|
758
664
|
}, "de_GetEnvironmentCommand");
|
|
759
|
-
var de_GetEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
760
|
-
const parsedOutput = {
|
|
761
|
-
...output,
|
|
762
|
-
body: await parseErrorBody(output.body, context)
|
|
763
|
-
};
|
|
764
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
|
-
switch (errorCode) {
|
|
766
|
-
case "InternalServerException":
|
|
767
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
768
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
769
|
-
case "ResourceNotFoundException":
|
|
770
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
771
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
772
|
-
case "ValidationException":
|
|
773
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
774
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
775
|
-
default:
|
|
776
|
-
const parsedBody = parsedOutput.body;
|
|
777
|
-
return throwDefaultError({
|
|
778
|
-
output,
|
|
779
|
-
parsedBody,
|
|
780
|
-
errorCode
|
|
781
|
-
});
|
|
782
|
-
}
|
|
783
|
-
}, "de_GetEnvironmentCommandError");
|
|
784
665
|
var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
785
666
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
786
|
-
return
|
|
667
|
+
return de_CommandError(output, context);
|
|
787
668
|
}
|
|
788
669
|
const contents = (0, import_smithy_client.map)({
|
|
789
670
|
$metadata: deserializeMetadata(output)
|
|
@@ -796,31 +677,9 @@ var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
796
677
|
Object.assign(contents, doc);
|
|
797
678
|
return contents;
|
|
798
679
|
}, "de_ListEnvironmentsCommand");
|
|
799
|
-
var de_ListEnvironmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
800
|
-
const parsedOutput = {
|
|
801
|
-
...output,
|
|
802
|
-
body: await parseErrorBody(output.body, context)
|
|
803
|
-
};
|
|
804
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
|
-
switch (errorCode) {
|
|
806
|
-
case "InternalServerException":
|
|
807
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
808
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
809
|
-
case "ValidationException":
|
|
810
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
811
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
812
|
-
default:
|
|
813
|
-
const parsedBody = parsedOutput.body;
|
|
814
|
-
return throwDefaultError({
|
|
815
|
-
output,
|
|
816
|
-
parsedBody,
|
|
817
|
-
errorCode
|
|
818
|
-
});
|
|
819
|
-
}
|
|
820
|
-
}, "de_ListEnvironmentsCommandError");
|
|
821
680
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
822
681
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
823
|
-
return
|
|
682
|
+
return de_CommandError(output, context);
|
|
824
683
|
}
|
|
825
684
|
const contents = (0, import_smithy_client.map)({
|
|
826
685
|
$metadata: deserializeMetadata(output)
|
|
@@ -832,34 +691,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
832
691
|
Object.assign(contents, doc);
|
|
833
692
|
return contents;
|
|
834
693
|
}, "de_ListTagsForResourceCommand");
|
|
835
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
836
|
-
const parsedOutput = {
|
|
837
|
-
...output,
|
|
838
|
-
body: await parseErrorBody(output.body, context)
|
|
839
|
-
};
|
|
840
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
841
|
-
switch (errorCode) {
|
|
842
|
-
case "InternalServerException":
|
|
843
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
844
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
845
|
-
case "ResourceNotFoundException":
|
|
846
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
847
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
848
|
-
case "ValidationException":
|
|
849
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
850
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
851
|
-
default:
|
|
852
|
-
const parsedBody = parsedOutput.body;
|
|
853
|
-
return throwDefaultError({
|
|
854
|
-
output,
|
|
855
|
-
parsedBody,
|
|
856
|
-
errorCode
|
|
857
|
-
});
|
|
858
|
-
}
|
|
859
|
-
}, "de_ListTagsForResourceCommandError");
|
|
860
694
|
var de_PublishMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
861
695
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
862
|
-
return
|
|
696
|
+
return de_CommandError(output, context);
|
|
863
697
|
}
|
|
864
698
|
const contents = (0, import_smithy_client.map)({
|
|
865
699
|
$metadata: deserializeMetadata(output)
|
|
@@ -867,31 +701,9 @@ var de_PublishMetricsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
867
701
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
868
702
|
return contents;
|
|
869
703
|
}, "de_PublishMetricsCommand");
|
|
870
|
-
var de_PublishMetricsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
871
|
-
const parsedOutput = {
|
|
872
|
-
...output,
|
|
873
|
-
body: await parseErrorBody(output.body, context)
|
|
874
|
-
};
|
|
875
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
876
|
-
switch (errorCode) {
|
|
877
|
-
case "InternalServerException":
|
|
878
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
879
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
880
|
-
case "ValidationException":
|
|
881
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
882
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
883
|
-
default:
|
|
884
|
-
const parsedBody = parsedOutput.body;
|
|
885
|
-
return throwDefaultError({
|
|
886
|
-
output,
|
|
887
|
-
parsedBody,
|
|
888
|
-
errorCode
|
|
889
|
-
});
|
|
890
|
-
}
|
|
891
|
-
}, "de_PublishMetricsCommandError");
|
|
892
704
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
893
705
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
894
|
-
return
|
|
706
|
+
return de_CommandError(output, context);
|
|
895
707
|
}
|
|
896
708
|
const contents = (0, import_smithy_client.map)({
|
|
897
709
|
$metadata: deserializeMetadata(output)
|
|
@@ -899,34 +711,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
899
711
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
900
712
|
return contents;
|
|
901
713
|
}, "de_TagResourceCommand");
|
|
902
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
903
|
-
const parsedOutput = {
|
|
904
|
-
...output,
|
|
905
|
-
body: await parseErrorBody(output.body, context)
|
|
906
|
-
};
|
|
907
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
|
-
switch (errorCode) {
|
|
909
|
-
case "InternalServerException":
|
|
910
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
911
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
912
|
-
case "ResourceNotFoundException":
|
|
913
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
914
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
915
|
-
case "ValidationException":
|
|
916
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
917
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
918
|
-
default:
|
|
919
|
-
const parsedBody = parsedOutput.body;
|
|
920
|
-
return throwDefaultError({
|
|
921
|
-
output,
|
|
922
|
-
parsedBody,
|
|
923
|
-
errorCode
|
|
924
|
-
});
|
|
925
|
-
}
|
|
926
|
-
}, "de_TagResourceCommandError");
|
|
927
714
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
928
715
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
929
|
-
return
|
|
716
|
+
return de_CommandError(output, context);
|
|
930
717
|
}
|
|
931
718
|
const contents = (0, import_smithy_client.map)({
|
|
932
719
|
$metadata: deserializeMetadata(output)
|
|
@@ -934,34 +721,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
934
721
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
935
722
|
return contents;
|
|
936
723
|
}, "de_UntagResourceCommand");
|
|
937
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
938
|
-
const parsedOutput = {
|
|
939
|
-
...output,
|
|
940
|
-
body: await parseErrorBody(output.body, context)
|
|
941
|
-
};
|
|
942
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
943
|
-
switch (errorCode) {
|
|
944
|
-
case "InternalServerException":
|
|
945
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
946
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
947
|
-
case "ResourceNotFoundException":
|
|
948
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
949
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
950
|
-
case "ValidationException":
|
|
951
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
952
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
953
|
-
default:
|
|
954
|
-
const parsedBody = parsedOutput.body;
|
|
955
|
-
return throwDefaultError({
|
|
956
|
-
output,
|
|
957
|
-
parsedBody,
|
|
958
|
-
errorCode
|
|
959
|
-
});
|
|
960
|
-
}
|
|
961
|
-
}, "de_UntagResourceCommandError");
|
|
962
724
|
var de_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
963
725
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
964
|
-
return
|
|
726
|
+
return de_CommandError(output, context);
|
|
965
727
|
}
|
|
966
728
|
const contents = (0, import_smithy_client.map)({
|
|
967
729
|
$metadata: deserializeMetadata(output)
|
|
@@ -973,22 +735,25 @@ var de_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
973
735
|
Object.assign(contents, doc);
|
|
974
736
|
return contents;
|
|
975
737
|
}, "de_UpdateEnvironmentCommand");
|
|
976
|
-
var
|
|
738
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
977
739
|
const parsedOutput = {
|
|
978
740
|
...output,
|
|
979
741
|
body: await parseErrorBody(output.body, context)
|
|
980
742
|
};
|
|
981
743
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
982
744
|
switch (errorCode) {
|
|
983
|
-
case "InternalServerException":
|
|
984
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
985
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
986
745
|
case "ResourceNotFoundException":
|
|
987
746
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
988
747
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
748
|
+
case "InternalServerException":
|
|
749
|
+
case "com.amazonaws.mwaa#InternalServerException":
|
|
750
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
989
751
|
case "ValidationException":
|
|
990
752
|
case "com.amazonaws.mwaa#ValidationException":
|
|
991
753
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
754
|
+
case "AccessDeniedException":
|
|
755
|
+
case "com.amazonaws.mwaa#AccessDeniedException":
|
|
756
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
992
757
|
default:
|
|
993
758
|
const parsedBody = parsedOutput.body;
|
|
994
759
|
return throwDefaultError({
|
|
@@ -997,7 +762,7 @@ var de_UpdateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
997
762
|
errorCode
|
|
998
763
|
});
|
|
999
764
|
}
|
|
1000
|
-
}, "
|
|
765
|
+
}, "de_CommandError");
|
|
1001
766
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(MWAAServiceException);
|
|
1002
767
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1003
768
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -260,7 +260,7 @@ export const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
|
260
260
|
};
|
|
261
261
|
export const de_CreateCliTokenCommand = async (output, context) => {
|
|
262
262
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
263
|
-
return
|
|
263
|
+
return de_CommandError(output, context);
|
|
264
264
|
}
|
|
265
265
|
const contents = map({
|
|
266
266
|
$metadata: deserializeMetadata(output),
|
|
@@ -273,28 +273,9 @@ export const de_CreateCliTokenCommand = async (output, context) => {
|
|
|
273
273
|
Object.assign(contents, doc);
|
|
274
274
|
return contents;
|
|
275
275
|
};
|
|
276
|
-
const de_CreateCliTokenCommandError = async (output, context) => {
|
|
277
|
-
const parsedOutput = {
|
|
278
|
-
...output,
|
|
279
|
-
body: await parseErrorBody(output.body, context),
|
|
280
|
-
};
|
|
281
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
282
|
-
switch (errorCode) {
|
|
283
|
-
case "ResourceNotFoundException":
|
|
284
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
285
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
286
|
-
default:
|
|
287
|
-
const parsedBody = parsedOutput.body;
|
|
288
|
-
return throwDefaultError({
|
|
289
|
-
output,
|
|
290
|
-
parsedBody,
|
|
291
|
-
errorCode,
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
276
|
export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
296
277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
297
|
-
return
|
|
278
|
+
return de_CommandError(output, context);
|
|
298
279
|
}
|
|
299
280
|
const contents = map({
|
|
300
281
|
$metadata: deserializeMetadata(output),
|
|
@@ -306,31 +287,9 @@ export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
|
306
287
|
Object.assign(contents, doc);
|
|
307
288
|
return contents;
|
|
308
289
|
};
|
|
309
|
-
const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
310
|
-
const parsedOutput = {
|
|
311
|
-
...output,
|
|
312
|
-
body: await parseErrorBody(output.body, context),
|
|
313
|
-
};
|
|
314
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
315
|
-
switch (errorCode) {
|
|
316
|
-
case "InternalServerException":
|
|
317
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
318
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
319
|
-
case "ValidationException":
|
|
320
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
321
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
322
|
-
default:
|
|
323
|
-
const parsedBody = parsedOutput.body;
|
|
324
|
-
return throwDefaultError({
|
|
325
|
-
output,
|
|
326
|
-
parsedBody,
|
|
327
|
-
errorCode,
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
290
|
export const de_CreateWebLoginTokenCommand = async (output, context) => {
|
|
332
291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
333
|
-
return
|
|
292
|
+
return de_CommandError(output, context);
|
|
334
293
|
}
|
|
335
294
|
const contents = map({
|
|
336
295
|
$metadata: deserializeMetadata(output),
|
|
@@ -345,37 +304,9 @@ export const de_CreateWebLoginTokenCommand = async (output, context) => {
|
|
|
345
304
|
Object.assign(contents, doc);
|
|
346
305
|
return contents;
|
|
347
306
|
};
|
|
348
|
-
const de_CreateWebLoginTokenCommandError = 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 "AccessDeniedException":
|
|
356
|
-
case "com.amazonaws.mwaa#AccessDeniedException":
|
|
357
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
358
|
-
case "InternalServerException":
|
|
359
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
360
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
361
|
-
case "ResourceNotFoundException":
|
|
362
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
363
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
364
|
-
case "ValidationException":
|
|
365
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
366
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
367
|
-
default:
|
|
368
|
-
const parsedBody = parsedOutput.body;
|
|
369
|
-
return throwDefaultError({
|
|
370
|
-
output,
|
|
371
|
-
parsedBody,
|
|
372
|
-
errorCode,
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
307
|
export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
377
308
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
378
|
-
return
|
|
309
|
+
return de_CommandError(output, context);
|
|
379
310
|
}
|
|
380
311
|
const contents = map({
|
|
381
312
|
$metadata: deserializeMetadata(output),
|
|
@@ -383,34 +314,9 @@ export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
|
383
314
|
await collectBody(output.body, context);
|
|
384
315
|
return contents;
|
|
385
316
|
};
|
|
386
|
-
const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
387
|
-
const parsedOutput = {
|
|
388
|
-
...output,
|
|
389
|
-
body: await parseErrorBody(output.body, context),
|
|
390
|
-
};
|
|
391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
392
|
-
switch (errorCode) {
|
|
393
|
-
case "InternalServerException":
|
|
394
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
395
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
396
|
-
case "ResourceNotFoundException":
|
|
397
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
398
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
399
|
-
case "ValidationException":
|
|
400
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
401
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
402
|
-
default:
|
|
403
|
-
const parsedBody = parsedOutput.body;
|
|
404
|
-
return throwDefaultError({
|
|
405
|
-
output,
|
|
406
|
-
parsedBody,
|
|
407
|
-
errorCode,
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
};
|
|
411
317
|
export const de_GetEnvironmentCommand = async (output, context) => {
|
|
412
318
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
413
|
-
return
|
|
319
|
+
return de_CommandError(output, context);
|
|
414
320
|
}
|
|
415
321
|
const contents = map({
|
|
416
322
|
$metadata: deserializeMetadata(output),
|
|
@@ -422,34 +328,9 @@ export const de_GetEnvironmentCommand = async (output, context) => {
|
|
|
422
328
|
Object.assign(contents, doc);
|
|
423
329
|
return contents;
|
|
424
330
|
};
|
|
425
|
-
const de_GetEnvironmentCommandError = async (output, context) => {
|
|
426
|
-
const parsedOutput = {
|
|
427
|
-
...output,
|
|
428
|
-
body: await parseErrorBody(output.body, context),
|
|
429
|
-
};
|
|
430
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
431
|
-
switch (errorCode) {
|
|
432
|
-
case "InternalServerException":
|
|
433
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
434
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
435
|
-
case "ResourceNotFoundException":
|
|
436
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
437
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
438
|
-
case "ValidationException":
|
|
439
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
440
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
441
|
-
default:
|
|
442
|
-
const parsedBody = parsedOutput.body;
|
|
443
|
-
return throwDefaultError({
|
|
444
|
-
output,
|
|
445
|
-
parsedBody,
|
|
446
|
-
errorCode,
|
|
447
|
-
});
|
|
448
|
-
}
|
|
449
|
-
};
|
|
450
331
|
export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
451
332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
452
|
-
return
|
|
333
|
+
return de_CommandError(output, context);
|
|
453
334
|
}
|
|
454
335
|
const contents = map({
|
|
455
336
|
$metadata: deserializeMetadata(output),
|
|
@@ -462,31 +343,9 @@ export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
|
462
343
|
Object.assign(contents, doc);
|
|
463
344
|
return contents;
|
|
464
345
|
};
|
|
465
|
-
const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
466
|
-
const parsedOutput = {
|
|
467
|
-
...output,
|
|
468
|
-
body: await parseErrorBody(output.body, context),
|
|
469
|
-
};
|
|
470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
471
|
-
switch (errorCode) {
|
|
472
|
-
case "InternalServerException":
|
|
473
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
474
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
475
|
-
case "ValidationException":
|
|
476
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
477
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
478
|
-
default:
|
|
479
|
-
const parsedBody = parsedOutput.body;
|
|
480
|
-
return throwDefaultError({
|
|
481
|
-
output,
|
|
482
|
-
parsedBody,
|
|
483
|
-
errorCode,
|
|
484
|
-
});
|
|
485
|
-
}
|
|
486
|
-
};
|
|
487
346
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
488
347
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
489
|
-
return
|
|
348
|
+
return de_CommandError(output, context);
|
|
490
349
|
}
|
|
491
350
|
const contents = map({
|
|
492
351
|
$metadata: deserializeMetadata(output),
|
|
@@ -498,34 +357,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
498
357
|
Object.assign(contents, doc);
|
|
499
358
|
return contents;
|
|
500
359
|
};
|
|
501
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
502
|
-
const parsedOutput = {
|
|
503
|
-
...output,
|
|
504
|
-
body: await parseErrorBody(output.body, context),
|
|
505
|
-
};
|
|
506
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
507
|
-
switch (errorCode) {
|
|
508
|
-
case "InternalServerException":
|
|
509
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
510
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
511
|
-
case "ResourceNotFoundException":
|
|
512
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
513
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
514
|
-
case "ValidationException":
|
|
515
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
516
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
517
|
-
default:
|
|
518
|
-
const parsedBody = parsedOutput.body;
|
|
519
|
-
return throwDefaultError({
|
|
520
|
-
output,
|
|
521
|
-
parsedBody,
|
|
522
|
-
errorCode,
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
};
|
|
526
360
|
export const de_PublishMetricsCommand = async (output, context) => {
|
|
527
361
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
528
|
-
return
|
|
362
|
+
return de_CommandError(output, context);
|
|
529
363
|
}
|
|
530
364
|
const contents = map({
|
|
531
365
|
$metadata: deserializeMetadata(output),
|
|
@@ -533,31 +367,9 @@ export const de_PublishMetricsCommand = async (output, context) => {
|
|
|
533
367
|
await collectBody(output.body, context);
|
|
534
368
|
return contents;
|
|
535
369
|
};
|
|
536
|
-
const de_PublishMetricsCommandError = async (output, context) => {
|
|
537
|
-
const parsedOutput = {
|
|
538
|
-
...output,
|
|
539
|
-
body: await parseErrorBody(output.body, context),
|
|
540
|
-
};
|
|
541
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
542
|
-
switch (errorCode) {
|
|
543
|
-
case "InternalServerException":
|
|
544
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
545
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
546
|
-
case "ValidationException":
|
|
547
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
548
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
549
|
-
default:
|
|
550
|
-
const parsedBody = parsedOutput.body;
|
|
551
|
-
return throwDefaultError({
|
|
552
|
-
output,
|
|
553
|
-
parsedBody,
|
|
554
|
-
errorCode,
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
};
|
|
558
370
|
export const de_TagResourceCommand = async (output, context) => {
|
|
559
371
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
560
|
-
return
|
|
372
|
+
return de_CommandError(output, context);
|
|
561
373
|
}
|
|
562
374
|
const contents = map({
|
|
563
375
|
$metadata: deserializeMetadata(output),
|
|
@@ -565,34 +377,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
565
377
|
await collectBody(output.body, context);
|
|
566
378
|
return contents;
|
|
567
379
|
};
|
|
568
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
569
|
-
const parsedOutput = {
|
|
570
|
-
...output,
|
|
571
|
-
body: await parseErrorBody(output.body, context),
|
|
572
|
-
};
|
|
573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
574
|
-
switch (errorCode) {
|
|
575
|
-
case "InternalServerException":
|
|
576
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
577
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
578
|
-
case "ResourceNotFoundException":
|
|
579
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
580
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
581
|
-
case "ValidationException":
|
|
582
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
583
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
584
|
-
default:
|
|
585
|
-
const parsedBody = parsedOutput.body;
|
|
586
|
-
return throwDefaultError({
|
|
587
|
-
output,
|
|
588
|
-
parsedBody,
|
|
589
|
-
errorCode,
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
|
-
};
|
|
593
380
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
594
381
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
595
|
-
return
|
|
382
|
+
return de_CommandError(output, context);
|
|
596
383
|
}
|
|
597
384
|
const contents = map({
|
|
598
385
|
$metadata: deserializeMetadata(output),
|
|
@@ -600,34 +387,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
600
387
|
await collectBody(output.body, context);
|
|
601
388
|
return contents;
|
|
602
389
|
};
|
|
603
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
604
|
-
const parsedOutput = {
|
|
605
|
-
...output,
|
|
606
|
-
body: await parseErrorBody(output.body, context),
|
|
607
|
-
};
|
|
608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
609
|
-
switch (errorCode) {
|
|
610
|
-
case "InternalServerException":
|
|
611
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
612
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
613
|
-
case "ResourceNotFoundException":
|
|
614
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
615
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
616
|
-
case "ValidationException":
|
|
617
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
618
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
619
|
-
default:
|
|
620
|
-
const parsedBody = parsedOutput.body;
|
|
621
|
-
return throwDefaultError({
|
|
622
|
-
output,
|
|
623
|
-
parsedBody,
|
|
624
|
-
errorCode,
|
|
625
|
-
});
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
390
|
export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
629
391
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
630
|
-
return
|
|
392
|
+
return de_CommandError(output, context);
|
|
631
393
|
}
|
|
632
394
|
const contents = map({
|
|
633
395
|
$metadata: deserializeMetadata(output),
|
|
@@ -639,22 +401,25 @@ export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
|
639
401
|
Object.assign(contents, doc);
|
|
640
402
|
return contents;
|
|
641
403
|
};
|
|
642
|
-
const
|
|
404
|
+
const de_CommandError = async (output, context) => {
|
|
643
405
|
const parsedOutput = {
|
|
644
406
|
...output,
|
|
645
407
|
body: await parseErrorBody(output.body, context),
|
|
646
408
|
};
|
|
647
409
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
648
410
|
switch (errorCode) {
|
|
649
|
-
case "InternalServerException":
|
|
650
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
651
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
652
411
|
case "ResourceNotFoundException":
|
|
653
412
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
654
413
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
414
|
+
case "InternalServerException":
|
|
415
|
+
case "com.amazonaws.mwaa#InternalServerException":
|
|
416
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
655
417
|
case "ValidationException":
|
|
656
418
|
case "com.amazonaws.mwaa#ValidationException":
|
|
657
419
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
420
|
+
case "AccessDeniedException":
|
|
421
|
+
case "com.amazonaws.mwaa#AccessDeniedException":
|
|
422
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
658
423
|
default:
|
|
659
424
|
const parsedBody = parsedOutput.body;
|
|
660
425
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mwaa",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mwaa 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-mwaa",
|
|
@@ -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",
|