@aws-sdk/client-apprunner 3.50.0 → 3.53.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 +31 -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/index.js +3 -0
- package/dist-cjs/models/AppRunnerServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +153 -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 +544 -675
- 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/index.js +1 -0
- package/dist-es/models/AppRunnerServiceException.js +12 -0
- package/dist-es/models/models_0.js +125 -2
- package/dist-es/pagination/ListVpcConnectorsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +844 -759
- 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/index.d.ts +1 -0
- package/dist-types/models/AppRunnerServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +294 -27
- 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 +135 -0
- package/dist-types/ts3.4/AppRunnerClient.d.ts +99 -0
- package/dist-types/ts3.4/commands/AssociateCustomDomainCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateAutoScalingConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateConnectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateServiceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateVpcConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAutoScalingConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteConnectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteServiceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteVpcConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeAutoScalingConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeCustomDomainsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeServiceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeVpcConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateCustomDomainCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAutoScalingConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListConnectionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListOperationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListServicesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListVpcConnectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PauseServiceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ResumeServiceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartDeploymentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateServiceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +26 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/AppRunnerServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1027 -0
- package/dist-types/ts3.4/pagination/DescribeCustomDomainsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAutoScalingConfigurationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListConnectionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListOperationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListServicesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListVpcConnectorsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +80 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { AppRunnerServiceException as __BaseException } from "../models/AppRunnerServiceException";
|
|
5
|
+
import { InternalServiceErrorException, InvalidRequestException, InvalidStateException, ResourceNotFoundException, ServiceQuotaExceededException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_json1_0AssociateCustomDomainCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var headers, body;
|
|
6
8
|
return __generator(this, function (_a) {
|
|
@@ -45,6 +47,17 @@ export var serializeAws_json1_0CreateServiceCommand = function (input, context)
|
|
|
45
47
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
48
|
});
|
|
47
49
|
}); };
|
|
50
|
+
export var serializeAws_json1_0CreateVpcConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
|
+
var headers, body;
|
|
52
|
+
return __generator(this, function (_a) {
|
|
53
|
+
headers = {
|
|
54
|
+
"content-type": "application/x-amz-json-1.0",
|
|
55
|
+
"x-amz-target": "AppRunner.CreateVpcConnector",
|
|
56
|
+
};
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_0CreateVpcConnectorRequest(input, context));
|
|
58
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
59
|
+
});
|
|
60
|
+
}); };
|
|
48
61
|
export var serializeAws_json1_0DeleteAutoScalingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
62
|
var headers, body;
|
|
50
63
|
return __generator(this, function (_a) {
|
|
@@ -78,6 +91,17 @@ export var serializeAws_json1_0DeleteServiceCommand = function (input, context)
|
|
|
78
91
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
92
|
});
|
|
80
93
|
}); };
|
|
94
|
+
export var serializeAws_json1_0DeleteVpcConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
+
var headers, body;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
headers = {
|
|
98
|
+
"content-type": "application/x-amz-json-1.0",
|
|
99
|
+
"x-amz-target": "AppRunner.DeleteVpcConnector",
|
|
100
|
+
};
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_0DeleteVpcConnectorRequest(input, context));
|
|
102
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
103
|
+
});
|
|
104
|
+
}); };
|
|
81
105
|
export var serializeAws_json1_0DescribeAutoScalingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
82
106
|
var headers, body;
|
|
83
107
|
return __generator(this, function (_a) {
|
|
@@ -111,6 +135,17 @@ export var serializeAws_json1_0DescribeServiceCommand = function (input, context
|
|
|
111
135
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
136
|
});
|
|
113
137
|
}); };
|
|
138
|
+
export var serializeAws_json1_0DescribeVpcConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
139
|
+
var headers, body;
|
|
140
|
+
return __generator(this, function (_a) {
|
|
141
|
+
headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.0",
|
|
143
|
+
"x-amz-target": "AppRunner.DescribeVpcConnector",
|
|
144
|
+
};
|
|
145
|
+
body = JSON.stringify(serializeAws_json1_0DescribeVpcConnectorRequest(input, context));
|
|
146
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
147
|
+
});
|
|
148
|
+
}); };
|
|
114
149
|
export var serializeAws_json1_0DisassociateCustomDomainCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
115
150
|
var headers, body;
|
|
116
151
|
return __generator(this, function (_a) {
|
|
@@ -177,6 +212,17 @@ export var serializeAws_json1_0ListTagsForResourceCommand = function (input, con
|
|
|
177
212
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
213
|
});
|
|
179
214
|
}); };
|
|
215
|
+
export var serializeAws_json1_0ListVpcConnectorsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
216
|
+
var headers, body;
|
|
217
|
+
return __generator(this, function (_a) {
|
|
218
|
+
headers = {
|
|
219
|
+
"content-type": "application/x-amz-json-1.0",
|
|
220
|
+
"x-amz-target": "AppRunner.ListVpcConnectors",
|
|
221
|
+
};
|
|
222
|
+
body = JSON.stringify(serializeAws_json1_0ListVpcConnectorsRequest(input, context));
|
|
223
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
224
|
+
});
|
|
225
|
+
}); };
|
|
180
226
|
export var serializeAws_json1_0PauseServiceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
181
227
|
var headers, body;
|
|
182
228
|
return __generator(this, function (_a) {
|
|
@@ -262,16 +308,16 @@ export var deserializeAws_json1_0AssociateCustomDomainCommand = function (output
|
|
|
262
308
|
});
|
|
263
309
|
}); };
|
|
264
310
|
var deserializeAws_json1_0AssociateCustomDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
265
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
266
|
-
var
|
|
267
|
-
return __generator(this, function (
|
|
268
|
-
switch (
|
|
311
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
312
|
+
var _c;
|
|
313
|
+
return __generator(this, function (_d) {
|
|
314
|
+
switch (_d.label) {
|
|
269
315
|
case 0:
|
|
270
316
|
_a = [__assign({}, output)];
|
|
271
|
-
|
|
317
|
+
_c = {};
|
|
272
318
|
return [4, parseBody(output.body, context)];
|
|
273
319
|
case 1:
|
|
274
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
320
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
275
321
|
errorCode = "UnknownError";
|
|
276
322
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
277
323
|
_b = errorCode;
|
|
@@ -284,34 +330,20 @@ var deserializeAws_json1_0AssociateCustomDomainCommandError = function (output,
|
|
|
284
330
|
case "com.amazonaws.apprunner#InvalidStateException": return [3, 6];
|
|
285
331
|
}
|
|
286
332
|
return [3, 8];
|
|
287
|
-
case 2:
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
case
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
case 4:
|
|
294
|
-
_d = [{}];
|
|
295
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
296
|
-
case 5:
|
|
297
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
298
|
-
return [3, 9];
|
|
299
|
-
case 6:
|
|
300
|
-
_e = [{}];
|
|
301
|
-
return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
302
|
-
case 7:
|
|
303
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
304
|
-
return [3, 9];
|
|
333
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
334
|
+
case 3: throw _d.sent();
|
|
335
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
336
|
+
case 5: throw _d.sent();
|
|
337
|
+
case 6: return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
338
|
+
case 7: throw _d.sent();
|
|
305
339
|
case 8:
|
|
306
340
|
parsedBody = parsedOutput.body;
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
response
|
|
313
|
-
delete response.Message;
|
|
314
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
341
|
+
response = new __BaseException({
|
|
342
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
343
|
+
$fault: "client",
|
|
344
|
+
$metadata: deserializeMetadata(output),
|
|
345
|
+
});
|
|
346
|
+
throw __decorateServiceException(response, parsedBody);
|
|
315
347
|
}
|
|
316
348
|
});
|
|
317
349
|
}); };
|
|
@@ -334,16 +366,16 @@ export var deserializeAws_json1_0CreateAutoScalingConfigurationCommand = functio
|
|
|
334
366
|
});
|
|
335
367
|
}); };
|
|
336
368
|
var deserializeAws_json1_0CreateAutoScalingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
337
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
338
|
-
var
|
|
339
|
-
return __generator(this, function (
|
|
340
|
-
switch (
|
|
369
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
370
|
+
var _c;
|
|
371
|
+
return __generator(this, function (_d) {
|
|
372
|
+
switch (_d.label) {
|
|
341
373
|
case 0:
|
|
342
374
|
_a = [__assign({}, output)];
|
|
343
|
-
|
|
375
|
+
_c = {};
|
|
344
376
|
return [4, parseBody(output.body, context)];
|
|
345
377
|
case 1:
|
|
346
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
378
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
347
379
|
errorCode = "UnknownError";
|
|
348
380
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
349
381
|
_b = errorCode;
|
|
@@ -356,34 +388,20 @@ var deserializeAws_json1_0CreateAutoScalingConfigurationCommandError = function
|
|
|
356
388
|
case "com.amazonaws.apprunner#ServiceQuotaExceededException": return [3, 6];
|
|
357
389
|
}
|
|
358
390
|
return [3, 8];
|
|
359
|
-
case 2:
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
case
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
case 4:
|
|
366
|
-
_d = [{}];
|
|
367
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
368
|
-
case 5:
|
|
369
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
370
|
-
return [3, 9];
|
|
371
|
-
case 6:
|
|
372
|
-
_e = [{}];
|
|
373
|
-
return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
374
|
-
case 7:
|
|
375
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
376
|
-
return [3, 9];
|
|
391
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
392
|
+
case 3: throw _d.sent();
|
|
393
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
394
|
+
case 5: throw _d.sent();
|
|
395
|
+
case 6: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
396
|
+
case 7: throw _d.sent();
|
|
377
397
|
case 8:
|
|
378
398
|
parsedBody = parsedOutput.body;
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
response
|
|
385
|
-
delete response.Message;
|
|
386
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
399
|
+
response = new __BaseException({
|
|
400
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
401
|
+
$fault: "client",
|
|
402
|
+
$metadata: deserializeMetadata(output),
|
|
403
|
+
});
|
|
404
|
+
throw __decorateServiceException(response, parsedBody);
|
|
387
405
|
}
|
|
388
406
|
});
|
|
389
407
|
}); };
|
|
@@ -406,16 +424,16 @@ export var deserializeAws_json1_0CreateConnectionCommand = function (output, con
|
|
|
406
424
|
});
|
|
407
425
|
}); };
|
|
408
426
|
var deserializeAws_json1_0CreateConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
409
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
410
|
-
var
|
|
411
|
-
return __generator(this, function (
|
|
412
|
-
switch (
|
|
427
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
428
|
+
var _c;
|
|
429
|
+
return __generator(this, function (_d) {
|
|
430
|
+
switch (_d.label) {
|
|
413
431
|
case 0:
|
|
414
432
|
_a = [__assign({}, output)];
|
|
415
|
-
|
|
433
|
+
_c = {};
|
|
416
434
|
return [4, parseBody(output.body, context)];
|
|
417
435
|
case 1:
|
|
418
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
436
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
419
437
|
errorCode = "UnknownError";
|
|
420
438
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
421
439
|
_b = errorCode;
|
|
@@ -428,34 +446,20 @@ var deserializeAws_json1_0CreateConnectionCommandError = function (output, conte
|
|
|
428
446
|
case "com.amazonaws.apprunner#ServiceQuotaExceededException": return [3, 6];
|
|
429
447
|
}
|
|
430
448
|
return [3, 8];
|
|
431
|
-
case 2:
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
case
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
case 4:
|
|
438
|
-
_d = [{}];
|
|
439
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
440
|
-
case 5:
|
|
441
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
442
|
-
return [3, 9];
|
|
443
|
-
case 6:
|
|
444
|
-
_e = [{}];
|
|
445
|
-
return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
446
|
-
case 7:
|
|
447
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
448
|
-
return [3, 9];
|
|
449
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
450
|
+
case 3: throw _d.sent();
|
|
451
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
452
|
+
case 5: throw _d.sent();
|
|
453
|
+
case 6: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
454
|
+
case 7: throw _d.sent();
|
|
449
455
|
case 8:
|
|
450
456
|
parsedBody = parsedOutput.body;
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
response
|
|
457
|
-
delete response.Message;
|
|
458
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
457
|
+
response = new __BaseException({
|
|
458
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
459
|
+
$fault: "client",
|
|
460
|
+
$metadata: deserializeMetadata(output),
|
|
461
|
+
});
|
|
462
|
+
throw __decorateServiceException(response, parsedBody);
|
|
459
463
|
}
|
|
460
464
|
});
|
|
461
465
|
}); };
|
|
@@ -478,16 +482,16 @@ export var deserializeAws_json1_0CreateServiceCommand = function (output, contex
|
|
|
478
482
|
});
|
|
479
483
|
}); };
|
|
480
484
|
var deserializeAws_json1_0CreateServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
481
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
482
|
-
var
|
|
483
|
-
return __generator(this, function (
|
|
484
|
-
switch (
|
|
485
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
486
|
+
var _c;
|
|
487
|
+
return __generator(this, function (_d) {
|
|
488
|
+
switch (_d.label) {
|
|
485
489
|
case 0:
|
|
486
490
|
_a = [__assign({}, output)];
|
|
487
|
-
|
|
491
|
+
_c = {};
|
|
488
492
|
return [4, parseBody(output.body, context)];
|
|
489
493
|
case 1:
|
|
490
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
494
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
491
495
|
errorCode = "UnknownError";
|
|
492
496
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
493
497
|
_b = errorCode;
|
|
@@ -500,34 +504,78 @@ var deserializeAws_json1_0CreateServiceCommandError = function (output, context)
|
|
|
500
504
|
case "com.amazonaws.apprunner#ServiceQuotaExceededException": return [3, 6];
|
|
501
505
|
}
|
|
502
506
|
return [3, 8];
|
|
503
|
-
case 2:
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
case
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
case 4:
|
|
510
|
-
_d = [{}];
|
|
511
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
512
|
-
case 5:
|
|
513
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
514
|
-
return [3, 9];
|
|
515
|
-
case 6:
|
|
516
|
-
_e = [{}];
|
|
517
|
-
return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
518
|
-
case 7:
|
|
519
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
520
|
-
return [3, 9];
|
|
507
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
508
|
+
case 3: throw _d.sent();
|
|
509
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
510
|
+
case 5: throw _d.sent();
|
|
511
|
+
case 6: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
512
|
+
case 7: throw _d.sent();
|
|
521
513
|
case 8:
|
|
522
514
|
parsedBody = parsedOutput.body;
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
response
|
|
529
|
-
|
|
530
|
-
|
|
515
|
+
response = new __BaseException({
|
|
516
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
517
|
+
$fault: "client",
|
|
518
|
+
$metadata: deserializeMetadata(output),
|
|
519
|
+
});
|
|
520
|
+
throw __decorateServiceException(response, parsedBody);
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
}); };
|
|
524
|
+
export var deserializeAws_json1_0CreateVpcConnectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
525
|
+
var data, contents, response;
|
|
526
|
+
return __generator(this, function (_a) {
|
|
527
|
+
switch (_a.label) {
|
|
528
|
+
case 0:
|
|
529
|
+
if (output.statusCode >= 300) {
|
|
530
|
+
return [2, deserializeAws_json1_0CreateVpcConnectorCommandError(output, context)];
|
|
531
|
+
}
|
|
532
|
+
return [4, parseBody(output.body, context)];
|
|
533
|
+
case 1:
|
|
534
|
+
data = _a.sent();
|
|
535
|
+
contents = {};
|
|
536
|
+
contents = deserializeAws_json1_0CreateVpcConnectorResponse(data, context);
|
|
537
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
538
|
+
return [2, Promise.resolve(response)];
|
|
539
|
+
}
|
|
540
|
+
});
|
|
541
|
+
}); };
|
|
542
|
+
var deserializeAws_json1_0CreateVpcConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
543
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
544
|
+
var _c;
|
|
545
|
+
return __generator(this, function (_d) {
|
|
546
|
+
switch (_d.label) {
|
|
547
|
+
case 0:
|
|
548
|
+
_a = [__assign({}, output)];
|
|
549
|
+
_c = {};
|
|
550
|
+
return [4, parseBody(output.body, context)];
|
|
551
|
+
case 1:
|
|
552
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
553
|
+
errorCode = "UnknownError";
|
|
554
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
555
|
+
_b = errorCode;
|
|
556
|
+
switch (_b) {
|
|
557
|
+
case "InternalServiceErrorException": return [3, 2];
|
|
558
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException": return [3, 2];
|
|
559
|
+
case "InvalidRequestException": return [3, 4];
|
|
560
|
+
case "com.amazonaws.apprunner#InvalidRequestException": return [3, 4];
|
|
561
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
562
|
+
case "com.amazonaws.apprunner#ServiceQuotaExceededException": return [3, 6];
|
|
563
|
+
}
|
|
564
|
+
return [3, 8];
|
|
565
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
566
|
+
case 3: throw _d.sent();
|
|
567
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
568
|
+
case 5: throw _d.sent();
|
|
569
|
+
case 6: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
570
|
+
case 7: throw _d.sent();
|
|
571
|
+
case 8:
|
|
572
|
+
parsedBody = parsedOutput.body;
|
|
573
|
+
response = new __BaseException({
|
|
574
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
575
|
+
$fault: "client",
|
|
576
|
+
$metadata: deserializeMetadata(output),
|
|
577
|
+
});
|
|
578
|
+
throw __decorateServiceException(response, parsedBody);
|
|
531
579
|
}
|
|
532
580
|
});
|
|
533
581
|
}); };
|
|
@@ -550,16 +598,16 @@ export var deserializeAws_json1_0DeleteAutoScalingConfigurationCommand = functio
|
|
|
550
598
|
});
|
|
551
599
|
}); };
|
|
552
600
|
var deserializeAws_json1_0DeleteAutoScalingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
553
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
554
|
-
var
|
|
555
|
-
return __generator(this, function (
|
|
556
|
-
switch (
|
|
601
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
602
|
+
var _c;
|
|
603
|
+
return __generator(this, function (_d) {
|
|
604
|
+
switch (_d.label) {
|
|
557
605
|
case 0:
|
|
558
606
|
_a = [__assign({}, output)];
|
|
559
|
-
|
|
607
|
+
_c = {};
|
|
560
608
|
return [4, parseBody(output.body, context)];
|
|
561
609
|
case 1:
|
|
562
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
610
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
563
611
|
errorCode = "UnknownError";
|
|
564
612
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
613
|
_b = errorCode;
|
|
@@ -572,34 +620,20 @@ var deserializeAws_json1_0DeleteAutoScalingConfigurationCommandError = function
|
|
|
572
620
|
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 6];
|
|
573
621
|
}
|
|
574
622
|
return [3, 8];
|
|
575
|
-
case 2:
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
case
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
case 4:
|
|
582
|
-
_d = [{}];
|
|
583
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
584
|
-
case 5:
|
|
585
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
586
|
-
return [3, 9];
|
|
587
|
-
case 6:
|
|
588
|
-
_e = [{}];
|
|
589
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
590
|
-
case 7:
|
|
591
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
592
|
-
return [3, 9];
|
|
623
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
624
|
+
case 3: throw _d.sent();
|
|
625
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
626
|
+
case 5: throw _d.sent();
|
|
627
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
628
|
+
case 7: throw _d.sent();
|
|
593
629
|
case 8:
|
|
594
630
|
parsedBody = parsedOutput.body;
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
response
|
|
601
|
-
delete response.Message;
|
|
602
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
631
|
+
response = new __BaseException({
|
|
632
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
633
|
+
$fault: "client",
|
|
634
|
+
$metadata: deserializeMetadata(output),
|
|
635
|
+
});
|
|
636
|
+
throw __decorateServiceException(response, parsedBody);
|
|
603
637
|
}
|
|
604
638
|
});
|
|
605
639
|
}); };
|
|
@@ -622,16 +656,16 @@ export var deserializeAws_json1_0DeleteConnectionCommand = function (output, con
|
|
|
622
656
|
});
|
|
623
657
|
}); };
|
|
624
658
|
var deserializeAws_json1_0DeleteConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
625
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
626
|
-
var
|
|
627
|
-
return __generator(this, function (
|
|
628
|
-
switch (
|
|
659
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
660
|
+
var _c;
|
|
661
|
+
return __generator(this, function (_d) {
|
|
662
|
+
switch (_d.label) {
|
|
629
663
|
case 0:
|
|
630
664
|
_a = [__assign({}, output)];
|
|
631
|
-
|
|
665
|
+
_c = {};
|
|
632
666
|
return [4, parseBody(output.body, context)];
|
|
633
667
|
case 1:
|
|
634
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
668
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
635
669
|
errorCode = "UnknownError";
|
|
636
670
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
637
671
|
_b = errorCode;
|
|
@@ -644,34 +678,20 @@ var deserializeAws_json1_0DeleteConnectionCommandError = function (output, conte
|
|
|
644
678
|
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 6];
|
|
645
679
|
}
|
|
646
680
|
return [3, 8];
|
|
647
|
-
case 2:
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
case
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
case 4:
|
|
654
|
-
_d = [{}];
|
|
655
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
656
|
-
case 5:
|
|
657
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
658
|
-
return [3, 9];
|
|
659
|
-
case 6:
|
|
660
|
-
_e = [{}];
|
|
661
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
662
|
-
case 7:
|
|
663
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
664
|
-
return [3, 9];
|
|
681
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
682
|
+
case 3: throw _d.sent();
|
|
683
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
684
|
+
case 5: throw _d.sent();
|
|
685
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
686
|
+
case 7: throw _d.sent();
|
|
665
687
|
case 8:
|
|
666
688
|
parsedBody = parsedOutput.body;
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
response
|
|
673
|
-
delete response.Message;
|
|
674
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
689
|
+
response = new __BaseException({
|
|
690
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
691
|
+
$fault: "client",
|
|
692
|
+
$metadata: deserializeMetadata(output),
|
|
693
|
+
});
|
|
694
|
+
throw __decorateServiceException(response, parsedBody);
|
|
675
695
|
}
|
|
676
696
|
});
|
|
677
697
|
}); };
|
|
@@ -694,16 +714,16 @@ export var deserializeAws_json1_0DeleteServiceCommand = function (output, contex
|
|
|
694
714
|
});
|
|
695
715
|
}); };
|
|
696
716
|
var deserializeAws_json1_0DeleteServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
697
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
698
|
-
var
|
|
699
|
-
return __generator(this, function (
|
|
700
|
-
switch (
|
|
717
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
718
|
+
var _c;
|
|
719
|
+
return __generator(this, function (_d) {
|
|
720
|
+
switch (_d.label) {
|
|
701
721
|
case 0:
|
|
702
722
|
_a = [__assign({}, output)];
|
|
703
|
-
|
|
723
|
+
_c = {};
|
|
704
724
|
return [4, parseBody(output.body, context)];
|
|
705
725
|
case 1:
|
|
706
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
726
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
707
727
|
errorCode = "UnknownError";
|
|
708
728
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
729
|
_b = errorCode;
|
|
@@ -718,40 +738,80 @@ var deserializeAws_json1_0DeleteServiceCommandError = function (output, context)
|
|
|
718
738
|
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 8];
|
|
719
739
|
}
|
|
720
740
|
return [3, 10];
|
|
721
|
-
case 2:
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
case
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
case 4
|
|
728
|
-
|
|
729
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
730
|
-
case 5:
|
|
731
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
732
|
-
return [3, 11];
|
|
733
|
-
case 6:
|
|
734
|
-
_e = [{}];
|
|
735
|
-
return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
736
|
-
case 7:
|
|
737
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
738
|
-
return [3, 11];
|
|
739
|
-
case 8:
|
|
740
|
-
_f = [{}];
|
|
741
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
742
|
-
case 9:
|
|
743
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
744
|
-
return [3, 11];
|
|
741
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
742
|
+
case 3: throw _d.sent();
|
|
743
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
744
|
+
case 5: throw _d.sent();
|
|
745
|
+
case 6: return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
746
|
+
case 7: throw _d.sent();
|
|
747
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
748
|
+
case 9: throw _d.sent();
|
|
745
749
|
case 10:
|
|
746
750
|
parsedBody = parsedOutput.body;
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
response
|
|
753
|
-
|
|
754
|
-
|
|
751
|
+
response = new __BaseException({
|
|
752
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
753
|
+
$fault: "client",
|
|
754
|
+
$metadata: deserializeMetadata(output),
|
|
755
|
+
});
|
|
756
|
+
throw __decorateServiceException(response, parsedBody);
|
|
757
|
+
}
|
|
758
|
+
});
|
|
759
|
+
}); };
|
|
760
|
+
export var deserializeAws_json1_0DeleteVpcConnectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
761
|
+
var data, contents, response;
|
|
762
|
+
return __generator(this, function (_a) {
|
|
763
|
+
switch (_a.label) {
|
|
764
|
+
case 0:
|
|
765
|
+
if (output.statusCode >= 300) {
|
|
766
|
+
return [2, deserializeAws_json1_0DeleteVpcConnectorCommandError(output, context)];
|
|
767
|
+
}
|
|
768
|
+
return [4, parseBody(output.body, context)];
|
|
769
|
+
case 1:
|
|
770
|
+
data = _a.sent();
|
|
771
|
+
contents = {};
|
|
772
|
+
contents = deserializeAws_json1_0DeleteVpcConnectorResponse(data, context);
|
|
773
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
774
|
+
return [2, Promise.resolve(response)];
|
|
775
|
+
}
|
|
776
|
+
});
|
|
777
|
+
}); };
|
|
778
|
+
var deserializeAws_json1_0DeleteVpcConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
779
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
780
|
+
var _c;
|
|
781
|
+
return __generator(this, function (_d) {
|
|
782
|
+
switch (_d.label) {
|
|
783
|
+
case 0:
|
|
784
|
+
_a = [__assign({}, output)];
|
|
785
|
+
_c = {};
|
|
786
|
+
return [4, parseBody(output.body, context)];
|
|
787
|
+
case 1:
|
|
788
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
789
|
+
errorCode = "UnknownError";
|
|
790
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
791
|
+
_b = errorCode;
|
|
792
|
+
switch (_b) {
|
|
793
|
+
case "InternalServiceErrorException": return [3, 2];
|
|
794
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException": return [3, 2];
|
|
795
|
+
case "InvalidRequestException": return [3, 4];
|
|
796
|
+
case "com.amazonaws.apprunner#InvalidRequestException": return [3, 4];
|
|
797
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
798
|
+
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 6];
|
|
799
|
+
}
|
|
800
|
+
return [3, 8];
|
|
801
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
802
|
+
case 3: throw _d.sent();
|
|
803
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
804
|
+
case 5: throw _d.sent();
|
|
805
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
806
|
+
case 7: throw _d.sent();
|
|
807
|
+
case 8:
|
|
808
|
+
parsedBody = parsedOutput.body;
|
|
809
|
+
response = new __BaseException({
|
|
810
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
811
|
+
$fault: "client",
|
|
812
|
+
$metadata: deserializeMetadata(output),
|
|
813
|
+
});
|
|
814
|
+
throw __decorateServiceException(response, parsedBody);
|
|
755
815
|
}
|
|
756
816
|
});
|
|
757
817
|
}); };
|
|
@@ -774,16 +834,16 @@ export var deserializeAws_json1_0DescribeAutoScalingConfigurationCommand = funct
|
|
|
774
834
|
});
|
|
775
835
|
}); };
|
|
776
836
|
var deserializeAws_json1_0DescribeAutoScalingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
777
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
778
|
-
var
|
|
779
|
-
return __generator(this, function (
|
|
780
|
-
switch (
|
|
837
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
838
|
+
var _c;
|
|
839
|
+
return __generator(this, function (_d) {
|
|
840
|
+
switch (_d.label) {
|
|
781
841
|
case 0:
|
|
782
842
|
_a = [__assign({}, output)];
|
|
783
|
-
|
|
843
|
+
_c = {};
|
|
784
844
|
return [4, parseBody(output.body, context)];
|
|
785
845
|
case 1:
|
|
786
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
846
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
787
847
|
errorCode = "UnknownError";
|
|
788
848
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
849
|
_b = errorCode;
|
|
@@ -796,34 +856,20 @@ var deserializeAws_json1_0DescribeAutoScalingConfigurationCommandError = functio
|
|
|
796
856
|
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 6];
|
|
797
857
|
}
|
|
798
858
|
return [3, 8];
|
|
799
|
-
case 2:
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
case
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
case 4:
|
|
806
|
-
_d = [{}];
|
|
807
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
808
|
-
case 5:
|
|
809
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
810
|
-
return [3, 9];
|
|
811
|
-
case 6:
|
|
812
|
-
_e = [{}];
|
|
813
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
814
|
-
case 7:
|
|
815
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
816
|
-
return [3, 9];
|
|
859
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
860
|
+
case 3: throw _d.sent();
|
|
861
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
862
|
+
case 5: throw _d.sent();
|
|
863
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
864
|
+
case 7: throw _d.sent();
|
|
817
865
|
case 8:
|
|
818
866
|
parsedBody = parsedOutput.body;
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
response
|
|
825
|
-
delete response.Message;
|
|
826
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
867
|
+
response = new __BaseException({
|
|
868
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
869
|
+
$fault: "client",
|
|
870
|
+
$metadata: deserializeMetadata(output),
|
|
871
|
+
});
|
|
872
|
+
throw __decorateServiceException(response, parsedBody);
|
|
827
873
|
}
|
|
828
874
|
});
|
|
829
875
|
}); };
|
|
@@ -846,16 +892,16 @@ export var deserializeAws_json1_0DescribeCustomDomainsCommand = function (output
|
|
|
846
892
|
});
|
|
847
893
|
}); };
|
|
848
894
|
var deserializeAws_json1_0DescribeCustomDomainsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
849
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
850
|
-
var
|
|
851
|
-
return __generator(this, function (
|
|
852
|
-
switch (
|
|
895
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
896
|
+
var _c;
|
|
897
|
+
return __generator(this, function (_d) {
|
|
898
|
+
switch (_d.label) {
|
|
853
899
|
case 0:
|
|
854
900
|
_a = [__assign({}, output)];
|
|
855
|
-
|
|
901
|
+
_c = {};
|
|
856
902
|
return [4, parseBody(output.body, context)];
|
|
857
903
|
case 1:
|
|
858
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
904
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
859
905
|
errorCode = "UnknownError";
|
|
860
906
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
861
907
|
_b = errorCode;
|
|
@@ -868,34 +914,20 @@ var deserializeAws_json1_0DescribeCustomDomainsCommandError = function (output,
|
|
|
868
914
|
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 6];
|
|
869
915
|
}
|
|
870
916
|
return [3, 8];
|
|
871
|
-
case 2:
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
case
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
case 4:
|
|
878
|
-
_d = [{}];
|
|
879
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
880
|
-
case 5:
|
|
881
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
882
|
-
return [3, 9];
|
|
883
|
-
case 6:
|
|
884
|
-
_e = [{}];
|
|
885
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
886
|
-
case 7:
|
|
887
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
888
|
-
return [3, 9];
|
|
917
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
918
|
+
case 3: throw _d.sent();
|
|
919
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
920
|
+
case 5: throw _d.sent();
|
|
921
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
922
|
+
case 7: throw _d.sent();
|
|
889
923
|
case 8:
|
|
890
924
|
parsedBody = parsedOutput.body;
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
response
|
|
897
|
-
delete response.Message;
|
|
898
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
925
|
+
response = new __BaseException({
|
|
926
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
927
|
+
$fault: "client",
|
|
928
|
+
$metadata: deserializeMetadata(output),
|
|
929
|
+
});
|
|
930
|
+
throw __decorateServiceException(response, parsedBody);
|
|
899
931
|
}
|
|
900
932
|
});
|
|
901
933
|
}); };
|
|
@@ -918,16 +950,16 @@ export var deserializeAws_json1_0DescribeServiceCommand = function (output, cont
|
|
|
918
950
|
});
|
|
919
951
|
}); };
|
|
920
952
|
var deserializeAws_json1_0DescribeServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
921
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
922
|
-
var
|
|
923
|
-
return __generator(this, function (
|
|
924
|
-
switch (
|
|
953
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
954
|
+
var _c;
|
|
955
|
+
return __generator(this, function (_d) {
|
|
956
|
+
switch (_d.label) {
|
|
925
957
|
case 0:
|
|
926
958
|
_a = [__assign({}, output)];
|
|
927
|
-
|
|
959
|
+
_c = {};
|
|
928
960
|
return [4, parseBody(output.body, context)];
|
|
929
961
|
case 1:
|
|
930
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
962
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
931
963
|
errorCode = "UnknownError";
|
|
932
964
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
965
|
_b = errorCode;
|
|
@@ -940,34 +972,78 @@ var deserializeAws_json1_0DescribeServiceCommandError = function (output, contex
|
|
|
940
972
|
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 6];
|
|
941
973
|
}
|
|
942
974
|
return [3, 8];
|
|
943
|
-
case 2:
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
case
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
case 4:
|
|
950
|
-
_d = [{}];
|
|
951
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
952
|
-
case 5:
|
|
953
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
954
|
-
return [3, 9];
|
|
955
|
-
case 6:
|
|
956
|
-
_e = [{}];
|
|
957
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
958
|
-
case 7:
|
|
959
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
960
|
-
return [3, 9];
|
|
975
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
976
|
+
case 3: throw _d.sent();
|
|
977
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
978
|
+
case 5: throw _d.sent();
|
|
979
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
980
|
+
case 7: throw _d.sent();
|
|
961
981
|
case 8:
|
|
962
982
|
parsedBody = parsedOutput.body;
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
response
|
|
969
|
-
|
|
970
|
-
|
|
983
|
+
response = new __BaseException({
|
|
984
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
985
|
+
$fault: "client",
|
|
986
|
+
$metadata: deserializeMetadata(output),
|
|
987
|
+
});
|
|
988
|
+
throw __decorateServiceException(response, parsedBody);
|
|
989
|
+
}
|
|
990
|
+
});
|
|
991
|
+
}); };
|
|
992
|
+
export var deserializeAws_json1_0DescribeVpcConnectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
993
|
+
var data, contents, response;
|
|
994
|
+
return __generator(this, function (_a) {
|
|
995
|
+
switch (_a.label) {
|
|
996
|
+
case 0:
|
|
997
|
+
if (output.statusCode >= 300) {
|
|
998
|
+
return [2, deserializeAws_json1_0DescribeVpcConnectorCommandError(output, context)];
|
|
999
|
+
}
|
|
1000
|
+
return [4, parseBody(output.body, context)];
|
|
1001
|
+
case 1:
|
|
1002
|
+
data = _a.sent();
|
|
1003
|
+
contents = {};
|
|
1004
|
+
contents = deserializeAws_json1_0DescribeVpcConnectorResponse(data, context);
|
|
1005
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1006
|
+
return [2, Promise.resolve(response)];
|
|
1007
|
+
}
|
|
1008
|
+
});
|
|
1009
|
+
}); };
|
|
1010
|
+
var deserializeAws_json1_0DescribeVpcConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1011
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1012
|
+
var _c;
|
|
1013
|
+
return __generator(this, function (_d) {
|
|
1014
|
+
switch (_d.label) {
|
|
1015
|
+
case 0:
|
|
1016
|
+
_a = [__assign({}, output)];
|
|
1017
|
+
_c = {};
|
|
1018
|
+
return [4, parseBody(output.body, context)];
|
|
1019
|
+
case 1:
|
|
1020
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1021
|
+
errorCode = "UnknownError";
|
|
1022
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1023
|
+
_b = errorCode;
|
|
1024
|
+
switch (_b) {
|
|
1025
|
+
case "InternalServiceErrorException": return [3, 2];
|
|
1026
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException": return [3, 2];
|
|
1027
|
+
case "InvalidRequestException": return [3, 4];
|
|
1028
|
+
case "com.amazonaws.apprunner#InvalidRequestException": return [3, 4];
|
|
1029
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1030
|
+
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 6];
|
|
1031
|
+
}
|
|
1032
|
+
return [3, 8];
|
|
1033
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1034
|
+
case 3: throw _d.sent();
|
|
1035
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1036
|
+
case 5: throw _d.sent();
|
|
1037
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1038
|
+
case 7: throw _d.sent();
|
|
1039
|
+
case 8:
|
|
1040
|
+
parsedBody = parsedOutput.body;
|
|
1041
|
+
response = new __BaseException({
|
|
1042
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1043
|
+
$fault: "client",
|
|
1044
|
+
$metadata: deserializeMetadata(output),
|
|
1045
|
+
});
|
|
1046
|
+
throw __decorateServiceException(response, parsedBody);
|
|
971
1047
|
}
|
|
972
1048
|
});
|
|
973
1049
|
}); };
|
|
@@ -990,16 +1066,16 @@ export var deserializeAws_json1_0DisassociateCustomDomainCommand = function (out
|
|
|
990
1066
|
});
|
|
991
1067
|
}); };
|
|
992
1068
|
var deserializeAws_json1_0DisassociateCustomDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
993
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
994
|
-
var
|
|
995
|
-
return __generator(this, function (
|
|
996
|
-
switch (
|
|
1069
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1070
|
+
var _c;
|
|
1071
|
+
return __generator(this, function (_d) {
|
|
1072
|
+
switch (_d.label) {
|
|
997
1073
|
case 0:
|
|
998
1074
|
_a = [__assign({}, output)];
|
|
999
|
-
|
|
1075
|
+
_c = {};
|
|
1000
1076
|
return [4, parseBody(output.body, context)];
|
|
1001
1077
|
case 1:
|
|
1002
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1078
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1003
1079
|
errorCode = "UnknownError";
|
|
1004
1080
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1005
1081
|
_b = errorCode;
|
|
@@ -1014,40 +1090,22 @@ var deserializeAws_json1_0DisassociateCustomDomainCommandError = function (outpu
|
|
|
1014
1090
|
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 8];
|
|
1015
1091
|
}
|
|
1016
1092
|
return [3, 10];
|
|
1017
|
-
case 2:
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
case
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
case 4
|
|
1024
|
-
|
|
1025
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1026
|
-
case 5:
|
|
1027
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1028
|
-
return [3, 11];
|
|
1029
|
-
case 6:
|
|
1030
|
-
_e = [{}];
|
|
1031
|
-
return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1032
|
-
case 7:
|
|
1033
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1034
|
-
return [3, 11];
|
|
1035
|
-
case 8:
|
|
1036
|
-
_f = [{}];
|
|
1037
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1038
|
-
case 9:
|
|
1039
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1040
|
-
return [3, 11];
|
|
1093
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1094
|
+
case 3: throw _d.sent();
|
|
1095
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1096
|
+
case 5: throw _d.sent();
|
|
1097
|
+
case 6: return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1098
|
+
case 7: throw _d.sent();
|
|
1099
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1100
|
+
case 9: throw _d.sent();
|
|
1041
1101
|
case 10:
|
|
1042
1102
|
parsedBody = parsedOutput.body;
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
response
|
|
1049
|
-
delete response.Message;
|
|
1050
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1103
|
+
response = new __BaseException({
|
|
1104
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1105
|
+
$fault: "client",
|
|
1106
|
+
$metadata: deserializeMetadata(output),
|
|
1107
|
+
});
|
|
1108
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1051
1109
|
}
|
|
1052
1110
|
});
|
|
1053
1111
|
}); };
|
|
@@ -1070,16 +1128,16 @@ export var deserializeAws_json1_0ListAutoScalingConfigurationsCommand = function
|
|
|
1070
1128
|
});
|
|
1071
1129
|
}); };
|
|
1072
1130
|
var deserializeAws_json1_0ListAutoScalingConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1073
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1074
|
-
var
|
|
1075
|
-
return __generator(this, function (
|
|
1076
|
-
switch (
|
|
1131
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1132
|
+
var _c;
|
|
1133
|
+
return __generator(this, function (_d) {
|
|
1134
|
+
switch (_d.label) {
|
|
1077
1135
|
case 0:
|
|
1078
1136
|
_a = [__assign({}, output)];
|
|
1079
|
-
|
|
1137
|
+
_c = {};
|
|
1080
1138
|
return [4, parseBody(output.body, context)];
|
|
1081
1139
|
case 1:
|
|
1082
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1140
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1083
1141
|
errorCode = "UnknownError";
|
|
1084
1142
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1085
1143
|
_b = errorCode;
|
|
@@ -1090,28 +1148,18 @@ var deserializeAws_json1_0ListAutoScalingConfigurationsCommandError = function (
|
|
|
1090
1148
|
case "com.amazonaws.apprunner#InvalidRequestException": return [3, 4];
|
|
1091
1149
|
}
|
|
1092
1150
|
return [3, 6];
|
|
1093
|
-
case 2:
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
case
|
|
1097
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1098
|
-
return [3, 7];
|
|
1099
|
-
case 4:
|
|
1100
|
-
_d = [{}];
|
|
1101
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1102
|
-
case 5:
|
|
1103
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1104
|
-
return [3, 7];
|
|
1151
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1152
|
+
case 3: throw _d.sent();
|
|
1153
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1154
|
+
case 5: throw _d.sent();
|
|
1105
1155
|
case 6:
|
|
1106
1156
|
parsedBody = parsedOutput.body;
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
response
|
|
1113
|
-
delete response.Message;
|
|
1114
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1157
|
+
response = new __BaseException({
|
|
1158
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1159
|
+
$fault: "client",
|
|
1160
|
+
$metadata: deserializeMetadata(output),
|
|
1161
|
+
});
|
|
1162
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1115
1163
|
}
|
|
1116
1164
|
});
|
|
1117
1165
|
}); };
|
|
@@ -1134,16 +1182,16 @@ export var deserializeAws_json1_0ListConnectionsCommand = function (output, cont
|
|
|
1134
1182
|
});
|
|
1135
1183
|
}); };
|
|
1136
1184
|
var deserializeAws_json1_0ListConnectionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1137
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1138
|
-
var
|
|
1139
|
-
return __generator(this, function (
|
|
1140
|
-
switch (
|
|
1185
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1186
|
+
var _c;
|
|
1187
|
+
return __generator(this, function (_d) {
|
|
1188
|
+
switch (_d.label) {
|
|
1141
1189
|
case 0:
|
|
1142
1190
|
_a = [__assign({}, output)];
|
|
1143
|
-
|
|
1191
|
+
_c = {};
|
|
1144
1192
|
return [4, parseBody(output.body, context)];
|
|
1145
1193
|
case 1:
|
|
1146
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1194
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1147
1195
|
errorCode = "UnknownError";
|
|
1148
1196
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1149
1197
|
_b = errorCode;
|
|
@@ -1154,28 +1202,18 @@ var deserializeAws_json1_0ListConnectionsCommandError = function (output, contex
|
|
|
1154
1202
|
case "com.amazonaws.apprunner#InvalidRequestException": return [3, 4];
|
|
1155
1203
|
}
|
|
1156
1204
|
return [3, 6];
|
|
1157
|
-
case 2:
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
case
|
|
1161
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1162
|
-
return [3, 7];
|
|
1163
|
-
case 4:
|
|
1164
|
-
_d = [{}];
|
|
1165
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1166
|
-
case 5:
|
|
1167
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1168
|
-
return [3, 7];
|
|
1205
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1206
|
+
case 3: throw _d.sent();
|
|
1207
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1208
|
+
case 5: throw _d.sent();
|
|
1169
1209
|
case 6:
|
|
1170
1210
|
parsedBody = parsedOutput.body;
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
response
|
|
1177
|
-
delete response.Message;
|
|
1178
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1211
|
+
response = new __BaseException({
|
|
1212
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1213
|
+
$fault: "client",
|
|
1214
|
+
$metadata: deserializeMetadata(output),
|
|
1215
|
+
});
|
|
1216
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1179
1217
|
}
|
|
1180
1218
|
});
|
|
1181
1219
|
}); };
|
|
@@ -1198,16 +1236,16 @@ export var deserializeAws_json1_0ListOperationsCommand = function (output, conte
|
|
|
1198
1236
|
});
|
|
1199
1237
|
}); };
|
|
1200
1238
|
var deserializeAws_json1_0ListOperationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1201
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1202
|
-
var
|
|
1203
|
-
return __generator(this, function (
|
|
1204
|
-
switch (
|
|
1239
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1240
|
+
var _c;
|
|
1241
|
+
return __generator(this, function (_d) {
|
|
1242
|
+
switch (_d.label) {
|
|
1205
1243
|
case 0:
|
|
1206
1244
|
_a = [__assign({}, output)];
|
|
1207
|
-
|
|
1245
|
+
_c = {};
|
|
1208
1246
|
return [4, parseBody(output.body, context)];
|
|
1209
1247
|
case 1:
|
|
1210
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1248
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1211
1249
|
errorCode = "UnknownError";
|
|
1212
1250
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1213
1251
|
_b = errorCode;
|
|
@@ -1220,34 +1258,20 @@ var deserializeAws_json1_0ListOperationsCommandError = function (output, context
|
|
|
1220
1258
|
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 6];
|
|
1221
1259
|
}
|
|
1222
1260
|
return [3, 8];
|
|
1223
|
-
case 2:
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
case
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
case 4:
|
|
1230
|
-
_d = [{}];
|
|
1231
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1232
|
-
case 5:
|
|
1233
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1234
|
-
return [3, 9];
|
|
1235
|
-
case 6:
|
|
1236
|
-
_e = [{}];
|
|
1237
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1238
|
-
case 7:
|
|
1239
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1240
|
-
return [3, 9];
|
|
1261
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1262
|
+
case 3: throw _d.sent();
|
|
1263
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1264
|
+
case 5: throw _d.sent();
|
|
1265
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1266
|
+
case 7: throw _d.sent();
|
|
1241
1267
|
case 8:
|
|
1242
1268
|
parsedBody = parsedOutput.body;
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
response
|
|
1249
|
-
delete response.Message;
|
|
1250
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1269
|
+
response = new __BaseException({
|
|
1270
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1271
|
+
$fault: "client",
|
|
1272
|
+
$metadata: deserializeMetadata(output),
|
|
1273
|
+
});
|
|
1274
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1251
1275
|
}
|
|
1252
1276
|
});
|
|
1253
1277
|
}); };
|
|
@@ -1270,16 +1294,16 @@ export var deserializeAws_json1_0ListServicesCommand = function (output, context
|
|
|
1270
1294
|
});
|
|
1271
1295
|
}); };
|
|
1272
1296
|
var deserializeAws_json1_0ListServicesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1273
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1274
|
-
var
|
|
1275
|
-
return __generator(this, function (
|
|
1276
|
-
switch (
|
|
1297
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1298
|
+
var _c;
|
|
1299
|
+
return __generator(this, function (_d) {
|
|
1300
|
+
switch (_d.label) {
|
|
1277
1301
|
case 0:
|
|
1278
1302
|
_a = [__assign({}, output)];
|
|
1279
|
-
|
|
1303
|
+
_c = {};
|
|
1280
1304
|
return [4, parseBody(output.body, context)];
|
|
1281
1305
|
case 1:
|
|
1282
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1306
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1283
1307
|
errorCode = "UnknownError";
|
|
1284
1308
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
1309
|
_b = errorCode;
|
|
@@ -1290,28 +1314,18 @@ var deserializeAws_json1_0ListServicesCommandError = function (output, context)
|
|
|
1290
1314
|
case "com.amazonaws.apprunner#InvalidRequestException": return [3, 4];
|
|
1291
1315
|
}
|
|
1292
1316
|
return [3, 6];
|
|
1293
|
-
case 2:
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
case
|
|
1297
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1298
|
-
return [3, 7];
|
|
1299
|
-
case 4:
|
|
1300
|
-
_d = [{}];
|
|
1301
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1302
|
-
case 5:
|
|
1303
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1304
|
-
return [3, 7];
|
|
1317
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1318
|
+
case 3: throw _d.sent();
|
|
1319
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1320
|
+
case 5: throw _d.sent();
|
|
1305
1321
|
case 6:
|
|
1306
1322
|
parsedBody = parsedOutput.body;
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
response
|
|
1313
|
-
delete response.Message;
|
|
1314
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1323
|
+
response = new __BaseException({
|
|
1324
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1325
|
+
$fault: "client",
|
|
1326
|
+
$metadata: deserializeMetadata(output),
|
|
1327
|
+
});
|
|
1328
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1315
1329
|
}
|
|
1316
1330
|
});
|
|
1317
1331
|
}); };
|
|
@@ -1334,16 +1348,16 @@ export var deserializeAws_json1_0ListTagsForResourceCommand = function (output,
|
|
|
1334
1348
|
});
|
|
1335
1349
|
}); };
|
|
1336
1350
|
var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1337
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1338
|
-
var
|
|
1339
|
-
return __generator(this, function (
|
|
1340
|
-
switch (
|
|
1351
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1352
|
+
var _c;
|
|
1353
|
+
return __generator(this, function (_d) {
|
|
1354
|
+
switch (_d.label) {
|
|
1341
1355
|
case 0:
|
|
1342
1356
|
_a = [__assign({}, output)];
|
|
1343
|
-
|
|
1357
|
+
_c = {};
|
|
1344
1358
|
return [4, parseBody(output.body, context)];
|
|
1345
1359
|
case 1:
|
|
1346
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1360
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1347
1361
|
errorCode = "UnknownError";
|
|
1348
1362
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1349
1363
|
_b = errorCode;
|
|
@@ -1358,40 +1372,76 @@ var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, co
|
|
|
1358
1372
|
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 8];
|
|
1359
1373
|
}
|
|
1360
1374
|
return [3, 10];
|
|
1361
|
-
case 2:
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
case
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
case 4
|
|
1368
|
-
|
|
1369
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1370
|
-
case 5:
|
|
1371
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1372
|
-
return [3, 11];
|
|
1373
|
-
case 6:
|
|
1374
|
-
_e = [{}];
|
|
1375
|
-
return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1376
|
-
case 7:
|
|
1377
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1378
|
-
return [3, 11];
|
|
1379
|
-
case 8:
|
|
1380
|
-
_f = [{}];
|
|
1381
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1382
|
-
case 9:
|
|
1383
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1384
|
-
return [3, 11];
|
|
1375
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1376
|
+
case 3: throw _d.sent();
|
|
1377
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1378
|
+
case 5: throw _d.sent();
|
|
1379
|
+
case 6: return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1380
|
+
case 7: throw _d.sent();
|
|
1381
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1382
|
+
case 9: throw _d.sent();
|
|
1385
1383
|
case 10:
|
|
1386
1384
|
parsedBody = parsedOutput.body;
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
response
|
|
1393
|
-
|
|
1394
|
-
|
|
1385
|
+
response = new __BaseException({
|
|
1386
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1387
|
+
$fault: "client",
|
|
1388
|
+
$metadata: deserializeMetadata(output),
|
|
1389
|
+
});
|
|
1390
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1391
|
+
}
|
|
1392
|
+
});
|
|
1393
|
+
}); };
|
|
1394
|
+
export var deserializeAws_json1_0ListVpcConnectorsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1395
|
+
var data, contents, response;
|
|
1396
|
+
return __generator(this, function (_a) {
|
|
1397
|
+
switch (_a.label) {
|
|
1398
|
+
case 0:
|
|
1399
|
+
if (output.statusCode >= 300) {
|
|
1400
|
+
return [2, deserializeAws_json1_0ListVpcConnectorsCommandError(output, context)];
|
|
1401
|
+
}
|
|
1402
|
+
return [4, parseBody(output.body, context)];
|
|
1403
|
+
case 1:
|
|
1404
|
+
data = _a.sent();
|
|
1405
|
+
contents = {};
|
|
1406
|
+
contents = deserializeAws_json1_0ListVpcConnectorsResponse(data, context);
|
|
1407
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1408
|
+
return [2, Promise.resolve(response)];
|
|
1409
|
+
}
|
|
1410
|
+
});
|
|
1411
|
+
}); };
|
|
1412
|
+
var deserializeAws_json1_0ListVpcConnectorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1413
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1414
|
+
var _c;
|
|
1415
|
+
return __generator(this, function (_d) {
|
|
1416
|
+
switch (_d.label) {
|
|
1417
|
+
case 0:
|
|
1418
|
+
_a = [__assign({}, output)];
|
|
1419
|
+
_c = {};
|
|
1420
|
+
return [4, parseBody(output.body, context)];
|
|
1421
|
+
case 1:
|
|
1422
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1423
|
+
errorCode = "UnknownError";
|
|
1424
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1425
|
+
_b = errorCode;
|
|
1426
|
+
switch (_b) {
|
|
1427
|
+
case "InternalServiceErrorException": return [3, 2];
|
|
1428
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException": return [3, 2];
|
|
1429
|
+
case "InvalidRequestException": return [3, 4];
|
|
1430
|
+
case "com.amazonaws.apprunner#InvalidRequestException": return [3, 4];
|
|
1431
|
+
}
|
|
1432
|
+
return [3, 6];
|
|
1433
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1434
|
+
case 3: throw _d.sent();
|
|
1435
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1436
|
+
case 5: throw _d.sent();
|
|
1437
|
+
case 6:
|
|
1438
|
+
parsedBody = parsedOutput.body;
|
|
1439
|
+
response = new __BaseException({
|
|
1440
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1441
|
+
$fault: "client",
|
|
1442
|
+
$metadata: deserializeMetadata(output),
|
|
1443
|
+
});
|
|
1444
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1395
1445
|
}
|
|
1396
1446
|
});
|
|
1397
1447
|
}); };
|
|
@@ -1414,16 +1464,16 @@ export var deserializeAws_json1_0PauseServiceCommand = function (output, context
|
|
|
1414
1464
|
});
|
|
1415
1465
|
}); };
|
|
1416
1466
|
var deserializeAws_json1_0PauseServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1417
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1418
|
-
var
|
|
1419
|
-
return __generator(this, function (
|
|
1420
|
-
switch (
|
|
1467
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1468
|
+
var _c;
|
|
1469
|
+
return __generator(this, function (_d) {
|
|
1470
|
+
switch (_d.label) {
|
|
1421
1471
|
case 0:
|
|
1422
1472
|
_a = [__assign({}, output)];
|
|
1423
|
-
|
|
1473
|
+
_c = {};
|
|
1424
1474
|
return [4, parseBody(output.body, context)];
|
|
1425
1475
|
case 1:
|
|
1426
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1476
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1427
1477
|
errorCode = "UnknownError";
|
|
1428
1478
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1429
1479
|
_b = errorCode;
|
|
@@ -1438,40 +1488,22 @@ var deserializeAws_json1_0PauseServiceCommandError = function (output, context)
|
|
|
1438
1488
|
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 8];
|
|
1439
1489
|
}
|
|
1440
1490
|
return [3, 10];
|
|
1441
|
-
case 2:
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
case
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
case 4
|
|
1448
|
-
|
|
1449
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1450
|
-
case 5:
|
|
1451
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1452
|
-
return [3, 11];
|
|
1453
|
-
case 6:
|
|
1454
|
-
_e = [{}];
|
|
1455
|
-
return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1456
|
-
case 7:
|
|
1457
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1458
|
-
return [3, 11];
|
|
1459
|
-
case 8:
|
|
1460
|
-
_f = [{}];
|
|
1461
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1462
|
-
case 9:
|
|
1463
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1464
|
-
return [3, 11];
|
|
1491
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1492
|
+
case 3: throw _d.sent();
|
|
1493
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1494
|
+
case 5: throw _d.sent();
|
|
1495
|
+
case 6: return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1496
|
+
case 7: throw _d.sent();
|
|
1497
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1498
|
+
case 9: throw _d.sent();
|
|
1465
1499
|
case 10:
|
|
1466
1500
|
parsedBody = parsedOutput.body;
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
response
|
|
1473
|
-
delete response.Message;
|
|
1474
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1501
|
+
response = new __BaseException({
|
|
1502
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1503
|
+
$fault: "client",
|
|
1504
|
+
$metadata: deserializeMetadata(output),
|
|
1505
|
+
});
|
|
1506
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1475
1507
|
}
|
|
1476
1508
|
});
|
|
1477
1509
|
}); };
|
|
@@ -1494,16 +1526,16 @@ export var deserializeAws_json1_0ResumeServiceCommand = function (output, contex
|
|
|
1494
1526
|
});
|
|
1495
1527
|
}); };
|
|
1496
1528
|
var deserializeAws_json1_0ResumeServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1497
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1498
|
-
var
|
|
1499
|
-
return __generator(this, function (
|
|
1500
|
-
switch (
|
|
1529
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1530
|
+
var _c;
|
|
1531
|
+
return __generator(this, function (_d) {
|
|
1532
|
+
switch (_d.label) {
|
|
1501
1533
|
case 0:
|
|
1502
1534
|
_a = [__assign({}, output)];
|
|
1503
|
-
|
|
1535
|
+
_c = {};
|
|
1504
1536
|
return [4, parseBody(output.body, context)];
|
|
1505
1537
|
case 1:
|
|
1506
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1538
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1507
1539
|
errorCode = "UnknownError";
|
|
1508
1540
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1509
1541
|
_b = errorCode;
|
|
@@ -1518,40 +1550,22 @@ var deserializeAws_json1_0ResumeServiceCommandError = function (output, context)
|
|
|
1518
1550
|
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 8];
|
|
1519
1551
|
}
|
|
1520
1552
|
return [3, 10];
|
|
1521
|
-
case 2:
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
case
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
case 4
|
|
1528
|
-
|
|
1529
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1530
|
-
case 5:
|
|
1531
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1532
|
-
return [3, 11];
|
|
1533
|
-
case 6:
|
|
1534
|
-
_e = [{}];
|
|
1535
|
-
return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1536
|
-
case 7:
|
|
1537
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1538
|
-
return [3, 11];
|
|
1539
|
-
case 8:
|
|
1540
|
-
_f = [{}];
|
|
1541
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1542
|
-
case 9:
|
|
1543
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1544
|
-
return [3, 11];
|
|
1553
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1554
|
+
case 3: throw _d.sent();
|
|
1555
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1556
|
+
case 5: throw _d.sent();
|
|
1557
|
+
case 6: return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1558
|
+
case 7: throw _d.sent();
|
|
1559
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1560
|
+
case 9: throw _d.sent();
|
|
1545
1561
|
case 10:
|
|
1546
1562
|
parsedBody = parsedOutput.body;
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
response
|
|
1553
|
-
delete response.Message;
|
|
1554
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1563
|
+
response = new __BaseException({
|
|
1564
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1565
|
+
$fault: "client",
|
|
1566
|
+
$metadata: deserializeMetadata(output),
|
|
1567
|
+
});
|
|
1568
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1555
1569
|
}
|
|
1556
1570
|
});
|
|
1557
1571
|
}); };
|
|
@@ -1574,16 +1588,16 @@ export var deserializeAws_json1_0StartDeploymentCommand = function (output, cont
|
|
|
1574
1588
|
});
|
|
1575
1589
|
}); };
|
|
1576
1590
|
var deserializeAws_json1_0StartDeploymentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1577
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1578
|
-
var
|
|
1579
|
-
return __generator(this, function (
|
|
1580
|
-
switch (
|
|
1591
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1592
|
+
var _c;
|
|
1593
|
+
return __generator(this, function (_d) {
|
|
1594
|
+
switch (_d.label) {
|
|
1581
1595
|
case 0:
|
|
1582
1596
|
_a = [__assign({}, output)];
|
|
1583
|
-
|
|
1597
|
+
_c = {};
|
|
1584
1598
|
return [4, parseBody(output.body, context)];
|
|
1585
1599
|
case 1:
|
|
1586
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1600
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1587
1601
|
errorCode = "UnknownError";
|
|
1588
1602
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1589
1603
|
_b = errorCode;
|
|
@@ -1596,34 +1610,20 @@ var deserializeAws_json1_0StartDeploymentCommandError = function (output, contex
|
|
|
1596
1610
|
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 6];
|
|
1597
1611
|
}
|
|
1598
1612
|
return [3, 8];
|
|
1599
|
-
case 2:
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
case
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
case 4:
|
|
1606
|
-
_d = [{}];
|
|
1607
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1608
|
-
case 5:
|
|
1609
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1610
|
-
return [3, 9];
|
|
1611
|
-
case 6:
|
|
1612
|
-
_e = [{}];
|
|
1613
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1614
|
-
case 7:
|
|
1615
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1616
|
-
return [3, 9];
|
|
1613
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1614
|
+
case 3: throw _d.sent();
|
|
1615
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1616
|
+
case 5: throw _d.sent();
|
|
1617
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1618
|
+
case 7: throw _d.sent();
|
|
1617
1619
|
case 8:
|
|
1618
1620
|
parsedBody = parsedOutput.body;
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
response
|
|
1625
|
-
delete response.Message;
|
|
1626
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1621
|
+
response = new __BaseException({
|
|
1622
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1623
|
+
$fault: "client",
|
|
1624
|
+
$metadata: deserializeMetadata(output),
|
|
1625
|
+
});
|
|
1626
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1627
1627
|
}
|
|
1628
1628
|
});
|
|
1629
1629
|
}); };
|
|
@@ -1646,16 +1646,16 @@ export var deserializeAws_json1_0TagResourceCommand = function (output, context)
|
|
|
1646
1646
|
});
|
|
1647
1647
|
}); };
|
|
1648
1648
|
var deserializeAws_json1_0TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1649
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1650
|
-
var
|
|
1651
|
-
return __generator(this, function (
|
|
1652
|
-
switch (
|
|
1649
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1650
|
+
var _c;
|
|
1651
|
+
return __generator(this, function (_d) {
|
|
1652
|
+
switch (_d.label) {
|
|
1653
1653
|
case 0:
|
|
1654
1654
|
_a = [__assign({}, output)];
|
|
1655
|
-
|
|
1655
|
+
_c = {};
|
|
1656
1656
|
return [4, parseBody(output.body, context)];
|
|
1657
1657
|
case 1:
|
|
1658
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1658
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1659
1659
|
errorCode = "UnknownError";
|
|
1660
1660
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1661
1661
|
_b = errorCode;
|
|
@@ -1670,40 +1670,22 @@ var deserializeAws_json1_0TagResourceCommandError = function (output, context) {
|
|
|
1670
1670
|
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 8];
|
|
1671
1671
|
}
|
|
1672
1672
|
return [3, 10];
|
|
1673
|
-
case 2:
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
case
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
case 4
|
|
1680
|
-
|
|
1681
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1682
|
-
case 5:
|
|
1683
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1684
|
-
return [3, 11];
|
|
1685
|
-
case 6:
|
|
1686
|
-
_e = [{}];
|
|
1687
|
-
return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1688
|
-
case 7:
|
|
1689
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1690
|
-
return [3, 11];
|
|
1691
|
-
case 8:
|
|
1692
|
-
_f = [{}];
|
|
1693
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1694
|
-
case 9:
|
|
1695
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1696
|
-
return [3, 11];
|
|
1673
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1674
|
+
case 3: throw _d.sent();
|
|
1675
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1676
|
+
case 5: throw _d.sent();
|
|
1677
|
+
case 6: return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1678
|
+
case 7: throw _d.sent();
|
|
1679
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1680
|
+
case 9: throw _d.sent();
|
|
1697
1681
|
case 10:
|
|
1698
1682
|
parsedBody = parsedOutput.body;
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
response
|
|
1705
|
-
delete response.Message;
|
|
1706
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1683
|
+
response = new __BaseException({
|
|
1684
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1685
|
+
$fault: "client",
|
|
1686
|
+
$metadata: deserializeMetadata(output),
|
|
1687
|
+
});
|
|
1688
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1707
1689
|
}
|
|
1708
1690
|
});
|
|
1709
1691
|
}); };
|
|
@@ -1726,16 +1708,16 @@ export var deserializeAws_json1_0UntagResourceCommand = function (output, contex
|
|
|
1726
1708
|
});
|
|
1727
1709
|
}); };
|
|
1728
1710
|
var deserializeAws_json1_0UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1729
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1730
|
-
var
|
|
1731
|
-
return __generator(this, function (
|
|
1732
|
-
switch (
|
|
1711
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1712
|
+
var _c;
|
|
1713
|
+
return __generator(this, function (_d) {
|
|
1714
|
+
switch (_d.label) {
|
|
1733
1715
|
case 0:
|
|
1734
1716
|
_a = [__assign({}, output)];
|
|
1735
|
-
|
|
1717
|
+
_c = {};
|
|
1736
1718
|
return [4, parseBody(output.body, context)];
|
|
1737
1719
|
case 1:
|
|
1738
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1720
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1739
1721
|
errorCode = "UnknownError";
|
|
1740
1722
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1741
1723
|
_b = errorCode;
|
|
@@ -1750,40 +1732,22 @@ var deserializeAws_json1_0UntagResourceCommandError = function (output, context)
|
|
|
1750
1732
|
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 8];
|
|
1751
1733
|
}
|
|
1752
1734
|
return [3, 10];
|
|
1753
|
-
case 2:
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
case
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
case 4
|
|
1760
|
-
|
|
1761
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1762
|
-
case 5:
|
|
1763
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1764
|
-
return [3, 11];
|
|
1765
|
-
case 6:
|
|
1766
|
-
_e = [{}];
|
|
1767
|
-
return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1768
|
-
case 7:
|
|
1769
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1770
|
-
return [3, 11];
|
|
1771
|
-
case 8:
|
|
1772
|
-
_f = [{}];
|
|
1773
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1774
|
-
case 9:
|
|
1775
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1776
|
-
return [3, 11];
|
|
1735
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1736
|
+
case 3: throw _d.sent();
|
|
1737
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1738
|
+
case 5: throw _d.sent();
|
|
1739
|
+
case 6: return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1740
|
+
case 7: throw _d.sent();
|
|
1741
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1742
|
+
case 9: throw _d.sent();
|
|
1777
1743
|
case 10:
|
|
1778
1744
|
parsedBody = parsedOutput.body;
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
response
|
|
1785
|
-
delete response.Message;
|
|
1786
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1745
|
+
response = new __BaseException({
|
|
1746
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1747
|
+
$fault: "client",
|
|
1748
|
+
$metadata: deserializeMetadata(output),
|
|
1749
|
+
});
|
|
1750
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1787
1751
|
}
|
|
1788
1752
|
});
|
|
1789
1753
|
}); };
|
|
@@ -1806,16 +1770,16 @@ export var deserializeAws_json1_0UpdateServiceCommand = function (output, contex
|
|
|
1806
1770
|
});
|
|
1807
1771
|
}); };
|
|
1808
1772
|
var deserializeAws_json1_0UpdateServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1809
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1810
|
-
var
|
|
1811
|
-
return __generator(this, function (
|
|
1812
|
-
switch (
|
|
1773
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1774
|
+
var _c;
|
|
1775
|
+
return __generator(this, function (_d) {
|
|
1776
|
+
switch (_d.label) {
|
|
1813
1777
|
case 0:
|
|
1814
1778
|
_a = [__assign({}, output)];
|
|
1815
|
-
|
|
1779
|
+
_c = {};
|
|
1816
1780
|
return [4, parseBody(output.body, context)];
|
|
1817
1781
|
case 1:
|
|
1818
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1782
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1819
1783
|
errorCode = "UnknownError";
|
|
1820
1784
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1821
1785
|
_b = errorCode;
|
|
@@ -1830,86 +1794,68 @@ var deserializeAws_json1_0UpdateServiceCommandError = function (output, context)
|
|
|
1830
1794
|
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 8];
|
|
1831
1795
|
}
|
|
1832
1796
|
return [3, 10];
|
|
1833
|
-
case 2:
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
case
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
case 4
|
|
1840
|
-
|
|
1841
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1842
|
-
case 5:
|
|
1843
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1844
|
-
return [3, 11];
|
|
1845
|
-
case 6:
|
|
1846
|
-
_e = [{}];
|
|
1847
|
-
return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1848
|
-
case 7:
|
|
1849
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1850
|
-
return [3, 11];
|
|
1851
|
-
case 8:
|
|
1852
|
-
_f = [{}];
|
|
1853
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1854
|
-
case 9:
|
|
1855
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1856
|
-
return [3, 11];
|
|
1797
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1798
|
+
case 3: throw _d.sent();
|
|
1799
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1800
|
+
case 5: throw _d.sent();
|
|
1801
|
+
case 6: return [4, deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)];
|
|
1802
|
+
case 7: throw _d.sent();
|
|
1803
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1804
|
+
case 9: throw _d.sent();
|
|
1857
1805
|
case 10:
|
|
1858
1806
|
parsedBody = parsedOutput.body;
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
response
|
|
1865
|
-
delete response.Message;
|
|
1866
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1807
|
+
response = new __BaseException({
|
|
1808
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1809
|
+
$fault: "client",
|
|
1810
|
+
$metadata: deserializeMetadata(output),
|
|
1811
|
+
});
|
|
1812
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1867
1813
|
}
|
|
1868
1814
|
});
|
|
1869
1815
|
}); };
|
|
1870
1816
|
var deserializeAws_json1_0InternalServiceErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1871
|
-
var body, deserialized,
|
|
1817
|
+
var body, deserialized, exception;
|
|
1872
1818
|
return __generator(this, function (_a) {
|
|
1873
1819
|
body = parsedOutput.body;
|
|
1874
1820
|
deserialized = deserializeAws_json1_0InternalServiceErrorException(body, context);
|
|
1875
|
-
|
|
1876
|
-
return [2,
|
|
1821
|
+
exception = new InternalServiceErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1822
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1877
1823
|
});
|
|
1878
1824
|
}); };
|
|
1879
1825
|
var deserializeAws_json1_0InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1880
|
-
var body, deserialized,
|
|
1826
|
+
var body, deserialized, exception;
|
|
1881
1827
|
return __generator(this, function (_a) {
|
|
1882
1828
|
body = parsedOutput.body;
|
|
1883
1829
|
deserialized = deserializeAws_json1_0InvalidRequestException(body, context);
|
|
1884
|
-
|
|
1885
|
-
return [2,
|
|
1830
|
+
exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1831
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1886
1832
|
});
|
|
1887
1833
|
}); };
|
|
1888
1834
|
var deserializeAws_json1_0InvalidStateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1889
|
-
var body, deserialized,
|
|
1835
|
+
var body, deserialized, exception;
|
|
1890
1836
|
return __generator(this, function (_a) {
|
|
1891
1837
|
body = parsedOutput.body;
|
|
1892
1838
|
deserialized = deserializeAws_json1_0InvalidStateException(body, context);
|
|
1893
|
-
|
|
1894
|
-
return [2,
|
|
1839
|
+
exception = new InvalidStateException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1840
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1895
1841
|
});
|
|
1896
1842
|
}); };
|
|
1897
1843
|
var deserializeAws_json1_0ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1898
|
-
var body, deserialized,
|
|
1844
|
+
var body, deserialized, exception;
|
|
1899
1845
|
return __generator(this, function (_a) {
|
|
1900
1846
|
body = parsedOutput.body;
|
|
1901
1847
|
deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
|
|
1902
|
-
|
|
1903
|
-
return [2,
|
|
1848
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1849
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1904
1850
|
});
|
|
1905
1851
|
}); };
|
|
1906
1852
|
var deserializeAws_json1_0ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1907
|
-
var body, deserialized,
|
|
1853
|
+
var body, deserialized, exception;
|
|
1908
1854
|
return __generator(this, function (_a) {
|
|
1909
1855
|
body = parsedOutput.body;
|
|
1910
1856
|
deserialized = deserializeAws_json1_0ServiceQuotaExceededException(body, context);
|
|
1911
|
-
|
|
1912
|
-
return [2,
|
|
1857
|
+
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1858
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1913
1859
|
});
|
|
1914
1860
|
}); };
|
|
1915
1861
|
var serializeAws_json1_0AssociateCustomDomainRequest = function (input, context) {
|
|
@@ -1953,7 +1899,7 @@ var serializeAws_json1_0CreateConnectionRequest = function (input, context) {
|
|
|
1953
1899
|
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
1900
|
};
|
|
1955
1901
|
var serializeAws_json1_0CreateServiceRequest = function (input, context) {
|
|
1956
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoScalingConfigurationArn !== undefined &&
|
|
1902
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoScalingConfigurationArn !== undefined &&
|
|
1957
1903
|
input.AutoScalingConfigurationArn !== null && { AutoScalingConfigurationArn: input.AutoScalingConfigurationArn })), (input.EncryptionConfiguration !== undefined &&
|
|
1958
1904
|
input.EncryptionConfiguration !== null && {
|
|
1959
1905
|
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
@@ -1963,11 +1909,22 @@ var serializeAws_json1_0CreateServiceRequest = function (input, context) {
|
|
|
1963
1909
|
})), (input.InstanceConfiguration !== undefined &&
|
|
1964
1910
|
input.InstanceConfiguration !== null && {
|
|
1965
1911
|
InstanceConfiguration: serializeAws_json1_0InstanceConfiguration(input.InstanceConfiguration, context),
|
|
1912
|
+
})), (input.NetworkConfiguration !== undefined &&
|
|
1913
|
+
input.NetworkConfiguration !== null && {
|
|
1914
|
+
NetworkConfiguration: serializeAws_json1_0NetworkConfiguration(input.NetworkConfiguration, context),
|
|
1966
1915
|
})), (input.ServiceName !== undefined && input.ServiceName !== null && { ServiceName: input.ServiceName })), (input.SourceConfiguration !== undefined &&
|
|
1967
1916
|
input.SourceConfiguration !== null && {
|
|
1968
1917
|
SourceConfiguration: serializeAws_json1_0SourceConfiguration(input.SourceConfiguration, context),
|
|
1969
1918
|
})), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
1970
1919
|
};
|
|
1920
|
+
var serializeAws_json1_0CreateVpcConnectorRequest = function (input, context) {
|
|
1921
|
+
return __assign(__assign(__assign(__assign({}, (input.SecurityGroups !== undefined &&
|
|
1922
|
+
input.SecurityGroups !== null && {
|
|
1923
|
+
SecurityGroups: serializeAws_json1_0StringList(input.SecurityGroups, context),
|
|
1924
|
+
})), (input.Subnets !== undefined &&
|
|
1925
|
+
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 &&
|
|
1926
|
+
input.VpcConnectorName !== null && { VpcConnectorName: input.VpcConnectorName }));
|
|
1927
|
+
};
|
|
1971
1928
|
var serializeAws_json1_0DeleteAutoScalingConfigurationRequest = function (input, context) {
|
|
1972
1929
|
return __assign({}, (input.AutoScalingConfigurationArn !== undefined &&
|
|
1973
1930
|
input.AutoScalingConfigurationArn !== null && { AutoScalingConfigurationArn: input.AutoScalingConfigurationArn }));
|
|
@@ -1978,6 +1935,10 @@ var serializeAws_json1_0DeleteConnectionRequest = function (input, context) {
|
|
|
1978
1935
|
var serializeAws_json1_0DeleteServiceRequest = function (input, context) {
|
|
1979
1936
|
return __assign({}, (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }));
|
|
1980
1937
|
};
|
|
1938
|
+
var serializeAws_json1_0DeleteVpcConnectorRequest = function (input, context) {
|
|
1939
|
+
return __assign({}, (input.VpcConnectorArn !== undefined &&
|
|
1940
|
+
input.VpcConnectorArn !== null && { VpcConnectorArn: input.VpcConnectorArn }));
|
|
1941
|
+
};
|
|
1981
1942
|
var serializeAws_json1_0DescribeAutoScalingConfigurationRequest = function (input, context) {
|
|
1982
1943
|
return __assign({}, (input.AutoScalingConfigurationArn !== undefined &&
|
|
1983
1944
|
input.AutoScalingConfigurationArn !== null && { AutoScalingConfigurationArn: input.AutoScalingConfigurationArn }));
|
|
@@ -1988,9 +1949,17 @@ var serializeAws_json1_0DescribeCustomDomainsRequest = function (input, context)
|
|
|
1988
1949
|
var serializeAws_json1_0DescribeServiceRequest = function (input, context) {
|
|
1989
1950
|
return __assign({}, (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }));
|
|
1990
1951
|
};
|
|
1952
|
+
var serializeAws_json1_0DescribeVpcConnectorRequest = function (input, context) {
|
|
1953
|
+
return __assign({}, (input.VpcConnectorArn !== undefined &&
|
|
1954
|
+
input.VpcConnectorArn !== null && { VpcConnectorArn: input.VpcConnectorArn }));
|
|
1955
|
+
};
|
|
1991
1956
|
var serializeAws_json1_0DisassociateCustomDomainRequest = function (input, context) {
|
|
1992
1957
|
return __assign(__assign({}, (input.DomainName !== undefined && input.DomainName !== null && { DomainName: input.DomainName })), (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }));
|
|
1993
1958
|
};
|
|
1959
|
+
var serializeAws_json1_0EgressConfiguration = function (input, context) {
|
|
1960
|
+
return __assign(__assign({}, (input.EgressType !== undefined && input.EgressType !== null && { EgressType: input.EgressType })), (input.VpcConnectorArn !== undefined &&
|
|
1961
|
+
input.VpcConnectorArn !== null && { VpcConnectorArn: input.VpcConnectorArn }));
|
|
1962
|
+
};
|
|
1994
1963
|
var serializeAws_json1_0EncryptionConfiguration = function (input, context) {
|
|
1995
1964
|
return __assign({}, (input.KmsKey !== undefined && input.KmsKey !== null && { KmsKey: input.KmsKey }));
|
|
1996
1965
|
};
|
|
@@ -2036,6 +2005,15 @@ var serializeAws_json1_0ListServicesRequest = function (input, context) {
|
|
|
2036
2005
|
var serializeAws_json1_0ListTagsForResourceRequest = function (input, context) {
|
|
2037
2006
|
return __assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
|
|
2038
2007
|
};
|
|
2008
|
+
var serializeAws_json1_0ListVpcConnectorsRequest = function (input, context) {
|
|
2009
|
+
return __assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
2010
|
+
};
|
|
2011
|
+
var serializeAws_json1_0NetworkConfiguration = function (input, context) {
|
|
2012
|
+
return __assign({}, (input.EgressConfiguration !== undefined &&
|
|
2013
|
+
input.EgressConfiguration !== null && {
|
|
2014
|
+
EgressConfiguration: serializeAws_json1_0EgressConfiguration(input.EgressConfiguration, context),
|
|
2015
|
+
}));
|
|
2016
|
+
};
|
|
2039
2017
|
var serializeAws_json1_0PauseServiceRequest = function (input, context) {
|
|
2040
2018
|
return __assign({}, (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }));
|
|
2041
2019
|
};
|
|
@@ -2071,6 +2049,16 @@ var serializeAws_json1_0SourceConfiguration = function (input, context) {
|
|
|
2071
2049
|
var serializeAws_json1_0StartDeploymentRequest = function (input, context) {
|
|
2072
2050
|
return __assign({}, (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }));
|
|
2073
2051
|
};
|
|
2052
|
+
var serializeAws_json1_0StringList = function (input, context) {
|
|
2053
|
+
return input
|
|
2054
|
+
.filter(function (e) { return e != null; })
|
|
2055
|
+
.map(function (entry) {
|
|
2056
|
+
if (entry === null) {
|
|
2057
|
+
return null;
|
|
2058
|
+
}
|
|
2059
|
+
return entry;
|
|
2060
|
+
});
|
|
2061
|
+
};
|
|
2074
2062
|
var serializeAws_json1_0Tag = function (input, context) {
|
|
2075
2063
|
return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
|
|
2076
2064
|
};
|
|
@@ -2102,13 +2090,16 @@ var serializeAws_json1_0UntagResourceRequest = function (input, context) {
|
|
|
2102
2090
|
input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }));
|
|
2103
2091
|
};
|
|
2104
2092
|
var serializeAws_json1_0UpdateServiceRequest = function (input, context) {
|
|
2105
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.AutoScalingConfigurationArn !== undefined &&
|
|
2093
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoScalingConfigurationArn !== undefined &&
|
|
2106
2094
|
input.AutoScalingConfigurationArn !== null && { AutoScalingConfigurationArn: input.AutoScalingConfigurationArn })), (input.HealthCheckConfiguration !== undefined &&
|
|
2107
2095
|
input.HealthCheckConfiguration !== null && {
|
|
2108
2096
|
HealthCheckConfiguration: serializeAws_json1_0HealthCheckConfiguration(input.HealthCheckConfiguration, context),
|
|
2109
2097
|
})), (input.InstanceConfiguration !== undefined &&
|
|
2110
2098
|
input.InstanceConfiguration !== null && {
|
|
2111
2099
|
InstanceConfiguration: serializeAws_json1_0InstanceConfiguration(input.InstanceConfiguration, context),
|
|
2100
|
+
})), (input.NetworkConfiguration !== undefined &&
|
|
2101
|
+
input.NetworkConfiguration !== null && {
|
|
2102
|
+
NetworkConfiguration: serializeAws_json1_0NetworkConfiguration(input.NetworkConfiguration, context),
|
|
2112
2103
|
})), (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn })), (input.SourceConfiguration !== undefined &&
|
|
2113
2104
|
input.SourceConfiguration !== null && {
|
|
2114
2105
|
SourceConfiguration: serializeAws_json1_0SourceConfiguration(input.SourceConfiguration, context),
|
|
@@ -2155,7 +2146,7 @@ var deserializeAws_json1_0AutoScalingConfigurationSummary = function (output, co
|
|
|
2155
2146
|
};
|
|
2156
2147
|
};
|
|
2157
2148
|
var deserializeAws_json1_0AutoScalingConfigurationSummaryList = function (output, context) {
|
|
2158
|
-
|
|
2149
|
+
var retVal = (output || [])
|
|
2159
2150
|
.filter(function (e) { return e != null; })
|
|
2160
2151
|
.map(function (entry) {
|
|
2161
2152
|
if (entry === null) {
|
|
@@ -2163,6 +2154,7 @@ var deserializeAws_json1_0AutoScalingConfigurationSummaryList = function (output
|
|
|
2163
2154
|
}
|
|
2164
2155
|
return deserializeAws_json1_0AutoScalingConfigurationSummary(entry, context);
|
|
2165
2156
|
});
|
|
2157
|
+
return retVal;
|
|
2166
2158
|
};
|
|
2167
2159
|
var deserializeAws_json1_0CertificateValidationRecord = function (output, context) {
|
|
2168
2160
|
return {
|
|
@@ -2173,7 +2165,7 @@ var deserializeAws_json1_0CertificateValidationRecord = function (output, contex
|
|
|
2173
2165
|
};
|
|
2174
2166
|
};
|
|
2175
2167
|
var deserializeAws_json1_0CertificateValidationRecordList = function (output, context) {
|
|
2176
|
-
|
|
2168
|
+
var retVal = (output || [])
|
|
2177
2169
|
.filter(function (e) { return e != null; })
|
|
2178
2170
|
.map(function (entry) {
|
|
2179
2171
|
if (entry === null) {
|
|
@@ -2181,6 +2173,7 @@ var deserializeAws_json1_0CertificateValidationRecordList = function (output, co
|
|
|
2181
2173
|
}
|
|
2182
2174
|
return deserializeAws_json1_0CertificateValidationRecord(entry, context);
|
|
2183
2175
|
});
|
|
2176
|
+
return retVal;
|
|
2184
2177
|
};
|
|
2185
2178
|
var deserializeAws_json1_0CodeConfiguration = function (output, context) {
|
|
2186
2179
|
return {
|
|
@@ -2235,7 +2228,7 @@ var deserializeAws_json1_0ConnectionSummary = function (output, context) {
|
|
|
2235
2228
|
};
|
|
2236
2229
|
};
|
|
2237
2230
|
var deserializeAws_json1_0ConnectionSummaryList = function (output, context) {
|
|
2238
|
-
|
|
2231
|
+
var retVal = (output || [])
|
|
2239
2232
|
.filter(function (e) { return e != null; })
|
|
2240
2233
|
.map(function (entry) {
|
|
2241
2234
|
if (entry === null) {
|
|
@@ -2243,6 +2236,7 @@ var deserializeAws_json1_0ConnectionSummaryList = function (output, context) {
|
|
|
2243
2236
|
}
|
|
2244
2237
|
return deserializeAws_json1_0ConnectionSummary(entry, context);
|
|
2245
2238
|
});
|
|
2239
|
+
return retVal;
|
|
2246
2240
|
};
|
|
2247
2241
|
var deserializeAws_json1_0CreateAutoScalingConfigurationResponse = function (output, context) {
|
|
2248
2242
|
return {
|
|
@@ -2266,6 +2260,13 @@ var deserializeAws_json1_0CreateServiceResponse = function (output, context) {
|
|
|
2266
2260
|
: undefined,
|
|
2267
2261
|
};
|
|
2268
2262
|
};
|
|
2263
|
+
var deserializeAws_json1_0CreateVpcConnectorResponse = function (output, context) {
|
|
2264
|
+
return {
|
|
2265
|
+
VpcConnector: output.VpcConnector !== undefined && output.VpcConnector !== null
|
|
2266
|
+
? deserializeAws_json1_0VpcConnector(output.VpcConnector, context)
|
|
2267
|
+
: undefined,
|
|
2268
|
+
};
|
|
2269
|
+
};
|
|
2269
2270
|
var deserializeAws_json1_0CustomDomain = function (output, context) {
|
|
2270
2271
|
return {
|
|
2271
2272
|
CertificateValidationRecords: output.CertificateValidationRecords !== undefined && output.CertificateValidationRecords !== null
|
|
@@ -2277,7 +2278,7 @@ var deserializeAws_json1_0CustomDomain = function (output, context) {
|
|
|
2277
2278
|
};
|
|
2278
2279
|
};
|
|
2279
2280
|
var deserializeAws_json1_0CustomDomainList = function (output, context) {
|
|
2280
|
-
|
|
2281
|
+
var retVal = (output || [])
|
|
2281
2282
|
.filter(function (e) { return e != null; })
|
|
2282
2283
|
.map(function (entry) {
|
|
2283
2284
|
if (entry === null) {
|
|
@@ -2285,6 +2286,7 @@ var deserializeAws_json1_0CustomDomainList = function (output, context) {
|
|
|
2285
2286
|
}
|
|
2286
2287
|
return deserializeAws_json1_0CustomDomain(entry, context);
|
|
2287
2288
|
});
|
|
2289
|
+
return retVal;
|
|
2288
2290
|
};
|
|
2289
2291
|
var deserializeAws_json1_0DeleteAutoScalingConfigurationResponse = function (output, context) {
|
|
2290
2292
|
return {
|
|
@@ -2308,6 +2310,13 @@ var deserializeAws_json1_0DeleteServiceResponse = function (output, context) {
|
|
|
2308
2310
|
: undefined,
|
|
2309
2311
|
};
|
|
2310
2312
|
};
|
|
2313
|
+
var deserializeAws_json1_0DeleteVpcConnectorResponse = function (output, context) {
|
|
2314
|
+
return {
|
|
2315
|
+
VpcConnector: output.VpcConnector !== undefined && output.VpcConnector !== null
|
|
2316
|
+
? deserializeAws_json1_0VpcConnector(output.VpcConnector, context)
|
|
2317
|
+
: undefined,
|
|
2318
|
+
};
|
|
2319
|
+
};
|
|
2311
2320
|
var deserializeAws_json1_0DescribeAutoScalingConfigurationResponse = function (output, context) {
|
|
2312
2321
|
return {
|
|
2313
2322
|
AutoScalingConfiguration: output.AutoScalingConfiguration !== undefined && output.AutoScalingConfiguration !== null
|
|
@@ -2332,6 +2341,13 @@ var deserializeAws_json1_0DescribeServiceResponse = function (output, context) {
|
|
|
2332
2341
|
: undefined,
|
|
2333
2342
|
};
|
|
2334
2343
|
};
|
|
2344
|
+
var deserializeAws_json1_0DescribeVpcConnectorResponse = function (output, context) {
|
|
2345
|
+
return {
|
|
2346
|
+
VpcConnector: output.VpcConnector !== undefined && output.VpcConnector !== null
|
|
2347
|
+
? deserializeAws_json1_0VpcConnector(output.VpcConnector, context)
|
|
2348
|
+
: undefined,
|
|
2349
|
+
};
|
|
2350
|
+
};
|
|
2335
2351
|
var deserializeAws_json1_0DisassociateCustomDomainResponse = function (output, context) {
|
|
2336
2352
|
return {
|
|
2337
2353
|
CustomDomain: output.CustomDomain !== undefined && output.CustomDomain !== null
|
|
@@ -2341,6 +2357,12 @@ var deserializeAws_json1_0DisassociateCustomDomainResponse = function (output, c
|
|
|
2341
2357
|
ServiceArn: __expectString(output.ServiceArn),
|
|
2342
2358
|
};
|
|
2343
2359
|
};
|
|
2360
|
+
var deserializeAws_json1_0EgressConfiguration = function (output, context) {
|
|
2361
|
+
return {
|
|
2362
|
+
EgressType: __expectString(output.EgressType),
|
|
2363
|
+
VpcConnectorArn: __expectString(output.VpcConnectorArn),
|
|
2364
|
+
};
|
|
2365
|
+
};
|
|
2344
2366
|
var deserializeAws_json1_0EncryptionConfiguration = function (output, context) {
|
|
2345
2367
|
return {
|
|
2346
2368
|
KmsKey: __expectString(output.KmsKey),
|
|
@@ -2435,6 +2457,21 @@ var deserializeAws_json1_0ListTagsForResourceResponse = function (output, contex
|
|
|
2435
2457
|
: undefined,
|
|
2436
2458
|
};
|
|
2437
2459
|
};
|
|
2460
|
+
var deserializeAws_json1_0ListVpcConnectorsResponse = function (output, context) {
|
|
2461
|
+
return {
|
|
2462
|
+
NextToken: __expectString(output.NextToken),
|
|
2463
|
+
VpcConnectors: output.VpcConnectors !== undefined && output.VpcConnectors !== null
|
|
2464
|
+
? deserializeAws_json1_0VpcConnectors(output.VpcConnectors, context)
|
|
2465
|
+
: undefined,
|
|
2466
|
+
};
|
|
2467
|
+
};
|
|
2468
|
+
var deserializeAws_json1_0NetworkConfiguration = function (output, context) {
|
|
2469
|
+
return {
|
|
2470
|
+
EgressConfiguration: output.EgressConfiguration !== undefined && output.EgressConfiguration !== null
|
|
2471
|
+
? deserializeAws_json1_0EgressConfiguration(output.EgressConfiguration, context)
|
|
2472
|
+
: undefined,
|
|
2473
|
+
};
|
|
2474
|
+
};
|
|
2438
2475
|
var deserializeAws_json1_0OperationSummary = function (output, context) {
|
|
2439
2476
|
return {
|
|
2440
2477
|
EndedAt: output.EndedAt !== undefined && output.EndedAt !== null
|
|
@@ -2453,7 +2490,7 @@ var deserializeAws_json1_0OperationSummary = function (output, context) {
|
|
|
2453
2490
|
};
|
|
2454
2491
|
};
|
|
2455
2492
|
var deserializeAws_json1_0OperationSummaryList = function (output, context) {
|
|
2456
|
-
|
|
2493
|
+
var retVal = (output || [])
|
|
2457
2494
|
.filter(function (e) { return e != null; })
|
|
2458
2495
|
.map(function (entry) {
|
|
2459
2496
|
if (entry === null) {
|
|
@@ -2461,6 +2498,7 @@ var deserializeAws_json1_0OperationSummaryList = function (output, context) {
|
|
|
2461
2498
|
}
|
|
2462
2499
|
return deserializeAws_json1_0OperationSummary(entry, context);
|
|
2463
2500
|
});
|
|
2501
|
+
return retVal;
|
|
2464
2502
|
};
|
|
2465
2503
|
var deserializeAws_json1_0PauseServiceResponse = function (output, context) {
|
|
2466
2504
|
return {
|
|
@@ -2513,6 +2551,9 @@ var deserializeAws_json1_0Service = function (output, context) {
|
|
|
2513
2551
|
InstanceConfiguration: output.InstanceConfiguration !== undefined && output.InstanceConfiguration !== null
|
|
2514
2552
|
? deserializeAws_json1_0InstanceConfiguration(output.InstanceConfiguration, context)
|
|
2515
2553
|
: undefined,
|
|
2554
|
+
NetworkConfiguration: output.NetworkConfiguration !== undefined && output.NetworkConfiguration !== null
|
|
2555
|
+
? deserializeAws_json1_0NetworkConfiguration(output.NetworkConfiguration, context)
|
|
2556
|
+
: undefined,
|
|
2516
2557
|
ServiceArn: __expectString(output.ServiceArn),
|
|
2517
2558
|
ServiceId: __expectString(output.ServiceId),
|
|
2518
2559
|
ServiceName: __expectString(output.ServiceName),
|
|
@@ -2547,7 +2588,7 @@ var deserializeAws_json1_0ServiceSummary = function (output, context) {
|
|
|
2547
2588
|
};
|
|
2548
2589
|
};
|
|
2549
2590
|
var deserializeAws_json1_0ServiceSummaryList = function (output, context) {
|
|
2550
|
-
|
|
2591
|
+
var retVal = (output || [])
|
|
2551
2592
|
.filter(function (e) { return e != null; })
|
|
2552
2593
|
.map(function (entry) {
|
|
2553
2594
|
if (entry === null) {
|
|
@@ -2555,6 +2596,7 @@ var deserializeAws_json1_0ServiceSummaryList = function (output, context) {
|
|
|
2555
2596
|
}
|
|
2556
2597
|
return deserializeAws_json1_0ServiceSummary(entry, context);
|
|
2557
2598
|
});
|
|
2599
|
+
return retVal;
|
|
2558
2600
|
};
|
|
2559
2601
|
var deserializeAws_json1_0SourceCodeVersion = function (output, context) {
|
|
2560
2602
|
return {
|
|
@@ -2581,6 +2623,17 @@ var deserializeAws_json1_0StartDeploymentResponse = function (output, context) {
|
|
|
2581
2623
|
OperationId: __expectString(output.OperationId),
|
|
2582
2624
|
};
|
|
2583
2625
|
};
|
|
2626
|
+
var deserializeAws_json1_0StringList = function (output, context) {
|
|
2627
|
+
var retVal = (output || [])
|
|
2628
|
+
.filter(function (e) { return e != null; })
|
|
2629
|
+
.map(function (entry) {
|
|
2630
|
+
if (entry === null) {
|
|
2631
|
+
return null;
|
|
2632
|
+
}
|
|
2633
|
+
return __expectString(entry);
|
|
2634
|
+
});
|
|
2635
|
+
return retVal;
|
|
2636
|
+
};
|
|
2584
2637
|
var deserializeAws_json1_0Tag = function (output, context) {
|
|
2585
2638
|
return {
|
|
2586
2639
|
Key: __expectString(output.Key),
|
|
@@ -2588,7 +2641,7 @@ var deserializeAws_json1_0Tag = function (output, context) {
|
|
|
2588
2641
|
};
|
|
2589
2642
|
};
|
|
2590
2643
|
var deserializeAws_json1_0TagList = function (output, context) {
|
|
2591
|
-
|
|
2644
|
+
var retVal = (output || [])
|
|
2592
2645
|
.filter(function (e) { return e != null; })
|
|
2593
2646
|
.map(function (entry) {
|
|
2594
2647
|
if (entry === null) {
|
|
@@ -2596,6 +2649,7 @@ var deserializeAws_json1_0TagList = function (output, context) {
|
|
|
2596
2649
|
}
|
|
2597
2650
|
return deserializeAws_json1_0Tag(entry, context);
|
|
2598
2651
|
});
|
|
2652
|
+
return retVal;
|
|
2599
2653
|
};
|
|
2600
2654
|
var deserializeAws_json1_0TagResourceResponse = function (output, context) {
|
|
2601
2655
|
return {};
|
|
@@ -2611,6 +2665,37 @@ var deserializeAws_json1_0UpdateServiceResponse = function (output, context) {
|
|
|
2611
2665
|
: undefined,
|
|
2612
2666
|
};
|
|
2613
2667
|
};
|
|
2668
|
+
var deserializeAws_json1_0VpcConnector = function (output, context) {
|
|
2669
|
+
return {
|
|
2670
|
+
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
2671
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
2672
|
+
: undefined,
|
|
2673
|
+
DeletedAt: output.DeletedAt !== undefined && output.DeletedAt !== null
|
|
2674
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeletedAt)))
|
|
2675
|
+
: undefined,
|
|
2676
|
+
SecurityGroups: output.SecurityGroups !== undefined && output.SecurityGroups !== null
|
|
2677
|
+
? deserializeAws_json1_0StringList(output.SecurityGroups, context)
|
|
2678
|
+
: undefined,
|
|
2679
|
+
Status: __expectString(output.Status),
|
|
2680
|
+
Subnets: output.Subnets !== undefined && output.Subnets !== null
|
|
2681
|
+
? deserializeAws_json1_0StringList(output.Subnets, context)
|
|
2682
|
+
: undefined,
|
|
2683
|
+
VpcConnectorArn: __expectString(output.VpcConnectorArn),
|
|
2684
|
+
VpcConnectorName: __expectString(output.VpcConnectorName),
|
|
2685
|
+
VpcConnectorRevision: __expectInt32(output.VpcConnectorRevision),
|
|
2686
|
+
};
|
|
2687
|
+
};
|
|
2688
|
+
var deserializeAws_json1_0VpcConnectors = function (output, context) {
|
|
2689
|
+
var retVal = (output || [])
|
|
2690
|
+
.filter(function (e) { return e != null; })
|
|
2691
|
+
.map(function (entry) {
|
|
2692
|
+
if (entry === null) {
|
|
2693
|
+
return null;
|
|
2694
|
+
}
|
|
2695
|
+
return deserializeAws_json1_0VpcConnector(entry, context);
|
|
2696
|
+
});
|
|
2697
|
+
return retVal;
|
|
2698
|
+
};
|
|
2614
2699
|
var deserializeMetadata = function (output) {
|
|
2615
2700
|
var _a;
|
|
2616
2701
|
return ({
|