@aws-sdk/client-codedeploy 3.141.0 → 3.142.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +237 -462
- package/dist-es/protocols/Aws_json1_1.js +377 -463
- package/package.json +6 -6
|
@@ -492,7 +492,6 @@ const deserializeAws_json1_1AddTagsToOnPremisesInstancesCommandError = async (ou
|
|
|
492
492
|
...output,
|
|
493
493
|
body: await parseBody(output.body, context),
|
|
494
494
|
};
|
|
495
|
-
let response;
|
|
496
495
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
497
496
|
switch (errorCode) {
|
|
498
497
|
case "InstanceLimitExceededException":
|
|
@@ -518,14 +517,12 @@ const deserializeAws_json1_1AddTagsToOnPremisesInstancesCommandError = async (ou
|
|
|
518
517
|
throw await deserializeAws_json1_1TagRequiredExceptionResponse(parsedOutput, context);
|
|
519
518
|
default:
|
|
520
519
|
const parsedBody = parsedOutput.body;
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
$metadata,
|
|
520
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
521
|
+
output,
|
|
522
|
+
parsedBody,
|
|
523
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
524
|
+
errorCode,
|
|
527
525
|
});
|
|
528
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
529
526
|
}
|
|
530
527
|
};
|
|
531
528
|
const deserializeAws_json1_1BatchGetApplicationRevisionsCommand = async (output, context) => {
|
|
@@ -547,7 +544,6 @@ const deserializeAws_json1_1BatchGetApplicationRevisionsCommandError = async (ou
|
|
|
547
544
|
...output,
|
|
548
545
|
body: await parseBody(output.body, context),
|
|
549
546
|
};
|
|
550
|
-
let response;
|
|
551
547
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
552
548
|
switch (errorCode) {
|
|
553
549
|
case "ApplicationDoesNotExistException":
|
|
@@ -570,14 +566,12 @@ const deserializeAws_json1_1BatchGetApplicationRevisionsCommandError = async (ou
|
|
|
570
566
|
throw await deserializeAws_json1_1RevisionRequiredExceptionResponse(parsedOutput, context);
|
|
571
567
|
default:
|
|
572
568
|
const parsedBody = parsedOutput.body;
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
$metadata,
|
|
569
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
570
|
+
output,
|
|
571
|
+
parsedBody,
|
|
572
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
573
|
+
errorCode,
|
|
579
574
|
});
|
|
580
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
581
575
|
}
|
|
582
576
|
};
|
|
583
577
|
const deserializeAws_json1_1BatchGetApplicationsCommand = async (output, context) => {
|
|
@@ -599,7 +593,6 @@ const deserializeAws_json1_1BatchGetApplicationsCommandError = async (output, co
|
|
|
599
593
|
...output,
|
|
600
594
|
body: await parseBody(output.body, context),
|
|
601
595
|
};
|
|
602
|
-
let response;
|
|
603
596
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
604
597
|
switch (errorCode) {
|
|
605
598
|
case "ApplicationDoesNotExistException":
|
|
@@ -616,14 +609,12 @@ const deserializeAws_json1_1BatchGetApplicationsCommandError = async (output, co
|
|
|
616
609
|
throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context);
|
|
617
610
|
default:
|
|
618
611
|
const parsedBody = parsedOutput.body;
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
$metadata,
|
|
612
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
613
|
+
output,
|
|
614
|
+
parsedBody,
|
|
615
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
616
|
+
errorCode,
|
|
625
617
|
});
|
|
626
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
627
618
|
}
|
|
628
619
|
};
|
|
629
620
|
const deserializeAws_json1_1BatchGetDeploymentGroupsCommand = async (output, context) => {
|
|
@@ -645,7 +636,6 @@ const deserializeAws_json1_1BatchGetDeploymentGroupsCommandError = async (output
|
|
|
645
636
|
...output,
|
|
646
637
|
body: await parseBody(output.body, context),
|
|
647
638
|
};
|
|
648
|
-
let response;
|
|
649
639
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
650
640
|
switch (errorCode) {
|
|
651
641
|
case "ApplicationDoesNotExistException":
|
|
@@ -671,14 +661,12 @@ const deserializeAws_json1_1BatchGetDeploymentGroupsCommandError = async (output
|
|
|
671
661
|
throw await deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse(parsedOutput, context);
|
|
672
662
|
default:
|
|
673
663
|
const parsedBody = parsedOutput.body;
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
$metadata,
|
|
664
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
665
|
+
output,
|
|
666
|
+
parsedBody,
|
|
667
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
668
|
+
errorCode,
|
|
680
669
|
});
|
|
681
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
682
670
|
}
|
|
683
671
|
};
|
|
684
672
|
const deserializeAws_json1_1BatchGetDeploymentInstancesCommand = async (output, context) => {
|
|
@@ -700,7 +688,6 @@ const deserializeAws_json1_1BatchGetDeploymentInstancesCommandError = async (out
|
|
|
700
688
|
...output,
|
|
701
689
|
body: await parseBody(output.body, context),
|
|
702
690
|
};
|
|
703
|
-
let response;
|
|
704
691
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
705
692
|
switch (errorCode) {
|
|
706
693
|
case "BatchLimitExceededException":
|
|
@@ -726,14 +713,12 @@ const deserializeAws_json1_1BatchGetDeploymentInstancesCommandError = async (out
|
|
|
726
713
|
throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context);
|
|
727
714
|
default:
|
|
728
715
|
const parsedBody = parsedOutput.body;
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
$metadata,
|
|
716
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
717
|
+
output,
|
|
718
|
+
parsedBody,
|
|
719
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
720
|
+
errorCode,
|
|
735
721
|
});
|
|
736
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
737
722
|
}
|
|
738
723
|
};
|
|
739
724
|
const deserializeAws_json1_1BatchGetDeploymentsCommand = async (output, context) => {
|
|
@@ -755,7 +740,6 @@ const deserializeAws_json1_1BatchGetDeploymentsCommandError = async (output, con
|
|
|
755
740
|
...output,
|
|
756
741
|
body: await parseBody(output.body, context),
|
|
757
742
|
};
|
|
758
|
-
let response;
|
|
759
743
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
760
744
|
switch (errorCode) {
|
|
761
745
|
case "BatchLimitExceededException":
|
|
@@ -769,14 +753,12 @@ const deserializeAws_json1_1BatchGetDeploymentsCommandError = async (output, con
|
|
|
769
753
|
throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context);
|
|
770
754
|
default:
|
|
771
755
|
const parsedBody = parsedOutput.body;
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
$metadata,
|
|
756
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
757
|
+
output,
|
|
758
|
+
parsedBody,
|
|
759
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
760
|
+
errorCode,
|
|
778
761
|
});
|
|
779
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
780
762
|
}
|
|
781
763
|
};
|
|
782
764
|
const deserializeAws_json1_1BatchGetDeploymentTargetsCommand = async (output, context) => {
|
|
@@ -798,7 +780,6 @@ const deserializeAws_json1_1BatchGetDeploymentTargetsCommandError = async (outpu
|
|
|
798
780
|
...output,
|
|
799
781
|
body: await parseBody(output.body, context),
|
|
800
782
|
};
|
|
801
|
-
let response;
|
|
802
783
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
803
784
|
switch (errorCode) {
|
|
804
785
|
case "DeploymentDoesNotExistException":
|
|
@@ -830,14 +811,12 @@ const deserializeAws_json1_1BatchGetDeploymentTargetsCommandError = async (outpu
|
|
|
830
811
|
throw await deserializeAws_json1_1InvalidDeploymentTargetIdExceptionResponse(parsedOutput, context);
|
|
831
812
|
default:
|
|
832
813
|
const parsedBody = parsedOutput.body;
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
$metadata,
|
|
814
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
815
|
+
output,
|
|
816
|
+
parsedBody,
|
|
817
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
818
|
+
errorCode,
|
|
839
819
|
});
|
|
840
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
841
820
|
}
|
|
842
821
|
};
|
|
843
822
|
const deserializeAws_json1_1BatchGetOnPremisesInstancesCommand = async (output, context) => {
|
|
@@ -859,7 +838,6 @@ const deserializeAws_json1_1BatchGetOnPremisesInstancesCommandError = async (out
|
|
|
859
838
|
...output,
|
|
860
839
|
body: await parseBody(output.body, context),
|
|
861
840
|
};
|
|
862
|
-
let response;
|
|
863
841
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
864
842
|
switch (errorCode) {
|
|
865
843
|
case "BatchLimitExceededException":
|
|
@@ -873,14 +851,12 @@ const deserializeAws_json1_1BatchGetOnPremisesInstancesCommandError = async (out
|
|
|
873
851
|
throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context);
|
|
874
852
|
default:
|
|
875
853
|
const parsedBody = parsedOutput.body;
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
$metadata,
|
|
854
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
855
|
+
output,
|
|
856
|
+
parsedBody,
|
|
857
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
858
|
+
errorCode,
|
|
882
859
|
});
|
|
883
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
884
860
|
}
|
|
885
861
|
};
|
|
886
862
|
const deserializeAws_json1_1ContinueDeploymentCommand = async (output, context) => {
|
|
@@ -899,7 +875,6 @@ const deserializeAws_json1_1ContinueDeploymentCommandError = async (output, cont
|
|
|
899
875
|
...output,
|
|
900
876
|
body: await parseBody(output.body, context),
|
|
901
877
|
};
|
|
902
|
-
let response;
|
|
903
878
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
904
879
|
switch (errorCode) {
|
|
905
880
|
case "DeploymentAlreadyCompletedException":
|
|
@@ -928,14 +903,12 @@ const deserializeAws_json1_1ContinueDeploymentCommandError = async (output, cont
|
|
|
928
903
|
throw await deserializeAws_json1_1UnsupportedActionForDeploymentTypeExceptionResponse(parsedOutput, context);
|
|
929
904
|
default:
|
|
930
905
|
const parsedBody = parsedOutput.body;
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
$metadata,
|
|
906
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
907
|
+
output,
|
|
908
|
+
parsedBody,
|
|
909
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
910
|
+
errorCode,
|
|
937
911
|
});
|
|
938
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
939
912
|
}
|
|
940
913
|
};
|
|
941
914
|
const deserializeAws_json1_1CreateApplicationCommand = async (output, context) => {
|
|
@@ -957,7 +930,6 @@ const deserializeAws_json1_1CreateApplicationCommandError = async (output, conte
|
|
|
957
930
|
...output,
|
|
958
931
|
body: await parseBody(output.body, context),
|
|
959
932
|
};
|
|
960
|
-
let response;
|
|
961
933
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
934
|
switch (errorCode) {
|
|
963
935
|
case "ApplicationAlreadyExistsException":
|
|
@@ -980,14 +952,12 @@ const deserializeAws_json1_1CreateApplicationCommandError = async (output, conte
|
|
|
980
952
|
throw await deserializeAws_json1_1InvalidTagsToAddExceptionResponse(parsedOutput, context);
|
|
981
953
|
default:
|
|
982
954
|
const parsedBody = parsedOutput.body;
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
$metadata,
|
|
955
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
956
|
+
output,
|
|
957
|
+
parsedBody,
|
|
958
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
959
|
+
errorCode,
|
|
989
960
|
});
|
|
990
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
991
961
|
}
|
|
992
962
|
};
|
|
993
963
|
const deserializeAws_json1_1CreateDeploymentCommand = async (output, context) => {
|
|
@@ -1009,7 +979,6 @@ const deserializeAws_json1_1CreateDeploymentCommandError = async (output, contex
|
|
|
1009
979
|
...output,
|
|
1010
980
|
body: await parseBody(output.body, context),
|
|
1011
981
|
};
|
|
1012
|
-
let response;
|
|
1013
982
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1014
983
|
switch (errorCode) {
|
|
1015
984
|
case "ApplicationDoesNotExistException":
|
|
@@ -1086,14 +1055,12 @@ const deserializeAws_json1_1CreateDeploymentCommandError = async (output, contex
|
|
|
1086
1055
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1087
1056
|
default:
|
|
1088
1057
|
const parsedBody = parsedOutput.body;
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
$metadata,
|
|
1058
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1059
|
+
output,
|
|
1060
|
+
parsedBody,
|
|
1061
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1062
|
+
errorCode,
|
|
1095
1063
|
});
|
|
1096
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1097
1064
|
}
|
|
1098
1065
|
};
|
|
1099
1066
|
const deserializeAws_json1_1CreateDeploymentConfigCommand = async (output, context) => {
|
|
@@ -1115,7 +1082,6 @@ const deserializeAws_json1_1CreateDeploymentConfigCommandError = async (output,
|
|
|
1115
1082
|
...output,
|
|
1116
1083
|
body: await parseBody(output.body, context),
|
|
1117
1084
|
};
|
|
1118
|
-
let response;
|
|
1119
1085
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1120
1086
|
switch (errorCode) {
|
|
1121
1087
|
case "DeploymentConfigAlreadyExistsException":
|
|
@@ -1141,14 +1107,12 @@ const deserializeAws_json1_1CreateDeploymentConfigCommandError = async (output,
|
|
|
1141
1107
|
throw await deserializeAws_json1_1InvalidTrafficRoutingConfigurationExceptionResponse(parsedOutput, context);
|
|
1142
1108
|
default:
|
|
1143
1109
|
const parsedBody = parsedOutput.body;
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
$metadata,
|
|
1110
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1111
|
+
output,
|
|
1112
|
+
parsedBody,
|
|
1113
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1114
|
+
errorCode,
|
|
1150
1115
|
});
|
|
1151
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1152
1116
|
}
|
|
1153
1117
|
};
|
|
1154
1118
|
const deserializeAws_json1_1CreateDeploymentGroupCommand = async (output, context) => {
|
|
@@ -1170,7 +1134,6 @@ const deserializeAws_json1_1CreateDeploymentGroupCommandError = async (output, c
|
|
|
1170
1134
|
...output,
|
|
1171
1135
|
body: await parseBody(output.body, context),
|
|
1172
1136
|
};
|
|
1173
|
-
let response;
|
|
1174
1137
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1175
1138
|
switch (errorCode) {
|
|
1176
1139
|
case "AlarmsLimitExceededException":
|
|
@@ -1274,14 +1237,12 @@ const deserializeAws_json1_1CreateDeploymentGroupCommandError = async (output, c
|
|
|
1274
1237
|
throw await deserializeAws_json1_1TriggerTargetsLimitExceededExceptionResponse(parsedOutput, context);
|
|
1275
1238
|
default:
|
|
1276
1239
|
const parsedBody = parsedOutput.body;
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
$metadata,
|
|
1240
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1241
|
+
output,
|
|
1242
|
+
parsedBody,
|
|
1243
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1244
|
+
errorCode,
|
|
1283
1245
|
});
|
|
1284
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1285
1246
|
}
|
|
1286
1247
|
};
|
|
1287
1248
|
const deserializeAws_json1_1DeleteApplicationCommand = async (output, context) => {
|
|
@@ -1300,7 +1261,6 @@ const deserializeAws_json1_1DeleteApplicationCommandError = async (output, conte
|
|
|
1300
1261
|
...output,
|
|
1301
1262
|
body: await parseBody(output.body, context),
|
|
1302
1263
|
};
|
|
1303
|
-
let response;
|
|
1304
1264
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1305
1265
|
switch (errorCode) {
|
|
1306
1266
|
case "ApplicationNameRequiredException":
|
|
@@ -1314,14 +1274,12 @@ const deserializeAws_json1_1DeleteApplicationCommandError = async (output, conte
|
|
|
1314
1274
|
throw await deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context);
|
|
1315
1275
|
default:
|
|
1316
1276
|
const parsedBody = parsedOutput.body;
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
$metadata,
|
|
1277
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1278
|
+
output,
|
|
1279
|
+
parsedBody,
|
|
1280
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1281
|
+
errorCode,
|
|
1323
1282
|
});
|
|
1324
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1325
1283
|
}
|
|
1326
1284
|
};
|
|
1327
1285
|
const deserializeAws_json1_1DeleteDeploymentConfigCommand = async (output, context) => {
|
|
@@ -1340,7 +1298,6 @@ const deserializeAws_json1_1DeleteDeploymentConfigCommandError = async (output,
|
|
|
1340
1298
|
...output,
|
|
1341
1299
|
body: await parseBody(output.body, context),
|
|
1342
1300
|
};
|
|
1343
|
-
let response;
|
|
1344
1301
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
1302
|
switch (errorCode) {
|
|
1346
1303
|
case "DeploymentConfigInUseException":
|
|
@@ -1357,14 +1314,12 @@ const deserializeAws_json1_1DeleteDeploymentConfigCommandError = async (output,
|
|
|
1357
1314
|
throw await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context);
|
|
1358
1315
|
default:
|
|
1359
1316
|
const parsedBody = parsedOutput.body;
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
$metadata,
|
|
1317
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1318
|
+
output,
|
|
1319
|
+
parsedBody,
|
|
1320
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1321
|
+
errorCode,
|
|
1366
1322
|
});
|
|
1367
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1368
1323
|
}
|
|
1369
1324
|
};
|
|
1370
1325
|
const deserializeAws_json1_1DeleteDeploymentGroupCommand = async (output, context) => {
|
|
@@ -1386,7 +1341,6 @@ const deserializeAws_json1_1DeleteDeploymentGroupCommandError = async (output, c
|
|
|
1386
1341
|
...output,
|
|
1387
1342
|
body: await parseBody(output.body, context),
|
|
1388
1343
|
};
|
|
1389
|
-
let response;
|
|
1390
1344
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
1345
|
switch (errorCode) {
|
|
1392
1346
|
case "ApplicationNameRequiredException":
|
|
@@ -1406,14 +1360,12 @@ const deserializeAws_json1_1DeleteDeploymentGroupCommandError = async (output, c
|
|
|
1406
1360
|
throw await deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context);
|
|
1407
1361
|
default:
|
|
1408
1362
|
const parsedBody = parsedOutput.body;
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
$metadata,
|
|
1363
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1364
|
+
output,
|
|
1365
|
+
parsedBody,
|
|
1366
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1367
|
+
errorCode,
|
|
1415
1368
|
});
|
|
1416
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1417
1369
|
}
|
|
1418
1370
|
};
|
|
1419
1371
|
const deserializeAws_json1_1DeleteGitHubAccountTokenCommand = async (output, context) => {
|
|
@@ -1435,7 +1387,6 @@ const deserializeAws_json1_1DeleteGitHubAccountTokenCommandError = async (output
|
|
|
1435
1387
|
...output,
|
|
1436
1388
|
body: await parseBody(output.body, context),
|
|
1437
1389
|
};
|
|
1438
|
-
let response;
|
|
1439
1390
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1440
1391
|
switch (errorCode) {
|
|
1441
1392
|
case "GitHubAccountTokenDoesNotExistException":
|
|
@@ -1455,14 +1406,12 @@ const deserializeAws_json1_1DeleteGitHubAccountTokenCommandError = async (output
|
|
|
1455
1406
|
throw await deserializeAws_json1_1ResourceValidationExceptionResponse(parsedOutput, context);
|
|
1456
1407
|
default:
|
|
1457
1408
|
const parsedBody = parsedOutput.body;
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
$metadata,
|
|
1409
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1410
|
+
output,
|
|
1411
|
+
parsedBody,
|
|
1412
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1413
|
+
errorCode,
|
|
1464
1414
|
});
|
|
1465
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1466
1415
|
}
|
|
1467
1416
|
};
|
|
1468
1417
|
const deserializeAws_json1_1DeleteResourcesByExternalIdCommand = async (output, context) => {
|
|
@@ -1484,20 +1433,14 @@ const deserializeAws_json1_1DeleteResourcesByExternalIdCommandError = async (out
|
|
|
1484
1433
|
...output,
|
|
1485
1434
|
body: await parseBody(output.body, context),
|
|
1486
1435
|
};
|
|
1487
|
-
let response;
|
|
1488
1436
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
$fault: "client",
|
|
1497
|
-
$metadata,
|
|
1498
|
-
});
|
|
1499
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1500
|
-
}
|
|
1437
|
+
const parsedBody = parsedOutput.body;
|
|
1438
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1439
|
+
output,
|
|
1440
|
+
parsedBody,
|
|
1441
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1442
|
+
errorCode,
|
|
1443
|
+
});
|
|
1501
1444
|
};
|
|
1502
1445
|
const deserializeAws_json1_1DeregisterOnPremisesInstanceCommand = async (output, context) => {
|
|
1503
1446
|
if (output.statusCode >= 300) {
|
|
@@ -1515,7 +1458,6 @@ const deserializeAws_json1_1DeregisterOnPremisesInstanceCommandError = async (ou
|
|
|
1515
1458
|
...output,
|
|
1516
1459
|
body: await parseBody(output.body, context),
|
|
1517
1460
|
};
|
|
1518
|
-
let response;
|
|
1519
1461
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1520
1462
|
switch (errorCode) {
|
|
1521
1463
|
case "InstanceNameRequiredException":
|
|
@@ -1526,14 +1468,12 @@ const deserializeAws_json1_1DeregisterOnPremisesInstanceCommandError = async (ou
|
|
|
1526
1468
|
throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context);
|
|
1527
1469
|
default:
|
|
1528
1470
|
const parsedBody = parsedOutput.body;
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
$metadata,
|
|
1471
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1472
|
+
output,
|
|
1473
|
+
parsedBody,
|
|
1474
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1475
|
+
errorCode,
|
|
1535
1476
|
});
|
|
1536
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1537
1477
|
}
|
|
1538
1478
|
};
|
|
1539
1479
|
const deserializeAws_json1_1GetApplicationCommand = async (output, context) => {
|
|
@@ -1555,7 +1495,6 @@ const deserializeAws_json1_1GetApplicationCommandError = async (output, context)
|
|
|
1555
1495
|
...output,
|
|
1556
1496
|
body: await parseBody(output.body, context),
|
|
1557
1497
|
};
|
|
1558
|
-
let response;
|
|
1559
1498
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1560
1499
|
switch (errorCode) {
|
|
1561
1500
|
case "ApplicationDoesNotExistException":
|
|
@@ -1569,14 +1508,12 @@ const deserializeAws_json1_1GetApplicationCommandError = async (output, context)
|
|
|
1569
1508
|
throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context);
|
|
1570
1509
|
default:
|
|
1571
1510
|
const parsedBody = parsedOutput.body;
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
$metadata,
|
|
1511
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1512
|
+
output,
|
|
1513
|
+
parsedBody,
|
|
1514
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1515
|
+
errorCode,
|
|
1578
1516
|
});
|
|
1579
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1580
1517
|
}
|
|
1581
1518
|
};
|
|
1582
1519
|
const deserializeAws_json1_1GetApplicationRevisionCommand = async (output, context) => {
|
|
@@ -1598,7 +1535,6 @@ const deserializeAws_json1_1GetApplicationRevisionCommandError = async (output,
|
|
|
1598
1535
|
...output,
|
|
1599
1536
|
body: await parseBody(output.body, context),
|
|
1600
1537
|
};
|
|
1601
|
-
let response;
|
|
1602
1538
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1603
1539
|
switch (errorCode) {
|
|
1604
1540
|
case "ApplicationDoesNotExistException":
|
|
@@ -1621,14 +1557,12 @@ const deserializeAws_json1_1GetApplicationRevisionCommandError = async (output,
|
|
|
1621
1557
|
throw await deserializeAws_json1_1RevisionRequiredExceptionResponse(parsedOutput, context);
|
|
1622
1558
|
default:
|
|
1623
1559
|
const parsedBody = parsedOutput.body;
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
$metadata,
|
|
1560
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1561
|
+
output,
|
|
1562
|
+
parsedBody,
|
|
1563
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1564
|
+
errorCode,
|
|
1630
1565
|
});
|
|
1631
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1632
1566
|
}
|
|
1633
1567
|
};
|
|
1634
1568
|
const deserializeAws_json1_1GetDeploymentCommand = async (output, context) => {
|
|
@@ -1650,7 +1584,6 @@ const deserializeAws_json1_1GetDeploymentCommandError = async (output, context)
|
|
|
1650
1584
|
...output,
|
|
1651
1585
|
body: await parseBody(output.body, context),
|
|
1652
1586
|
};
|
|
1653
|
-
let response;
|
|
1654
1587
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1655
1588
|
switch (errorCode) {
|
|
1656
1589
|
case "DeploymentDoesNotExistException":
|
|
@@ -1664,14 +1597,12 @@ const deserializeAws_json1_1GetDeploymentCommandError = async (output, context)
|
|
|
1664
1597
|
throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context);
|
|
1665
1598
|
default:
|
|
1666
1599
|
const parsedBody = parsedOutput.body;
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
$metadata,
|
|
1600
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1601
|
+
output,
|
|
1602
|
+
parsedBody,
|
|
1603
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1604
|
+
errorCode,
|
|
1673
1605
|
});
|
|
1674
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1675
1606
|
}
|
|
1676
1607
|
};
|
|
1677
1608
|
const deserializeAws_json1_1GetDeploymentConfigCommand = async (output, context) => {
|
|
@@ -1693,7 +1624,6 @@ const deserializeAws_json1_1GetDeploymentConfigCommandError = async (output, con
|
|
|
1693
1624
|
...output,
|
|
1694
1625
|
body: await parseBody(output.body, context),
|
|
1695
1626
|
};
|
|
1696
|
-
let response;
|
|
1697
1627
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1698
1628
|
switch (errorCode) {
|
|
1699
1629
|
case "DeploymentConfigDoesNotExistException":
|
|
@@ -1710,14 +1640,12 @@ const deserializeAws_json1_1GetDeploymentConfigCommandError = async (output, con
|
|
|
1710
1640
|
throw await deserializeAws_json1_1InvalidDeploymentConfigNameExceptionResponse(parsedOutput, context);
|
|
1711
1641
|
default:
|
|
1712
1642
|
const parsedBody = parsedOutput.body;
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
$metadata,
|
|
1643
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1644
|
+
output,
|
|
1645
|
+
parsedBody,
|
|
1646
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1647
|
+
errorCode,
|
|
1719
1648
|
});
|
|
1720
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1721
1649
|
}
|
|
1722
1650
|
};
|
|
1723
1651
|
const deserializeAws_json1_1GetDeploymentGroupCommand = async (output, context) => {
|
|
@@ -1739,7 +1667,6 @@ const deserializeAws_json1_1GetDeploymentGroupCommandError = async (output, cont
|
|
|
1739
1667
|
...output,
|
|
1740
1668
|
body: await parseBody(output.body, context),
|
|
1741
1669
|
};
|
|
1742
|
-
let response;
|
|
1743
1670
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1744
1671
|
switch (errorCode) {
|
|
1745
1672
|
case "ApplicationDoesNotExistException":
|
|
@@ -1765,14 +1692,12 @@ const deserializeAws_json1_1GetDeploymentGroupCommandError = async (output, cont
|
|
|
1765
1692
|
throw await deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse(parsedOutput, context);
|
|
1766
1693
|
default:
|
|
1767
1694
|
const parsedBody = parsedOutput.body;
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
$metadata,
|
|
1695
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1696
|
+
output,
|
|
1697
|
+
parsedBody,
|
|
1698
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1699
|
+
errorCode,
|
|
1774
1700
|
});
|
|
1775
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1776
1701
|
}
|
|
1777
1702
|
};
|
|
1778
1703
|
const deserializeAws_json1_1GetDeploymentInstanceCommand = async (output, context) => {
|
|
@@ -1794,7 +1719,6 @@ const deserializeAws_json1_1GetDeploymentInstanceCommandError = async (output, c
|
|
|
1794
1719
|
...output,
|
|
1795
1720
|
body: await parseBody(output.body, context),
|
|
1796
1721
|
};
|
|
1797
|
-
let response;
|
|
1798
1722
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1799
1723
|
switch (errorCode) {
|
|
1800
1724
|
case "DeploymentDoesNotExistException":
|
|
@@ -1820,14 +1744,12 @@ const deserializeAws_json1_1GetDeploymentInstanceCommandError = async (output, c
|
|
|
1820
1744
|
throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context);
|
|
1821
1745
|
default:
|
|
1822
1746
|
const parsedBody = parsedOutput.body;
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
$metadata,
|
|
1747
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1748
|
+
output,
|
|
1749
|
+
parsedBody,
|
|
1750
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1751
|
+
errorCode,
|
|
1829
1752
|
});
|
|
1830
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1831
1753
|
}
|
|
1832
1754
|
};
|
|
1833
1755
|
const deserializeAws_json1_1GetDeploymentTargetCommand = async (output, context) => {
|
|
@@ -1849,7 +1771,6 @@ const deserializeAws_json1_1GetDeploymentTargetCommandError = async (output, con
|
|
|
1849
1771
|
...output,
|
|
1850
1772
|
body: await parseBody(output.body, context),
|
|
1851
1773
|
};
|
|
1852
|
-
let response;
|
|
1853
1774
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1854
1775
|
switch (errorCode) {
|
|
1855
1776
|
case "DeploymentDoesNotExistException":
|
|
@@ -1878,14 +1799,12 @@ const deserializeAws_json1_1GetDeploymentTargetCommandError = async (output, con
|
|
|
1878
1799
|
throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context);
|
|
1879
1800
|
default:
|
|
1880
1801
|
const parsedBody = parsedOutput.body;
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
$metadata,
|
|
1802
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1803
|
+
output,
|
|
1804
|
+
parsedBody,
|
|
1805
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1806
|
+
errorCode,
|
|
1887
1807
|
});
|
|
1888
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1889
1808
|
}
|
|
1890
1809
|
};
|
|
1891
1810
|
const deserializeAws_json1_1GetOnPremisesInstanceCommand = async (output, context) => {
|
|
@@ -1907,7 +1826,6 @@ const deserializeAws_json1_1GetOnPremisesInstanceCommandError = async (output, c
|
|
|
1907
1826
|
...output,
|
|
1908
1827
|
body: await parseBody(output.body, context),
|
|
1909
1828
|
};
|
|
1910
|
-
let response;
|
|
1911
1829
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
1830
|
switch (errorCode) {
|
|
1913
1831
|
case "InstanceNameRequiredException":
|
|
@@ -1921,14 +1839,12 @@ const deserializeAws_json1_1GetOnPremisesInstanceCommandError = async (output, c
|
|
|
1921
1839
|
throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context);
|
|
1922
1840
|
default:
|
|
1923
1841
|
const parsedBody = parsedOutput.body;
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
$metadata,
|
|
1842
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1843
|
+
output,
|
|
1844
|
+
parsedBody,
|
|
1845
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1846
|
+
errorCode,
|
|
1930
1847
|
});
|
|
1931
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1932
1848
|
}
|
|
1933
1849
|
};
|
|
1934
1850
|
const deserializeAws_json1_1ListApplicationRevisionsCommand = async (output, context) => {
|
|
@@ -1950,7 +1866,6 @@ const deserializeAws_json1_1ListApplicationRevisionsCommandError = async (output
|
|
|
1950
1866
|
...output,
|
|
1951
1867
|
body: await parseBody(output.body, context),
|
|
1952
1868
|
};
|
|
1953
|
-
let response;
|
|
1954
1869
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1955
1870
|
switch (errorCode) {
|
|
1956
1871
|
case "ApplicationDoesNotExistException":
|
|
@@ -1985,14 +1900,12 @@ const deserializeAws_json1_1ListApplicationRevisionsCommandError = async (output
|
|
|
1985
1900
|
throw await deserializeAws_json1_1InvalidSortOrderExceptionResponse(parsedOutput, context);
|
|
1986
1901
|
default:
|
|
1987
1902
|
const parsedBody = parsedOutput.body;
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
$metadata,
|
|
1903
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1904
|
+
output,
|
|
1905
|
+
parsedBody,
|
|
1906
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1907
|
+
errorCode,
|
|
1994
1908
|
});
|
|
1995
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1996
1909
|
}
|
|
1997
1910
|
};
|
|
1998
1911
|
const deserializeAws_json1_1ListApplicationsCommand = async (output, context) => {
|
|
@@ -2014,7 +1927,6 @@ const deserializeAws_json1_1ListApplicationsCommandError = async (output, contex
|
|
|
2014
1927
|
...output,
|
|
2015
1928
|
body: await parseBody(output.body, context),
|
|
2016
1929
|
};
|
|
2017
|
-
let response;
|
|
2018
1930
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2019
1931
|
switch (errorCode) {
|
|
2020
1932
|
case "InvalidNextTokenException":
|
|
@@ -2022,14 +1934,12 @@ const deserializeAws_json1_1ListApplicationsCommandError = async (output, contex
|
|
|
2022
1934
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2023
1935
|
default:
|
|
2024
1936
|
const parsedBody = parsedOutput.body;
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
$metadata,
|
|
1937
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1938
|
+
output,
|
|
1939
|
+
parsedBody,
|
|
1940
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1941
|
+
errorCode,
|
|
2031
1942
|
});
|
|
2032
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2033
1943
|
}
|
|
2034
1944
|
};
|
|
2035
1945
|
const deserializeAws_json1_1ListDeploymentConfigsCommand = async (output, context) => {
|
|
@@ -2051,7 +1961,6 @@ const deserializeAws_json1_1ListDeploymentConfigsCommandError = async (output, c
|
|
|
2051
1961
|
...output,
|
|
2052
1962
|
body: await parseBody(output.body, context),
|
|
2053
1963
|
};
|
|
2054
|
-
let response;
|
|
2055
1964
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2056
1965
|
switch (errorCode) {
|
|
2057
1966
|
case "InvalidNextTokenException":
|
|
@@ -2059,14 +1968,12 @@ const deserializeAws_json1_1ListDeploymentConfigsCommandError = async (output, c
|
|
|
2059
1968
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2060
1969
|
default:
|
|
2061
1970
|
const parsedBody = parsedOutput.body;
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
$metadata,
|
|
1971
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1972
|
+
output,
|
|
1973
|
+
parsedBody,
|
|
1974
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
1975
|
+
errorCode,
|
|
2068
1976
|
});
|
|
2069
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2070
1977
|
}
|
|
2071
1978
|
};
|
|
2072
1979
|
const deserializeAws_json1_1ListDeploymentGroupsCommand = async (output, context) => {
|
|
@@ -2088,7 +1995,6 @@ const deserializeAws_json1_1ListDeploymentGroupsCommandError = async (output, co
|
|
|
2088
1995
|
...output,
|
|
2089
1996
|
body: await parseBody(output.body, context),
|
|
2090
1997
|
};
|
|
2091
|
-
let response;
|
|
2092
1998
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2093
1999
|
switch (errorCode) {
|
|
2094
2000
|
case "ApplicationDoesNotExistException":
|
|
@@ -2105,14 +2011,12 @@ const deserializeAws_json1_1ListDeploymentGroupsCommandError = async (output, co
|
|
|
2105
2011
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2106
2012
|
default:
|
|
2107
2013
|
const parsedBody = parsedOutput.body;
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
$metadata,
|
|
2014
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2015
|
+
output,
|
|
2016
|
+
parsedBody,
|
|
2017
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2018
|
+
errorCode,
|
|
2114
2019
|
});
|
|
2115
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2116
2020
|
}
|
|
2117
2021
|
};
|
|
2118
2022
|
const deserializeAws_json1_1ListDeploymentInstancesCommand = async (output, context) => {
|
|
@@ -2134,7 +2038,6 @@ const deserializeAws_json1_1ListDeploymentInstancesCommandError = async (output,
|
|
|
2134
2038
|
...output,
|
|
2135
2039
|
body: await parseBody(output.body, context),
|
|
2136
2040
|
};
|
|
2137
|
-
let response;
|
|
2138
2041
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2139
2042
|
switch (errorCode) {
|
|
2140
2043
|
case "DeploymentDoesNotExistException":
|
|
@@ -2169,14 +2072,12 @@ const deserializeAws_json1_1ListDeploymentInstancesCommandError = async (output,
|
|
|
2169
2072
|
throw await deserializeAws_json1_1InvalidTargetFilterNameExceptionResponse(parsedOutput, context);
|
|
2170
2073
|
default:
|
|
2171
2074
|
const parsedBody = parsedOutput.body;
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
$metadata,
|
|
2075
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2076
|
+
output,
|
|
2077
|
+
parsedBody,
|
|
2078
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2079
|
+
errorCode,
|
|
2178
2080
|
});
|
|
2179
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2180
2081
|
}
|
|
2181
2082
|
};
|
|
2182
2083
|
const deserializeAws_json1_1ListDeploymentsCommand = async (output, context) => {
|
|
@@ -2198,7 +2099,6 @@ const deserializeAws_json1_1ListDeploymentsCommandError = async (output, context
|
|
|
2198
2099
|
...output,
|
|
2199
2100
|
body: await parseBody(output.body, context),
|
|
2200
2101
|
};
|
|
2201
|
-
let response;
|
|
2202
2102
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2203
2103
|
switch (errorCode) {
|
|
2204
2104
|
case "ApplicationDoesNotExistException":
|
|
@@ -2236,14 +2136,12 @@ const deserializeAws_json1_1ListDeploymentsCommandError = async (output, context
|
|
|
2236
2136
|
throw await deserializeAws_json1_1InvalidTimeRangeExceptionResponse(parsedOutput, context);
|
|
2237
2137
|
default:
|
|
2238
2138
|
const parsedBody = parsedOutput.body;
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
$metadata,
|
|
2139
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2140
|
+
output,
|
|
2141
|
+
parsedBody,
|
|
2142
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2143
|
+
errorCode,
|
|
2245
2144
|
});
|
|
2246
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2247
2145
|
}
|
|
2248
2146
|
};
|
|
2249
2147
|
const deserializeAws_json1_1ListDeploymentTargetsCommand = async (output, context) => {
|
|
@@ -2265,7 +2163,6 @@ const deserializeAws_json1_1ListDeploymentTargetsCommandError = async (output, c
|
|
|
2265
2163
|
...output,
|
|
2266
2164
|
body: await parseBody(output.body, context),
|
|
2267
2165
|
};
|
|
2268
|
-
let response;
|
|
2269
2166
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2270
2167
|
switch (errorCode) {
|
|
2271
2168
|
case "DeploymentDoesNotExistException":
|
|
@@ -2294,14 +2191,12 @@ const deserializeAws_json1_1ListDeploymentTargetsCommandError = async (output, c
|
|
|
2294
2191
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2295
2192
|
default:
|
|
2296
2193
|
const parsedBody = parsedOutput.body;
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
$metadata,
|
|
2194
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2195
|
+
output,
|
|
2196
|
+
parsedBody,
|
|
2197
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2198
|
+
errorCode,
|
|
2303
2199
|
});
|
|
2304
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2305
2200
|
}
|
|
2306
2201
|
};
|
|
2307
2202
|
const deserializeAws_json1_1ListGitHubAccountTokenNamesCommand = async (output, context) => {
|
|
@@ -2323,7 +2218,6 @@ const deserializeAws_json1_1ListGitHubAccountTokenNamesCommandError = async (out
|
|
|
2323
2218
|
...output,
|
|
2324
2219
|
body: await parseBody(output.body, context),
|
|
2325
2220
|
};
|
|
2326
|
-
let response;
|
|
2327
2221
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2328
2222
|
switch (errorCode) {
|
|
2329
2223
|
case "InvalidNextTokenException":
|
|
@@ -2337,14 +2231,12 @@ const deserializeAws_json1_1ListGitHubAccountTokenNamesCommandError = async (out
|
|
|
2337
2231
|
throw await deserializeAws_json1_1ResourceValidationExceptionResponse(parsedOutput, context);
|
|
2338
2232
|
default:
|
|
2339
2233
|
const parsedBody = parsedOutput.body;
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
$metadata,
|
|
2234
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2235
|
+
output,
|
|
2236
|
+
parsedBody,
|
|
2237
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2238
|
+
errorCode,
|
|
2346
2239
|
});
|
|
2347
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2348
2240
|
}
|
|
2349
2241
|
};
|
|
2350
2242
|
const deserializeAws_json1_1ListOnPremisesInstancesCommand = async (output, context) => {
|
|
@@ -2366,7 +2258,6 @@ const deserializeAws_json1_1ListOnPremisesInstancesCommandError = async (output,
|
|
|
2366
2258
|
...output,
|
|
2367
2259
|
body: await parseBody(output.body, context),
|
|
2368
2260
|
};
|
|
2369
|
-
let response;
|
|
2370
2261
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2371
2262
|
switch (errorCode) {
|
|
2372
2263
|
case "InvalidNextTokenException":
|
|
@@ -2380,14 +2271,12 @@ const deserializeAws_json1_1ListOnPremisesInstancesCommandError = async (output,
|
|
|
2380
2271
|
throw await deserializeAws_json1_1InvalidTagFilterExceptionResponse(parsedOutput, context);
|
|
2381
2272
|
default:
|
|
2382
2273
|
const parsedBody = parsedOutput.body;
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
$metadata,
|
|
2274
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2275
|
+
output,
|
|
2276
|
+
parsedBody,
|
|
2277
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2278
|
+
errorCode,
|
|
2389
2279
|
});
|
|
2390
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2391
2280
|
}
|
|
2392
2281
|
};
|
|
2393
2282
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -2409,7 +2298,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2409
2298
|
...output,
|
|
2410
2299
|
body: await parseBody(output.body, context),
|
|
2411
2300
|
};
|
|
2412
|
-
let response;
|
|
2413
2301
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2414
2302
|
switch (errorCode) {
|
|
2415
2303
|
case "ArnNotSupportedException":
|
|
@@ -2423,14 +2311,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2423
2311
|
throw await deserializeAws_json1_1ResourceArnRequiredExceptionResponse(parsedOutput, context);
|
|
2424
2312
|
default:
|
|
2425
2313
|
const parsedBody = parsedOutput.body;
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
$metadata,
|
|
2314
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2315
|
+
output,
|
|
2316
|
+
parsedBody,
|
|
2317
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2318
|
+
errorCode,
|
|
2432
2319
|
});
|
|
2433
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2434
2320
|
}
|
|
2435
2321
|
};
|
|
2436
2322
|
const deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand = async (output, context) => {
|
|
@@ -2452,7 +2338,6 @@ const deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommandError = a
|
|
|
2452
2338
|
...output,
|
|
2453
2339
|
body: await parseBody(output.body, context),
|
|
2454
2340
|
};
|
|
2455
|
-
let response;
|
|
2456
2341
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2457
2342
|
switch (errorCode) {
|
|
2458
2343
|
case "DeploymentDoesNotExistException":
|
|
@@ -2478,14 +2363,12 @@ const deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommandError = a
|
|
|
2478
2363
|
throw await deserializeAws_json1_1UnsupportedActionForDeploymentTypeExceptionResponse(parsedOutput, context);
|
|
2479
2364
|
default:
|
|
2480
2365
|
const parsedBody = parsedOutput.body;
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
$metadata,
|
|
2366
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2367
|
+
output,
|
|
2368
|
+
parsedBody,
|
|
2369
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2370
|
+
errorCode,
|
|
2487
2371
|
});
|
|
2488
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2489
2372
|
}
|
|
2490
2373
|
};
|
|
2491
2374
|
const deserializeAws_json1_1RegisterApplicationRevisionCommand = async (output, context) => {
|
|
@@ -2504,7 +2387,6 @@ const deserializeAws_json1_1RegisterApplicationRevisionCommandError = async (out
|
|
|
2504
2387
|
...output,
|
|
2505
2388
|
body: await parseBody(output.body, context),
|
|
2506
2389
|
};
|
|
2507
|
-
let response;
|
|
2508
2390
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2509
2391
|
switch (errorCode) {
|
|
2510
2392
|
case "ApplicationDoesNotExistException":
|
|
@@ -2527,14 +2409,12 @@ const deserializeAws_json1_1RegisterApplicationRevisionCommandError = async (out
|
|
|
2527
2409
|
throw await deserializeAws_json1_1RevisionRequiredExceptionResponse(parsedOutput, context);
|
|
2528
2410
|
default:
|
|
2529
2411
|
const parsedBody = parsedOutput.body;
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
$metadata,
|
|
2412
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2413
|
+
output,
|
|
2414
|
+
parsedBody,
|
|
2415
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2416
|
+
errorCode,
|
|
2536
2417
|
});
|
|
2537
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2538
2418
|
}
|
|
2539
2419
|
};
|
|
2540
2420
|
const deserializeAws_json1_1RegisterOnPremisesInstanceCommand = async (output, context) => {
|
|
@@ -2553,7 +2433,6 @@ const deserializeAws_json1_1RegisterOnPremisesInstanceCommandError = async (outp
|
|
|
2553
2433
|
...output,
|
|
2554
2434
|
body: await parseBody(output.body, context),
|
|
2555
2435
|
};
|
|
2556
|
-
let response;
|
|
2557
2436
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2558
2437
|
switch (errorCode) {
|
|
2559
2438
|
case "IamArnRequiredException":
|
|
@@ -2588,14 +2467,12 @@ const deserializeAws_json1_1RegisterOnPremisesInstanceCommandError = async (outp
|
|
|
2588
2467
|
throw await deserializeAws_json1_1MultipleIamArnsProvidedExceptionResponse(parsedOutput, context);
|
|
2589
2468
|
default:
|
|
2590
2469
|
const parsedBody = parsedOutput.body;
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
$metadata,
|
|
2470
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2471
|
+
output,
|
|
2472
|
+
parsedBody,
|
|
2473
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2474
|
+
errorCode,
|
|
2597
2475
|
});
|
|
2598
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2599
2476
|
}
|
|
2600
2477
|
};
|
|
2601
2478
|
const deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand = async (output, context) => {
|
|
@@ -2614,7 +2491,6 @@ const deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommandError = asyn
|
|
|
2614
2491
|
...output,
|
|
2615
2492
|
body: await parseBody(output.body, context),
|
|
2616
2493
|
};
|
|
2617
|
-
let response;
|
|
2618
2494
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2619
2495
|
switch (errorCode) {
|
|
2620
2496
|
case "InstanceLimitExceededException":
|
|
@@ -2640,14 +2516,12 @@ const deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommandError = asyn
|
|
|
2640
2516
|
throw await deserializeAws_json1_1TagRequiredExceptionResponse(parsedOutput, context);
|
|
2641
2517
|
default:
|
|
2642
2518
|
const parsedBody = parsedOutput.body;
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
$metadata,
|
|
2519
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2520
|
+
output,
|
|
2521
|
+
parsedBody,
|
|
2522
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2523
|
+
errorCode,
|
|
2649
2524
|
});
|
|
2650
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2651
2525
|
}
|
|
2652
2526
|
};
|
|
2653
2527
|
const deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand = async (output, context) => {
|
|
@@ -2666,7 +2540,6 @@ const deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommandError = asy
|
|
|
2666
2540
|
...output,
|
|
2667
2541
|
body: await parseBody(output.body, context),
|
|
2668
2542
|
};
|
|
2669
|
-
let response;
|
|
2670
2543
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2671
2544
|
switch (errorCode) {
|
|
2672
2545
|
case "DeploymentAlreadyCompletedException":
|
|
@@ -2689,14 +2562,12 @@ const deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommandError = asy
|
|
|
2689
2562
|
throw await deserializeAws_json1_1UnsupportedActionForDeploymentTypeExceptionResponse(parsedOutput, context);
|
|
2690
2563
|
default:
|
|
2691
2564
|
const parsedBody = parsedOutput.body;
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
$metadata,
|
|
2565
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2566
|
+
output,
|
|
2567
|
+
parsedBody,
|
|
2568
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2569
|
+
errorCode,
|
|
2698
2570
|
});
|
|
2699
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2700
2571
|
}
|
|
2701
2572
|
};
|
|
2702
2573
|
const deserializeAws_json1_1StopDeploymentCommand = async (output, context) => {
|
|
@@ -2718,7 +2589,6 @@ const deserializeAws_json1_1StopDeploymentCommandError = async (output, context)
|
|
|
2718
2589
|
...output,
|
|
2719
2590
|
body: await parseBody(output.body, context),
|
|
2720
2591
|
};
|
|
2721
|
-
let response;
|
|
2722
2592
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2723
2593
|
switch (errorCode) {
|
|
2724
2594
|
case "DeploymentAlreadyCompletedException":
|
|
@@ -2741,14 +2611,12 @@ const deserializeAws_json1_1StopDeploymentCommandError = async (output, context)
|
|
|
2741
2611
|
throw await deserializeAws_json1_1UnsupportedActionForDeploymentTypeExceptionResponse(parsedOutput, context);
|
|
2742
2612
|
default:
|
|
2743
2613
|
const parsedBody = parsedOutput.body;
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
$metadata,
|
|
2614
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2615
|
+
output,
|
|
2616
|
+
parsedBody,
|
|
2617
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2618
|
+
errorCode,
|
|
2750
2619
|
});
|
|
2751
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2752
2620
|
}
|
|
2753
2621
|
};
|
|
2754
2622
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -2770,7 +2638,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2770
2638
|
...output,
|
|
2771
2639
|
body: await parseBody(output.body, context),
|
|
2772
2640
|
};
|
|
2773
|
-
let response;
|
|
2774
2641
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2775
2642
|
switch (errorCode) {
|
|
2776
2643
|
case "ApplicationDoesNotExistException":
|
|
@@ -2799,14 +2666,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2799
2666
|
throw await deserializeAws_json1_1TagRequiredExceptionResponse(parsedOutput, context);
|
|
2800
2667
|
default:
|
|
2801
2668
|
const parsedBody = parsedOutput.body;
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
$metadata,
|
|
2669
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2670
|
+
output,
|
|
2671
|
+
parsedBody,
|
|
2672
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2673
|
+
errorCode,
|
|
2808
2674
|
});
|
|
2809
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2810
2675
|
}
|
|
2811
2676
|
};
|
|
2812
2677
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -2828,7 +2693,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2828
2693
|
...output,
|
|
2829
2694
|
body: await parseBody(output.body, context),
|
|
2830
2695
|
};
|
|
2831
|
-
let response;
|
|
2832
2696
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2833
2697
|
switch (errorCode) {
|
|
2834
2698
|
case "ApplicationDoesNotExistException":
|
|
@@ -2857,14 +2721,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2857
2721
|
throw await deserializeAws_json1_1TagRequiredExceptionResponse(parsedOutput, context);
|
|
2858
2722
|
default:
|
|
2859
2723
|
const parsedBody = parsedOutput.body;
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
$metadata,
|
|
2724
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2725
|
+
output,
|
|
2726
|
+
parsedBody,
|
|
2727
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2728
|
+
errorCode,
|
|
2866
2729
|
});
|
|
2867
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2868
2730
|
}
|
|
2869
2731
|
};
|
|
2870
2732
|
const deserializeAws_json1_1UpdateApplicationCommand = async (output, context) => {
|
|
@@ -2883,7 +2745,6 @@ const deserializeAws_json1_1UpdateApplicationCommandError = async (output, conte
|
|
|
2883
2745
|
...output,
|
|
2884
2746
|
body: await parseBody(output.body, context),
|
|
2885
2747
|
};
|
|
2886
|
-
let response;
|
|
2887
2748
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2888
2749
|
switch (errorCode) {
|
|
2889
2750
|
case "ApplicationAlreadyExistsException":
|
|
@@ -2900,14 +2761,12 @@ const deserializeAws_json1_1UpdateApplicationCommandError = async (output, conte
|
|
|
2900
2761
|
throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context);
|
|
2901
2762
|
default:
|
|
2902
2763
|
const parsedBody = parsedOutput.body;
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
$metadata,
|
|
2764
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2765
|
+
output,
|
|
2766
|
+
parsedBody,
|
|
2767
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2768
|
+
errorCode,
|
|
2909
2769
|
});
|
|
2910
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2911
2770
|
}
|
|
2912
2771
|
};
|
|
2913
2772
|
const deserializeAws_json1_1UpdateDeploymentGroupCommand = async (output, context) => {
|
|
@@ -2929,7 +2788,6 @@ const deserializeAws_json1_1UpdateDeploymentGroupCommandError = async (output, c
|
|
|
2929
2788
|
...output,
|
|
2930
2789
|
body: await parseBody(output.body, context),
|
|
2931
2790
|
};
|
|
2932
|
-
let response;
|
|
2933
2791
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2934
2792
|
switch (errorCode) {
|
|
2935
2793
|
case "AlarmsLimitExceededException":
|
|
@@ -3027,14 +2885,12 @@ const deserializeAws_json1_1UpdateDeploymentGroupCommandError = async (output, c
|
|
|
3027
2885
|
throw await deserializeAws_json1_1TriggerTargetsLimitExceededExceptionResponse(parsedOutput, context);
|
|
3028
2886
|
default:
|
|
3029
2887
|
const parsedBody = parsedOutput.body;
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
$metadata,
|
|
2888
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2889
|
+
output,
|
|
2890
|
+
parsedBody,
|
|
2891
|
+
exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException,
|
|
2892
|
+
errorCode,
|
|
3036
2893
|
});
|
|
3037
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3038
2894
|
}
|
|
3039
2895
|
};
|
|
3040
2896
|
const deserializeAws_json1_1AlarmsLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -4042,9 +3898,6 @@ const serializeAws_json1_1AlarmList = (input, context) => {
|
|
|
4042
3898
|
return input
|
|
4043
3899
|
.filter((e) => e != null)
|
|
4044
3900
|
.map((entry) => {
|
|
4045
|
-
if (entry === null) {
|
|
4046
|
-
return null;
|
|
4047
|
-
}
|
|
4048
3901
|
return serializeAws_json1_1Alarm(entry, context);
|
|
4049
3902
|
});
|
|
4050
3903
|
};
|
|
@@ -4052,9 +3905,6 @@ const serializeAws_json1_1ApplicationsList = (input, context) => {
|
|
|
4052
3905
|
return input
|
|
4053
3906
|
.filter((e) => e != null)
|
|
4054
3907
|
.map((entry) => {
|
|
4055
|
-
if (entry === null) {
|
|
4056
|
-
return null;
|
|
4057
|
-
}
|
|
4058
3908
|
return entry;
|
|
4059
3909
|
});
|
|
4060
3910
|
};
|
|
@@ -4074,9 +3924,6 @@ const serializeAws_json1_1AutoRollbackEventsList = (input, context) => {
|
|
|
4074
3924
|
return input
|
|
4075
3925
|
.filter((e) => e != null)
|
|
4076
3926
|
.map((entry) => {
|
|
4077
|
-
if (entry === null) {
|
|
4078
|
-
return null;
|
|
4079
|
-
}
|
|
4080
3927
|
return entry;
|
|
4081
3928
|
});
|
|
4082
3929
|
};
|
|
@@ -4084,9 +3931,6 @@ const serializeAws_json1_1AutoScalingGroupNameList = (input, context) => {
|
|
|
4084
3931
|
return input
|
|
4085
3932
|
.filter((e) => e != null)
|
|
4086
3933
|
.map((entry) => {
|
|
4087
|
-
if (entry === null) {
|
|
4088
|
-
return null;
|
|
4089
|
-
}
|
|
4090
3934
|
return entry;
|
|
4091
3935
|
});
|
|
4092
3936
|
};
|
|
@@ -4277,9 +4121,6 @@ const serializeAws_json1_1DeploymentGroupsList = (input, context) => {
|
|
|
4277
4121
|
return input
|
|
4278
4122
|
.filter((e) => e != null)
|
|
4279
4123
|
.map((entry) => {
|
|
4280
|
-
if (entry === null) {
|
|
4281
|
-
return null;
|
|
4282
|
-
}
|
|
4283
4124
|
return entry;
|
|
4284
4125
|
});
|
|
4285
4126
|
};
|
|
@@ -4293,9 +4134,6 @@ const serializeAws_json1_1DeploymentsList = (input, context) => {
|
|
|
4293
4134
|
return input
|
|
4294
4135
|
.filter((e) => e != null)
|
|
4295
4136
|
.map((entry) => {
|
|
4296
|
-
if (entry === null) {
|
|
4297
|
-
return null;
|
|
4298
|
-
}
|
|
4299
4137
|
return entry;
|
|
4300
4138
|
});
|
|
4301
4139
|
};
|
|
@@ -4303,9 +4141,6 @@ const serializeAws_json1_1DeploymentStatusList = (input, context) => {
|
|
|
4303
4141
|
return input
|
|
4304
4142
|
.filter((e) => e != null)
|
|
4305
4143
|
.map((entry) => {
|
|
4306
|
-
if (entry === null) {
|
|
4307
|
-
return null;
|
|
4308
|
-
}
|
|
4309
4144
|
return entry;
|
|
4310
4145
|
});
|
|
4311
4146
|
};
|
|
@@ -4331,9 +4166,6 @@ const serializeAws_json1_1EC2TagFilterList = (input, context) => {
|
|
|
4331
4166
|
return input
|
|
4332
4167
|
.filter((e) => e != null)
|
|
4333
4168
|
.map((entry) => {
|
|
4334
|
-
if (entry === null) {
|
|
4335
|
-
return null;
|
|
4336
|
-
}
|
|
4337
4169
|
return serializeAws_json1_1EC2TagFilter(entry, context);
|
|
4338
4170
|
});
|
|
4339
4171
|
};
|
|
@@ -4348,9 +4180,6 @@ const serializeAws_json1_1EC2TagSetList = (input, context) => {
|
|
|
4348
4180
|
return input
|
|
4349
4181
|
.filter((e) => e != null)
|
|
4350
4182
|
.map((entry) => {
|
|
4351
|
-
if (entry === null) {
|
|
4352
|
-
return null;
|
|
4353
|
-
}
|
|
4354
4183
|
return serializeAws_json1_1EC2TagFilterList(entry, context);
|
|
4355
4184
|
});
|
|
4356
4185
|
};
|
|
@@ -4364,9 +4193,6 @@ const serializeAws_json1_1ECSServiceList = (input, context) => {
|
|
|
4364
4193
|
return input
|
|
4365
4194
|
.filter((e) => e != null)
|
|
4366
4195
|
.map((entry) => {
|
|
4367
|
-
if (entry === null) {
|
|
4368
|
-
return null;
|
|
4369
|
-
}
|
|
4370
4196
|
return serializeAws_json1_1ECSService(entry, context);
|
|
4371
4197
|
});
|
|
4372
4198
|
};
|
|
@@ -4379,9 +4205,6 @@ const serializeAws_json1_1ELBInfoList = (input, context) => {
|
|
|
4379
4205
|
return input
|
|
4380
4206
|
.filter((e) => e != null)
|
|
4381
4207
|
.map((entry) => {
|
|
4382
|
-
if (entry === null) {
|
|
4383
|
-
return null;
|
|
4384
|
-
}
|
|
4385
4208
|
return serializeAws_json1_1ELBInfo(entry, context);
|
|
4386
4209
|
});
|
|
4387
4210
|
};
|
|
@@ -4389,9 +4212,6 @@ const serializeAws_json1_1FilterValueList = (input, context) => {
|
|
|
4389
4212
|
return input
|
|
4390
4213
|
.filter((e) => e != null)
|
|
4391
4214
|
.map((entry) => {
|
|
4392
|
-
if (entry === null) {
|
|
4393
|
-
return null;
|
|
4394
|
-
}
|
|
4395
4215
|
return entry;
|
|
4396
4216
|
});
|
|
4397
4217
|
};
|
|
@@ -4454,9 +4274,6 @@ const serializeAws_json1_1InstanceNameList = (input, context) => {
|
|
|
4454
4274
|
return input
|
|
4455
4275
|
.filter((e) => e != null)
|
|
4456
4276
|
.map((entry) => {
|
|
4457
|
-
if (entry === null) {
|
|
4458
|
-
return null;
|
|
4459
|
-
}
|
|
4460
4277
|
return entry;
|
|
4461
4278
|
});
|
|
4462
4279
|
};
|
|
@@ -4464,9 +4281,6 @@ const serializeAws_json1_1InstancesList = (input, context) => {
|
|
|
4464
4281
|
return input
|
|
4465
4282
|
.filter((e) => e != null)
|
|
4466
4283
|
.map((entry) => {
|
|
4467
|
-
if (entry === null) {
|
|
4468
|
-
return null;
|
|
4469
|
-
}
|
|
4470
4284
|
return entry;
|
|
4471
4285
|
});
|
|
4472
4286
|
};
|
|
@@ -4474,9 +4288,6 @@ const serializeAws_json1_1InstanceStatusList = (input, context) => {
|
|
|
4474
4288
|
return input
|
|
4475
4289
|
.filter((e) => e != null)
|
|
4476
4290
|
.map((entry) => {
|
|
4477
|
-
if (entry === null) {
|
|
4478
|
-
return null;
|
|
4479
|
-
}
|
|
4480
4291
|
return entry;
|
|
4481
4292
|
});
|
|
4482
4293
|
};
|
|
@@ -4484,9 +4295,6 @@ const serializeAws_json1_1InstanceTypeList = (input, context) => {
|
|
|
4484
4295
|
return input
|
|
4485
4296
|
.filter((e) => e != null)
|
|
4486
4297
|
.map((entry) => {
|
|
4487
|
-
if (entry === null) {
|
|
4488
|
-
return null;
|
|
4489
|
-
}
|
|
4490
4298
|
return entry;
|
|
4491
4299
|
});
|
|
4492
4300
|
};
|
|
@@ -4556,9 +4364,6 @@ const serializeAws_json1_1ListenerArnList = (input, context) => {
|
|
|
4556
4364
|
return input
|
|
4557
4365
|
.filter((e) => e != null)
|
|
4558
4366
|
.map((entry) => {
|
|
4559
|
-
if (entry === null) {
|
|
4560
|
-
return null;
|
|
4561
|
-
}
|
|
4562
4367
|
return entry;
|
|
4563
4368
|
});
|
|
4564
4369
|
};
|
|
@@ -4608,9 +4413,6 @@ const serializeAws_json1_1OnPremisesTagSetList = (input, context) => {
|
|
|
4608
4413
|
return input
|
|
4609
4414
|
.filter((e) => e != null)
|
|
4610
4415
|
.map((entry) => {
|
|
4611
|
-
if (entry === null) {
|
|
4612
|
-
return null;
|
|
4613
|
-
}
|
|
4614
4416
|
return serializeAws_json1_1TagFilterList(entry, context);
|
|
4615
4417
|
});
|
|
4616
4418
|
};
|
|
@@ -4668,9 +4470,6 @@ const serializeAws_json1_1RevisionLocationList = (input, context) => {
|
|
|
4668
4470
|
return input
|
|
4669
4471
|
.filter((e) => e != null)
|
|
4670
4472
|
.map((entry) => {
|
|
4671
|
-
if (entry === null) {
|
|
4672
|
-
return null;
|
|
4673
|
-
}
|
|
4674
4473
|
return serializeAws_json1_1RevisionLocation(entry, context);
|
|
4675
4474
|
});
|
|
4676
4475
|
};
|
|
@@ -4711,9 +4510,6 @@ const serializeAws_json1_1TagFilterList = (input, context) => {
|
|
|
4711
4510
|
return input
|
|
4712
4511
|
.filter((e) => e != null)
|
|
4713
4512
|
.map((entry) => {
|
|
4714
|
-
if (entry === null) {
|
|
4715
|
-
return null;
|
|
4716
|
-
}
|
|
4717
4513
|
return serializeAws_json1_1TagFilter(entry, context);
|
|
4718
4514
|
});
|
|
4719
4515
|
};
|
|
@@ -4721,9 +4517,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
4721
4517
|
return input
|
|
4722
4518
|
.filter((e) => e != null)
|
|
4723
4519
|
.map((entry) => {
|
|
4724
|
-
if (entry === null) {
|
|
4725
|
-
return null;
|
|
4726
|
-
}
|
|
4727
4520
|
return entry;
|
|
4728
4521
|
});
|
|
4729
4522
|
};
|
|
@@ -4731,9 +4524,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
4731
4524
|
return input
|
|
4732
4525
|
.filter((e) => e != null)
|
|
4733
4526
|
.map((entry) => {
|
|
4734
|
-
if (entry === null) {
|
|
4735
|
-
return null;
|
|
4736
|
-
}
|
|
4737
4527
|
return serializeAws_json1_1Tag(entry, context);
|
|
4738
4528
|
});
|
|
4739
4529
|
};
|
|
@@ -4763,9 +4553,6 @@ const serializeAws_json1_1TargetGroupInfoList = (input, context) => {
|
|
|
4763
4553
|
return input
|
|
4764
4554
|
.filter((e) => e != null)
|
|
4765
4555
|
.map((entry) => {
|
|
4766
|
-
if (entry === null) {
|
|
4767
|
-
return null;
|
|
4768
|
-
}
|
|
4769
4556
|
return serializeAws_json1_1TargetGroupInfo(entry, context);
|
|
4770
4557
|
});
|
|
4771
4558
|
};
|
|
@@ -4786,9 +4573,6 @@ const serializeAws_json1_1TargetGroupPairInfoList = (input, context) => {
|
|
|
4786
4573
|
return input
|
|
4787
4574
|
.filter((e) => e != null)
|
|
4788
4575
|
.map((entry) => {
|
|
4789
|
-
if (entry === null) {
|
|
4790
|
-
return null;
|
|
4791
|
-
}
|
|
4792
4576
|
return serializeAws_json1_1TargetGroupPairInfo(entry, context);
|
|
4793
4577
|
});
|
|
4794
4578
|
};
|
|
@@ -4796,9 +4580,6 @@ const serializeAws_json1_1TargetIdList = (input, context) => {
|
|
|
4796
4580
|
return input
|
|
4797
4581
|
.filter((e) => e != null)
|
|
4798
4582
|
.map((entry) => {
|
|
4799
|
-
if (entry === null) {
|
|
4800
|
-
return null;
|
|
4801
|
-
}
|
|
4802
4583
|
return entry;
|
|
4803
4584
|
});
|
|
4804
4585
|
};
|
|
@@ -4860,9 +4641,6 @@ const serializeAws_json1_1TriggerConfigList = (input, context) => {
|
|
|
4860
4641
|
return input
|
|
4861
4642
|
.filter((e) => e != null)
|
|
4862
4643
|
.map((entry) => {
|
|
4863
|
-
if (entry === null) {
|
|
4864
|
-
return null;
|
|
4865
|
-
}
|
|
4866
4644
|
return serializeAws_json1_1TriggerConfig(entry, context);
|
|
4867
4645
|
});
|
|
4868
4646
|
};
|
|
@@ -4870,9 +4648,6 @@ const serializeAws_json1_1TriggerEventTypeList = (input, context) => {
|
|
|
4870
4648
|
return input
|
|
4871
4649
|
.filter((e) => e != null)
|
|
4872
4650
|
.map((entry) => {
|
|
4873
|
-
if (entry === null) {
|
|
4874
|
-
return null;
|
|
4875
|
-
}
|
|
4876
4651
|
return entry;
|
|
4877
4652
|
});
|
|
4878
4653
|
};
|