@aws-sdk/client-resiliencehub 3.271.0 → 3.276.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Resiliencehub.js +195 -0
- package/dist-cjs/commands/CreateAppVersionAppComponentCommand.js +46 -0
- package/dist-cjs/commands/CreateAppVersionResourceCommand.js +46 -0
- package/dist-cjs/commands/DeleteAppInputSourceCommand.js +46 -0
- package/dist-cjs/commands/DeleteAppVersionAppComponentCommand.js +46 -0
- package/dist-cjs/commands/DeleteAppVersionResourceCommand.js +46 -0
- package/dist-cjs/commands/DescribeAppVersionAppComponentCommand.js +46 -0
- package/dist-cjs/commands/DescribeAppVersionCommand.js +46 -0
- package/dist-cjs/commands/DescribeAppVersionResourceCommand.js +46 -0
- package/dist-cjs/commands/ListAppInputSourcesCommand.js +46 -0
- package/dist-cjs/commands/ListAppVersionAppComponentsCommand.js +46 -0
- package/dist-cjs/commands/UpdateAppVersionAppComponentCommand.js +46 -0
- package/dist-cjs/commands/UpdateAppVersionCommand.js +46 -0
- package/dist-cjs/commands/UpdateAppVersionResourceCommand.js +46 -0
- package/dist-cjs/commands/index.js +13 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +129 -15
- package/dist-cjs/pagination/ListAppInputSourcesPaginator.js +36 -0
- package/dist-cjs/pagination/ListAppVersionAppComponentsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1293 -141
- package/dist-es/Resiliencehub.js +195 -0
- package/dist-es/commands/CreateAppVersionAppComponentCommand.js +42 -0
- package/dist-es/commands/CreateAppVersionResourceCommand.js +42 -0
- package/dist-es/commands/DeleteAppInputSourceCommand.js +42 -0
- package/dist-es/commands/DeleteAppVersionAppComponentCommand.js +42 -0
- package/dist-es/commands/DeleteAppVersionResourceCommand.js +42 -0
- package/dist-es/commands/DescribeAppVersionAppComponentCommand.js +42 -0
- package/dist-es/commands/DescribeAppVersionCommand.js +42 -0
- package/dist-es/commands/DescribeAppVersionResourceCommand.js +42 -0
- package/dist-es/commands/ListAppInputSourcesCommand.js +42 -0
- package/dist-es/commands/ListAppVersionAppComponentsCommand.js +42 -0
- package/dist-es/commands/UpdateAppVersionAppComponentCommand.js +42 -0
- package/dist-es/commands/UpdateAppVersionCommand.js +42 -0
- package/dist-es/commands/UpdateAppVersionResourceCommand.js +42 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +94 -8
- package/dist-es/pagination/ListAppInputSourcesPaginator.js +32 -0
- package/dist-es/pagination/ListAppVersionAppComponentsPaginator.js +32 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1254 -129
- package/dist-types/Resiliencehub.d.ts +218 -23
- package/dist-types/ResiliencehubClient.d.ts +15 -2
- package/dist-types/commands/AddDraftAppVersionResourceMappingsCommand.d.ts +1 -1
- package/dist-types/commands/CreateAppCommand.d.ts +3 -3
- package/dist-types/commands/CreateAppVersionAppComponentCommand.d.ts +40 -0
- package/dist-types/commands/CreateAppVersionResourceCommand.d.ts +55 -0
- package/dist-types/commands/CreateRecommendationTemplateCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAppInputSourceCommand.d.ts +37 -0
- package/dist-types/commands/DeleteAppVersionAppComponentCommand.d.ts +47 -0
- package/dist-types/commands/DeleteAppVersionResourceCommand.d.ts +50 -0
- package/dist-types/commands/DescribeAppVersionAppComponentCommand.d.ts +37 -0
- package/dist-types/commands/DescribeAppVersionCommand.d.ts +37 -0
- package/dist-types/commands/DescribeAppVersionResourceCommand.d.ts +57 -0
- package/dist-types/commands/DescribeAppVersionTemplateCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDraftAppVersionResourcesImportStatusCommand.d.ts +7 -0
- package/dist-types/commands/ImportResourcesToDraftAppVersionCommand.d.ts +2 -2
- package/dist-types/commands/ListAlarmRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ListAppComponentCompliancesCommand.d.ts +1 -1
- package/dist-types/commands/ListAppComponentRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ListAppInputSourcesCommand.d.ts +39 -0
- package/dist-types/commands/ListAppVersionAppComponentsCommand.d.ts +37 -0
- package/dist-types/commands/ListAppVersionResourcesCommand.d.ts +1 -1
- package/dist-types/commands/ListAppVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListAppsCommand.d.ts +10 -1
- package/dist-types/commands/ListRecommendationTemplatesCommand.d.ts +1 -1
- package/dist-types/commands/ListResiliencyPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListSopRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ListSuggestedResiliencyPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListTestRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ListUnsupportedAppVersionResourcesCommand.d.ts +1 -1
- package/dist-types/commands/PublishAppVersionCommand.d.ts +1 -1
- package/dist-types/commands/PutDraftAppVersionTemplateCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAppVersionAppComponentCommand.d.ts +40 -0
- package/dist-types/commands/UpdateAppVersionCommand.d.ts +42 -0
- package/dist-types/commands/UpdateAppVersionResourceCommand.d.ts +51 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/models/models_0.d.ts +1377 -209
- package/dist-types/pagination/ListAppInputSourcesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListAppVersionAppComponentsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +39 -0
- package/dist-types/ts3.4/Resiliencehub.d.ts +221 -0
- package/dist-types/ts3.4/ResiliencehubClient.d.ts +78 -0
- package/dist-types/ts3.4/commands/CreateAppVersionAppComponentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateAppVersionResourceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteAppInputSourceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteAppVersionAppComponentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteAppVersionResourceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeAppVersionAppComponentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeAppVersionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeAppVersionResourceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListAppInputSourcesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListAppVersionAppComponentsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateAppVersionAppComponentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateAppVersionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateAppVersionResourceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/models/models_0.d.ts +278 -24
- package/dist-types/ts3.4/pagination/ListAppInputSourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAppVersionAppComponentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
- package/package.json +29 -29
|
@@ -51,6 +51,68 @@ export const serializeAws_restJson1CreateAppCommand = async (input, context) =>
|
|
|
51
51
|
body,
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
|
+
export const serializeAws_restJson1CreateAppVersionAppComponentCommand = async (input, context) => {
|
|
55
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
56
|
+
const headers = {
|
|
57
|
+
"content-type": "application/json",
|
|
58
|
+
};
|
|
59
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-app-version-app-component";
|
|
60
|
+
let body;
|
|
61
|
+
body = JSON.stringify({
|
|
62
|
+
...(input.additionalInfo != null && {
|
|
63
|
+
additionalInfo: serializeAws_restJson1AdditionalInfoMap(input.additionalInfo, context),
|
|
64
|
+
}),
|
|
65
|
+
...(input.appArn != null && { appArn: input.appArn }),
|
|
66
|
+
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
67
|
+
...(input.id != null && { id: input.id }),
|
|
68
|
+
...(input.name != null && { name: input.name }),
|
|
69
|
+
...(input.type != null && { type: input.type }),
|
|
70
|
+
});
|
|
71
|
+
return new __HttpRequest({
|
|
72
|
+
protocol,
|
|
73
|
+
hostname,
|
|
74
|
+
port,
|
|
75
|
+
method: "POST",
|
|
76
|
+
headers,
|
|
77
|
+
path: resolvedPath,
|
|
78
|
+
body,
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
export const serializeAws_restJson1CreateAppVersionResourceCommand = async (input, context) => {
|
|
82
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
83
|
+
const headers = {
|
|
84
|
+
"content-type": "application/json",
|
|
85
|
+
};
|
|
86
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-app-version-resource";
|
|
87
|
+
let body;
|
|
88
|
+
body = JSON.stringify({
|
|
89
|
+
...(input.additionalInfo != null && {
|
|
90
|
+
additionalInfo: serializeAws_restJson1AdditionalInfoMap(input.additionalInfo, context),
|
|
91
|
+
}),
|
|
92
|
+
...(input.appArn != null && { appArn: input.appArn }),
|
|
93
|
+
...(input.appComponents != null && {
|
|
94
|
+
appComponents: serializeAws_restJson1AppComponentNameList(input.appComponents, context),
|
|
95
|
+
}),
|
|
96
|
+
...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
|
|
97
|
+
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
98
|
+
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
99
|
+
...(input.logicalResourceId != null && {
|
|
100
|
+
logicalResourceId: serializeAws_restJson1LogicalResourceId(input.logicalResourceId, context),
|
|
101
|
+
}),
|
|
102
|
+
...(input.physicalResourceId != null && { physicalResourceId: input.physicalResourceId }),
|
|
103
|
+
...(input.resourceName != null && { resourceName: input.resourceName }),
|
|
104
|
+
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
105
|
+
});
|
|
106
|
+
return new __HttpRequest({
|
|
107
|
+
protocol,
|
|
108
|
+
hostname,
|
|
109
|
+
port,
|
|
110
|
+
method: "POST",
|
|
111
|
+
headers,
|
|
112
|
+
path: resolvedPath,
|
|
113
|
+
body,
|
|
114
|
+
});
|
|
115
|
+
};
|
|
54
116
|
export const serializeAws_restJson1CreateRecommendationTemplateCommand = async (input, context) => {
|
|
55
117
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
56
118
|
const headers = {
|
|
@@ -151,6 +213,81 @@ export const serializeAws_restJson1DeleteAppAssessmentCommand = async (input, co
|
|
|
151
213
|
body,
|
|
152
214
|
});
|
|
153
215
|
};
|
|
216
|
+
export const serializeAws_restJson1DeleteAppInputSourceCommand = async (input, context) => {
|
|
217
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
218
|
+
const headers = {
|
|
219
|
+
"content-type": "application/json",
|
|
220
|
+
};
|
|
221
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-input-source";
|
|
222
|
+
let body;
|
|
223
|
+
body = JSON.stringify({
|
|
224
|
+
...(input.appArn != null && { appArn: input.appArn }),
|
|
225
|
+
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
226
|
+
...(input.sourceArn != null && { sourceArn: input.sourceArn }),
|
|
227
|
+
...(input.terraformSource != null && {
|
|
228
|
+
terraformSource: serializeAws_restJson1TerraformSource(input.terraformSource, context),
|
|
229
|
+
}),
|
|
230
|
+
});
|
|
231
|
+
return new __HttpRequest({
|
|
232
|
+
protocol,
|
|
233
|
+
hostname,
|
|
234
|
+
port,
|
|
235
|
+
method: "POST",
|
|
236
|
+
headers,
|
|
237
|
+
path: resolvedPath,
|
|
238
|
+
body,
|
|
239
|
+
});
|
|
240
|
+
};
|
|
241
|
+
export const serializeAws_restJson1DeleteAppVersionAppComponentCommand = async (input, context) => {
|
|
242
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
243
|
+
const headers = {
|
|
244
|
+
"content-type": "application/json",
|
|
245
|
+
};
|
|
246
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-version-app-component";
|
|
247
|
+
let body;
|
|
248
|
+
body = JSON.stringify({
|
|
249
|
+
...(input.appArn != null && { appArn: input.appArn }),
|
|
250
|
+
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
251
|
+
...(input.id != null && { id: input.id }),
|
|
252
|
+
});
|
|
253
|
+
return new __HttpRequest({
|
|
254
|
+
protocol,
|
|
255
|
+
hostname,
|
|
256
|
+
port,
|
|
257
|
+
method: "POST",
|
|
258
|
+
headers,
|
|
259
|
+
path: resolvedPath,
|
|
260
|
+
body,
|
|
261
|
+
});
|
|
262
|
+
};
|
|
263
|
+
export const serializeAws_restJson1DeleteAppVersionResourceCommand = async (input, context) => {
|
|
264
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
265
|
+
const headers = {
|
|
266
|
+
"content-type": "application/json",
|
|
267
|
+
};
|
|
268
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-version-resource";
|
|
269
|
+
let body;
|
|
270
|
+
body = JSON.stringify({
|
|
271
|
+
...(input.appArn != null && { appArn: input.appArn }),
|
|
272
|
+
...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
|
|
273
|
+
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
274
|
+
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
275
|
+
...(input.logicalResourceId != null && {
|
|
276
|
+
logicalResourceId: serializeAws_restJson1LogicalResourceId(input.logicalResourceId, context),
|
|
277
|
+
}),
|
|
278
|
+
...(input.physicalResourceId != null && { physicalResourceId: input.physicalResourceId }),
|
|
279
|
+
...(input.resourceName != null && { resourceName: input.resourceName }),
|
|
280
|
+
});
|
|
281
|
+
return new __HttpRequest({
|
|
282
|
+
protocol,
|
|
283
|
+
hostname,
|
|
284
|
+
port,
|
|
285
|
+
method: "POST",
|
|
286
|
+
headers,
|
|
287
|
+
path: resolvedPath,
|
|
288
|
+
body,
|
|
289
|
+
});
|
|
290
|
+
};
|
|
154
291
|
export const serializeAws_restJson1DeleteRecommendationTemplateCommand = async (input, context) => {
|
|
155
292
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
156
293
|
const headers = {
|
|
@@ -233,6 +370,77 @@ export const serializeAws_restJson1DescribeAppAssessmentCommand = async (input,
|
|
|
233
370
|
body,
|
|
234
371
|
});
|
|
235
372
|
};
|
|
373
|
+
export const serializeAws_restJson1DescribeAppVersionCommand = async (input, context) => {
|
|
374
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
375
|
+
const headers = {
|
|
376
|
+
"content-type": "application/json",
|
|
377
|
+
};
|
|
378
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version";
|
|
379
|
+
let body;
|
|
380
|
+
body = JSON.stringify({
|
|
381
|
+
...(input.appArn != null && { appArn: input.appArn }),
|
|
382
|
+
...(input.appVersion != null && { appVersion: input.appVersion }),
|
|
383
|
+
});
|
|
384
|
+
return new __HttpRequest({
|
|
385
|
+
protocol,
|
|
386
|
+
hostname,
|
|
387
|
+
port,
|
|
388
|
+
method: "POST",
|
|
389
|
+
headers,
|
|
390
|
+
path: resolvedPath,
|
|
391
|
+
body,
|
|
392
|
+
});
|
|
393
|
+
};
|
|
394
|
+
export const serializeAws_restJson1DescribeAppVersionAppComponentCommand = async (input, context) => {
|
|
395
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
396
|
+
const headers = {
|
|
397
|
+
"content-type": "application/json",
|
|
398
|
+
};
|
|
399
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version-app-component";
|
|
400
|
+
let body;
|
|
401
|
+
body = JSON.stringify({
|
|
402
|
+
...(input.appArn != null && { appArn: input.appArn }),
|
|
403
|
+
...(input.appVersion != null && { appVersion: input.appVersion }),
|
|
404
|
+
...(input.id != null && { id: input.id }),
|
|
405
|
+
});
|
|
406
|
+
return new __HttpRequest({
|
|
407
|
+
protocol,
|
|
408
|
+
hostname,
|
|
409
|
+
port,
|
|
410
|
+
method: "POST",
|
|
411
|
+
headers,
|
|
412
|
+
path: resolvedPath,
|
|
413
|
+
body,
|
|
414
|
+
});
|
|
415
|
+
};
|
|
416
|
+
export const serializeAws_restJson1DescribeAppVersionResourceCommand = async (input, context) => {
|
|
417
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
418
|
+
const headers = {
|
|
419
|
+
"content-type": "application/json",
|
|
420
|
+
};
|
|
421
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version-resource";
|
|
422
|
+
let body;
|
|
423
|
+
body = JSON.stringify({
|
|
424
|
+
...(input.appArn != null && { appArn: input.appArn }),
|
|
425
|
+
...(input.appVersion != null && { appVersion: input.appVersion }),
|
|
426
|
+
...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
|
|
427
|
+
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
428
|
+
...(input.logicalResourceId != null && {
|
|
429
|
+
logicalResourceId: serializeAws_restJson1LogicalResourceId(input.logicalResourceId, context),
|
|
430
|
+
}),
|
|
431
|
+
...(input.physicalResourceId != null && { physicalResourceId: input.physicalResourceId }),
|
|
432
|
+
...(input.resourceName != null && { resourceName: input.resourceName }),
|
|
433
|
+
});
|
|
434
|
+
return new __HttpRequest({
|
|
435
|
+
protocol,
|
|
436
|
+
hostname,
|
|
437
|
+
port,
|
|
438
|
+
method: "POST",
|
|
439
|
+
headers,
|
|
440
|
+
path: resolvedPath,
|
|
441
|
+
body,
|
|
442
|
+
});
|
|
443
|
+
};
|
|
236
444
|
export const serializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand = async (input, context) => {
|
|
237
445
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
238
446
|
const headers = {
|
|
@@ -327,6 +535,7 @@ export const serializeAws_restJson1ImportResourcesToDraftAppVersionCommand = asy
|
|
|
327
535
|
let body;
|
|
328
536
|
body = JSON.stringify({
|
|
329
537
|
...(input.appArn != null && { appArn: input.appArn }),
|
|
538
|
+
...(input.importStrategy != null && { importStrategy: input.importStrategy }),
|
|
330
539
|
...(input.sourceArns != null && { sourceArns: serializeAws_restJson1ArnList(input.sourceArns, context) }),
|
|
331
540
|
...(input.terraformSources != null && {
|
|
332
541
|
terraformSources: serializeAws_restJson1TerraformSourceList(input.terraformSources, context),
|
|
@@ -437,6 +646,29 @@ export const serializeAws_restJson1ListAppComponentRecommendationsCommand = asyn
|
|
|
437
646
|
body,
|
|
438
647
|
});
|
|
439
648
|
};
|
|
649
|
+
export const serializeAws_restJson1ListAppInputSourcesCommand = async (input, context) => {
|
|
650
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
651
|
+
const headers = {
|
|
652
|
+
"content-type": "application/json",
|
|
653
|
+
};
|
|
654
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-input-sources";
|
|
655
|
+
let body;
|
|
656
|
+
body = JSON.stringify({
|
|
657
|
+
...(input.appArn != null && { appArn: input.appArn }),
|
|
658
|
+
...(input.appVersion != null && { appVersion: input.appVersion }),
|
|
659
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
660
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
661
|
+
});
|
|
662
|
+
return new __HttpRequest({
|
|
663
|
+
protocol,
|
|
664
|
+
hostname,
|
|
665
|
+
port,
|
|
666
|
+
method: "POST",
|
|
667
|
+
headers,
|
|
668
|
+
path: resolvedPath,
|
|
669
|
+
body,
|
|
670
|
+
});
|
|
671
|
+
};
|
|
440
672
|
export const serializeAws_restJson1ListAppsCommand = async (input, context) => {
|
|
441
673
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
442
674
|
const headers = {};
|
|
@@ -459,6 +691,29 @@ export const serializeAws_restJson1ListAppsCommand = async (input, context) => {
|
|
|
459
691
|
body,
|
|
460
692
|
});
|
|
461
693
|
};
|
|
694
|
+
export const serializeAws_restJson1ListAppVersionAppComponentsCommand = async (input, context) => {
|
|
695
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
696
|
+
const headers = {
|
|
697
|
+
"content-type": "application/json",
|
|
698
|
+
};
|
|
699
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-version-app-components";
|
|
700
|
+
let body;
|
|
701
|
+
body = JSON.stringify({
|
|
702
|
+
...(input.appArn != null && { appArn: input.appArn }),
|
|
703
|
+
...(input.appVersion != null && { appVersion: input.appVersion }),
|
|
704
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
705
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
706
|
+
});
|
|
707
|
+
return new __HttpRequest({
|
|
708
|
+
protocol,
|
|
709
|
+
hostname,
|
|
710
|
+
port,
|
|
711
|
+
method: "POST",
|
|
712
|
+
headers,
|
|
713
|
+
path: resolvedPath,
|
|
714
|
+
body,
|
|
715
|
+
});
|
|
716
|
+
};
|
|
462
717
|
export const serializeAws_restJson1ListAppVersionResourceMappingsCommand = async (input, context) => {
|
|
463
718
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
464
719
|
const headers = {
|
|
@@ -868,20 +1123,18 @@ export const serializeAws_restJson1UpdateAppCommand = async (input, context) =>
|
|
|
868
1123
|
body,
|
|
869
1124
|
});
|
|
870
1125
|
};
|
|
871
|
-
export const
|
|
1126
|
+
export const serializeAws_restJson1UpdateAppVersionCommand = async (input, context) => {
|
|
872
1127
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
873
1128
|
const headers = {
|
|
874
1129
|
"content-type": "application/json",
|
|
875
1130
|
};
|
|
876
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-
|
|
1131
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version";
|
|
877
1132
|
let body;
|
|
878
1133
|
body = JSON.stringify({
|
|
879
|
-
...(input.
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
...(input.
|
|
883
|
-
...(input.policyName != null && { policyName: input.policyName }),
|
|
884
|
-
...(input.tier != null && { tier: input.tier }),
|
|
1134
|
+
...(input.additionalInfo != null && {
|
|
1135
|
+
additionalInfo: serializeAws_restJson1AdditionalInfoMap(input.additionalInfo, context),
|
|
1136
|
+
}),
|
|
1137
|
+
...(input.appArn != null && { appArn: input.appArn }),
|
|
885
1138
|
});
|
|
886
1139
|
return new __HttpRequest({
|
|
887
1140
|
protocol,
|
|
@@ -893,38 +1146,535 @@ export const serializeAws_restJson1UpdateResiliencyPolicyCommand = async (input,
|
|
|
893
1146
|
body,
|
|
894
1147
|
});
|
|
895
1148
|
};
|
|
896
|
-
export const
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
const contents = map({
|
|
901
|
-
$metadata: deserializeMetadata(output),
|
|
902
|
-
});
|
|
903
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
904
|
-
if (data.appArn != null) {
|
|
905
|
-
contents.appArn = __expectString(data.appArn);
|
|
906
|
-
}
|
|
907
|
-
if (data.appVersion != null) {
|
|
908
|
-
contents.appVersion = __expectString(data.appVersion);
|
|
909
|
-
}
|
|
910
|
-
if (data.resourceMappings != null) {
|
|
911
|
-
contents.resourceMappings = deserializeAws_restJson1ResourceMappingList(data.resourceMappings, context);
|
|
912
|
-
}
|
|
913
|
-
return contents;
|
|
914
|
-
};
|
|
915
|
-
const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError = async (output, context) => {
|
|
916
|
-
const parsedOutput = {
|
|
917
|
-
...output,
|
|
918
|
-
body: await parseErrorBody(output.body, context),
|
|
1149
|
+
export const serializeAws_restJson1UpdateAppVersionAppComponentCommand = async (input, context) => {
|
|
1150
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1151
|
+
const headers = {
|
|
1152
|
+
"content-type": "application/json",
|
|
919
1153
|
};
|
|
920
|
-
const
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
1154
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version-app-component";
|
|
1155
|
+
let body;
|
|
1156
|
+
body = JSON.stringify({
|
|
1157
|
+
...(input.additionalInfo != null && {
|
|
1158
|
+
additionalInfo: serializeAws_restJson1AdditionalInfoMap(input.additionalInfo, context),
|
|
1159
|
+
}),
|
|
1160
|
+
...(input.appArn != null && { appArn: input.appArn }),
|
|
1161
|
+
...(input.id != null && { id: input.id }),
|
|
1162
|
+
...(input.name != null && { name: input.name }),
|
|
1163
|
+
...(input.type != null && { type: input.type }),
|
|
1164
|
+
});
|
|
1165
|
+
return new __HttpRequest({
|
|
1166
|
+
protocol,
|
|
1167
|
+
hostname,
|
|
1168
|
+
port,
|
|
1169
|
+
method: "POST",
|
|
1170
|
+
headers,
|
|
1171
|
+
path: resolvedPath,
|
|
1172
|
+
body,
|
|
1173
|
+
});
|
|
1174
|
+
};
|
|
1175
|
+
export const serializeAws_restJson1UpdateAppVersionResourceCommand = async (input, context) => {
|
|
1176
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1177
|
+
const headers = {
|
|
1178
|
+
"content-type": "application/json",
|
|
1179
|
+
};
|
|
1180
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version-resource";
|
|
1181
|
+
let body;
|
|
1182
|
+
body = JSON.stringify({
|
|
1183
|
+
...(input.additionalInfo != null && {
|
|
1184
|
+
additionalInfo: serializeAws_restJson1AdditionalInfoMap(input.additionalInfo, context),
|
|
1185
|
+
}),
|
|
1186
|
+
...(input.appArn != null && { appArn: input.appArn }),
|
|
1187
|
+
...(input.appComponents != null && {
|
|
1188
|
+
appComponents: serializeAws_restJson1AppComponentNameList(input.appComponents, context),
|
|
1189
|
+
}),
|
|
1190
|
+
...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
|
|
1191
|
+
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
1192
|
+
...(input.excluded != null && { excluded: input.excluded }),
|
|
1193
|
+
...(input.logicalResourceId != null && {
|
|
1194
|
+
logicalResourceId: serializeAws_restJson1LogicalResourceId(input.logicalResourceId, context),
|
|
1195
|
+
}),
|
|
1196
|
+
...(input.physicalResourceId != null && { physicalResourceId: input.physicalResourceId }),
|
|
1197
|
+
...(input.resourceName != null && { resourceName: input.resourceName }),
|
|
1198
|
+
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1199
|
+
});
|
|
1200
|
+
return new __HttpRequest({
|
|
1201
|
+
protocol,
|
|
1202
|
+
hostname,
|
|
1203
|
+
port,
|
|
1204
|
+
method: "POST",
|
|
1205
|
+
headers,
|
|
1206
|
+
path: resolvedPath,
|
|
1207
|
+
body,
|
|
1208
|
+
});
|
|
1209
|
+
};
|
|
1210
|
+
export const serializeAws_restJson1UpdateResiliencyPolicyCommand = async (input, context) => {
|
|
1211
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1212
|
+
const headers = {
|
|
1213
|
+
"content-type": "application/json",
|
|
1214
|
+
};
|
|
1215
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-resiliency-policy";
|
|
1216
|
+
let body;
|
|
1217
|
+
body = JSON.stringify({
|
|
1218
|
+
...(input.dataLocationConstraint != null && { dataLocationConstraint: input.dataLocationConstraint }),
|
|
1219
|
+
...(input.policy != null && { policy: serializeAws_restJson1DisruptionPolicy(input.policy, context) }),
|
|
1220
|
+
...(input.policyArn != null && { policyArn: input.policyArn }),
|
|
1221
|
+
...(input.policyDescription != null && { policyDescription: input.policyDescription }),
|
|
1222
|
+
...(input.policyName != null && { policyName: input.policyName }),
|
|
1223
|
+
...(input.tier != null && { tier: input.tier }),
|
|
1224
|
+
});
|
|
1225
|
+
return new __HttpRequest({
|
|
1226
|
+
protocol,
|
|
1227
|
+
hostname,
|
|
1228
|
+
port,
|
|
1229
|
+
method: "POST",
|
|
1230
|
+
headers,
|
|
1231
|
+
path: resolvedPath,
|
|
1232
|
+
body,
|
|
1233
|
+
});
|
|
1234
|
+
};
|
|
1235
|
+
export const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommand = async (output, context) => {
|
|
1236
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1237
|
+
return deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError(output, context);
|
|
1238
|
+
}
|
|
1239
|
+
const contents = map({
|
|
1240
|
+
$metadata: deserializeMetadata(output),
|
|
1241
|
+
});
|
|
1242
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1243
|
+
if (data.appArn != null) {
|
|
1244
|
+
contents.appArn = __expectString(data.appArn);
|
|
1245
|
+
}
|
|
1246
|
+
if (data.appVersion != null) {
|
|
1247
|
+
contents.appVersion = __expectString(data.appVersion);
|
|
1248
|
+
}
|
|
1249
|
+
if (data.resourceMappings != null) {
|
|
1250
|
+
contents.resourceMappings = deserializeAws_restJson1ResourceMappingList(data.resourceMappings, context);
|
|
1251
|
+
}
|
|
1252
|
+
return contents;
|
|
1253
|
+
};
|
|
1254
|
+
const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError = async (output, context) => {
|
|
1255
|
+
const parsedOutput = {
|
|
1256
|
+
...output,
|
|
1257
|
+
body: await parseErrorBody(output.body, context),
|
|
1258
|
+
};
|
|
1259
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1260
|
+
switch (errorCode) {
|
|
1261
|
+
case "AccessDeniedException":
|
|
1262
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1263
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1264
|
+
case "ConflictException":
|
|
1265
|
+
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1266
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1267
|
+
case "InternalServerException":
|
|
1268
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1269
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1270
|
+
case "ResourceNotFoundException":
|
|
1271
|
+
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1272
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1273
|
+
case "ThrottlingException":
|
|
1274
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1275
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1276
|
+
case "ValidationException":
|
|
1277
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1278
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1279
|
+
default:
|
|
1280
|
+
const parsedBody = parsedOutput.body;
|
|
1281
|
+
throwDefaultError({
|
|
1282
|
+
output,
|
|
1283
|
+
parsedBody,
|
|
1284
|
+
exceptionCtor: __BaseException,
|
|
1285
|
+
errorCode,
|
|
1286
|
+
});
|
|
1287
|
+
}
|
|
1288
|
+
};
|
|
1289
|
+
export const deserializeAws_restJson1CreateAppCommand = async (output, context) => {
|
|
1290
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1291
|
+
return deserializeAws_restJson1CreateAppCommandError(output, context);
|
|
1292
|
+
}
|
|
1293
|
+
const contents = map({
|
|
1294
|
+
$metadata: deserializeMetadata(output),
|
|
1295
|
+
});
|
|
1296
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1297
|
+
if (data.app != null) {
|
|
1298
|
+
contents.app = deserializeAws_restJson1App(data.app, context);
|
|
1299
|
+
}
|
|
1300
|
+
return contents;
|
|
1301
|
+
};
|
|
1302
|
+
const deserializeAws_restJson1CreateAppCommandError = async (output, context) => {
|
|
1303
|
+
const parsedOutput = {
|
|
1304
|
+
...output,
|
|
1305
|
+
body: await parseErrorBody(output.body, context),
|
|
1306
|
+
};
|
|
1307
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1308
|
+
switch (errorCode) {
|
|
1309
|
+
case "AccessDeniedException":
|
|
1310
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1311
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1312
|
+
case "ConflictException":
|
|
1313
|
+
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1314
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1315
|
+
case "InternalServerException":
|
|
1316
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1317
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1318
|
+
case "ResourceNotFoundException":
|
|
1319
|
+
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1320
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1321
|
+
case "ServiceQuotaExceededException":
|
|
1322
|
+
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1323
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1324
|
+
case "ThrottlingException":
|
|
1325
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1326
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1327
|
+
case "ValidationException":
|
|
1328
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1329
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1330
|
+
default:
|
|
1331
|
+
const parsedBody = parsedOutput.body;
|
|
1332
|
+
throwDefaultError({
|
|
1333
|
+
output,
|
|
1334
|
+
parsedBody,
|
|
1335
|
+
exceptionCtor: __BaseException,
|
|
1336
|
+
errorCode,
|
|
1337
|
+
});
|
|
1338
|
+
}
|
|
1339
|
+
};
|
|
1340
|
+
export const deserializeAws_restJson1CreateAppVersionAppComponentCommand = async (output, context) => {
|
|
1341
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1342
|
+
return deserializeAws_restJson1CreateAppVersionAppComponentCommandError(output, context);
|
|
1343
|
+
}
|
|
1344
|
+
const contents = map({
|
|
1345
|
+
$metadata: deserializeMetadata(output),
|
|
1346
|
+
});
|
|
1347
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1348
|
+
if (data.appArn != null) {
|
|
1349
|
+
contents.appArn = __expectString(data.appArn);
|
|
1350
|
+
}
|
|
1351
|
+
if (data.appComponent != null) {
|
|
1352
|
+
contents.appComponent = deserializeAws_restJson1AppComponent(data.appComponent, context);
|
|
1353
|
+
}
|
|
1354
|
+
if (data.appVersion != null) {
|
|
1355
|
+
contents.appVersion = __expectString(data.appVersion);
|
|
1356
|
+
}
|
|
1357
|
+
return contents;
|
|
1358
|
+
};
|
|
1359
|
+
const deserializeAws_restJson1CreateAppVersionAppComponentCommandError = async (output, context) => {
|
|
1360
|
+
const parsedOutput = {
|
|
1361
|
+
...output,
|
|
1362
|
+
body: await parseErrorBody(output.body, context),
|
|
1363
|
+
};
|
|
1364
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
|
+
switch (errorCode) {
|
|
1366
|
+
case "AccessDeniedException":
|
|
1367
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1368
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1369
|
+
case "ConflictException":
|
|
1370
|
+
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1371
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1372
|
+
case "InternalServerException":
|
|
1373
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1374
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1375
|
+
case "ResourceNotFoundException":
|
|
1376
|
+
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1377
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1378
|
+
case "ServiceQuotaExceededException":
|
|
1379
|
+
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1380
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1381
|
+
case "ThrottlingException":
|
|
1382
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1383
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1384
|
+
case "ValidationException":
|
|
1385
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1386
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1387
|
+
default:
|
|
1388
|
+
const parsedBody = parsedOutput.body;
|
|
1389
|
+
throwDefaultError({
|
|
1390
|
+
output,
|
|
1391
|
+
parsedBody,
|
|
1392
|
+
exceptionCtor: __BaseException,
|
|
1393
|
+
errorCode,
|
|
1394
|
+
});
|
|
1395
|
+
}
|
|
1396
|
+
};
|
|
1397
|
+
export const deserializeAws_restJson1CreateAppVersionResourceCommand = async (output, context) => {
|
|
1398
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1399
|
+
return deserializeAws_restJson1CreateAppVersionResourceCommandError(output, context);
|
|
1400
|
+
}
|
|
1401
|
+
const contents = map({
|
|
1402
|
+
$metadata: deserializeMetadata(output),
|
|
1403
|
+
});
|
|
1404
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1405
|
+
if (data.appArn != null) {
|
|
1406
|
+
contents.appArn = __expectString(data.appArn);
|
|
1407
|
+
}
|
|
1408
|
+
if (data.appVersion != null) {
|
|
1409
|
+
contents.appVersion = __expectString(data.appVersion);
|
|
1410
|
+
}
|
|
1411
|
+
if (data.physicalResource != null) {
|
|
1412
|
+
contents.physicalResource = deserializeAws_restJson1PhysicalResource(data.physicalResource, context);
|
|
1413
|
+
}
|
|
1414
|
+
return contents;
|
|
1415
|
+
};
|
|
1416
|
+
const deserializeAws_restJson1CreateAppVersionResourceCommandError = async (output, context) => {
|
|
1417
|
+
const parsedOutput = {
|
|
1418
|
+
...output,
|
|
1419
|
+
body: await parseErrorBody(output.body, context),
|
|
1420
|
+
};
|
|
1421
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1422
|
+
switch (errorCode) {
|
|
1423
|
+
case "AccessDeniedException":
|
|
1424
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1425
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1426
|
+
case "ConflictException":
|
|
1427
|
+
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1428
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1429
|
+
case "InternalServerException":
|
|
1430
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1431
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1432
|
+
case "ResourceNotFoundException":
|
|
1433
|
+
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1434
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1435
|
+
case "ServiceQuotaExceededException":
|
|
1436
|
+
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1437
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1438
|
+
case "ThrottlingException":
|
|
1439
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1440
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1441
|
+
case "ValidationException":
|
|
1442
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1443
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1444
|
+
default:
|
|
1445
|
+
const parsedBody = parsedOutput.body;
|
|
1446
|
+
throwDefaultError({
|
|
1447
|
+
output,
|
|
1448
|
+
parsedBody,
|
|
1449
|
+
exceptionCtor: __BaseException,
|
|
1450
|
+
errorCode,
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1453
|
+
};
|
|
1454
|
+
export const deserializeAws_restJson1CreateRecommendationTemplateCommand = async (output, context) => {
|
|
1455
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1456
|
+
return deserializeAws_restJson1CreateRecommendationTemplateCommandError(output, context);
|
|
1457
|
+
}
|
|
1458
|
+
const contents = map({
|
|
1459
|
+
$metadata: deserializeMetadata(output),
|
|
1460
|
+
});
|
|
1461
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1462
|
+
if (data.recommendationTemplate != null) {
|
|
1463
|
+
contents.recommendationTemplate = deserializeAws_restJson1RecommendationTemplate(data.recommendationTemplate, context);
|
|
1464
|
+
}
|
|
1465
|
+
return contents;
|
|
1466
|
+
};
|
|
1467
|
+
const deserializeAws_restJson1CreateRecommendationTemplateCommandError = async (output, context) => {
|
|
1468
|
+
const parsedOutput = {
|
|
1469
|
+
...output,
|
|
1470
|
+
body: await parseErrorBody(output.body, context),
|
|
1471
|
+
};
|
|
1472
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1473
|
+
switch (errorCode) {
|
|
1474
|
+
case "AccessDeniedException":
|
|
1475
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1476
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1477
|
+
case "ConflictException":
|
|
1478
|
+
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1479
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1480
|
+
case "InternalServerException":
|
|
1481
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1482
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1483
|
+
case "ResourceNotFoundException":
|
|
1484
|
+
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1485
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1486
|
+
case "ServiceQuotaExceededException":
|
|
1487
|
+
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1488
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1489
|
+
case "ThrottlingException":
|
|
1490
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1491
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1492
|
+
case "ValidationException":
|
|
1493
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1494
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1495
|
+
default:
|
|
1496
|
+
const parsedBody = parsedOutput.body;
|
|
1497
|
+
throwDefaultError({
|
|
1498
|
+
output,
|
|
1499
|
+
parsedBody,
|
|
1500
|
+
exceptionCtor: __BaseException,
|
|
1501
|
+
errorCode,
|
|
1502
|
+
});
|
|
1503
|
+
}
|
|
1504
|
+
};
|
|
1505
|
+
export const deserializeAws_restJson1CreateResiliencyPolicyCommand = async (output, context) => {
|
|
1506
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1507
|
+
return deserializeAws_restJson1CreateResiliencyPolicyCommandError(output, context);
|
|
1508
|
+
}
|
|
1509
|
+
const contents = map({
|
|
1510
|
+
$metadata: deserializeMetadata(output),
|
|
1511
|
+
});
|
|
1512
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1513
|
+
if (data.policy != null) {
|
|
1514
|
+
contents.policy = deserializeAws_restJson1ResiliencyPolicy(data.policy, context);
|
|
1515
|
+
}
|
|
1516
|
+
return contents;
|
|
1517
|
+
};
|
|
1518
|
+
const deserializeAws_restJson1CreateResiliencyPolicyCommandError = async (output, context) => {
|
|
1519
|
+
const parsedOutput = {
|
|
1520
|
+
...output,
|
|
1521
|
+
body: await parseErrorBody(output.body, context),
|
|
1522
|
+
};
|
|
1523
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1524
|
+
switch (errorCode) {
|
|
1525
|
+
case "AccessDeniedException":
|
|
1526
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1527
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1528
|
+
case "ConflictException":
|
|
1529
|
+
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1530
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1531
|
+
case "InternalServerException":
|
|
1532
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1533
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1534
|
+
case "ServiceQuotaExceededException":
|
|
1535
|
+
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1536
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1537
|
+
case "ThrottlingException":
|
|
1538
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1539
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1540
|
+
case "ValidationException":
|
|
1541
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1542
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1543
|
+
default:
|
|
1544
|
+
const parsedBody = parsedOutput.body;
|
|
1545
|
+
throwDefaultError({
|
|
1546
|
+
output,
|
|
1547
|
+
parsedBody,
|
|
1548
|
+
exceptionCtor: __BaseException,
|
|
1549
|
+
errorCode,
|
|
1550
|
+
});
|
|
1551
|
+
}
|
|
1552
|
+
};
|
|
1553
|
+
export const deserializeAws_restJson1DeleteAppCommand = async (output, context) => {
|
|
1554
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1555
|
+
return deserializeAws_restJson1DeleteAppCommandError(output, context);
|
|
1556
|
+
}
|
|
1557
|
+
const contents = map({
|
|
1558
|
+
$metadata: deserializeMetadata(output),
|
|
1559
|
+
});
|
|
1560
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1561
|
+
if (data.appArn != null) {
|
|
1562
|
+
contents.appArn = __expectString(data.appArn);
|
|
1563
|
+
}
|
|
1564
|
+
return contents;
|
|
1565
|
+
};
|
|
1566
|
+
const deserializeAws_restJson1DeleteAppCommandError = async (output, context) => {
|
|
1567
|
+
const parsedOutput = {
|
|
1568
|
+
...output,
|
|
1569
|
+
body: await parseErrorBody(output.body, context),
|
|
1570
|
+
};
|
|
1571
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1572
|
+
switch (errorCode) {
|
|
1573
|
+
case "ConflictException":
|
|
1574
|
+
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1575
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1576
|
+
case "InternalServerException":
|
|
1577
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1578
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1579
|
+
case "ResourceNotFoundException":
|
|
1580
|
+
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1581
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1582
|
+
case "ThrottlingException":
|
|
1583
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1584
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1585
|
+
case "ValidationException":
|
|
1586
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1587
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1588
|
+
default:
|
|
1589
|
+
const parsedBody = parsedOutput.body;
|
|
1590
|
+
throwDefaultError({
|
|
1591
|
+
output,
|
|
1592
|
+
parsedBody,
|
|
1593
|
+
exceptionCtor: __BaseException,
|
|
1594
|
+
errorCode,
|
|
1595
|
+
});
|
|
1596
|
+
}
|
|
1597
|
+
};
|
|
1598
|
+
export const deserializeAws_restJson1DeleteAppAssessmentCommand = async (output, context) => {
|
|
1599
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1600
|
+
return deserializeAws_restJson1DeleteAppAssessmentCommandError(output, context);
|
|
1601
|
+
}
|
|
1602
|
+
const contents = map({
|
|
1603
|
+
$metadata: deserializeMetadata(output),
|
|
1604
|
+
});
|
|
1605
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1606
|
+
if (data.assessmentArn != null) {
|
|
1607
|
+
contents.assessmentArn = __expectString(data.assessmentArn);
|
|
1608
|
+
}
|
|
1609
|
+
if (data.assessmentStatus != null) {
|
|
1610
|
+
contents.assessmentStatus = __expectString(data.assessmentStatus);
|
|
1611
|
+
}
|
|
1612
|
+
return contents;
|
|
1613
|
+
};
|
|
1614
|
+
const deserializeAws_restJson1DeleteAppAssessmentCommandError = async (output, context) => {
|
|
1615
|
+
const parsedOutput = {
|
|
1616
|
+
...output,
|
|
1617
|
+
body: await parseErrorBody(output.body, context),
|
|
1618
|
+
};
|
|
1619
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1620
|
+
switch (errorCode) {
|
|
1621
|
+
case "AccessDeniedException":
|
|
1622
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1623
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1624
|
+
case "ConflictException":
|
|
1625
|
+
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1626
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1627
|
+
case "InternalServerException":
|
|
1628
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1629
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1630
|
+
case "ResourceNotFoundException":
|
|
1631
|
+
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1632
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1633
|
+
case "ThrottlingException":
|
|
1634
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1635
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1636
|
+
case "ValidationException":
|
|
1637
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1638
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1639
|
+
default:
|
|
1640
|
+
const parsedBody = parsedOutput.body;
|
|
1641
|
+
throwDefaultError({
|
|
1642
|
+
output,
|
|
1643
|
+
parsedBody,
|
|
1644
|
+
exceptionCtor: __BaseException,
|
|
1645
|
+
errorCode,
|
|
1646
|
+
});
|
|
1647
|
+
}
|
|
1648
|
+
};
|
|
1649
|
+
export const deserializeAws_restJson1DeleteAppInputSourceCommand = async (output, context) => {
|
|
1650
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1651
|
+
return deserializeAws_restJson1DeleteAppInputSourceCommandError(output, context);
|
|
1652
|
+
}
|
|
1653
|
+
const contents = map({
|
|
1654
|
+
$metadata: deserializeMetadata(output),
|
|
1655
|
+
});
|
|
1656
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1657
|
+
if (data.appArn != null) {
|
|
1658
|
+
contents.appArn = __expectString(data.appArn);
|
|
1659
|
+
}
|
|
1660
|
+
if (data.appInputSource != null) {
|
|
1661
|
+
contents.appInputSource = deserializeAws_restJson1AppInputSource(data.appInputSource, context);
|
|
1662
|
+
}
|
|
1663
|
+
return contents;
|
|
1664
|
+
};
|
|
1665
|
+
const deserializeAws_restJson1DeleteAppInputSourceCommandError = async (output, context) => {
|
|
1666
|
+
const parsedOutput = {
|
|
1667
|
+
...output,
|
|
1668
|
+
body: await parseErrorBody(output.body, context),
|
|
1669
|
+
};
|
|
1670
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1671
|
+
switch (errorCode) {
|
|
1672
|
+
case "AccessDeniedException":
|
|
1673
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1674
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1675
|
+
case "ConflictException":
|
|
1676
|
+
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1677
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
928
1678
|
case "InternalServerException":
|
|
929
1679
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
930
1680
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -947,20 +1697,26 @@ const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError = a
|
|
|
947
1697
|
});
|
|
948
1698
|
}
|
|
949
1699
|
};
|
|
950
|
-
export const
|
|
1700
|
+
export const deserializeAws_restJson1DeleteAppVersionAppComponentCommand = async (output, context) => {
|
|
951
1701
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
952
|
-
return
|
|
1702
|
+
return deserializeAws_restJson1DeleteAppVersionAppComponentCommandError(output, context);
|
|
953
1703
|
}
|
|
954
1704
|
const contents = map({
|
|
955
1705
|
$metadata: deserializeMetadata(output),
|
|
956
1706
|
});
|
|
957
1707
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
958
|
-
if (data.
|
|
959
|
-
contents.
|
|
1708
|
+
if (data.appArn != null) {
|
|
1709
|
+
contents.appArn = __expectString(data.appArn);
|
|
1710
|
+
}
|
|
1711
|
+
if (data.appComponent != null) {
|
|
1712
|
+
contents.appComponent = deserializeAws_restJson1AppComponent(data.appComponent, context);
|
|
1713
|
+
}
|
|
1714
|
+
if (data.appVersion != null) {
|
|
1715
|
+
contents.appVersion = __expectString(data.appVersion);
|
|
960
1716
|
}
|
|
961
1717
|
return contents;
|
|
962
1718
|
};
|
|
963
|
-
const
|
|
1719
|
+
const deserializeAws_restJson1DeleteAppVersionAppComponentCommandError = async (output, context) => {
|
|
964
1720
|
const parsedOutput = {
|
|
965
1721
|
...output,
|
|
966
1722
|
body: await parseErrorBody(output.body, context),
|
|
@@ -979,9 +1735,6 @@ const deserializeAws_restJson1CreateAppCommandError = async (output, context) =>
|
|
|
979
1735
|
case "ResourceNotFoundException":
|
|
980
1736
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
981
1737
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
982
|
-
case "ServiceQuotaExceededException":
|
|
983
|
-
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
984
|
-
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
985
1738
|
case "ThrottlingException":
|
|
986
1739
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
987
1740
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
@@ -998,20 +1751,26 @@ const deserializeAws_restJson1CreateAppCommandError = async (output, context) =>
|
|
|
998
1751
|
});
|
|
999
1752
|
}
|
|
1000
1753
|
};
|
|
1001
|
-
export const
|
|
1754
|
+
export const deserializeAws_restJson1DeleteAppVersionResourceCommand = async (output, context) => {
|
|
1002
1755
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1003
|
-
return
|
|
1756
|
+
return deserializeAws_restJson1DeleteAppVersionResourceCommandError(output, context);
|
|
1004
1757
|
}
|
|
1005
1758
|
const contents = map({
|
|
1006
1759
|
$metadata: deserializeMetadata(output),
|
|
1007
1760
|
});
|
|
1008
1761
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1009
|
-
if (data.
|
|
1010
|
-
contents.
|
|
1762
|
+
if (data.appArn != null) {
|
|
1763
|
+
contents.appArn = __expectString(data.appArn);
|
|
1764
|
+
}
|
|
1765
|
+
if (data.appVersion != null) {
|
|
1766
|
+
contents.appVersion = __expectString(data.appVersion);
|
|
1767
|
+
}
|
|
1768
|
+
if (data.physicalResource != null) {
|
|
1769
|
+
contents.physicalResource = deserializeAws_restJson1PhysicalResource(data.physicalResource, context);
|
|
1011
1770
|
}
|
|
1012
1771
|
return contents;
|
|
1013
1772
|
};
|
|
1014
|
-
const
|
|
1773
|
+
const deserializeAws_restJson1DeleteAppVersionResourceCommandError = async (output, context) => {
|
|
1015
1774
|
const parsedOutput = {
|
|
1016
1775
|
...output,
|
|
1017
1776
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1046,20 +1805,23 @@ const deserializeAws_restJson1CreateRecommendationTemplateCommandError = async (
|
|
|
1046
1805
|
});
|
|
1047
1806
|
}
|
|
1048
1807
|
};
|
|
1049
|
-
export const
|
|
1808
|
+
export const deserializeAws_restJson1DeleteRecommendationTemplateCommand = async (output, context) => {
|
|
1050
1809
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1051
|
-
return
|
|
1810
|
+
return deserializeAws_restJson1DeleteRecommendationTemplateCommandError(output, context);
|
|
1052
1811
|
}
|
|
1053
1812
|
const contents = map({
|
|
1054
1813
|
$metadata: deserializeMetadata(output),
|
|
1055
1814
|
});
|
|
1056
1815
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1057
|
-
if (data.
|
|
1058
|
-
contents.
|
|
1816
|
+
if (data.recommendationTemplateArn != null) {
|
|
1817
|
+
contents.recommendationTemplateArn = __expectString(data.recommendationTemplateArn);
|
|
1818
|
+
}
|
|
1819
|
+
if (data.status != null) {
|
|
1820
|
+
contents.status = __expectString(data.status);
|
|
1059
1821
|
}
|
|
1060
1822
|
return contents;
|
|
1061
1823
|
};
|
|
1062
|
-
const
|
|
1824
|
+
const deserializeAws_restJson1DeleteRecommendationTemplateCommandError = async (output, context) => {
|
|
1063
1825
|
const parsedOutput = {
|
|
1064
1826
|
...output,
|
|
1065
1827
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1069,15 +1831,12 @@ const deserializeAws_restJson1CreateResiliencyPolicyCommandError = async (output
|
|
|
1069
1831
|
case "AccessDeniedException":
|
|
1070
1832
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1071
1833
|
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1072
|
-
case "ConflictException":
|
|
1073
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1074
|
-
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1075
1834
|
case "InternalServerException":
|
|
1076
1835
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1077
1836
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1078
|
-
case "
|
|
1079
|
-
case "com.amazonaws.resiliencehub#
|
|
1080
|
-
throw await
|
|
1837
|
+
case "ResourceNotFoundException":
|
|
1838
|
+
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1839
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1081
1840
|
case "ThrottlingException":
|
|
1082
1841
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1083
1842
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
@@ -1094,26 +1853,29 @@ const deserializeAws_restJson1CreateResiliencyPolicyCommandError = async (output
|
|
|
1094
1853
|
});
|
|
1095
1854
|
}
|
|
1096
1855
|
};
|
|
1097
|
-
export const
|
|
1856
|
+
export const deserializeAws_restJson1DeleteResiliencyPolicyCommand = async (output, context) => {
|
|
1098
1857
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1099
|
-
return
|
|
1858
|
+
return deserializeAws_restJson1DeleteResiliencyPolicyCommandError(output, context);
|
|
1100
1859
|
}
|
|
1101
1860
|
const contents = map({
|
|
1102
1861
|
$metadata: deserializeMetadata(output),
|
|
1103
1862
|
});
|
|
1104
1863
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1105
|
-
if (data.
|
|
1106
|
-
contents.
|
|
1864
|
+
if (data.policyArn != null) {
|
|
1865
|
+
contents.policyArn = __expectString(data.policyArn);
|
|
1107
1866
|
}
|
|
1108
1867
|
return contents;
|
|
1109
1868
|
};
|
|
1110
|
-
const
|
|
1869
|
+
const deserializeAws_restJson1DeleteResiliencyPolicyCommandError = async (output, context) => {
|
|
1111
1870
|
const parsedOutput = {
|
|
1112
1871
|
...output,
|
|
1113
1872
|
body: await parseErrorBody(output.body, context),
|
|
1114
1873
|
};
|
|
1115
1874
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1116
1875
|
switch (errorCode) {
|
|
1876
|
+
case "AccessDeniedException":
|
|
1877
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1878
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1117
1879
|
case "ConflictException":
|
|
1118
1880
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1119
1881
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -1139,23 +1901,20 @@ const deserializeAws_restJson1DeleteAppCommandError = async (output, context) =>
|
|
|
1139
1901
|
});
|
|
1140
1902
|
}
|
|
1141
1903
|
};
|
|
1142
|
-
export const
|
|
1904
|
+
export const deserializeAws_restJson1DescribeAppCommand = async (output, context) => {
|
|
1143
1905
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1144
|
-
return
|
|
1906
|
+
return deserializeAws_restJson1DescribeAppCommandError(output, context);
|
|
1145
1907
|
}
|
|
1146
1908
|
const contents = map({
|
|
1147
1909
|
$metadata: deserializeMetadata(output),
|
|
1148
1910
|
});
|
|
1149
1911
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1150
|
-
if (data.
|
|
1151
|
-
contents.
|
|
1152
|
-
}
|
|
1153
|
-
if (data.assessmentStatus != null) {
|
|
1154
|
-
contents.assessmentStatus = __expectString(data.assessmentStatus);
|
|
1912
|
+
if (data.app != null) {
|
|
1913
|
+
contents.app = deserializeAws_restJson1App(data.app, context);
|
|
1155
1914
|
}
|
|
1156
1915
|
return contents;
|
|
1157
1916
|
};
|
|
1158
|
-
const
|
|
1917
|
+
const deserializeAws_restJson1DescribeAppCommandError = async (output, context) => {
|
|
1159
1918
|
const parsedOutput = {
|
|
1160
1919
|
...output,
|
|
1161
1920
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1165,9 +1924,6 @@ const deserializeAws_restJson1DeleteAppAssessmentCommandError = async (output, c
|
|
|
1165
1924
|
case "AccessDeniedException":
|
|
1166
1925
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1167
1926
|
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1168
|
-
case "ConflictException":
|
|
1169
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1170
|
-
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1171
1927
|
case "InternalServerException":
|
|
1172
1928
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1173
1929
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1190,23 +1946,20 @@ const deserializeAws_restJson1DeleteAppAssessmentCommandError = async (output, c
|
|
|
1190
1946
|
});
|
|
1191
1947
|
}
|
|
1192
1948
|
};
|
|
1193
|
-
export const
|
|
1949
|
+
export const deserializeAws_restJson1DescribeAppAssessmentCommand = async (output, context) => {
|
|
1194
1950
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1195
|
-
return
|
|
1951
|
+
return deserializeAws_restJson1DescribeAppAssessmentCommandError(output, context);
|
|
1196
1952
|
}
|
|
1197
1953
|
const contents = map({
|
|
1198
1954
|
$metadata: deserializeMetadata(output),
|
|
1199
1955
|
});
|
|
1200
1956
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1201
|
-
if (data.
|
|
1202
|
-
contents.
|
|
1203
|
-
}
|
|
1204
|
-
if (data.status != null) {
|
|
1205
|
-
contents.status = __expectString(data.status);
|
|
1957
|
+
if (data.assessment != null) {
|
|
1958
|
+
contents.assessment = deserializeAws_restJson1AppAssessment(data.assessment, context);
|
|
1206
1959
|
}
|
|
1207
1960
|
return contents;
|
|
1208
1961
|
};
|
|
1209
|
-
const
|
|
1962
|
+
const deserializeAws_restJson1DescribeAppAssessmentCommandError = async (output, context) => {
|
|
1210
1963
|
const parsedOutput = {
|
|
1211
1964
|
...output,
|
|
1212
1965
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1238,20 +1991,26 @@ const deserializeAws_restJson1DeleteRecommendationTemplateCommandError = async (
|
|
|
1238
1991
|
});
|
|
1239
1992
|
}
|
|
1240
1993
|
};
|
|
1241
|
-
export const
|
|
1994
|
+
export const deserializeAws_restJson1DescribeAppVersionCommand = async (output, context) => {
|
|
1242
1995
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1243
|
-
return
|
|
1996
|
+
return deserializeAws_restJson1DescribeAppVersionCommandError(output, context);
|
|
1244
1997
|
}
|
|
1245
1998
|
const contents = map({
|
|
1246
1999
|
$metadata: deserializeMetadata(output),
|
|
1247
2000
|
});
|
|
1248
2001
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1249
|
-
if (data.
|
|
1250
|
-
contents.
|
|
2002
|
+
if (data.additionalInfo != null) {
|
|
2003
|
+
contents.additionalInfo = deserializeAws_restJson1AdditionalInfoMap(data.additionalInfo, context);
|
|
2004
|
+
}
|
|
2005
|
+
if (data.appArn != null) {
|
|
2006
|
+
contents.appArn = __expectString(data.appArn);
|
|
2007
|
+
}
|
|
2008
|
+
if (data.appVersion != null) {
|
|
2009
|
+
contents.appVersion = __expectString(data.appVersion);
|
|
1251
2010
|
}
|
|
1252
2011
|
return contents;
|
|
1253
2012
|
};
|
|
1254
|
-
const
|
|
2013
|
+
const deserializeAws_restJson1DescribeAppVersionCommandError = async (output, context) => {
|
|
1255
2014
|
const parsedOutput = {
|
|
1256
2015
|
...output,
|
|
1257
2016
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1261,9 +2020,6 @@ const deserializeAws_restJson1DeleteResiliencyPolicyCommandError = async (output
|
|
|
1261
2020
|
case "AccessDeniedException":
|
|
1262
2021
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1263
2022
|
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1264
|
-
case "ConflictException":
|
|
1265
|
-
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1266
|
-
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1267
2023
|
case "InternalServerException":
|
|
1268
2024
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1269
2025
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1286,20 +2042,26 @@ const deserializeAws_restJson1DeleteResiliencyPolicyCommandError = async (output
|
|
|
1286
2042
|
});
|
|
1287
2043
|
}
|
|
1288
2044
|
};
|
|
1289
|
-
export const
|
|
2045
|
+
export const deserializeAws_restJson1DescribeAppVersionAppComponentCommand = async (output, context) => {
|
|
1290
2046
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1291
|
-
return
|
|
2047
|
+
return deserializeAws_restJson1DescribeAppVersionAppComponentCommandError(output, context);
|
|
1292
2048
|
}
|
|
1293
2049
|
const contents = map({
|
|
1294
2050
|
$metadata: deserializeMetadata(output),
|
|
1295
2051
|
});
|
|
1296
2052
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1297
|
-
if (data.
|
|
1298
|
-
contents.
|
|
2053
|
+
if (data.appArn != null) {
|
|
2054
|
+
contents.appArn = __expectString(data.appArn);
|
|
2055
|
+
}
|
|
2056
|
+
if (data.appComponent != null) {
|
|
2057
|
+
contents.appComponent = deserializeAws_restJson1AppComponent(data.appComponent, context);
|
|
2058
|
+
}
|
|
2059
|
+
if (data.appVersion != null) {
|
|
2060
|
+
contents.appVersion = __expectString(data.appVersion);
|
|
1299
2061
|
}
|
|
1300
2062
|
return contents;
|
|
1301
2063
|
};
|
|
1302
|
-
const
|
|
2064
|
+
const deserializeAws_restJson1DescribeAppVersionAppComponentCommandError = async (output, context) => {
|
|
1303
2065
|
const parsedOutput = {
|
|
1304
2066
|
...output,
|
|
1305
2067
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1309,6 +2071,9 @@ const deserializeAws_restJson1DescribeAppCommandError = async (output, context)
|
|
|
1309
2071
|
case "AccessDeniedException":
|
|
1310
2072
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1311
2073
|
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2074
|
+
case "ConflictException":
|
|
2075
|
+
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2076
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1312
2077
|
case "InternalServerException":
|
|
1313
2078
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1314
2079
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1331,20 +2096,26 @@ const deserializeAws_restJson1DescribeAppCommandError = async (output, context)
|
|
|
1331
2096
|
});
|
|
1332
2097
|
}
|
|
1333
2098
|
};
|
|
1334
|
-
export const
|
|
2099
|
+
export const deserializeAws_restJson1DescribeAppVersionResourceCommand = async (output, context) => {
|
|
1335
2100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1336
|
-
return
|
|
2101
|
+
return deserializeAws_restJson1DescribeAppVersionResourceCommandError(output, context);
|
|
1337
2102
|
}
|
|
1338
2103
|
const contents = map({
|
|
1339
2104
|
$metadata: deserializeMetadata(output),
|
|
1340
2105
|
});
|
|
1341
2106
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1342
|
-
if (data.
|
|
1343
|
-
contents.
|
|
2107
|
+
if (data.appArn != null) {
|
|
2108
|
+
contents.appArn = __expectString(data.appArn);
|
|
2109
|
+
}
|
|
2110
|
+
if (data.appVersion != null) {
|
|
2111
|
+
contents.appVersion = __expectString(data.appVersion);
|
|
2112
|
+
}
|
|
2113
|
+
if (data.physicalResource != null) {
|
|
2114
|
+
contents.physicalResource = deserializeAws_restJson1PhysicalResource(data.physicalResource, context);
|
|
1344
2115
|
}
|
|
1345
2116
|
return contents;
|
|
1346
2117
|
};
|
|
1347
|
-
const
|
|
2118
|
+
const deserializeAws_restJson1DescribeAppVersionResourceCommandError = async (output, context) => {
|
|
1348
2119
|
const parsedOutput = {
|
|
1349
2120
|
...output,
|
|
1350
2121
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1354,6 +2125,9 @@ const deserializeAws_restJson1DescribeAppAssessmentCommandError = async (output,
|
|
|
1354
2125
|
case "AccessDeniedException":
|
|
1355
2126
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1356
2127
|
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2128
|
+
case "ConflictException":
|
|
2129
|
+
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2130
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1357
2131
|
case "InternalServerException":
|
|
1358
2132
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1359
2133
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1662,7 +2436,103 @@ export const deserializeAws_restJson1ListAlarmRecommendationsCommand = async (ou
|
|
|
1662
2436
|
}
|
|
1663
2437
|
return contents;
|
|
1664
2438
|
};
|
|
1665
|
-
const deserializeAws_restJson1ListAlarmRecommendationsCommandError = async (output, context) => {
|
|
2439
|
+
const deserializeAws_restJson1ListAlarmRecommendationsCommandError = async (output, context) => {
|
|
2440
|
+
const parsedOutput = {
|
|
2441
|
+
...output,
|
|
2442
|
+
body: await parseErrorBody(output.body, context),
|
|
2443
|
+
};
|
|
2444
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2445
|
+
switch (errorCode) {
|
|
2446
|
+
case "AccessDeniedException":
|
|
2447
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2448
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2449
|
+
case "InternalServerException":
|
|
2450
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2451
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2452
|
+
case "ResourceNotFoundException":
|
|
2453
|
+
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2454
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2455
|
+
case "ThrottlingException":
|
|
2456
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2457
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2458
|
+
case "ValidationException":
|
|
2459
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2460
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2461
|
+
default:
|
|
2462
|
+
const parsedBody = parsedOutput.body;
|
|
2463
|
+
throwDefaultError({
|
|
2464
|
+
output,
|
|
2465
|
+
parsedBody,
|
|
2466
|
+
exceptionCtor: __BaseException,
|
|
2467
|
+
errorCode,
|
|
2468
|
+
});
|
|
2469
|
+
}
|
|
2470
|
+
};
|
|
2471
|
+
export const deserializeAws_restJson1ListAppAssessmentsCommand = async (output, context) => {
|
|
2472
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2473
|
+
return deserializeAws_restJson1ListAppAssessmentsCommandError(output, context);
|
|
2474
|
+
}
|
|
2475
|
+
const contents = map({
|
|
2476
|
+
$metadata: deserializeMetadata(output),
|
|
2477
|
+
});
|
|
2478
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2479
|
+
if (data.assessmentSummaries != null) {
|
|
2480
|
+
contents.assessmentSummaries = deserializeAws_restJson1AppAssessmentSummaryList(data.assessmentSummaries, context);
|
|
2481
|
+
}
|
|
2482
|
+
if (data.nextToken != null) {
|
|
2483
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
2484
|
+
}
|
|
2485
|
+
return contents;
|
|
2486
|
+
};
|
|
2487
|
+
const deserializeAws_restJson1ListAppAssessmentsCommandError = async (output, context) => {
|
|
2488
|
+
const parsedOutput = {
|
|
2489
|
+
...output,
|
|
2490
|
+
body: await parseErrorBody(output.body, context),
|
|
2491
|
+
};
|
|
2492
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2493
|
+
switch (errorCode) {
|
|
2494
|
+
case "AccessDeniedException":
|
|
2495
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2496
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2497
|
+
case "InternalServerException":
|
|
2498
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2499
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2500
|
+
case "ResourceNotFoundException":
|
|
2501
|
+
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2502
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2503
|
+
case "ThrottlingException":
|
|
2504
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2505
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2506
|
+
case "ValidationException":
|
|
2507
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2508
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2509
|
+
default:
|
|
2510
|
+
const parsedBody = parsedOutput.body;
|
|
2511
|
+
throwDefaultError({
|
|
2512
|
+
output,
|
|
2513
|
+
parsedBody,
|
|
2514
|
+
exceptionCtor: __BaseException,
|
|
2515
|
+
errorCode,
|
|
2516
|
+
});
|
|
2517
|
+
}
|
|
2518
|
+
};
|
|
2519
|
+
export const deserializeAws_restJson1ListAppComponentCompliancesCommand = async (output, context) => {
|
|
2520
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2521
|
+
return deserializeAws_restJson1ListAppComponentCompliancesCommandError(output, context);
|
|
2522
|
+
}
|
|
2523
|
+
const contents = map({
|
|
2524
|
+
$metadata: deserializeMetadata(output),
|
|
2525
|
+
});
|
|
2526
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2527
|
+
if (data.componentCompliances != null) {
|
|
2528
|
+
contents.componentCompliances = deserializeAws_restJson1ComponentCompliancesList(data.componentCompliances, context);
|
|
2529
|
+
}
|
|
2530
|
+
if (data.nextToken != null) {
|
|
2531
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
2532
|
+
}
|
|
2533
|
+
return contents;
|
|
2534
|
+
};
|
|
2535
|
+
const deserializeAws_restJson1ListAppComponentCompliancesCommandError = async (output, context) => {
|
|
1666
2536
|
const parsedOutput = {
|
|
1667
2537
|
...output,
|
|
1668
2538
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1694,23 +2564,23 @@ const deserializeAws_restJson1ListAlarmRecommendationsCommandError = async (outp
|
|
|
1694
2564
|
});
|
|
1695
2565
|
}
|
|
1696
2566
|
};
|
|
1697
|
-
export const
|
|
2567
|
+
export const deserializeAws_restJson1ListAppComponentRecommendationsCommand = async (output, context) => {
|
|
1698
2568
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1699
|
-
return
|
|
2569
|
+
return deserializeAws_restJson1ListAppComponentRecommendationsCommandError(output, context);
|
|
1700
2570
|
}
|
|
1701
2571
|
const contents = map({
|
|
1702
2572
|
$metadata: deserializeMetadata(output),
|
|
1703
2573
|
});
|
|
1704
2574
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1705
|
-
if (data.
|
|
1706
|
-
contents.
|
|
2575
|
+
if (data.componentRecommendations != null) {
|
|
2576
|
+
contents.componentRecommendations = deserializeAws_restJson1ComponentRecommendationList(data.componentRecommendations, context);
|
|
1707
2577
|
}
|
|
1708
2578
|
if (data.nextToken != null) {
|
|
1709
2579
|
contents.nextToken = __expectString(data.nextToken);
|
|
1710
2580
|
}
|
|
1711
2581
|
return contents;
|
|
1712
2582
|
};
|
|
1713
|
-
const
|
|
2583
|
+
const deserializeAws_restJson1ListAppComponentRecommendationsCommandError = async (output, context) => {
|
|
1714
2584
|
const parsedOutput = {
|
|
1715
2585
|
...output,
|
|
1716
2586
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1742,23 +2612,23 @@ const deserializeAws_restJson1ListAppAssessmentsCommandError = async (output, co
|
|
|
1742
2612
|
});
|
|
1743
2613
|
}
|
|
1744
2614
|
};
|
|
1745
|
-
export const
|
|
2615
|
+
export const deserializeAws_restJson1ListAppInputSourcesCommand = async (output, context) => {
|
|
1746
2616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1747
|
-
return
|
|
2617
|
+
return deserializeAws_restJson1ListAppInputSourcesCommandError(output, context);
|
|
1748
2618
|
}
|
|
1749
2619
|
const contents = map({
|
|
1750
2620
|
$metadata: deserializeMetadata(output),
|
|
1751
2621
|
});
|
|
1752
2622
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1753
|
-
if (data.
|
|
1754
|
-
contents.
|
|
2623
|
+
if (data.appInputSources != null) {
|
|
2624
|
+
contents.appInputSources = deserializeAws_restJson1AppInputSourceList(data.appInputSources, context);
|
|
1755
2625
|
}
|
|
1756
2626
|
if (data.nextToken != null) {
|
|
1757
2627
|
contents.nextToken = __expectString(data.nextToken);
|
|
1758
2628
|
}
|
|
1759
2629
|
return contents;
|
|
1760
2630
|
};
|
|
1761
|
-
const
|
|
2631
|
+
const deserializeAws_restJson1ListAppInputSourcesCommandError = async (output, context) => {
|
|
1762
2632
|
const parsedOutput = {
|
|
1763
2633
|
...output,
|
|
1764
2634
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1790,23 +2660,23 @@ const deserializeAws_restJson1ListAppComponentCompliancesCommandError = async (o
|
|
|
1790
2660
|
});
|
|
1791
2661
|
}
|
|
1792
2662
|
};
|
|
1793
|
-
export const
|
|
2663
|
+
export const deserializeAws_restJson1ListAppsCommand = async (output, context) => {
|
|
1794
2664
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1795
|
-
return
|
|
2665
|
+
return deserializeAws_restJson1ListAppsCommandError(output, context);
|
|
1796
2666
|
}
|
|
1797
2667
|
const contents = map({
|
|
1798
2668
|
$metadata: deserializeMetadata(output),
|
|
1799
2669
|
});
|
|
1800
2670
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1801
|
-
if (data.
|
|
1802
|
-
contents.
|
|
2671
|
+
if (data.appSummaries != null) {
|
|
2672
|
+
contents.appSummaries = deserializeAws_restJson1AppSummaryList(data.appSummaries, context);
|
|
1803
2673
|
}
|
|
1804
2674
|
if (data.nextToken != null) {
|
|
1805
2675
|
contents.nextToken = __expectString(data.nextToken);
|
|
1806
2676
|
}
|
|
1807
2677
|
return contents;
|
|
1808
2678
|
};
|
|
1809
|
-
const
|
|
2679
|
+
const deserializeAws_restJson1ListAppsCommandError = async (output, context) => {
|
|
1810
2680
|
const parsedOutput = {
|
|
1811
2681
|
...output,
|
|
1812
2682
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1819,9 +2689,6 @@ const deserializeAws_restJson1ListAppComponentRecommendationsCommandError = asyn
|
|
|
1819
2689
|
case "InternalServerException":
|
|
1820
2690
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1821
2691
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1822
|
-
case "ResourceNotFoundException":
|
|
1823
|
-
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1824
|
-
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1825
2692
|
case "ThrottlingException":
|
|
1826
2693
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1827
2694
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
@@ -1838,23 +2705,29 @@ const deserializeAws_restJson1ListAppComponentRecommendationsCommandError = asyn
|
|
|
1838
2705
|
});
|
|
1839
2706
|
}
|
|
1840
2707
|
};
|
|
1841
|
-
export const
|
|
2708
|
+
export const deserializeAws_restJson1ListAppVersionAppComponentsCommand = async (output, context) => {
|
|
1842
2709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1843
|
-
return
|
|
2710
|
+
return deserializeAws_restJson1ListAppVersionAppComponentsCommandError(output, context);
|
|
1844
2711
|
}
|
|
1845
2712
|
const contents = map({
|
|
1846
2713
|
$metadata: deserializeMetadata(output),
|
|
1847
2714
|
});
|
|
1848
2715
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1849
|
-
if (data.
|
|
1850
|
-
contents.
|
|
2716
|
+
if (data.appArn != null) {
|
|
2717
|
+
contents.appArn = __expectString(data.appArn);
|
|
2718
|
+
}
|
|
2719
|
+
if (data.appComponents != null) {
|
|
2720
|
+
contents.appComponents = deserializeAws_restJson1AppComponentList(data.appComponents, context);
|
|
2721
|
+
}
|
|
2722
|
+
if (data.appVersion != null) {
|
|
2723
|
+
contents.appVersion = __expectString(data.appVersion);
|
|
1851
2724
|
}
|
|
1852
2725
|
if (data.nextToken != null) {
|
|
1853
2726
|
contents.nextToken = __expectString(data.nextToken);
|
|
1854
2727
|
}
|
|
1855
2728
|
return contents;
|
|
1856
2729
|
};
|
|
1857
|
-
const
|
|
2730
|
+
const deserializeAws_restJson1ListAppVersionAppComponentsCommandError = async (output, context) => {
|
|
1858
2731
|
const parsedOutput = {
|
|
1859
2732
|
...output,
|
|
1860
2733
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1864,9 +2737,15 @@ const deserializeAws_restJson1ListAppsCommandError = async (output, context) =>
|
|
|
1864
2737
|
case "AccessDeniedException":
|
|
1865
2738
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1866
2739
|
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2740
|
+
case "ConflictException":
|
|
2741
|
+
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2742
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1867
2743
|
case "InternalServerException":
|
|
1868
2744
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1869
2745
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2746
|
+
case "ResourceNotFoundException":
|
|
2747
|
+
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2748
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1870
2749
|
case "ThrottlingException":
|
|
1871
2750
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1872
2751
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
@@ -2765,6 +3644,171 @@ const deserializeAws_restJson1UpdateAppCommandError = async (output, context) =>
|
|
|
2765
3644
|
});
|
|
2766
3645
|
}
|
|
2767
3646
|
};
|
|
3647
|
+
export const deserializeAws_restJson1UpdateAppVersionCommand = async (output, context) => {
|
|
3648
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3649
|
+
return deserializeAws_restJson1UpdateAppVersionCommandError(output, context);
|
|
3650
|
+
}
|
|
3651
|
+
const contents = map({
|
|
3652
|
+
$metadata: deserializeMetadata(output),
|
|
3653
|
+
});
|
|
3654
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3655
|
+
if (data.additionalInfo != null) {
|
|
3656
|
+
contents.additionalInfo = deserializeAws_restJson1AdditionalInfoMap(data.additionalInfo, context);
|
|
3657
|
+
}
|
|
3658
|
+
if (data.appArn != null) {
|
|
3659
|
+
contents.appArn = __expectString(data.appArn);
|
|
3660
|
+
}
|
|
3661
|
+
if (data.appVersion != null) {
|
|
3662
|
+
contents.appVersion = __expectString(data.appVersion);
|
|
3663
|
+
}
|
|
3664
|
+
return contents;
|
|
3665
|
+
};
|
|
3666
|
+
const deserializeAws_restJson1UpdateAppVersionCommandError = async (output, context) => {
|
|
3667
|
+
const parsedOutput = {
|
|
3668
|
+
...output,
|
|
3669
|
+
body: await parseErrorBody(output.body, context),
|
|
3670
|
+
};
|
|
3671
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3672
|
+
switch (errorCode) {
|
|
3673
|
+
case "AccessDeniedException":
|
|
3674
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3675
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3676
|
+
case "ConflictException":
|
|
3677
|
+
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3678
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3679
|
+
case "InternalServerException":
|
|
3680
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3681
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3682
|
+
case "ResourceNotFoundException":
|
|
3683
|
+
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3684
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3685
|
+
case "ThrottlingException":
|
|
3686
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3687
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3688
|
+
case "ValidationException":
|
|
3689
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3690
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3691
|
+
default:
|
|
3692
|
+
const parsedBody = parsedOutput.body;
|
|
3693
|
+
throwDefaultError({
|
|
3694
|
+
output,
|
|
3695
|
+
parsedBody,
|
|
3696
|
+
exceptionCtor: __BaseException,
|
|
3697
|
+
errorCode,
|
|
3698
|
+
});
|
|
3699
|
+
}
|
|
3700
|
+
};
|
|
3701
|
+
export const deserializeAws_restJson1UpdateAppVersionAppComponentCommand = async (output, context) => {
|
|
3702
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3703
|
+
return deserializeAws_restJson1UpdateAppVersionAppComponentCommandError(output, context);
|
|
3704
|
+
}
|
|
3705
|
+
const contents = map({
|
|
3706
|
+
$metadata: deserializeMetadata(output),
|
|
3707
|
+
});
|
|
3708
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3709
|
+
if (data.appArn != null) {
|
|
3710
|
+
contents.appArn = __expectString(data.appArn);
|
|
3711
|
+
}
|
|
3712
|
+
if (data.appComponent != null) {
|
|
3713
|
+
contents.appComponent = deserializeAws_restJson1AppComponent(data.appComponent, context);
|
|
3714
|
+
}
|
|
3715
|
+
if (data.appVersion != null) {
|
|
3716
|
+
contents.appVersion = __expectString(data.appVersion);
|
|
3717
|
+
}
|
|
3718
|
+
return contents;
|
|
3719
|
+
};
|
|
3720
|
+
const deserializeAws_restJson1UpdateAppVersionAppComponentCommandError = async (output, context) => {
|
|
3721
|
+
const parsedOutput = {
|
|
3722
|
+
...output,
|
|
3723
|
+
body: await parseErrorBody(output.body, context),
|
|
3724
|
+
};
|
|
3725
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3726
|
+
switch (errorCode) {
|
|
3727
|
+
case "AccessDeniedException":
|
|
3728
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3729
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3730
|
+
case "ConflictException":
|
|
3731
|
+
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3732
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3733
|
+
case "InternalServerException":
|
|
3734
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3735
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3736
|
+
case "ResourceNotFoundException":
|
|
3737
|
+
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3738
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3739
|
+
case "ThrottlingException":
|
|
3740
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3741
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3742
|
+
case "ValidationException":
|
|
3743
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3744
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3745
|
+
default:
|
|
3746
|
+
const parsedBody = parsedOutput.body;
|
|
3747
|
+
throwDefaultError({
|
|
3748
|
+
output,
|
|
3749
|
+
parsedBody,
|
|
3750
|
+
exceptionCtor: __BaseException,
|
|
3751
|
+
errorCode,
|
|
3752
|
+
});
|
|
3753
|
+
}
|
|
3754
|
+
};
|
|
3755
|
+
export const deserializeAws_restJson1UpdateAppVersionResourceCommand = async (output, context) => {
|
|
3756
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3757
|
+
return deserializeAws_restJson1UpdateAppVersionResourceCommandError(output, context);
|
|
3758
|
+
}
|
|
3759
|
+
const contents = map({
|
|
3760
|
+
$metadata: deserializeMetadata(output),
|
|
3761
|
+
});
|
|
3762
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3763
|
+
if (data.appArn != null) {
|
|
3764
|
+
contents.appArn = __expectString(data.appArn);
|
|
3765
|
+
}
|
|
3766
|
+
if (data.appVersion != null) {
|
|
3767
|
+
contents.appVersion = __expectString(data.appVersion);
|
|
3768
|
+
}
|
|
3769
|
+
if (data.physicalResource != null) {
|
|
3770
|
+
contents.physicalResource = deserializeAws_restJson1PhysicalResource(data.physicalResource, context);
|
|
3771
|
+
}
|
|
3772
|
+
return contents;
|
|
3773
|
+
};
|
|
3774
|
+
const deserializeAws_restJson1UpdateAppVersionResourceCommandError = async (output, context) => {
|
|
3775
|
+
const parsedOutput = {
|
|
3776
|
+
...output,
|
|
3777
|
+
body: await parseErrorBody(output.body, context),
|
|
3778
|
+
};
|
|
3779
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3780
|
+
switch (errorCode) {
|
|
3781
|
+
case "AccessDeniedException":
|
|
3782
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3783
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3784
|
+
case "ConflictException":
|
|
3785
|
+
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3786
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3787
|
+
case "InternalServerException":
|
|
3788
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3789
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3790
|
+
case "ResourceNotFoundException":
|
|
3791
|
+
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3792
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3793
|
+
case "ServiceQuotaExceededException":
|
|
3794
|
+
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
3795
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
3796
|
+
case "ThrottlingException":
|
|
3797
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3798
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3799
|
+
case "ValidationException":
|
|
3800
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3801
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3802
|
+
default:
|
|
3803
|
+
const parsedBody = parsedOutput.body;
|
|
3804
|
+
throwDefaultError({
|
|
3805
|
+
output,
|
|
3806
|
+
parsedBody,
|
|
3807
|
+
exceptionCtor: __BaseException,
|
|
3808
|
+
errorCode,
|
|
3809
|
+
});
|
|
3810
|
+
}
|
|
3811
|
+
};
|
|
2768
3812
|
export const deserializeAws_restJson1UpdateResiliencyPolicyCommand = async (output, context) => {
|
|
2769
3813
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2770
3814
|
return deserializeAws_restJson1UpdateResiliencyPolicyCommandError(output, context);
|
|
@@ -2913,6 +3957,29 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2913
3957
|
});
|
|
2914
3958
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2915
3959
|
};
|
|
3960
|
+
const serializeAws_restJson1AdditionalInfoMap = (input, context) => {
|
|
3961
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3962
|
+
if (value === null) {
|
|
3963
|
+
return acc;
|
|
3964
|
+
}
|
|
3965
|
+
acc[key] = serializeAws_restJson1AdditionalInfoValueList(value, context);
|
|
3966
|
+
return acc;
|
|
3967
|
+
}, {});
|
|
3968
|
+
};
|
|
3969
|
+
const serializeAws_restJson1AdditionalInfoValueList = (input, context) => {
|
|
3970
|
+
return input
|
|
3971
|
+
.filter((e) => e != null)
|
|
3972
|
+
.map((entry) => {
|
|
3973
|
+
return entry;
|
|
3974
|
+
});
|
|
3975
|
+
};
|
|
3976
|
+
const serializeAws_restJson1AppComponentNameList = (input, context) => {
|
|
3977
|
+
return input
|
|
3978
|
+
.filter((e) => e != null)
|
|
3979
|
+
.map((entry) => {
|
|
3980
|
+
return entry;
|
|
3981
|
+
});
|
|
3982
|
+
};
|
|
2916
3983
|
const serializeAws_restJson1ArnList = (input, context) => {
|
|
2917
3984
|
return input
|
|
2918
3985
|
.filter((e) => e != null)
|
|
@@ -2942,6 +4009,14 @@ const serializeAws_restJson1FailurePolicy = (input, context) => {
|
|
|
2942
4009
|
...(input.rtoInSecs != null && { rtoInSecs: input.rtoInSecs }),
|
|
2943
4010
|
};
|
|
2944
4011
|
};
|
|
4012
|
+
const serializeAws_restJson1LogicalResourceId = (input, context) => {
|
|
4013
|
+
return {
|
|
4014
|
+
...(input.identifier != null && { identifier: input.identifier }),
|
|
4015
|
+
...(input.logicalStackName != null && { logicalStackName: input.logicalStackName }),
|
|
4016
|
+
...(input.resourceGroupName != null && { resourceGroupName: input.resourceGroupName }),
|
|
4017
|
+
...(input.terraformSourceName != null && { terraformSourceName: input.terraformSourceName }),
|
|
4018
|
+
};
|
|
4019
|
+
};
|
|
2945
4020
|
const serializeAws_restJson1PhysicalResourceId = (input, context) => {
|
|
2946
4021
|
return {
|
|
2947
4022
|
...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
|
|
@@ -3012,6 +4087,26 @@ const serializeAws_restJson1TerraformSourceList = (input, context) => {
|
|
|
3012
4087
|
return serializeAws_restJson1TerraformSource(entry, context);
|
|
3013
4088
|
});
|
|
3014
4089
|
};
|
|
4090
|
+
const deserializeAws_restJson1AdditionalInfoMap = (output, context) => {
|
|
4091
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4092
|
+
if (value === null) {
|
|
4093
|
+
return acc;
|
|
4094
|
+
}
|
|
4095
|
+
acc[key] = deserializeAws_restJson1AdditionalInfoValueList(value, context);
|
|
4096
|
+
return acc;
|
|
4097
|
+
}, {});
|
|
4098
|
+
};
|
|
4099
|
+
const deserializeAws_restJson1AdditionalInfoValueList = (output, context) => {
|
|
4100
|
+
const retVal = (output || [])
|
|
4101
|
+
.filter((e) => e != null)
|
|
4102
|
+
.map((entry) => {
|
|
4103
|
+
if (entry === null) {
|
|
4104
|
+
return null;
|
|
4105
|
+
}
|
|
4106
|
+
return __expectString(entry);
|
|
4107
|
+
});
|
|
4108
|
+
return retVal;
|
|
4109
|
+
};
|
|
3015
4110
|
const deserializeAws_restJson1AlarmRecommendation = (output, context) => {
|
|
3016
4111
|
return {
|
|
3017
4112
|
appComponentName: __expectString(output.appComponentName),
|
|
@@ -3121,6 +4216,10 @@ const deserializeAws_restJson1AppAssessmentSummaryList = (output, context) => {
|
|
|
3121
4216
|
};
|
|
3122
4217
|
const deserializeAws_restJson1AppComponent = (output, context) => {
|
|
3123
4218
|
return {
|
|
4219
|
+
additionalInfo: output.additionalInfo != null
|
|
4220
|
+
? deserializeAws_restJson1AdditionalInfoMap(output.additionalInfo, context)
|
|
4221
|
+
: undefined,
|
|
4222
|
+
id: __expectString(output.id),
|
|
3124
4223
|
name: __expectString(output.name),
|
|
3125
4224
|
type: __expectString(output.type),
|
|
3126
4225
|
};
|
|
@@ -3148,6 +4247,28 @@ const deserializeAws_restJson1AppComponentList = (output, context) => {
|
|
|
3148
4247
|
});
|
|
3149
4248
|
return retVal;
|
|
3150
4249
|
};
|
|
4250
|
+
const deserializeAws_restJson1AppInputSource = (output, context) => {
|
|
4251
|
+
return {
|
|
4252
|
+
importType: __expectString(output.importType),
|
|
4253
|
+
resourceCount: __expectInt32(output.resourceCount),
|
|
4254
|
+
sourceArn: __expectString(output.sourceArn),
|
|
4255
|
+
sourceName: __expectString(output.sourceName),
|
|
4256
|
+
terraformSource: output.terraformSource != null
|
|
4257
|
+
? deserializeAws_restJson1TerraformSource(output.terraformSource, context)
|
|
4258
|
+
: undefined,
|
|
4259
|
+
};
|
|
4260
|
+
};
|
|
4261
|
+
const deserializeAws_restJson1AppInputSourceList = (output, context) => {
|
|
4262
|
+
const retVal = (output || [])
|
|
4263
|
+
.filter((e) => e != null)
|
|
4264
|
+
.map((entry) => {
|
|
4265
|
+
if (entry === null) {
|
|
4266
|
+
return null;
|
|
4267
|
+
}
|
|
4268
|
+
return deserializeAws_restJson1AppInputSource(entry, context);
|
|
4269
|
+
});
|
|
4270
|
+
return retVal;
|
|
4271
|
+
};
|
|
3151
4272
|
const deserializeAws_restJson1AppSummary = (output, context) => {
|
|
3152
4273
|
return {
|
|
3153
4274
|
appArn: __expectString(output.appArn),
|
|
@@ -3324,9 +4445,13 @@ const deserializeAws_restJson1LogicalResourceId = (output, context) => {
|
|
|
3324
4445
|
};
|
|
3325
4446
|
const deserializeAws_restJson1PhysicalResource = (output, context) => {
|
|
3326
4447
|
return {
|
|
4448
|
+
additionalInfo: output.additionalInfo != null
|
|
4449
|
+
? deserializeAws_restJson1AdditionalInfoMap(output.additionalInfo, context)
|
|
4450
|
+
: undefined,
|
|
3327
4451
|
appComponents: output.appComponents != null
|
|
3328
4452
|
? deserializeAws_restJson1AppComponentList(output.appComponents, context)
|
|
3329
4453
|
: undefined,
|
|
4454
|
+
excluded: __expectBoolean(output.excluded),
|
|
3330
4455
|
logicalResourceId: output.logicalResourceId != null
|
|
3331
4456
|
? deserializeAws_restJson1LogicalResourceId(output.logicalResourceId, context)
|
|
3332
4457
|
: undefined,
|