@aws-sdk/client-gamelift 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +225 -3265
- package/dist-es/protocols/Aws_json1_1.js +523 -3563
- package/package.json +3 -3
|
@@ -628,7 +628,7 @@ export const se_ValidateMatchmakingRuleSetCommand = async (input, context) => {
|
|
|
628
628
|
};
|
|
629
629
|
export const de_AcceptMatchCommand = async (output, context) => {
|
|
630
630
|
if (output.statusCode >= 300) {
|
|
631
|
-
return
|
|
631
|
+
return de_CommandError(output, context);
|
|
632
632
|
}
|
|
633
633
|
const data = await parseBody(output.body, context);
|
|
634
634
|
let contents = {};
|
|
@@ -639,37 +639,9 @@ export const de_AcceptMatchCommand = async (output, context) => {
|
|
|
639
639
|
};
|
|
640
640
|
return response;
|
|
641
641
|
};
|
|
642
|
-
const de_AcceptMatchCommandError = async (output, context) => {
|
|
643
|
-
const parsedOutput = {
|
|
644
|
-
...output,
|
|
645
|
-
body: await parseErrorBody(output.body, context),
|
|
646
|
-
};
|
|
647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
648
|
-
switch (errorCode) {
|
|
649
|
-
case "InternalServiceException":
|
|
650
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
651
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
652
|
-
case "InvalidRequestException":
|
|
653
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
654
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
655
|
-
case "NotFoundException":
|
|
656
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
657
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
658
|
-
case "UnsupportedRegionException":
|
|
659
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
660
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
661
|
-
default:
|
|
662
|
-
const parsedBody = parsedOutput.body;
|
|
663
|
-
return throwDefaultError({
|
|
664
|
-
output,
|
|
665
|
-
parsedBody,
|
|
666
|
-
errorCode,
|
|
667
|
-
});
|
|
668
|
-
}
|
|
669
|
-
};
|
|
670
642
|
export const de_ClaimGameServerCommand = async (output, context) => {
|
|
671
643
|
if (output.statusCode >= 300) {
|
|
672
|
-
return
|
|
644
|
+
return de_CommandError(output, context);
|
|
673
645
|
}
|
|
674
646
|
const data = await parseBody(output.body, context);
|
|
675
647
|
let contents = {};
|
|
@@ -680,43 +652,9 @@ export const de_ClaimGameServerCommand = async (output, context) => {
|
|
|
680
652
|
};
|
|
681
653
|
return response;
|
|
682
654
|
};
|
|
683
|
-
const de_ClaimGameServerCommandError = async (output, context) => {
|
|
684
|
-
const parsedOutput = {
|
|
685
|
-
...output,
|
|
686
|
-
body: await parseErrorBody(output.body, context),
|
|
687
|
-
};
|
|
688
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
689
|
-
switch (errorCode) {
|
|
690
|
-
case "ConflictException":
|
|
691
|
-
case "com.amazonaws.gamelift#ConflictException":
|
|
692
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
693
|
-
case "InternalServiceException":
|
|
694
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
695
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
696
|
-
case "InvalidRequestException":
|
|
697
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
698
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
699
|
-
case "NotFoundException":
|
|
700
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
701
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
702
|
-
case "OutOfCapacityException":
|
|
703
|
-
case "com.amazonaws.gamelift#OutOfCapacityException":
|
|
704
|
-
throw await de_OutOfCapacityExceptionRes(parsedOutput, context);
|
|
705
|
-
case "UnauthorizedException":
|
|
706
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
707
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
708
|
-
default:
|
|
709
|
-
const parsedBody = parsedOutput.body;
|
|
710
|
-
return throwDefaultError({
|
|
711
|
-
output,
|
|
712
|
-
parsedBody,
|
|
713
|
-
errorCode,
|
|
714
|
-
});
|
|
715
|
-
}
|
|
716
|
-
};
|
|
717
655
|
export const de_CreateAliasCommand = async (output, context) => {
|
|
718
656
|
if (output.statusCode >= 300) {
|
|
719
|
-
return
|
|
657
|
+
return de_CommandError(output, context);
|
|
720
658
|
}
|
|
721
659
|
const data = await parseBody(output.body, context);
|
|
722
660
|
let contents = {};
|
|
@@ -727,43 +665,9 @@ export const de_CreateAliasCommand = async (output, context) => {
|
|
|
727
665
|
};
|
|
728
666
|
return response;
|
|
729
667
|
};
|
|
730
|
-
const de_CreateAliasCommandError = async (output, context) => {
|
|
731
|
-
const parsedOutput = {
|
|
732
|
-
...output,
|
|
733
|
-
body: await parseErrorBody(output.body, context),
|
|
734
|
-
};
|
|
735
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
736
|
-
switch (errorCode) {
|
|
737
|
-
case "ConflictException":
|
|
738
|
-
case "com.amazonaws.gamelift#ConflictException":
|
|
739
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
740
|
-
case "InternalServiceException":
|
|
741
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
742
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
743
|
-
case "InvalidRequestException":
|
|
744
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
745
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
746
|
-
case "LimitExceededException":
|
|
747
|
-
case "com.amazonaws.gamelift#LimitExceededException":
|
|
748
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
749
|
-
case "TaggingFailedException":
|
|
750
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
751
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
752
|
-
case "UnauthorizedException":
|
|
753
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
754
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
755
|
-
default:
|
|
756
|
-
const parsedBody = parsedOutput.body;
|
|
757
|
-
return throwDefaultError({
|
|
758
|
-
output,
|
|
759
|
-
parsedBody,
|
|
760
|
-
errorCode,
|
|
761
|
-
});
|
|
762
|
-
}
|
|
763
|
-
};
|
|
764
668
|
export const de_CreateBuildCommand = async (output, context) => {
|
|
765
669
|
if (output.statusCode >= 300) {
|
|
766
|
-
return
|
|
670
|
+
return de_CommandError(output, context);
|
|
767
671
|
}
|
|
768
672
|
const data = await parseBody(output.body, context);
|
|
769
673
|
let contents = {};
|
|
@@ -774,40 +678,9 @@ export const de_CreateBuildCommand = async (output, context) => {
|
|
|
774
678
|
};
|
|
775
679
|
return response;
|
|
776
680
|
};
|
|
777
|
-
const de_CreateBuildCommandError = async (output, context) => {
|
|
778
|
-
const parsedOutput = {
|
|
779
|
-
...output,
|
|
780
|
-
body: await parseErrorBody(output.body, context),
|
|
781
|
-
};
|
|
782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
|
-
switch (errorCode) {
|
|
784
|
-
case "ConflictException":
|
|
785
|
-
case "com.amazonaws.gamelift#ConflictException":
|
|
786
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
787
|
-
case "InternalServiceException":
|
|
788
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
789
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
790
|
-
case "InvalidRequestException":
|
|
791
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
792
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
793
|
-
case "TaggingFailedException":
|
|
794
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
795
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
796
|
-
case "UnauthorizedException":
|
|
797
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
798
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
799
|
-
default:
|
|
800
|
-
const parsedBody = parsedOutput.body;
|
|
801
|
-
return throwDefaultError({
|
|
802
|
-
output,
|
|
803
|
-
parsedBody,
|
|
804
|
-
errorCode,
|
|
805
|
-
});
|
|
806
|
-
}
|
|
807
|
-
};
|
|
808
681
|
export const de_CreateFleetCommand = async (output, context) => {
|
|
809
682
|
if (output.statusCode >= 300) {
|
|
810
|
-
return
|
|
683
|
+
return de_CommandError(output, context);
|
|
811
684
|
}
|
|
812
685
|
const data = await parseBody(output.body, context);
|
|
813
686
|
let contents = {};
|
|
@@ -818,49 +691,9 @@ export const de_CreateFleetCommand = async (output, context) => {
|
|
|
818
691
|
};
|
|
819
692
|
return response;
|
|
820
693
|
};
|
|
821
|
-
const de_CreateFleetCommandError = async (output, context) => {
|
|
822
|
-
const parsedOutput = {
|
|
823
|
-
...output,
|
|
824
|
-
body: await parseErrorBody(output.body, context),
|
|
825
|
-
};
|
|
826
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
827
|
-
switch (errorCode) {
|
|
828
|
-
case "ConflictException":
|
|
829
|
-
case "com.amazonaws.gamelift#ConflictException":
|
|
830
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
831
|
-
case "InternalServiceException":
|
|
832
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
833
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
834
|
-
case "InvalidRequestException":
|
|
835
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
836
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
837
|
-
case "LimitExceededException":
|
|
838
|
-
case "com.amazonaws.gamelift#LimitExceededException":
|
|
839
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
840
|
-
case "NotFoundException":
|
|
841
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
842
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
843
|
-
case "TaggingFailedException":
|
|
844
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
845
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
846
|
-
case "UnauthorizedException":
|
|
847
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
848
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
849
|
-
case "UnsupportedRegionException":
|
|
850
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
851
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
852
|
-
default:
|
|
853
|
-
const parsedBody = parsedOutput.body;
|
|
854
|
-
return throwDefaultError({
|
|
855
|
-
output,
|
|
856
|
-
parsedBody,
|
|
857
|
-
errorCode,
|
|
858
|
-
});
|
|
859
|
-
}
|
|
860
|
-
};
|
|
861
694
|
export const de_CreateFleetLocationsCommand = async (output, context) => {
|
|
862
695
|
if (output.statusCode >= 300) {
|
|
863
|
-
return
|
|
696
|
+
return de_CommandError(output, context);
|
|
864
697
|
}
|
|
865
698
|
const data = await parseBody(output.body, context);
|
|
866
699
|
let contents = {};
|
|
@@ -871,49 +704,9 @@ export const de_CreateFleetLocationsCommand = async (output, context) => {
|
|
|
871
704
|
};
|
|
872
705
|
return response;
|
|
873
706
|
};
|
|
874
|
-
const de_CreateFleetLocationsCommandError = async (output, context) => {
|
|
875
|
-
const parsedOutput = {
|
|
876
|
-
...output,
|
|
877
|
-
body: await parseErrorBody(output.body, context),
|
|
878
|
-
};
|
|
879
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
|
-
switch (errorCode) {
|
|
881
|
-
case "ConflictException":
|
|
882
|
-
case "com.amazonaws.gamelift#ConflictException":
|
|
883
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
884
|
-
case "InternalServiceException":
|
|
885
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
886
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
887
|
-
case "InvalidFleetStatusException":
|
|
888
|
-
case "com.amazonaws.gamelift#InvalidFleetStatusException":
|
|
889
|
-
throw await de_InvalidFleetStatusExceptionRes(parsedOutput, context);
|
|
890
|
-
case "InvalidRequestException":
|
|
891
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
892
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
893
|
-
case "LimitExceededException":
|
|
894
|
-
case "com.amazonaws.gamelift#LimitExceededException":
|
|
895
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
896
|
-
case "NotFoundException":
|
|
897
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
898
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
899
|
-
case "UnauthorizedException":
|
|
900
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
901
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
902
|
-
case "UnsupportedRegionException":
|
|
903
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
904
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
905
|
-
default:
|
|
906
|
-
const parsedBody = parsedOutput.body;
|
|
907
|
-
return throwDefaultError({
|
|
908
|
-
output,
|
|
909
|
-
parsedBody,
|
|
910
|
-
errorCode,
|
|
911
|
-
});
|
|
912
|
-
}
|
|
913
|
-
};
|
|
914
707
|
export const de_CreateGameServerGroupCommand = async (output, context) => {
|
|
915
708
|
if (output.statusCode >= 300) {
|
|
916
|
-
return
|
|
709
|
+
return de_CommandError(output, context);
|
|
917
710
|
}
|
|
918
711
|
const data = await parseBody(output.body, context);
|
|
919
712
|
let contents = {};
|
|
@@ -924,40 +717,9 @@ export const de_CreateGameServerGroupCommand = async (output, context) => {
|
|
|
924
717
|
};
|
|
925
718
|
return response;
|
|
926
719
|
};
|
|
927
|
-
const de_CreateGameServerGroupCommandError = async (output, context) => {
|
|
928
|
-
const parsedOutput = {
|
|
929
|
-
...output,
|
|
930
|
-
body: await parseErrorBody(output.body, context),
|
|
931
|
-
};
|
|
932
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
|
-
switch (errorCode) {
|
|
934
|
-
case "ConflictException":
|
|
935
|
-
case "com.amazonaws.gamelift#ConflictException":
|
|
936
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
937
|
-
case "InternalServiceException":
|
|
938
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
939
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
940
|
-
case "InvalidRequestException":
|
|
941
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
942
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
943
|
-
case "LimitExceededException":
|
|
944
|
-
case "com.amazonaws.gamelift#LimitExceededException":
|
|
945
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
946
|
-
case "UnauthorizedException":
|
|
947
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
948
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
949
|
-
default:
|
|
950
|
-
const parsedBody = parsedOutput.body;
|
|
951
|
-
return throwDefaultError({
|
|
952
|
-
output,
|
|
953
|
-
parsedBody,
|
|
954
|
-
errorCode,
|
|
955
|
-
});
|
|
956
|
-
}
|
|
957
|
-
};
|
|
958
720
|
export const de_CreateGameSessionCommand = async (output, context) => {
|
|
959
721
|
if (output.statusCode >= 300) {
|
|
960
|
-
return
|
|
722
|
+
return de_CommandError(output, context);
|
|
961
723
|
}
|
|
962
724
|
const data = await parseBody(output.body, context);
|
|
963
725
|
let contents = {};
|
|
@@ -968,105 +730,22 @@ export const de_CreateGameSessionCommand = async (output, context) => {
|
|
|
968
730
|
};
|
|
969
731
|
return response;
|
|
970
732
|
};
|
|
971
|
-
const
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
case "FleetCapacityExceededException":
|
|
982
|
-
case "com.amazonaws.gamelift#FleetCapacityExceededException":
|
|
983
|
-
throw await de_FleetCapacityExceededExceptionRes(parsedOutput, context);
|
|
984
|
-
case "IdempotentParameterMismatchException":
|
|
985
|
-
case "com.amazonaws.gamelift#IdempotentParameterMismatchException":
|
|
986
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
987
|
-
case "InternalServiceException":
|
|
988
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
989
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
990
|
-
case "InvalidFleetStatusException":
|
|
991
|
-
case "com.amazonaws.gamelift#InvalidFleetStatusException":
|
|
992
|
-
throw await de_InvalidFleetStatusExceptionRes(parsedOutput, context);
|
|
993
|
-
case "InvalidRequestException":
|
|
994
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
995
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
996
|
-
case "LimitExceededException":
|
|
997
|
-
case "com.amazonaws.gamelift#LimitExceededException":
|
|
998
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
999
|
-
case "NotFoundException":
|
|
1000
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1001
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "TerminalRoutingStrategyException":
|
|
1003
|
-
case "com.amazonaws.gamelift#TerminalRoutingStrategyException":
|
|
1004
|
-
throw await de_TerminalRoutingStrategyExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "UnauthorizedException":
|
|
1006
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1007
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "UnsupportedRegionException":
|
|
1009
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
1010
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
1011
|
-
default:
|
|
1012
|
-
const parsedBody = parsedOutput.body;
|
|
1013
|
-
return throwDefaultError({
|
|
1014
|
-
output,
|
|
1015
|
-
parsedBody,
|
|
1016
|
-
errorCode,
|
|
1017
|
-
});
|
|
1018
|
-
}
|
|
1019
|
-
};
|
|
1020
|
-
export const de_CreateGameSessionQueueCommand = async (output, context) => {
|
|
1021
|
-
if (output.statusCode >= 300) {
|
|
1022
|
-
return de_CreateGameSessionQueueCommandError(output, context);
|
|
1023
|
-
}
|
|
1024
|
-
const data = await parseBody(output.body, context);
|
|
1025
|
-
let contents = {};
|
|
1026
|
-
contents = _json(data);
|
|
1027
|
-
const response = {
|
|
1028
|
-
$metadata: deserializeMetadata(output),
|
|
1029
|
-
...contents,
|
|
733
|
+
export const de_CreateGameSessionQueueCommand = async (output, context) => {
|
|
734
|
+
if (output.statusCode >= 300) {
|
|
735
|
+
return de_CommandError(output, context);
|
|
736
|
+
}
|
|
737
|
+
const data = await parseBody(output.body, context);
|
|
738
|
+
let contents = {};
|
|
739
|
+
contents = _json(data);
|
|
740
|
+
const response = {
|
|
741
|
+
$metadata: deserializeMetadata(output),
|
|
742
|
+
...contents,
|
|
1030
743
|
};
|
|
1031
744
|
return response;
|
|
1032
745
|
};
|
|
1033
|
-
const de_CreateGameSessionQueueCommandError = async (output, context) => {
|
|
1034
|
-
const parsedOutput = {
|
|
1035
|
-
...output,
|
|
1036
|
-
body: await parseErrorBody(output.body, context),
|
|
1037
|
-
};
|
|
1038
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1039
|
-
switch (errorCode) {
|
|
1040
|
-
case "InternalServiceException":
|
|
1041
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1042
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1043
|
-
case "InvalidRequestException":
|
|
1044
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1045
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1046
|
-
case "LimitExceededException":
|
|
1047
|
-
case "com.amazonaws.gamelift#LimitExceededException":
|
|
1048
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1049
|
-
case "NotFoundException":
|
|
1050
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1051
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1052
|
-
case "TaggingFailedException":
|
|
1053
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
1054
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
1055
|
-
case "UnauthorizedException":
|
|
1056
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1057
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1058
|
-
default:
|
|
1059
|
-
const parsedBody = parsedOutput.body;
|
|
1060
|
-
return throwDefaultError({
|
|
1061
|
-
output,
|
|
1062
|
-
parsedBody,
|
|
1063
|
-
errorCode,
|
|
1064
|
-
});
|
|
1065
|
-
}
|
|
1066
|
-
};
|
|
1067
746
|
export const de_CreateLocationCommand = async (output, context) => {
|
|
1068
747
|
if (output.statusCode >= 300) {
|
|
1069
|
-
return
|
|
748
|
+
return de_CommandError(output, context);
|
|
1070
749
|
}
|
|
1071
750
|
const data = await parseBody(output.body, context);
|
|
1072
751
|
let contents = {};
|
|
@@ -1077,43 +756,9 @@ export const de_CreateLocationCommand = async (output, context) => {
|
|
|
1077
756
|
};
|
|
1078
757
|
return response;
|
|
1079
758
|
};
|
|
1080
|
-
const de_CreateLocationCommandError = async (output, context) => {
|
|
1081
|
-
const parsedOutput = {
|
|
1082
|
-
...output,
|
|
1083
|
-
body: await parseErrorBody(output.body, context),
|
|
1084
|
-
};
|
|
1085
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1086
|
-
switch (errorCode) {
|
|
1087
|
-
case "ConflictException":
|
|
1088
|
-
case "com.amazonaws.gamelift#ConflictException":
|
|
1089
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "InternalServiceException":
|
|
1091
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1092
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "InvalidRequestException":
|
|
1094
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1095
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1096
|
-
case "LimitExceededException":
|
|
1097
|
-
case "com.amazonaws.gamelift#LimitExceededException":
|
|
1098
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "TaggingFailedException":
|
|
1100
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
1101
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "UnauthorizedException":
|
|
1103
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1104
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1105
|
-
default:
|
|
1106
|
-
const parsedBody = parsedOutput.body;
|
|
1107
|
-
return throwDefaultError({
|
|
1108
|
-
output,
|
|
1109
|
-
parsedBody,
|
|
1110
|
-
errorCode,
|
|
1111
|
-
});
|
|
1112
|
-
}
|
|
1113
|
-
};
|
|
1114
759
|
export const de_CreateMatchmakingConfigurationCommand = async (output, context) => {
|
|
1115
760
|
if (output.statusCode >= 300) {
|
|
1116
|
-
return
|
|
761
|
+
return de_CommandError(output, context);
|
|
1117
762
|
}
|
|
1118
763
|
const data = await parseBody(output.body, context);
|
|
1119
764
|
let contents = {};
|
|
@@ -1124,43 +769,9 @@ export const de_CreateMatchmakingConfigurationCommand = async (output, context)
|
|
|
1124
769
|
};
|
|
1125
770
|
return response;
|
|
1126
771
|
};
|
|
1127
|
-
const de_CreateMatchmakingConfigurationCommandError = async (output, context) => {
|
|
1128
|
-
const parsedOutput = {
|
|
1129
|
-
...output,
|
|
1130
|
-
body: await parseErrorBody(output.body, context),
|
|
1131
|
-
};
|
|
1132
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1133
|
-
switch (errorCode) {
|
|
1134
|
-
case "InternalServiceException":
|
|
1135
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1136
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1137
|
-
case "InvalidRequestException":
|
|
1138
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1139
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1140
|
-
case "LimitExceededException":
|
|
1141
|
-
case "com.amazonaws.gamelift#LimitExceededException":
|
|
1142
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1143
|
-
case "NotFoundException":
|
|
1144
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1145
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1146
|
-
case "TaggingFailedException":
|
|
1147
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
1148
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
1149
|
-
case "UnsupportedRegionException":
|
|
1150
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
1151
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
1152
|
-
default:
|
|
1153
|
-
const parsedBody = parsedOutput.body;
|
|
1154
|
-
return throwDefaultError({
|
|
1155
|
-
output,
|
|
1156
|
-
parsedBody,
|
|
1157
|
-
errorCode,
|
|
1158
|
-
});
|
|
1159
|
-
}
|
|
1160
|
-
};
|
|
1161
772
|
export const de_CreateMatchmakingRuleSetCommand = async (output, context) => {
|
|
1162
773
|
if (output.statusCode >= 300) {
|
|
1163
|
-
return
|
|
774
|
+
return de_CommandError(output, context);
|
|
1164
775
|
}
|
|
1165
776
|
const data = await parseBody(output.body, context);
|
|
1166
777
|
let contents = {};
|
|
@@ -1171,40 +782,9 @@ export const de_CreateMatchmakingRuleSetCommand = async (output, context) => {
|
|
|
1171
782
|
};
|
|
1172
783
|
return response;
|
|
1173
784
|
};
|
|
1174
|
-
const de_CreateMatchmakingRuleSetCommandError = async (output, context) => {
|
|
1175
|
-
const parsedOutput = {
|
|
1176
|
-
...output,
|
|
1177
|
-
body: await parseErrorBody(output.body, context),
|
|
1178
|
-
};
|
|
1179
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1180
|
-
switch (errorCode) {
|
|
1181
|
-
case "InternalServiceException":
|
|
1182
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1183
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "InvalidRequestException":
|
|
1185
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1186
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "LimitExceededException":
|
|
1188
|
-
case "com.amazonaws.gamelift#LimitExceededException":
|
|
1189
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "TaggingFailedException":
|
|
1191
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
1192
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
1193
|
-
case "UnsupportedRegionException":
|
|
1194
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
1195
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
1196
|
-
default:
|
|
1197
|
-
const parsedBody = parsedOutput.body;
|
|
1198
|
-
return throwDefaultError({
|
|
1199
|
-
output,
|
|
1200
|
-
parsedBody,
|
|
1201
|
-
errorCode,
|
|
1202
|
-
});
|
|
1203
|
-
}
|
|
1204
|
-
};
|
|
1205
785
|
export const de_CreatePlayerSessionCommand = async (output, context) => {
|
|
1206
786
|
if (output.statusCode >= 300) {
|
|
1207
|
-
return
|
|
787
|
+
return de_CommandError(output, context);
|
|
1208
788
|
}
|
|
1209
789
|
const data = await parseBody(output.body, context);
|
|
1210
790
|
let contents = {};
|
|
@@ -1215,46 +795,9 @@ export const de_CreatePlayerSessionCommand = async (output, context) => {
|
|
|
1215
795
|
};
|
|
1216
796
|
return response;
|
|
1217
797
|
};
|
|
1218
|
-
const de_CreatePlayerSessionCommandError = async (output, context) => {
|
|
1219
|
-
const parsedOutput = {
|
|
1220
|
-
...output,
|
|
1221
|
-
body: await parseErrorBody(output.body, context),
|
|
1222
|
-
};
|
|
1223
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1224
|
-
switch (errorCode) {
|
|
1225
|
-
case "GameSessionFullException":
|
|
1226
|
-
case "com.amazonaws.gamelift#GameSessionFullException":
|
|
1227
|
-
throw await de_GameSessionFullExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "InternalServiceException":
|
|
1229
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1230
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1231
|
-
case "InvalidGameSessionStatusException":
|
|
1232
|
-
case "com.amazonaws.gamelift#InvalidGameSessionStatusException":
|
|
1233
|
-
throw await de_InvalidGameSessionStatusExceptionRes(parsedOutput, context);
|
|
1234
|
-
case "InvalidRequestException":
|
|
1235
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1236
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1237
|
-
case "NotFoundException":
|
|
1238
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1239
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "TerminalRoutingStrategyException":
|
|
1241
|
-
case "com.amazonaws.gamelift#TerminalRoutingStrategyException":
|
|
1242
|
-
throw await de_TerminalRoutingStrategyExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "UnauthorizedException":
|
|
1244
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1245
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1246
|
-
default:
|
|
1247
|
-
const parsedBody = parsedOutput.body;
|
|
1248
|
-
return throwDefaultError({
|
|
1249
|
-
output,
|
|
1250
|
-
parsedBody,
|
|
1251
|
-
errorCode,
|
|
1252
|
-
});
|
|
1253
|
-
}
|
|
1254
|
-
};
|
|
1255
798
|
export const de_CreatePlayerSessionsCommand = async (output, context) => {
|
|
1256
799
|
if (output.statusCode >= 300) {
|
|
1257
|
-
return
|
|
800
|
+
return de_CommandError(output, context);
|
|
1258
801
|
}
|
|
1259
802
|
const data = await parseBody(output.body, context);
|
|
1260
803
|
let contents = {};
|
|
@@ -1265,46 +808,9 @@ export const de_CreatePlayerSessionsCommand = async (output, context) => {
|
|
|
1265
808
|
};
|
|
1266
809
|
return response;
|
|
1267
810
|
};
|
|
1268
|
-
const de_CreatePlayerSessionsCommandError = async (output, context) => {
|
|
1269
|
-
const parsedOutput = {
|
|
1270
|
-
...output,
|
|
1271
|
-
body: await parseErrorBody(output.body, context),
|
|
1272
|
-
};
|
|
1273
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1274
|
-
switch (errorCode) {
|
|
1275
|
-
case "GameSessionFullException":
|
|
1276
|
-
case "com.amazonaws.gamelift#GameSessionFullException":
|
|
1277
|
-
throw await de_GameSessionFullExceptionRes(parsedOutput, context);
|
|
1278
|
-
case "InternalServiceException":
|
|
1279
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1280
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "InvalidGameSessionStatusException":
|
|
1282
|
-
case "com.amazonaws.gamelift#InvalidGameSessionStatusException":
|
|
1283
|
-
throw await de_InvalidGameSessionStatusExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "InvalidRequestException":
|
|
1285
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1286
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1287
|
-
case "NotFoundException":
|
|
1288
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1289
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "TerminalRoutingStrategyException":
|
|
1291
|
-
case "com.amazonaws.gamelift#TerminalRoutingStrategyException":
|
|
1292
|
-
throw await de_TerminalRoutingStrategyExceptionRes(parsedOutput, context);
|
|
1293
|
-
case "UnauthorizedException":
|
|
1294
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1295
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1296
|
-
default:
|
|
1297
|
-
const parsedBody = parsedOutput.body;
|
|
1298
|
-
return throwDefaultError({
|
|
1299
|
-
output,
|
|
1300
|
-
parsedBody,
|
|
1301
|
-
errorCode,
|
|
1302
|
-
});
|
|
1303
|
-
}
|
|
1304
|
-
};
|
|
1305
811
|
export const de_CreateScriptCommand = async (output, context) => {
|
|
1306
812
|
if (output.statusCode >= 300) {
|
|
1307
|
-
return
|
|
813
|
+
return de_CommandError(output, context);
|
|
1308
814
|
}
|
|
1309
815
|
const data = await parseBody(output.body, context);
|
|
1310
816
|
let contents = {};
|
|
@@ -1315,1332 +821,65 @@ export const de_CreateScriptCommand = async (output, context) => {
|
|
|
1315
821
|
};
|
|
1316
822
|
return response;
|
|
1317
823
|
};
|
|
1318
|
-
const
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
case "InternalServiceException":
|
|
1329
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1330
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "InvalidRequestException":
|
|
1332
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1333
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "TaggingFailedException":
|
|
1335
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
1336
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "UnauthorizedException":
|
|
1338
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1339
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1340
|
-
default:
|
|
1341
|
-
const parsedBody = parsedOutput.body;
|
|
1342
|
-
return throwDefaultError({
|
|
1343
|
-
output,
|
|
1344
|
-
parsedBody,
|
|
1345
|
-
errorCode,
|
|
1346
|
-
});
|
|
1347
|
-
}
|
|
1348
|
-
};
|
|
1349
|
-
export const de_CreateVpcPeeringAuthorizationCommand = async (output, context) => {
|
|
1350
|
-
if (output.statusCode >= 300) {
|
|
1351
|
-
return de_CreateVpcPeeringAuthorizationCommandError(output, context);
|
|
1352
|
-
}
|
|
1353
|
-
const data = await parseBody(output.body, context);
|
|
1354
|
-
let contents = {};
|
|
1355
|
-
contents = de_CreateVpcPeeringAuthorizationOutput(data, context);
|
|
1356
|
-
const response = {
|
|
1357
|
-
$metadata: deserializeMetadata(output),
|
|
1358
|
-
...contents,
|
|
1359
|
-
};
|
|
1360
|
-
return response;
|
|
1361
|
-
};
|
|
1362
|
-
const de_CreateVpcPeeringAuthorizationCommandError = async (output, context) => {
|
|
1363
|
-
const parsedOutput = {
|
|
1364
|
-
...output,
|
|
1365
|
-
body: await parseErrorBody(output.body, context),
|
|
1366
|
-
};
|
|
1367
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1368
|
-
switch (errorCode) {
|
|
1369
|
-
case "InternalServiceException":
|
|
1370
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1371
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1372
|
-
case "InvalidRequestException":
|
|
1373
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1374
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1375
|
-
case "NotFoundException":
|
|
1376
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1377
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "UnauthorizedException":
|
|
1379
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1380
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1381
|
-
default:
|
|
1382
|
-
const parsedBody = parsedOutput.body;
|
|
1383
|
-
return throwDefaultError({
|
|
1384
|
-
output,
|
|
1385
|
-
parsedBody,
|
|
1386
|
-
errorCode,
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
};
|
|
1390
|
-
export const de_CreateVpcPeeringConnectionCommand = async (output, context) => {
|
|
1391
|
-
if (output.statusCode >= 300) {
|
|
1392
|
-
return de_CreateVpcPeeringConnectionCommandError(output, context);
|
|
1393
|
-
}
|
|
1394
|
-
const data = await parseBody(output.body, context);
|
|
1395
|
-
let contents = {};
|
|
1396
|
-
contents = _json(data);
|
|
1397
|
-
const response = {
|
|
1398
|
-
$metadata: deserializeMetadata(output),
|
|
1399
|
-
...contents,
|
|
1400
|
-
};
|
|
1401
|
-
return response;
|
|
1402
|
-
};
|
|
1403
|
-
const de_CreateVpcPeeringConnectionCommandError = async (output, context) => {
|
|
1404
|
-
const parsedOutput = {
|
|
1405
|
-
...output,
|
|
1406
|
-
body: await parseErrorBody(output.body, context),
|
|
1407
|
-
};
|
|
1408
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
|
-
switch (errorCode) {
|
|
1410
|
-
case "InternalServiceException":
|
|
1411
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1412
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "InvalidRequestException":
|
|
1414
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1415
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "NotFoundException":
|
|
1417
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1418
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "UnauthorizedException":
|
|
1420
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1421
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1422
|
-
default:
|
|
1423
|
-
const parsedBody = parsedOutput.body;
|
|
1424
|
-
return throwDefaultError({
|
|
1425
|
-
output,
|
|
1426
|
-
parsedBody,
|
|
1427
|
-
errorCode,
|
|
1428
|
-
});
|
|
1429
|
-
}
|
|
1430
|
-
};
|
|
1431
|
-
export const de_DeleteAliasCommand = async (output, context) => {
|
|
1432
|
-
if (output.statusCode >= 300) {
|
|
1433
|
-
return de_DeleteAliasCommandError(output, context);
|
|
1434
|
-
}
|
|
1435
|
-
await collectBody(output.body, context);
|
|
1436
|
-
const response = {
|
|
1437
|
-
$metadata: deserializeMetadata(output),
|
|
1438
|
-
};
|
|
1439
|
-
return response;
|
|
1440
|
-
};
|
|
1441
|
-
const de_DeleteAliasCommandError = async (output, context) => {
|
|
1442
|
-
const parsedOutput = {
|
|
1443
|
-
...output,
|
|
1444
|
-
body: await parseErrorBody(output.body, context),
|
|
1445
|
-
};
|
|
1446
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1447
|
-
switch (errorCode) {
|
|
1448
|
-
case "InternalServiceException":
|
|
1449
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1450
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1451
|
-
case "InvalidRequestException":
|
|
1452
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1453
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1454
|
-
case "NotFoundException":
|
|
1455
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1456
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1457
|
-
case "TaggingFailedException":
|
|
1458
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
1459
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
1460
|
-
case "UnauthorizedException":
|
|
1461
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1462
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1463
|
-
default:
|
|
1464
|
-
const parsedBody = parsedOutput.body;
|
|
1465
|
-
return throwDefaultError({
|
|
1466
|
-
output,
|
|
1467
|
-
parsedBody,
|
|
1468
|
-
errorCode,
|
|
1469
|
-
});
|
|
1470
|
-
}
|
|
1471
|
-
};
|
|
1472
|
-
export const de_DeleteBuildCommand = async (output, context) => {
|
|
1473
|
-
if (output.statusCode >= 300) {
|
|
1474
|
-
return de_DeleteBuildCommandError(output, context);
|
|
1475
|
-
}
|
|
1476
|
-
await collectBody(output.body, context);
|
|
1477
|
-
const response = {
|
|
1478
|
-
$metadata: deserializeMetadata(output),
|
|
1479
|
-
};
|
|
1480
|
-
return response;
|
|
1481
|
-
};
|
|
1482
|
-
const de_DeleteBuildCommandError = async (output, context) => {
|
|
1483
|
-
const parsedOutput = {
|
|
1484
|
-
...output,
|
|
1485
|
-
body: await parseErrorBody(output.body, context),
|
|
1486
|
-
};
|
|
1487
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1488
|
-
switch (errorCode) {
|
|
1489
|
-
case "InternalServiceException":
|
|
1490
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1491
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "InvalidRequestException":
|
|
1493
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1494
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "NotFoundException":
|
|
1496
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1497
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "TaggingFailedException":
|
|
1499
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
1500
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
1501
|
-
case "UnauthorizedException":
|
|
1502
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1503
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1504
|
-
default:
|
|
1505
|
-
const parsedBody = parsedOutput.body;
|
|
1506
|
-
return throwDefaultError({
|
|
1507
|
-
output,
|
|
1508
|
-
parsedBody,
|
|
1509
|
-
errorCode,
|
|
1510
|
-
});
|
|
1511
|
-
}
|
|
1512
|
-
};
|
|
1513
|
-
export const de_DeleteFleetCommand = async (output, context) => {
|
|
1514
|
-
if (output.statusCode >= 300) {
|
|
1515
|
-
return de_DeleteFleetCommandError(output, context);
|
|
1516
|
-
}
|
|
1517
|
-
await collectBody(output.body, context);
|
|
1518
|
-
const response = {
|
|
1519
|
-
$metadata: deserializeMetadata(output),
|
|
1520
|
-
};
|
|
1521
|
-
return response;
|
|
1522
|
-
};
|
|
1523
|
-
const de_DeleteFleetCommandError = async (output, context) => {
|
|
1524
|
-
const parsedOutput = {
|
|
1525
|
-
...output,
|
|
1526
|
-
body: await parseErrorBody(output.body, context),
|
|
1527
|
-
};
|
|
1528
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1529
|
-
switch (errorCode) {
|
|
1530
|
-
case "InternalServiceException":
|
|
1531
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1532
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1533
|
-
case "InvalidFleetStatusException":
|
|
1534
|
-
case "com.amazonaws.gamelift#InvalidFleetStatusException":
|
|
1535
|
-
throw await de_InvalidFleetStatusExceptionRes(parsedOutput, context);
|
|
1536
|
-
case "InvalidRequestException":
|
|
1537
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1538
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1539
|
-
case "NotFoundException":
|
|
1540
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1541
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1542
|
-
case "TaggingFailedException":
|
|
1543
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
1544
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
1545
|
-
case "UnauthorizedException":
|
|
1546
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1547
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1548
|
-
default:
|
|
1549
|
-
const parsedBody = parsedOutput.body;
|
|
1550
|
-
return throwDefaultError({
|
|
1551
|
-
output,
|
|
1552
|
-
parsedBody,
|
|
1553
|
-
errorCode,
|
|
1554
|
-
});
|
|
1555
|
-
}
|
|
1556
|
-
};
|
|
1557
|
-
export const de_DeleteFleetLocationsCommand = async (output, context) => {
|
|
1558
|
-
if (output.statusCode >= 300) {
|
|
1559
|
-
return de_DeleteFleetLocationsCommandError(output, context);
|
|
1560
|
-
}
|
|
1561
|
-
const data = await parseBody(output.body, context);
|
|
1562
|
-
let contents = {};
|
|
1563
|
-
contents = _json(data);
|
|
1564
|
-
const response = {
|
|
1565
|
-
$metadata: deserializeMetadata(output),
|
|
1566
|
-
...contents,
|
|
1567
|
-
};
|
|
1568
|
-
return response;
|
|
1569
|
-
};
|
|
1570
|
-
const de_DeleteFleetLocationsCommandError = async (output, context) => {
|
|
1571
|
-
const parsedOutput = {
|
|
1572
|
-
...output,
|
|
1573
|
-
body: await parseErrorBody(output.body, context),
|
|
1574
|
-
};
|
|
1575
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
|
-
switch (errorCode) {
|
|
1577
|
-
case "InternalServiceException":
|
|
1578
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1579
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1580
|
-
case "InvalidRequestException":
|
|
1581
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1582
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1583
|
-
case "NotFoundException":
|
|
1584
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1585
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "UnauthorizedException":
|
|
1587
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1588
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "UnsupportedRegionException":
|
|
1590
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
1591
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
1592
|
-
default:
|
|
1593
|
-
const parsedBody = parsedOutput.body;
|
|
1594
|
-
return throwDefaultError({
|
|
1595
|
-
output,
|
|
1596
|
-
parsedBody,
|
|
1597
|
-
errorCode,
|
|
1598
|
-
});
|
|
1599
|
-
}
|
|
1600
|
-
};
|
|
1601
|
-
export const de_DeleteGameServerGroupCommand = async (output, context) => {
|
|
1602
|
-
if (output.statusCode >= 300) {
|
|
1603
|
-
return de_DeleteGameServerGroupCommandError(output, context);
|
|
1604
|
-
}
|
|
1605
|
-
const data = await parseBody(output.body, context);
|
|
1606
|
-
let contents = {};
|
|
1607
|
-
contents = de_DeleteGameServerGroupOutput(data, context);
|
|
1608
|
-
const response = {
|
|
1609
|
-
$metadata: deserializeMetadata(output),
|
|
1610
|
-
...contents,
|
|
1611
|
-
};
|
|
1612
|
-
return response;
|
|
1613
|
-
};
|
|
1614
|
-
const de_DeleteGameServerGroupCommandError = async (output, context) => {
|
|
1615
|
-
const parsedOutput = {
|
|
1616
|
-
...output,
|
|
1617
|
-
body: await parseErrorBody(output.body, context),
|
|
1618
|
-
};
|
|
1619
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1620
|
-
switch (errorCode) {
|
|
1621
|
-
case "InternalServiceException":
|
|
1622
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1623
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1624
|
-
case "InvalidRequestException":
|
|
1625
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1626
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1627
|
-
case "NotFoundException":
|
|
1628
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1629
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "UnauthorizedException":
|
|
1631
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1632
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1633
|
-
default:
|
|
1634
|
-
const parsedBody = parsedOutput.body;
|
|
1635
|
-
return throwDefaultError({
|
|
1636
|
-
output,
|
|
1637
|
-
parsedBody,
|
|
1638
|
-
errorCode,
|
|
1639
|
-
});
|
|
1640
|
-
}
|
|
1641
|
-
};
|
|
1642
|
-
export const de_DeleteGameSessionQueueCommand = async (output, context) => {
|
|
1643
|
-
if (output.statusCode >= 300) {
|
|
1644
|
-
return de_DeleteGameSessionQueueCommandError(output, context);
|
|
1645
|
-
}
|
|
1646
|
-
const data = await parseBody(output.body, context);
|
|
1647
|
-
let contents = {};
|
|
1648
|
-
contents = _json(data);
|
|
1649
|
-
const response = {
|
|
1650
|
-
$metadata: deserializeMetadata(output),
|
|
1651
|
-
...contents,
|
|
1652
|
-
};
|
|
1653
|
-
return response;
|
|
1654
|
-
};
|
|
1655
|
-
const de_DeleteGameSessionQueueCommandError = async (output, context) => {
|
|
1656
|
-
const parsedOutput = {
|
|
1657
|
-
...output,
|
|
1658
|
-
body: await parseErrorBody(output.body, context),
|
|
1659
|
-
};
|
|
1660
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1661
|
-
switch (errorCode) {
|
|
1662
|
-
case "InternalServiceException":
|
|
1663
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1664
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1665
|
-
case "InvalidRequestException":
|
|
1666
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1667
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1668
|
-
case "NotFoundException":
|
|
1669
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1670
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1671
|
-
case "TaggingFailedException":
|
|
1672
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
1673
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
1674
|
-
case "UnauthorizedException":
|
|
1675
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1676
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1677
|
-
default:
|
|
1678
|
-
const parsedBody = parsedOutput.body;
|
|
1679
|
-
return throwDefaultError({
|
|
1680
|
-
output,
|
|
1681
|
-
parsedBody,
|
|
1682
|
-
errorCode,
|
|
1683
|
-
});
|
|
1684
|
-
}
|
|
1685
|
-
};
|
|
1686
|
-
export const de_DeleteLocationCommand = async (output, context) => {
|
|
1687
|
-
if (output.statusCode >= 300) {
|
|
1688
|
-
return de_DeleteLocationCommandError(output, context);
|
|
1689
|
-
}
|
|
1690
|
-
const data = await parseBody(output.body, context);
|
|
1691
|
-
let contents = {};
|
|
1692
|
-
contents = _json(data);
|
|
1693
|
-
const response = {
|
|
1694
|
-
$metadata: deserializeMetadata(output),
|
|
1695
|
-
...contents,
|
|
1696
|
-
};
|
|
1697
|
-
return response;
|
|
1698
|
-
};
|
|
1699
|
-
const de_DeleteLocationCommandError = async (output, context) => {
|
|
1700
|
-
const parsedOutput = {
|
|
1701
|
-
...output,
|
|
1702
|
-
body: await parseErrorBody(output.body, context),
|
|
1703
|
-
};
|
|
1704
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1705
|
-
switch (errorCode) {
|
|
1706
|
-
case "InternalServiceException":
|
|
1707
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1708
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1709
|
-
case "InvalidRequestException":
|
|
1710
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1711
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1712
|
-
case "NotFoundException":
|
|
1713
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1714
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1715
|
-
case "UnauthorizedException":
|
|
1716
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1717
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1718
|
-
default:
|
|
1719
|
-
const parsedBody = parsedOutput.body;
|
|
1720
|
-
return throwDefaultError({
|
|
1721
|
-
output,
|
|
1722
|
-
parsedBody,
|
|
1723
|
-
errorCode,
|
|
1724
|
-
});
|
|
1725
|
-
}
|
|
1726
|
-
};
|
|
1727
|
-
export const de_DeleteMatchmakingConfigurationCommand = async (output, context) => {
|
|
1728
|
-
if (output.statusCode >= 300) {
|
|
1729
|
-
return de_DeleteMatchmakingConfigurationCommandError(output, context);
|
|
1730
|
-
}
|
|
1731
|
-
const data = await parseBody(output.body, context);
|
|
1732
|
-
let contents = {};
|
|
1733
|
-
contents = _json(data);
|
|
1734
|
-
const response = {
|
|
1735
|
-
$metadata: deserializeMetadata(output),
|
|
1736
|
-
...contents,
|
|
1737
|
-
};
|
|
1738
|
-
return response;
|
|
1739
|
-
};
|
|
1740
|
-
const de_DeleteMatchmakingConfigurationCommandError = async (output, context) => {
|
|
1741
|
-
const parsedOutput = {
|
|
1742
|
-
...output,
|
|
1743
|
-
body: await parseErrorBody(output.body, context),
|
|
1744
|
-
};
|
|
1745
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1746
|
-
switch (errorCode) {
|
|
1747
|
-
case "InternalServiceException":
|
|
1748
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1749
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1750
|
-
case "InvalidRequestException":
|
|
1751
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1752
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1753
|
-
case "NotFoundException":
|
|
1754
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1755
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1756
|
-
case "TaggingFailedException":
|
|
1757
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
1758
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
1759
|
-
case "UnsupportedRegionException":
|
|
1760
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
1761
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
1762
|
-
default:
|
|
1763
|
-
const parsedBody = parsedOutput.body;
|
|
1764
|
-
return throwDefaultError({
|
|
1765
|
-
output,
|
|
1766
|
-
parsedBody,
|
|
1767
|
-
errorCode,
|
|
1768
|
-
});
|
|
1769
|
-
}
|
|
1770
|
-
};
|
|
1771
|
-
export const de_DeleteMatchmakingRuleSetCommand = async (output, context) => {
|
|
1772
|
-
if (output.statusCode >= 300) {
|
|
1773
|
-
return de_DeleteMatchmakingRuleSetCommandError(output, context);
|
|
1774
|
-
}
|
|
1775
|
-
const data = await parseBody(output.body, context);
|
|
1776
|
-
let contents = {};
|
|
1777
|
-
contents = _json(data);
|
|
1778
|
-
const response = {
|
|
1779
|
-
$metadata: deserializeMetadata(output),
|
|
1780
|
-
...contents,
|
|
1781
|
-
};
|
|
1782
|
-
return response;
|
|
1783
|
-
};
|
|
1784
|
-
const de_DeleteMatchmakingRuleSetCommandError = async (output, context) => {
|
|
1785
|
-
const parsedOutput = {
|
|
1786
|
-
...output,
|
|
1787
|
-
body: await parseErrorBody(output.body, context),
|
|
1788
|
-
};
|
|
1789
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1790
|
-
switch (errorCode) {
|
|
1791
|
-
case "InternalServiceException":
|
|
1792
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1793
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1794
|
-
case "InvalidRequestException":
|
|
1795
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1796
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1797
|
-
case "NotFoundException":
|
|
1798
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1799
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1800
|
-
case "TaggingFailedException":
|
|
1801
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
1802
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
1803
|
-
case "UnsupportedRegionException":
|
|
1804
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
1805
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
1806
|
-
default:
|
|
1807
|
-
const parsedBody = parsedOutput.body;
|
|
1808
|
-
return throwDefaultError({
|
|
1809
|
-
output,
|
|
1810
|
-
parsedBody,
|
|
1811
|
-
errorCode,
|
|
1812
|
-
});
|
|
1813
|
-
}
|
|
1814
|
-
};
|
|
1815
|
-
export const de_DeleteScalingPolicyCommand = async (output, context) => {
|
|
1816
|
-
if (output.statusCode >= 300) {
|
|
1817
|
-
return de_DeleteScalingPolicyCommandError(output, context);
|
|
1818
|
-
}
|
|
1819
|
-
await collectBody(output.body, context);
|
|
1820
|
-
const response = {
|
|
1821
|
-
$metadata: deserializeMetadata(output),
|
|
1822
|
-
};
|
|
1823
|
-
return response;
|
|
1824
|
-
};
|
|
1825
|
-
const de_DeleteScalingPolicyCommandError = async (output, context) => {
|
|
1826
|
-
const parsedOutput = {
|
|
1827
|
-
...output,
|
|
1828
|
-
body: await parseErrorBody(output.body, context),
|
|
1829
|
-
};
|
|
1830
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1831
|
-
switch (errorCode) {
|
|
1832
|
-
case "InternalServiceException":
|
|
1833
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1834
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1835
|
-
case "InvalidRequestException":
|
|
1836
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1837
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1838
|
-
case "NotFoundException":
|
|
1839
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1840
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1841
|
-
case "UnauthorizedException":
|
|
1842
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1843
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1844
|
-
default:
|
|
1845
|
-
const parsedBody = parsedOutput.body;
|
|
1846
|
-
return throwDefaultError({
|
|
1847
|
-
output,
|
|
1848
|
-
parsedBody,
|
|
1849
|
-
errorCode,
|
|
1850
|
-
});
|
|
1851
|
-
}
|
|
1852
|
-
};
|
|
1853
|
-
export const de_DeleteScriptCommand = async (output, context) => {
|
|
1854
|
-
if (output.statusCode >= 300) {
|
|
1855
|
-
return de_DeleteScriptCommandError(output, context);
|
|
1856
|
-
}
|
|
1857
|
-
await collectBody(output.body, context);
|
|
1858
|
-
const response = {
|
|
1859
|
-
$metadata: deserializeMetadata(output),
|
|
1860
|
-
};
|
|
1861
|
-
return response;
|
|
1862
|
-
};
|
|
1863
|
-
const de_DeleteScriptCommandError = 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 "InternalServiceException":
|
|
1871
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1872
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1873
|
-
case "InvalidRequestException":
|
|
1874
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1875
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "NotFoundException":
|
|
1877
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1878
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1879
|
-
case "TaggingFailedException":
|
|
1880
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
1881
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "UnauthorizedException":
|
|
1883
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1884
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1885
|
-
default:
|
|
1886
|
-
const parsedBody = parsedOutput.body;
|
|
1887
|
-
return throwDefaultError({
|
|
1888
|
-
output,
|
|
1889
|
-
parsedBody,
|
|
1890
|
-
errorCode,
|
|
1891
|
-
});
|
|
1892
|
-
}
|
|
1893
|
-
};
|
|
1894
|
-
export const de_DeleteVpcPeeringAuthorizationCommand = async (output, context) => {
|
|
1895
|
-
if (output.statusCode >= 300) {
|
|
1896
|
-
return de_DeleteVpcPeeringAuthorizationCommandError(output, context);
|
|
1897
|
-
}
|
|
1898
|
-
const data = await parseBody(output.body, context);
|
|
1899
|
-
let contents = {};
|
|
1900
|
-
contents = _json(data);
|
|
1901
|
-
const response = {
|
|
1902
|
-
$metadata: deserializeMetadata(output),
|
|
1903
|
-
...contents,
|
|
1904
|
-
};
|
|
1905
|
-
return response;
|
|
1906
|
-
};
|
|
1907
|
-
const de_DeleteVpcPeeringAuthorizationCommandError = async (output, context) => {
|
|
1908
|
-
const parsedOutput = {
|
|
1909
|
-
...output,
|
|
1910
|
-
body: await parseErrorBody(output.body, context),
|
|
1911
|
-
};
|
|
1912
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1913
|
-
switch (errorCode) {
|
|
1914
|
-
case "InternalServiceException":
|
|
1915
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1916
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1917
|
-
case "InvalidRequestException":
|
|
1918
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1919
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1920
|
-
case "NotFoundException":
|
|
1921
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1922
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1923
|
-
case "UnauthorizedException":
|
|
1924
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1925
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1926
|
-
default:
|
|
1927
|
-
const parsedBody = parsedOutput.body;
|
|
1928
|
-
return throwDefaultError({
|
|
1929
|
-
output,
|
|
1930
|
-
parsedBody,
|
|
1931
|
-
errorCode,
|
|
1932
|
-
});
|
|
1933
|
-
}
|
|
1934
|
-
};
|
|
1935
|
-
export const de_DeleteVpcPeeringConnectionCommand = async (output, context) => {
|
|
1936
|
-
if (output.statusCode >= 300) {
|
|
1937
|
-
return de_DeleteVpcPeeringConnectionCommandError(output, context);
|
|
1938
|
-
}
|
|
1939
|
-
const data = await parseBody(output.body, context);
|
|
1940
|
-
let contents = {};
|
|
1941
|
-
contents = _json(data);
|
|
1942
|
-
const response = {
|
|
1943
|
-
$metadata: deserializeMetadata(output),
|
|
1944
|
-
...contents,
|
|
1945
|
-
};
|
|
1946
|
-
return response;
|
|
1947
|
-
};
|
|
1948
|
-
const de_DeleteVpcPeeringConnectionCommandError = async (output, context) => {
|
|
1949
|
-
const parsedOutput = {
|
|
1950
|
-
...output,
|
|
1951
|
-
body: await parseErrorBody(output.body, context),
|
|
1952
|
-
};
|
|
1953
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1954
|
-
switch (errorCode) {
|
|
1955
|
-
case "InternalServiceException":
|
|
1956
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1957
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "InvalidRequestException":
|
|
1959
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
1960
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "NotFoundException":
|
|
1962
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
1963
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "UnauthorizedException":
|
|
1965
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1966
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1967
|
-
default:
|
|
1968
|
-
const parsedBody = parsedOutput.body;
|
|
1969
|
-
return throwDefaultError({
|
|
1970
|
-
output,
|
|
1971
|
-
parsedBody,
|
|
1972
|
-
errorCode,
|
|
1973
|
-
});
|
|
1974
|
-
}
|
|
1975
|
-
};
|
|
1976
|
-
export const de_DeregisterComputeCommand = async (output, context) => {
|
|
1977
|
-
if (output.statusCode >= 300) {
|
|
1978
|
-
return de_DeregisterComputeCommandError(output, context);
|
|
1979
|
-
}
|
|
1980
|
-
const data = await parseBody(output.body, context);
|
|
1981
|
-
let contents = {};
|
|
1982
|
-
contents = _json(data);
|
|
1983
|
-
const response = {
|
|
1984
|
-
$metadata: deserializeMetadata(output),
|
|
1985
|
-
...contents,
|
|
1986
|
-
};
|
|
1987
|
-
return response;
|
|
1988
|
-
};
|
|
1989
|
-
const de_DeregisterComputeCommandError = async (output, context) => {
|
|
1990
|
-
const parsedOutput = {
|
|
1991
|
-
...output,
|
|
1992
|
-
body: await parseErrorBody(output.body, context),
|
|
1993
|
-
};
|
|
1994
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1995
|
-
switch (errorCode) {
|
|
1996
|
-
case "InternalServiceException":
|
|
1997
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
1998
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1999
|
-
case "InvalidRequestException":
|
|
2000
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2001
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2002
|
-
case "NotFoundException":
|
|
2003
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2004
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "UnauthorizedException":
|
|
2006
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2007
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2008
|
-
default:
|
|
2009
|
-
const parsedBody = parsedOutput.body;
|
|
2010
|
-
return throwDefaultError({
|
|
2011
|
-
output,
|
|
2012
|
-
parsedBody,
|
|
2013
|
-
errorCode,
|
|
2014
|
-
});
|
|
2015
|
-
}
|
|
2016
|
-
};
|
|
2017
|
-
export const de_DeregisterGameServerCommand = async (output, context) => {
|
|
2018
|
-
if (output.statusCode >= 300) {
|
|
2019
|
-
return de_DeregisterGameServerCommandError(output, context);
|
|
2020
|
-
}
|
|
2021
|
-
await collectBody(output.body, context);
|
|
2022
|
-
const response = {
|
|
2023
|
-
$metadata: deserializeMetadata(output),
|
|
2024
|
-
};
|
|
2025
|
-
return response;
|
|
2026
|
-
};
|
|
2027
|
-
const de_DeregisterGameServerCommandError = async (output, context) => {
|
|
2028
|
-
const parsedOutput = {
|
|
2029
|
-
...output,
|
|
2030
|
-
body: await parseErrorBody(output.body, context),
|
|
2031
|
-
};
|
|
2032
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2033
|
-
switch (errorCode) {
|
|
2034
|
-
case "InternalServiceException":
|
|
2035
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2036
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2037
|
-
case "InvalidRequestException":
|
|
2038
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2039
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2040
|
-
case "NotFoundException":
|
|
2041
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2042
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2043
|
-
case "UnauthorizedException":
|
|
2044
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2045
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2046
|
-
default:
|
|
2047
|
-
const parsedBody = parsedOutput.body;
|
|
2048
|
-
return throwDefaultError({
|
|
2049
|
-
output,
|
|
2050
|
-
parsedBody,
|
|
2051
|
-
errorCode,
|
|
2052
|
-
});
|
|
2053
|
-
}
|
|
2054
|
-
};
|
|
2055
|
-
export const de_DescribeAliasCommand = async (output, context) => {
|
|
2056
|
-
if (output.statusCode >= 300) {
|
|
2057
|
-
return de_DescribeAliasCommandError(output, context);
|
|
2058
|
-
}
|
|
2059
|
-
const data = await parseBody(output.body, context);
|
|
2060
|
-
let contents = {};
|
|
2061
|
-
contents = de_DescribeAliasOutput(data, context);
|
|
2062
|
-
const response = {
|
|
2063
|
-
$metadata: deserializeMetadata(output),
|
|
2064
|
-
...contents,
|
|
2065
|
-
};
|
|
2066
|
-
return response;
|
|
2067
|
-
};
|
|
2068
|
-
const de_DescribeAliasCommandError = async (output, context) => {
|
|
2069
|
-
const parsedOutput = {
|
|
2070
|
-
...output,
|
|
2071
|
-
body: await parseErrorBody(output.body, context),
|
|
2072
|
-
};
|
|
2073
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2074
|
-
switch (errorCode) {
|
|
2075
|
-
case "InternalServiceException":
|
|
2076
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2077
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2078
|
-
case "InvalidRequestException":
|
|
2079
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2080
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2081
|
-
case "NotFoundException":
|
|
2082
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2083
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2084
|
-
case "UnauthorizedException":
|
|
2085
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2086
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2087
|
-
default:
|
|
2088
|
-
const parsedBody = parsedOutput.body;
|
|
2089
|
-
return throwDefaultError({
|
|
2090
|
-
output,
|
|
2091
|
-
parsedBody,
|
|
2092
|
-
errorCode,
|
|
2093
|
-
});
|
|
2094
|
-
}
|
|
2095
|
-
};
|
|
2096
|
-
export const de_DescribeBuildCommand = async (output, context) => {
|
|
2097
|
-
if (output.statusCode >= 300) {
|
|
2098
|
-
return de_DescribeBuildCommandError(output, context);
|
|
2099
|
-
}
|
|
2100
|
-
const data = await parseBody(output.body, context);
|
|
2101
|
-
let contents = {};
|
|
2102
|
-
contents = de_DescribeBuildOutput(data, context);
|
|
2103
|
-
const response = {
|
|
2104
|
-
$metadata: deserializeMetadata(output),
|
|
2105
|
-
...contents,
|
|
2106
|
-
};
|
|
2107
|
-
return response;
|
|
2108
|
-
};
|
|
2109
|
-
const de_DescribeBuildCommandError = async (output, context) => {
|
|
2110
|
-
const parsedOutput = {
|
|
2111
|
-
...output,
|
|
2112
|
-
body: await parseErrorBody(output.body, context),
|
|
2113
|
-
};
|
|
2114
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2115
|
-
switch (errorCode) {
|
|
2116
|
-
case "InternalServiceException":
|
|
2117
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2118
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2119
|
-
case "InvalidRequestException":
|
|
2120
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2121
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2122
|
-
case "NotFoundException":
|
|
2123
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2124
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2125
|
-
case "UnauthorizedException":
|
|
2126
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2127
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2128
|
-
default:
|
|
2129
|
-
const parsedBody = parsedOutput.body;
|
|
2130
|
-
return throwDefaultError({
|
|
2131
|
-
output,
|
|
2132
|
-
parsedBody,
|
|
2133
|
-
errorCode,
|
|
2134
|
-
});
|
|
2135
|
-
}
|
|
2136
|
-
};
|
|
2137
|
-
export const de_DescribeComputeCommand = async (output, context) => {
|
|
2138
|
-
if (output.statusCode >= 300) {
|
|
2139
|
-
return de_DescribeComputeCommandError(output, context);
|
|
2140
|
-
}
|
|
2141
|
-
const data = await parseBody(output.body, context);
|
|
2142
|
-
let contents = {};
|
|
2143
|
-
contents = de_DescribeComputeOutput(data, context);
|
|
2144
|
-
const response = {
|
|
2145
|
-
$metadata: deserializeMetadata(output),
|
|
2146
|
-
...contents,
|
|
2147
|
-
};
|
|
2148
|
-
return response;
|
|
2149
|
-
};
|
|
2150
|
-
const de_DescribeComputeCommandError = async (output, context) => {
|
|
2151
|
-
const parsedOutput = {
|
|
2152
|
-
...output,
|
|
2153
|
-
body: await parseErrorBody(output.body, context),
|
|
2154
|
-
};
|
|
2155
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2156
|
-
switch (errorCode) {
|
|
2157
|
-
case "InternalServiceException":
|
|
2158
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2159
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2160
|
-
case "InvalidRequestException":
|
|
2161
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2162
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2163
|
-
case "NotFoundException":
|
|
2164
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2165
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2166
|
-
case "UnauthorizedException":
|
|
2167
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2168
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2169
|
-
default:
|
|
2170
|
-
const parsedBody = parsedOutput.body;
|
|
2171
|
-
return throwDefaultError({
|
|
2172
|
-
output,
|
|
2173
|
-
parsedBody,
|
|
2174
|
-
errorCode,
|
|
2175
|
-
});
|
|
2176
|
-
}
|
|
2177
|
-
};
|
|
2178
|
-
export const de_DescribeEC2InstanceLimitsCommand = async (output, context) => {
|
|
2179
|
-
if (output.statusCode >= 300) {
|
|
2180
|
-
return de_DescribeEC2InstanceLimitsCommandError(output, context);
|
|
2181
|
-
}
|
|
2182
|
-
const data = await parseBody(output.body, context);
|
|
2183
|
-
let contents = {};
|
|
2184
|
-
contents = _json(data);
|
|
2185
|
-
const response = {
|
|
2186
|
-
$metadata: deserializeMetadata(output),
|
|
2187
|
-
...contents,
|
|
2188
|
-
};
|
|
2189
|
-
return response;
|
|
2190
|
-
};
|
|
2191
|
-
const de_DescribeEC2InstanceLimitsCommandError = async (output, context) => {
|
|
2192
|
-
const parsedOutput = {
|
|
2193
|
-
...output,
|
|
2194
|
-
body: await parseErrorBody(output.body, context),
|
|
2195
|
-
};
|
|
2196
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2197
|
-
switch (errorCode) {
|
|
2198
|
-
case "InternalServiceException":
|
|
2199
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2200
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2201
|
-
case "InvalidRequestException":
|
|
2202
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2203
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2204
|
-
case "UnauthorizedException":
|
|
2205
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2206
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "UnsupportedRegionException":
|
|
2208
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
2209
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
2210
|
-
default:
|
|
2211
|
-
const parsedBody = parsedOutput.body;
|
|
2212
|
-
return throwDefaultError({
|
|
2213
|
-
output,
|
|
2214
|
-
parsedBody,
|
|
2215
|
-
errorCode,
|
|
2216
|
-
});
|
|
2217
|
-
}
|
|
2218
|
-
};
|
|
2219
|
-
export const de_DescribeFleetAttributesCommand = async (output, context) => {
|
|
2220
|
-
if (output.statusCode >= 300) {
|
|
2221
|
-
return de_DescribeFleetAttributesCommandError(output, context);
|
|
2222
|
-
}
|
|
2223
|
-
const data = await parseBody(output.body, context);
|
|
2224
|
-
let contents = {};
|
|
2225
|
-
contents = de_DescribeFleetAttributesOutput(data, context);
|
|
2226
|
-
const response = {
|
|
2227
|
-
$metadata: deserializeMetadata(output),
|
|
2228
|
-
...contents,
|
|
2229
|
-
};
|
|
2230
|
-
return response;
|
|
2231
|
-
};
|
|
2232
|
-
const de_DescribeFleetAttributesCommandError = async (output, context) => {
|
|
2233
|
-
const parsedOutput = {
|
|
2234
|
-
...output,
|
|
2235
|
-
body: await parseErrorBody(output.body, context),
|
|
2236
|
-
};
|
|
2237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2238
|
-
switch (errorCode) {
|
|
2239
|
-
case "InternalServiceException":
|
|
2240
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2241
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2242
|
-
case "InvalidRequestException":
|
|
2243
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2244
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2245
|
-
case "NotFoundException":
|
|
2246
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2247
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "UnauthorizedException":
|
|
2249
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2250
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2251
|
-
default:
|
|
2252
|
-
const parsedBody = parsedOutput.body;
|
|
2253
|
-
return throwDefaultError({
|
|
2254
|
-
output,
|
|
2255
|
-
parsedBody,
|
|
2256
|
-
errorCode,
|
|
2257
|
-
});
|
|
2258
|
-
}
|
|
2259
|
-
};
|
|
2260
|
-
export const de_DescribeFleetCapacityCommand = async (output, context) => {
|
|
2261
|
-
if (output.statusCode >= 300) {
|
|
2262
|
-
return de_DescribeFleetCapacityCommandError(output, context);
|
|
2263
|
-
}
|
|
2264
|
-
const data = await parseBody(output.body, context);
|
|
2265
|
-
let contents = {};
|
|
2266
|
-
contents = _json(data);
|
|
2267
|
-
const response = {
|
|
2268
|
-
$metadata: deserializeMetadata(output),
|
|
2269
|
-
...contents,
|
|
2270
|
-
};
|
|
2271
|
-
return response;
|
|
2272
|
-
};
|
|
2273
|
-
const de_DescribeFleetCapacityCommandError = async (output, context) => {
|
|
2274
|
-
const parsedOutput = {
|
|
2275
|
-
...output,
|
|
2276
|
-
body: await parseErrorBody(output.body, context),
|
|
2277
|
-
};
|
|
2278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2279
|
-
switch (errorCode) {
|
|
2280
|
-
case "InternalServiceException":
|
|
2281
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2282
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2283
|
-
case "InvalidRequestException":
|
|
2284
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2285
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2286
|
-
case "NotFoundException":
|
|
2287
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2288
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2289
|
-
case "UnauthorizedException":
|
|
2290
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2291
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2292
|
-
default:
|
|
2293
|
-
const parsedBody = parsedOutput.body;
|
|
2294
|
-
return throwDefaultError({
|
|
2295
|
-
output,
|
|
2296
|
-
parsedBody,
|
|
2297
|
-
errorCode,
|
|
2298
|
-
});
|
|
2299
|
-
}
|
|
2300
|
-
};
|
|
2301
|
-
export const de_DescribeFleetEventsCommand = async (output, context) => {
|
|
2302
|
-
if (output.statusCode >= 300) {
|
|
2303
|
-
return de_DescribeFleetEventsCommandError(output, context);
|
|
2304
|
-
}
|
|
2305
|
-
const data = await parseBody(output.body, context);
|
|
2306
|
-
let contents = {};
|
|
2307
|
-
contents = de_DescribeFleetEventsOutput(data, context);
|
|
2308
|
-
const response = {
|
|
2309
|
-
$metadata: deserializeMetadata(output),
|
|
2310
|
-
...contents,
|
|
2311
|
-
};
|
|
2312
|
-
return response;
|
|
2313
|
-
};
|
|
2314
|
-
const de_DescribeFleetEventsCommandError = async (output, context) => {
|
|
2315
|
-
const parsedOutput = {
|
|
2316
|
-
...output,
|
|
2317
|
-
body: await parseErrorBody(output.body, context),
|
|
2318
|
-
};
|
|
2319
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2320
|
-
switch (errorCode) {
|
|
2321
|
-
case "InternalServiceException":
|
|
2322
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2323
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2324
|
-
case "InvalidRequestException":
|
|
2325
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2326
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2327
|
-
case "NotFoundException":
|
|
2328
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2329
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2330
|
-
case "UnauthorizedException":
|
|
2331
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2332
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2333
|
-
default:
|
|
2334
|
-
const parsedBody = parsedOutput.body;
|
|
2335
|
-
return throwDefaultError({
|
|
2336
|
-
output,
|
|
2337
|
-
parsedBody,
|
|
2338
|
-
errorCode,
|
|
2339
|
-
});
|
|
2340
|
-
}
|
|
2341
|
-
};
|
|
2342
|
-
export const de_DescribeFleetLocationAttributesCommand = async (output, context) => {
|
|
2343
|
-
if (output.statusCode >= 300) {
|
|
2344
|
-
return de_DescribeFleetLocationAttributesCommandError(output, context);
|
|
2345
|
-
}
|
|
2346
|
-
const data = await parseBody(output.body, context);
|
|
2347
|
-
let contents = {};
|
|
2348
|
-
contents = _json(data);
|
|
2349
|
-
const response = {
|
|
2350
|
-
$metadata: deserializeMetadata(output),
|
|
2351
|
-
...contents,
|
|
2352
|
-
};
|
|
2353
|
-
return response;
|
|
2354
|
-
};
|
|
2355
|
-
const de_DescribeFleetLocationAttributesCommandError = async (output, context) => {
|
|
2356
|
-
const parsedOutput = {
|
|
2357
|
-
...output,
|
|
2358
|
-
body: await parseErrorBody(output.body, context),
|
|
2359
|
-
};
|
|
2360
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2361
|
-
switch (errorCode) {
|
|
2362
|
-
case "InternalServiceException":
|
|
2363
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2364
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2365
|
-
case "InvalidRequestException":
|
|
2366
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2367
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2368
|
-
case "NotFoundException":
|
|
2369
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2370
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2371
|
-
case "UnauthorizedException":
|
|
2372
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2373
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2374
|
-
case "UnsupportedRegionException":
|
|
2375
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
2376
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
2377
|
-
default:
|
|
2378
|
-
const parsedBody = parsedOutput.body;
|
|
2379
|
-
return throwDefaultError({
|
|
2380
|
-
output,
|
|
2381
|
-
parsedBody,
|
|
2382
|
-
errorCode,
|
|
2383
|
-
});
|
|
2384
|
-
}
|
|
2385
|
-
};
|
|
2386
|
-
export const de_DescribeFleetLocationCapacityCommand = async (output, context) => {
|
|
2387
|
-
if (output.statusCode >= 300) {
|
|
2388
|
-
return de_DescribeFleetLocationCapacityCommandError(output, context);
|
|
2389
|
-
}
|
|
2390
|
-
const data = await parseBody(output.body, context);
|
|
2391
|
-
let contents = {};
|
|
2392
|
-
contents = _json(data);
|
|
2393
|
-
const response = {
|
|
2394
|
-
$metadata: deserializeMetadata(output),
|
|
2395
|
-
...contents,
|
|
2396
|
-
};
|
|
2397
|
-
return response;
|
|
2398
|
-
};
|
|
2399
|
-
const de_DescribeFleetLocationCapacityCommandError = async (output, context) => {
|
|
2400
|
-
const parsedOutput = {
|
|
2401
|
-
...output,
|
|
2402
|
-
body: await parseErrorBody(output.body, context),
|
|
2403
|
-
};
|
|
2404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2405
|
-
switch (errorCode) {
|
|
2406
|
-
case "InternalServiceException":
|
|
2407
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2408
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2409
|
-
case "InvalidRequestException":
|
|
2410
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2411
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2412
|
-
case "NotFoundException":
|
|
2413
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2414
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "UnauthorizedException":
|
|
2416
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2417
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2418
|
-
case "UnsupportedRegionException":
|
|
2419
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
2420
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
2421
|
-
default:
|
|
2422
|
-
const parsedBody = parsedOutput.body;
|
|
2423
|
-
return throwDefaultError({
|
|
2424
|
-
output,
|
|
2425
|
-
parsedBody,
|
|
2426
|
-
errorCode,
|
|
2427
|
-
});
|
|
2428
|
-
}
|
|
2429
|
-
};
|
|
2430
|
-
export const de_DescribeFleetLocationUtilizationCommand = async (output, context) => {
|
|
2431
|
-
if (output.statusCode >= 300) {
|
|
2432
|
-
return de_DescribeFleetLocationUtilizationCommandError(output, context);
|
|
2433
|
-
}
|
|
2434
|
-
const data = await parseBody(output.body, context);
|
|
2435
|
-
let contents = {};
|
|
2436
|
-
contents = _json(data);
|
|
2437
|
-
const response = {
|
|
2438
|
-
$metadata: deserializeMetadata(output),
|
|
2439
|
-
...contents,
|
|
2440
|
-
};
|
|
2441
|
-
return response;
|
|
2442
|
-
};
|
|
2443
|
-
const de_DescribeFleetLocationUtilizationCommandError = async (output, context) => {
|
|
2444
|
-
const parsedOutput = {
|
|
2445
|
-
...output,
|
|
2446
|
-
body: await parseErrorBody(output.body, context),
|
|
2447
|
-
};
|
|
2448
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2449
|
-
switch (errorCode) {
|
|
2450
|
-
case "InternalServiceException":
|
|
2451
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2452
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2453
|
-
case "InvalidRequestException":
|
|
2454
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2455
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2456
|
-
case "NotFoundException":
|
|
2457
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2458
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2459
|
-
case "UnauthorizedException":
|
|
2460
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2461
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2462
|
-
case "UnsupportedRegionException":
|
|
2463
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
2464
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
2465
|
-
default:
|
|
2466
|
-
const parsedBody = parsedOutput.body;
|
|
2467
|
-
return throwDefaultError({
|
|
2468
|
-
output,
|
|
2469
|
-
parsedBody,
|
|
2470
|
-
errorCode,
|
|
2471
|
-
});
|
|
2472
|
-
}
|
|
2473
|
-
};
|
|
2474
|
-
export const de_DescribeFleetPortSettingsCommand = async (output, context) => {
|
|
2475
|
-
if (output.statusCode >= 300) {
|
|
2476
|
-
return de_DescribeFleetPortSettingsCommandError(output, context);
|
|
2477
|
-
}
|
|
2478
|
-
const data = await parseBody(output.body, context);
|
|
2479
|
-
let contents = {};
|
|
2480
|
-
contents = _json(data);
|
|
2481
|
-
const response = {
|
|
2482
|
-
$metadata: deserializeMetadata(output),
|
|
2483
|
-
...contents,
|
|
2484
|
-
};
|
|
2485
|
-
return response;
|
|
2486
|
-
};
|
|
2487
|
-
const de_DescribeFleetPortSettingsCommandError = async (output, context) => {
|
|
2488
|
-
const parsedOutput = {
|
|
2489
|
-
...output,
|
|
2490
|
-
body: await parseErrorBody(output.body, context),
|
|
2491
|
-
};
|
|
2492
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2493
|
-
switch (errorCode) {
|
|
2494
|
-
case "InternalServiceException":
|
|
2495
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2496
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2497
|
-
case "InvalidRequestException":
|
|
2498
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2499
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2500
|
-
case "NotFoundException":
|
|
2501
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2502
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2503
|
-
case "UnauthorizedException":
|
|
2504
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2505
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2506
|
-
case "UnsupportedRegionException":
|
|
2507
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
2508
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
2509
|
-
default:
|
|
2510
|
-
const parsedBody = parsedOutput.body;
|
|
2511
|
-
return throwDefaultError({
|
|
2512
|
-
output,
|
|
2513
|
-
parsedBody,
|
|
2514
|
-
errorCode,
|
|
2515
|
-
});
|
|
2516
|
-
}
|
|
2517
|
-
};
|
|
2518
|
-
export const de_DescribeFleetUtilizationCommand = async (output, context) => {
|
|
2519
|
-
if (output.statusCode >= 300) {
|
|
2520
|
-
return de_DescribeFleetUtilizationCommandError(output, context);
|
|
2521
|
-
}
|
|
2522
|
-
const data = await parseBody(output.body, context);
|
|
2523
|
-
let contents = {};
|
|
2524
|
-
contents = _json(data);
|
|
2525
|
-
const response = {
|
|
2526
|
-
$metadata: deserializeMetadata(output),
|
|
2527
|
-
...contents,
|
|
2528
|
-
};
|
|
2529
|
-
return response;
|
|
2530
|
-
};
|
|
2531
|
-
const de_DescribeFleetUtilizationCommandError = async (output, context) => {
|
|
2532
|
-
const parsedOutput = {
|
|
2533
|
-
...output,
|
|
2534
|
-
body: await parseErrorBody(output.body, context),
|
|
2535
|
-
};
|
|
2536
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2537
|
-
switch (errorCode) {
|
|
2538
|
-
case "InternalServiceException":
|
|
2539
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2540
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2541
|
-
case "InvalidRequestException":
|
|
2542
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2543
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2544
|
-
case "NotFoundException":
|
|
2545
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2546
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2547
|
-
case "UnauthorizedException":
|
|
2548
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2549
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2550
|
-
default:
|
|
2551
|
-
const parsedBody = parsedOutput.body;
|
|
2552
|
-
return throwDefaultError({
|
|
2553
|
-
output,
|
|
2554
|
-
parsedBody,
|
|
2555
|
-
errorCode,
|
|
2556
|
-
});
|
|
2557
|
-
}
|
|
2558
|
-
};
|
|
2559
|
-
export const de_DescribeGameServerCommand = async (output, context) => {
|
|
2560
|
-
if (output.statusCode >= 300) {
|
|
2561
|
-
return de_DescribeGameServerCommandError(output, context);
|
|
2562
|
-
}
|
|
2563
|
-
const data = await parseBody(output.body, context);
|
|
2564
|
-
let contents = {};
|
|
2565
|
-
contents = de_DescribeGameServerOutput(data, context);
|
|
2566
|
-
const response = {
|
|
2567
|
-
$metadata: deserializeMetadata(output),
|
|
2568
|
-
...contents,
|
|
824
|
+
export const de_CreateVpcPeeringAuthorizationCommand = async (output, context) => {
|
|
825
|
+
if (output.statusCode >= 300) {
|
|
826
|
+
return de_CommandError(output, context);
|
|
827
|
+
}
|
|
828
|
+
const data = await parseBody(output.body, context);
|
|
829
|
+
let contents = {};
|
|
830
|
+
contents = de_CreateVpcPeeringAuthorizationOutput(data, context);
|
|
831
|
+
const response = {
|
|
832
|
+
$metadata: deserializeMetadata(output),
|
|
833
|
+
...contents,
|
|
2569
834
|
};
|
|
2570
835
|
return response;
|
|
2571
836
|
};
|
|
2572
|
-
const
|
|
2573
|
-
const parsedOutput = {
|
|
2574
|
-
...output,
|
|
2575
|
-
body: await parseErrorBody(output.body, context),
|
|
2576
|
-
};
|
|
2577
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2578
|
-
switch (errorCode) {
|
|
2579
|
-
case "InternalServiceException":
|
|
2580
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2581
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2582
|
-
case "InvalidRequestException":
|
|
2583
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2584
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2585
|
-
case "NotFoundException":
|
|
2586
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2587
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2588
|
-
case "UnauthorizedException":
|
|
2589
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2590
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2591
|
-
default:
|
|
2592
|
-
const parsedBody = parsedOutput.body;
|
|
2593
|
-
return throwDefaultError({
|
|
2594
|
-
output,
|
|
2595
|
-
parsedBody,
|
|
2596
|
-
errorCode,
|
|
2597
|
-
});
|
|
2598
|
-
}
|
|
2599
|
-
};
|
|
2600
|
-
export const de_DescribeGameServerGroupCommand = async (output, context) => {
|
|
837
|
+
export const de_CreateVpcPeeringConnectionCommand = async (output, context) => {
|
|
2601
838
|
if (output.statusCode >= 300) {
|
|
2602
|
-
return
|
|
839
|
+
return de_CommandError(output, context);
|
|
2603
840
|
}
|
|
2604
841
|
const data = await parseBody(output.body, context);
|
|
2605
842
|
let contents = {};
|
|
2606
|
-
contents =
|
|
843
|
+
contents = _json(data);
|
|
2607
844
|
const response = {
|
|
2608
845
|
$metadata: deserializeMetadata(output),
|
|
2609
846
|
...contents,
|
|
2610
847
|
};
|
|
2611
848
|
return response;
|
|
2612
849
|
};
|
|
2613
|
-
const
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
850
|
+
export const de_DeleteAliasCommand = async (output, context) => {
|
|
851
|
+
if (output.statusCode >= 300) {
|
|
852
|
+
return de_CommandError(output, context);
|
|
853
|
+
}
|
|
854
|
+
await collectBody(output.body, context);
|
|
855
|
+
const response = {
|
|
856
|
+
$metadata: deserializeMetadata(output),
|
|
2617
857
|
};
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
case "InvalidRequestException":
|
|
2624
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2625
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2626
|
-
case "NotFoundException":
|
|
2627
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2628
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2629
|
-
case "UnauthorizedException":
|
|
2630
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2631
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2632
|
-
default:
|
|
2633
|
-
const parsedBody = parsedOutput.body;
|
|
2634
|
-
return throwDefaultError({
|
|
2635
|
-
output,
|
|
2636
|
-
parsedBody,
|
|
2637
|
-
errorCode,
|
|
2638
|
-
});
|
|
858
|
+
return response;
|
|
859
|
+
};
|
|
860
|
+
export const de_DeleteBuildCommand = async (output, context) => {
|
|
861
|
+
if (output.statusCode >= 300) {
|
|
862
|
+
return de_CommandError(output, context);
|
|
2639
863
|
}
|
|
864
|
+
await collectBody(output.body, context);
|
|
865
|
+
const response = {
|
|
866
|
+
$metadata: deserializeMetadata(output),
|
|
867
|
+
};
|
|
868
|
+
return response;
|
|
2640
869
|
};
|
|
2641
|
-
export const
|
|
870
|
+
export const de_DeleteFleetCommand = async (output, context) => {
|
|
871
|
+
if (output.statusCode >= 300) {
|
|
872
|
+
return de_CommandError(output, context);
|
|
873
|
+
}
|
|
874
|
+
await collectBody(output.body, context);
|
|
875
|
+
const response = {
|
|
876
|
+
$metadata: deserializeMetadata(output),
|
|
877
|
+
};
|
|
878
|
+
return response;
|
|
879
|
+
};
|
|
880
|
+
export const de_DeleteFleetLocationsCommand = async (output, context) => {
|
|
2642
881
|
if (output.statusCode >= 300) {
|
|
2643
|
-
return
|
|
882
|
+
return de_CommandError(output, context);
|
|
2644
883
|
}
|
|
2645
884
|
const data = await parseBody(output.body, context);
|
|
2646
885
|
let contents = {};
|
|
@@ -2651,125 +890,35 @@ export const de_DescribeGameServerInstancesCommand = async (output, context) =>
|
|
|
2651
890
|
};
|
|
2652
891
|
return response;
|
|
2653
892
|
};
|
|
2654
|
-
const
|
|
2655
|
-
const parsedOutput = {
|
|
2656
|
-
...output,
|
|
2657
|
-
body: await parseErrorBody(output.body, context),
|
|
2658
|
-
};
|
|
2659
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2660
|
-
switch (errorCode) {
|
|
2661
|
-
case "InternalServiceException":
|
|
2662
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2663
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2664
|
-
case "InvalidRequestException":
|
|
2665
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2666
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2667
|
-
case "NotFoundException":
|
|
2668
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2669
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2670
|
-
case "UnauthorizedException":
|
|
2671
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2672
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2673
|
-
default:
|
|
2674
|
-
const parsedBody = parsedOutput.body;
|
|
2675
|
-
return throwDefaultError({
|
|
2676
|
-
output,
|
|
2677
|
-
parsedBody,
|
|
2678
|
-
errorCode,
|
|
2679
|
-
});
|
|
2680
|
-
}
|
|
2681
|
-
};
|
|
2682
|
-
export const de_DescribeGameSessionDetailsCommand = async (output, context) => {
|
|
893
|
+
export const de_DeleteGameServerGroupCommand = async (output, context) => {
|
|
2683
894
|
if (output.statusCode >= 300) {
|
|
2684
|
-
return
|
|
895
|
+
return de_CommandError(output, context);
|
|
2685
896
|
}
|
|
2686
897
|
const data = await parseBody(output.body, context);
|
|
2687
898
|
let contents = {};
|
|
2688
|
-
contents =
|
|
899
|
+
contents = de_DeleteGameServerGroupOutput(data, context);
|
|
2689
900
|
const response = {
|
|
2690
901
|
$metadata: deserializeMetadata(output),
|
|
2691
902
|
...contents,
|
|
2692
903
|
};
|
|
2693
904
|
return response;
|
|
2694
905
|
};
|
|
2695
|
-
const
|
|
2696
|
-
const parsedOutput = {
|
|
2697
|
-
...output,
|
|
2698
|
-
body: await parseErrorBody(output.body, context),
|
|
2699
|
-
};
|
|
2700
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2701
|
-
switch (errorCode) {
|
|
2702
|
-
case "InternalServiceException":
|
|
2703
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2704
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2705
|
-
case "InvalidRequestException":
|
|
2706
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2707
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2708
|
-
case "NotFoundException":
|
|
2709
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2710
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2711
|
-
case "TerminalRoutingStrategyException":
|
|
2712
|
-
case "com.amazonaws.gamelift#TerminalRoutingStrategyException":
|
|
2713
|
-
throw await de_TerminalRoutingStrategyExceptionRes(parsedOutput, context);
|
|
2714
|
-
case "UnauthorizedException":
|
|
2715
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2716
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2717
|
-
case "UnsupportedRegionException":
|
|
2718
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
2719
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
2720
|
-
default:
|
|
2721
|
-
const parsedBody = parsedOutput.body;
|
|
2722
|
-
return throwDefaultError({
|
|
2723
|
-
output,
|
|
2724
|
-
parsedBody,
|
|
2725
|
-
errorCode,
|
|
2726
|
-
});
|
|
2727
|
-
}
|
|
2728
|
-
};
|
|
2729
|
-
export const de_DescribeGameSessionPlacementCommand = async (output, context) => {
|
|
906
|
+
export const de_DeleteGameSessionQueueCommand = async (output, context) => {
|
|
2730
907
|
if (output.statusCode >= 300) {
|
|
2731
|
-
return
|
|
908
|
+
return de_CommandError(output, context);
|
|
2732
909
|
}
|
|
2733
910
|
const data = await parseBody(output.body, context);
|
|
2734
911
|
let contents = {};
|
|
2735
|
-
contents =
|
|
912
|
+
contents = _json(data);
|
|
2736
913
|
const response = {
|
|
2737
914
|
$metadata: deserializeMetadata(output),
|
|
2738
915
|
...contents,
|
|
2739
916
|
};
|
|
2740
917
|
return response;
|
|
2741
918
|
};
|
|
2742
|
-
const
|
|
2743
|
-
const parsedOutput = {
|
|
2744
|
-
...output,
|
|
2745
|
-
body: await parseErrorBody(output.body, context),
|
|
2746
|
-
};
|
|
2747
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2748
|
-
switch (errorCode) {
|
|
2749
|
-
case "InternalServiceException":
|
|
2750
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2751
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2752
|
-
case "InvalidRequestException":
|
|
2753
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2754
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2755
|
-
case "NotFoundException":
|
|
2756
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2757
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2758
|
-
case "UnauthorizedException":
|
|
2759
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2760
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2761
|
-
default:
|
|
2762
|
-
const parsedBody = parsedOutput.body;
|
|
2763
|
-
return throwDefaultError({
|
|
2764
|
-
output,
|
|
2765
|
-
parsedBody,
|
|
2766
|
-
errorCode,
|
|
2767
|
-
});
|
|
2768
|
-
}
|
|
2769
|
-
};
|
|
2770
|
-
export const de_DescribeGameSessionQueuesCommand = async (output, context) => {
|
|
919
|
+
export const de_DeleteLocationCommand = async (output, context) => {
|
|
2771
920
|
if (output.statusCode >= 300) {
|
|
2772
|
-
return
|
|
921
|
+
return de_CommandError(output, context);
|
|
2773
922
|
}
|
|
2774
923
|
const data = await parseBody(output.body, context);
|
|
2775
924
|
let contents = {};
|
|
@@ -2780,286 +929,143 @@ export const de_DescribeGameSessionQueuesCommand = async (output, context) => {
|
|
|
2780
929
|
};
|
|
2781
930
|
return response;
|
|
2782
931
|
};
|
|
2783
|
-
const
|
|
2784
|
-
const parsedOutput = {
|
|
2785
|
-
...output,
|
|
2786
|
-
body: await parseErrorBody(output.body, context),
|
|
2787
|
-
};
|
|
2788
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2789
|
-
switch (errorCode) {
|
|
2790
|
-
case "InternalServiceException":
|
|
2791
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2792
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2793
|
-
case "InvalidRequestException":
|
|
2794
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2795
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2796
|
-
case "NotFoundException":
|
|
2797
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2798
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2799
|
-
case "UnauthorizedException":
|
|
2800
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2801
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2802
|
-
default:
|
|
2803
|
-
const parsedBody = parsedOutput.body;
|
|
2804
|
-
return throwDefaultError({
|
|
2805
|
-
output,
|
|
2806
|
-
parsedBody,
|
|
2807
|
-
errorCode,
|
|
2808
|
-
});
|
|
2809
|
-
}
|
|
2810
|
-
};
|
|
2811
|
-
export const de_DescribeGameSessionsCommand = async (output, context) => {
|
|
932
|
+
export const de_DeleteMatchmakingConfigurationCommand = async (output, context) => {
|
|
2812
933
|
if (output.statusCode >= 300) {
|
|
2813
|
-
return
|
|
934
|
+
return de_CommandError(output, context);
|
|
2814
935
|
}
|
|
2815
936
|
const data = await parseBody(output.body, context);
|
|
2816
937
|
let contents = {};
|
|
2817
|
-
contents =
|
|
938
|
+
contents = _json(data);
|
|
2818
939
|
const response = {
|
|
2819
940
|
$metadata: deserializeMetadata(output),
|
|
2820
941
|
...contents,
|
|
2821
942
|
};
|
|
2822
943
|
return response;
|
|
2823
944
|
};
|
|
2824
|
-
const
|
|
2825
|
-
const parsedOutput = {
|
|
2826
|
-
...output,
|
|
2827
|
-
body: await parseErrorBody(output.body, context),
|
|
2828
|
-
};
|
|
2829
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2830
|
-
switch (errorCode) {
|
|
2831
|
-
case "InternalServiceException":
|
|
2832
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2833
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2834
|
-
case "InvalidRequestException":
|
|
2835
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2836
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2837
|
-
case "NotFoundException":
|
|
2838
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2839
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2840
|
-
case "TerminalRoutingStrategyException":
|
|
2841
|
-
case "com.amazonaws.gamelift#TerminalRoutingStrategyException":
|
|
2842
|
-
throw await de_TerminalRoutingStrategyExceptionRes(parsedOutput, context);
|
|
2843
|
-
case "UnauthorizedException":
|
|
2844
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2845
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2846
|
-
case "UnsupportedRegionException":
|
|
2847
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
2848
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
2849
|
-
default:
|
|
2850
|
-
const parsedBody = parsedOutput.body;
|
|
2851
|
-
return throwDefaultError({
|
|
2852
|
-
output,
|
|
2853
|
-
parsedBody,
|
|
2854
|
-
errorCode,
|
|
2855
|
-
});
|
|
2856
|
-
}
|
|
2857
|
-
};
|
|
2858
|
-
export const de_DescribeInstancesCommand = async (output, context) => {
|
|
945
|
+
export const de_DeleteMatchmakingRuleSetCommand = async (output, context) => {
|
|
2859
946
|
if (output.statusCode >= 300) {
|
|
2860
|
-
return
|
|
947
|
+
return de_CommandError(output, context);
|
|
2861
948
|
}
|
|
2862
949
|
const data = await parseBody(output.body, context);
|
|
2863
950
|
let contents = {};
|
|
2864
|
-
contents =
|
|
951
|
+
contents = _json(data);
|
|
2865
952
|
const response = {
|
|
2866
953
|
$metadata: deserializeMetadata(output),
|
|
2867
954
|
...contents,
|
|
2868
955
|
};
|
|
2869
956
|
return response;
|
|
2870
957
|
};
|
|
2871
|
-
const
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
958
|
+
export const de_DeleteScalingPolicyCommand = async (output, context) => {
|
|
959
|
+
if (output.statusCode >= 300) {
|
|
960
|
+
return de_CommandError(output, context);
|
|
961
|
+
}
|
|
962
|
+
await collectBody(output.body, context);
|
|
963
|
+
const response = {
|
|
964
|
+
$metadata: deserializeMetadata(output),
|
|
2875
965
|
};
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
case "InvalidRequestException":
|
|
2882
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2883
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2884
|
-
case "NotFoundException":
|
|
2885
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
2886
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2887
|
-
case "UnauthorizedException":
|
|
2888
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
2889
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2890
|
-
case "UnsupportedRegionException":
|
|
2891
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
2892
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
2893
|
-
default:
|
|
2894
|
-
const parsedBody = parsedOutput.body;
|
|
2895
|
-
return throwDefaultError({
|
|
2896
|
-
output,
|
|
2897
|
-
parsedBody,
|
|
2898
|
-
errorCode,
|
|
2899
|
-
});
|
|
966
|
+
return response;
|
|
967
|
+
};
|
|
968
|
+
export const de_DeleteScriptCommand = async (output, context) => {
|
|
969
|
+
if (output.statusCode >= 300) {
|
|
970
|
+
return de_CommandError(output, context);
|
|
2900
971
|
}
|
|
972
|
+
await collectBody(output.body, context);
|
|
973
|
+
const response = {
|
|
974
|
+
$metadata: deserializeMetadata(output),
|
|
975
|
+
};
|
|
976
|
+
return response;
|
|
2901
977
|
};
|
|
2902
|
-
export const
|
|
978
|
+
export const de_DeleteVpcPeeringAuthorizationCommand = async (output, context) => {
|
|
2903
979
|
if (output.statusCode >= 300) {
|
|
2904
|
-
return
|
|
980
|
+
return de_CommandError(output, context);
|
|
2905
981
|
}
|
|
2906
982
|
const data = await parseBody(output.body, context);
|
|
2907
983
|
let contents = {};
|
|
2908
|
-
contents =
|
|
984
|
+
contents = _json(data);
|
|
2909
985
|
const response = {
|
|
2910
986
|
$metadata: deserializeMetadata(output),
|
|
2911
987
|
...contents,
|
|
2912
988
|
};
|
|
2913
989
|
return response;
|
|
2914
990
|
};
|
|
2915
|
-
const
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
body: await parseErrorBody(output.body, context),
|
|
2919
|
-
};
|
|
2920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2921
|
-
switch (errorCode) {
|
|
2922
|
-
case "InternalServiceException":
|
|
2923
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2924
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2925
|
-
case "InvalidRequestException":
|
|
2926
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2927
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2928
|
-
case "UnsupportedRegionException":
|
|
2929
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
2930
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
2931
|
-
default:
|
|
2932
|
-
const parsedBody = parsedOutput.body;
|
|
2933
|
-
return throwDefaultError({
|
|
2934
|
-
output,
|
|
2935
|
-
parsedBody,
|
|
2936
|
-
errorCode,
|
|
2937
|
-
});
|
|
991
|
+
export const de_DeleteVpcPeeringConnectionCommand = async (output, context) => {
|
|
992
|
+
if (output.statusCode >= 300) {
|
|
993
|
+
return de_CommandError(output, context);
|
|
2938
994
|
}
|
|
995
|
+
const data = await parseBody(output.body, context);
|
|
996
|
+
let contents = {};
|
|
997
|
+
contents = _json(data);
|
|
998
|
+
const response = {
|
|
999
|
+
$metadata: deserializeMetadata(output),
|
|
1000
|
+
...contents,
|
|
1001
|
+
};
|
|
1002
|
+
return response;
|
|
2939
1003
|
};
|
|
2940
|
-
export const
|
|
1004
|
+
export const de_DeregisterComputeCommand = async (output, context) => {
|
|
2941
1005
|
if (output.statusCode >= 300) {
|
|
2942
|
-
return
|
|
1006
|
+
return de_CommandError(output, context);
|
|
2943
1007
|
}
|
|
2944
1008
|
const data = await parseBody(output.body, context);
|
|
2945
1009
|
let contents = {};
|
|
2946
|
-
contents =
|
|
1010
|
+
contents = _json(data);
|
|
2947
1011
|
const response = {
|
|
2948
1012
|
$metadata: deserializeMetadata(output),
|
|
2949
1013
|
...contents,
|
|
2950
1014
|
};
|
|
2951
1015
|
return response;
|
|
2952
1016
|
};
|
|
2953
|
-
const
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
body: await parseErrorBody(output.body, context),
|
|
2957
|
-
};
|
|
2958
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2959
|
-
switch (errorCode) {
|
|
2960
|
-
case "InternalServiceException":
|
|
2961
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
2962
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2963
|
-
case "InvalidRequestException":
|
|
2964
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
2965
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2966
|
-
case "UnsupportedRegionException":
|
|
2967
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
2968
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
2969
|
-
default:
|
|
2970
|
-
const parsedBody = parsedOutput.body;
|
|
2971
|
-
return throwDefaultError({
|
|
2972
|
-
output,
|
|
2973
|
-
parsedBody,
|
|
2974
|
-
errorCode,
|
|
2975
|
-
});
|
|
1017
|
+
export const de_DeregisterGameServerCommand = async (output, context) => {
|
|
1018
|
+
if (output.statusCode >= 300) {
|
|
1019
|
+
return de_CommandError(output, context);
|
|
2976
1020
|
}
|
|
1021
|
+
await collectBody(output.body, context);
|
|
1022
|
+
const response = {
|
|
1023
|
+
$metadata: deserializeMetadata(output),
|
|
1024
|
+
};
|
|
1025
|
+
return response;
|
|
2977
1026
|
};
|
|
2978
|
-
export const
|
|
1027
|
+
export const de_DescribeAliasCommand = async (output, context) => {
|
|
2979
1028
|
if (output.statusCode >= 300) {
|
|
2980
|
-
return
|
|
1029
|
+
return de_CommandError(output, context);
|
|
2981
1030
|
}
|
|
2982
1031
|
const data = await parseBody(output.body, context);
|
|
2983
1032
|
let contents = {};
|
|
2984
|
-
contents =
|
|
1033
|
+
contents = de_DescribeAliasOutput(data, context);
|
|
2985
1034
|
const response = {
|
|
2986
1035
|
$metadata: deserializeMetadata(output),
|
|
2987
1036
|
...contents,
|
|
2988
1037
|
};
|
|
2989
1038
|
return response;
|
|
2990
1039
|
};
|
|
2991
|
-
const
|
|
2992
|
-
const parsedOutput = {
|
|
2993
|
-
...output,
|
|
2994
|
-
body: await parseErrorBody(output.body, context),
|
|
2995
|
-
};
|
|
2996
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2997
|
-
switch (errorCode) {
|
|
2998
|
-
case "InternalServiceException":
|
|
2999
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3000
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3001
|
-
case "InvalidRequestException":
|
|
3002
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3003
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3004
|
-
case "NotFoundException":
|
|
3005
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
3006
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3007
|
-
case "UnsupportedRegionException":
|
|
3008
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
3009
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
3010
|
-
default:
|
|
3011
|
-
const parsedBody = parsedOutput.body;
|
|
3012
|
-
return throwDefaultError({
|
|
3013
|
-
output,
|
|
3014
|
-
parsedBody,
|
|
3015
|
-
errorCode,
|
|
3016
|
-
});
|
|
3017
|
-
}
|
|
3018
|
-
};
|
|
3019
|
-
export const de_DescribePlayerSessionsCommand = async (output, context) => {
|
|
1040
|
+
export const de_DescribeBuildCommand = async (output, context) => {
|
|
3020
1041
|
if (output.statusCode >= 300) {
|
|
3021
|
-
return
|
|
1042
|
+
return de_CommandError(output, context);
|
|
3022
1043
|
}
|
|
3023
1044
|
const data = await parseBody(output.body, context);
|
|
3024
1045
|
let contents = {};
|
|
3025
|
-
contents =
|
|
1046
|
+
contents = de_DescribeBuildOutput(data, context);
|
|
3026
1047
|
const response = {
|
|
3027
1048
|
$metadata: deserializeMetadata(output),
|
|
3028
1049
|
...contents,
|
|
3029
1050
|
};
|
|
3030
1051
|
return response;
|
|
3031
1052
|
};
|
|
3032
|
-
const
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
body: await parseErrorBody(output.body, context),
|
|
3036
|
-
};
|
|
3037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3038
|
-
switch (errorCode) {
|
|
3039
|
-
case "InternalServiceException":
|
|
3040
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3041
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3042
|
-
case "InvalidRequestException":
|
|
3043
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3044
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3045
|
-
case "NotFoundException":
|
|
3046
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
3047
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3048
|
-
case "UnauthorizedException":
|
|
3049
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3050
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3051
|
-
default:
|
|
3052
|
-
const parsedBody = parsedOutput.body;
|
|
3053
|
-
return throwDefaultError({
|
|
3054
|
-
output,
|
|
3055
|
-
parsedBody,
|
|
3056
|
-
errorCode,
|
|
3057
|
-
});
|
|
1053
|
+
export const de_DescribeComputeCommand = async (output, context) => {
|
|
1054
|
+
if (output.statusCode >= 300) {
|
|
1055
|
+
return de_CommandError(output, context);
|
|
3058
1056
|
}
|
|
1057
|
+
const data = await parseBody(output.body, context);
|
|
1058
|
+
let contents = {};
|
|
1059
|
+
contents = de_DescribeComputeOutput(data, context);
|
|
1060
|
+
const response = {
|
|
1061
|
+
$metadata: deserializeMetadata(output),
|
|
1062
|
+
...contents,
|
|
1063
|
+
};
|
|
1064
|
+
return response;
|
|
3059
1065
|
};
|
|
3060
|
-
export const
|
|
1066
|
+
export const de_DescribeEC2InstanceLimitsCommand = async (output, context) => {
|
|
3061
1067
|
if (output.statusCode >= 300) {
|
|
3062
|
-
return
|
|
1068
|
+
return de_CommandError(output, context);
|
|
3063
1069
|
}
|
|
3064
1070
|
const data = await parseBody(output.body, context);
|
|
3065
1071
|
let contents = {};
|
|
@@ -3070,160 +1076,74 @@ export const de_DescribeRuntimeConfigurationCommand = async (output, context) =>
|
|
|
3070
1076
|
};
|
|
3071
1077
|
return response;
|
|
3072
1078
|
};
|
|
3073
|
-
const
|
|
3074
|
-
const parsedOutput = {
|
|
3075
|
-
...output,
|
|
3076
|
-
body: await parseErrorBody(output.body, context),
|
|
3077
|
-
};
|
|
3078
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3079
|
-
switch (errorCode) {
|
|
3080
|
-
case "InternalServiceException":
|
|
3081
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3082
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3083
|
-
case "InvalidRequestException":
|
|
3084
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3085
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3086
|
-
case "NotFoundException":
|
|
3087
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
3088
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3089
|
-
case "UnauthorizedException":
|
|
3090
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3091
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3092
|
-
default:
|
|
3093
|
-
const parsedBody = parsedOutput.body;
|
|
3094
|
-
return throwDefaultError({
|
|
3095
|
-
output,
|
|
3096
|
-
parsedBody,
|
|
3097
|
-
errorCode,
|
|
3098
|
-
});
|
|
3099
|
-
}
|
|
3100
|
-
};
|
|
3101
|
-
export const de_DescribeScalingPoliciesCommand = async (output, context) => {
|
|
1079
|
+
export const de_DescribeFleetAttributesCommand = async (output, context) => {
|
|
3102
1080
|
if (output.statusCode >= 300) {
|
|
3103
|
-
return
|
|
1081
|
+
return de_CommandError(output, context);
|
|
3104
1082
|
}
|
|
3105
1083
|
const data = await parseBody(output.body, context);
|
|
3106
1084
|
let contents = {};
|
|
3107
|
-
contents =
|
|
1085
|
+
contents = de_DescribeFleetAttributesOutput(data, context);
|
|
3108
1086
|
const response = {
|
|
3109
1087
|
$metadata: deserializeMetadata(output),
|
|
3110
1088
|
...contents,
|
|
3111
1089
|
};
|
|
3112
1090
|
return response;
|
|
3113
1091
|
};
|
|
3114
|
-
const
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
body: await parseErrorBody(output.body, context),
|
|
3118
|
-
};
|
|
3119
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3120
|
-
switch (errorCode) {
|
|
3121
|
-
case "InternalServiceException":
|
|
3122
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3123
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3124
|
-
case "InvalidRequestException":
|
|
3125
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3126
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3127
|
-
case "NotFoundException":
|
|
3128
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
3129
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3130
|
-
case "UnauthorizedException":
|
|
3131
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3132
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3133
|
-
case "UnsupportedRegionException":
|
|
3134
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
3135
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
3136
|
-
default:
|
|
3137
|
-
const parsedBody = parsedOutput.body;
|
|
3138
|
-
return throwDefaultError({
|
|
3139
|
-
output,
|
|
3140
|
-
parsedBody,
|
|
3141
|
-
errorCode,
|
|
3142
|
-
});
|
|
1092
|
+
export const de_DescribeFleetCapacityCommand = async (output, context) => {
|
|
1093
|
+
if (output.statusCode >= 300) {
|
|
1094
|
+
return de_CommandError(output, context);
|
|
3143
1095
|
}
|
|
1096
|
+
const data = await parseBody(output.body, context);
|
|
1097
|
+
let contents = {};
|
|
1098
|
+
contents = _json(data);
|
|
1099
|
+
const response = {
|
|
1100
|
+
$metadata: deserializeMetadata(output),
|
|
1101
|
+
...contents,
|
|
1102
|
+
};
|
|
1103
|
+
return response;
|
|
3144
1104
|
};
|
|
3145
|
-
export const
|
|
1105
|
+
export const de_DescribeFleetEventsCommand = async (output, context) => {
|
|
3146
1106
|
if (output.statusCode >= 300) {
|
|
3147
|
-
return
|
|
1107
|
+
return de_CommandError(output, context);
|
|
3148
1108
|
}
|
|
3149
1109
|
const data = await parseBody(output.body, context);
|
|
3150
1110
|
let contents = {};
|
|
3151
|
-
contents =
|
|
1111
|
+
contents = de_DescribeFleetEventsOutput(data, context);
|
|
3152
1112
|
const response = {
|
|
3153
1113
|
$metadata: deserializeMetadata(output),
|
|
3154
1114
|
...contents,
|
|
3155
1115
|
};
|
|
3156
1116
|
return response;
|
|
3157
1117
|
};
|
|
3158
|
-
const
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
body: await parseErrorBody(output.body, context),
|
|
3162
|
-
};
|
|
3163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3164
|
-
switch (errorCode) {
|
|
3165
|
-
case "InternalServiceException":
|
|
3166
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3167
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3168
|
-
case "InvalidRequestException":
|
|
3169
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3170
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3171
|
-
case "NotFoundException":
|
|
3172
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
3173
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3174
|
-
case "UnauthorizedException":
|
|
3175
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3176
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3177
|
-
default:
|
|
3178
|
-
const parsedBody = parsedOutput.body;
|
|
3179
|
-
return throwDefaultError({
|
|
3180
|
-
output,
|
|
3181
|
-
parsedBody,
|
|
3182
|
-
errorCode,
|
|
3183
|
-
});
|
|
1118
|
+
export const de_DescribeFleetLocationAttributesCommand = async (output, context) => {
|
|
1119
|
+
if (output.statusCode >= 300) {
|
|
1120
|
+
return de_CommandError(output, context);
|
|
3184
1121
|
}
|
|
1122
|
+
const data = await parseBody(output.body, context);
|
|
1123
|
+
let contents = {};
|
|
1124
|
+
contents = _json(data);
|
|
1125
|
+
const response = {
|
|
1126
|
+
$metadata: deserializeMetadata(output),
|
|
1127
|
+
...contents,
|
|
1128
|
+
};
|
|
1129
|
+
return response;
|
|
3185
1130
|
};
|
|
3186
|
-
export const
|
|
1131
|
+
export const de_DescribeFleetLocationCapacityCommand = async (output, context) => {
|
|
3187
1132
|
if (output.statusCode >= 300) {
|
|
3188
|
-
return
|
|
1133
|
+
return de_CommandError(output, context);
|
|
3189
1134
|
}
|
|
3190
1135
|
const data = await parseBody(output.body, context);
|
|
3191
1136
|
let contents = {};
|
|
3192
|
-
contents =
|
|
1137
|
+
contents = _json(data);
|
|
3193
1138
|
const response = {
|
|
3194
1139
|
$metadata: deserializeMetadata(output),
|
|
3195
1140
|
...contents,
|
|
3196
1141
|
};
|
|
3197
1142
|
return response;
|
|
3198
1143
|
};
|
|
3199
|
-
const
|
|
3200
|
-
const parsedOutput = {
|
|
3201
|
-
...output,
|
|
3202
|
-
body: await parseErrorBody(output.body, context),
|
|
3203
|
-
};
|
|
3204
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3205
|
-
switch (errorCode) {
|
|
3206
|
-
case "InternalServiceException":
|
|
3207
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3208
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3209
|
-
case "InvalidRequestException":
|
|
3210
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3211
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3212
|
-
case "UnauthorizedException":
|
|
3213
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3214
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3215
|
-
default:
|
|
3216
|
-
const parsedBody = parsedOutput.body;
|
|
3217
|
-
return throwDefaultError({
|
|
3218
|
-
output,
|
|
3219
|
-
parsedBody,
|
|
3220
|
-
errorCode,
|
|
3221
|
-
});
|
|
3222
|
-
}
|
|
3223
|
-
};
|
|
3224
|
-
export const de_DescribeVpcPeeringConnectionsCommand = async (output, context) => {
|
|
1144
|
+
export const de_DescribeFleetLocationUtilizationCommand = async (output, context) => {
|
|
3225
1145
|
if (output.statusCode >= 300) {
|
|
3226
|
-
return
|
|
1146
|
+
return de_CommandError(output, context);
|
|
3227
1147
|
}
|
|
3228
1148
|
const data = await parseBody(output.body, context);
|
|
3229
1149
|
let contents = {};
|
|
@@ -3234,37 +1154,9 @@ export const de_DescribeVpcPeeringConnectionsCommand = async (output, context) =
|
|
|
3234
1154
|
};
|
|
3235
1155
|
return response;
|
|
3236
1156
|
};
|
|
3237
|
-
const
|
|
3238
|
-
const parsedOutput = {
|
|
3239
|
-
...output,
|
|
3240
|
-
body: await parseErrorBody(output.body, context),
|
|
3241
|
-
};
|
|
3242
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3243
|
-
switch (errorCode) {
|
|
3244
|
-
case "InternalServiceException":
|
|
3245
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3246
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3247
|
-
case "InvalidRequestException":
|
|
3248
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3249
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3250
|
-
case "NotFoundException":
|
|
3251
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
3252
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3253
|
-
case "UnauthorizedException":
|
|
3254
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3255
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3256
|
-
default:
|
|
3257
|
-
const parsedBody = parsedOutput.body;
|
|
3258
|
-
return throwDefaultError({
|
|
3259
|
-
output,
|
|
3260
|
-
parsedBody,
|
|
3261
|
-
errorCode,
|
|
3262
|
-
});
|
|
3263
|
-
}
|
|
3264
|
-
};
|
|
3265
|
-
export const de_GetComputeAccessCommand = async (output, context) => {
|
|
1157
|
+
export const de_DescribeFleetPortSettingsCommand = async (output, context) => {
|
|
3266
1158
|
if (output.statusCode >= 300) {
|
|
3267
|
-
return
|
|
1159
|
+
return de_CommandError(output, context);
|
|
3268
1160
|
}
|
|
3269
1161
|
const data = await parseBody(output.body, context);
|
|
3270
1162
|
let contents = {};
|
|
@@ -3275,119 +1167,48 @@ export const de_GetComputeAccessCommand = async (output, context) => {
|
|
|
3275
1167
|
};
|
|
3276
1168
|
return response;
|
|
3277
1169
|
};
|
|
3278
|
-
const
|
|
3279
|
-
const parsedOutput = {
|
|
3280
|
-
...output,
|
|
3281
|
-
body: await parseErrorBody(output.body, context),
|
|
3282
|
-
};
|
|
3283
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3284
|
-
switch (errorCode) {
|
|
3285
|
-
case "InternalServiceException":
|
|
3286
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3287
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3288
|
-
case "InvalidRequestException":
|
|
3289
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3290
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3291
|
-
case "NotFoundException":
|
|
3292
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
3293
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3294
|
-
case "UnauthorizedException":
|
|
3295
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3296
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3297
|
-
default:
|
|
3298
|
-
const parsedBody = parsedOutput.body;
|
|
3299
|
-
return throwDefaultError({
|
|
3300
|
-
output,
|
|
3301
|
-
parsedBody,
|
|
3302
|
-
errorCode,
|
|
3303
|
-
});
|
|
3304
|
-
}
|
|
3305
|
-
};
|
|
3306
|
-
export const de_GetComputeAuthTokenCommand = async (output, context) => {
|
|
1170
|
+
export const de_DescribeFleetUtilizationCommand = async (output, context) => {
|
|
3307
1171
|
if (output.statusCode >= 300) {
|
|
3308
|
-
return
|
|
1172
|
+
return de_CommandError(output, context);
|
|
3309
1173
|
}
|
|
3310
1174
|
const data = await parseBody(output.body, context);
|
|
3311
1175
|
let contents = {};
|
|
3312
|
-
contents =
|
|
1176
|
+
contents = _json(data);
|
|
3313
1177
|
const response = {
|
|
3314
1178
|
$metadata: deserializeMetadata(output),
|
|
3315
1179
|
...contents,
|
|
3316
1180
|
};
|
|
3317
1181
|
return response;
|
|
3318
1182
|
};
|
|
3319
|
-
const
|
|
3320
|
-
const parsedOutput = {
|
|
3321
|
-
...output,
|
|
3322
|
-
body: await parseErrorBody(output.body, context),
|
|
3323
|
-
};
|
|
3324
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3325
|
-
switch (errorCode) {
|
|
3326
|
-
case "InternalServiceException":
|
|
3327
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3328
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3329
|
-
case "InvalidRequestException":
|
|
3330
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3331
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3332
|
-
case "NotFoundException":
|
|
3333
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
3334
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3335
|
-
case "UnauthorizedException":
|
|
3336
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3337
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3338
|
-
default:
|
|
3339
|
-
const parsedBody = parsedOutput.body;
|
|
3340
|
-
return throwDefaultError({
|
|
3341
|
-
output,
|
|
3342
|
-
parsedBody,
|
|
3343
|
-
errorCode,
|
|
3344
|
-
});
|
|
3345
|
-
}
|
|
3346
|
-
};
|
|
3347
|
-
export const de_GetGameSessionLogUrlCommand = async (output, context) => {
|
|
1183
|
+
export const de_DescribeGameServerCommand = async (output, context) => {
|
|
3348
1184
|
if (output.statusCode >= 300) {
|
|
3349
|
-
return
|
|
1185
|
+
return de_CommandError(output, context);
|
|
3350
1186
|
}
|
|
3351
1187
|
const data = await parseBody(output.body, context);
|
|
3352
1188
|
let contents = {};
|
|
3353
|
-
contents =
|
|
1189
|
+
contents = de_DescribeGameServerOutput(data, context);
|
|
3354
1190
|
const response = {
|
|
3355
1191
|
$metadata: deserializeMetadata(output),
|
|
3356
1192
|
...contents,
|
|
3357
1193
|
};
|
|
3358
1194
|
return response;
|
|
3359
1195
|
};
|
|
3360
|
-
const
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
body: await parseErrorBody(output.body, context),
|
|
3364
|
-
};
|
|
3365
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3366
|
-
switch (errorCode) {
|
|
3367
|
-
case "InternalServiceException":
|
|
3368
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3369
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3370
|
-
case "InvalidRequestException":
|
|
3371
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3372
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3373
|
-
case "NotFoundException":
|
|
3374
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
3375
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3376
|
-
case "UnauthorizedException":
|
|
3377
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3378
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3379
|
-
default:
|
|
3380
|
-
const parsedBody = parsedOutput.body;
|
|
3381
|
-
return throwDefaultError({
|
|
3382
|
-
output,
|
|
3383
|
-
parsedBody,
|
|
3384
|
-
errorCode,
|
|
3385
|
-
});
|
|
1196
|
+
export const de_DescribeGameServerGroupCommand = async (output, context) => {
|
|
1197
|
+
if (output.statusCode >= 300) {
|
|
1198
|
+
return de_CommandError(output, context);
|
|
3386
1199
|
}
|
|
1200
|
+
const data = await parseBody(output.body, context);
|
|
1201
|
+
let contents = {};
|
|
1202
|
+
contents = de_DescribeGameServerGroupOutput(data, context);
|
|
1203
|
+
const response = {
|
|
1204
|
+
$metadata: deserializeMetadata(output),
|
|
1205
|
+
...contents,
|
|
1206
|
+
};
|
|
1207
|
+
return response;
|
|
3387
1208
|
};
|
|
3388
|
-
export const
|
|
1209
|
+
export const de_DescribeGameServerInstancesCommand = async (output, context) => {
|
|
3389
1210
|
if (output.statusCode >= 300) {
|
|
3390
|
-
return
|
|
1211
|
+
return de_CommandError(output, context);
|
|
3391
1212
|
}
|
|
3392
1213
|
const data = await parseBody(output.body, context);
|
|
3393
1214
|
let contents = {};
|
|
@@ -3398,268 +1219,126 @@ export const de_GetInstanceAccessCommand = async (output, context) => {
|
|
|
3398
1219
|
};
|
|
3399
1220
|
return response;
|
|
3400
1221
|
};
|
|
3401
|
-
const
|
|
3402
|
-
const parsedOutput = {
|
|
3403
|
-
...output,
|
|
3404
|
-
body: await parseErrorBody(output.body, context),
|
|
3405
|
-
};
|
|
3406
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3407
|
-
switch (errorCode) {
|
|
3408
|
-
case "InternalServiceException":
|
|
3409
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3410
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3411
|
-
case "InvalidRequestException":
|
|
3412
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3413
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3414
|
-
case "NotFoundException":
|
|
3415
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
3416
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3417
|
-
case "UnauthorizedException":
|
|
3418
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3419
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3420
|
-
default:
|
|
3421
|
-
const parsedBody = parsedOutput.body;
|
|
3422
|
-
return throwDefaultError({
|
|
3423
|
-
output,
|
|
3424
|
-
parsedBody,
|
|
3425
|
-
errorCode,
|
|
3426
|
-
});
|
|
3427
|
-
}
|
|
3428
|
-
};
|
|
3429
|
-
export const de_ListAliasesCommand = async (output, context) => {
|
|
1222
|
+
export const de_DescribeGameSessionDetailsCommand = async (output, context) => {
|
|
3430
1223
|
if (output.statusCode >= 300) {
|
|
3431
|
-
return
|
|
1224
|
+
return de_CommandError(output, context);
|
|
3432
1225
|
}
|
|
3433
1226
|
const data = await parseBody(output.body, context);
|
|
3434
1227
|
let contents = {};
|
|
3435
|
-
contents =
|
|
1228
|
+
contents = de_DescribeGameSessionDetailsOutput(data, context);
|
|
3436
1229
|
const response = {
|
|
3437
1230
|
$metadata: deserializeMetadata(output),
|
|
3438
1231
|
...contents,
|
|
3439
1232
|
};
|
|
3440
1233
|
return response;
|
|
3441
1234
|
};
|
|
3442
|
-
const
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
body: await parseErrorBody(output.body, context),
|
|
3446
|
-
};
|
|
3447
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3448
|
-
switch (errorCode) {
|
|
3449
|
-
case "InternalServiceException":
|
|
3450
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3451
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3452
|
-
case "InvalidRequestException":
|
|
3453
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3454
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3455
|
-
case "UnauthorizedException":
|
|
3456
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3457
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3458
|
-
default:
|
|
3459
|
-
const parsedBody = parsedOutput.body;
|
|
3460
|
-
return throwDefaultError({
|
|
3461
|
-
output,
|
|
3462
|
-
parsedBody,
|
|
3463
|
-
errorCode,
|
|
3464
|
-
});
|
|
1235
|
+
export const de_DescribeGameSessionPlacementCommand = async (output, context) => {
|
|
1236
|
+
if (output.statusCode >= 300) {
|
|
1237
|
+
return de_CommandError(output, context);
|
|
3465
1238
|
}
|
|
1239
|
+
const data = await parseBody(output.body, context);
|
|
1240
|
+
let contents = {};
|
|
1241
|
+
contents = de_DescribeGameSessionPlacementOutput(data, context);
|
|
1242
|
+
const response = {
|
|
1243
|
+
$metadata: deserializeMetadata(output),
|
|
1244
|
+
...contents,
|
|
1245
|
+
};
|
|
1246
|
+
return response;
|
|
3466
1247
|
};
|
|
3467
|
-
export const
|
|
1248
|
+
export const de_DescribeGameSessionQueuesCommand = async (output, context) => {
|
|
3468
1249
|
if (output.statusCode >= 300) {
|
|
3469
|
-
return
|
|
1250
|
+
return de_CommandError(output, context);
|
|
3470
1251
|
}
|
|
3471
1252
|
const data = await parseBody(output.body, context);
|
|
3472
1253
|
let contents = {};
|
|
3473
|
-
contents =
|
|
1254
|
+
contents = _json(data);
|
|
3474
1255
|
const response = {
|
|
3475
1256
|
$metadata: deserializeMetadata(output),
|
|
3476
1257
|
...contents,
|
|
3477
1258
|
};
|
|
3478
1259
|
return response;
|
|
3479
1260
|
};
|
|
3480
|
-
const
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
body: await parseErrorBody(output.body, context),
|
|
3484
|
-
};
|
|
3485
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3486
|
-
switch (errorCode) {
|
|
3487
|
-
case "InternalServiceException":
|
|
3488
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3489
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3490
|
-
case "InvalidRequestException":
|
|
3491
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3492
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3493
|
-
case "UnauthorizedException":
|
|
3494
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3495
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3496
|
-
default:
|
|
3497
|
-
const parsedBody = parsedOutput.body;
|
|
3498
|
-
return throwDefaultError({
|
|
3499
|
-
output,
|
|
3500
|
-
parsedBody,
|
|
3501
|
-
errorCode,
|
|
3502
|
-
});
|
|
1261
|
+
export const de_DescribeGameSessionsCommand = async (output, context) => {
|
|
1262
|
+
if (output.statusCode >= 300) {
|
|
1263
|
+
return de_CommandError(output, context);
|
|
3503
1264
|
}
|
|
1265
|
+
const data = await parseBody(output.body, context);
|
|
1266
|
+
let contents = {};
|
|
1267
|
+
contents = de_DescribeGameSessionsOutput(data, context);
|
|
1268
|
+
const response = {
|
|
1269
|
+
$metadata: deserializeMetadata(output),
|
|
1270
|
+
...contents,
|
|
1271
|
+
};
|
|
1272
|
+
return response;
|
|
3504
1273
|
};
|
|
3505
|
-
export const
|
|
1274
|
+
export const de_DescribeInstancesCommand = async (output, context) => {
|
|
3506
1275
|
if (output.statusCode >= 300) {
|
|
3507
|
-
return
|
|
1276
|
+
return de_CommandError(output, context);
|
|
3508
1277
|
}
|
|
3509
1278
|
const data = await parseBody(output.body, context);
|
|
3510
1279
|
let contents = {};
|
|
3511
|
-
contents =
|
|
1280
|
+
contents = de_DescribeInstancesOutput(data, context);
|
|
3512
1281
|
const response = {
|
|
3513
1282
|
$metadata: deserializeMetadata(output),
|
|
3514
1283
|
...contents,
|
|
3515
1284
|
};
|
|
3516
1285
|
return response;
|
|
3517
1286
|
};
|
|
3518
|
-
const
|
|
3519
|
-
const parsedOutput = {
|
|
3520
|
-
...output,
|
|
3521
|
-
body: await parseErrorBody(output.body, context),
|
|
3522
|
-
};
|
|
3523
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3524
|
-
switch (errorCode) {
|
|
3525
|
-
case "InternalServiceException":
|
|
3526
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3527
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3528
|
-
case "InvalidRequestException":
|
|
3529
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3530
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3531
|
-
case "UnauthorizedException":
|
|
3532
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3533
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3534
|
-
default:
|
|
3535
|
-
const parsedBody = parsedOutput.body;
|
|
3536
|
-
return throwDefaultError({
|
|
3537
|
-
output,
|
|
3538
|
-
parsedBody,
|
|
3539
|
-
errorCode,
|
|
3540
|
-
});
|
|
3541
|
-
}
|
|
3542
|
-
};
|
|
3543
|
-
export const de_ListFleetsCommand = async (output, context) => {
|
|
1287
|
+
export const de_DescribeMatchmakingCommand = async (output, context) => {
|
|
3544
1288
|
if (output.statusCode >= 300) {
|
|
3545
|
-
return
|
|
1289
|
+
return de_CommandError(output, context);
|
|
3546
1290
|
}
|
|
3547
1291
|
const data = await parseBody(output.body, context);
|
|
3548
1292
|
let contents = {};
|
|
3549
|
-
contents =
|
|
1293
|
+
contents = de_DescribeMatchmakingOutput(data, context);
|
|
3550
1294
|
const response = {
|
|
3551
1295
|
$metadata: deserializeMetadata(output),
|
|
3552
1296
|
...contents,
|
|
3553
1297
|
};
|
|
3554
1298
|
return response;
|
|
3555
1299
|
};
|
|
3556
|
-
const
|
|
3557
|
-
const parsedOutput = {
|
|
3558
|
-
...output,
|
|
3559
|
-
body: await parseErrorBody(output.body, context),
|
|
3560
|
-
};
|
|
3561
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3562
|
-
switch (errorCode) {
|
|
3563
|
-
case "InternalServiceException":
|
|
3564
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3565
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3566
|
-
case "InvalidRequestException":
|
|
3567
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3568
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3569
|
-
case "NotFoundException":
|
|
3570
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
3571
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3572
|
-
case "UnauthorizedException":
|
|
3573
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3574
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3575
|
-
default:
|
|
3576
|
-
const parsedBody = parsedOutput.body;
|
|
3577
|
-
return throwDefaultError({
|
|
3578
|
-
output,
|
|
3579
|
-
parsedBody,
|
|
3580
|
-
errorCode,
|
|
3581
|
-
});
|
|
3582
|
-
}
|
|
3583
|
-
};
|
|
3584
|
-
export const de_ListGameServerGroupsCommand = async (output, context) => {
|
|
1300
|
+
export const de_DescribeMatchmakingConfigurationsCommand = async (output, context) => {
|
|
3585
1301
|
if (output.statusCode >= 300) {
|
|
3586
|
-
return
|
|
1302
|
+
return de_CommandError(output, context);
|
|
3587
1303
|
}
|
|
3588
1304
|
const data = await parseBody(output.body, context);
|
|
3589
1305
|
let contents = {};
|
|
3590
|
-
contents =
|
|
1306
|
+
contents = de_DescribeMatchmakingConfigurationsOutput(data, context);
|
|
3591
1307
|
const response = {
|
|
3592
1308
|
$metadata: deserializeMetadata(output),
|
|
3593
1309
|
...contents,
|
|
3594
1310
|
};
|
|
3595
1311
|
return response;
|
|
3596
1312
|
};
|
|
3597
|
-
const
|
|
3598
|
-
const parsedOutput = {
|
|
3599
|
-
...output,
|
|
3600
|
-
body: await parseErrorBody(output.body, context),
|
|
3601
|
-
};
|
|
3602
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3603
|
-
switch (errorCode) {
|
|
3604
|
-
case "InternalServiceException":
|
|
3605
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3606
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3607
|
-
case "InvalidRequestException":
|
|
3608
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3609
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3610
|
-
case "UnauthorizedException":
|
|
3611
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3612
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3613
|
-
default:
|
|
3614
|
-
const parsedBody = parsedOutput.body;
|
|
3615
|
-
return throwDefaultError({
|
|
3616
|
-
output,
|
|
3617
|
-
parsedBody,
|
|
3618
|
-
errorCode,
|
|
3619
|
-
});
|
|
3620
|
-
}
|
|
3621
|
-
};
|
|
3622
|
-
export const de_ListGameServersCommand = async (output, context) => {
|
|
1313
|
+
export const de_DescribeMatchmakingRuleSetsCommand = async (output, context) => {
|
|
3623
1314
|
if (output.statusCode >= 300) {
|
|
3624
|
-
return
|
|
1315
|
+
return de_CommandError(output, context);
|
|
3625
1316
|
}
|
|
3626
1317
|
const data = await parseBody(output.body, context);
|
|
3627
1318
|
let contents = {};
|
|
3628
|
-
contents =
|
|
1319
|
+
contents = de_DescribeMatchmakingRuleSetsOutput(data, context);
|
|
3629
1320
|
const response = {
|
|
3630
1321
|
$metadata: deserializeMetadata(output),
|
|
3631
1322
|
...contents,
|
|
3632
1323
|
};
|
|
3633
1324
|
return response;
|
|
3634
1325
|
};
|
|
3635
|
-
const
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
body: await parseErrorBody(output.body, context),
|
|
3639
|
-
};
|
|
3640
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3641
|
-
switch (errorCode) {
|
|
3642
|
-
case "InternalServiceException":
|
|
3643
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3644
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3645
|
-
case "InvalidRequestException":
|
|
3646
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3647
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3648
|
-
case "UnauthorizedException":
|
|
3649
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3650
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3651
|
-
default:
|
|
3652
|
-
const parsedBody = parsedOutput.body;
|
|
3653
|
-
return throwDefaultError({
|
|
3654
|
-
output,
|
|
3655
|
-
parsedBody,
|
|
3656
|
-
errorCode,
|
|
3657
|
-
});
|
|
1326
|
+
export const de_DescribePlayerSessionsCommand = async (output, context) => {
|
|
1327
|
+
if (output.statusCode >= 300) {
|
|
1328
|
+
return de_CommandError(output, context);
|
|
3658
1329
|
}
|
|
1330
|
+
const data = await parseBody(output.body, context);
|
|
1331
|
+
let contents = {};
|
|
1332
|
+
contents = de_DescribePlayerSessionsOutput(data, context);
|
|
1333
|
+
const response = {
|
|
1334
|
+
$metadata: deserializeMetadata(output),
|
|
1335
|
+
...contents,
|
|
1336
|
+
};
|
|
1337
|
+
return response;
|
|
3659
1338
|
};
|
|
3660
|
-
export const
|
|
1339
|
+
export const de_DescribeRuntimeConfigurationCommand = async (output, context) => {
|
|
3661
1340
|
if (output.statusCode >= 300) {
|
|
3662
|
-
return
|
|
1341
|
+
return de_CommandError(output, context);
|
|
3663
1342
|
}
|
|
3664
1343
|
const data = await parseBody(output.body, context);
|
|
3665
1344
|
let contents = {};
|
|
@@ -3670,72 +1349,48 @@ export const de_ListLocationsCommand = async (output, context) => {
|
|
|
3670
1349
|
};
|
|
3671
1350
|
return response;
|
|
3672
1351
|
};
|
|
3673
|
-
const
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
body: await parseErrorBody(output.body, context),
|
|
3677
|
-
};
|
|
3678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3679
|
-
switch (errorCode) {
|
|
3680
|
-
case "InternalServiceException":
|
|
3681
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3682
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3683
|
-
case "InvalidRequestException":
|
|
3684
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3685
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3686
|
-
case "UnauthorizedException":
|
|
3687
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3688
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3689
|
-
default:
|
|
3690
|
-
const parsedBody = parsedOutput.body;
|
|
3691
|
-
return throwDefaultError({
|
|
3692
|
-
output,
|
|
3693
|
-
parsedBody,
|
|
3694
|
-
errorCode,
|
|
3695
|
-
});
|
|
1352
|
+
export const de_DescribeScalingPoliciesCommand = async (output, context) => {
|
|
1353
|
+
if (output.statusCode >= 300) {
|
|
1354
|
+
return de_CommandError(output, context);
|
|
3696
1355
|
}
|
|
1356
|
+
const data = await parseBody(output.body, context);
|
|
1357
|
+
let contents = {};
|
|
1358
|
+
contents = de_DescribeScalingPoliciesOutput(data, context);
|
|
1359
|
+
const response = {
|
|
1360
|
+
$metadata: deserializeMetadata(output),
|
|
1361
|
+
...contents,
|
|
1362
|
+
};
|
|
1363
|
+
return response;
|
|
3697
1364
|
};
|
|
3698
|
-
export const
|
|
1365
|
+
export const de_DescribeScriptCommand = async (output, context) => {
|
|
3699
1366
|
if (output.statusCode >= 300) {
|
|
3700
|
-
return
|
|
1367
|
+
return de_CommandError(output, context);
|
|
3701
1368
|
}
|
|
3702
1369
|
const data = await parseBody(output.body, context);
|
|
3703
1370
|
let contents = {};
|
|
3704
|
-
contents =
|
|
1371
|
+
contents = de_DescribeScriptOutput(data, context);
|
|
3705
1372
|
const response = {
|
|
3706
1373
|
$metadata: deserializeMetadata(output),
|
|
3707
1374
|
...contents,
|
|
3708
1375
|
};
|
|
3709
1376
|
return response;
|
|
3710
1377
|
};
|
|
3711
|
-
const
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
body: await parseErrorBody(output.body, context),
|
|
3715
|
-
};
|
|
3716
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3717
|
-
switch (errorCode) {
|
|
3718
|
-
case "InternalServiceException":
|
|
3719
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3720
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3721
|
-
case "InvalidRequestException":
|
|
3722
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3723
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3724
|
-
case "UnauthorizedException":
|
|
3725
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3726
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3727
|
-
default:
|
|
3728
|
-
const parsedBody = parsedOutput.body;
|
|
3729
|
-
return throwDefaultError({
|
|
3730
|
-
output,
|
|
3731
|
-
parsedBody,
|
|
3732
|
-
errorCode,
|
|
3733
|
-
});
|
|
1378
|
+
export const de_DescribeVpcPeeringAuthorizationsCommand = async (output, context) => {
|
|
1379
|
+
if (output.statusCode >= 300) {
|
|
1380
|
+
return de_CommandError(output, context);
|
|
3734
1381
|
}
|
|
1382
|
+
const data = await parseBody(output.body, context);
|
|
1383
|
+
let contents = {};
|
|
1384
|
+
contents = de_DescribeVpcPeeringAuthorizationsOutput(data, context);
|
|
1385
|
+
const response = {
|
|
1386
|
+
$metadata: deserializeMetadata(output),
|
|
1387
|
+
...contents,
|
|
1388
|
+
};
|
|
1389
|
+
return response;
|
|
3735
1390
|
};
|
|
3736
|
-
export const
|
|
1391
|
+
export const de_DescribeVpcPeeringConnectionsCommand = async (output, context) => {
|
|
3737
1392
|
if (output.statusCode >= 300) {
|
|
3738
|
-
return
|
|
1393
|
+
return de_CommandError(output, context);
|
|
3739
1394
|
}
|
|
3740
1395
|
const data = await parseBody(output.body, context);
|
|
3741
1396
|
let contents = {};
|
|
@@ -3746,37 +1401,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
3746
1401
|
};
|
|
3747
1402
|
return response;
|
|
3748
1403
|
};
|
|
3749
|
-
const
|
|
3750
|
-
const parsedOutput = {
|
|
3751
|
-
...output,
|
|
3752
|
-
body: await parseErrorBody(output.body, context),
|
|
3753
|
-
};
|
|
3754
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3755
|
-
switch (errorCode) {
|
|
3756
|
-
case "InternalServiceException":
|
|
3757
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3758
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3759
|
-
case "InvalidRequestException":
|
|
3760
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3761
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3762
|
-
case "NotFoundException":
|
|
3763
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
3764
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3765
|
-
case "TaggingFailedException":
|
|
3766
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
3767
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
3768
|
-
default:
|
|
3769
|
-
const parsedBody = parsedOutput.body;
|
|
3770
|
-
return throwDefaultError({
|
|
3771
|
-
output,
|
|
3772
|
-
parsedBody,
|
|
3773
|
-
errorCode,
|
|
3774
|
-
});
|
|
3775
|
-
}
|
|
3776
|
-
};
|
|
3777
|
-
export const de_PutScalingPolicyCommand = async (output, context) => {
|
|
1404
|
+
export const de_GetComputeAccessCommand = async (output, context) => {
|
|
3778
1405
|
if (output.statusCode >= 300) {
|
|
3779
|
-
return
|
|
1406
|
+
return de_CommandError(output, context);
|
|
3780
1407
|
}
|
|
3781
1408
|
const data = await parseBody(output.body, context);
|
|
3782
1409
|
let contents = {};
|
|
@@ -3787,166 +1414,87 @@ export const de_PutScalingPolicyCommand = async (output, context) => {
|
|
|
3787
1414
|
};
|
|
3788
1415
|
return response;
|
|
3789
1416
|
};
|
|
3790
|
-
const
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
body: await parseErrorBody(output.body, context),
|
|
3794
|
-
};
|
|
3795
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3796
|
-
switch (errorCode) {
|
|
3797
|
-
case "InternalServiceException":
|
|
3798
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3799
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3800
|
-
case "InvalidRequestException":
|
|
3801
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3802
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3803
|
-
case "NotFoundException":
|
|
3804
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
3805
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3806
|
-
case "UnauthorizedException":
|
|
3807
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3808
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3809
|
-
default:
|
|
3810
|
-
const parsedBody = parsedOutput.body;
|
|
3811
|
-
return throwDefaultError({
|
|
3812
|
-
output,
|
|
3813
|
-
parsedBody,
|
|
3814
|
-
errorCode,
|
|
3815
|
-
});
|
|
1417
|
+
export const de_GetComputeAuthTokenCommand = async (output, context) => {
|
|
1418
|
+
if (output.statusCode >= 300) {
|
|
1419
|
+
return de_CommandError(output, context);
|
|
3816
1420
|
}
|
|
1421
|
+
const data = await parseBody(output.body, context);
|
|
1422
|
+
let contents = {};
|
|
1423
|
+
contents = de_GetComputeAuthTokenOutput(data, context);
|
|
1424
|
+
const response = {
|
|
1425
|
+
$metadata: deserializeMetadata(output),
|
|
1426
|
+
...contents,
|
|
1427
|
+
};
|
|
1428
|
+
return response;
|
|
3817
1429
|
};
|
|
3818
|
-
export const
|
|
1430
|
+
export const de_GetGameSessionLogUrlCommand = async (output, context) => {
|
|
3819
1431
|
if (output.statusCode >= 300) {
|
|
3820
|
-
return
|
|
1432
|
+
return de_CommandError(output, context);
|
|
3821
1433
|
}
|
|
3822
1434
|
const data = await parseBody(output.body, context);
|
|
3823
1435
|
let contents = {};
|
|
3824
|
-
contents =
|
|
1436
|
+
contents = _json(data);
|
|
3825
1437
|
const response = {
|
|
3826
1438
|
$metadata: deserializeMetadata(output),
|
|
3827
1439
|
...contents,
|
|
3828
1440
|
};
|
|
3829
1441
|
return response;
|
|
3830
1442
|
};
|
|
3831
|
-
const
|
|
3832
|
-
const parsedOutput = {
|
|
3833
|
-
...output,
|
|
3834
|
-
body: await parseErrorBody(output.body, context),
|
|
3835
|
-
};
|
|
3836
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3837
|
-
switch (errorCode) {
|
|
3838
|
-
case "ConflictException":
|
|
3839
|
-
case "com.amazonaws.gamelift#ConflictException":
|
|
3840
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3841
|
-
case "InternalServiceException":
|
|
3842
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3843
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3844
|
-
case "InvalidRequestException":
|
|
3845
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3846
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3847
|
-
case "LimitExceededException":
|
|
3848
|
-
case "com.amazonaws.gamelift#LimitExceededException":
|
|
3849
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3850
|
-
case "UnauthorizedException":
|
|
3851
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3852
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3853
|
-
default:
|
|
3854
|
-
const parsedBody = parsedOutput.body;
|
|
3855
|
-
return throwDefaultError({
|
|
3856
|
-
output,
|
|
3857
|
-
parsedBody,
|
|
3858
|
-
errorCode,
|
|
3859
|
-
});
|
|
3860
|
-
}
|
|
3861
|
-
};
|
|
3862
|
-
export const de_RegisterGameServerCommand = async (output, context) => {
|
|
1443
|
+
export const de_GetInstanceAccessCommand = async (output, context) => {
|
|
3863
1444
|
if (output.statusCode >= 300) {
|
|
3864
|
-
return
|
|
1445
|
+
return de_CommandError(output, context);
|
|
3865
1446
|
}
|
|
3866
1447
|
const data = await parseBody(output.body, context);
|
|
3867
1448
|
let contents = {};
|
|
3868
|
-
contents =
|
|
1449
|
+
contents = _json(data);
|
|
3869
1450
|
const response = {
|
|
3870
1451
|
$metadata: deserializeMetadata(output),
|
|
3871
1452
|
...contents,
|
|
3872
1453
|
};
|
|
3873
1454
|
return response;
|
|
3874
1455
|
};
|
|
3875
|
-
const
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
body: await parseErrorBody(output.body, context),
|
|
3879
|
-
};
|
|
3880
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3881
|
-
switch (errorCode) {
|
|
3882
|
-
case "ConflictException":
|
|
3883
|
-
case "com.amazonaws.gamelift#ConflictException":
|
|
3884
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3885
|
-
case "InternalServiceException":
|
|
3886
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3887
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3888
|
-
case "InvalidRequestException":
|
|
3889
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3890
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3891
|
-
case "LimitExceededException":
|
|
3892
|
-
case "com.amazonaws.gamelift#LimitExceededException":
|
|
3893
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3894
|
-
case "UnauthorizedException":
|
|
3895
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3896
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3897
|
-
default:
|
|
3898
|
-
const parsedBody = parsedOutput.body;
|
|
3899
|
-
return throwDefaultError({
|
|
3900
|
-
output,
|
|
3901
|
-
parsedBody,
|
|
3902
|
-
errorCode,
|
|
3903
|
-
});
|
|
1456
|
+
export const de_ListAliasesCommand = async (output, context) => {
|
|
1457
|
+
if (output.statusCode >= 300) {
|
|
1458
|
+
return de_CommandError(output, context);
|
|
3904
1459
|
}
|
|
1460
|
+
const data = await parseBody(output.body, context);
|
|
1461
|
+
let contents = {};
|
|
1462
|
+
contents = de_ListAliasesOutput(data, context);
|
|
1463
|
+
const response = {
|
|
1464
|
+
$metadata: deserializeMetadata(output),
|
|
1465
|
+
...contents,
|
|
1466
|
+
};
|
|
1467
|
+
return response;
|
|
3905
1468
|
};
|
|
3906
|
-
export const
|
|
1469
|
+
export const de_ListBuildsCommand = async (output, context) => {
|
|
3907
1470
|
if (output.statusCode >= 300) {
|
|
3908
|
-
return
|
|
1471
|
+
return de_CommandError(output, context);
|
|
3909
1472
|
}
|
|
3910
1473
|
const data = await parseBody(output.body, context);
|
|
3911
1474
|
let contents = {};
|
|
3912
|
-
contents =
|
|
1475
|
+
contents = de_ListBuildsOutput(data, context);
|
|
3913
1476
|
const response = {
|
|
3914
1477
|
$metadata: deserializeMetadata(output),
|
|
3915
1478
|
...contents,
|
|
3916
1479
|
};
|
|
3917
1480
|
return response;
|
|
3918
1481
|
};
|
|
3919
|
-
const
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
body: await parseErrorBody(output.body, context),
|
|
3923
|
-
};
|
|
3924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3925
|
-
switch (errorCode) {
|
|
3926
|
-
case "InternalServiceException":
|
|
3927
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3928
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3929
|
-
case "InvalidRequestException":
|
|
3930
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3931
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3932
|
-
case "NotFoundException":
|
|
3933
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
3934
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3935
|
-
case "UnauthorizedException":
|
|
3936
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3937
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3938
|
-
default:
|
|
3939
|
-
const parsedBody = parsedOutput.body;
|
|
3940
|
-
return throwDefaultError({
|
|
3941
|
-
output,
|
|
3942
|
-
parsedBody,
|
|
3943
|
-
errorCode,
|
|
3944
|
-
});
|
|
1482
|
+
export const de_ListComputeCommand = async (output, context) => {
|
|
1483
|
+
if (output.statusCode >= 300) {
|
|
1484
|
+
return de_CommandError(output, context);
|
|
3945
1485
|
}
|
|
1486
|
+
const data = await parseBody(output.body, context);
|
|
1487
|
+
let contents = {};
|
|
1488
|
+
contents = de_ListComputeOutput(data, context);
|
|
1489
|
+
const response = {
|
|
1490
|
+
$metadata: deserializeMetadata(output),
|
|
1491
|
+
...contents,
|
|
1492
|
+
};
|
|
1493
|
+
return response;
|
|
3946
1494
|
};
|
|
3947
|
-
export const
|
|
1495
|
+
export const de_ListFleetsCommand = async (output, context) => {
|
|
3948
1496
|
if (output.statusCode >= 300) {
|
|
3949
|
-
return
|
|
1497
|
+
return de_CommandError(output, context);
|
|
3950
1498
|
}
|
|
3951
1499
|
const data = await parseBody(output.body, context);
|
|
3952
1500
|
let contents = {};
|
|
@@ -3957,128 +1505,35 @@ export const de_ResolveAliasCommand = async (output, context) => {
|
|
|
3957
1505
|
};
|
|
3958
1506
|
return response;
|
|
3959
1507
|
};
|
|
3960
|
-
const
|
|
3961
|
-
const parsedOutput = {
|
|
3962
|
-
...output,
|
|
3963
|
-
body: await parseErrorBody(output.body, context),
|
|
3964
|
-
};
|
|
3965
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3966
|
-
switch (errorCode) {
|
|
3967
|
-
case "InternalServiceException":
|
|
3968
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
3969
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3970
|
-
case "InvalidRequestException":
|
|
3971
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
3972
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3973
|
-
case "NotFoundException":
|
|
3974
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
3975
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3976
|
-
case "TerminalRoutingStrategyException":
|
|
3977
|
-
case "com.amazonaws.gamelift#TerminalRoutingStrategyException":
|
|
3978
|
-
throw await de_TerminalRoutingStrategyExceptionRes(parsedOutput, context);
|
|
3979
|
-
case "UnauthorizedException":
|
|
3980
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
3981
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3982
|
-
default:
|
|
3983
|
-
const parsedBody = parsedOutput.body;
|
|
3984
|
-
return throwDefaultError({
|
|
3985
|
-
output,
|
|
3986
|
-
parsedBody,
|
|
3987
|
-
errorCode,
|
|
3988
|
-
});
|
|
3989
|
-
}
|
|
3990
|
-
};
|
|
3991
|
-
export const de_ResumeGameServerGroupCommand = async (output, context) => {
|
|
1508
|
+
export const de_ListGameServerGroupsCommand = async (output, context) => {
|
|
3992
1509
|
if (output.statusCode >= 300) {
|
|
3993
|
-
return
|
|
1510
|
+
return de_CommandError(output, context);
|
|
3994
1511
|
}
|
|
3995
1512
|
const data = await parseBody(output.body, context);
|
|
3996
1513
|
let contents = {};
|
|
3997
|
-
contents =
|
|
1514
|
+
contents = de_ListGameServerGroupsOutput(data, context);
|
|
3998
1515
|
const response = {
|
|
3999
1516
|
$metadata: deserializeMetadata(output),
|
|
4000
1517
|
...contents,
|
|
4001
1518
|
};
|
|
4002
1519
|
return response;
|
|
4003
1520
|
};
|
|
4004
|
-
const
|
|
4005
|
-
const parsedOutput = {
|
|
4006
|
-
...output,
|
|
4007
|
-
body: await parseErrorBody(output.body, context),
|
|
4008
|
-
};
|
|
4009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4010
|
-
switch (errorCode) {
|
|
4011
|
-
case "InternalServiceException":
|
|
4012
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4013
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4014
|
-
case "InvalidRequestException":
|
|
4015
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4016
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4017
|
-
case "NotFoundException":
|
|
4018
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4019
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4020
|
-
case "UnauthorizedException":
|
|
4021
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4022
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4023
|
-
default:
|
|
4024
|
-
const parsedBody = parsedOutput.body;
|
|
4025
|
-
return throwDefaultError({
|
|
4026
|
-
output,
|
|
4027
|
-
parsedBody,
|
|
4028
|
-
errorCode,
|
|
4029
|
-
});
|
|
4030
|
-
}
|
|
4031
|
-
};
|
|
4032
|
-
export const de_SearchGameSessionsCommand = async (output, context) => {
|
|
1521
|
+
export const de_ListGameServersCommand = async (output, context) => {
|
|
4033
1522
|
if (output.statusCode >= 300) {
|
|
4034
|
-
return
|
|
1523
|
+
return de_CommandError(output, context);
|
|
4035
1524
|
}
|
|
4036
1525
|
const data = await parseBody(output.body, context);
|
|
4037
1526
|
let contents = {};
|
|
4038
|
-
contents =
|
|
1527
|
+
contents = de_ListGameServersOutput(data, context);
|
|
4039
1528
|
const response = {
|
|
4040
1529
|
$metadata: deserializeMetadata(output),
|
|
4041
1530
|
...contents,
|
|
4042
1531
|
};
|
|
4043
1532
|
return response;
|
|
4044
1533
|
};
|
|
4045
|
-
const
|
|
4046
|
-
const parsedOutput = {
|
|
4047
|
-
...output,
|
|
4048
|
-
body: await parseErrorBody(output.body, context),
|
|
4049
|
-
};
|
|
4050
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4051
|
-
switch (errorCode) {
|
|
4052
|
-
case "InternalServiceException":
|
|
4053
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4054
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4055
|
-
case "InvalidRequestException":
|
|
4056
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4057
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4058
|
-
case "NotFoundException":
|
|
4059
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4060
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4061
|
-
case "TerminalRoutingStrategyException":
|
|
4062
|
-
case "com.amazonaws.gamelift#TerminalRoutingStrategyException":
|
|
4063
|
-
throw await de_TerminalRoutingStrategyExceptionRes(parsedOutput, context);
|
|
4064
|
-
case "UnauthorizedException":
|
|
4065
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4066
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4067
|
-
case "UnsupportedRegionException":
|
|
4068
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
4069
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
4070
|
-
default:
|
|
4071
|
-
const parsedBody = parsedOutput.body;
|
|
4072
|
-
return throwDefaultError({
|
|
4073
|
-
output,
|
|
4074
|
-
parsedBody,
|
|
4075
|
-
errorCode,
|
|
4076
|
-
});
|
|
4077
|
-
}
|
|
4078
|
-
};
|
|
4079
|
-
export const de_StartFleetActionsCommand = async (output, context) => {
|
|
1534
|
+
export const de_ListLocationsCommand = async (output, context) => {
|
|
4080
1535
|
if (output.statusCode >= 300) {
|
|
4081
|
-
return
|
|
1536
|
+
return de_CommandError(output, context);
|
|
4082
1537
|
}
|
|
4083
1538
|
const data = await parseBody(output.body, context);
|
|
4084
1539
|
let contents = {};
|
|
@@ -4089,163 +1544,74 @@ export const de_StartFleetActionsCommand = async (output, context) => {
|
|
|
4089
1544
|
};
|
|
4090
1545
|
return response;
|
|
4091
1546
|
};
|
|
4092
|
-
const
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
body: await parseErrorBody(output.body, context),
|
|
4096
|
-
};
|
|
4097
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4098
|
-
switch (errorCode) {
|
|
4099
|
-
case "InternalServiceException":
|
|
4100
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4101
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4102
|
-
case "InvalidRequestException":
|
|
4103
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4104
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4105
|
-
case "NotFoundException":
|
|
4106
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4107
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4108
|
-
case "UnauthorizedException":
|
|
4109
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4110
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4111
|
-
case "UnsupportedRegionException":
|
|
4112
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
4113
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
4114
|
-
default:
|
|
4115
|
-
const parsedBody = parsedOutput.body;
|
|
4116
|
-
return throwDefaultError({
|
|
4117
|
-
output,
|
|
4118
|
-
parsedBody,
|
|
4119
|
-
errorCode,
|
|
4120
|
-
});
|
|
1547
|
+
export const de_ListScriptsCommand = async (output, context) => {
|
|
1548
|
+
if (output.statusCode >= 300) {
|
|
1549
|
+
return de_CommandError(output, context);
|
|
4121
1550
|
}
|
|
1551
|
+
const data = await parseBody(output.body, context);
|
|
1552
|
+
let contents = {};
|
|
1553
|
+
contents = de_ListScriptsOutput(data, context);
|
|
1554
|
+
const response = {
|
|
1555
|
+
$metadata: deserializeMetadata(output),
|
|
1556
|
+
...contents,
|
|
1557
|
+
};
|
|
1558
|
+
return response;
|
|
4122
1559
|
};
|
|
4123
|
-
export const
|
|
1560
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
4124
1561
|
if (output.statusCode >= 300) {
|
|
4125
|
-
return
|
|
1562
|
+
return de_CommandError(output, context);
|
|
4126
1563
|
}
|
|
4127
1564
|
const data = await parseBody(output.body, context);
|
|
4128
1565
|
let contents = {};
|
|
4129
|
-
contents =
|
|
1566
|
+
contents = _json(data);
|
|
4130
1567
|
const response = {
|
|
4131
1568
|
$metadata: deserializeMetadata(output),
|
|
4132
1569
|
...contents,
|
|
4133
1570
|
};
|
|
4134
1571
|
return response;
|
|
4135
1572
|
};
|
|
4136
|
-
const
|
|
4137
|
-
const parsedOutput = {
|
|
4138
|
-
...output,
|
|
4139
|
-
body: await parseErrorBody(output.body, context),
|
|
4140
|
-
};
|
|
4141
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4142
|
-
switch (errorCode) {
|
|
4143
|
-
case "InternalServiceException":
|
|
4144
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4145
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4146
|
-
case "InvalidRequestException":
|
|
4147
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4148
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4149
|
-
case "NotFoundException":
|
|
4150
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4151
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4152
|
-
case "UnauthorizedException":
|
|
4153
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4154
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4155
|
-
default:
|
|
4156
|
-
const parsedBody = parsedOutput.body;
|
|
4157
|
-
return throwDefaultError({
|
|
4158
|
-
output,
|
|
4159
|
-
parsedBody,
|
|
4160
|
-
errorCode,
|
|
4161
|
-
});
|
|
4162
|
-
}
|
|
4163
|
-
};
|
|
4164
|
-
export const de_StartMatchBackfillCommand = async (output, context) => {
|
|
1573
|
+
export const de_PutScalingPolicyCommand = async (output, context) => {
|
|
4165
1574
|
if (output.statusCode >= 300) {
|
|
4166
|
-
return
|
|
1575
|
+
return de_CommandError(output, context);
|
|
4167
1576
|
}
|
|
4168
1577
|
const data = await parseBody(output.body, context);
|
|
4169
1578
|
let contents = {};
|
|
4170
|
-
contents =
|
|
1579
|
+
contents = _json(data);
|
|
4171
1580
|
const response = {
|
|
4172
1581
|
$metadata: deserializeMetadata(output),
|
|
4173
1582
|
...contents,
|
|
4174
1583
|
};
|
|
4175
1584
|
return response;
|
|
4176
1585
|
};
|
|
4177
|
-
const
|
|
4178
|
-
const parsedOutput = {
|
|
4179
|
-
...output,
|
|
4180
|
-
body: await parseErrorBody(output.body, context),
|
|
4181
|
-
};
|
|
4182
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4183
|
-
switch (errorCode) {
|
|
4184
|
-
case "InternalServiceException":
|
|
4185
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4186
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4187
|
-
case "InvalidRequestException":
|
|
4188
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4189
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4190
|
-
case "NotFoundException":
|
|
4191
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4192
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4193
|
-
case "UnsupportedRegionException":
|
|
4194
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
4195
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
4196
|
-
default:
|
|
4197
|
-
const parsedBody = parsedOutput.body;
|
|
4198
|
-
return throwDefaultError({
|
|
4199
|
-
output,
|
|
4200
|
-
parsedBody,
|
|
4201
|
-
errorCode,
|
|
4202
|
-
});
|
|
4203
|
-
}
|
|
4204
|
-
};
|
|
4205
|
-
export const de_StartMatchmakingCommand = async (output, context) => {
|
|
1586
|
+
export const de_RegisterComputeCommand = async (output, context) => {
|
|
4206
1587
|
if (output.statusCode >= 300) {
|
|
4207
|
-
return
|
|
1588
|
+
return de_CommandError(output, context);
|
|
4208
1589
|
}
|
|
4209
1590
|
const data = await parseBody(output.body, context);
|
|
4210
1591
|
let contents = {};
|
|
4211
|
-
contents =
|
|
1592
|
+
contents = de_RegisterComputeOutput(data, context);
|
|
4212
1593
|
const response = {
|
|
4213
1594
|
$metadata: deserializeMetadata(output),
|
|
4214
1595
|
...contents,
|
|
4215
1596
|
};
|
|
4216
1597
|
return response;
|
|
4217
1598
|
};
|
|
4218
|
-
const
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
body: await parseErrorBody(output.body, context),
|
|
4222
|
-
};
|
|
4223
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4224
|
-
switch (errorCode) {
|
|
4225
|
-
case "InternalServiceException":
|
|
4226
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4227
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4228
|
-
case "InvalidRequestException":
|
|
4229
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4230
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4231
|
-
case "NotFoundException":
|
|
4232
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4233
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4234
|
-
case "UnsupportedRegionException":
|
|
4235
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
4236
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
4237
|
-
default:
|
|
4238
|
-
const parsedBody = parsedOutput.body;
|
|
4239
|
-
return throwDefaultError({
|
|
4240
|
-
output,
|
|
4241
|
-
parsedBody,
|
|
4242
|
-
errorCode,
|
|
4243
|
-
});
|
|
1599
|
+
export const de_RegisterGameServerCommand = async (output, context) => {
|
|
1600
|
+
if (output.statusCode >= 300) {
|
|
1601
|
+
return de_CommandError(output, context);
|
|
4244
1602
|
}
|
|
1603
|
+
const data = await parseBody(output.body, context);
|
|
1604
|
+
let contents = {};
|
|
1605
|
+
contents = de_RegisterGameServerOutput(data, context);
|
|
1606
|
+
const response = {
|
|
1607
|
+
$metadata: deserializeMetadata(output),
|
|
1608
|
+
...contents,
|
|
1609
|
+
};
|
|
1610
|
+
return response;
|
|
4245
1611
|
};
|
|
4246
|
-
export const
|
|
1612
|
+
export const de_RequestUploadCredentialsCommand = async (output, context) => {
|
|
4247
1613
|
if (output.statusCode >= 300) {
|
|
4248
|
-
return
|
|
1614
|
+
return de_CommandError(output, context);
|
|
4249
1615
|
}
|
|
4250
1616
|
const data = await parseBody(output.body, context);
|
|
4251
1617
|
let contents = {};
|
|
@@ -4256,81 +1622,48 @@ export const de_StopFleetActionsCommand = async (output, context) => {
|
|
|
4256
1622
|
};
|
|
4257
1623
|
return response;
|
|
4258
1624
|
};
|
|
4259
|
-
const
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
body: await parseErrorBody(output.body, context),
|
|
4263
|
-
};
|
|
4264
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4265
|
-
switch (errorCode) {
|
|
4266
|
-
case "InternalServiceException":
|
|
4267
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4268
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4269
|
-
case "InvalidRequestException":
|
|
4270
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4271
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4272
|
-
case "NotFoundException":
|
|
4273
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4274
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4275
|
-
case "UnauthorizedException":
|
|
4276
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4277
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4278
|
-
case "UnsupportedRegionException":
|
|
4279
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
4280
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
4281
|
-
default:
|
|
4282
|
-
const parsedBody = parsedOutput.body;
|
|
4283
|
-
return throwDefaultError({
|
|
4284
|
-
output,
|
|
4285
|
-
parsedBody,
|
|
4286
|
-
errorCode,
|
|
4287
|
-
});
|
|
1625
|
+
export const de_ResolveAliasCommand = async (output, context) => {
|
|
1626
|
+
if (output.statusCode >= 300) {
|
|
1627
|
+
return de_CommandError(output, context);
|
|
4288
1628
|
}
|
|
1629
|
+
const data = await parseBody(output.body, context);
|
|
1630
|
+
let contents = {};
|
|
1631
|
+
contents = _json(data);
|
|
1632
|
+
const response = {
|
|
1633
|
+
$metadata: deserializeMetadata(output),
|
|
1634
|
+
...contents,
|
|
1635
|
+
};
|
|
1636
|
+
return response;
|
|
4289
1637
|
};
|
|
4290
|
-
export const
|
|
1638
|
+
export const de_ResumeGameServerGroupCommand = async (output, context) => {
|
|
4291
1639
|
if (output.statusCode >= 300) {
|
|
4292
|
-
return
|
|
1640
|
+
return de_CommandError(output, context);
|
|
4293
1641
|
}
|
|
4294
1642
|
const data = await parseBody(output.body, context);
|
|
4295
1643
|
let contents = {};
|
|
4296
|
-
contents =
|
|
1644
|
+
contents = de_ResumeGameServerGroupOutput(data, context);
|
|
4297
1645
|
const response = {
|
|
4298
1646
|
$metadata: deserializeMetadata(output),
|
|
4299
1647
|
...contents,
|
|
4300
1648
|
};
|
|
4301
1649
|
return response;
|
|
4302
1650
|
};
|
|
4303
|
-
const
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
body: await parseErrorBody(output.body, context),
|
|
4307
|
-
};
|
|
4308
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4309
|
-
switch (errorCode) {
|
|
4310
|
-
case "InternalServiceException":
|
|
4311
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4312
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4313
|
-
case "InvalidRequestException":
|
|
4314
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4315
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4316
|
-
case "NotFoundException":
|
|
4317
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4318
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4319
|
-
case "UnauthorizedException":
|
|
4320
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4321
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4322
|
-
default:
|
|
4323
|
-
const parsedBody = parsedOutput.body;
|
|
4324
|
-
return throwDefaultError({
|
|
4325
|
-
output,
|
|
4326
|
-
parsedBody,
|
|
4327
|
-
errorCode,
|
|
4328
|
-
});
|
|
1651
|
+
export const de_SearchGameSessionsCommand = async (output, context) => {
|
|
1652
|
+
if (output.statusCode >= 300) {
|
|
1653
|
+
return de_CommandError(output, context);
|
|
4329
1654
|
}
|
|
1655
|
+
const data = await parseBody(output.body, context);
|
|
1656
|
+
let contents = {};
|
|
1657
|
+
contents = de_SearchGameSessionsOutput(data, context);
|
|
1658
|
+
const response = {
|
|
1659
|
+
$metadata: deserializeMetadata(output),
|
|
1660
|
+
...contents,
|
|
1661
|
+
};
|
|
1662
|
+
return response;
|
|
4330
1663
|
};
|
|
4331
|
-
export const
|
|
1664
|
+
export const de_StartFleetActionsCommand = async (output, context) => {
|
|
4332
1665
|
if (output.statusCode >= 300) {
|
|
4333
|
-
return
|
|
1666
|
+
return de_CommandError(output, context);
|
|
4334
1667
|
}
|
|
4335
1668
|
const data = await parseBody(output.body, context);
|
|
4336
1669
|
let contents = {};
|
|
@@ -4341,78 +1674,48 @@ export const de_StopMatchmakingCommand = async (output, context) => {
|
|
|
4341
1674
|
};
|
|
4342
1675
|
return response;
|
|
4343
1676
|
};
|
|
4344
|
-
const
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
body: await parseErrorBody(output.body, context),
|
|
4348
|
-
};
|
|
4349
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4350
|
-
switch (errorCode) {
|
|
4351
|
-
case "InternalServiceException":
|
|
4352
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4353
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4354
|
-
case "InvalidRequestException":
|
|
4355
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4356
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4357
|
-
case "NotFoundException":
|
|
4358
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4359
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4360
|
-
case "UnsupportedRegionException":
|
|
4361
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
4362
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
4363
|
-
default:
|
|
4364
|
-
const parsedBody = parsedOutput.body;
|
|
4365
|
-
return throwDefaultError({
|
|
4366
|
-
output,
|
|
4367
|
-
parsedBody,
|
|
4368
|
-
errorCode,
|
|
4369
|
-
});
|
|
1677
|
+
export const de_StartGameSessionPlacementCommand = async (output, context) => {
|
|
1678
|
+
if (output.statusCode >= 300) {
|
|
1679
|
+
return de_CommandError(output, context);
|
|
4370
1680
|
}
|
|
1681
|
+
const data = await parseBody(output.body, context);
|
|
1682
|
+
let contents = {};
|
|
1683
|
+
contents = de_StartGameSessionPlacementOutput(data, context);
|
|
1684
|
+
const response = {
|
|
1685
|
+
$metadata: deserializeMetadata(output),
|
|
1686
|
+
...contents,
|
|
1687
|
+
};
|
|
1688
|
+
return response;
|
|
4371
1689
|
};
|
|
4372
|
-
export const
|
|
1690
|
+
export const de_StartMatchBackfillCommand = async (output, context) => {
|
|
4373
1691
|
if (output.statusCode >= 300) {
|
|
4374
|
-
return
|
|
1692
|
+
return de_CommandError(output, context);
|
|
4375
1693
|
}
|
|
4376
1694
|
const data = await parseBody(output.body, context);
|
|
4377
1695
|
let contents = {};
|
|
4378
|
-
contents =
|
|
1696
|
+
contents = de_StartMatchBackfillOutput(data, context);
|
|
4379
1697
|
const response = {
|
|
4380
1698
|
$metadata: deserializeMetadata(output),
|
|
4381
1699
|
...contents,
|
|
4382
1700
|
};
|
|
4383
1701
|
return response;
|
|
4384
1702
|
};
|
|
4385
|
-
const
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
body: await parseErrorBody(output.body, context),
|
|
4389
|
-
};
|
|
4390
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4391
|
-
switch (errorCode) {
|
|
4392
|
-
case "InternalServiceException":
|
|
4393
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4394
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4395
|
-
case "InvalidRequestException":
|
|
4396
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4397
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4398
|
-
case "NotFoundException":
|
|
4399
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4400
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4401
|
-
case "UnauthorizedException":
|
|
4402
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4403
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4404
|
-
default:
|
|
4405
|
-
const parsedBody = parsedOutput.body;
|
|
4406
|
-
return throwDefaultError({
|
|
4407
|
-
output,
|
|
4408
|
-
parsedBody,
|
|
4409
|
-
errorCode,
|
|
4410
|
-
});
|
|
1703
|
+
export const de_StartMatchmakingCommand = async (output, context) => {
|
|
1704
|
+
if (output.statusCode >= 300) {
|
|
1705
|
+
return de_CommandError(output, context);
|
|
4411
1706
|
}
|
|
1707
|
+
const data = await parseBody(output.body, context);
|
|
1708
|
+
let contents = {};
|
|
1709
|
+
contents = de_StartMatchmakingOutput(data, context);
|
|
1710
|
+
const response = {
|
|
1711
|
+
$metadata: deserializeMetadata(output),
|
|
1712
|
+
...contents,
|
|
1713
|
+
};
|
|
1714
|
+
return response;
|
|
4412
1715
|
};
|
|
4413
|
-
export const
|
|
1716
|
+
export const de_StopFleetActionsCommand = async (output, context) => {
|
|
4414
1717
|
if (output.statusCode >= 300) {
|
|
4415
|
-
return
|
|
1718
|
+
return de_CommandError(output, context);
|
|
4416
1719
|
}
|
|
4417
1720
|
const data = await parseBody(output.body, context);
|
|
4418
1721
|
let contents = {};
|
|
@@ -4423,37 +1726,22 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
4423
1726
|
};
|
|
4424
1727
|
return response;
|
|
4425
1728
|
};
|
|
4426
|
-
const
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
body: await parseErrorBody(output.body, context),
|
|
4430
|
-
};
|
|
4431
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4432
|
-
switch (errorCode) {
|
|
4433
|
-
case "InternalServiceException":
|
|
4434
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4435
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4436
|
-
case "InvalidRequestException":
|
|
4437
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4438
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4439
|
-
case "NotFoundException":
|
|
4440
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4441
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4442
|
-
case "TaggingFailedException":
|
|
4443
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
4444
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
4445
|
-
default:
|
|
4446
|
-
const parsedBody = parsedOutput.body;
|
|
4447
|
-
return throwDefaultError({
|
|
4448
|
-
output,
|
|
4449
|
-
parsedBody,
|
|
4450
|
-
errorCode,
|
|
4451
|
-
});
|
|
1729
|
+
export const de_StopGameSessionPlacementCommand = async (output, context) => {
|
|
1730
|
+
if (output.statusCode >= 300) {
|
|
1731
|
+
return de_CommandError(output, context);
|
|
4452
1732
|
}
|
|
1733
|
+
const data = await parseBody(output.body, context);
|
|
1734
|
+
let contents = {};
|
|
1735
|
+
contents = de_StopGameSessionPlacementOutput(data, context);
|
|
1736
|
+
const response = {
|
|
1737
|
+
$metadata: deserializeMetadata(output),
|
|
1738
|
+
...contents,
|
|
1739
|
+
};
|
|
1740
|
+
return response;
|
|
4453
1741
|
};
|
|
4454
|
-
export const
|
|
1742
|
+
export const de_StopMatchmakingCommand = async (output, context) => {
|
|
4455
1743
|
if (output.statusCode >= 300) {
|
|
4456
|
-
return
|
|
1744
|
+
return de_CommandError(output, context);
|
|
4457
1745
|
}
|
|
4458
1746
|
const data = await parseBody(output.body, context);
|
|
4459
1747
|
let contents = {};
|
|
@@ -4464,119 +1752,35 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
4464
1752
|
};
|
|
4465
1753
|
return response;
|
|
4466
1754
|
};
|
|
4467
|
-
const
|
|
4468
|
-
const parsedOutput = {
|
|
4469
|
-
...output,
|
|
4470
|
-
body: await parseErrorBody(output.body, context),
|
|
4471
|
-
};
|
|
4472
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4473
|
-
switch (errorCode) {
|
|
4474
|
-
case "InternalServiceException":
|
|
4475
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4476
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4477
|
-
case "InvalidRequestException":
|
|
4478
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4479
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4480
|
-
case "NotFoundException":
|
|
4481
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4482
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4483
|
-
case "TaggingFailedException":
|
|
4484
|
-
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
4485
|
-
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
4486
|
-
default:
|
|
4487
|
-
const parsedBody = parsedOutput.body;
|
|
4488
|
-
return throwDefaultError({
|
|
4489
|
-
output,
|
|
4490
|
-
parsedBody,
|
|
4491
|
-
errorCode,
|
|
4492
|
-
});
|
|
4493
|
-
}
|
|
4494
|
-
};
|
|
4495
|
-
export const de_UpdateAliasCommand = async (output, context) => {
|
|
1755
|
+
export const de_SuspendGameServerGroupCommand = async (output, context) => {
|
|
4496
1756
|
if (output.statusCode >= 300) {
|
|
4497
|
-
return
|
|
1757
|
+
return de_CommandError(output, context);
|
|
4498
1758
|
}
|
|
4499
1759
|
const data = await parseBody(output.body, context);
|
|
4500
1760
|
let contents = {};
|
|
4501
|
-
contents =
|
|
1761
|
+
contents = de_SuspendGameServerGroupOutput(data, context);
|
|
4502
1762
|
const response = {
|
|
4503
1763
|
$metadata: deserializeMetadata(output),
|
|
4504
1764
|
...contents,
|
|
4505
1765
|
};
|
|
4506
1766
|
return response;
|
|
4507
1767
|
};
|
|
4508
|
-
const
|
|
4509
|
-
const parsedOutput = {
|
|
4510
|
-
...output,
|
|
4511
|
-
body: await parseErrorBody(output.body, context),
|
|
4512
|
-
};
|
|
4513
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4514
|
-
switch (errorCode) {
|
|
4515
|
-
case "InternalServiceException":
|
|
4516
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4517
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4518
|
-
case "InvalidRequestException":
|
|
4519
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4520
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4521
|
-
case "NotFoundException":
|
|
4522
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4523
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4524
|
-
case "UnauthorizedException":
|
|
4525
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4526
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4527
|
-
default:
|
|
4528
|
-
const parsedBody = parsedOutput.body;
|
|
4529
|
-
return throwDefaultError({
|
|
4530
|
-
output,
|
|
4531
|
-
parsedBody,
|
|
4532
|
-
errorCode,
|
|
4533
|
-
});
|
|
4534
|
-
}
|
|
4535
|
-
};
|
|
4536
|
-
export const de_UpdateBuildCommand = async (output, context) => {
|
|
1768
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
4537
1769
|
if (output.statusCode >= 300) {
|
|
4538
|
-
return
|
|
1770
|
+
return de_CommandError(output, context);
|
|
4539
1771
|
}
|
|
4540
1772
|
const data = await parseBody(output.body, context);
|
|
4541
1773
|
let contents = {};
|
|
4542
|
-
contents =
|
|
1774
|
+
contents = _json(data);
|
|
4543
1775
|
const response = {
|
|
4544
1776
|
$metadata: deserializeMetadata(output),
|
|
4545
1777
|
...contents,
|
|
4546
1778
|
};
|
|
4547
1779
|
return response;
|
|
4548
1780
|
};
|
|
4549
|
-
const
|
|
4550
|
-
const parsedOutput = {
|
|
4551
|
-
...output,
|
|
4552
|
-
body: await parseErrorBody(output.body, context),
|
|
4553
|
-
};
|
|
4554
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4555
|
-
switch (errorCode) {
|
|
4556
|
-
case "InternalServiceException":
|
|
4557
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4558
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4559
|
-
case "InvalidRequestException":
|
|
4560
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4561
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4562
|
-
case "NotFoundException":
|
|
4563
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4564
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4565
|
-
case "UnauthorizedException":
|
|
4566
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4567
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4568
|
-
default:
|
|
4569
|
-
const parsedBody = parsedOutput.body;
|
|
4570
|
-
return throwDefaultError({
|
|
4571
|
-
output,
|
|
4572
|
-
parsedBody,
|
|
4573
|
-
errorCode,
|
|
4574
|
-
});
|
|
4575
|
-
}
|
|
4576
|
-
};
|
|
4577
|
-
export const de_UpdateFleetAttributesCommand = async (output, context) => {
|
|
1781
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
4578
1782
|
if (output.statusCode >= 300) {
|
|
4579
|
-
return
|
|
1783
|
+
return de_CommandError(output, context);
|
|
4580
1784
|
}
|
|
4581
1785
|
const data = await parseBody(output.body, context);
|
|
4582
1786
|
let contents = {};
|
|
@@ -4587,99 +1791,35 @@ export const de_UpdateFleetAttributesCommand = async (output, context) => {
|
|
|
4587
1791
|
};
|
|
4588
1792
|
return response;
|
|
4589
1793
|
};
|
|
4590
|
-
const
|
|
4591
|
-
const parsedOutput = {
|
|
4592
|
-
...output,
|
|
4593
|
-
body: await parseErrorBody(output.body, context),
|
|
4594
|
-
};
|
|
4595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4596
|
-
switch (errorCode) {
|
|
4597
|
-
case "ConflictException":
|
|
4598
|
-
case "com.amazonaws.gamelift#ConflictException":
|
|
4599
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4600
|
-
case "InternalServiceException":
|
|
4601
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4602
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4603
|
-
case "InvalidFleetStatusException":
|
|
4604
|
-
case "com.amazonaws.gamelift#InvalidFleetStatusException":
|
|
4605
|
-
throw await de_InvalidFleetStatusExceptionRes(parsedOutput, context);
|
|
4606
|
-
case "InvalidRequestException":
|
|
4607
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4608
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4609
|
-
case "LimitExceededException":
|
|
4610
|
-
case "com.amazonaws.gamelift#LimitExceededException":
|
|
4611
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4612
|
-
case "NotFoundException":
|
|
4613
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4614
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4615
|
-
case "UnauthorizedException":
|
|
4616
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4617
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4618
|
-
default:
|
|
4619
|
-
const parsedBody = parsedOutput.body;
|
|
4620
|
-
return throwDefaultError({
|
|
4621
|
-
output,
|
|
4622
|
-
parsedBody,
|
|
4623
|
-
errorCode,
|
|
4624
|
-
});
|
|
4625
|
-
}
|
|
4626
|
-
};
|
|
4627
|
-
export const de_UpdateFleetCapacityCommand = async (output, context) => {
|
|
1794
|
+
export const de_UpdateAliasCommand = async (output, context) => {
|
|
4628
1795
|
if (output.statusCode >= 300) {
|
|
4629
|
-
return
|
|
1796
|
+
return de_CommandError(output, context);
|
|
4630
1797
|
}
|
|
4631
1798
|
const data = await parseBody(output.body, context);
|
|
4632
1799
|
let contents = {};
|
|
4633
|
-
contents =
|
|
1800
|
+
contents = de_UpdateAliasOutput(data, context);
|
|
4634
1801
|
const response = {
|
|
4635
1802
|
$metadata: deserializeMetadata(output),
|
|
4636
1803
|
...contents,
|
|
4637
1804
|
};
|
|
4638
1805
|
return response;
|
|
4639
1806
|
};
|
|
4640
|
-
const
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
body: await parseErrorBody(output.body, context),
|
|
4644
|
-
};
|
|
4645
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4646
|
-
switch (errorCode) {
|
|
4647
|
-
case "ConflictException":
|
|
4648
|
-
case "com.amazonaws.gamelift#ConflictException":
|
|
4649
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4650
|
-
case "InternalServiceException":
|
|
4651
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4652
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4653
|
-
case "InvalidFleetStatusException":
|
|
4654
|
-
case "com.amazonaws.gamelift#InvalidFleetStatusException":
|
|
4655
|
-
throw await de_InvalidFleetStatusExceptionRes(parsedOutput, context);
|
|
4656
|
-
case "InvalidRequestException":
|
|
4657
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4658
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4659
|
-
case "LimitExceededException":
|
|
4660
|
-
case "com.amazonaws.gamelift#LimitExceededException":
|
|
4661
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4662
|
-
case "NotFoundException":
|
|
4663
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4664
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4665
|
-
case "UnauthorizedException":
|
|
4666
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4667
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4668
|
-
case "UnsupportedRegionException":
|
|
4669
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
4670
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
4671
|
-
default:
|
|
4672
|
-
const parsedBody = parsedOutput.body;
|
|
4673
|
-
return throwDefaultError({
|
|
4674
|
-
output,
|
|
4675
|
-
parsedBody,
|
|
4676
|
-
errorCode,
|
|
4677
|
-
});
|
|
1807
|
+
export const de_UpdateBuildCommand = async (output, context) => {
|
|
1808
|
+
if (output.statusCode >= 300) {
|
|
1809
|
+
return de_CommandError(output, context);
|
|
4678
1810
|
}
|
|
1811
|
+
const data = await parseBody(output.body, context);
|
|
1812
|
+
let contents = {};
|
|
1813
|
+
contents = de_UpdateBuildOutput(data, context);
|
|
1814
|
+
const response = {
|
|
1815
|
+
$metadata: deserializeMetadata(output),
|
|
1816
|
+
...contents,
|
|
1817
|
+
};
|
|
1818
|
+
return response;
|
|
4679
1819
|
};
|
|
4680
|
-
export const
|
|
1820
|
+
export const de_UpdateFleetAttributesCommand = async (output, context) => {
|
|
4681
1821
|
if (output.statusCode >= 300) {
|
|
4682
|
-
return
|
|
1822
|
+
return de_CommandError(output, context);
|
|
4683
1823
|
}
|
|
4684
1824
|
const data = await parseBody(output.body, context);
|
|
4685
1825
|
let contents = {};
|
|
@@ -4690,87 +1830,48 @@ export const de_UpdateFleetPortSettingsCommand = async (output, context) => {
|
|
|
4690
1830
|
};
|
|
4691
1831
|
return response;
|
|
4692
1832
|
};
|
|
4693
|
-
const
|
|
4694
|
-
const parsedOutput = {
|
|
4695
|
-
...output,
|
|
4696
|
-
body: await parseErrorBody(output.body, context),
|
|
4697
|
-
};
|
|
4698
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4699
|
-
switch (errorCode) {
|
|
4700
|
-
case "ConflictException":
|
|
4701
|
-
case "com.amazonaws.gamelift#ConflictException":
|
|
4702
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4703
|
-
case "InternalServiceException":
|
|
4704
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4705
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4706
|
-
case "InvalidFleetStatusException":
|
|
4707
|
-
case "com.amazonaws.gamelift#InvalidFleetStatusException":
|
|
4708
|
-
throw await de_InvalidFleetStatusExceptionRes(parsedOutput, context);
|
|
4709
|
-
case "InvalidRequestException":
|
|
4710
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4711
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4712
|
-
case "LimitExceededException":
|
|
4713
|
-
case "com.amazonaws.gamelift#LimitExceededException":
|
|
4714
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4715
|
-
case "NotFoundException":
|
|
4716
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4717
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4718
|
-
case "UnauthorizedException":
|
|
4719
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4720
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4721
|
-
default:
|
|
4722
|
-
const parsedBody = parsedOutput.body;
|
|
4723
|
-
return throwDefaultError({
|
|
4724
|
-
output,
|
|
4725
|
-
parsedBody,
|
|
4726
|
-
errorCode,
|
|
4727
|
-
});
|
|
4728
|
-
}
|
|
4729
|
-
};
|
|
4730
|
-
export const de_UpdateGameServerCommand = async (output, context) => {
|
|
1833
|
+
export const de_UpdateFleetCapacityCommand = async (output, context) => {
|
|
4731
1834
|
if (output.statusCode >= 300) {
|
|
4732
|
-
return
|
|
1835
|
+
return de_CommandError(output, context);
|
|
4733
1836
|
}
|
|
4734
1837
|
const data = await parseBody(output.body, context);
|
|
4735
1838
|
let contents = {};
|
|
4736
|
-
contents =
|
|
1839
|
+
contents = _json(data);
|
|
4737
1840
|
const response = {
|
|
4738
1841
|
$metadata: deserializeMetadata(output),
|
|
4739
1842
|
...contents,
|
|
4740
1843
|
};
|
|
4741
1844
|
return response;
|
|
4742
1845
|
};
|
|
4743
|
-
const
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
1846
|
+
export const de_UpdateFleetPortSettingsCommand = async (output, context) => {
|
|
1847
|
+
if (output.statusCode >= 300) {
|
|
1848
|
+
return de_CommandError(output, context);
|
|
1849
|
+
}
|
|
1850
|
+
const data = await parseBody(output.body, context);
|
|
1851
|
+
let contents = {};
|
|
1852
|
+
contents = _json(data);
|
|
1853
|
+
const response = {
|
|
1854
|
+
$metadata: deserializeMetadata(output),
|
|
1855
|
+
...contents,
|
|
4747
1856
|
};
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
case "InvalidRequestException":
|
|
4754
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4755
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4756
|
-
case "NotFoundException":
|
|
4757
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4758
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4759
|
-
case "UnauthorizedException":
|
|
4760
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4761
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4762
|
-
default:
|
|
4763
|
-
const parsedBody = parsedOutput.body;
|
|
4764
|
-
return throwDefaultError({
|
|
4765
|
-
output,
|
|
4766
|
-
parsedBody,
|
|
4767
|
-
errorCode,
|
|
4768
|
-
});
|
|
1857
|
+
return response;
|
|
1858
|
+
};
|
|
1859
|
+
export const de_UpdateGameServerCommand = async (output, context) => {
|
|
1860
|
+
if (output.statusCode >= 300) {
|
|
1861
|
+
return de_CommandError(output, context);
|
|
4769
1862
|
}
|
|
1863
|
+
const data = await parseBody(output.body, context);
|
|
1864
|
+
let contents = {};
|
|
1865
|
+
contents = de_UpdateGameServerOutput(data, context);
|
|
1866
|
+
const response = {
|
|
1867
|
+
$metadata: deserializeMetadata(output),
|
|
1868
|
+
...contents,
|
|
1869
|
+
};
|
|
1870
|
+
return response;
|
|
4770
1871
|
};
|
|
4771
1872
|
export const de_UpdateGameServerGroupCommand = async (output, context) => {
|
|
4772
1873
|
if (output.statusCode >= 300) {
|
|
4773
|
-
return
|
|
1874
|
+
return de_CommandError(output, context);
|
|
4774
1875
|
}
|
|
4775
1876
|
const data = await parseBody(output.body, context);
|
|
4776
1877
|
let contents = {};
|
|
@@ -4781,37 +1882,9 @@ export const de_UpdateGameServerGroupCommand = async (output, context) => {
|
|
|
4781
1882
|
};
|
|
4782
1883
|
return response;
|
|
4783
1884
|
};
|
|
4784
|
-
const de_UpdateGameServerGroupCommandError = async (output, context) => {
|
|
4785
|
-
const parsedOutput = {
|
|
4786
|
-
...output,
|
|
4787
|
-
body: await parseErrorBody(output.body, context),
|
|
4788
|
-
};
|
|
4789
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4790
|
-
switch (errorCode) {
|
|
4791
|
-
case "InternalServiceException":
|
|
4792
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4793
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4794
|
-
case "InvalidRequestException":
|
|
4795
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4796
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4797
|
-
case "NotFoundException":
|
|
4798
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4799
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4800
|
-
case "UnauthorizedException":
|
|
4801
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4802
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4803
|
-
default:
|
|
4804
|
-
const parsedBody = parsedOutput.body;
|
|
4805
|
-
return throwDefaultError({
|
|
4806
|
-
output,
|
|
4807
|
-
parsedBody,
|
|
4808
|
-
errorCode,
|
|
4809
|
-
});
|
|
4810
|
-
}
|
|
4811
|
-
};
|
|
4812
1885
|
export const de_UpdateGameSessionCommand = async (output, context) => {
|
|
4813
1886
|
if (output.statusCode >= 300) {
|
|
4814
|
-
return
|
|
1887
|
+
return de_CommandError(output, context);
|
|
4815
1888
|
}
|
|
4816
1889
|
const data = await parseBody(output.body, context);
|
|
4817
1890
|
let contents = {};
|
|
@@ -4822,43 +1895,9 @@ export const de_UpdateGameSessionCommand = async (output, context) => {
|
|
|
4822
1895
|
};
|
|
4823
1896
|
return response;
|
|
4824
1897
|
};
|
|
4825
|
-
const de_UpdateGameSessionCommandError = async (output, context) => {
|
|
4826
|
-
const parsedOutput = {
|
|
4827
|
-
...output,
|
|
4828
|
-
body: await parseErrorBody(output.body, context),
|
|
4829
|
-
};
|
|
4830
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4831
|
-
switch (errorCode) {
|
|
4832
|
-
case "ConflictException":
|
|
4833
|
-
case "com.amazonaws.gamelift#ConflictException":
|
|
4834
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4835
|
-
case "InternalServiceException":
|
|
4836
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4837
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4838
|
-
case "InvalidGameSessionStatusException":
|
|
4839
|
-
case "com.amazonaws.gamelift#InvalidGameSessionStatusException":
|
|
4840
|
-
throw await de_InvalidGameSessionStatusExceptionRes(parsedOutput, context);
|
|
4841
|
-
case "InvalidRequestException":
|
|
4842
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4843
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4844
|
-
case "NotFoundException":
|
|
4845
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4846
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4847
|
-
case "UnauthorizedException":
|
|
4848
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4849
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4850
|
-
default:
|
|
4851
|
-
const parsedBody = parsedOutput.body;
|
|
4852
|
-
return throwDefaultError({
|
|
4853
|
-
output,
|
|
4854
|
-
parsedBody,
|
|
4855
|
-
errorCode,
|
|
4856
|
-
});
|
|
4857
|
-
}
|
|
4858
|
-
};
|
|
4859
1898
|
export const de_UpdateGameSessionQueueCommand = async (output, context) => {
|
|
4860
1899
|
if (output.statusCode >= 300) {
|
|
4861
|
-
return
|
|
1900
|
+
return de_CommandError(output, context);
|
|
4862
1901
|
}
|
|
4863
1902
|
const data = await parseBody(output.body, context);
|
|
4864
1903
|
let contents = {};
|
|
@@ -4869,37 +1908,9 @@ export const de_UpdateGameSessionQueueCommand = async (output, context) => {
|
|
|
4869
1908
|
};
|
|
4870
1909
|
return response;
|
|
4871
1910
|
};
|
|
4872
|
-
const de_UpdateGameSessionQueueCommandError = async (output, context) => {
|
|
4873
|
-
const parsedOutput = {
|
|
4874
|
-
...output,
|
|
4875
|
-
body: await parseErrorBody(output.body, context),
|
|
4876
|
-
};
|
|
4877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4878
|
-
switch (errorCode) {
|
|
4879
|
-
case "InternalServiceException":
|
|
4880
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4881
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4882
|
-
case "InvalidRequestException":
|
|
4883
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4884
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4885
|
-
case "NotFoundException":
|
|
4886
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4887
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4888
|
-
case "UnauthorizedException":
|
|
4889
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4890
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4891
|
-
default:
|
|
4892
|
-
const parsedBody = parsedOutput.body;
|
|
4893
|
-
return throwDefaultError({
|
|
4894
|
-
output,
|
|
4895
|
-
parsedBody,
|
|
4896
|
-
errorCode,
|
|
4897
|
-
});
|
|
4898
|
-
}
|
|
4899
|
-
};
|
|
4900
1911
|
export const de_UpdateMatchmakingConfigurationCommand = async (output, context) => {
|
|
4901
1912
|
if (output.statusCode >= 300) {
|
|
4902
|
-
return
|
|
1913
|
+
return de_CommandError(output, context);
|
|
4903
1914
|
}
|
|
4904
1915
|
const data = await parseBody(output.body, context);
|
|
4905
1916
|
let contents = {};
|
|
@@ -4910,37 +1921,9 @@ export const de_UpdateMatchmakingConfigurationCommand = async (output, context)
|
|
|
4910
1921
|
};
|
|
4911
1922
|
return response;
|
|
4912
1923
|
};
|
|
4913
|
-
const de_UpdateMatchmakingConfigurationCommandError = async (output, context) => {
|
|
4914
|
-
const parsedOutput = {
|
|
4915
|
-
...output,
|
|
4916
|
-
body: await parseErrorBody(output.body, context),
|
|
4917
|
-
};
|
|
4918
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4919
|
-
switch (errorCode) {
|
|
4920
|
-
case "InternalServiceException":
|
|
4921
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4922
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4923
|
-
case "InvalidRequestException":
|
|
4924
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4925
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4926
|
-
case "NotFoundException":
|
|
4927
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4928
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4929
|
-
case "UnsupportedRegionException":
|
|
4930
|
-
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
4931
|
-
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
4932
|
-
default:
|
|
4933
|
-
const parsedBody = parsedOutput.body;
|
|
4934
|
-
return throwDefaultError({
|
|
4935
|
-
output,
|
|
4936
|
-
parsedBody,
|
|
4937
|
-
errorCode,
|
|
4938
|
-
});
|
|
4939
|
-
}
|
|
4940
|
-
};
|
|
4941
1924
|
export const de_UpdateRuntimeConfigurationCommand = async (output, context) => {
|
|
4942
1925
|
if (output.statusCode >= 300) {
|
|
4943
|
-
return
|
|
1926
|
+
return de_CommandError(output, context);
|
|
4944
1927
|
}
|
|
4945
1928
|
const data = await parseBody(output.body, context);
|
|
4946
1929
|
let contents = {};
|
|
@@ -4951,40 +1934,9 @@ export const de_UpdateRuntimeConfigurationCommand = async (output, context) => {
|
|
|
4951
1934
|
};
|
|
4952
1935
|
return response;
|
|
4953
1936
|
};
|
|
4954
|
-
const de_UpdateRuntimeConfigurationCommandError = async (output, context) => {
|
|
4955
|
-
const parsedOutput = {
|
|
4956
|
-
...output,
|
|
4957
|
-
body: await parseErrorBody(output.body, context),
|
|
4958
|
-
};
|
|
4959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4960
|
-
switch (errorCode) {
|
|
4961
|
-
case "InternalServiceException":
|
|
4962
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
4963
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
4964
|
-
case "InvalidFleetStatusException":
|
|
4965
|
-
case "com.amazonaws.gamelift#InvalidFleetStatusException":
|
|
4966
|
-
throw await de_InvalidFleetStatusExceptionRes(parsedOutput, context);
|
|
4967
|
-
case "InvalidRequestException":
|
|
4968
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
4969
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4970
|
-
case "NotFoundException":
|
|
4971
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
4972
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4973
|
-
case "UnauthorizedException":
|
|
4974
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
4975
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
4976
|
-
default:
|
|
4977
|
-
const parsedBody = parsedOutput.body;
|
|
4978
|
-
return throwDefaultError({
|
|
4979
|
-
output,
|
|
4980
|
-
parsedBody,
|
|
4981
|
-
errorCode,
|
|
4982
|
-
});
|
|
4983
|
-
}
|
|
4984
|
-
};
|
|
4985
1937
|
export const de_UpdateScriptCommand = async (output, context) => {
|
|
4986
1938
|
if (output.statusCode >= 300) {
|
|
4987
|
-
return
|
|
1939
|
+
return de_CommandError(output, context);
|
|
4988
1940
|
}
|
|
4989
1941
|
const data = await parseBody(output.body, context);
|
|
4990
1942
|
let contents = {};
|
|
@@ -4995,37 +1947,9 @@ export const de_UpdateScriptCommand = async (output, context) => {
|
|
|
4995
1947
|
};
|
|
4996
1948
|
return response;
|
|
4997
1949
|
};
|
|
4998
|
-
const de_UpdateScriptCommandError = async (output, context) => {
|
|
4999
|
-
const parsedOutput = {
|
|
5000
|
-
...output,
|
|
5001
|
-
body: await parseErrorBody(output.body, context),
|
|
5002
|
-
};
|
|
5003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5004
|
-
switch (errorCode) {
|
|
5005
|
-
case "InternalServiceException":
|
|
5006
|
-
case "com.amazonaws.gamelift#InternalServiceException":
|
|
5007
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
5008
|
-
case "InvalidRequestException":
|
|
5009
|
-
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
5010
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5011
|
-
case "NotFoundException":
|
|
5012
|
-
case "com.amazonaws.gamelift#NotFoundException":
|
|
5013
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5014
|
-
case "UnauthorizedException":
|
|
5015
|
-
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
5016
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
5017
|
-
default:
|
|
5018
|
-
const parsedBody = parsedOutput.body;
|
|
5019
|
-
return throwDefaultError({
|
|
5020
|
-
output,
|
|
5021
|
-
parsedBody,
|
|
5022
|
-
errorCode,
|
|
5023
|
-
});
|
|
5024
|
-
}
|
|
5025
|
-
};
|
|
5026
1950
|
export const de_ValidateMatchmakingRuleSetCommand = async (output, context) => {
|
|
5027
1951
|
if (output.statusCode >= 300) {
|
|
5028
|
-
return
|
|
1952
|
+
return de_CommandError(output, context);
|
|
5029
1953
|
}
|
|
5030
1954
|
const data = await parseBody(output.body, context);
|
|
5031
1955
|
let contents = {};
|
|
@@ -5036,7 +1960,7 @@ export const de_ValidateMatchmakingRuleSetCommand = async (output, context) => {
|
|
|
5036
1960
|
};
|
|
5037
1961
|
return response;
|
|
5038
1962
|
};
|
|
5039
|
-
const
|
|
1963
|
+
const de_CommandError = async (output, context) => {
|
|
5040
1964
|
const parsedOutput = {
|
|
5041
1965
|
...output,
|
|
5042
1966
|
body: await parseErrorBody(output.body, context),
|
|
@@ -5049,9 +1973,45 @@ const de_ValidateMatchmakingRuleSetCommandError = async (output, context) => {
|
|
|
5049
1973
|
case "InvalidRequestException":
|
|
5050
1974
|
case "com.amazonaws.gamelift#InvalidRequestException":
|
|
5051
1975
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1976
|
+
case "NotFoundException":
|
|
1977
|
+
case "com.amazonaws.gamelift#NotFoundException":
|
|
1978
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
5052
1979
|
case "UnsupportedRegionException":
|
|
5053
1980
|
case "com.amazonaws.gamelift#UnsupportedRegionException":
|
|
5054
1981
|
throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
|
|
1982
|
+
case "ConflictException":
|
|
1983
|
+
case "com.amazonaws.gamelift#ConflictException":
|
|
1984
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1985
|
+
case "OutOfCapacityException":
|
|
1986
|
+
case "com.amazonaws.gamelift#OutOfCapacityException":
|
|
1987
|
+
throw await de_OutOfCapacityExceptionRes(parsedOutput, context);
|
|
1988
|
+
case "UnauthorizedException":
|
|
1989
|
+
case "com.amazonaws.gamelift#UnauthorizedException":
|
|
1990
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1991
|
+
case "LimitExceededException":
|
|
1992
|
+
case "com.amazonaws.gamelift#LimitExceededException":
|
|
1993
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1994
|
+
case "TaggingFailedException":
|
|
1995
|
+
case "com.amazonaws.gamelift#TaggingFailedException":
|
|
1996
|
+
throw await de_TaggingFailedExceptionRes(parsedOutput, context);
|
|
1997
|
+
case "InvalidFleetStatusException":
|
|
1998
|
+
case "com.amazonaws.gamelift#InvalidFleetStatusException":
|
|
1999
|
+
throw await de_InvalidFleetStatusExceptionRes(parsedOutput, context);
|
|
2000
|
+
case "FleetCapacityExceededException":
|
|
2001
|
+
case "com.amazonaws.gamelift#FleetCapacityExceededException":
|
|
2002
|
+
throw await de_FleetCapacityExceededExceptionRes(parsedOutput, context);
|
|
2003
|
+
case "IdempotentParameterMismatchException":
|
|
2004
|
+
case "com.amazonaws.gamelift#IdempotentParameterMismatchException":
|
|
2005
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2006
|
+
case "TerminalRoutingStrategyException":
|
|
2007
|
+
case "com.amazonaws.gamelift#TerminalRoutingStrategyException":
|
|
2008
|
+
throw await de_TerminalRoutingStrategyExceptionRes(parsedOutput, context);
|
|
2009
|
+
case "GameSessionFullException":
|
|
2010
|
+
case "com.amazonaws.gamelift#GameSessionFullException":
|
|
2011
|
+
throw await de_GameSessionFullExceptionRes(parsedOutput, context);
|
|
2012
|
+
case "InvalidGameSessionStatusException":
|
|
2013
|
+
case "com.amazonaws.gamelift#InvalidGameSessionStatusException":
|
|
2014
|
+
throw await de_InvalidGameSessionStatusExceptionRes(parsedOutput, context);
|
|
5055
2015
|
default:
|
|
5056
2016
|
const parsedBody = parsedOutput.body;
|
|
5057
2017
|
return throwDefaultError({
|