@aws-sdk/client-apprunner 3.51.0 → 3.54.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 +34 -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/endpoints.js +29 -1
- 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/endpoints.js +29 -1
- 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 +8 -4
- 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/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/AppRunner.d.ts +20 -0
- package/dist-types/ts3.4/AppRunnerClient.d.ts +8 -4
- package/dist-types/ts3.4/commands/CreateVpcConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteVpcConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeVpcConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListVpcConnectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/AppRunnerServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +161 -16
- package/dist-types/ts3.4/pagination/ListVpcConnectorsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0StartDeploymentCommand = exports.deserializeAws_json1_0ResumeServiceCommand = exports.deserializeAws_json1_0PauseServiceCommand = exports.deserializeAws_json1_0ListVpcConnectorsCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListServicesCommand = exports.deserializeAws_json1_0ListOperationsCommand = exports.deserializeAws_json1_0ListConnectionsCommand = exports.deserializeAws_json1_0ListAutoScalingConfigurationsCommand = exports.deserializeAws_json1_0DisassociateCustomDomainCommand = exports.deserializeAws_json1_0DescribeVpcConnectorCommand = exports.deserializeAws_json1_0DescribeServiceCommand = exports.deserializeAws_json1_0DescribeCustomDomainsCommand = exports.deserializeAws_json1_0DescribeAutoScalingConfigurationCommand = exports.deserializeAws_json1_0DeleteVpcConnectorCommand = exports.deserializeAws_json1_0DeleteServiceCommand = exports.deserializeAws_json1_0DeleteConnectionCommand = exports.deserializeAws_json1_0DeleteAutoScalingConfigurationCommand = exports.deserializeAws_json1_0CreateVpcConnectorCommand = exports.deserializeAws_json1_0CreateServiceCommand = exports.deserializeAws_json1_0CreateConnectionCommand = exports.deserializeAws_json1_0CreateAutoScalingConfigurationCommand = exports.deserializeAws_json1_0AssociateCustomDomainCommand = exports.serializeAws_json1_0UpdateServiceCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0StartDeploymentCommand = exports.serializeAws_json1_0ResumeServiceCommand = exports.serializeAws_json1_0PauseServiceCommand = exports.serializeAws_json1_0ListVpcConnectorsCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListServicesCommand = exports.serializeAws_json1_0ListOperationsCommand = exports.serializeAws_json1_0ListConnectionsCommand = exports.serializeAws_json1_0ListAutoScalingConfigurationsCommand = exports.serializeAws_json1_0DisassociateCustomDomainCommand = exports.serializeAws_json1_0DescribeVpcConnectorCommand = exports.serializeAws_json1_0DescribeServiceCommand = exports.serializeAws_json1_0DescribeCustomDomainsCommand = exports.serializeAws_json1_0DescribeAutoScalingConfigurationCommand = exports.serializeAws_json1_0DeleteVpcConnectorCommand = exports.serializeAws_json1_0DeleteServiceCommand = exports.serializeAws_json1_0DeleteConnectionCommand = exports.serializeAws_json1_0DeleteAutoScalingConfigurationCommand = exports.serializeAws_json1_0CreateVpcConnectorCommand = exports.serializeAws_json1_0CreateServiceCommand = exports.serializeAws_json1_0CreateConnectionCommand = exports.serializeAws_json1_0CreateAutoScalingConfigurationCommand = exports.serializeAws_json1_0AssociateCustomDomainCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_0UpdateServiceCommand = exports.deserializeAws_json1_0UntagResourceCommand = void 0;
|
|
4
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const AppRunnerServiceException_1 = require("../models/AppRunnerServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
6
9
|
const serializeAws_json1_0AssociateCustomDomainCommand = async (input, context) => {
|
|
7
10
|
const headers = {
|
|
8
11
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -43,6 +46,16 @@ const serializeAws_json1_0CreateServiceCommand = async (input, context) => {
|
|
|
43
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
44
47
|
};
|
|
45
48
|
exports.serializeAws_json1_0CreateServiceCommand = serializeAws_json1_0CreateServiceCommand;
|
|
49
|
+
const serializeAws_json1_0CreateVpcConnectorCommand = async (input, context) => {
|
|
50
|
+
const headers = {
|
|
51
|
+
"content-type": "application/x-amz-json-1.0",
|
|
52
|
+
"x-amz-target": "AppRunner.CreateVpcConnector",
|
|
53
|
+
};
|
|
54
|
+
let body;
|
|
55
|
+
body = JSON.stringify(serializeAws_json1_0CreateVpcConnectorRequest(input, context));
|
|
56
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
+
};
|
|
58
|
+
exports.serializeAws_json1_0CreateVpcConnectorCommand = serializeAws_json1_0CreateVpcConnectorCommand;
|
|
46
59
|
const serializeAws_json1_0DeleteAutoScalingConfigurationCommand = async (input, context) => {
|
|
47
60
|
const headers = {
|
|
48
61
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -73,6 +86,16 @@ const serializeAws_json1_0DeleteServiceCommand = async (input, context) => {
|
|
|
73
86
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
74
87
|
};
|
|
75
88
|
exports.serializeAws_json1_0DeleteServiceCommand = serializeAws_json1_0DeleteServiceCommand;
|
|
89
|
+
const serializeAws_json1_0DeleteVpcConnectorCommand = async (input, context) => {
|
|
90
|
+
const headers = {
|
|
91
|
+
"content-type": "application/x-amz-json-1.0",
|
|
92
|
+
"x-amz-target": "AppRunner.DeleteVpcConnector",
|
|
93
|
+
};
|
|
94
|
+
let body;
|
|
95
|
+
body = JSON.stringify(serializeAws_json1_0DeleteVpcConnectorRequest(input, context));
|
|
96
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
|
+
};
|
|
98
|
+
exports.serializeAws_json1_0DeleteVpcConnectorCommand = serializeAws_json1_0DeleteVpcConnectorCommand;
|
|
76
99
|
const serializeAws_json1_0DescribeAutoScalingConfigurationCommand = async (input, context) => {
|
|
77
100
|
const headers = {
|
|
78
101
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -103,6 +126,16 @@ const serializeAws_json1_0DescribeServiceCommand = async (input, context) => {
|
|
|
103
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
127
|
};
|
|
105
128
|
exports.serializeAws_json1_0DescribeServiceCommand = serializeAws_json1_0DescribeServiceCommand;
|
|
129
|
+
const serializeAws_json1_0DescribeVpcConnectorCommand = async (input, context) => {
|
|
130
|
+
const headers = {
|
|
131
|
+
"content-type": "application/x-amz-json-1.0",
|
|
132
|
+
"x-amz-target": "AppRunner.DescribeVpcConnector",
|
|
133
|
+
};
|
|
134
|
+
let body;
|
|
135
|
+
body = JSON.stringify(serializeAws_json1_0DescribeVpcConnectorRequest(input, context));
|
|
136
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
+
};
|
|
138
|
+
exports.serializeAws_json1_0DescribeVpcConnectorCommand = serializeAws_json1_0DescribeVpcConnectorCommand;
|
|
106
139
|
const serializeAws_json1_0DisassociateCustomDomainCommand = async (input, context) => {
|
|
107
140
|
const headers = {
|
|
108
141
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -163,6 +196,16 @@ const serializeAws_json1_0ListTagsForResourceCommand = async (input, context) =>
|
|
|
163
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
164
197
|
};
|
|
165
198
|
exports.serializeAws_json1_0ListTagsForResourceCommand = serializeAws_json1_0ListTagsForResourceCommand;
|
|
199
|
+
const serializeAws_json1_0ListVpcConnectorsCommand = async (input, context) => {
|
|
200
|
+
const headers = {
|
|
201
|
+
"content-type": "application/x-amz-json-1.0",
|
|
202
|
+
"x-amz-target": "AppRunner.ListVpcConnectors",
|
|
203
|
+
};
|
|
204
|
+
let body;
|
|
205
|
+
body = JSON.stringify(serializeAws_json1_0ListVpcConnectorsRequest(input, context));
|
|
206
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
|
+
};
|
|
208
|
+
exports.serializeAws_json1_0ListVpcConnectorsCommand = serializeAws_json1_0ListVpcConnectorsCommand;
|
|
166
209
|
const serializeAws_json1_0PauseServiceCommand = async (input, context) => {
|
|
167
210
|
const headers = {
|
|
168
211
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -248,43 +291,22 @@ const deserializeAws_json1_0AssociateCustomDomainCommandError = async (output, c
|
|
|
248
291
|
switch (errorCode) {
|
|
249
292
|
case "InternalServiceErrorException":
|
|
250
293
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
251
|
-
|
|
252
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
253
|
-
name: errorCode,
|
|
254
|
-
$metadata: deserializeMetadata(output),
|
|
255
|
-
};
|
|
256
|
-
break;
|
|
294
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
257
295
|
case "InvalidRequestException":
|
|
258
296
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
259
|
-
|
|
260
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
261
|
-
name: errorCode,
|
|
262
|
-
$metadata: deserializeMetadata(output),
|
|
263
|
-
};
|
|
264
|
-
break;
|
|
297
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
265
298
|
case "InvalidStateException":
|
|
266
299
|
case "com.amazonaws.apprunner#InvalidStateException":
|
|
267
|
-
|
|
268
|
-
...(await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)),
|
|
269
|
-
name: errorCode,
|
|
270
|
-
$metadata: deserializeMetadata(output),
|
|
271
|
-
};
|
|
272
|
-
break;
|
|
300
|
+
throw await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context);
|
|
273
301
|
default:
|
|
274
302
|
const parsedBody = parsedOutput.body;
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
...parsedBody,
|
|
278
|
-
name: `${errorCode}`,
|
|
279
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
303
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
304
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
280
305
|
$fault: "client",
|
|
281
306
|
$metadata: deserializeMetadata(output),
|
|
282
|
-
};
|
|
307
|
+
});
|
|
308
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
283
309
|
}
|
|
284
|
-
const message = response.message || response.Message || errorCode;
|
|
285
|
-
response.message = message;
|
|
286
|
-
delete response.Message;
|
|
287
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
288
310
|
};
|
|
289
311
|
const deserializeAws_json1_0CreateAutoScalingConfigurationCommand = async (output, context) => {
|
|
290
312
|
if (output.statusCode >= 300) {
|
|
@@ -311,43 +333,22 @@ const deserializeAws_json1_0CreateAutoScalingConfigurationCommandError = async (
|
|
|
311
333
|
switch (errorCode) {
|
|
312
334
|
case "InternalServiceErrorException":
|
|
313
335
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
314
|
-
|
|
315
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
316
|
-
name: errorCode,
|
|
317
|
-
$metadata: deserializeMetadata(output),
|
|
318
|
-
};
|
|
319
|
-
break;
|
|
336
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
320
337
|
case "InvalidRequestException":
|
|
321
338
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
322
|
-
|
|
323
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
324
|
-
name: errorCode,
|
|
325
|
-
$metadata: deserializeMetadata(output),
|
|
326
|
-
};
|
|
327
|
-
break;
|
|
339
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
328
340
|
case "ServiceQuotaExceededException":
|
|
329
341
|
case "com.amazonaws.apprunner#ServiceQuotaExceededException":
|
|
330
|
-
|
|
331
|
-
...(await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
332
|
-
name: errorCode,
|
|
333
|
-
$metadata: deserializeMetadata(output),
|
|
334
|
-
};
|
|
335
|
-
break;
|
|
342
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
336
343
|
default:
|
|
337
344
|
const parsedBody = parsedOutput.body;
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
...parsedBody,
|
|
341
|
-
name: `${errorCode}`,
|
|
342
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
345
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
346
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
343
347
|
$fault: "client",
|
|
344
348
|
$metadata: deserializeMetadata(output),
|
|
345
|
-
};
|
|
349
|
+
});
|
|
350
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
346
351
|
}
|
|
347
|
-
const message = response.message || response.Message || errorCode;
|
|
348
|
-
response.message = message;
|
|
349
|
-
delete response.Message;
|
|
350
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
351
352
|
};
|
|
352
353
|
const deserializeAws_json1_0CreateConnectionCommand = async (output, context) => {
|
|
353
354
|
if (output.statusCode >= 300) {
|
|
@@ -374,43 +375,22 @@ const deserializeAws_json1_0CreateConnectionCommandError = async (output, contex
|
|
|
374
375
|
switch (errorCode) {
|
|
375
376
|
case "InternalServiceErrorException":
|
|
376
377
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
377
|
-
|
|
378
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
379
|
-
name: errorCode,
|
|
380
|
-
$metadata: deserializeMetadata(output),
|
|
381
|
-
};
|
|
382
|
-
break;
|
|
378
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
383
379
|
case "InvalidRequestException":
|
|
384
380
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
385
|
-
|
|
386
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
387
|
-
name: errorCode,
|
|
388
|
-
$metadata: deserializeMetadata(output),
|
|
389
|
-
};
|
|
390
|
-
break;
|
|
381
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
391
382
|
case "ServiceQuotaExceededException":
|
|
392
383
|
case "com.amazonaws.apprunner#ServiceQuotaExceededException":
|
|
393
|
-
|
|
394
|
-
...(await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
395
|
-
name: errorCode,
|
|
396
|
-
$metadata: deserializeMetadata(output),
|
|
397
|
-
};
|
|
398
|
-
break;
|
|
384
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
399
385
|
default:
|
|
400
386
|
const parsedBody = parsedOutput.body;
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
...parsedBody,
|
|
404
|
-
name: `${errorCode}`,
|
|
405
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
387
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
388
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
406
389
|
$fault: "client",
|
|
407
390
|
$metadata: deserializeMetadata(output),
|
|
408
|
-
};
|
|
391
|
+
});
|
|
392
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
409
393
|
}
|
|
410
|
-
const message = response.message || response.Message || errorCode;
|
|
411
|
-
response.message = message;
|
|
412
|
-
delete response.Message;
|
|
413
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
414
394
|
};
|
|
415
395
|
const deserializeAws_json1_0CreateServiceCommand = async (output, context) => {
|
|
416
396
|
if (output.statusCode >= 300) {
|
|
@@ -437,43 +417,64 @@ const deserializeAws_json1_0CreateServiceCommandError = async (output, context)
|
|
|
437
417
|
switch (errorCode) {
|
|
438
418
|
case "InternalServiceErrorException":
|
|
439
419
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
440
|
-
|
|
441
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
442
|
-
name: errorCode,
|
|
443
|
-
$metadata: deserializeMetadata(output),
|
|
444
|
-
};
|
|
445
|
-
break;
|
|
420
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
446
421
|
case "InvalidRequestException":
|
|
447
422
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
448
|
-
|
|
449
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
450
|
-
name: errorCode,
|
|
451
|
-
$metadata: deserializeMetadata(output),
|
|
452
|
-
};
|
|
453
|
-
break;
|
|
423
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
454
424
|
case "ServiceQuotaExceededException":
|
|
455
425
|
case "com.amazonaws.apprunner#ServiceQuotaExceededException":
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
426
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
427
|
+
default:
|
|
428
|
+
const parsedBody = parsedOutput.body;
|
|
429
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
430
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
431
|
+
$fault: "client",
|
|
459
432
|
$metadata: deserializeMetadata(output),
|
|
460
|
-
};
|
|
461
|
-
|
|
433
|
+
});
|
|
434
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
const deserializeAws_json1_0CreateVpcConnectorCommand = async (output, context) => {
|
|
438
|
+
if (output.statusCode >= 300) {
|
|
439
|
+
return deserializeAws_json1_0CreateVpcConnectorCommandError(output, context);
|
|
440
|
+
}
|
|
441
|
+
const data = await parseBody(output.body, context);
|
|
442
|
+
let contents = {};
|
|
443
|
+
contents = deserializeAws_json1_0CreateVpcConnectorResponse(data, context);
|
|
444
|
+
const response = {
|
|
445
|
+
$metadata: deserializeMetadata(output),
|
|
446
|
+
...contents,
|
|
447
|
+
};
|
|
448
|
+
return Promise.resolve(response);
|
|
449
|
+
};
|
|
450
|
+
exports.deserializeAws_json1_0CreateVpcConnectorCommand = deserializeAws_json1_0CreateVpcConnectorCommand;
|
|
451
|
+
const deserializeAws_json1_0CreateVpcConnectorCommandError = async (output, context) => {
|
|
452
|
+
const parsedOutput = {
|
|
453
|
+
...output,
|
|
454
|
+
body: await parseBody(output.body, context),
|
|
455
|
+
};
|
|
456
|
+
let response;
|
|
457
|
+
let errorCode = "UnknownError";
|
|
458
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
459
|
+
switch (errorCode) {
|
|
460
|
+
case "InternalServiceErrorException":
|
|
461
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
462
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
463
|
+
case "InvalidRequestException":
|
|
464
|
+
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
465
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
466
|
+
case "ServiceQuotaExceededException":
|
|
467
|
+
case "com.amazonaws.apprunner#ServiceQuotaExceededException":
|
|
468
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
462
469
|
default:
|
|
463
470
|
const parsedBody = parsedOutput.body;
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
...parsedBody,
|
|
467
|
-
name: `${errorCode}`,
|
|
468
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
471
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
472
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
469
473
|
$fault: "client",
|
|
470
474
|
$metadata: deserializeMetadata(output),
|
|
471
|
-
};
|
|
475
|
+
});
|
|
476
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
472
477
|
}
|
|
473
|
-
const message = response.message || response.Message || errorCode;
|
|
474
|
-
response.message = message;
|
|
475
|
-
delete response.Message;
|
|
476
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
477
478
|
};
|
|
478
479
|
const deserializeAws_json1_0DeleteAutoScalingConfigurationCommand = async (output, context) => {
|
|
479
480
|
if (output.statusCode >= 300) {
|
|
@@ -500,43 +501,22 @@ const deserializeAws_json1_0DeleteAutoScalingConfigurationCommandError = async (
|
|
|
500
501
|
switch (errorCode) {
|
|
501
502
|
case "InternalServiceErrorException":
|
|
502
503
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
503
|
-
|
|
504
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
505
|
-
name: errorCode,
|
|
506
|
-
$metadata: deserializeMetadata(output),
|
|
507
|
-
};
|
|
508
|
-
break;
|
|
504
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
509
505
|
case "InvalidRequestException":
|
|
510
506
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
511
|
-
|
|
512
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
513
|
-
name: errorCode,
|
|
514
|
-
$metadata: deserializeMetadata(output),
|
|
515
|
-
};
|
|
516
|
-
break;
|
|
507
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
517
508
|
case "ResourceNotFoundException":
|
|
518
509
|
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
519
|
-
|
|
520
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
521
|
-
name: errorCode,
|
|
522
|
-
$metadata: deserializeMetadata(output),
|
|
523
|
-
};
|
|
524
|
-
break;
|
|
510
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
525
511
|
default:
|
|
526
512
|
const parsedBody = parsedOutput.body;
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
...parsedBody,
|
|
530
|
-
name: `${errorCode}`,
|
|
531
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
513
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
514
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
532
515
|
$fault: "client",
|
|
533
516
|
$metadata: deserializeMetadata(output),
|
|
534
|
-
};
|
|
517
|
+
});
|
|
518
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
535
519
|
}
|
|
536
|
-
const message = response.message || response.Message || errorCode;
|
|
537
|
-
response.message = message;
|
|
538
|
-
delete response.Message;
|
|
539
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
540
520
|
};
|
|
541
521
|
const deserializeAws_json1_0DeleteConnectionCommand = async (output, context) => {
|
|
542
522
|
if (output.statusCode >= 300) {
|
|
@@ -563,43 +543,22 @@ const deserializeAws_json1_0DeleteConnectionCommandError = async (output, contex
|
|
|
563
543
|
switch (errorCode) {
|
|
564
544
|
case "InternalServiceErrorException":
|
|
565
545
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
566
|
-
|
|
567
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
568
|
-
name: errorCode,
|
|
569
|
-
$metadata: deserializeMetadata(output),
|
|
570
|
-
};
|
|
571
|
-
break;
|
|
546
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
572
547
|
case "InvalidRequestException":
|
|
573
548
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
574
|
-
|
|
575
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
576
|
-
name: errorCode,
|
|
577
|
-
$metadata: deserializeMetadata(output),
|
|
578
|
-
};
|
|
579
|
-
break;
|
|
549
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
580
550
|
case "ResourceNotFoundException":
|
|
581
551
|
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
582
|
-
|
|
583
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
584
|
-
name: errorCode,
|
|
585
|
-
$metadata: deserializeMetadata(output),
|
|
586
|
-
};
|
|
587
|
-
break;
|
|
552
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
588
553
|
default:
|
|
589
554
|
const parsedBody = parsedOutput.body;
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
...parsedBody,
|
|
593
|
-
name: `${errorCode}`,
|
|
594
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
555
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
556
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
595
557
|
$fault: "client",
|
|
596
558
|
$metadata: deserializeMetadata(output),
|
|
597
|
-
};
|
|
559
|
+
});
|
|
560
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
598
561
|
}
|
|
599
|
-
const message = response.message || response.Message || errorCode;
|
|
600
|
-
response.message = message;
|
|
601
|
-
delete response.Message;
|
|
602
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
603
562
|
};
|
|
604
563
|
const deserializeAws_json1_0DeleteServiceCommand = async (output, context) => {
|
|
605
564
|
if (output.statusCode >= 300) {
|
|
@@ -626,51 +585,67 @@ const deserializeAws_json1_0DeleteServiceCommandError = async (output, context)
|
|
|
626
585
|
switch (errorCode) {
|
|
627
586
|
case "InternalServiceErrorException":
|
|
628
587
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
629
|
-
|
|
630
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
631
|
-
name: errorCode,
|
|
632
|
-
$metadata: deserializeMetadata(output),
|
|
633
|
-
};
|
|
634
|
-
break;
|
|
588
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
635
589
|
case "InvalidRequestException":
|
|
636
590
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
637
|
-
|
|
638
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
639
|
-
name: errorCode,
|
|
640
|
-
$metadata: deserializeMetadata(output),
|
|
641
|
-
};
|
|
642
|
-
break;
|
|
591
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
643
592
|
case "InvalidStateException":
|
|
644
593
|
case "com.amazonaws.apprunner#InvalidStateException":
|
|
645
|
-
|
|
646
|
-
...(await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)),
|
|
647
|
-
name: errorCode,
|
|
648
|
-
$metadata: deserializeMetadata(output),
|
|
649
|
-
};
|
|
650
|
-
break;
|
|
594
|
+
throw await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context);
|
|
651
595
|
case "ResourceNotFoundException":
|
|
652
596
|
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
597
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
598
|
+
default:
|
|
599
|
+
const parsedBody = parsedOutput.body;
|
|
600
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
601
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
602
|
+
$fault: "client",
|
|
656
603
|
$metadata: deserializeMetadata(output),
|
|
657
|
-
};
|
|
658
|
-
|
|
604
|
+
});
|
|
605
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
606
|
+
}
|
|
607
|
+
};
|
|
608
|
+
const deserializeAws_json1_0DeleteVpcConnectorCommand = async (output, context) => {
|
|
609
|
+
if (output.statusCode >= 300) {
|
|
610
|
+
return deserializeAws_json1_0DeleteVpcConnectorCommandError(output, context);
|
|
611
|
+
}
|
|
612
|
+
const data = await parseBody(output.body, context);
|
|
613
|
+
let contents = {};
|
|
614
|
+
contents = deserializeAws_json1_0DeleteVpcConnectorResponse(data, context);
|
|
615
|
+
const response = {
|
|
616
|
+
$metadata: deserializeMetadata(output),
|
|
617
|
+
...contents,
|
|
618
|
+
};
|
|
619
|
+
return Promise.resolve(response);
|
|
620
|
+
};
|
|
621
|
+
exports.deserializeAws_json1_0DeleteVpcConnectorCommand = deserializeAws_json1_0DeleteVpcConnectorCommand;
|
|
622
|
+
const deserializeAws_json1_0DeleteVpcConnectorCommandError = async (output, context) => {
|
|
623
|
+
const parsedOutput = {
|
|
624
|
+
...output,
|
|
625
|
+
body: await parseBody(output.body, context),
|
|
626
|
+
};
|
|
627
|
+
let response;
|
|
628
|
+
let errorCode = "UnknownError";
|
|
629
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
630
|
+
switch (errorCode) {
|
|
631
|
+
case "InternalServiceErrorException":
|
|
632
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
633
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
634
|
+
case "InvalidRequestException":
|
|
635
|
+
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
636
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
637
|
+
case "ResourceNotFoundException":
|
|
638
|
+
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
639
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
659
640
|
default:
|
|
660
641
|
const parsedBody = parsedOutput.body;
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
...parsedBody,
|
|
664
|
-
name: `${errorCode}`,
|
|
665
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
642
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
643
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
666
644
|
$fault: "client",
|
|
667
645
|
$metadata: deserializeMetadata(output),
|
|
668
|
-
};
|
|
646
|
+
});
|
|
647
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
669
648
|
}
|
|
670
|
-
const message = response.message || response.Message || errorCode;
|
|
671
|
-
response.message = message;
|
|
672
|
-
delete response.Message;
|
|
673
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
674
649
|
};
|
|
675
650
|
const deserializeAws_json1_0DescribeAutoScalingConfigurationCommand = async (output, context) => {
|
|
676
651
|
if (output.statusCode >= 300) {
|
|
@@ -697,43 +672,22 @@ const deserializeAws_json1_0DescribeAutoScalingConfigurationCommandError = async
|
|
|
697
672
|
switch (errorCode) {
|
|
698
673
|
case "InternalServiceErrorException":
|
|
699
674
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
700
|
-
|
|
701
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
702
|
-
name: errorCode,
|
|
703
|
-
$metadata: deserializeMetadata(output),
|
|
704
|
-
};
|
|
705
|
-
break;
|
|
675
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
706
676
|
case "InvalidRequestException":
|
|
707
677
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
708
|
-
|
|
709
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
710
|
-
name: errorCode,
|
|
711
|
-
$metadata: deserializeMetadata(output),
|
|
712
|
-
};
|
|
713
|
-
break;
|
|
678
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
714
679
|
case "ResourceNotFoundException":
|
|
715
680
|
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
716
|
-
|
|
717
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
718
|
-
name: errorCode,
|
|
719
|
-
$metadata: deserializeMetadata(output),
|
|
720
|
-
};
|
|
721
|
-
break;
|
|
681
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
722
682
|
default:
|
|
723
683
|
const parsedBody = parsedOutput.body;
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
...parsedBody,
|
|
727
|
-
name: `${errorCode}`,
|
|
728
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
684
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
685
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
729
686
|
$fault: "client",
|
|
730
687
|
$metadata: deserializeMetadata(output),
|
|
731
|
-
};
|
|
688
|
+
});
|
|
689
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
732
690
|
}
|
|
733
|
-
const message = response.message || response.Message || errorCode;
|
|
734
|
-
response.message = message;
|
|
735
|
-
delete response.Message;
|
|
736
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
737
691
|
};
|
|
738
692
|
const deserializeAws_json1_0DescribeCustomDomainsCommand = async (output, context) => {
|
|
739
693
|
if (output.statusCode >= 300) {
|
|
@@ -760,43 +714,22 @@ const deserializeAws_json1_0DescribeCustomDomainsCommandError = async (output, c
|
|
|
760
714
|
switch (errorCode) {
|
|
761
715
|
case "InternalServiceErrorException":
|
|
762
716
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
763
|
-
|
|
764
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
765
|
-
name: errorCode,
|
|
766
|
-
$metadata: deserializeMetadata(output),
|
|
767
|
-
};
|
|
768
|
-
break;
|
|
717
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
769
718
|
case "InvalidRequestException":
|
|
770
719
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
771
|
-
|
|
772
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
773
|
-
name: errorCode,
|
|
774
|
-
$metadata: deserializeMetadata(output),
|
|
775
|
-
};
|
|
776
|
-
break;
|
|
720
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
777
721
|
case "ResourceNotFoundException":
|
|
778
722
|
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
779
|
-
|
|
780
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
781
|
-
name: errorCode,
|
|
782
|
-
$metadata: deserializeMetadata(output),
|
|
783
|
-
};
|
|
784
|
-
break;
|
|
723
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
785
724
|
default:
|
|
786
725
|
const parsedBody = parsedOutput.body;
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
...parsedBody,
|
|
790
|
-
name: `${errorCode}`,
|
|
791
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
726
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
727
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
792
728
|
$fault: "client",
|
|
793
729
|
$metadata: deserializeMetadata(output),
|
|
794
|
-
};
|
|
730
|
+
});
|
|
731
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
795
732
|
}
|
|
796
|
-
const message = response.message || response.Message || errorCode;
|
|
797
|
-
response.message = message;
|
|
798
|
-
delete response.Message;
|
|
799
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
800
733
|
};
|
|
801
734
|
const deserializeAws_json1_0DescribeServiceCommand = async (output, context) => {
|
|
802
735
|
if (output.statusCode >= 300) {
|
|
@@ -823,43 +756,64 @@ const deserializeAws_json1_0DescribeServiceCommandError = async (output, context
|
|
|
823
756
|
switch (errorCode) {
|
|
824
757
|
case "InternalServiceErrorException":
|
|
825
758
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
826
|
-
|
|
827
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
828
|
-
name: errorCode,
|
|
829
|
-
$metadata: deserializeMetadata(output),
|
|
830
|
-
};
|
|
831
|
-
break;
|
|
759
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
832
760
|
case "InvalidRequestException":
|
|
833
761
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
834
|
-
|
|
835
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
836
|
-
name: errorCode,
|
|
837
|
-
$metadata: deserializeMetadata(output),
|
|
838
|
-
};
|
|
839
|
-
break;
|
|
762
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
840
763
|
case "ResourceNotFoundException":
|
|
841
764
|
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
765
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
766
|
+
default:
|
|
767
|
+
const parsedBody = parsedOutput.body;
|
|
768
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
769
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
770
|
+
$fault: "client",
|
|
845
771
|
$metadata: deserializeMetadata(output),
|
|
846
|
-
};
|
|
847
|
-
|
|
772
|
+
});
|
|
773
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
774
|
+
}
|
|
775
|
+
};
|
|
776
|
+
const deserializeAws_json1_0DescribeVpcConnectorCommand = async (output, context) => {
|
|
777
|
+
if (output.statusCode >= 300) {
|
|
778
|
+
return deserializeAws_json1_0DescribeVpcConnectorCommandError(output, context);
|
|
779
|
+
}
|
|
780
|
+
const data = await parseBody(output.body, context);
|
|
781
|
+
let contents = {};
|
|
782
|
+
contents = deserializeAws_json1_0DescribeVpcConnectorResponse(data, context);
|
|
783
|
+
const response = {
|
|
784
|
+
$metadata: deserializeMetadata(output),
|
|
785
|
+
...contents,
|
|
786
|
+
};
|
|
787
|
+
return Promise.resolve(response);
|
|
788
|
+
};
|
|
789
|
+
exports.deserializeAws_json1_0DescribeVpcConnectorCommand = deserializeAws_json1_0DescribeVpcConnectorCommand;
|
|
790
|
+
const deserializeAws_json1_0DescribeVpcConnectorCommandError = async (output, context) => {
|
|
791
|
+
const parsedOutput = {
|
|
792
|
+
...output,
|
|
793
|
+
body: await parseBody(output.body, context),
|
|
794
|
+
};
|
|
795
|
+
let response;
|
|
796
|
+
let errorCode = "UnknownError";
|
|
797
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
798
|
+
switch (errorCode) {
|
|
799
|
+
case "InternalServiceErrorException":
|
|
800
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
801
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
802
|
+
case "InvalidRequestException":
|
|
803
|
+
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
804
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
805
|
+
case "ResourceNotFoundException":
|
|
806
|
+
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
807
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
848
808
|
default:
|
|
849
809
|
const parsedBody = parsedOutput.body;
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
...parsedBody,
|
|
853
|
-
name: `${errorCode}`,
|
|
854
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
810
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
811
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
855
812
|
$fault: "client",
|
|
856
813
|
$metadata: deserializeMetadata(output),
|
|
857
|
-
};
|
|
814
|
+
});
|
|
815
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
858
816
|
}
|
|
859
|
-
const message = response.message || response.Message || errorCode;
|
|
860
|
-
response.message = message;
|
|
861
|
-
delete response.Message;
|
|
862
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
863
817
|
};
|
|
864
818
|
const deserializeAws_json1_0DisassociateCustomDomainCommand = async (output, context) => {
|
|
865
819
|
if (output.statusCode >= 300) {
|
|
@@ -886,51 +840,25 @@ const deserializeAws_json1_0DisassociateCustomDomainCommandError = async (output
|
|
|
886
840
|
switch (errorCode) {
|
|
887
841
|
case "InternalServiceErrorException":
|
|
888
842
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
889
|
-
|
|
890
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
891
|
-
name: errorCode,
|
|
892
|
-
$metadata: deserializeMetadata(output),
|
|
893
|
-
};
|
|
894
|
-
break;
|
|
843
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
895
844
|
case "InvalidRequestException":
|
|
896
845
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
897
|
-
|
|
898
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
899
|
-
name: errorCode,
|
|
900
|
-
$metadata: deserializeMetadata(output),
|
|
901
|
-
};
|
|
902
|
-
break;
|
|
846
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
903
847
|
case "InvalidStateException":
|
|
904
848
|
case "com.amazonaws.apprunner#InvalidStateException":
|
|
905
|
-
|
|
906
|
-
...(await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)),
|
|
907
|
-
name: errorCode,
|
|
908
|
-
$metadata: deserializeMetadata(output),
|
|
909
|
-
};
|
|
910
|
-
break;
|
|
849
|
+
throw await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context);
|
|
911
850
|
case "ResourceNotFoundException":
|
|
912
851
|
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
913
|
-
|
|
914
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
915
|
-
name: errorCode,
|
|
916
|
-
$metadata: deserializeMetadata(output),
|
|
917
|
-
};
|
|
918
|
-
break;
|
|
852
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
919
853
|
default:
|
|
920
854
|
const parsedBody = parsedOutput.body;
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
...parsedBody,
|
|
924
|
-
name: `${errorCode}`,
|
|
925
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
855
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
856
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
926
857
|
$fault: "client",
|
|
927
858
|
$metadata: deserializeMetadata(output),
|
|
928
|
-
};
|
|
859
|
+
});
|
|
860
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
929
861
|
}
|
|
930
|
-
const message = response.message || response.Message || errorCode;
|
|
931
|
-
response.message = message;
|
|
932
|
-
delete response.Message;
|
|
933
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
934
862
|
};
|
|
935
863
|
const deserializeAws_json1_0ListAutoScalingConfigurationsCommand = async (output, context) => {
|
|
936
864
|
if (output.statusCode >= 300) {
|
|
@@ -957,35 +885,19 @@ const deserializeAws_json1_0ListAutoScalingConfigurationsCommandError = async (o
|
|
|
957
885
|
switch (errorCode) {
|
|
958
886
|
case "InternalServiceErrorException":
|
|
959
887
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
960
|
-
|
|
961
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
962
|
-
name: errorCode,
|
|
963
|
-
$metadata: deserializeMetadata(output),
|
|
964
|
-
};
|
|
965
|
-
break;
|
|
888
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
966
889
|
case "InvalidRequestException":
|
|
967
890
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
968
|
-
|
|
969
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
970
|
-
name: errorCode,
|
|
971
|
-
$metadata: deserializeMetadata(output),
|
|
972
|
-
};
|
|
973
|
-
break;
|
|
891
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
974
892
|
default:
|
|
975
893
|
const parsedBody = parsedOutput.body;
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
...parsedBody,
|
|
979
|
-
name: `${errorCode}`,
|
|
980
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
894
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
895
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
981
896
|
$fault: "client",
|
|
982
897
|
$metadata: deserializeMetadata(output),
|
|
983
|
-
};
|
|
898
|
+
});
|
|
899
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
984
900
|
}
|
|
985
|
-
const message = response.message || response.Message || errorCode;
|
|
986
|
-
response.message = message;
|
|
987
|
-
delete response.Message;
|
|
988
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
989
901
|
};
|
|
990
902
|
const deserializeAws_json1_0ListConnectionsCommand = async (output, context) => {
|
|
991
903
|
if (output.statusCode >= 300) {
|
|
@@ -1012,35 +924,19 @@ const deserializeAws_json1_0ListConnectionsCommandError = async (output, context
|
|
|
1012
924
|
switch (errorCode) {
|
|
1013
925
|
case "InternalServiceErrorException":
|
|
1014
926
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
1015
|
-
|
|
1016
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1017
|
-
name: errorCode,
|
|
1018
|
-
$metadata: deserializeMetadata(output),
|
|
1019
|
-
};
|
|
1020
|
-
break;
|
|
927
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1021
928
|
case "InvalidRequestException":
|
|
1022
929
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
1023
|
-
|
|
1024
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1025
|
-
name: errorCode,
|
|
1026
|
-
$metadata: deserializeMetadata(output),
|
|
1027
|
-
};
|
|
1028
|
-
break;
|
|
930
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1029
931
|
default:
|
|
1030
932
|
const parsedBody = parsedOutput.body;
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
...parsedBody,
|
|
1034
|
-
name: `${errorCode}`,
|
|
1035
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
933
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
934
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1036
935
|
$fault: "client",
|
|
1037
936
|
$metadata: deserializeMetadata(output),
|
|
1038
|
-
};
|
|
937
|
+
});
|
|
938
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1039
939
|
}
|
|
1040
|
-
const message = response.message || response.Message || errorCode;
|
|
1041
|
-
response.message = message;
|
|
1042
|
-
delete response.Message;
|
|
1043
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1044
940
|
};
|
|
1045
941
|
const deserializeAws_json1_0ListOperationsCommand = async (output, context) => {
|
|
1046
942
|
if (output.statusCode >= 300) {
|
|
@@ -1067,43 +963,22 @@ const deserializeAws_json1_0ListOperationsCommandError = async (output, context)
|
|
|
1067
963
|
switch (errorCode) {
|
|
1068
964
|
case "InternalServiceErrorException":
|
|
1069
965
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
1070
|
-
|
|
1071
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1072
|
-
name: errorCode,
|
|
1073
|
-
$metadata: deserializeMetadata(output),
|
|
1074
|
-
};
|
|
1075
|
-
break;
|
|
966
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1076
967
|
case "InvalidRequestException":
|
|
1077
968
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
1078
|
-
|
|
1079
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1080
|
-
name: errorCode,
|
|
1081
|
-
$metadata: deserializeMetadata(output),
|
|
1082
|
-
};
|
|
1083
|
-
break;
|
|
969
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1084
970
|
case "ResourceNotFoundException":
|
|
1085
971
|
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
1086
|
-
|
|
1087
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1088
|
-
name: errorCode,
|
|
1089
|
-
$metadata: deserializeMetadata(output),
|
|
1090
|
-
};
|
|
1091
|
-
break;
|
|
972
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1092
973
|
default:
|
|
1093
974
|
const parsedBody = parsedOutput.body;
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
...parsedBody,
|
|
1097
|
-
name: `${errorCode}`,
|
|
1098
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
975
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
976
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1099
977
|
$fault: "client",
|
|
1100
978
|
$metadata: deserializeMetadata(output),
|
|
1101
|
-
};
|
|
979
|
+
});
|
|
980
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1102
981
|
}
|
|
1103
|
-
const message = response.message || response.Message || errorCode;
|
|
1104
|
-
response.message = message;
|
|
1105
|
-
delete response.Message;
|
|
1106
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1107
982
|
};
|
|
1108
983
|
const deserializeAws_json1_0ListServicesCommand = async (output, context) => {
|
|
1109
984
|
if (output.statusCode >= 300) {
|
|
@@ -1130,35 +1005,19 @@ const deserializeAws_json1_0ListServicesCommandError = async (output, context) =
|
|
|
1130
1005
|
switch (errorCode) {
|
|
1131
1006
|
case "InternalServiceErrorException":
|
|
1132
1007
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
1133
|
-
|
|
1134
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1135
|
-
name: errorCode,
|
|
1136
|
-
$metadata: deserializeMetadata(output),
|
|
1137
|
-
};
|
|
1138
|
-
break;
|
|
1008
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1139
1009
|
case "InvalidRequestException":
|
|
1140
1010
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
1141
|
-
|
|
1142
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1143
|
-
name: errorCode,
|
|
1144
|
-
$metadata: deserializeMetadata(output),
|
|
1145
|
-
};
|
|
1146
|
-
break;
|
|
1011
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1147
1012
|
default:
|
|
1148
1013
|
const parsedBody = parsedOutput.body;
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
...parsedBody,
|
|
1152
|
-
name: `${errorCode}`,
|
|
1153
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1014
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1015
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1154
1016
|
$fault: "client",
|
|
1155
1017
|
$metadata: deserializeMetadata(output),
|
|
1156
|
-
};
|
|
1018
|
+
});
|
|
1019
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1157
1020
|
}
|
|
1158
|
-
const message = response.message || response.Message || errorCode;
|
|
1159
|
-
response.message = message;
|
|
1160
|
-
delete response.Message;
|
|
1161
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1162
1021
|
};
|
|
1163
1022
|
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
1164
1023
|
if (output.statusCode >= 300) {
|
|
@@ -1185,51 +1044,64 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1185
1044
|
switch (errorCode) {
|
|
1186
1045
|
case "InternalServiceErrorException":
|
|
1187
1046
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
1188
|
-
|
|
1189
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1190
|
-
name: errorCode,
|
|
1191
|
-
$metadata: deserializeMetadata(output),
|
|
1192
|
-
};
|
|
1193
|
-
break;
|
|
1047
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1194
1048
|
case "InvalidRequestException":
|
|
1195
1049
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
1196
|
-
|
|
1197
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1198
|
-
name: errorCode,
|
|
1199
|
-
$metadata: deserializeMetadata(output),
|
|
1200
|
-
};
|
|
1201
|
-
break;
|
|
1050
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1202
1051
|
case "InvalidStateException":
|
|
1203
1052
|
case "com.amazonaws.apprunner#InvalidStateException":
|
|
1204
|
-
|
|
1205
|
-
...(await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)),
|
|
1206
|
-
name: errorCode,
|
|
1207
|
-
$metadata: deserializeMetadata(output),
|
|
1208
|
-
};
|
|
1209
|
-
break;
|
|
1053
|
+
throw await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context);
|
|
1210
1054
|
case "ResourceNotFoundException":
|
|
1211
1055
|
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1056
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1057
|
+
default:
|
|
1058
|
+
const parsedBody = parsedOutput.body;
|
|
1059
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1060
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1061
|
+
$fault: "client",
|
|
1215
1062
|
$metadata: deserializeMetadata(output),
|
|
1216
|
-
};
|
|
1217
|
-
|
|
1063
|
+
});
|
|
1064
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1065
|
+
}
|
|
1066
|
+
};
|
|
1067
|
+
const deserializeAws_json1_0ListVpcConnectorsCommand = async (output, context) => {
|
|
1068
|
+
if (output.statusCode >= 300) {
|
|
1069
|
+
return deserializeAws_json1_0ListVpcConnectorsCommandError(output, context);
|
|
1070
|
+
}
|
|
1071
|
+
const data = await parseBody(output.body, context);
|
|
1072
|
+
let contents = {};
|
|
1073
|
+
contents = deserializeAws_json1_0ListVpcConnectorsResponse(data, context);
|
|
1074
|
+
const response = {
|
|
1075
|
+
$metadata: deserializeMetadata(output),
|
|
1076
|
+
...contents,
|
|
1077
|
+
};
|
|
1078
|
+
return Promise.resolve(response);
|
|
1079
|
+
};
|
|
1080
|
+
exports.deserializeAws_json1_0ListVpcConnectorsCommand = deserializeAws_json1_0ListVpcConnectorsCommand;
|
|
1081
|
+
const deserializeAws_json1_0ListVpcConnectorsCommandError = async (output, context) => {
|
|
1082
|
+
const parsedOutput = {
|
|
1083
|
+
...output,
|
|
1084
|
+
body: await parseBody(output.body, context),
|
|
1085
|
+
};
|
|
1086
|
+
let response;
|
|
1087
|
+
let errorCode = "UnknownError";
|
|
1088
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1089
|
+
switch (errorCode) {
|
|
1090
|
+
case "InternalServiceErrorException":
|
|
1091
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
1092
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1093
|
+
case "InvalidRequestException":
|
|
1094
|
+
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
1095
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1218
1096
|
default:
|
|
1219
1097
|
const parsedBody = parsedOutput.body;
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
...parsedBody,
|
|
1223
|
-
name: `${errorCode}`,
|
|
1224
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1098
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1099
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1225
1100
|
$fault: "client",
|
|
1226
1101
|
$metadata: deserializeMetadata(output),
|
|
1227
|
-
};
|
|
1102
|
+
});
|
|
1103
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1228
1104
|
}
|
|
1229
|
-
const message = response.message || response.Message || errorCode;
|
|
1230
|
-
response.message = message;
|
|
1231
|
-
delete response.Message;
|
|
1232
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1233
1105
|
};
|
|
1234
1106
|
const deserializeAws_json1_0PauseServiceCommand = async (output, context) => {
|
|
1235
1107
|
if (output.statusCode >= 300) {
|
|
@@ -1256,51 +1128,25 @@ const deserializeAws_json1_0PauseServiceCommandError = async (output, context) =
|
|
|
1256
1128
|
switch (errorCode) {
|
|
1257
1129
|
case "InternalServiceErrorException":
|
|
1258
1130
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
1259
|
-
|
|
1260
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1261
|
-
name: errorCode,
|
|
1262
|
-
$metadata: deserializeMetadata(output),
|
|
1263
|
-
};
|
|
1264
|
-
break;
|
|
1131
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1265
1132
|
case "InvalidRequestException":
|
|
1266
1133
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
1267
|
-
|
|
1268
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1269
|
-
name: errorCode,
|
|
1270
|
-
$metadata: deserializeMetadata(output),
|
|
1271
|
-
};
|
|
1272
|
-
break;
|
|
1134
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1273
1135
|
case "InvalidStateException":
|
|
1274
1136
|
case "com.amazonaws.apprunner#InvalidStateException":
|
|
1275
|
-
|
|
1276
|
-
...(await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)),
|
|
1277
|
-
name: errorCode,
|
|
1278
|
-
$metadata: deserializeMetadata(output),
|
|
1279
|
-
};
|
|
1280
|
-
break;
|
|
1137
|
+
throw await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context);
|
|
1281
1138
|
case "ResourceNotFoundException":
|
|
1282
1139
|
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
1283
|
-
|
|
1284
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1285
|
-
name: errorCode,
|
|
1286
|
-
$metadata: deserializeMetadata(output),
|
|
1287
|
-
};
|
|
1288
|
-
break;
|
|
1140
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1289
1141
|
default:
|
|
1290
1142
|
const parsedBody = parsedOutput.body;
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
...parsedBody,
|
|
1294
|
-
name: `${errorCode}`,
|
|
1295
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1143
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1144
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1296
1145
|
$fault: "client",
|
|
1297
1146
|
$metadata: deserializeMetadata(output),
|
|
1298
|
-
};
|
|
1147
|
+
});
|
|
1148
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1299
1149
|
}
|
|
1300
|
-
const message = response.message || response.Message || errorCode;
|
|
1301
|
-
response.message = message;
|
|
1302
|
-
delete response.Message;
|
|
1303
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1304
1150
|
};
|
|
1305
1151
|
const deserializeAws_json1_0ResumeServiceCommand = async (output, context) => {
|
|
1306
1152
|
if (output.statusCode >= 300) {
|
|
@@ -1327,51 +1173,25 @@ const deserializeAws_json1_0ResumeServiceCommandError = async (output, context)
|
|
|
1327
1173
|
switch (errorCode) {
|
|
1328
1174
|
case "InternalServiceErrorException":
|
|
1329
1175
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
1330
|
-
|
|
1331
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1332
|
-
name: errorCode,
|
|
1333
|
-
$metadata: deserializeMetadata(output),
|
|
1334
|
-
};
|
|
1335
|
-
break;
|
|
1176
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1336
1177
|
case "InvalidRequestException":
|
|
1337
1178
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
1338
|
-
|
|
1339
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1340
|
-
name: errorCode,
|
|
1341
|
-
$metadata: deserializeMetadata(output),
|
|
1342
|
-
};
|
|
1343
|
-
break;
|
|
1179
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1344
1180
|
case "InvalidStateException":
|
|
1345
1181
|
case "com.amazonaws.apprunner#InvalidStateException":
|
|
1346
|
-
|
|
1347
|
-
...(await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)),
|
|
1348
|
-
name: errorCode,
|
|
1349
|
-
$metadata: deserializeMetadata(output),
|
|
1350
|
-
};
|
|
1351
|
-
break;
|
|
1182
|
+
throw await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context);
|
|
1352
1183
|
case "ResourceNotFoundException":
|
|
1353
1184
|
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
1354
|
-
|
|
1355
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1356
|
-
name: errorCode,
|
|
1357
|
-
$metadata: deserializeMetadata(output),
|
|
1358
|
-
};
|
|
1359
|
-
break;
|
|
1185
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1360
1186
|
default:
|
|
1361
1187
|
const parsedBody = parsedOutput.body;
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
...parsedBody,
|
|
1365
|
-
name: `${errorCode}`,
|
|
1366
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1188
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1189
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1367
1190
|
$fault: "client",
|
|
1368
1191
|
$metadata: deserializeMetadata(output),
|
|
1369
|
-
};
|
|
1192
|
+
});
|
|
1193
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1370
1194
|
}
|
|
1371
|
-
const message = response.message || response.Message || errorCode;
|
|
1372
|
-
response.message = message;
|
|
1373
|
-
delete response.Message;
|
|
1374
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1375
1195
|
};
|
|
1376
1196
|
const deserializeAws_json1_0StartDeploymentCommand = async (output, context) => {
|
|
1377
1197
|
if (output.statusCode >= 300) {
|
|
@@ -1398,43 +1218,22 @@ const deserializeAws_json1_0StartDeploymentCommandError = async (output, context
|
|
|
1398
1218
|
switch (errorCode) {
|
|
1399
1219
|
case "InternalServiceErrorException":
|
|
1400
1220
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
1401
|
-
|
|
1402
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1403
|
-
name: errorCode,
|
|
1404
|
-
$metadata: deserializeMetadata(output),
|
|
1405
|
-
};
|
|
1406
|
-
break;
|
|
1221
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1407
1222
|
case "InvalidRequestException":
|
|
1408
1223
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
1409
|
-
|
|
1410
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1411
|
-
name: errorCode,
|
|
1412
|
-
$metadata: deserializeMetadata(output),
|
|
1413
|
-
};
|
|
1414
|
-
break;
|
|
1224
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1415
1225
|
case "ResourceNotFoundException":
|
|
1416
1226
|
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
1417
|
-
|
|
1418
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1419
|
-
name: errorCode,
|
|
1420
|
-
$metadata: deserializeMetadata(output),
|
|
1421
|
-
};
|
|
1422
|
-
break;
|
|
1227
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1423
1228
|
default:
|
|
1424
1229
|
const parsedBody = parsedOutput.body;
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
...parsedBody,
|
|
1428
|
-
name: `${errorCode}`,
|
|
1429
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1230
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1231
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1430
1232
|
$fault: "client",
|
|
1431
1233
|
$metadata: deserializeMetadata(output),
|
|
1432
|
-
};
|
|
1234
|
+
});
|
|
1235
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1433
1236
|
}
|
|
1434
|
-
const message = response.message || response.Message || errorCode;
|
|
1435
|
-
response.message = message;
|
|
1436
|
-
delete response.Message;
|
|
1437
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1438
1237
|
};
|
|
1439
1238
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
1440
1239
|
if (output.statusCode >= 300) {
|
|
@@ -1461,51 +1260,25 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1461
1260
|
switch (errorCode) {
|
|
1462
1261
|
case "InternalServiceErrorException":
|
|
1463
1262
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
1464
|
-
|
|
1465
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1466
|
-
name: errorCode,
|
|
1467
|
-
$metadata: deserializeMetadata(output),
|
|
1468
|
-
};
|
|
1469
|
-
break;
|
|
1263
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1470
1264
|
case "InvalidRequestException":
|
|
1471
1265
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
1472
|
-
|
|
1473
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1474
|
-
name: errorCode,
|
|
1475
|
-
$metadata: deserializeMetadata(output),
|
|
1476
|
-
};
|
|
1477
|
-
break;
|
|
1266
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1478
1267
|
case "InvalidStateException":
|
|
1479
1268
|
case "com.amazonaws.apprunner#InvalidStateException":
|
|
1480
|
-
|
|
1481
|
-
...(await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)),
|
|
1482
|
-
name: errorCode,
|
|
1483
|
-
$metadata: deserializeMetadata(output),
|
|
1484
|
-
};
|
|
1485
|
-
break;
|
|
1269
|
+
throw await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context);
|
|
1486
1270
|
case "ResourceNotFoundException":
|
|
1487
1271
|
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
1488
|
-
|
|
1489
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1490
|
-
name: errorCode,
|
|
1491
|
-
$metadata: deserializeMetadata(output),
|
|
1492
|
-
};
|
|
1493
|
-
break;
|
|
1272
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1494
1273
|
default:
|
|
1495
1274
|
const parsedBody = parsedOutput.body;
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
...parsedBody,
|
|
1499
|
-
name: `${errorCode}`,
|
|
1500
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1275
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1276
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1501
1277
|
$fault: "client",
|
|
1502
1278
|
$metadata: deserializeMetadata(output),
|
|
1503
|
-
};
|
|
1279
|
+
});
|
|
1280
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1504
1281
|
}
|
|
1505
|
-
const message = response.message || response.Message || errorCode;
|
|
1506
|
-
response.message = message;
|
|
1507
|
-
delete response.Message;
|
|
1508
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1509
1282
|
};
|
|
1510
1283
|
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
1511
1284
|
if (output.statusCode >= 300) {
|
|
@@ -1532,51 +1305,25 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1532
1305
|
switch (errorCode) {
|
|
1533
1306
|
case "InternalServiceErrorException":
|
|
1534
1307
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
1535
|
-
|
|
1536
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1537
|
-
name: errorCode,
|
|
1538
|
-
$metadata: deserializeMetadata(output),
|
|
1539
|
-
};
|
|
1540
|
-
break;
|
|
1308
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1541
1309
|
case "InvalidRequestException":
|
|
1542
1310
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
1543
|
-
|
|
1544
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1545
|
-
name: errorCode,
|
|
1546
|
-
$metadata: deserializeMetadata(output),
|
|
1547
|
-
};
|
|
1548
|
-
break;
|
|
1311
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1549
1312
|
case "InvalidStateException":
|
|
1550
1313
|
case "com.amazonaws.apprunner#InvalidStateException":
|
|
1551
|
-
|
|
1552
|
-
...(await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)),
|
|
1553
|
-
name: errorCode,
|
|
1554
|
-
$metadata: deserializeMetadata(output),
|
|
1555
|
-
};
|
|
1556
|
-
break;
|
|
1314
|
+
throw await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context);
|
|
1557
1315
|
case "ResourceNotFoundException":
|
|
1558
1316
|
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
1559
|
-
|
|
1560
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1561
|
-
name: errorCode,
|
|
1562
|
-
$metadata: deserializeMetadata(output),
|
|
1563
|
-
};
|
|
1564
|
-
break;
|
|
1317
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1565
1318
|
default:
|
|
1566
1319
|
const parsedBody = parsedOutput.body;
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
...parsedBody,
|
|
1570
|
-
name: `${errorCode}`,
|
|
1571
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1320
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1321
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1572
1322
|
$fault: "client",
|
|
1573
1323
|
$metadata: deserializeMetadata(output),
|
|
1574
|
-
};
|
|
1324
|
+
});
|
|
1325
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1575
1326
|
}
|
|
1576
|
-
const message = response.message || response.Message || errorCode;
|
|
1577
|
-
response.message = message;
|
|
1578
|
-
delete response.Message;
|
|
1579
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1580
1327
|
};
|
|
1581
1328
|
const deserializeAws_json1_0UpdateServiceCommand = async (output, context) => {
|
|
1582
1329
|
if (output.statusCode >= 300) {
|
|
@@ -1603,106 +1350,70 @@ const deserializeAws_json1_0UpdateServiceCommandError = async (output, context)
|
|
|
1603
1350
|
switch (errorCode) {
|
|
1604
1351
|
case "InternalServiceErrorException":
|
|
1605
1352
|
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
1606
|
-
|
|
1607
|
-
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1608
|
-
name: errorCode,
|
|
1609
|
-
$metadata: deserializeMetadata(output),
|
|
1610
|
-
};
|
|
1611
|
-
break;
|
|
1353
|
+
throw await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1612
1354
|
case "InvalidRequestException":
|
|
1613
1355
|
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
1614
|
-
|
|
1615
|
-
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1616
|
-
name: errorCode,
|
|
1617
|
-
$metadata: deserializeMetadata(output),
|
|
1618
|
-
};
|
|
1619
|
-
break;
|
|
1356
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1620
1357
|
case "InvalidStateException":
|
|
1621
1358
|
case "com.amazonaws.apprunner#InvalidStateException":
|
|
1622
|
-
|
|
1623
|
-
...(await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context)),
|
|
1624
|
-
name: errorCode,
|
|
1625
|
-
$metadata: deserializeMetadata(output),
|
|
1626
|
-
};
|
|
1627
|
-
break;
|
|
1359
|
+
throw await deserializeAws_json1_0InvalidStateExceptionResponse(parsedOutput, context);
|
|
1628
1360
|
case "ResourceNotFoundException":
|
|
1629
1361
|
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
1630
|
-
|
|
1631
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1632
|
-
name: errorCode,
|
|
1633
|
-
$metadata: deserializeMetadata(output),
|
|
1634
|
-
};
|
|
1635
|
-
break;
|
|
1362
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1636
1363
|
default:
|
|
1637
1364
|
const parsedBody = parsedOutput.body;
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
...parsedBody,
|
|
1641
|
-
name: `${errorCode}`,
|
|
1642
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1365
|
+
response = new AppRunnerServiceException_1.AppRunnerServiceException({
|
|
1366
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1643
1367
|
$fault: "client",
|
|
1644
1368
|
$metadata: deserializeMetadata(output),
|
|
1645
|
-
};
|
|
1369
|
+
});
|
|
1370
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1646
1371
|
}
|
|
1647
|
-
const message = response.message || response.Message || errorCode;
|
|
1648
|
-
response.message = message;
|
|
1649
|
-
delete response.Message;
|
|
1650
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1651
1372
|
};
|
|
1652
1373
|
const deserializeAws_json1_0InternalServiceErrorExceptionResponse = async (parsedOutput, context) => {
|
|
1653
1374
|
const body = parsedOutput.body;
|
|
1654
1375
|
const deserialized = deserializeAws_json1_0InternalServiceErrorException(body, context);
|
|
1655
|
-
const
|
|
1656
|
-
name: "InternalServiceErrorException",
|
|
1657
|
-
$fault: "server",
|
|
1376
|
+
const exception = new models_0_1.InternalServiceErrorException({
|
|
1658
1377
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1659
1378
|
...deserialized,
|
|
1660
|
-
};
|
|
1661
|
-
return
|
|
1379
|
+
});
|
|
1380
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1662
1381
|
};
|
|
1663
1382
|
const deserializeAws_json1_0InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1664
1383
|
const body = parsedOutput.body;
|
|
1665
1384
|
const deserialized = deserializeAws_json1_0InvalidRequestException(body, context);
|
|
1666
|
-
const
|
|
1667
|
-
name: "InvalidRequestException",
|
|
1668
|
-
$fault: "client",
|
|
1385
|
+
const exception = new models_0_1.InvalidRequestException({
|
|
1669
1386
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1670
1387
|
...deserialized,
|
|
1671
|
-
};
|
|
1672
|
-
return
|
|
1388
|
+
});
|
|
1389
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1673
1390
|
};
|
|
1674
1391
|
const deserializeAws_json1_0InvalidStateExceptionResponse = async (parsedOutput, context) => {
|
|
1675
1392
|
const body = parsedOutput.body;
|
|
1676
1393
|
const deserialized = deserializeAws_json1_0InvalidStateException(body, context);
|
|
1677
|
-
const
|
|
1678
|
-
name: "InvalidStateException",
|
|
1679
|
-
$fault: "client",
|
|
1394
|
+
const exception = new models_0_1.InvalidStateException({
|
|
1680
1395
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1681
1396
|
...deserialized,
|
|
1682
|
-
};
|
|
1683
|
-
return
|
|
1397
|
+
});
|
|
1398
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1684
1399
|
};
|
|
1685
1400
|
const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1686
1401
|
const body = parsedOutput.body;
|
|
1687
1402
|
const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
|
|
1688
|
-
const
|
|
1689
|
-
name: "ResourceNotFoundException",
|
|
1690
|
-
$fault: "client",
|
|
1403
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
1691
1404
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1692
1405
|
...deserialized,
|
|
1693
|
-
};
|
|
1694
|
-
return
|
|
1406
|
+
});
|
|
1407
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1695
1408
|
};
|
|
1696
1409
|
const deserializeAws_json1_0ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1697
1410
|
const body = parsedOutput.body;
|
|
1698
1411
|
const deserialized = deserializeAws_json1_0ServiceQuotaExceededException(body, context);
|
|
1699
|
-
const
|
|
1700
|
-
name: "ServiceQuotaExceededException",
|
|
1701
|
-
$fault: "client",
|
|
1412
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1702
1413
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1703
1414
|
...deserialized,
|
|
1704
|
-
};
|
|
1705
|
-
return
|
|
1415
|
+
});
|
|
1416
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1706
1417
|
};
|
|
1707
1418
|
const serializeAws_json1_0AssociateCustomDomainRequest = (input, context) => {
|
|
1708
1419
|
return {
|
|
@@ -1790,6 +1501,10 @@ const serializeAws_json1_0CreateServiceRequest = (input, context) => {
|
|
|
1790
1501
|
input.InstanceConfiguration !== null && {
|
|
1791
1502
|
InstanceConfiguration: serializeAws_json1_0InstanceConfiguration(input.InstanceConfiguration, context),
|
|
1792
1503
|
}),
|
|
1504
|
+
...(input.NetworkConfiguration !== undefined &&
|
|
1505
|
+
input.NetworkConfiguration !== null && {
|
|
1506
|
+
NetworkConfiguration: serializeAws_json1_0NetworkConfiguration(input.NetworkConfiguration, context),
|
|
1507
|
+
}),
|
|
1793
1508
|
...(input.ServiceName !== undefined && input.ServiceName !== null && { ServiceName: input.ServiceName }),
|
|
1794
1509
|
...(input.SourceConfiguration !== undefined &&
|
|
1795
1510
|
input.SourceConfiguration !== null && {
|
|
@@ -1798,6 +1513,19 @@ const serializeAws_json1_0CreateServiceRequest = (input, context) => {
|
|
|
1798
1513
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
1799
1514
|
};
|
|
1800
1515
|
};
|
|
1516
|
+
const serializeAws_json1_0CreateVpcConnectorRequest = (input, context) => {
|
|
1517
|
+
return {
|
|
1518
|
+
...(input.SecurityGroups !== undefined &&
|
|
1519
|
+
input.SecurityGroups !== null && {
|
|
1520
|
+
SecurityGroups: serializeAws_json1_0StringList(input.SecurityGroups, context),
|
|
1521
|
+
}),
|
|
1522
|
+
...(input.Subnets !== undefined &&
|
|
1523
|
+
input.Subnets !== null && { Subnets: serializeAws_json1_0StringList(input.Subnets, context) }),
|
|
1524
|
+
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
1525
|
+
...(input.VpcConnectorName !== undefined &&
|
|
1526
|
+
input.VpcConnectorName !== null && { VpcConnectorName: input.VpcConnectorName }),
|
|
1527
|
+
};
|
|
1528
|
+
};
|
|
1801
1529
|
const serializeAws_json1_0DeleteAutoScalingConfigurationRequest = (input, context) => {
|
|
1802
1530
|
return {
|
|
1803
1531
|
...(input.AutoScalingConfigurationArn !== undefined &&
|
|
@@ -1814,6 +1542,12 @@ const serializeAws_json1_0DeleteServiceRequest = (input, context) => {
|
|
|
1814
1542
|
...(input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }),
|
|
1815
1543
|
};
|
|
1816
1544
|
};
|
|
1545
|
+
const serializeAws_json1_0DeleteVpcConnectorRequest = (input, context) => {
|
|
1546
|
+
return {
|
|
1547
|
+
...(input.VpcConnectorArn !== undefined &&
|
|
1548
|
+
input.VpcConnectorArn !== null && { VpcConnectorArn: input.VpcConnectorArn }),
|
|
1549
|
+
};
|
|
1550
|
+
};
|
|
1817
1551
|
const serializeAws_json1_0DescribeAutoScalingConfigurationRequest = (input, context) => {
|
|
1818
1552
|
return {
|
|
1819
1553
|
...(input.AutoScalingConfigurationArn !== undefined &&
|
|
@@ -1832,12 +1566,25 @@ const serializeAws_json1_0DescribeServiceRequest = (input, context) => {
|
|
|
1832
1566
|
...(input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }),
|
|
1833
1567
|
};
|
|
1834
1568
|
};
|
|
1569
|
+
const serializeAws_json1_0DescribeVpcConnectorRequest = (input, context) => {
|
|
1570
|
+
return {
|
|
1571
|
+
...(input.VpcConnectorArn !== undefined &&
|
|
1572
|
+
input.VpcConnectorArn !== null && { VpcConnectorArn: input.VpcConnectorArn }),
|
|
1573
|
+
};
|
|
1574
|
+
};
|
|
1835
1575
|
const serializeAws_json1_0DisassociateCustomDomainRequest = (input, context) => {
|
|
1836
1576
|
return {
|
|
1837
1577
|
...(input.DomainName !== undefined && input.DomainName !== null && { DomainName: input.DomainName }),
|
|
1838
1578
|
...(input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }),
|
|
1839
1579
|
};
|
|
1840
1580
|
};
|
|
1581
|
+
const serializeAws_json1_0EgressConfiguration = (input, context) => {
|
|
1582
|
+
return {
|
|
1583
|
+
...(input.EgressType !== undefined && input.EgressType !== null && { EgressType: input.EgressType }),
|
|
1584
|
+
...(input.VpcConnectorArn !== undefined &&
|
|
1585
|
+
input.VpcConnectorArn !== null && { VpcConnectorArn: input.VpcConnectorArn }),
|
|
1586
|
+
};
|
|
1587
|
+
};
|
|
1841
1588
|
const serializeAws_json1_0EncryptionConfiguration = (input, context) => {
|
|
1842
1589
|
return {
|
|
1843
1590
|
...(input.KmsKey !== undefined && input.KmsKey !== null && { KmsKey: input.KmsKey }),
|
|
@@ -1922,6 +1669,20 @@ const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
|
|
|
1922
1669
|
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
1923
1670
|
};
|
|
1924
1671
|
};
|
|
1672
|
+
const serializeAws_json1_0ListVpcConnectorsRequest = (input, context) => {
|
|
1673
|
+
return {
|
|
1674
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
1675
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
1676
|
+
};
|
|
1677
|
+
};
|
|
1678
|
+
const serializeAws_json1_0NetworkConfiguration = (input, context) => {
|
|
1679
|
+
return {
|
|
1680
|
+
...(input.EgressConfiguration !== undefined &&
|
|
1681
|
+
input.EgressConfiguration !== null && {
|
|
1682
|
+
EgressConfiguration: serializeAws_json1_0EgressConfiguration(input.EgressConfiguration, context),
|
|
1683
|
+
}),
|
|
1684
|
+
};
|
|
1685
|
+
};
|
|
1925
1686
|
const serializeAws_json1_0PauseServiceRequest = (input, context) => {
|
|
1926
1687
|
return {
|
|
1927
1688
|
...(input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }),
|
|
@@ -1972,6 +1733,16 @@ const serializeAws_json1_0StartDeploymentRequest = (input, context) => {
|
|
|
1972
1733
|
...(input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }),
|
|
1973
1734
|
};
|
|
1974
1735
|
};
|
|
1736
|
+
const serializeAws_json1_0StringList = (input, context) => {
|
|
1737
|
+
return input
|
|
1738
|
+
.filter((e) => e != null)
|
|
1739
|
+
.map((entry) => {
|
|
1740
|
+
if (entry === null) {
|
|
1741
|
+
return null;
|
|
1742
|
+
}
|
|
1743
|
+
return entry;
|
|
1744
|
+
});
|
|
1745
|
+
};
|
|
1975
1746
|
const serializeAws_json1_0Tag = (input, context) => {
|
|
1976
1747
|
return {
|
|
1977
1748
|
...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
|
|
@@ -2023,6 +1794,10 @@ const serializeAws_json1_0UpdateServiceRequest = (input, context) => {
|
|
|
2023
1794
|
input.InstanceConfiguration !== null && {
|
|
2024
1795
|
InstanceConfiguration: serializeAws_json1_0InstanceConfiguration(input.InstanceConfiguration, context),
|
|
2025
1796
|
}),
|
|
1797
|
+
...(input.NetworkConfiguration !== undefined &&
|
|
1798
|
+
input.NetworkConfiguration !== null && {
|
|
1799
|
+
NetworkConfiguration: serializeAws_json1_0NetworkConfiguration(input.NetworkConfiguration, context),
|
|
1800
|
+
}),
|
|
2026
1801
|
...(input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }),
|
|
2027
1802
|
...(input.SourceConfiguration !== undefined &&
|
|
2028
1803
|
input.SourceConfiguration !== null && {
|
|
@@ -2071,7 +1846,7 @@ const deserializeAws_json1_0AutoScalingConfigurationSummary = (output, context)
|
|
|
2071
1846
|
};
|
|
2072
1847
|
};
|
|
2073
1848
|
const deserializeAws_json1_0AutoScalingConfigurationSummaryList = (output, context) => {
|
|
2074
|
-
|
|
1849
|
+
const retVal = (output || [])
|
|
2075
1850
|
.filter((e) => e != null)
|
|
2076
1851
|
.map((entry) => {
|
|
2077
1852
|
if (entry === null) {
|
|
@@ -2079,6 +1854,7 @@ const deserializeAws_json1_0AutoScalingConfigurationSummaryList = (output, conte
|
|
|
2079
1854
|
}
|
|
2080
1855
|
return deserializeAws_json1_0AutoScalingConfigurationSummary(entry, context);
|
|
2081
1856
|
});
|
|
1857
|
+
return retVal;
|
|
2082
1858
|
};
|
|
2083
1859
|
const deserializeAws_json1_0CertificateValidationRecord = (output, context) => {
|
|
2084
1860
|
return {
|
|
@@ -2089,7 +1865,7 @@ const deserializeAws_json1_0CertificateValidationRecord = (output, context) => {
|
|
|
2089
1865
|
};
|
|
2090
1866
|
};
|
|
2091
1867
|
const deserializeAws_json1_0CertificateValidationRecordList = (output, context) => {
|
|
2092
|
-
|
|
1868
|
+
const retVal = (output || [])
|
|
2093
1869
|
.filter((e) => e != null)
|
|
2094
1870
|
.map((entry) => {
|
|
2095
1871
|
if (entry === null) {
|
|
@@ -2097,6 +1873,7 @@ const deserializeAws_json1_0CertificateValidationRecordList = (output, context)
|
|
|
2097
1873
|
}
|
|
2098
1874
|
return deserializeAws_json1_0CertificateValidationRecord(entry, context);
|
|
2099
1875
|
});
|
|
1876
|
+
return retVal;
|
|
2100
1877
|
};
|
|
2101
1878
|
const deserializeAws_json1_0CodeConfiguration = (output, context) => {
|
|
2102
1879
|
return {
|
|
@@ -2151,7 +1928,7 @@ const deserializeAws_json1_0ConnectionSummary = (output, context) => {
|
|
|
2151
1928
|
};
|
|
2152
1929
|
};
|
|
2153
1930
|
const deserializeAws_json1_0ConnectionSummaryList = (output, context) => {
|
|
2154
|
-
|
|
1931
|
+
const retVal = (output || [])
|
|
2155
1932
|
.filter((e) => e != null)
|
|
2156
1933
|
.map((entry) => {
|
|
2157
1934
|
if (entry === null) {
|
|
@@ -2159,6 +1936,7 @@ const deserializeAws_json1_0ConnectionSummaryList = (output, context) => {
|
|
|
2159
1936
|
}
|
|
2160
1937
|
return deserializeAws_json1_0ConnectionSummary(entry, context);
|
|
2161
1938
|
});
|
|
1939
|
+
return retVal;
|
|
2162
1940
|
};
|
|
2163
1941
|
const deserializeAws_json1_0CreateAutoScalingConfigurationResponse = (output, context) => {
|
|
2164
1942
|
return {
|
|
@@ -2182,6 +1960,13 @@ const deserializeAws_json1_0CreateServiceResponse = (output, context) => {
|
|
|
2182
1960
|
: undefined,
|
|
2183
1961
|
};
|
|
2184
1962
|
};
|
|
1963
|
+
const deserializeAws_json1_0CreateVpcConnectorResponse = (output, context) => {
|
|
1964
|
+
return {
|
|
1965
|
+
VpcConnector: output.VpcConnector !== undefined && output.VpcConnector !== null
|
|
1966
|
+
? deserializeAws_json1_0VpcConnector(output.VpcConnector, context)
|
|
1967
|
+
: undefined,
|
|
1968
|
+
};
|
|
1969
|
+
};
|
|
2185
1970
|
const deserializeAws_json1_0CustomDomain = (output, context) => {
|
|
2186
1971
|
return {
|
|
2187
1972
|
CertificateValidationRecords: output.CertificateValidationRecords !== undefined && output.CertificateValidationRecords !== null
|
|
@@ -2193,7 +1978,7 @@ const deserializeAws_json1_0CustomDomain = (output, context) => {
|
|
|
2193
1978
|
};
|
|
2194
1979
|
};
|
|
2195
1980
|
const deserializeAws_json1_0CustomDomainList = (output, context) => {
|
|
2196
|
-
|
|
1981
|
+
const retVal = (output || [])
|
|
2197
1982
|
.filter((e) => e != null)
|
|
2198
1983
|
.map((entry) => {
|
|
2199
1984
|
if (entry === null) {
|
|
@@ -2201,6 +1986,7 @@ const deserializeAws_json1_0CustomDomainList = (output, context) => {
|
|
|
2201
1986
|
}
|
|
2202
1987
|
return deserializeAws_json1_0CustomDomain(entry, context);
|
|
2203
1988
|
});
|
|
1989
|
+
return retVal;
|
|
2204
1990
|
};
|
|
2205
1991
|
const deserializeAws_json1_0DeleteAutoScalingConfigurationResponse = (output, context) => {
|
|
2206
1992
|
return {
|
|
@@ -2224,6 +2010,13 @@ const deserializeAws_json1_0DeleteServiceResponse = (output, context) => {
|
|
|
2224
2010
|
: undefined,
|
|
2225
2011
|
};
|
|
2226
2012
|
};
|
|
2013
|
+
const deserializeAws_json1_0DeleteVpcConnectorResponse = (output, context) => {
|
|
2014
|
+
return {
|
|
2015
|
+
VpcConnector: output.VpcConnector !== undefined && output.VpcConnector !== null
|
|
2016
|
+
? deserializeAws_json1_0VpcConnector(output.VpcConnector, context)
|
|
2017
|
+
: undefined,
|
|
2018
|
+
};
|
|
2019
|
+
};
|
|
2227
2020
|
const deserializeAws_json1_0DescribeAutoScalingConfigurationResponse = (output, context) => {
|
|
2228
2021
|
return {
|
|
2229
2022
|
AutoScalingConfiguration: output.AutoScalingConfiguration !== undefined && output.AutoScalingConfiguration !== null
|
|
@@ -2248,6 +2041,13 @@ const deserializeAws_json1_0DescribeServiceResponse = (output, context) => {
|
|
|
2248
2041
|
: undefined,
|
|
2249
2042
|
};
|
|
2250
2043
|
};
|
|
2044
|
+
const deserializeAws_json1_0DescribeVpcConnectorResponse = (output, context) => {
|
|
2045
|
+
return {
|
|
2046
|
+
VpcConnector: output.VpcConnector !== undefined && output.VpcConnector !== null
|
|
2047
|
+
? deserializeAws_json1_0VpcConnector(output.VpcConnector, context)
|
|
2048
|
+
: undefined,
|
|
2049
|
+
};
|
|
2050
|
+
};
|
|
2251
2051
|
const deserializeAws_json1_0DisassociateCustomDomainResponse = (output, context) => {
|
|
2252
2052
|
return {
|
|
2253
2053
|
CustomDomain: output.CustomDomain !== undefined && output.CustomDomain !== null
|
|
@@ -2257,6 +2057,12 @@ const deserializeAws_json1_0DisassociateCustomDomainResponse = (output, context)
|
|
|
2257
2057
|
ServiceArn: smithy_client_1.expectString(output.ServiceArn),
|
|
2258
2058
|
};
|
|
2259
2059
|
};
|
|
2060
|
+
const deserializeAws_json1_0EgressConfiguration = (output, context) => {
|
|
2061
|
+
return {
|
|
2062
|
+
EgressType: smithy_client_1.expectString(output.EgressType),
|
|
2063
|
+
VpcConnectorArn: smithy_client_1.expectString(output.VpcConnectorArn),
|
|
2064
|
+
};
|
|
2065
|
+
};
|
|
2260
2066
|
const deserializeAws_json1_0EncryptionConfiguration = (output, context) => {
|
|
2261
2067
|
return {
|
|
2262
2068
|
KmsKey: smithy_client_1.expectString(output.KmsKey),
|
|
@@ -2351,6 +2157,21 @@ const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
|
|
|
2351
2157
|
: undefined,
|
|
2352
2158
|
};
|
|
2353
2159
|
};
|
|
2160
|
+
const deserializeAws_json1_0ListVpcConnectorsResponse = (output, context) => {
|
|
2161
|
+
return {
|
|
2162
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
2163
|
+
VpcConnectors: output.VpcConnectors !== undefined && output.VpcConnectors !== null
|
|
2164
|
+
? deserializeAws_json1_0VpcConnectors(output.VpcConnectors, context)
|
|
2165
|
+
: undefined,
|
|
2166
|
+
};
|
|
2167
|
+
};
|
|
2168
|
+
const deserializeAws_json1_0NetworkConfiguration = (output, context) => {
|
|
2169
|
+
return {
|
|
2170
|
+
EgressConfiguration: output.EgressConfiguration !== undefined && output.EgressConfiguration !== null
|
|
2171
|
+
? deserializeAws_json1_0EgressConfiguration(output.EgressConfiguration, context)
|
|
2172
|
+
: undefined,
|
|
2173
|
+
};
|
|
2174
|
+
};
|
|
2354
2175
|
const deserializeAws_json1_0OperationSummary = (output, context) => {
|
|
2355
2176
|
return {
|
|
2356
2177
|
EndedAt: output.EndedAt !== undefined && output.EndedAt !== null
|
|
@@ -2369,7 +2190,7 @@ const deserializeAws_json1_0OperationSummary = (output, context) => {
|
|
|
2369
2190
|
};
|
|
2370
2191
|
};
|
|
2371
2192
|
const deserializeAws_json1_0OperationSummaryList = (output, context) => {
|
|
2372
|
-
|
|
2193
|
+
const retVal = (output || [])
|
|
2373
2194
|
.filter((e) => e != null)
|
|
2374
2195
|
.map((entry) => {
|
|
2375
2196
|
if (entry === null) {
|
|
@@ -2377,6 +2198,7 @@ const deserializeAws_json1_0OperationSummaryList = (output, context) => {
|
|
|
2377
2198
|
}
|
|
2378
2199
|
return deserializeAws_json1_0OperationSummary(entry, context);
|
|
2379
2200
|
});
|
|
2201
|
+
return retVal;
|
|
2380
2202
|
};
|
|
2381
2203
|
const deserializeAws_json1_0PauseServiceResponse = (output, context) => {
|
|
2382
2204
|
return {
|
|
@@ -2430,6 +2252,9 @@ const deserializeAws_json1_0Service = (output, context) => {
|
|
|
2430
2252
|
InstanceConfiguration: output.InstanceConfiguration !== undefined && output.InstanceConfiguration !== null
|
|
2431
2253
|
? deserializeAws_json1_0InstanceConfiguration(output.InstanceConfiguration, context)
|
|
2432
2254
|
: undefined,
|
|
2255
|
+
NetworkConfiguration: output.NetworkConfiguration !== undefined && output.NetworkConfiguration !== null
|
|
2256
|
+
? deserializeAws_json1_0NetworkConfiguration(output.NetworkConfiguration, context)
|
|
2257
|
+
: undefined,
|
|
2433
2258
|
ServiceArn: smithy_client_1.expectString(output.ServiceArn),
|
|
2434
2259
|
ServiceId: smithy_client_1.expectString(output.ServiceId),
|
|
2435
2260
|
ServiceName: smithy_client_1.expectString(output.ServiceName),
|
|
@@ -2464,7 +2289,7 @@ const deserializeAws_json1_0ServiceSummary = (output, context) => {
|
|
|
2464
2289
|
};
|
|
2465
2290
|
};
|
|
2466
2291
|
const deserializeAws_json1_0ServiceSummaryList = (output, context) => {
|
|
2467
|
-
|
|
2292
|
+
const retVal = (output || [])
|
|
2468
2293
|
.filter((e) => e != null)
|
|
2469
2294
|
.map((entry) => {
|
|
2470
2295
|
if (entry === null) {
|
|
@@ -2472,6 +2297,7 @@ const deserializeAws_json1_0ServiceSummaryList = (output, context) => {
|
|
|
2472
2297
|
}
|
|
2473
2298
|
return deserializeAws_json1_0ServiceSummary(entry, context);
|
|
2474
2299
|
});
|
|
2300
|
+
return retVal;
|
|
2475
2301
|
};
|
|
2476
2302
|
const deserializeAws_json1_0SourceCodeVersion = (output, context) => {
|
|
2477
2303
|
return {
|
|
@@ -2498,6 +2324,17 @@ const deserializeAws_json1_0StartDeploymentResponse = (output, context) => {
|
|
|
2498
2324
|
OperationId: smithy_client_1.expectString(output.OperationId),
|
|
2499
2325
|
};
|
|
2500
2326
|
};
|
|
2327
|
+
const deserializeAws_json1_0StringList = (output, context) => {
|
|
2328
|
+
const retVal = (output || [])
|
|
2329
|
+
.filter((e) => e != null)
|
|
2330
|
+
.map((entry) => {
|
|
2331
|
+
if (entry === null) {
|
|
2332
|
+
return null;
|
|
2333
|
+
}
|
|
2334
|
+
return smithy_client_1.expectString(entry);
|
|
2335
|
+
});
|
|
2336
|
+
return retVal;
|
|
2337
|
+
};
|
|
2501
2338
|
const deserializeAws_json1_0Tag = (output, context) => {
|
|
2502
2339
|
return {
|
|
2503
2340
|
Key: smithy_client_1.expectString(output.Key),
|
|
@@ -2505,7 +2342,7 @@ const deserializeAws_json1_0Tag = (output, context) => {
|
|
|
2505
2342
|
};
|
|
2506
2343
|
};
|
|
2507
2344
|
const deserializeAws_json1_0TagList = (output, context) => {
|
|
2508
|
-
|
|
2345
|
+
const retVal = (output || [])
|
|
2509
2346
|
.filter((e) => e != null)
|
|
2510
2347
|
.map((entry) => {
|
|
2511
2348
|
if (entry === null) {
|
|
@@ -2513,6 +2350,7 @@ const deserializeAws_json1_0TagList = (output, context) => {
|
|
|
2513
2350
|
}
|
|
2514
2351
|
return deserializeAws_json1_0Tag(entry, context);
|
|
2515
2352
|
});
|
|
2353
|
+
return retVal;
|
|
2516
2354
|
};
|
|
2517
2355
|
const deserializeAws_json1_0TagResourceResponse = (output, context) => {
|
|
2518
2356
|
return {};
|
|
@@ -2528,6 +2366,37 @@ const deserializeAws_json1_0UpdateServiceResponse = (output, context) => {
|
|
|
2528
2366
|
: undefined,
|
|
2529
2367
|
};
|
|
2530
2368
|
};
|
|
2369
|
+
const deserializeAws_json1_0VpcConnector = (output, context) => {
|
|
2370
|
+
return {
|
|
2371
|
+
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
2372
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
2373
|
+
: undefined,
|
|
2374
|
+
DeletedAt: output.DeletedAt !== undefined && output.DeletedAt !== null
|
|
2375
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.DeletedAt)))
|
|
2376
|
+
: undefined,
|
|
2377
|
+
SecurityGroups: output.SecurityGroups !== undefined && output.SecurityGroups !== null
|
|
2378
|
+
? deserializeAws_json1_0StringList(output.SecurityGroups, context)
|
|
2379
|
+
: undefined,
|
|
2380
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
2381
|
+
Subnets: output.Subnets !== undefined && output.Subnets !== null
|
|
2382
|
+
? deserializeAws_json1_0StringList(output.Subnets, context)
|
|
2383
|
+
: undefined,
|
|
2384
|
+
VpcConnectorArn: smithy_client_1.expectString(output.VpcConnectorArn),
|
|
2385
|
+
VpcConnectorName: smithy_client_1.expectString(output.VpcConnectorName),
|
|
2386
|
+
VpcConnectorRevision: smithy_client_1.expectInt32(output.VpcConnectorRevision),
|
|
2387
|
+
};
|
|
2388
|
+
};
|
|
2389
|
+
const deserializeAws_json1_0VpcConnectors = (output, context) => {
|
|
2390
|
+
const retVal = (output || [])
|
|
2391
|
+
.filter((e) => e != null)
|
|
2392
|
+
.map((entry) => {
|
|
2393
|
+
if (entry === null) {
|
|
2394
|
+
return null;
|
|
2395
|
+
}
|
|
2396
|
+
return deserializeAws_json1_0VpcConnector(entry, context);
|
|
2397
|
+
});
|
|
2398
|
+
return retVal;
|
|
2399
|
+
};
|
|
2531
2400
|
const deserializeMetadata = (output) => {
|
|
2532
2401
|
var _a;
|
|
2533
2402
|
return ({
|