@aws-sdk/client-apprunner 3.48.0 → 3.52.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 +35 -0
- package/dist-cjs/AppRunner.js +60 -0
- package/dist-cjs/commands/CreateVpcConnectorCommand.js +36 -0
- package/dist-cjs/commands/DeleteVpcConnectorCommand.js +36 -0
- package/dist-cjs/commands/DescribeVpcConnectorCommand.js +36 -0
- package/dist-cjs/commands/ListVpcConnectorsCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +79 -2
- package/dist-cjs/pagination/ListVpcConnectorsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +435 -1
- package/dist-es/AppRunner.js +60 -0
- package/dist-es/commands/CreateVpcConnectorCommand.js +39 -0
- package/dist-es/commands/DeleteVpcConnectorCommand.js +39 -0
- package/dist-es/commands/DescribeVpcConnectorCommand.js +39 -0
- package/dist-es/commands/ListVpcConnectorsCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +55 -1
- package/dist-es/pagination/ListVpcConnectorsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +456 -2
- package/dist-types/AppRunner.d.ts +33 -3
- package/dist-types/AppRunnerClient.d.ts +6 -2
- package/dist-types/commands/CreateAutoScalingConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/CreateVpcConnectorCommand.d.ts +36 -0
- package/dist-types/commands/DeleteVpcConnectorCommand.d.ts +36 -0
- package/dist-types/commands/DescribeVpcConnectorCommand.d.ts +35 -0
- package/dist-types/commands/ListVpcConnectorsCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +254 -11
- package/dist-types/pagination/ListVpcConnectorsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +12 -0
- package/dist-types/ts3.4/AppRunner.d.ts +20 -0
- package/dist-types/ts3.4/AppRunnerClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/CreateVpcConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteVpcConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeVpcConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListVpcConnectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +131 -0
- package/dist-types/ts3.4/pagination/ListVpcConnectorsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
- package/package.json +40 -34
|
@@ -45,6 +45,17 @@ export var serializeAws_json1_0CreateServiceCommand = function (input, context)
|
|
|
45
45
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
|
+
export var serializeAws_json1_0CreateVpcConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
|
+
var headers, body;
|
|
50
|
+
return __generator(this, function (_a) {
|
|
51
|
+
headers = {
|
|
52
|
+
"content-type": "application/x-amz-json-1.0",
|
|
53
|
+
"x-amz-target": "AppRunner.CreateVpcConnector",
|
|
54
|
+
};
|
|
55
|
+
body = JSON.stringify(serializeAws_json1_0CreateVpcConnectorRequest(input, context));
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
|
+
});
|
|
58
|
+
}); };
|
|
48
59
|
export var serializeAws_json1_0DeleteAutoScalingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
60
|
var headers, body;
|
|
50
61
|
return __generator(this, function (_a) {
|
|
@@ -78,6 +89,17 @@ export var serializeAws_json1_0DeleteServiceCommand = function (input, context)
|
|
|
78
89
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
90
|
});
|
|
80
91
|
}); };
|
|
92
|
+
export var serializeAws_json1_0DeleteVpcConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
93
|
+
var headers, body;
|
|
94
|
+
return __generator(this, function (_a) {
|
|
95
|
+
headers = {
|
|
96
|
+
"content-type": "application/x-amz-json-1.0",
|
|
97
|
+
"x-amz-target": "AppRunner.DeleteVpcConnector",
|
|
98
|
+
};
|
|
99
|
+
body = JSON.stringify(serializeAws_json1_0DeleteVpcConnectorRequest(input, context));
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
|
+
});
|
|
102
|
+
}); };
|
|
81
103
|
export var serializeAws_json1_0DescribeAutoScalingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
82
104
|
var headers, body;
|
|
83
105
|
return __generator(this, function (_a) {
|
|
@@ -111,6 +133,17 @@ export var serializeAws_json1_0DescribeServiceCommand = function (input, context
|
|
|
111
133
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
134
|
});
|
|
113
135
|
}); };
|
|
136
|
+
export var serializeAws_json1_0DescribeVpcConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
137
|
+
var headers, body;
|
|
138
|
+
return __generator(this, function (_a) {
|
|
139
|
+
headers = {
|
|
140
|
+
"content-type": "application/x-amz-json-1.0",
|
|
141
|
+
"x-amz-target": "AppRunner.DescribeVpcConnector",
|
|
142
|
+
};
|
|
143
|
+
body = JSON.stringify(serializeAws_json1_0DescribeVpcConnectorRequest(input, context));
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
|
+
});
|
|
146
|
+
}); };
|
|
114
147
|
export var serializeAws_json1_0DisassociateCustomDomainCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
115
148
|
var headers, body;
|
|
116
149
|
return __generator(this, function (_a) {
|
|
@@ -177,6 +210,17 @@ export var serializeAws_json1_0ListTagsForResourceCommand = function (input, con
|
|
|
177
210
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
211
|
});
|
|
179
212
|
}); };
|
|
213
|
+
export var serializeAws_json1_0ListVpcConnectorsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
214
|
+
var headers, body;
|
|
215
|
+
return __generator(this, function (_a) {
|
|
216
|
+
headers = {
|
|
217
|
+
"content-type": "application/x-amz-json-1.0",
|
|
218
|
+
"x-amz-target": "AppRunner.ListVpcConnectors",
|
|
219
|
+
};
|
|
220
|
+
body = JSON.stringify(serializeAws_json1_0ListVpcConnectorsRequest(input, context));
|
|
221
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
|
+
});
|
|
223
|
+
}); };
|
|
180
224
|
export var serializeAws_json1_0PauseServiceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
181
225
|
var headers, body;
|
|
182
226
|
return __generator(this, function (_a) {
|
|
@@ -531,6 +575,78 @@ var deserializeAws_json1_0CreateServiceCommandError = function (output, context)
|
|
|
531
575
|
}
|
|
532
576
|
});
|
|
533
577
|
}); };
|
|
578
|
+
export var deserializeAws_json1_0CreateVpcConnectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
579
|
+
var data, contents, response;
|
|
580
|
+
return __generator(this, function (_a) {
|
|
581
|
+
switch (_a.label) {
|
|
582
|
+
case 0:
|
|
583
|
+
if (output.statusCode >= 300) {
|
|
584
|
+
return [2, deserializeAws_json1_0CreateVpcConnectorCommandError(output, context)];
|
|
585
|
+
}
|
|
586
|
+
return [4, parseBody(output.body, context)];
|
|
587
|
+
case 1:
|
|
588
|
+
data = _a.sent();
|
|
589
|
+
contents = {};
|
|
590
|
+
contents = deserializeAws_json1_0CreateVpcConnectorResponse(data, context);
|
|
591
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
592
|
+
return [2, Promise.resolve(response)];
|
|
593
|
+
}
|
|
594
|
+
});
|
|
595
|
+
}); };
|
|
596
|
+
var deserializeAws_json1_0CreateVpcConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
597
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
598
|
+
var _f;
|
|
599
|
+
return __generator(this, function (_g) {
|
|
600
|
+
switch (_g.label) {
|
|
601
|
+
case 0:
|
|
602
|
+
_a = [__assign({}, output)];
|
|
603
|
+
_f = {};
|
|
604
|
+
return [4, parseBody(output.body, context)];
|
|
605
|
+
case 1:
|
|
606
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
607
|
+
errorCode = "UnknownError";
|
|
608
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
609
|
+
_b = errorCode;
|
|
610
|
+
switch (_b) {
|
|
611
|
+
case "InternalServiceErrorException": return [3, 2];
|
|
612
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException": return [3, 2];
|
|
613
|
+
case "InvalidRequestException": return [3, 4];
|
|
614
|
+
case "com.amazonaws.apprunner#InvalidRequestException": return [3, 4];
|
|
615
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
616
|
+
case "com.amazonaws.apprunner#ServiceQuotaExceededException": return [3, 6];
|
|
617
|
+
}
|
|
618
|
+
return [3, 8];
|
|
619
|
+
case 2:
|
|
620
|
+
_c = [{}];
|
|
621
|
+
return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
622
|
+
case 3:
|
|
623
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
624
|
+
return [3, 9];
|
|
625
|
+
case 4:
|
|
626
|
+
_d = [{}];
|
|
627
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
628
|
+
case 5:
|
|
629
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
630
|
+
return [3, 9];
|
|
631
|
+
case 6:
|
|
632
|
+
_e = [{}];
|
|
633
|
+
return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
634
|
+
case 7:
|
|
635
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
636
|
+
return [3, 9];
|
|
637
|
+
case 8:
|
|
638
|
+
parsedBody = parsedOutput.body;
|
|
639
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
640
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
641
|
+
_g.label = 9;
|
|
642
|
+
case 9:
|
|
643
|
+
message = response.message || response.Message || errorCode;
|
|
644
|
+
response.message = message;
|
|
645
|
+
delete response.Message;
|
|
646
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
647
|
+
}
|
|
648
|
+
});
|
|
649
|
+
}); };
|
|
534
650
|
export var deserializeAws_json1_0DeleteAutoScalingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
535
651
|
var data, contents, response;
|
|
536
652
|
return __generator(this, function (_a) {
|
|
@@ -755,6 +871,78 @@ var deserializeAws_json1_0DeleteServiceCommandError = function (output, context)
|
|
|
755
871
|
}
|
|
756
872
|
});
|
|
757
873
|
}); };
|
|
874
|
+
export var deserializeAws_json1_0DeleteVpcConnectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
875
|
+
var data, contents, response;
|
|
876
|
+
return __generator(this, function (_a) {
|
|
877
|
+
switch (_a.label) {
|
|
878
|
+
case 0:
|
|
879
|
+
if (output.statusCode >= 300) {
|
|
880
|
+
return [2, deserializeAws_json1_0DeleteVpcConnectorCommandError(output, context)];
|
|
881
|
+
}
|
|
882
|
+
return [4, parseBody(output.body, context)];
|
|
883
|
+
case 1:
|
|
884
|
+
data = _a.sent();
|
|
885
|
+
contents = {};
|
|
886
|
+
contents = deserializeAws_json1_0DeleteVpcConnectorResponse(data, context);
|
|
887
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
888
|
+
return [2, Promise.resolve(response)];
|
|
889
|
+
}
|
|
890
|
+
});
|
|
891
|
+
}); };
|
|
892
|
+
var deserializeAws_json1_0DeleteVpcConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
893
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
894
|
+
var _f;
|
|
895
|
+
return __generator(this, function (_g) {
|
|
896
|
+
switch (_g.label) {
|
|
897
|
+
case 0:
|
|
898
|
+
_a = [__assign({}, output)];
|
|
899
|
+
_f = {};
|
|
900
|
+
return [4, parseBody(output.body, context)];
|
|
901
|
+
case 1:
|
|
902
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
903
|
+
errorCode = "UnknownError";
|
|
904
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
905
|
+
_b = errorCode;
|
|
906
|
+
switch (_b) {
|
|
907
|
+
case "InternalServiceErrorException": return [3, 2];
|
|
908
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException": return [3, 2];
|
|
909
|
+
case "InvalidRequestException": return [3, 4];
|
|
910
|
+
case "com.amazonaws.apprunner#InvalidRequestException": return [3, 4];
|
|
911
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
912
|
+
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 6];
|
|
913
|
+
}
|
|
914
|
+
return [3, 8];
|
|
915
|
+
case 2:
|
|
916
|
+
_c = [{}];
|
|
917
|
+
return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
918
|
+
case 3:
|
|
919
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
920
|
+
return [3, 9];
|
|
921
|
+
case 4:
|
|
922
|
+
_d = [{}];
|
|
923
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
924
|
+
case 5:
|
|
925
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
926
|
+
return [3, 9];
|
|
927
|
+
case 6:
|
|
928
|
+
_e = [{}];
|
|
929
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
930
|
+
case 7:
|
|
931
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
932
|
+
return [3, 9];
|
|
933
|
+
case 8:
|
|
934
|
+
parsedBody = parsedOutput.body;
|
|
935
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
936
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
937
|
+
_g.label = 9;
|
|
938
|
+
case 9:
|
|
939
|
+
message = response.message || response.Message || errorCode;
|
|
940
|
+
response.message = message;
|
|
941
|
+
delete response.Message;
|
|
942
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
943
|
+
}
|
|
944
|
+
});
|
|
945
|
+
}); };
|
|
758
946
|
export var deserializeAws_json1_0DescribeAutoScalingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
759
947
|
var data, contents, response;
|
|
760
948
|
return __generator(this, function (_a) {
|
|
@@ -971,6 +1159,78 @@ var deserializeAws_json1_0DescribeServiceCommandError = function (output, contex
|
|
|
971
1159
|
}
|
|
972
1160
|
});
|
|
973
1161
|
}); };
|
|
1162
|
+
export var deserializeAws_json1_0DescribeVpcConnectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1163
|
+
var data, contents, response;
|
|
1164
|
+
return __generator(this, function (_a) {
|
|
1165
|
+
switch (_a.label) {
|
|
1166
|
+
case 0:
|
|
1167
|
+
if (output.statusCode >= 300) {
|
|
1168
|
+
return [2, deserializeAws_json1_0DescribeVpcConnectorCommandError(output, context)];
|
|
1169
|
+
}
|
|
1170
|
+
return [4, parseBody(output.body, context)];
|
|
1171
|
+
case 1:
|
|
1172
|
+
data = _a.sent();
|
|
1173
|
+
contents = {};
|
|
1174
|
+
contents = deserializeAws_json1_0DescribeVpcConnectorResponse(data, context);
|
|
1175
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1176
|
+
return [2, Promise.resolve(response)];
|
|
1177
|
+
}
|
|
1178
|
+
});
|
|
1179
|
+
}); };
|
|
1180
|
+
var deserializeAws_json1_0DescribeVpcConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1181
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
1182
|
+
var _f;
|
|
1183
|
+
return __generator(this, function (_g) {
|
|
1184
|
+
switch (_g.label) {
|
|
1185
|
+
case 0:
|
|
1186
|
+
_a = [__assign({}, output)];
|
|
1187
|
+
_f = {};
|
|
1188
|
+
return [4, parseBody(output.body, context)];
|
|
1189
|
+
case 1:
|
|
1190
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1191
|
+
errorCode = "UnknownError";
|
|
1192
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1193
|
+
_b = errorCode;
|
|
1194
|
+
switch (_b) {
|
|
1195
|
+
case "InternalServiceErrorException": return [3, 2];
|
|
1196
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException": return [3, 2];
|
|
1197
|
+
case "InvalidRequestException": return [3, 4];
|
|
1198
|
+
case "com.amazonaws.apprunner#InvalidRequestException": return [3, 4];
|
|
1199
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1200
|
+
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 6];
|
|
1201
|
+
}
|
|
1202
|
+
return [3, 8];
|
|
1203
|
+
case 2:
|
|
1204
|
+
_c = [{}];
|
|
1205
|
+
return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1206
|
+
case 3:
|
|
1207
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1208
|
+
return [3, 9];
|
|
1209
|
+
case 4:
|
|
1210
|
+
_d = [{}];
|
|
1211
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1212
|
+
case 5:
|
|
1213
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1214
|
+
return [3, 9];
|
|
1215
|
+
case 6:
|
|
1216
|
+
_e = [{}];
|
|
1217
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1218
|
+
case 7:
|
|
1219
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1220
|
+
return [3, 9];
|
|
1221
|
+
case 8:
|
|
1222
|
+
parsedBody = parsedOutput.body;
|
|
1223
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1224
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1225
|
+
_g.label = 9;
|
|
1226
|
+
case 9:
|
|
1227
|
+
message = response.message || response.Message || errorCode;
|
|
1228
|
+
response.message = message;
|
|
1229
|
+
delete response.Message;
|
|
1230
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1231
|
+
}
|
|
1232
|
+
});
|
|
1233
|
+
}); };
|
|
974
1234
|
export var deserializeAws_json1_0DisassociateCustomDomainCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
975
1235
|
var data, contents, response;
|
|
976
1236
|
return __generator(this, function (_a) {
|
|
@@ -1395,6 +1655,70 @@ var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, co
|
|
|
1395
1655
|
}
|
|
1396
1656
|
});
|
|
1397
1657
|
}); };
|
|
1658
|
+
export var deserializeAws_json1_0ListVpcConnectorsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1659
|
+
var data, contents, response;
|
|
1660
|
+
return __generator(this, function (_a) {
|
|
1661
|
+
switch (_a.label) {
|
|
1662
|
+
case 0:
|
|
1663
|
+
if (output.statusCode >= 300) {
|
|
1664
|
+
return [2, deserializeAws_json1_0ListVpcConnectorsCommandError(output, context)];
|
|
1665
|
+
}
|
|
1666
|
+
return [4, parseBody(output.body, context)];
|
|
1667
|
+
case 1:
|
|
1668
|
+
data = _a.sent();
|
|
1669
|
+
contents = {};
|
|
1670
|
+
contents = deserializeAws_json1_0ListVpcConnectorsResponse(data, context);
|
|
1671
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1672
|
+
return [2, Promise.resolve(response)];
|
|
1673
|
+
}
|
|
1674
|
+
});
|
|
1675
|
+
}); };
|
|
1676
|
+
var deserializeAws_json1_0ListVpcConnectorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1677
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
1678
|
+
var _e;
|
|
1679
|
+
return __generator(this, function (_f) {
|
|
1680
|
+
switch (_f.label) {
|
|
1681
|
+
case 0:
|
|
1682
|
+
_a = [__assign({}, output)];
|
|
1683
|
+
_e = {};
|
|
1684
|
+
return [4, parseBody(output.body, context)];
|
|
1685
|
+
case 1:
|
|
1686
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1687
|
+
errorCode = "UnknownError";
|
|
1688
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1689
|
+
_b = errorCode;
|
|
1690
|
+
switch (_b) {
|
|
1691
|
+
case "InternalServiceErrorException": return [3, 2];
|
|
1692
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException": return [3, 2];
|
|
1693
|
+
case "InvalidRequestException": return [3, 4];
|
|
1694
|
+
case "com.amazonaws.apprunner#InvalidRequestException": return [3, 4];
|
|
1695
|
+
}
|
|
1696
|
+
return [3, 6];
|
|
1697
|
+
case 2:
|
|
1698
|
+
_c = [{}];
|
|
1699
|
+
return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1700
|
+
case 3:
|
|
1701
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1702
|
+
return [3, 7];
|
|
1703
|
+
case 4:
|
|
1704
|
+
_d = [{}];
|
|
1705
|
+
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1706
|
+
case 5:
|
|
1707
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1708
|
+
return [3, 7];
|
|
1709
|
+
case 6:
|
|
1710
|
+
parsedBody = parsedOutput.body;
|
|
1711
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1712
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1713
|
+
_f.label = 7;
|
|
1714
|
+
case 7:
|
|
1715
|
+
message = response.message || response.Message || errorCode;
|
|
1716
|
+
response.message = message;
|
|
1717
|
+
delete response.Message;
|
|
1718
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1719
|
+
}
|
|
1720
|
+
});
|
|
1721
|
+
}); };
|
|
1398
1722
|
export var deserializeAws_json1_0PauseServiceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1399
1723
|
var data, contents, response;
|
|
1400
1724
|
return __generator(this, function (_a) {
|
|
@@ -1953,7 +2277,7 @@ var serializeAws_json1_0CreateConnectionRequest = function (input, context) {
|
|
|
1953
2277
|
input.ConnectionName !== null && { ConnectionName: input.ConnectionName })), (input.ProviderType !== undefined && input.ProviderType !== null && { ProviderType: input.ProviderType })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
1954
2278
|
};
|
|
1955
2279
|
var serializeAws_json1_0CreateServiceRequest = function (input, context) {
|
|
1956
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoScalingConfigurationArn !== undefined &&
|
|
2280
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoScalingConfigurationArn !== undefined &&
|
|
1957
2281
|
input.AutoScalingConfigurationArn !== null && { AutoScalingConfigurationArn: input.AutoScalingConfigurationArn })), (input.EncryptionConfiguration !== undefined &&
|
|
1958
2282
|
input.EncryptionConfiguration !== null && {
|
|
1959
2283
|
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
@@ -1963,11 +2287,22 @@ var serializeAws_json1_0CreateServiceRequest = function (input, context) {
|
|
|
1963
2287
|
})), (input.InstanceConfiguration !== undefined &&
|
|
1964
2288
|
input.InstanceConfiguration !== null && {
|
|
1965
2289
|
InstanceConfiguration: serializeAws_json1_0InstanceConfiguration(input.InstanceConfiguration, context),
|
|
2290
|
+
})), (input.NetworkConfiguration !== undefined &&
|
|
2291
|
+
input.NetworkConfiguration !== null && {
|
|
2292
|
+
NetworkConfiguration: serializeAws_json1_0NetworkConfiguration(input.NetworkConfiguration, context),
|
|
1966
2293
|
})), (input.ServiceName !== undefined && input.ServiceName !== null && { ServiceName: input.ServiceName })), (input.SourceConfiguration !== undefined &&
|
|
1967
2294
|
input.SourceConfiguration !== null && {
|
|
1968
2295
|
SourceConfiguration: serializeAws_json1_0SourceConfiguration(input.SourceConfiguration, context),
|
|
1969
2296
|
})), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
1970
2297
|
};
|
|
2298
|
+
var serializeAws_json1_0CreateVpcConnectorRequest = function (input, context) {
|
|
2299
|
+
return __assign(__assign(__assign(__assign({}, (input.SecurityGroups !== undefined &&
|
|
2300
|
+
input.SecurityGroups !== null && {
|
|
2301
|
+
SecurityGroups: serializeAws_json1_0StringList(input.SecurityGroups, context),
|
|
2302
|
+
})), (input.Subnets !== undefined &&
|
|
2303
|
+
input.Subnets !== null && { Subnets: serializeAws_json1_0StringList(input.Subnets, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) })), (input.VpcConnectorName !== undefined &&
|
|
2304
|
+
input.VpcConnectorName !== null && { VpcConnectorName: input.VpcConnectorName }));
|
|
2305
|
+
};
|
|
1971
2306
|
var serializeAws_json1_0DeleteAutoScalingConfigurationRequest = function (input, context) {
|
|
1972
2307
|
return __assign({}, (input.AutoScalingConfigurationArn !== undefined &&
|
|
1973
2308
|
input.AutoScalingConfigurationArn !== null && { AutoScalingConfigurationArn: input.AutoScalingConfigurationArn }));
|
|
@@ -1978,6 +2313,10 @@ var serializeAws_json1_0DeleteConnectionRequest = function (input, context) {
|
|
|
1978
2313
|
var serializeAws_json1_0DeleteServiceRequest = function (input, context) {
|
|
1979
2314
|
return __assign({}, (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }));
|
|
1980
2315
|
};
|
|
2316
|
+
var serializeAws_json1_0DeleteVpcConnectorRequest = function (input, context) {
|
|
2317
|
+
return __assign({}, (input.VpcConnectorArn !== undefined &&
|
|
2318
|
+
input.VpcConnectorArn !== null && { VpcConnectorArn: input.VpcConnectorArn }));
|
|
2319
|
+
};
|
|
1981
2320
|
var serializeAws_json1_0DescribeAutoScalingConfigurationRequest = function (input, context) {
|
|
1982
2321
|
return __assign({}, (input.AutoScalingConfigurationArn !== undefined &&
|
|
1983
2322
|
input.AutoScalingConfigurationArn !== null && { AutoScalingConfigurationArn: input.AutoScalingConfigurationArn }));
|
|
@@ -1988,9 +2327,17 @@ var serializeAws_json1_0DescribeCustomDomainsRequest = function (input, context)
|
|
|
1988
2327
|
var serializeAws_json1_0DescribeServiceRequest = function (input, context) {
|
|
1989
2328
|
return __assign({}, (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }));
|
|
1990
2329
|
};
|
|
2330
|
+
var serializeAws_json1_0DescribeVpcConnectorRequest = function (input, context) {
|
|
2331
|
+
return __assign({}, (input.VpcConnectorArn !== undefined &&
|
|
2332
|
+
input.VpcConnectorArn !== null && { VpcConnectorArn: input.VpcConnectorArn }));
|
|
2333
|
+
};
|
|
1991
2334
|
var serializeAws_json1_0DisassociateCustomDomainRequest = function (input, context) {
|
|
1992
2335
|
return __assign(__assign({}, (input.DomainName !== undefined && input.DomainName !== null && { DomainName: input.DomainName })), (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }));
|
|
1993
2336
|
};
|
|
2337
|
+
var serializeAws_json1_0EgressConfiguration = function (input, context) {
|
|
2338
|
+
return __assign(__assign({}, (input.EgressType !== undefined && input.EgressType !== null && { EgressType: input.EgressType })), (input.VpcConnectorArn !== undefined &&
|
|
2339
|
+
input.VpcConnectorArn !== null && { VpcConnectorArn: input.VpcConnectorArn }));
|
|
2340
|
+
};
|
|
1994
2341
|
var serializeAws_json1_0EncryptionConfiguration = function (input, context) {
|
|
1995
2342
|
return __assign({}, (input.KmsKey !== undefined && input.KmsKey !== null && { KmsKey: input.KmsKey }));
|
|
1996
2343
|
};
|
|
@@ -2036,6 +2383,15 @@ var serializeAws_json1_0ListServicesRequest = function (input, context) {
|
|
|
2036
2383
|
var serializeAws_json1_0ListTagsForResourceRequest = function (input, context) {
|
|
2037
2384
|
return __assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
|
|
2038
2385
|
};
|
|
2386
|
+
var serializeAws_json1_0ListVpcConnectorsRequest = function (input, context) {
|
|
2387
|
+
return __assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
2388
|
+
};
|
|
2389
|
+
var serializeAws_json1_0NetworkConfiguration = function (input, context) {
|
|
2390
|
+
return __assign({}, (input.EgressConfiguration !== undefined &&
|
|
2391
|
+
input.EgressConfiguration !== null && {
|
|
2392
|
+
EgressConfiguration: serializeAws_json1_0EgressConfiguration(input.EgressConfiguration, context),
|
|
2393
|
+
}));
|
|
2394
|
+
};
|
|
2039
2395
|
var serializeAws_json1_0PauseServiceRequest = function (input, context) {
|
|
2040
2396
|
return __assign({}, (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }));
|
|
2041
2397
|
};
|
|
@@ -2071,6 +2427,16 @@ var serializeAws_json1_0SourceConfiguration = function (input, context) {
|
|
|
2071
2427
|
var serializeAws_json1_0StartDeploymentRequest = function (input, context) {
|
|
2072
2428
|
return __assign({}, (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }));
|
|
2073
2429
|
};
|
|
2430
|
+
var serializeAws_json1_0StringList = function (input, context) {
|
|
2431
|
+
return input
|
|
2432
|
+
.filter(function (e) { return e != null; })
|
|
2433
|
+
.map(function (entry) {
|
|
2434
|
+
if (entry === null) {
|
|
2435
|
+
return null;
|
|
2436
|
+
}
|
|
2437
|
+
return entry;
|
|
2438
|
+
});
|
|
2439
|
+
};
|
|
2074
2440
|
var serializeAws_json1_0Tag = function (input, context) {
|
|
2075
2441
|
return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
|
|
2076
2442
|
};
|
|
@@ -2102,13 +2468,16 @@ var serializeAws_json1_0UntagResourceRequest = function (input, context) {
|
|
|
2102
2468
|
input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }));
|
|
2103
2469
|
};
|
|
2104
2470
|
var serializeAws_json1_0UpdateServiceRequest = function (input, context) {
|
|
2105
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.AutoScalingConfigurationArn !== undefined &&
|
|
2471
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoScalingConfigurationArn !== undefined &&
|
|
2106
2472
|
input.AutoScalingConfigurationArn !== null && { AutoScalingConfigurationArn: input.AutoScalingConfigurationArn })), (input.HealthCheckConfiguration !== undefined &&
|
|
2107
2473
|
input.HealthCheckConfiguration !== null && {
|
|
2108
2474
|
HealthCheckConfiguration: serializeAws_json1_0HealthCheckConfiguration(input.HealthCheckConfiguration, context),
|
|
2109
2475
|
})), (input.InstanceConfiguration !== undefined &&
|
|
2110
2476
|
input.InstanceConfiguration !== null && {
|
|
2111
2477
|
InstanceConfiguration: serializeAws_json1_0InstanceConfiguration(input.InstanceConfiguration, context),
|
|
2478
|
+
})), (input.NetworkConfiguration !== undefined &&
|
|
2479
|
+
input.NetworkConfiguration !== null && {
|
|
2480
|
+
NetworkConfiguration: serializeAws_json1_0NetworkConfiguration(input.NetworkConfiguration, context),
|
|
2112
2481
|
})), (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn })), (input.SourceConfiguration !== undefined &&
|
|
2113
2482
|
input.SourceConfiguration !== null && {
|
|
2114
2483
|
SourceConfiguration: serializeAws_json1_0SourceConfiguration(input.SourceConfiguration, context),
|
|
@@ -2266,6 +2635,13 @@ var deserializeAws_json1_0CreateServiceResponse = function (output, context) {
|
|
|
2266
2635
|
: undefined,
|
|
2267
2636
|
};
|
|
2268
2637
|
};
|
|
2638
|
+
var deserializeAws_json1_0CreateVpcConnectorResponse = function (output, context) {
|
|
2639
|
+
return {
|
|
2640
|
+
VpcConnector: output.VpcConnector !== undefined && output.VpcConnector !== null
|
|
2641
|
+
? deserializeAws_json1_0VpcConnector(output.VpcConnector, context)
|
|
2642
|
+
: undefined,
|
|
2643
|
+
};
|
|
2644
|
+
};
|
|
2269
2645
|
var deserializeAws_json1_0CustomDomain = function (output, context) {
|
|
2270
2646
|
return {
|
|
2271
2647
|
CertificateValidationRecords: output.CertificateValidationRecords !== undefined && output.CertificateValidationRecords !== null
|
|
@@ -2308,6 +2684,13 @@ var deserializeAws_json1_0DeleteServiceResponse = function (output, context) {
|
|
|
2308
2684
|
: undefined,
|
|
2309
2685
|
};
|
|
2310
2686
|
};
|
|
2687
|
+
var deserializeAws_json1_0DeleteVpcConnectorResponse = function (output, context) {
|
|
2688
|
+
return {
|
|
2689
|
+
VpcConnector: output.VpcConnector !== undefined && output.VpcConnector !== null
|
|
2690
|
+
? deserializeAws_json1_0VpcConnector(output.VpcConnector, context)
|
|
2691
|
+
: undefined,
|
|
2692
|
+
};
|
|
2693
|
+
};
|
|
2311
2694
|
var deserializeAws_json1_0DescribeAutoScalingConfigurationResponse = function (output, context) {
|
|
2312
2695
|
return {
|
|
2313
2696
|
AutoScalingConfiguration: output.AutoScalingConfiguration !== undefined && output.AutoScalingConfiguration !== null
|
|
@@ -2332,6 +2715,13 @@ var deserializeAws_json1_0DescribeServiceResponse = function (output, context) {
|
|
|
2332
2715
|
: undefined,
|
|
2333
2716
|
};
|
|
2334
2717
|
};
|
|
2718
|
+
var deserializeAws_json1_0DescribeVpcConnectorResponse = function (output, context) {
|
|
2719
|
+
return {
|
|
2720
|
+
VpcConnector: output.VpcConnector !== undefined && output.VpcConnector !== null
|
|
2721
|
+
? deserializeAws_json1_0VpcConnector(output.VpcConnector, context)
|
|
2722
|
+
: undefined,
|
|
2723
|
+
};
|
|
2724
|
+
};
|
|
2335
2725
|
var deserializeAws_json1_0DisassociateCustomDomainResponse = function (output, context) {
|
|
2336
2726
|
return {
|
|
2337
2727
|
CustomDomain: output.CustomDomain !== undefined && output.CustomDomain !== null
|
|
@@ -2341,6 +2731,12 @@ var deserializeAws_json1_0DisassociateCustomDomainResponse = function (output, c
|
|
|
2341
2731
|
ServiceArn: __expectString(output.ServiceArn),
|
|
2342
2732
|
};
|
|
2343
2733
|
};
|
|
2734
|
+
var deserializeAws_json1_0EgressConfiguration = function (output, context) {
|
|
2735
|
+
return {
|
|
2736
|
+
EgressType: __expectString(output.EgressType),
|
|
2737
|
+
VpcConnectorArn: __expectString(output.VpcConnectorArn),
|
|
2738
|
+
};
|
|
2739
|
+
};
|
|
2344
2740
|
var deserializeAws_json1_0EncryptionConfiguration = function (output, context) {
|
|
2345
2741
|
return {
|
|
2346
2742
|
KmsKey: __expectString(output.KmsKey),
|
|
@@ -2435,6 +2831,21 @@ var deserializeAws_json1_0ListTagsForResourceResponse = function (output, contex
|
|
|
2435
2831
|
: undefined,
|
|
2436
2832
|
};
|
|
2437
2833
|
};
|
|
2834
|
+
var deserializeAws_json1_0ListVpcConnectorsResponse = function (output, context) {
|
|
2835
|
+
return {
|
|
2836
|
+
NextToken: __expectString(output.NextToken),
|
|
2837
|
+
VpcConnectors: output.VpcConnectors !== undefined && output.VpcConnectors !== null
|
|
2838
|
+
? deserializeAws_json1_0VpcConnectors(output.VpcConnectors, context)
|
|
2839
|
+
: undefined,
|
|
2840
|
+
};
|
|
2841
|
+
};
|
|
2842
|
+
var deserializeAws_json1_0NetworkConfiguration = function (output, context) {
|
|
2843
|
+
return {
|
|
2844
|
+
EgressConfiguration: output.EgressConfiguration !== undefined && output.EgressConfiguration !== null
|
|
2845
|
+
? deserializeAws_json1_0EgressConfiguration(output.EgressConfiguration, context)
|
|
2846
|
+
: undefined,
|
|
2847
|
+
};
|
|
2848
|
+
};
|
|
2438
2849
|
var deserializeAws_json1_0OperationSummary = function (output, context) {
|
|
2439
2850
|
return {
|
|
2440
2851
|
EndedAt: output.EndedAt !== undefined && output.EndedAt !== null
|
|
@@ -2513,6 +2924,9 @@ var deserializeAws_json1_0Service = function (output, context) {
|
|
|
2513
2924
|
InstanceConfiguration: output.InstanceConfiguration !== undefined && output.InstanceConfiguration !== null
|
|
2514
2925
|
? deserializeAws_json1_0InstanceConfiguration(output.InstanceConfiguration, context)
|
|
2515
2926
|
: undefined,
|
|
2927
|
+
NetworkConfiguration: output.NetworkConfiguration !== undefined && output.NetworkConfiguration !== null
|
|
2928
|
+
? deserializeAws_json1_0NetworkConfiguration(output.NetworkConfiguration, context)
|
|
2929
|
+
: undefined,
|
|
2516
2930
|
ServiceArn: __expectString(output.ServiceArn),
|
|
2517
2931
|
ServiceId: __expectString(output.ServiceId),
|
|
2518
2932
|
ServiceName: __expectString(output.ServiceName),
|
|
@@ -2581,6 +2995,16 @@ var deserializeAws_json1_0StartDeploymentResponse = function (output, context) {
|
|
|
2581
2995
|
OperationId: __expectString(output.OperationId),
|
|
2582
2996
|
};
|
|
2583
2997
|
};
|
|
2998
|
+
var deserializeAws_json1_0StringList = function (output, context) {
|
|
2999
|
+
return (output || [])
|
|
3000
|
+
.filter(function (e) { return e != null; })
|
|
3001
|
+
.map(function (entry) {
|
|
3002
|
+
if (entry === null) {
|
|
3003
|
+
return null;
|
|
3004
|
+
}
|
|
3005
|
+
return __expectString(entry);
|
|
3006
|
+
});
|
|
3007
|
+
};
|
|
2584
3008
|
var deserializeAws_json1_0Tag = function (output, context) {
|
|
2585
3009
|
return {
|
|
2586
3010
|
Key: __expectString(output.Key),
|
|
@@ -2611,6 +3035,36 @@ var deserializeAws_json1_0UpdateServiceResponse = function (output, context) {
|
|
|
2611
3035
|
: undefined,
|
|
2612
3036
|
};
|
|
2613
3037
|
};
|
|
3038
|
+
var deserializeAws_json1_0VpcConnector = function (output, context) {
|
|
3039
|
+
return {
|
|
3040
|
+
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
3041
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
3042
|
+
: undefined,
|
|
3043
|
+
DeletedAt: output.DeletedAt !== undefined && output.DeletedAt !== null
|
|
3044
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeletedAt)))
|
|
3045
|
+
: undefined,
|
|
3046
|
+
SecurityGroups: output.SecurityGroups !== undefined && output.SecurityGroups !== null
|
|
3047
|
+
? deserializeAws_json1_0StringList(output.SecurityGroups, context)
|
|
3048
|
+
: undefined,
|
|
3049
|
+
Status: __expectString(output.Status),
|
|
3050
|
+
Subnets: output.Subnets !== undefined && output.Subnets !== null
|
|
3051
|
+
? deserializeAws_json1_0StringList(output.Subnets, context)
|
|
3052
|
+
: undefined,
|
|
3053
|
+
VpcConnectorArn: __expectString(output.VpcConnectorArn),
|
|
3054
|
+
VpcConnectorName: __expectString(output.VpcConnectorName),
|
|
3055
|
+
VpcConnectorRevision: __expectInt32(output.VpcConnectorRevision),
|
|
3056
|
+
};
|
|
3057
|
+
};
|
|
3058
|
+
var deserializeAws_json1_0VpcConnectors = function (output, context) {
|
|
3059
|
+
return (output || [])
|
|
3060
|
+
.filter(function (e) { return e != null; })
|
|
3061
|
+
.map(function (entry) {
|
|
3062
|
+
if (entry === null) {
|
|
3063
|
+
return null;
|
|
3064
|
+
}
|
|
3065
|
+
return deserializeAws_json1_0VpcConnector(entry, context);
|
|
3066
|
+
});
|
|
3067
|
+
};
|
|
2614
3068
|
var deserializeMetadata = function (output) {
|
|
2615
3069
|
var _a;
|
|
2616
3070
|
return ({
|