@aws-sdk/client-appconfig 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 +65 -1127
- package/dist-es/protocols/Aws_restJson1.js +71 -1133
- package/package.json +3 -3
|
@@ -587,7 +587,7 @@ export const se_ValidateConfigurationCommand = async (input, context) => {
|
|
|
587
587
|
};
|
|
588
588
|
export const de_CreateApplicationCommand = async (output, context) => {
|
|
589
589
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
590
|
-
return
|
|
590
|
+
return de_CommandError(output, context);
|
|
591
591
|
}
|
|
592
592
|
const contents = map({
|
|
593
593
|
$metadata: deserializeMetadata(output),
|
|
@@ -601,34 +601,9 @@ export const de_CreateApplicationCommand = async (output, context) => {
|
|
|
601
601
|
Object.assign(contents, doc);
|
|
602
602
|
return contents;
|
|
603
603
|
};
|
|
604
|
-
const de_CreateApplicationCommandError = async (output, context) => {
|
|
605
|
-
const parsedOutput = {
|
|
606
|
-
...output,
|
|
607
|
-
body: await parseErrorBody(output.body, context),
|
|
608
|
-
};
|
|
609
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
610
|
-
switch (errorCode) {
|
|
611
|
-
case "BadRequestException":
|
|
612
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
613
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
614
|
-
case "InternalServerException":
|
|
615
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
616
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
617
|
-
case "ServiceQuotaExceededException":
|
|
618
|
-
case "com.amazonaws.appconfig#ServiceQuotaExceededException":
|
|
619
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
620
|
-
default:
|
|
621
|
-
const parsedBody = parsedOutput.body;
|
|
622
|
-
return throwDefaultError({
|
|
623
|
-
output,
|
|
624
|
-
parsedBody,
|
|
625
|
-
errorCode,
|
|
626
|
-
});
|
|
627
|
-
}
|
|
628
|
-
};
|
|
629
604
|
export const de_CreateConfigurationProfileCommand = async (output, context) => {
|
|
630
605
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
631
|
-
return
|
|
606
|
+
return de_CommandError(output, context);
|
|
632
607
|
}
|
|
633
608
|
const contents = map({
|
|
634
609
|
$metadata: deserializeMetadata(output),
|
|
@@ -649,37 +624,9 @@ export const de_CreateConfigurationProfileCommand = async (output, context) => {
|
|
|
649
624
|
Object.assign(contents, doc);
|
|
650
625
|
return contents;
|
|
651
626
|
};
|
|
652
|
-
const de_CreateConfigurationProfileCommandError = 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 "BadRequestException":
|
|
660
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
661
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
662
|
-
case "InternalServerException":
|
|
663
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
664
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
665
|
-
case "ResourceNotFoundException":
|
|
666
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
667
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ServiceQuotaExceededException":
|
|
669
|
-
case "com.amazonaws.appconfig#ServiceQuotaExceededException":
|
|
670
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
671
|
-
default:
|
|
672
|
-
const parsedBody = parsedOutput.body;
|
|
673
|
-
return throwDefaultError({
|
|
674
|
-
output,
|
|
675
|
-
parsedBody,
|
|
676
|
-
errorCode,
|
|
677
|
-
});
|
|
678
|
-
}
|
|
679
|
-
};
|
|
680
627
|
export const de_CreateDeploymentStrategyCommand = async (output, context) => {
|
|
681
628
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
682
|
-
return
|
|
629
|
+
return de_CommandError(output, context);
|
|
683
630
|
}
|
|
684
631
|
const contents = map({
|
|
685
632
|
$metadata: deserializeMetadata(output),
|
|
@@ -698,34 +645,9 @@ export const de_CreateDeploymentStrategyCommand = async (output, context) => {
|
|
|
698
645
|
Object.assign(contents, doc);
|
|
699
646
|
return contents;
|
|
700
647
|
};
|
|
701
|
-
const de_CreateDeploymentStrategyCommandError = async (output, context) => {
|
|
702
|
-
const parsedOutput = {
|
|
703
|
-
...output,
|
|
704
|
-
body: await parseErrorBody(output.body, context),
|
|
705
|
-
};
|
|
706
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
707
|
-
switch (errorCode) {
|
|
708
|
-
case "BadRequestException":
|
|
709
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
710
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
711
|
-
case "InternalServerException":
|
|
712
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
713
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
714
|
-
case "ServiceQuotaExceededException":
|
|
715
|
-
case "com.amazonaws.appconfig#ServiceQuotaExceededException":
|
|
716
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
717
|
-
default:
|
|
718
|
-
const parsedBody = parsedOutput.body;
|
|
719
|
-
return throwDefaultError({
|
|
720
|
-
output,
|
|
721
|
-
parsedBody,
|
|
722
|
-
errorCode,
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
};
|
|
726
648
|
export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
727
649
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
728
|
-
return
|
|
650
|
+
return de_CommandError(output, context);
|
|
729
651
|
}
|
|
730
652
|
const contents = map({
|
|
731
653
|
$metadata: deserializeMetadata(output),
|
|
@@ -742,37 +664,9 @@ export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
|
742
664
|
Object.assign(contents, doc);
|
|
743
665
|
return contents;
|
|
744
666
|
};
|
|
745
|
-
const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
746
|
-
const parsedOutput = {
|
|
747
|
-
...output,
|
|
748
|
-
body: await parseErrorBody(output.body, context),
|
|
749
|
-
};
|
|
750
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
751
|
-
switch (errorCode) {
|
|
752
|
-
case "BadRequestException":
|
|
753
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
754
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
755
|
-
case "InternalServerException":
|
|
756
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
757
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
758
|
-
case "ResourceNotFoundException":
|
|
759
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
760
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
761
|
-
case "ServiceQuotaExceededException":
|
|
762
|
-
case "com.amazonaws.appconfig#ServiceQuotaExceededException":
|
|
763
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
764
|
-
default:
|
|
765
|
-
const parsedBody = parsedOutput.body;
|
|
766
|
-
return throwDefaultError({
|
|
767
|
-
output,
|
|
768
|
-
parsedBody,
|
|
769
|
-
errorCode,
|
|
770
|
-
});
|
|
771
|
-
}
|
|
772
|
-
};
|
|
773
667
|
export const de_CreateExtensionCommand = async (output, context) => {
|
|
774
668
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
775
|
-
return
|
|
669
|
+
return de_CommandError(output, context);
|
|
776
670
|
}
|
|
777
671
|
const contents = map({
|
|
778
672
|
$metadata: deserializeMetadata(output),
|
|
@@ -790,37 +684,9 @@ export const de_CreateExtensionCommand = async (output, context) => {
|
|
|
790
684
|
Object.assign(contents, doc);
|
|
791
685
|
return contents;
|
|
792
686
|
};
|
|
793
|
-
const de_CreateExtensionCommandError = async (output, context) => {
|
|
794
|
-
const parsedOutput = {
|
|
795
|
-
...output,
|
|
796
|
-
body: await parseErrorBody(output.body, context),
|
|
797
|
-
};
|
|
798
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
799
|
-
switch (errorCode) {
|
|
800
|
-
case "BadRequestException":
|
|
801
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
802
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
803
|
-
case "ConflictException":
|
|
804
|
-
case "com.amazonaws.appconfig#ConflictException":
|
|
805
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
806
|
-
case "InternalServerException":
|
|
807
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
808
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
809
|
-
case "ServiceQuotaExceededException":
|
|
810
|
-
case "com.amazonaws.appconfig#ServiceQuotaExceededException":
|
|
811
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
812
|
-
default:
|
|
813
|
-
const parsedBody = parsedOutput.body;
|
|
814
|
-
return throwDefaultError({
|
|
815
|
-
output,
|
|
816
|
-
parsedBody,
|
|
817
|
-
errorCode,
|
|
818
|
-
});
|
|
819
|
-
}
|
|
820
|
-
};
|
|
821
687
|
export const de_CreateExtensionAssociationCommand = async (output, context) => {
|
|
822
688
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
823
|
-
return
|
|
689
|
+
return de_CommandError(output, context);
|
|
824
690
|
}
|
|
825
691
|
const contents = map({
|
|
826
692
|
$metadata: deserializeMetadata(output),
|
|
@@ -837,37 +703,9 @@ export const de_CreateExtensionAssociationCommand = async (output, context) => {
|
|
|
837
703
|
Object.assign(contents, doc);
|
|
838
704
|
return contents;
|
|
839
705
|
};
|
|
840
|
-
const de_CreateExtensionAssociationCommandError = async (output, context) => {
|
|
841
|
-
const parsedOutput = {
|
|
842
|
-
...output,
|
|
843
|
-
body: await parseErrorBody(output.body, context),
|
|
844
|
-
};
|
|
845
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
846
|
-
switch (errorCode) {
|
|
847
|
-
case "BadRequestException":
|
|
848
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
849
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
850
|
-
case "InternalServerException":
|
|
851
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
852
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
853
|
-
case "ResourceNotFoundException":
|
|
854
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
855
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
856
|
-
case "ServiceQuotaExceededException":
|
|
857
|
-
case "com.amazonaws.appconfig#ServiceQuotaExceededException":
|
|
858
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
859
|
-
default:
|
|
860
|
-
const parsedBody = parsedOutput.body;
|
|
861
|
-
return throwDefaultError({
|
|
862
|
-
output,
|
|
863
|
-
parsedBody,
|
|
864
|
-
errorCode,
|
|
865
|
-
});
|
|
866
|
-
}
|
|
867
|
-
};
|
|
868
706
|
export const de_CreateHostedConfigurationVersionCommand = async (output, context) => {
|
|
869
707
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
870
|
-
return
|
|
708
|
+
return de_CommandError(output, context);
|
|
871
709
|
}
|
|
872
710
|
const contents = map({
|
|
873
711
|
$metadata: deserializeMetadata(output),
|
|
@@ -883,43 +721,9 @@ export const de_CreateHostedConfigurationVersionCommand = async (output, context
|
|
|
883
721
|
contents.Content = data;
|
|
884
722
|
return contents;
|
|
885
723
|
};
|
|
886
|
-
const de_CreateHostedConfigurationVersionCommandError = async (output, context) => {
|
|
887
|
-
const parsedOutput = {
|
|
888
|
-
...output,
|
|
889
|
-
body: await parseErrorBody(output.body, context),
|
|
890
|
-
};
|
|
891
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
892
|
-
switch (errorCode) {
|
|
893
|
-
case "BadRequestException":
|
|
894
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
895
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ConflictException":
|
|
897
|
-
case "com.amazonaws.appconfig#ConflictException":
|
|
898
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
899
|
-
case "InternalServerException":
|
|
900
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
901
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
902
|
-
case "PayloadTooLargeException":
|
|
903
|
-
case "com.amazonaws.appconfig#PayloadTooLargeException":
|
|
904
|
-
throw await de_PayloadTooLargeExceptionRes(parsedOutput, context);
|
|
905
|
-
case "ResourceNotFoundException":
|
|
906
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
907
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
908
|
-
case "ServiceQuotaExceededException":
|
|
909
|
-
case "com.amazonaws.appconfig#ServiceQuotaExceededException":
|
|
910
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
911
|
-
default:
|
|
912
|
-
const parsedBody = parsedOutput.body;
|
|
913
|
-
return throwDefaultError({
|
|
914
|
-
output,
|
|
915
|
-
parsedBody,
|
|
916
|
-
errorCode,
|
|
917
|
-
});
|
|
918
|
-
}
|
|
919
|
-
};
|
|
920
724
|
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
921
725
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
922
|
-
return
|
|
726
|
+
return de_CommandError(output, context);
|
|
923
727
|
}
|
|
924
728
|
const contents = map({
|
|
925
729
|
$metadata: deserializeMetadata(output),
|
|
@@ -927,34 +731,9 @@ export const de_DeleteApplicationCommand = async (output, context) => {
|
|
|
927
731
|
await collectBody(output.body, context);
|
|
928
732
|
return contents;
|
|
929
733
|
};
|
|
930
|
-
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
931
|
-
const parsedOutput = {
|
|
932
|
-
...output,
|
|
933
|
-
body: await parseErrorBody(output.body, context),
|
|
934
|
-
};
|
|
935
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
936
|
-
switch (errorCode) {
|
|
937
|
-
case "BadRequestException":
|
|
938
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
939
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
940
|
-
case "InternalServerException":
|
|
941
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
942
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
943
|
-
case "ResourceNotFoundException":
|
|
944
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
945
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
946
|
-
default:
|
|
947
|
-
const parsedBody = parsedOutput.body;
|
|
948
|
-
return throwDefaultError({
|
|
949
|
-
output,
|
|
950
|
-
parsedBody,
|
|
951
|
-
errorCode,
|
|
952
|
-
});
|
|
953
|
-
}
|
|
954
|
-
};
|
|
955
734
|
export const de_DeleteConfigurationProfileCommand = async (output, context) => {
|
|
956
735
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
957
|
-
return
|
|
736
|
+
return de_CommandError(output, context);
|
|
958
737
|
}
|
|
959
738
|
const contents = map({
|
|
960
739
|
$metadata: deserializeMetadata(output),
|
|
@@ -962,110 +741,19 @@ export const de_DeleteConfigurationProfileCommand = async (output, context) => {
|
|
|
962
741
|
await collectBody(output.body, context);
|
|
963
742
|
return contents;
|
|
964
743
|
};
|
|
965
|
-
const de_DeleteConfigurationProfileCommandError = async (output, context) => {
|
|
966
|
-
const parsedOutput = {
|
|
967
|
-
...output,
|
|
968
|
-
body: await parseErrorBody(output.body, context),
|
|
969
|
-
};
|
|
970
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
|
-
switch (errorCode) {
|
|
972
|
-
case "BadRequestException":
|
|
973
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
974
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ConflictException":
|
|
976
|
-
case "com.amazonaws.appconfig#ConflictException":
|
|
977
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
978
|
-
case "InternalServerException":
|
|
979
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
980
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ResourceNotFoundException":
|
|
982
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
983
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
984
|
-
default:
|
|
985
|
-
const parsedBody = parsedOutput.body;
|
|
986
|
-
return throwDefaultError({
|
|
987
|
-
output,
|
|
988
|
-
parsedBody,
|
|
989
|
-
errorCode,
|
|
990
|
-
});
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
744
|
export const de_DeleteDeploymentStrategyCommand = async (output, context) => {
|
|
994
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
995
|
-
return
|
|
996
|
-
}
|
|
997
|
-
const contents = map({
|
|
998
|
-
$metadata: deserializeMetadata(output),
|
|
999
|
-
});
|
|
1000
|
-
await collectBody(output.body, context);
|
|
1001
|
-
return contents;
|
|
1002
|
-
};
|
|
1003
|
-
const de_DeleteDeploymentStrategyCommandError = async (output, context) => {
|
|
1004
|
-
const parsedOutput = {
|
|
1005
|
-
...output,
|
|
1006
|
-
body: await parseErrorBody(output.body, context),
|
|
1007
|
-
};
|
|
1008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
-
switch (errorCode) {
|
|
1010
|
-
case "BadRequestException":
|
|
1011
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1012
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "InternalServerException":
|
|
1014
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1015
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "ResourceNotFoundException":
|
|
1017
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1018
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1019
|
-
default:
|
|
1020
|
-
const parsedBody = parsedOutput.body;
|
|
1021
|
-
return throwDefaultError({
|
|
1022
|
-
output,
|
|
1023
|
-
parsedBody,
|
|
1024
|
-
errorCode,
|
|
1025
|
-
});
|
|
1026
|
-
}
|
|
1027
|
-
};
|
|
1028
|
-
export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
1029
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1030
|
-
return de_DeleteEnvironmentCommandError(output, context);
|
|
1031
|
-
}
|
|
1032
|
-
const contents = map({
|
|
1033
|
-
$metadata: deserializeMetadata(output),
|
|
1034
|
-
});
|
|
1035
|
-
await collectBody(output.body, context);
|
|
1036
|
-
return contents;
|
|
1037
|
-
};
|
|
1038
|
-
const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
1039
|
-
const parsedOutput = {
|
|
1040
|
-
...output,
|
|
1041
|
-
body: await parseErrorBody(output.body, context),
|
|
1042
|
-
};
|
|
1043
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1044
|
-
switch (errorCode) {
|
|
1045
|
-
case "BadRequestException":
|
|
1046
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1047
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1048
|
-
case "ConflictException":
|
|
1049
|
-
case "com.amazonaws.appconfig#ConflictException":
|
|
1050
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1051
|
-
case "InternalServerException":
|
|
1052
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1053
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1054
|
-
case "ResourceNotFoundException":
|
|
1055
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1056
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1057
|
-
default:
|
|
1058
|
-
const parsedBody = parsedOutput.body;
|
|
1059
|
-
return throwDefaultError({
|
|
1060
|
-
output,
|
|
1061
|
-
parsedBody,
|
|
1062
|
-
errorCode,
|
|
1063
|
-
});
|
|
745
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
746
|
+
return de_CommandError(output, context);
|
|
1064
747
|
}
|
|
748
|
+
const contents = map({
|
|
749
|
+
$metadata: deserializeMetadata(output),
|
|
750
|
+
});
|
|
751
|
+
await collectBody(output.body, context);
|
|
752
|
+
return contents;
|
|
1065
753
|
};
|
|
1066
|
-
export const
|
|
754
|
+
export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
1067
755
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1068
|
-
return
|
|
756
|
+
return de_CommandError(output, context);
|
|
1069
757
|
}
|
|
1070
758
|
const contents = map({
|
|
1071
759
|
$metadata: deserializeMetadata(output),
|
|
@@ -1073,34 +761,19 @@ export const de_DeleteExtensionCommand = async (output, context) => {
|
|
|
1073
761
|
await collectBody(output.body, context);
|
|
1074
762
|
return contents;
|
|
1075
763
|
};
|
|
1076
|
-
const
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
body: await parseErrorBody(output.body, context),
|
|
1080
|
-
};
|
|
1081
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1082
|
-
switch (errorCode) {
|
|
1083
|
-
case "BadRequestException":
|
|
1084
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1085
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1086
|
-
case "InternalServerException":
|
|
1087
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1088
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1089
|
-
case "ResourceNotFoundException":
|
|
1090
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1091
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1092
|
-
default:
|
|
1093
|
-
const parsedBody = parsedOutput.body;
|
|
1094
|
-
return throwDefaultError({
|
|
1095
|
-
output,
|
|
1096
|
-
parsedBody,
|
|
1097
|
-
errorCode,
|
|
1098
|
-
});
|
|
764
|
+
export const de_DeleteExtensionCommand = async (output, context) => {
|
|
765
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
766
|
+
return de_CommandError(output, context);
|
|
1099
767
|
}
|
|
768
|
+
const contents = map({
|
|
769
|
+
$metadata: deserializeMetadata(output),
|
|
770
|
+
});
|
|
771
|
+
await collectBody(output.body, context);
|
|
772
|
+
return contents;
|
|
1100
773
|
};
|
|
1101
774
|
export const de_DeleteExtensionAssociationCommand = async (output, context) => {
|
|
1102
775
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1103
|
-
return
|
|
776
|
+
return de_CommandError(output, context);
|
|
1104
777
|
}
|
|
1105
778
|
const contents = map({
|
|
1106
779
|
$metadata: deserializeMetadata(output),
|
|
@@ -1108,34 +781,9 @@ export const de_DeleteExtensionAssociationCommand = async (output, context) => {
|
|
|
1108
781
|
await collectBody(output.body, context);
|
|
1109
782
|
return contents;
|
|
1110
783
|
};
|
|
1111
|
-
const de_DeleteExtensionAssociationCommandError = async (output, context) => {
|
|
1112
|
-
const parsedOutput = {
|
|
1113
|
-
...output,
|
|
1114
|
-
body: await parseErrorBody(output.body, context),
|
|
1115
|
-
};
|
|
1116
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
|
-
switch (errorCode) {
|
|
1118
|
-
case "BadRequestException":
|
|
1119
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1120
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "InternalServerException":
|
|
1122
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1123
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "ResourceNotFoundException":
|
|
1125
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1126
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1127
|
-
default:
|
|
1128
|
-
const parsedBody = parsedOutput.body;
|
|
1129
|
-
return throwDefaultError({
|
|
1130
|
-
output,
|
|
1131
|
-
parsedBody,
|
|
1132
|
-
errorCode,
|
|
1133
|
-
});
|
|
1134
|
-
}
|
|
1135
|
-
};
|
|
1136
784
|
export const de_DeleteHostedConfigurationVersionCommand = async (output, context) => {
|
|
1137
785
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1138
|
-
return
|
|
786
|
+
return de_CommandError(output, context);
|
|
1139
787
|
}
|
|
1140
788
|
const contents = map({
|
|
1141
789
|
$metadata: deserializeMetadata(output),
|
|
@@ -1143,34 +791,9 @@ export const de_DeleteHostedConfigurationVersionCommand = async (output, context
|
|
|
1143
791
|
await collectBody(output.body, context);
|
|
1144
792
|
return contents;
|
|
1145
793
|
};
|
|
1146
|
-
const de_DeleteHostedConfigurationVersionCommandError = async (output, context) => {
|
|
1147
|
-
const parsedOutput = {
|
|
1148
|
-
...output,
|
|
1149
|
-
body: await parseErrorBody(output.body, context),
|
|
1150
|
-
};
|
|
1151
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
|
-
switch (errorCode) {
|
|
1153
|
-
case "BadRequestException":
|
|
1154
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1155
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "InternalServerException":
|
|
1157
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1158
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "ResourceNotFoundException":
|
|
1160
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1161
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1162
|
-
default:
|
|
1163
|
-
const parsedBody = parsedOutput.body;
|
|
1164
|
-
return throwDefaultError({
|
|
1165
|
-
output,
|
|
1166
|
-
parsedBody,
|
|
1167
|
-
errorCode,
|
|
1168
|
-
});
|
|
1169
|
-
}
|
|
1170
|
-
};
|
|
1171
794
|
export const de_GetApplicationCommand = async (output, context) => {
|
|
1172
795
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1173
|
-
return
|
|
796
|
+
return de_CommandError(output, context);
|
|
1174
797
|
}
|
|
1175
798
|
const contents = map({
|
|
1176
799
|
$metadata: deserializeMetadata(output),
|
|
@@ -1184,34 +807,9 @@ export const de_GetApplicationCommand = async (output, context) => {
|
|
|
1184
807
|
Object.assign(contents, doc);
|
|
1185
808
|
return contents;
|
|
1186
809
|
};
|
|
1187
|
-
const de_GetApplicationCommandError = async (output, context) => {
|
|
1188
|
-
const parsedOutput = {
|
|
1189
|
-
...output,
|
|
1190
|
-
body: await parseErrorBody(output.body, context),
|
|
1191
|
-
};
|
|
1192
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1193
|
-
switch (errorCode) {
|
|
1194
|
-
case "BadRequestException":
|
|
1195
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1196
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1197
|
-
case "InternalServerException":
|
|
1198
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1199
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "ResourceNotFoundException":
|
|
1201
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1202
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1203
|
-
default:
|
|
1204
|
-
const parsedBody = parsedOutput.body;
|
|
1205
|
-
return throwDefaultError({
|
|
1206
|
-
output,
|
|
1207
|
-
parsedBody,
|
|
1208
|
-
errorCode,
|
|
1209
|
-
});
|
|
1210
|
-
}
|
|
1211
|
-
};
|
|
1212
810
|
export const de_GetConfigurationCommand = async (output, context) => {
|
|
1213
811
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1214
|
-
return
|
|
812
|
+
return de_CommandError(output, context);
|
|
1215
813
|
}
|
|
1216
814
|
const contents = map({
|
|
1217
815
|
$metadata: deserializeMetadata(output),
|
|
@@ -1222,34 +820,9 @@ export const de_GetConfigurationCommand = async (output, context) => {
|
|
|
1222
820
|
contents.Content = data;
|
|
1223
821
|
return contents;
|
|
1224
822
|
};
|
|
1225
|
-
const de_GetConfigurationCommandError = async (output, context) => {
|
|
1226
|
-
const parsedOutput = {
|
|
1227
|
-
...output,
|
|
1228
|
-
body: await parseErrorBody(output.body, context),
|
|
1229
|
-
};
|
|
1230
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1231
|
-
switch (errorCode) {
|
|
1232
|
-
case "BadRequestException":
|
|
1233
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1234
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1235
|
-
case "InternalServerException":
|
|
1236
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1237
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1238
|
-
case "ResourceNotFoundException":
|
|
1239
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1240
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1241
|
-
default:
|
|
1242
|
-
const parsedBody = parsedOutput.body;
|
|
1243
|
-
return throwDefaultError({
|
|
1244
|
-
output,
|
|
1245
|
-
parsedBody,
|
|
1246
|
-
errorCode,
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
};
|
|
1250
823
|
export const de_GetConfigurationProfileCommand = async (output, context) => {
|
|
1251
824
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1252
|
-
return
|
|
825
|
+
return de_CommandError(output, context);
|
|
1253
826
|
}
|
|
1254
827
|
const contents = map({
|
|
1255
828
|
$metadata: deserializeMetadata(output),
|
|
@@ -1270,34 +843,9 @@ export const de_GetConfigurationProfileCommand = async (output, context) => {
|
|
|
1270
843
|
Object.assign(contents, doc);
|
|
1271
844
|
return contents;
|
|
1272
845
|
};
|
|
1273
|
-
const de_GetConfigurationProfileCommandError = async (output, context) => {
|
|
1274
|
-
const parsedOutput = {
|
|
1275
|
-
...output,
|
|
1276
|
-
body: await parseErrorBody(output.body, context),
|
|
1277
|
-
};
|
|
1278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1279
|
-
switch (errorCode) {
|
|
1280
|
-
case "BadRequestException":
|
|
1281
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1282
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "InternalServerException":
|
|
1284
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1285
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "ResourceNotFoundException":
|
|
1287
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1288
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1289
|
-
default:
|
|
1290
|
-
const parsedBody = parsedOutput.body;
|
|
1291
|
-
return throwDefaultError({
|
|
1292
|
-
output,
|
|
1293
|
-
parsedBody,
|
|
1294
|
-
errorCode,
|
|
1295
|
-
});
|
|
1296
|
-
}
|
|
1297
|
-
};
|
|
1298
846
|
export const de_GetDeploymentCommand = async (output, context) => {
|
|
1299
847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1300
|
-
return
|
|
848
|
+
return de_CommandError(output, context);
|
|
1301
849
|
}
|
|
1302
850
|
const contents = map({
|
|
1303
851
|
$metadata: deserializeMetadata(output),
|
|
@@ -1330,34 +878,9 @@ export const de_GetDeploymentCommand = async (output, context) => {
|
|
|
1330
878
|
Object.assign(contents, doc);
|
|
1331
879
|
return contents;
|
|
1332
880
|
};
|
|
1333
|
-
const de_GetDeploymentCommandError = async (output, context) => {
|
|
1334
|
-
const parsedOutput = {
|
|
1335
|
-
...output,
|
|
1336
|
-
body: await parseErrorBody(output.body, context),
|
|
1337
|
-
};
|
|
1338
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1339
|
-
switch (errorCode) {
|
|
1340
|
-
case "BadRequestException":
|
|
1341
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1342
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "InternalServerException":
|
|
1344
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1345
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "ResourceNotFoundException":
|
|
1347
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1348
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1349
|
-
default:
|
|
1350
|
-
const parsedBody = parsedOutput.body;
|
|
1351
|
-
return throwDefaultError({
|
|
1352
|
-
output,
|
|
1353
|
-
parsedBody,
|
|
1354
|
-
errorCode,
|
|
1355
|
-
});
|
|
1356
|
-
}
|
|
1357
|
-
};
|
|
1358
881
|
export const de_GetDeploymentStrategyCommand = async (output, context) => {
|
|
1359
882
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1360
|
-
return
|
|
883
|
+
return de_CommandError(output, context);
|
|
1361
884
|
}
|
|
1362
885
|
const contents = map({
|
|
1363
886
|
$metadata: deserializeMetadata(output),
|
|
@@ -1376,34 +899,9 @@ export const de_GetDeploymentStrategyCommand = async (output, context) => {
|
|
|
1376
899
|
Object.assign(contents, doc);
|
|
1377
900
|
return contents;
|
|
1378
901
|
};
|
|
1379
|
-
const de_GetDeploymentStrategyCommandError = async (output, context) => {
|
|
1380
|
-
const parsedOutput = {
|
|
1381
|
-
...output,
|
|
1382
|
-
body: await parseErrorBody(output.body, context),
|
|
1383
|
-
};
|
|
1384
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1385
|
-
switch (errorCode) {
|
|
1386
|
-
case "BadRequestException":
|
|
1387
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1388
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "InternalServerException":
|
|
1390
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1391
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "ResourceNotFoundException":
|
|
1393
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1394
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1395
|
-
default:
|
|
1396
|
-
const parsedBody = parsedOutput.body;
|
|
1397
|
-
return throwDefaultError({
|
|
1398
|
-
output,
|
|
1399
|
-
parsedBody,
|
|
1400
|
-
errorCode,
|
|
1401
|
-
});
|
|
1402
|
-
}
|
|
1403
|
-
};
|
|
1404
902
|
export const de_GetEnvironmentCommand = async (output, context) => {
|
|
1405
903
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1406
|
-
return
|
|
904
|
+
return de_CommandError(output, context);
|
|
1407
905
|
}
|
|
1408
906
|
const contents = map({
|
|
1409
907
|
$metadata: deserializeMetadata(output),
|
|
@@ -1420,34 +918,9 @@ export const de_GetEnvironmentCommand = async (output, context) => {
|
|
|
1420
918
|
Object.assign(contents, doc);
|
|
1421
919
|
return contents;
|
|
1422
920
|
};
|
|
1423
|
-
const de_GetEnvironmentCommandError = async (output, context) => {
|
|
1424
|
-
const parsedOutput = {
|
|
1425
|
-
...output,
|
|
1426
|
-
body: await parseErrorBody(output.body, context),
|
|
1427
|
-
};
|
|
1428
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1429
|
-
switch (errorCode) {
|
|
1430
|
-
case "BadRequestException":
|
|
1431
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1432
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "InternalServerException":
|
|
1434
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1435
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "ResourceNotFoundException":
|
|
1437
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1438
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1439
|
-
default:
|
|
1440
|
-
const parsedBody = parsedOutput.body;
|
|
1441
|
-
return throwDefaultError({
|
|
1442
|
-
output,
|
|
1443
|
-
parsedBody,
|
|
1444
|
-
errorCode,
|
|
1445
|
-
});
|
|
1446
|
-
}
|
|
1447
|
-
};
|
|
1448
921
|
export const de_GetExtensionCommand = async (output, context) => {
|
|
1449
922
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1450
|
-
return
|
|
923
|
+
return de_CommandError(output, context);
|
|
1451
924
|
}
|
|
1452
925
|
const contents = map({
|
|
1453
926
|
$metadata: deserializeMetadata(output),
|
|
@@ -1461,38 +934,13 @@ export const de_GetExtensionCommand = async (output, context) => {
|
|
|
1461
934
|
Name: __expectString,
|
|
1462
935
|
Parameters: _json,
|
|
1463
936
|
VersionNumber: __expectInt32,
|
|
1464
|
-
});
|
|
1465
|
-
Object.assign(contents, doc);
|
|
1466
|
-
return contents;
|
|
1467
|
-
};
|
|
1468
|
-
const de_GetExtensionCommandError = async (output, context) => {
|
|
1469
|
-
const parsedOutput = {
|
|
1470
|
-
...output,
|
|
1471
|
-
body: await parseErrorBody(output.body, context),
|
|
1472
|
-
};
|
|
1473
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1474
|
-
switch (errorCode) {
|
|
1475
|
-
case "BadRequestException":
|
|
1476
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1477
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "InternalServerException":
|
|
1479
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1480
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "ResourceNotFoundException":
|
|
1482
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1483
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1484
|
-
default:
|
|
1485
|
-
const parsedBody = parsedOutput.body;
|
|
1486
|
-
return throwDefaultError({
|
|
1487
|
-
output,
|
|
1488
|
-
parsedBody,
|
|
1489
|
-
errorCode,
|
|
1490
|
-
});
|
|
1491
|
-
}
|
|
937
|
+
});
|
|
938
|
+
Object.assign(contents, doc);
|
|
939
|
+
return contents;
|
|
1492
940
|
};
|
|
1493
941
|
export const de_GetExtensionAssociationCommand = async (output, context) => {
|
|
1494
942
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1495
|
-
return
|
|
943
|
+
return de_CommandError(output, context);
|
|
1496
944
|
}
|
|
1497
945
|
const contents = map({
|
|
1498
946
|
$metadata: deserializeMetadata(output),
|
|
@@ -1509,34 +957,9 @@ export const de_GetExtensionAssociationCommand = async (output, context) => {
|
|
|
1509
957
|
Object.assign(contents, doc);
|
|
1510
958
|
return contents;
|
|
1511
959
|
};
|
|
1512
|
-
const de_GetExtensionAssociationCommandError = async (output, context) => {
|
|
1513
|
-
const parsedOutput = {
|
|
1514
|
-
...output,
|
|
1515
|
-
body: await parseErrorBody(output.body, context),
|
|
1516
|
-
};
|
|
1517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1518
|
-
switch (errorCode) {
|
|
1519
|
-
case "BadRequestException":
|
|
1520
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1521
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "InternalServerException":
|
|
1523
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1524
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "ResourceNotFoundException":
|
|
1526
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1527
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1528
|
-
default:
|
|
1529
|
-
const parsedBody = parsedOutput.body;
|
|
1530
|
-
return throwDefaultError({
|
|
1531
|
-
output,
|
|
1532
|
-
parsedBody,
|
|
1533
|
-
errorCode,
|
|
1534
|
-
});
|
|
1535
|
-
}
|
|
1536
|
-
};
|
|
1537
960
|
export const de_GetHostedConfigurationVersionCommand = async (output, context) => {
|
|
1538
961
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1539
|
-
return
|
|
962
|
+
return de_CommandError(output, context);
|
|
1540
963
|
}
|
|
1541
964
|
const contents = map({
|
|
1542
965
|
$metadata: deserializeMetadata(output),
|
|
@@ -1552,34 +975,9 @@ export const de_GetHostedConfigurationVersionCommand = async (output, context) =
|
|
|
1552
975
|
contents.Content = data;
|
|
1553
976
|
return contents;
|
|
1554
977
|
};
|
|
1555
|
-
const de_GetHostedConfigurationVersionCommandError = async (output, context) => {
|
|
1556
|
-
const parsedOutput = {
|
|
1557
|
-
...output,
|
|
1558
|
-
body: await parseErrorBody(output.body, context),
|
|
1559
|
-
};
|
|
1560
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1561
|
-
switch (errorCode) {
|
|
1562
|
-
case "BadRequestException":
|
|
1563
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1564
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1565
|
-
case "InternalServerException":
|
|
1566
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1567
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1568
|
-
case "ResourceNotFoundException":
|
|
1569
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1570
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1571
|
-
default:
|
|
1572
|
-
const parsedBody = parsedOutput.body;
|
|
1573
|
-
return throwDefaultError({
|
|
1574
|
-
output,
|
|
1575
|
-
parsedBody,
|
|
1576
|
-
errorCode,
|
|
1577
|
-
});
|
|
1578
|
-
}
|
|
1579
|
-
};
|
|
1580
978
|
export const de_ListApplicationsCommand = async (output, context) => {
|
|
1581
979
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1582
|
-
return
|
|
980
|
+
return de_CommandError(output, context);
|
|
1583
981
|
}
|
|
1584
982
|
const contents = map({
|
|
1585
983
|
$metadata: deserializeMetadata(output),
|
|
@@ -1592,31 +990,9 @@ export const de_ListApplicationsCommand = async (output, context) => {
|
|
|
1592
990
|
Object.assign(contents, doc);
|
|
1593
991
|
return contents;
|
|
1594
992
|
};
|
|
1595
|
-
const de_ListApplicationsCommandError = async (output, context) => {
|
|
1596
|
-
const parsedOutput = {
|
|
1597
|
-
...output,
|
|
1598
|
-
body: await parseErrorBody(output.body, context),
|
|
1599
|
-
};
|
|
1600
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1601
|
-
switch (errorCode) {
|
|
1602
|
-
case "BadRequestException":
|
|
1603
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1604
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1605
|
-
case "InternalServerException":
|
|
1606
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1607
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1608
|
-
default:
|
|
1609
|
-
const parsedBody = parsedOutput.body;
|
|
1610
|
-
return throwDefaultError({
|
|
1611
|
-
output,
|
|
1612
|
-
parsedBody,
|
|
1613
|
-
errorCode,
|
|
1614
|
-
});
|
|
1615
|
-
}
|
|
1616
|
-
};
|
|
1617
993
|
export const de_ListConfigurationProfilesCommand = async (output, context) => {
|
|
1618
994
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1619
|
-
return
|
|
995
|
+
return de_CommandError(output, context);
|
|
1620
996
|
}
|
|
1621
997
|
const contents = map({
|
|
1622
998
|
$metadata: deserializeMetadata(output),
|
|
@@ -1629,34 +1005,9 @@ export const de_ListConfigurationProfilesCommand = async (output, context) => {
|
|
|
1629
1005
|
Object.assign(contents, doc);
|
|
1630
1006
|
return contents;
|
|
1631
1007
|
};
|
|
1632
|
-
const de_ListConfigurationProfilesCommandError = async (output, context) => {
|
|
1633
|
-
const parsedOutput = {
|
|
1634
|
-
...output,
|
|
1635
|
-
body: await parseErrorBody(output.body, context),
|
|
1636
|
-
};
|
|
1637
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1638
|
-
switch (errorCode) {
|
|
1639
|
-
case "BadRequestException":
|
|
1640
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1641
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "InternalServerException":
|
|
1643
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1644
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "ResourceNotFoundException":
|
|
1646
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1647
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1648
|
-
default:
|
|
1649
|
-
const parsedBody = parsedOutput.body;
|
|
1650
|
-
return throwDefaultError({
|
|
1651
|
-
output,
|
|
1652
|
-
parsedBody,
|
|
1653
|
-
errorCode,
|
|
1654
|
-
});
|
|
1655
|
-
}
|
|
1656
|
-
};
|
|
1657
1008
|
export const de_ListDeploymentsCommand = async (output, context) => {
|
|
1658
1009
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1659
|
-
return
|
|
1010
|
+
return de_CommandError(output, context);
|
|
1660
1011
|
}
|
|
1661
1012
|
const contents = map({
|
|
1662
1013
|
$metadata: deserializeMetadata(output),
|
|
@@ -1669,34 +1020,9 @@ export const de_ListDeploymentsCommand = async (output, context) => {
|
|
|
1669
1020
|
Object.assign(contents, doc);
|
|
1670
1021
|
return contents;
|
|
1671
1022
|
};
|
|
1672
|
-
const de_ListDeploymentsCommandError = async (output, context) => {
|
|
1673
|
-
const parsedOutput = {
|
|
1674
|
-
...output,
|
|
1675
|
-
body: await parseErrorBody(output.body, context),
|
|
1676
|
-
};
|
|
1677
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1678
|
-
switch (errorCode) {
|
|
1679
|
-
case "BadRequestException":
|
|
1680
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1681
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1682
|
-
case "InternalServerException":
|
|
1683
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1684
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1685
|
-
case "ResourceNotFoundException":
|
|
1686
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1687
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1688
|
-
default:
|
|
1689
|
-
const parsedBody = parsedOutput.body;
|
|
1690
|
-
return throwDefaultError({
|
|
1691
|
-
output,
|
|
1692
|
-
parsedBody,
|
|
1693
|
-
errorCode,
|
|
1694
|
-
});
|
|
1695
|
-
}
|
|
1696
|
-
};
|
|
1697
1023
|
export const de_ListDeploymentStrategiesCommand = async (output, context) => {
|
|
1698
1024
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1699
|
-
return
|
|
1025
|
+
return de_CommandError(output, context);
|
|
1700
1026
|
}
|
|
1701
1027
|
const contents = map({
|
|
1702
1028
|
$metadata: deserializeMetadata(output),
|
|
@@ -1709,31 +1035,9 @@ export const de_ListDeploymentStrategiesCommand = async (output, context) => {
|
|
|
1709
1035
|
Object.assign(contents, doc);
|
|
1710
1036
|
return contents;
|
|
1711
1037
|
};
|
|
1712
|
-
const de_ListDeploymentStrategiesCommandError = async (output, context) => {
|
|
1713
|
-
const parsedOutput = {
|
|
1714
|
-
...output,
|
|
1715
|
-
body: await parseErrorBody(output.body, context),
|
|
1716
|
-
};
|
|
1717
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1718
|
-
switch (errorCode) {
|
|
1719
|
-
case "BadRequestException":
|
|
1720
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1721
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1722
|
-
case "InternalServerException":
|
|
1723
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1724
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1725
|
-
default:
|
|
1726
|
-
const parsedBody = parsedOutput.body;
|
|
1727
|
-
return throwDefaultError({
|
|
1728
|
-
output,
|
|
1729
|
-
parsedBody,
|
|
1730
|
-
errorCode,
|
|
1731
|
-
});
|
|
1732
|
-
}
|
|
1733
|
-
};
|
|
1734
1038
|
export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
1735
1039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1736
|
-
return
|
|
1040
|
+
return de_CommandError(output, context);
|
|
1737
1041
|
}
|
|
1738
1042
|
const contents = map({
|
|
1739
1043
|
$metadata: deserializeMetadata(output),
|
|
@@ -1746,34 +1050,9 @@ export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
|
1746
1050
|
Object.assign(contents, doc);
|
|
1747
1051
|
return contents;
|
|
1748
1052
|
};
|
|
1749
|
-
const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
1750
|
-
const parsedOutput = {
|
|
1751
|
-
...output,
|
|
1752
|
-
body: await parseErrorBody(output.body, context),
|
|
1753
|
-
};
|
|
1754
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1755
|
-
switch (errorCode) {
|
|
1756
|
-
case "BadRequestException":
|
|
1757
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1758
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1759
|
-
case "InternalServerException":
|
|
1760
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1761
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1762
|
-
case "ResourceNotFoundException":
|
|
1763
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1764
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1765
|
-
default:
|
|
1766
|
-
const parsedBody = parsedOutput.body;
|
|
1767
|
-
return throwDefaultError({
|
|
1768
|
-
output,
|
|
1769
|
-
parsedBody,
|
|
1770
|
-
errorCode,
|
|
1771
|
-
});
|
|
1772
|
-
}
|
|
1773
|
-
};
|
|
1774
1053
|
export const de_ListExtensionAssociationsCommand = async (output, context) => {
|
|
1775
1054
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1776
|
-
return
|
|
1055
|
+
return de_CommandError(output, context);
|
|
1777
1056
|
}
|
|
1778
1057
|
const contents = map({
|
|
1779
1058
|
$metadata: deserializeMetadata(output),
|
|
@@ -1786,31 +1065,9 @@ export const de_ListExtensionAssociationsCommand = async (output, context) => {
|
|
|
1786
1065
|
Object.assign(contents, doc);
|
|
1787
1066
|
return contents;
|
|
1788
1067
|
};
|
|
1789
|
-
const de_ListExtensionAssociationsCommandError = async (output, context) => {
|
|
1790
|
-
const parsedOutput = {
|
|
1791
|
-
...output,
|
|
1792
|
-
body: await parseErrorBody(output.body, context),
|
|
1793
|
-
};
|
|
1794
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1795
|
-
switch (errorCode) {
|
|
1796
|
-
case "BadRequestException":
|
|
1797
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1798
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1799
|
-
case "InternalServerException":
|
|
1800
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1801
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1802
|
-
default:
|
|
1803
|
-
const parsedBody = parsedOutput.body;
|
|
1804
|
-
return throwDefaultError({
|
|
1805
|
-
output,
|
|
1806
|
-
parsedBody,
|
|
1807
|
-
errorCode,
|
|
1808
|
-
});
|
|
1809
|
-
}
|
|
1810
|
-
};
|
|
1811
1068
|
export const de_ListExtensionsCommand = async (output, context) => {
|
|
1812
1069
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1813
|
-
return
|
|
1070
|
+
return de_CommandError(output, context);
|
|
1814
1071
|
}
|
|
1815
1072
|
const contents = map({
|
|
1816
1073
|
$metadata: deserializeMetadata(output),
|
|
@@ -1823,31 +1080,9 @@ export const de_ListExtensionsCommand = async (output, context) => {
|
|
|
1823
1080
|
Object.assign(contents, doc);
|
|
1824
1081
|
return contents;
|
|
1825
1082
|
};
|
|
1826
|
-
const de_ListExtensionsCommandError = async (output, context) => {
|
|
1827
|
-
const parsedOutput = {
|
|
1828
|
-
...output,
|
|
1829
|
-
body: await parseErrorBody(output.body, context),
|
|
1830
|
-
};
|
|
1831
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1832
|
-
switch (errorCode) {
|
|
1833
|
-
case "BadRequestException":
|
|
1834
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1835
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1836
|
-
case "InternalServerException":
|
|
1837
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1838
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1839
|
-
default:
|
|
1840
|
-
const parsedBody = parsedOutput.body;
|
|
1841
|
-
return throwDefaultError({
|
|
1842
|
-
output,
|
|
1843
|
-
parsedBody,
|
|
1844
|
-
errorCode,
|
|
1845
|
-
});
|
|
1846
|
-
}
|
|
1847
|
-
};
|
|
1848
1083
|
export const de_ListHostedConfigurationVersionsCommand = async (output, context) => {
|
|
1849
1084
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1850
|
-
return
|
|
1085
|
+
return de_CommandError(output, context);
|
|
1851
1086
|
}
|
|
1852
1087
|
const contents = map({
|
|
1853
1088
|
$metadata: deserializeMetadata(output),
|
|
@@ -1860,34 +1095,9 @@ export const de_ListHostedConfigurationVersionsCommand = async (output, context)
|
|
|
1860
1095
|
Object.assign(contents, doc);
|
|
1861
1096
|
return contents;
|
|
1862
1097
|
};
|
|
1863
|
-
const de_ListHostedConfigurationVersionsCommandError = async (output, context) => {
|
|
1864
|
-
const parsedOutput = {
|
|
1865
|
-
...output,
|
|
1866
|
-
body: await parseErrorBody(output.body, context),
|
|
1867
|
-
};
|
|
1868
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1869
|
-
switch (errorCode) {
|
|
1870
|
-
case "BadRequestException":
|
|
1871
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1872
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1873
|
-
case "InternalServerException":
|
|
1874
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1875
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "ResourceNotFoundException":
|
|
1877
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1878
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1879
|
-
default:
|
|
1880
|
-
const parsedBody = parsedOutput.body;
|
|
1881
|
-
return throwDefaultError({
|
|
1882
|
-
output,
|
|
1883
|
-
parsedBody,
|
|
1884
|
-
errorCode,
|
|
1885
|
-
});
|
|
1886
|
-
}
|
|
1887
|
-
};
|
|
1888
1098
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1889
1099
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1890
|
-
return
|
|
1100
|
+
return de_CommandError(output, context);
|
|
1891
1101
|
}
|
|
1892
1102
|
const contents = map({
|
|
1893
1103
|
$metadata: deserializeMetadata(output),
|
|
@@ -1897,36 +1107,11 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1897
1107
|
Tags: _json,
|
|
1898
1108
|
});
|
|
1899
1109
|
Object.assign(contents, doc);
|
|
1900
|
-
return contents;
|
|
1901
|
-
};
|
|
1902
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1903
|
-
const parsedOutput = {
|
|
1904
|
-
...output,
|
|
1905
|
-
body: await parseErrorBody(output.body, context),
|
|
1906
|
-
};
|
|
1907
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1908
|
-
switch (errorCode) {
|
|
1909
|
-
case "BadRequestException":
|
|
1910
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1911
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1912
|
-
case "InternalServerException":
|
|
1913
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1914
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "ResourceNotFoundException":
|
|
1916
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1917
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1918
|
-
default:
|
|
1919
|
-
const parsedBody = parsedOutput.body;
|
|
1920
|
-
return throwDefaultError({
|
|
1921
|
-
output,
|
|
1922
|
-
parsedBody,
|
|
1923
|
-
errorCode,
|
|
1924
|
-
});
|
|
1925
|
-
}
|
|
1110
|
+
return contents;
|
|
1926
1111
|
};
|
|
1927
1112
|
export const de_StartDeploymentCommand = async (output, context) => {
|
|
1928
1113
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1929
|
-
return
|
|
1114
|
+
return de_CommandError(output, context);
|
|
1930
1115
|
}
|
|
1931
1116
|
const contents = map({
|
|
1932
1117
|
$metadata: deserializeMetadata(output),
|
|
@@ -1959,37 +1144,9 @@ export const de_StartDeploymentCommand = async (output, context) => {
|
|
|
1959
1144
|
Object.assign(contents, doc);
|
|
1960
1145
|
return contents;
|
|
1961
1146
|
};
|
|
1962
|
-
const de_StartDeploymentCommandError = async (output, context) => {
|
|
1963
|
-
const parsedOutput = {
|
|
1964
|
-
...output,
|
|
1965
|
-
body: await parseErrorBody(output.body, context),
|
|
1966
|
-
};
|
|
1967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1968
|
-
switch (errorCode) {
|
|
1969
|
-
case "BadRequestException":
|
|
1970
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
1971
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1972
|
-
case "ConflictException":
|
|
1973
|
-
case "com.amazonaws.appconfig#ConflictException":
|
|
1974
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1975
|
-
case "InternalServerException":
|
|
1976
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
1977
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1978
|
-
case "ResourceNotFoundException":
|
|
1979
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1980
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1981
|
-
default:
|
|
1982
|
-
const parsedBody = parsedOutput.body;
|
|
1983
|
-
return throwDefaultError({
|
|
1984
|
-
output,
|
|
1985
|
-
parsedBody,
|
|
1986
|
-
errorCode,
|
|
1987
|
-
});
|
|
1988
|
-
}
|
|
1989
|
-
};
|
|
1990
1147
|
export const de_StopDeploymentCommand = async (output, context) => {
|
|
1991
1148
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1992
|
-
return
|
|
1149
|
+
return de_CommandError(output, context);
|
|
1993
1150
|
}
|
|
1994
1151
|
const contents = map({
|
|
1995
1152
|
$metadata: deserializeMetadata(output),
|
|
@@ -2022,34 +1179,9 @@ export const de_StopDeploymentCommand = async (output, context) => {
|
|
|
2022
1179
|
Object.assign(contents, doc);
|
|
2023
1180
|
return contents;
|
|
2024
1181
|
};
|
|
2025
|
-
const de_StopDeploymentCommandError = async (output, context) => {
|
|
2026
|
-
const parsedOutput = {
|
|
2027
|
-
...output,
|
|
2028
|
-
body: await parseErrorBody(output.body, context),
|
|
2029
|
-
};
|
|
2030
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2031
|
-
switch (errorCode) {
|
|
2032
|
-
case "BadRequestException":
|
|
2033
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
2034
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2035
|
-
case "InternalServerException":
|
|
2036
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
2037
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2038
|
-
case "ResourceNotFoundException":
|
|
2039
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2040
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2041
|
-
default:
|
|
2042
|
-
const parsedBody = parsedOutput.body;
|
|
2043
|
-
return throwDefaultError({
|
|
2044
|
-
output,
|
|
2045
|
-
parsedBody,
|
|
2046
|
-
errorCode,
|
|
2047
|
-
});
|
|
2048
|
-
}
|
|
2049
|
-
};
|
|
2050
1182
|
export const de_TagResourceCommand = async (output, context) => {
|
|
2051
1183
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2052
|
-
return
|
|
1184
|
+
return de_CommandError(output, context);
|
|
2053
1185
|
}
|
|
2054
1186
|
const contents = map({
|
|
2055
1187
|
$metadata: deserializeMetadata(output),
|
|
@@ -2057,34 +1189,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2057
1189
|
await collectBody(output.body, context);
|
|
2058
1190
|
return contents;
|
|
2059
1191
|
};
|
|
2060
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2061
|
-
const parsedOutput = {
|
|
2062
|
-
...output,
|
|
2063
|
-
body: await parseErrorBody(output.body, context),
|
|
2064
|
-
};
|
|
2065
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2066
|
-
switch (errorCode) {
|
|
2067
|
-
case "BadRequestException":
|
|
2068
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
2069
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2070
|
-
case "InternalServerException":
|
|
2071
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
2072
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2073
|
-
case "ResourceNotFoundException":
|
|
2074
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2075
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2076
|
-
default:
|
|
2077
|
-
const parsedBody = parsedOutput.body;
|
|
2078
|
-
return throwDefaultError({
|
|
2079
|
-
output,
|
|
2080
|
-
parsedBody,
|
|
2081
|
-
errorCode,
|
|
2082
|
-
});
|
|
2083
|
-
}
|
|
2084
|
-
};
|
|
2085
1192
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
2086
1193
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2087
|
-
return
|
|
1194
|
+
return de_CommandError(output, context);
|
|
2088
1195
|
}
|
|
2089
1196
|
const contents = map({
|
|
2090
1197
|
$metadata: deserializeMetadata(output),
|
|
@@ -2092,34 +1199,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2092
1199
|
await collectBody(output.body, context);
|
|
2093
1200
|
return contents;
|
|
2094
1201
|
};
|
|
2095
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2096
|
-
const parsedOutput = {
|
|
2097
|
-
...output,
|
|
2098
|
-
body: await parseErrorBody(output.body, context),
|
|
2099
|
-
};
|
|
2100
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2101
|
-
switch (errorCode) {
|
|
2102
|
-
case "BadRequestException":
|
|
2103
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
2104
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2105
|
-
case "InternalServerException":
|
|
2106
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
2107
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2108
|
-
case "ResourceNotFoundException":
|
|
2109
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2110
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2111
|
-
default:
|
|
2112
|
-
const parsedBody = parsedOutput.body;
|
|
2113
|
-
return throwDefaultError({
|
|
2114
|
-
output,
|
|
2115
|
-
parsedBody,
|
|
2116
|
-
errorCode,
|
|
2117
|
-
});
|
|
2118
|
-
}
|
|
2119
|
-
};
|
|
2120
1202
|
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
2121
1203
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2122
|
-
return
|
|
1204
|
+
return de_CommandError(output, context);
|
|
2123
1205
|
}
|
|
2124
1206
|
const contents = map({
|
|
2125
1207
|
$metadata: deserializeMetadata(output),
|
|
@@ -2133,34 +1215,9 @@ export const de_UpdateApplicationCommand = async (output, context) => {
|
|
|
2133
1215
|
Object.assign(contents, doc);
|
|
2134
1216
|
return contents;
|
|
2135
1217
|
};
|
|
2136
|
-
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
2137
|
-
const parsedOutput = {
|
|
2138
|
-
...output,
|
|
2139
|
-
body: await parseErrorBody(output.body, context),
|
|
2140
|
-
};
|
|
2141
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2142
|
-
switch (errorCode) {
|
|
2143
|
-
case "BadRequestException":
|
|
2144
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
2145
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2146
|
-
case "InternalServerException":
|
|
2147
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
2148
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2149
|
-
case "ResourceNotFoundException":
|
|
2150
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2151
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2152
|
-
default:
|
|
2153
|
-
const parsedBody = parsedOutput.body;
|
|
2154
|
-
return throwDefaultError({
|
|
2155
|
-
output,
|
|
2156
|
-
parsedBody,
|
|
2157
|
-
errorCode,
|
|
2158
|
-
});
|
|
2159
|
-
}
|
|
2160
|
-
};
|
|
2161
1218
|
export const de_UpdateConfigurationProfileCommand = async (output, context) => {
|
|
2162
1219
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2163
|
-
return
|
|
1220
|
+
return de_CommandError(output, context);
|
|
2164
1221
|
}
|
|
2165
1222
|
const contents = map({
|
|
2166
1223
|
$metadata: deserializeMetadata(output),
|
|
@@ -2181,34 +1238,9 @@ export const de_UpdateConfigurationProfileCommand = async (output, context) => {
|
|
|
2181
1238
|
Object.assign(contents, doc);
|
|
2182
1239
|
return contents;
|
|
2183
1240
|
};
|
|
2184
|
-
const de_UpdateConfigurationProfileCommandError = async (output, context) => {
|
|
2185
|
-
const parsedOutput = {
|
|
2186
|
-
...output,
|
|
2187
|
-
body: await parseErrorBody(output.body, context),
|
|
2188
|
-
};
|
|
2189
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2190
|
-
switch (errorCode) {
|
|
2191
|
-
case "BadRequestException":
|
|
2192
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
2193
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2194
|
-
case "InternalServerException":
|
|
2195
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
2196
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "ResourceNotFoundException":
|
|
2198
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2199
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2200
|
-
default:
|
|
2201
|
-
const parsedBody = parsedOutput.body;
|
|
2202
|
-
return throwDefaultError({
|
|
2203
|
-
output,
|
|
2204
|
-
parsedBody,
|
|
2205
|
-
errorCode,
|
|
2206
|
-
});
|
|
2207
|
-
}
|
|
2208
|
-
};
|
|
2209
1241
|
export const de_UpdateDeploymentStrategyCommand = async (output, context) => {
|
|
2210
1242
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2211
|
-
return
|
|
1243
|
+
return de_CommandError(output, context);
|
|
2212
1244
|
}
|
|
2213
1245
|
const contents = map({
|
|
2214
1246
|
$metadata: deserializeMetadata(output),
|
|
@@ -2227,34 +1259,9 @@ export const de_UpdateDeploymentStrategyCommand = async (output, context) => {
|
|
|
2227
1259
|
Object.assign(contents, doc);
|
|
2228
1260
|
return contents;
|
|
2229
1261
|
};
|
|
2230
|
-
const de_UpdateDeploymentStrategyCommandError = async (output, context) => {
|
|
2231
|
-
const parsedOutput = {
|
|
2232
|
-
...output,
|
|
2233
|
-
body: await parseErrorBody(output.body, context),
|
|
2234
|
-
};
|
|
2235
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2236
|
-
switch (errorCode) {
|
|
2237
|
-
case "BadRequestException":
|
|
2238
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
2239
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2240
|
-
case "InternalServerException":
|
|
2241
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
2242
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2243
|
-
case "ResourceNotFoundException":
|
|
2244
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2245
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2246
|
-
default:
|
|
2247
|
-
const parsedBody = parsedOutput.body;
|
|
2248
|
-
return throwDefaultError({
|
|
2249
|
-
output,
|
|
2250
|
-
parsedBody,
|
|
2251
|
-
errorCode,
|
|
2252
|
-
});
|
|
2253
|
-
}
|
|
2254
|
-
};
|
|
2255
1262
|
export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
2256
1263
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2257
|
-
return
|
|
1264
|
+
return de_CommandError(output, context);
|
|
2258
1265
|
}
|
|
2259
1266
|
const contents = map({
|
|
2260
1267
|
$metadata: deserializeMetadata(output),
|
|
@@ -2271,34 +1278,9 @@ export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
|
2271
1278
|
Object.assign(contents, doc);
|
|
2272
1279
|
return contents;
|
|
2273
1280
|
};
|
|
2274
|
-
const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
2275
|
-
const parsedOutput = {
|
|
2276
|
-
...output,
|
|
2277
|
-
body: await parseErrorBody(output.body, context),
|
|
2278
|
-
};
|
|
2279
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2280
|
-
switch (errorCode) {
|
|
2281
|
-
case "BadRequestException":
|
|
2282
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
2283
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "InternalServerException":
|
|
2285
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
2286
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2287
|
-
case "ResourceNotFoundException":
|
|
2288
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2289
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2290
|
-
default:
|
|
2291
|
-
const parsedBody = parsedOutput.body;
|
|
2292
|
-
return throwDefaultError({
|
|
2293
|
-
output,
|
|
2294
|
-
parsedBody,
|
|
2295
|
-
errorCode,
|
|
2296
|
-
});
|
|
2297
|
-
}
|
|
2298
|
-
};
|
|
2299
1281
|
export const de_UpdateExtensionCommand = async (output, context) => {
|
|
2300
1282
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2301
|
-
return
|
|
1283
|
+
return de_CommandError(output, context);
|
|
2302
1284
|
}
|
|
2303
1285
|
const contents = map({
|
|
2304
1286
|
$metadata: deserializeMetadata(output),
|
|
@@ -2316,37 +1298,9 @@ export const de_UpdateExtensionCommand = async (output, context) => {
|
|
|
2316
1298
|
Object.assign(contents, doc);
|
|
2317
1299
|
return contents;
|
|
2318
1300
|
};
|
|
2319
|
-
const de_UpdateExtensionCommandError = async (output, context) => {
|
|
2320
|
-
const parsedOutput = {
|
|
2321
|
-
...output,
|
|
2322
|
-
body: await parseErrorBody(output.body, context),
|
|
2323
|
-
};
|
|
2324
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2325
|
-
switch (errorCode) {
|
|
2326
|
-
case "BadRequestException":
|
|
2327
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
2328
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2329
|
-
case "ConflictException":
|
|
2330
|
-
case "com.amazonaws.appconfig#ConflictException":
|
|
2331
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2332
|
-
case "InternalServerException":
|
|
2333
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
2334
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2335
|
-
case "ResourceNotFoundException":
|
|
2336
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2337
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2338
|
-
default:
|
|
2339
|
-
const parsedBody = parsedOutput.body;
|
|
2340
|
-
return throwDefaultError({
|
|
2341
|
-
output,
|
|
2342
|
-
parsedBody,
|
|
2343
|
-
errorCode,
|
|
2344
|
-
});
|
|
2345
|
-
}
|
|
2346
|
-
};
|
|
2347
1301
|
export const de_UpdateExtensionAssociationCommand = async (output, context) => {
|
|
2348
1302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2349
|
-
return
|
|
1303
|
+
return de_CommandError(output, context);
|
|
2350
1304
|
}
|
|
2351
1305
|
const contents = map({
|
|
2352
1306
|
$metadata: deserializeMetadata(output),
|
|
@@ -2363,34 +1317,9 @@ export const de_UpdateExtensionAssociationCommand = async (output, context) => {
|
|
|
2363
1317
|
Object.assign(contents, doc);
|
|
2364
1318
|
return contents;
|
|
2365
1319
|
};
|
|
2366
|
-
const de_UpdateExtensionAssociationCommandError = async (output, context) => {
|
|
2367
|
-
const parsedOutput = {
|
|
2368
|
-
...output,
|
|
2369
|
-
body: await parseErrorBody(output.body, context),
|
|
2370
|
-
};
|
|
2371
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2372
|
-
switch (errorCode) {
|
|
2373
|
-
case "BadRequestException":
|
|
2374
|
-
case "com.amazonaws.appconfig#BadRequestException":
|
|
2375
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2376
|
-
case "InternalServerException":
|
|
2377
|
-
case "com.amazonaws.appconfig#InternalServerException":
|
|
2378
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "ResourceNotFoundException":
|
|
2380
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2381
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2382
|
-
default:
|
|
2383
|
-
const parsedBody = parsedOutput.body;
|
|
2384
|
-
return throwDefaultError({
|
|
2385
|
-
output,
|
|
2386
|
-
parsedBody,
|
|
2387
|
-
errorCode,
|
|
2388
|
-
});
|
|
2389
|
-
}
|
|
2390
|
-
};
|
|
2391
1320
|
export const de_ValidateConfigurationCommand = async (output, context) => {
|
|
2392
1321
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2393
|
-
return
|
|
1322
|
+
return de_CommandError(output, context);
|
|
2394
1323
|
}
|
|
2395
1324
|
const contents = map({
|
|
2396
1325
|
$metadata: deserializeMetadata(output),
|
|
@@ -2398,7 +1327,7 @@ export const de_ValidateConfigurationCommand = async (output, context) => {
|
|
|
2398
1327
|
await collectBody(output.body, context);
|
|
2399
1328
|
return contents;
|
|
2400
1329
|
};
|
|
2401
|
-
const
|
|
1330
|
+
const de_CommandError = async (output, context) => {
|
|
2402
1331
|
const parsedOutput = {
|
|
2403
1332
|
...output,
|
|
2404
1333
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2411,9 +1340,18 @@ const de_ValidateConfigurationCommandError = async (output, context) => {
|
|
|
2411
1340
|
case "InternalServerException":
|
|
2412
1341
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2413
1342
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1343
|
+
case "ServiceQuotaExceededException":
|
|
1344
|
+
case "com.amazonaws.appconfig#ServiceQuotaExceededException":
|
|
1345
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2414
1346
|
case "ResourceNotFoundException":
|
|
2415
1347
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2416
1348
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1349
|
+
case "ConflictException":
|
|
1350
|
+
case "com.amazonaws.appconfig#ConflictException":
|
|
1351
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1352
|
+
case "PayloadTooLargeException":
|
|
1353
|
+
case "com.amazonaws.appconfig#PayloadTooLargeException":
|
|
1354
|
+
throw await de_PayloadTooLargeExceptionRes(parsedOutput, context);
|
|
2417
1355
|
default:
|
|
2418
1356
|
const parsedBody = parsedOutput.body;
|
|
2419
1357
|
return throwDefaultError({
|