@aws-sdk/client-resiliencehub 3.310.0 → 3.315.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/protocols/Aws_restJson1.js +804 -1612
- package/dist-es/protocols/Aws_restJson1.js +740 -1548
- package/package.json +6 -6
|
@@ -15,12 +15,10 @@ const se_AddDraftAppVersionResourceMappingsCommand = async (input, context) => {
|
|
|
15
15
|
};
|
|
16
16
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/add-draft-app-version-resource-mappings";
|
|
17
17
|
let body;
|
|
18
|
-
body = JSON.stringify({
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}),
|
|
23
|
-
});
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
|
+
appArn: [],
|
|
20
|
+
resourceMappings: (_) => (0, smithy_client_1._json)(_),
|
|
21
|
+
}));
|
|
24
22
|
return new protocol_http_1.HttpRequest({
|
|
25
23
|
protocol,
|
|
26
24
|
hostname,
|
|
@@ -39,14 +37,14 @@ const se_CreateAppCommand = async (input, context) => {
|
|
|
39
37
|
};
|
|
40
38
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-app";
|
|
41
39
|
let body;
|
|
42
|
-
body = JSON.stringify({
|
|
43
|
-
|
|
44
|
-
clientToken:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
});
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
|
+
assessmentSchedule: [],
|
|
42
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
43
|
+
description: [],
|
|
44
|
+
name: [],
|
|
45
|
+
policyArn: [],
|
|
46
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
47
|
+
}));
|
|
50
48
|
return new protocol_http_1.HttpRequest({
|
|
51
49
|
protocol,
|
|
52
50
|
hostname,
|
|
@@ -65,14 +63,14 @@ const se_CreateAppVersionAppComponentCommand = async (input, context) => {
|
|
|
65
63
|
};
|
|
66
64
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-app-version-app-component";
|
|
67
65
|
let body;
|
|
68
|
-
body = JSON.stringify({
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
clientToken:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
});
|
|
66
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
67
|
+
additionalInfo: (_) => (0, smithy_client_1._json)(_),
|
|
68
|
+
appArn: [],
|
|
69
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
70
|
+
id: [],
|
|
71
|
+
name: [],
|
|
72
|
+
type: [],
|
|
73
|
+
}));
|
|
76
74
|
return new protocol_http_1.HttpRequest({
|
|
77
75
|
protocol,
|
|
78
76
|
hostname,
|
|
@@ -91,20 +89,18 @@ const se_CreateAppVersionResourceCommand = async (input, context) => {
|
|
|
91
89
|
};
|
|
92
90
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-app-version-resource";
|
|
93
91
|
let body;
|
|
94
|
-
body = JSON.stringify({
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
clientToken:
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
107
|
-
});
|
|
92
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
93
|
+
additionalInfo: (_) => (0, smithy_client_1._json)(_),
|
|
94
|
+
appArn: [],
|
|
95
|
+
appComponents: (_) => (0, smithy_client_1._json)(_),
|
|
96
|
+
awsAccountId: [],
|
|
97
|
+
awsRegion: [],
|
|
98
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
99
|
+
logicalResourceId: (_) => (0, smithy_client_1._json)(_),
|
|
100
|
+
physicalResourceId: [],
|
|
101
|
+
resourceName: [],
|
|
102
|
+
resourceType: [],
|
|
103
|
+
}));
|
|
108
104
|
return new protocol_http_1.HttpRequest({
|
|
109
105
|
protocol,
|
|
110
106
|
hostname,
|
|
@@ -123,20 +119,16 @@ const se_CreateRecommendationTemplateCommand = async (input, context) => {
|
|
|
123
119
|
};
|
|
124
120
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-recommendation-template";
|
|
125
121
|
let body;
|
|
126
|
-
body = JSON.stringify({
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
clientToken:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
recommendationTypes: se_RenderRecommendationTypeList(input.recommendationTypes, context),
|
|
137
|
-
}),
|
|
138
|
-
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
139
|
-
});
|
|
122
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
123
|
+
assessmentArn: [],
|
|
124
|
+
bucketName: [],
|
|
125
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
126
|
+
format: [],
|
|
127
|
+
name: [],
|
|
128
|
+
recommendationIds: (_) => (0, smithy_client_1._json)(_),
|
|
129
|
+
recommendationTypes: (_) => (0, smithy_client_1._json)(_),
|
|
130
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
131
|
+
}));
|
|
140
132
|
return new protocol_http_1.HttpRequest({
|
|
141
133
|
protocol,
|
|
142
134
|
hostname,
|
|
@@ -155,15 +147,15 @@ const se_CreateResiliencyPolicyCommand = async (input, context) => {
|
|
|
155
147
|
};
|
|
156
148
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-resiliency-policy";
|
|
157
149
|
let body;
|
|
158
|
-
body = JSON.stringify({
|
|
159
|
-
clientToken:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
});
|
|
150
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
151
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
152
|
+
dataLocationConstraint: [],
|
|
153
|
+
policy: (_) => (0, smithy_client_1._json)(_),
|
|
154
|
+
policyDescription: [],
|
|
155
|
+
policyName: [],
|
|
156
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
157
|
+
tier: [],
|
|
158
|
+
}));
|
|
167
159
|
return new protocol_http_1.HttpRequest({
|
|
168
160
|
protocol,
|
|
169
161
|
hostname,
|
|
@@ -182,11 +174,11 @@ const se_DeleteAppCommand = async (input, context) => {
|
|
|
182
174
|
};
|
|
183
175
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app";
|
|
184
176
|
let body;
|
|
185
|
-
body = JSON.stringify({
|
|
186
|
-
|
|
187
|
-
clientToken:
|
|
188
|
-
|
|
189
|
-
});
|
|
177
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
178
|
+
appArn: [],
|
|
179
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
180
|
+
forceDelete: [],
|
|
181
|
+
}));
|
|
190
182
|
return new protocol_http_1.HttpRequest({
|
|
191
183
|
protocol,
|
|
192
184
|
hostname,
|
|
@@ -205,10 +197,10 @@ const se_DeleteAppAssessmentCommand = async (input, context) => {
|
|
|
205
197
|
};
|
|
206
198
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-assessment";
|
|
207
199
|
let body;
|
|
208
|
-
body = JSON.stringify({
|
|
209
|
-
|
|
210
|
-
clientToken:
|
|
211
|
-
});
|
|
200
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
201
|
+
assessmentArn: [],
|
|
202
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
203
|
+
}));
|
|
212
204
|
return new protocol_http_1.HttpRequest({
|
|
213
205
|
protocol,
|
|
214
206
|
hostname,
|
|
@@ -227,15 +219,13 @@ const se_DeleteAppInputSourceCommand = async (input, context) => {
|
|
|
227
219
|
};
|
|
228
220
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-input-source";
|
|
229
221
|
let body;
|
|
230
|
-
body = JSON.stringify({
|
|
231
|
-
|
|
232
|
-
clientToken:
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
...(input.terraformSource != null && { terraformSource: se_TerraformSource(input.terraformSource, context) }),
|
|
238
|
-
});
|
|
222
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
223
|
+
appArn: [],
|
|
224
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
225
|
+
eksSourceClusterNamespace: (_) => (0, smithy_client_1._json)(_),
|
|
226
|
+
sourceArn: [],
|
|
227
|
+
terraformSource: (_) => (0, smithy_client_1._json)(_),
|
|
228
|
+
}));
|
|
239
229
|
return new protocol_http_1.HttpRequest({
|
|
240
230
|
protocol,
|
|
241
231
|
hostname,
|
|
@@ -254,11 +244,11 @@ const se_DeleteAppVersionAppComponentCommand = async (input, context) => {
|
|
|
254
244
|
};
|
|
255
245
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-version-app-component";
|
|
256
246
|
let body;
|
|
257
|
-
body = JSON.stringify({
|
|
258
|
-
|
|
259
|
-
clientToken:
|
|
260
|
-
|
|
261
|
-
});
|
|
247
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
248
|
+
appArn: [],
|
|
249
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
250
|
+
id: [],
|
|
251
|
+
}));
|
|
262
252
|
return new protocol_http_1.HttpRequest({
|
|
263
253
|
protocol,
|
|
264
254
|
hostname,
|
|
@@ -277,17 +267,15 @@ const se_DeleteAppVersionResourceCommand = async (input, context) => {
|
|
|
277
267
|
};
|
|
278
268
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-version-resource";
|
|
279
269
|
let body;
|
|
280
|
-
body = JSON.stringify({
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
clientToken:
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
...(input.resourceName != null && { resourceName: input.resourceName }),
|
|
290
|
-
});
|
|
270
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
271
|
+
appArn: [],
|
|
272
|
+
awsAccountId: [],
|
|
273
|
+
awsRegion: [],
|
|
274
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
275
|
+
logicalResourceId: (_) => (0, smithy_client_1._json)(_),
|
|
276
|
+
physicalResourceId: [],
|
|
277
|
+
resourceName: [],
|
|
278
|
+
}));
|
|
291
279
|
return new protocol_http_1.HttpRequest({
|
|
292
280
|
protocol,
|
|
293
281
|
hostname,
|
|
@@ -306,10 +294,10 @@ const se_DeleteRecommendationTemplateCommand = async (input, context) => {
|
|
|
306
294
|
};
|
|
307
295
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-recommendation-template";
|
|
308
296
|
let body;
|
|
309
|
-
body = JSON.stringify({
|
|
310
|
-
clientToken:
|
|
311
|
-
|
|
312
|
-
});
|
|
297
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
298
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
299
|
+
recommendationTemplateArn: [],
|
|
300
|
+
}));
|
|
313
301
|
return new protocol_http_1.HttpRequest({
|
|
314
302
|
protocol,
|
|
315
303
|
hostname,
|
|
@@ -328,10 +316,10 @@ const se_DeleteResiliencyPolicyCommand = async (input, context) => {
|
|
|
328
316
|
};
|
|
329
317
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-resiliency-policy";
|
|
330
318
|
let body;
|
|
331
|
-
body = JSON.stringify({
|
|
332
|
-
clientToken:
|
|
333
|
-
|
|
334
|
-
});
|
|
319
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
320
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
321
|
+
policyArn: [],
|
|
322
|
+
}));
|
|
335
323
|
return new protocol_http_1.HttpRequest({
|
|
336
324
|
protocol,
|
|
337
325
|
hostname,
|
|
@@ -350,9 +338,9 @@ const se_DescribeAppCommand = async (input, context) => {
|
|
|
350
338
|
};
|
|
351
339
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app";
|
|
352
340
|
let body;
|
|
353
|
-
body = JSON.stringify({
|
|
354
|
-
|
|
355
|
-
});
|
|
341
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
342
|
+
appArn: [],
|
|
343
|
+
}));
|
|
356
344
|
return new protocol_http_1.HttpRequest({
|
|
357
345
|
protocol,
|
|
358
346
|
hostname,
|
|
@@ -371,9 +359,9 @@ const se_DescribeAppAssessmentCommand = async (input, context) => {
|
|
|
371
359
|
};
|
|
372
360
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-assessment";
|
|
373
361
|
let body;
|
|
374
|
-
body = JSON.stringify({
|
|
375
|
-
|
|
376
|
-
});
|
|
362
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
363
|
+
assessmentArn: [],
|
|
364
|
+
}));
|
|
377
365
|
return new protocol_http_1.HttpRequest({
|
|
378
366
|
protocol,
|
|
379
367
|
hostname,
|
|
@@ -392,10 +380,10 @@ const se_DescribeAppVersionCommand = async (input, context) => {
|
|
|
392
380
|
};
|
|
393
381
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version";
|
|
394
382
|
let body;
|
|
395
|
-
body = JSON.stringify({
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
});
|
|
383
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
384
|
+
appArn: [],
|
|
385
|
+
appVersion: [],
|
|
386
|
+
}));
|
|
399
387
|
return new protocol_http_1.HttpRequest({
|
|
400
388
|
protocol,
|
|
401
389
|
hostname,
|
|
@@ -414,11 +402,11 @@ const se_DescribeAppVersionAppComponentCommand = async (input, context) => {
|
|
|
414
402
|
};
|
|
415
403
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version-app-component";
|
|
416
404
|
let body;
|
|
417
|
-
body = JSON.stringify({
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
});
|
|
405
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
406
|
+
appArn: [],
|
|
407
|
+
appVersion: [],
|
|
408
|
+
id: [],
|
|
409
|
+
}));
|
|
422
410
|
return new protocol_http_1.HttpRequest({
|
|
423
411
|
protocol,
|
|
424
412
|
hostname,
|
|
@@ -437,17 +425,15 @@ const se_DescribeAppVersionResourceCommand = async (input, context) => {
|
|
|
437
425
|
};
|
|
438
426
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version-resource";
|
|
439
427
|
let body;
|
|
440
|
-
body = JSON.stringify({
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
...(input.resourceName != null && { resourceName: input.resourceName }),
|
|
450
|
-
});
|
|
428
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
429
|
+
appArn: [],
|
|
430
|
+
appVersion: [],
|
|
431
|
+
awsAccountId: [],
|
|
432
|
+
awsRegion: [],
|
|
433
|
+
logicalResourceId: (_) => (0, smithy_client_1._json)(_),
|
|
434
|
+
physicalResourceId: [],
|
|
435
|
+
resourceName: [],
|
|
436
|
+
}));
|
|
451
437
|
return new protocol_http_1.HttpRequest({
|
|
452
438
|
protocol,
|
|
453
439
|
hostname,
|
|
@@ -467,11 +453,11 @@ const se_DescribeAppVersionResourcesResolutionStatusCommand = async (input, cont
|
|
|
467
453
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
468
454
|
"/describe-app-version-resources-resolution-status";
|
|
469
455
|
let body;
|
|
470
|
-
body = JSON.stringify({
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
});
|
|
456
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
457
|
+
appArn: [],
|
|
458
|
+
appVersion: [],
|
|
459
|
+
resolutionId: [],
|
|
460
|
+
}));
|
|
475
461
|
return new protocol_http_1.HttpRequest({
|
|
476
462
|
protocol,
|
|
477
463
|
hostname,
|
|
@@ -490,10 +476,10 @@ const se_DescribeAppVersionTemplateCommand = async (input, context) => {
|
|
|
490
476
|
};
|
|
491
477
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version-template";
|
|
492
478
|
let body;
|
|
493
|
-
body = JSON.stringify({
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
});
|
|
479
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
480
|
+
appArn: [],
|
|
481
|
+
appVersion: [],
|
|
482
|
+
}));
|
|
497
483
|
return new protocol_http_1.HttpRequest({
|
|
498
484
|
protocol,
|
|
499
485
|
hostname,
|
|
@@ -513,9 +499,9 @@ const se_DescribeDraftAppVersionResourcesImportStatusCommand = async (input, con
|
|
|
513
499
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
514
500
|
"/describe-draft-app-version-resources-import-status";
|
|
515
501
|
let body;
|
|
516
|
-
body = JSON.stringify({
|
|
517
|
-
|
|
518
|
-
});
|
|
502
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
503
|
+
appArn: [],
|
|
504
|
+
}));
|
|
519
505
|
return new protocol_http_1.HttpRequest({
|
|
520
506
|
protocol,
|
|
521
507
|
hostname,
|
|
@@ -534,9 +520,9 @@ const se_DescribeResiliencyPolicyCommand = async (input, context) => {
|
|
|
534
520
|
};
|
|
535
521
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-resiliency-policy";
|
|
536
522
|
let body;
|
|
537
|
-
body = JSON.stringify({
|
|
538
|
-
|
|
539
|
-
});
|
|
523
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
524
|
+
policyArn: [],
|
|
525
|
+
}));
|
|
540
526
|
return new protocol_http_1.HttpRequest({
|
|
541
527
|
protocol,
|
|
542
528
|
hostname,
|
|
@@ -555,15 +541,13 @@ const se_ImportResourcesToDraftAppVersionCommand = async (input, context) => {
|
|
|
555
541
|
};
|
|
556
542
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import-resources-to-draft-app-version";
|
|
557
543
|
let body;
|
|
558
|
-
body = JSON.stringify({
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
}),
|
|
566
|
-
});
|
|
544
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
545
|
+
appArn: [],
|
|
546
|
+
eksSources: (_) => (0, smithy_client_1._json)(_),
|
|
547
|
+
importStrategy: [],
|
|
548
|
+
sourceArns: (_) => (0, smithy_client_1._json)(_),
|
|
549
|
+
terraformSources: (_) => (0, smithy_client_1._json)(_),
|
|
550
|
+
}));
|
|
567
551
|
return new protocol_http_1.HttpRequest({
|
|
568
552
|
protocol,
|
|
569
553
|
hostname,
|
|
@@ -582,11 +566,11 @@ const se_ListAlarmRecommendationsCommand = async (input, context) => {
|
|
|
582
566
|
};
|
|
583
567
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-alarm-recommendations";
|
|
584
568
|
let body;
|
|
585
|
-
body = JSON.stringify({
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
});
|
|
569
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
570
|
+
assessmentArn: [],
|
|
571
|
+
maxResults: [],
|
|
572
|
+
nextToken: [],
|
|
573
|
+
}));
|
|
590
574
|
return new protocol_http_1.HttpRequest({
|
|
591
575
|
protocol,
|
|
592
576
|
hostname,
|
|
@@ -602,7 +586,7 @@ const se_ListAppAssessmentsCommand = async (input, context) => {
|
|
|
602
586
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
603
587
|
const headers = {};
|
|
604
588
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-assessments";
|
|
605
|
-
const query = map({
|
|
589
|
+
const query = (0, smithy_client_1.map)({
|
|
606
590
|
appArn: [, input.appArn],
|
|
607
591
|
assessmentName: [, input.assessmentName],
|
|
608
592
|
assessmentStatus: [
|
|
@@ -635,11 +619,11 @@ const se_ListAppComponentCompliancesCommand = async (input, context) => {
|
|
|
635
619
|
};
|
|
636
620
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-component-compliances";
|
|
637
621
|
let body;
|
|
638
|
-
body = JSON.stringify({
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
});
|
|
622
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
623
|
+
assessmentArn: [],
|
|
624
|
+
maxResults: [],
|
|
625
|
+
nextToken: [],
|
|
626
|
+
}));
|
|
643
627
|
return new protocol_http_1.HttpRequest({
|
|
644
628
|
protocol,
|
|
645
629
|
hostname,
|
|
@@ -658,11 +642,11 @@ const se_ListAppComponentRecommendationsCommand = async (input, context) => {
|
|
|
658
642
|
};
|
|
659
643
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-component-recommendations";
|
|
660
644
|
let body;
|
|
661
|
-
body = JSON.stringify({
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
});
|
|
645
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
646
|
+
assessmentArn: [],
|
|
647
|
+
maxResults: [],
|
|
648
|
+
nextToken: [],
|
|
649
|
+
}));
|
|
666
650
|
return new protocol_http_1.HttpRequest({
|
|
667
651
|
protocol,
|
|
668
652
|
hostname,
|
|
@@ -681,12 +665,12 @@ const se_ListAppInputSourcesCommand = async (input, context) => {
|
|
|
681
665
|
};
|
|
682
666
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-input-sources";
|
|
683
667
|
let body;
|
|
684
|
-
body = JSON.stringify({
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
});
|
|
668
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
669
|
+
appArn: [],
|
|
670
|
+
appVersion: [],
|
|
671
|
+
maxResults: [],
|
|
672
|
+
nextToken: [],
|
|
673
|
+
}));
|
|
690
674
|
return new protocol_http_1.HttpRequest({
|
|
691
675
|
protocol,
|
|
692
676
|
hostname,
|
|
@@ -702,7 +686,7 @@ const se_ListAppsCommand = async (input, context) => {
|
|
|
702
686
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
703
687
|
const headers = {};
|
|
704
688
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-apps";
|
|
705
|
-
const query = map({
|
|
689
|
+
const query = (0, smithy_client_1.map)({
|
|
706
690
|
nextToken: [, input.nextToken],
|
|
707
691
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
708
692
|
name: [, input.name],
|
|
@@ -728,12 +712,12 @@ const se_ListAppVersionAppComponentsCommand = async (input, context) => {
|
|
|
728
712
|
};
|
|
729
713
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-version-app-components";
|
|
730
714
|
let body;
|
|
731
|
-
body = JSON.stringify({
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
});
|
|
715
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
716
|
+
appArn: [],
|
|
717
|
+
appVersion: [],
|
|
718
|
+
maxResults: [],
|
|
719
|
+
nextToken: [],
|
|
720
|
+
}));
|
|
737
721
|
return new protocol_http_1.HttpRequest({
|
|
738
722
|
protocol,
|
|
739
723
|
hostname,
|
|
@@ -752,12 +736,12 @@ const se_ListAppVersionResourceMappingsCommand = async (input, context) => {
|
|
|
752
736
|
};
|
|
753
737
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-version-resource-mappings";
|
|
754
738
|
let body;
|
|
755
|
-
body = JSON.stringify({
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
});
|
|
739
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
740
|
+
appArn: [],
|
|
741
|
+
appVersion: [],
|
|
742
|
+
maxResults: [],
|
|
743
|
+
nextToken: [],
|
|
744
|
+
}));
|
|
761
745
|
return new protocol_http_1.HttpRequest({
|
|
762
746
|
protocol,
|
|
763
747
|
hostname,
|
|
@@ -776,13 +760,13 @@ const se_ListAppVersionResourcesCommand = async (input, context) => {
|
|
|
776
760
|
};
|
|
777
761
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-version-resources";
|
|
778
762
|
let body;
|
|
779
|
-
body = JSON.stringify({
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
});
|
|
763
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
764
|
+
appArn: [],
|
|
765
|
+
appVersion: [],
|
|
766
|
+
maxResults: [],
|
|
767
|
+
nextToken: [],
|
|
768
|
+
resolutionId: [],
|
|
769
|
+
}));
|
|
786
770
|
return new protocol_http_1.HttpRequest({
|
|
787
771
|
protocol,
|
|
788
772
|
hostname,
|
|
@@ -801,11 +785,11 @@ const se_ListAppVersionsCommand = async (input, context) => {
|
|
|
801
785
|
};
|
|
802
786
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-versions";
|
|
803
787
|
let body;
|
|
804
|
-
body = JSON.stringify({
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
});
|
|
788
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
789
|
+
appArn: [],
|
|
790
|
+
maxResults: [],
|
|
791
|
+
nextToken: [],
|
|
792
|
+
}));
|
|
809
793
|
return new protocol_http_1.HttpRequest({
|
|
810
794
|
protocol,
|
|
811
795
|
hostname,
|
|
@@ -821,7 +805,7 @@ const se_ListRecommendationTemplatesCommand = async (input, context) => {
|
|
|
821
805
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
822
806
|
const headers = {};
|
|
823
807
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-recommendation-templates";
|
|
824
|
-
const query = map({
|
|
808
|
+
const query = (0, smithy_client_1.map)({
|
|
825
809
|
assessmentArn: [, (0, smithy_client_1.expectNonNull)(input.assessmentArn, `assessmentArn`)],
|
|
826
810
|
reverseOrder: [() => input.reverseOrder !== void 0, () => input.reverseOrder.toString()],
|
|
827
811
|
status: [() => input.status !== void 0, () => (input.status || []).map((_entry) => _entry)],
|
|
@@ -847,7 +831,7 @@ const se_ListResiliencyPoliciesCommand = async (input, context) => {
|
|
|
847
831
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
848
832
|
const headers = {};
|
|
849
833
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-resiliency-policies";
|
|
850
|
-
const query = map({
|
|
834
|
+
const query = (0, smithy_client_1.map)({
|
|
851
835
|
policyName: [, input.policyName],
|
|
852
836
|
nextToken: [, input.nextToken],
|
|
853
837
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -872,11 +856,11 @@ const se_ListSopRecommendationsCommand = async (input, context) => {
|
|
|
872
856
|
};
|
|
873
857
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-sop-recommendations";
|
|
874
858
|
let body;
|
|
875
|
-
body = JSON.stringify({
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
});
|
|
859
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
860
|
+
assessmentArn: [],
|
|
861
|
+
maxResults: [],
|
|
862
|
+
nextToken: [],
|
|
863
|
+
}));
|
|
880
864
|
return new protocol_http_1.HttpRequest({
|
|
881
865
|
protocol,
|
|
882
866
|
hostname,
|
|
@@ -892,7 +876,7 @@ const se_ListSuggestedResiliencyPoliciesCommand = async (input, context) => {
|
|
|
892
876
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
893
877
|
const headers = {};
|
|
894
878
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-suggested-resiliency-policies";
|
|
895
|
-
const query = map({
|
|
879
|
+
const query = (0, smithy_client_1.map)({
|
|
896
880
|
nextToken: [, input.nextToken],
|
|
897
881
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
898
882
|
});
|
|
@@ -933,11 +917,11 @@ const se_ListTestRecommendationsCommand = async (input, context) => {
|
|
|
933
917
|
};
|
|
934
918
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-test-recommendations";
|
|
935
919
|
let body;
|
|
936
|
-
body = JSON.stringify({
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
});
|
|
920
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
921
|
+
assessmentArn: [],
|
|
922
|
+
maxResults: [],
|
|
923
|
+
nextToken: [],
|
|
924
|
+
}));
|
|
941
925
|
return new protocol_http_1.HttpRequest({
|
|
942
926
|
protocol,
|
|
943
927
|
hostname,
|
|
@@ -956,13 +940,13 @@ const se_ListUnsupportedAppVersionResourcesCommand = async (input, context) => {
|
|
|
956
940
|
};
|
|
957
941
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-unsupported-app-version-resources";
|
|
958
942
|
let body;
|
|
959
|
-
body = JSON.stringify({
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
});
|
|
943
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
944
|
+
appArn: [],
|
|
945
|
+
appVersion: [],
|
|
946
|
+
maxResults: [],
|
|
947
|
+
nextToken: [],
|
|
948
|
+
resolutionId: [],
|
|
949
|
+
}));
|
|
966
950
|
return new protocol_http_1.HttpRequest({
|
|
967
951
|
protocol,
|
|
968
952
|
hostname,
|
|
@@ -981,9 +965,9 @@ const se_PublishAppVersionCommand = async (input, context) => {
|
|
|
981
965
|
};
|
|
982
966
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/publish-app-version";
|
|
983
967
|
let body;
|
|
984
|
-
body = JSON.stringify({
|
|
985
|
-
|
|
986
|
-
});
|
|
968
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
969
|
+
appArn: [],
|
|
970
|
+
}));
|
|
987
971
|
return new protocol_http_1.HttpRequest({
|
|
988
972
|
protocol,
|
|
989
973
|
hostname,
|
|
@@ -1002,10 +986,10 @@ const se_PutDraftAppVersionTemplateCommand = async (input, context) => {
|
|
|
1002
986
|
};
|
|
1003
987
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-draft-app-version-template";
|
|
1004
988
|
let body;
|
|
1005
|
-
body = JSON.stringify({
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
});
|
|
989
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
990
|
+
appArn: [],
|
|
991
|
+
appTemplateBody: [],
|
|
992
|
+
}));
|
|
1009
993
|
return new protocol_http_1.HttpRequest({
|
|
1010
994
|
protocol,
|
|
1011
995
|
hostname,
|
|
@@ -1025,21 +1009,15 @@ const se_RemoveDraftAppVersionResourceMappingsCommand = async (input, context) =
|
|
|
1025
1009
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1026
1010
|
"/remove-draft-app-version-resource-mappings";
|
|
1027
1011
|
let body;
|
|
1028
|
-
body = JSON.stringify({
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
}),
|
|
1038
|
-
...(input.resourceNames != null && { resourceNames: se_EntityNameList(input.resourceNames, context) }),
|
|
1039
|
-
...(input.terraformSourceNames != null && {
|
|
1040
|
-
terraformSourceNames: se_String255List(input.terraformSourceNames, context),
|
|
1041
|
-
}),
|
|
1042
|
-
});
|
|
1012
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1013
|
+
appArn: [],
|
|
1014
|
+
appRegistryAppNames: (_) => (0, smithy_client_1._json)(_),
|
|
1015
|
+
eksSourceNames: (_) => (0, smithy_client_1._json)(_),
|
|
1016
|
+
logicalStackNames: (_) => (0, smithy_client_1._json)(_),
|
|
1017
|
+
resourceGroupNames: (_) => (0, smithy_client_1._json)(_),
|
|
1018
|
+
resourceNames: (_) => (0, smithy_client_1._json)(_),
|
|
1019
|
+
terraformSourceNames: (_) => (0, smithy_client_1._json)(_),
|
|
1020
|
+
}));
|
|
1043
1021
|
return new protocol_http_1.HttpRequest({
|
|
1044
1022
|
protocol,
|
|
1045
1023
|
hostname,
|
|
@@ -1058,10 +1036,10 @@ const se_ResolveAppVersionResourcesCommand = async (input, context) => {
|
|
|
1058
1036
|
};
|
|
1059
1037
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resolve-app-version-resources";
|
|
1060
1038
|
let body;
|
|
1061
|
-
body = JSON.stringify({
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
});
|
|
1039
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1040
|
+
appArn: [],
|
|
1041
|
+
appVersion: [],
|
|
1042
|
+
}));
|
|
1065
1043
|
return new protocol_http_1.HttpRequest({
|
|
1066
1044
|
protocol,
|
|
1067
1045
|
hostname,
|
|
@@ -1080,13 +1058,13 @@ const se_StartAppAssessmentCommand = async (input, context) => {
|
|
|
1080
1058
|
};
|
|
1081
1059
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-app-assessment";
|
|
1082
1060
|
let body;
|
|
1083
|
-
body = JSON.stringify({
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
clientToken:
|
|
1088
|
-
|
|
1089
|
-
});
|
|
1061
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1062
|
+
appArn: [],
|
|
1063
|
+
appVersion: [],
|
|
1064
|
+
assessmentName: [],
|
|
1065
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1066
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
1067
|
+
}));
|
|
1090
1068
|
return new protocol_http_1.HttpRequest({
|
|
1091
1069
|
protocol,
|
|
1092
1070
|
hostname,
|
|
@@ -1106,9 +1084,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
1106
1084
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
1107
1085
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1108
1086
|
let body;
|
|
1109
|
-
body = JSON.stringify({
|
|
1110
|
-
|
|
1111
|
-
});
|
|
1087
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1088
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
1089
|
+
}));
|
|
1112
1090
|
return new protocol_http_1.HttpRequest({
|
|
1113
1091
|
protocol,
|
|
1114
1092
|
hostname,
|
|
@@ -1125,7 +1103,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
1125
1103
|
const headers = {};
|
|
1126
1104
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
1127
1105
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1128
|
-
const query = map({
|
|
1106
|
+
const query = (0, smithy_client_1.map)({
|
|
1129
1107
|
tagKeys: [
|
|
1130
1108
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
1131
1109
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -1151,13 +1129,13 @@ const se_UpdateAppCommand = async (input, context) => {
|
|
|
1151
1129
|
};
|
|
1152
1130
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app";
|
|
1153
1131
|
let body;
|
|
1154
|
-
body = JSON.stringify({
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
});
|
|
1132
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1133
|
+
appArn: [],
|
|
1134
|
+
assessmentSchedule: [],
|
|
1135
|
+
clearResiliencyPolicyArn: [],
|
|
1136
|
+
description: [],
|
|
1137
|
+
policyArn: [],
|
|
1138
|
+
}));
|
|
1161
1139
|
return new protocol_http_1.HttpRequest({
|
|
1162
1140
|
protocol,
|
|
1163
1141
|
hostname,
|
|
@@ -1176,10 +1154,10 @@ const se_UpdateAppVersionCommand = async (input, context) => {
|
|
|
1176
1154
|
};
|
|
1177
1155
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version";
|
|
1178
1156
|
let body;
|
|
1179
|
-
body = JSON.stringify({
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
});
|
|
1157
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1158
|
+
additionalInfo: (_) => (0, smithy_client_1._json)(_),
|
|
1159
|
+
appArn: [],
|
|
1160
|
+
}));
|
|
1183
1161
|
return new protocol_http_1.HttpRequest({
|
|
1184
1162
|
protocol,
|
|
1185
1163
|
hostname,
|
|
@@ -1198,13 +1176,13 @@ const se_UpdateAppVersionAppComponentCommand = async (input, context) => {
|
|
|
1198
1176
|
};
|
|
1199
1177
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version-app-component";
|
|
1200
1178
|
let body;
|
|
1201
|
-
body = JSON.stringify({
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
});
|
|
1179
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1180
|
+
additionalInfo: (_) => (0, smithy_client_1._json)(_),
|
|
1181
|
+
appArn: [],
|
|
1182
|
+
id: [],
|
|
1183
|
+
name: [],
|
|
1184
|
+
type: [],
|
|
1185
|
+
}));
|
|
1208
1186
|
return new protocol_http_1.HttpRequest({
|
|
1209
1187
|
protocol,
|
|
1210
1188
|
hostname,
|
|
@@ -1223,20 +1201,18 @@ const se_UpdateAppVersionResourceCommand = async (input, context) => {
|
|
|
1223
1201
|
};
|
|
1224
1202
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version-resource";
|
|
1225
1203
|
let body;
|
|
1226
|
-
body = JSON.stringify({
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1239
|
-
});
|
|
1204
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1205
|
+
additionalInfo: (_) => (0, smithy_client_1._json)(_),
|
|
1206
|
+
appArn: [],
|
|
1207
|
+
appComponents: (_) => (0, smithy_client_1._json)(_),
|
|
1208
|
+
awsAccountId: [],
|
|
1209
|
+
awsRegion: [],
|
|
1210
|
+
excluded: [],
|
|
1211
|
+
logicalResourceId: (_) => (0, smithy_client_1._json)(_),
|
|
1212
|
+
physicalResourceId: [],
|
|
1213
|
+
resourceName: [],
|
|
1214
|
+
resourceType: [],
|
|
1215
|
+
}));
|
|
1240
1216
|
return new protocol_http_1.HttpRequest({
|
|
1241
1217
|
protocol,
|
|
1242
1218
|
hostname,
|
|
@@ -1255,14 +1231,14 @@ const se_UpdateResiliencyPolicyCommand = async (input, context) => {
|
|
|
1255
1231
|
};
|
|
1256
1232
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-resiliency-policy";
|
|
1257
1233
|
let body;
|
|
1258
|
-
body = JSON.stringify({
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
});
|
|
1234
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1235
|
+
dataLocationConstraint: [],
|
|
1236
|
+
policy: (_) => (0, smithy_client_1._json)(_),
|
|
1237
|
+
policyArn: [],
|
|
1238
|
+
policyDescription: [],
|
|
1239
|
+
policyName: [],
|
|
1240
|
+
tier: [],
|
|
1241
|
+
}));
|
|
1266
1242
|
return new protocol_http_1.HttpRequest({
|
|
1267
1243
|
protocol,
|
|
1268
1244
|
hostname,
|
|
@@ -1278,19 +1254,16 @@ const de_AddDraftAppVersionResourceMappingsCommand = async (output, context) =>
|
|
|
1278
1254
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1279
1255
|
return de_AddDraftAppVersionResourceMappingsCommandError(output, context);
|
|
1280
1256
|
}
|
|
1281
|
-
const contents = map({
|
|
1257
|
+
const contents = (0, smithy_client_1.map)({
|
|
1282
1258
|
$metadata: deserializeMetadata(output),
|
|
1283
1259
|
});
|
|
1284
1260
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
if (data.resourceMappings != null) {
|
|
1292
|
-
contents.resourceMappings = de_ResourceMappingList(data.resourceMappings, context);
|
|
1293
|
-
}
|
|
1261
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1262
|
+
appArn: smithy_client_1.expectString,
|
|
1263
|
+
appVersion: smithy_client_1.expectString,
|
|
1264
|
+
resourceMappings: smithy_client_1._json,
|
|
1265
|
+
});
|
|
1266
|
+
Object.assign(contents, doc);
|
|
1294
1267
|
return contents;
|
|
1295
1268
|
};
|
|
1296
1269
|
exports.de_AddDraftAppVersionResourceMappingsCommand = de_AddDraftAppVersionResourceMappingsCommand;
|
|
@@ -1321,10 +1294,9 @@ const de_AddDraftAppVersionResourceMappingsCommandError = async (output, context
|
|
|
1321
1294
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1322
1295
|
default:
|
|
1323
1296
|
const parsedBody = parsedOutput.body;
|
|
1324
|
-
|
|
1297
|
+
return throwDefaultError({
|
|
1325
1298
|
output,
|
|
1326
1299
|
parsedBody,
|
|
1327
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
1328
1300
|
errorCode,
|
|
1329
1301
|
});
|
|
1330
1302
|
}
|
|
@@ -1333,13 +1305,14 @@ const de_CreateAppCommand = async (output, context) => {
|
|
|
1333
1305
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1334
1306
|
return de_CreateAppCommandError(output, context);
|
|
1335
1307
|
}
|
|
1336
|
-
const contents = map({
|
|
1308
|
+
const contents = (0, smithy_client_1.map)({
|
|
1337
1309
|
$metadata: deserializeMetadata(output),
|
|
1338
1310
|
});
|
|
1339
1311
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
}
|
|
1312
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1313
|
+
app: (_) => de_App(_, context),
|
|
1314
|
+
});
|
|
1315
|
+
Object.assign(contents, doc);
|
|
1343
1316
|
return contents;
|
|
1344
1317
|
};
|
|
1345
1318
|
exports.de_CreateAppCommand = de_CreateAppCommand;
|
|
@@ -1373,10 +1346,9 @@ const de_CreateAppCommandError = async (output, context) => {
|
|
|
1373
1346
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1374
1347
|
default:
|
|
1375
1348
|
const parsedBody = parsedOutput.body;
|
|
1376
|
-
|
|
1349
|
+
return throwDefaultError({
|
|
1377
1350
|
output,
|
|
1378
1351
|
parsedBody,
|
|
1379
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
1380
1352
|
errorCode,
|
|
1381
1353
|
});
|
|
1382
1354
|
}
|
|
@@ -1385,19 +1357,16 @@ const de_CreateAppVersionAppComponentCommand = async (output, context) => {
|
|
|
1385
1357
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1386
1358
|
return de_CreateAppVersionAppComponentCommandError(output, context);
|
|
1387
1359
|
}
|
|
1388
|
-
const contents = map({
|
|
1360
|
+
const contents = (0, smithy_client_1.map)({
|
|
1389
1361
|
$metadata: deserializeMetadata(output),
|
|
1390
1362
|
});
|
|
1391
1363
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
if (data.appVersion != null) {
|
|
1399
|
-
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
1400
|
-
}
|
|
1364
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1365
|
+
appArn: smithy_client_1.expectString,
|
|
1366
|
+
appComponent: smithy_client_1._json,
|
|
1367
|
+
appVersion: smithy_client_1.expectString,
|
|
1368
|
+
});
|
|
1369
|
+
Object.assign(contents, doc);
|
|
1401
1370
|
return contents;
|
|
1402
1371
|
};
|
|
1403
1372
|
exports.de_CreateAppVersionAppComponentCommand = de_CreateAppVersionAppComponentCommand;
|
|
@@ -1431,10 +1400,9 @@ const de_CreateAppVersionAppComponentCommandError = async (output, context) => {
|
|
|
1431
1400
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1432
1401
|
default:
|
|
1433
1402
|
const parsedBody = parsedOutput.body;
|
|
1434
|
-
|
|
1403
|
+
return throwDefaultError({
|
|
1435
1404
|
output,
|
|
1436
1405
|
parsedBody,
|
|
1437
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
1438
1406
|
errorCode,
|
|
1439
1407
|
});
|
|
1440
1408
|
}
|
|
@@ -1443,19 +1411,16 @@ const de_CreateAppVersionResourceCommand = async (output, context) => {
|
|
|
1443
1411
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1444
1412
|
return de_CreateAppVersionResourceCommandError(output, context);
|
|
1445
1413
|
}
|
|
1446
|
-
const contents = map({
|
|
1414
|
+
const contents = (0, smithy_client_1.map)({
|
|
1447
1415
|
$metadata: deserializeMetadata(output),
|
|
1448
1416
|
});
|
|
1449
1417
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
if (data.physicalResource != null) {
|
|
1457
|
-
contents.physicalResource = de_PhysicalResource(data.physicalResource, context);
|
|
1458
|
-
}
|
|
1418
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1419
|
+
appArn: smithy_client_1.expectString,
|
|
1420
|
+
appVersion: smithy_client_1.expectString,
|
|
1421
|
+
physicalResource: smithy_client_1._json,
|
|
1422
|
+
});
|
|
1423
|
+
Object.assign(contents, doc);
|
|
1459
1424
|
return contents;
|
|
1460
1425
|
};
|
|
1461
1426
|
exports.de_CreateAppVersionResourceCommand = de_CreateAppVersionResourceCommand;
|
|
@@ -1489,10 +1454,9 @@ const de_CreateAppVersionResourceCommandError = async (output, context) => {
|
|
|
1489
1454
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1490
1455
|
default:
|
|
1491
1456
|
const parsedBody = parsedOutput.body;
|
|
1492
|
-
|
|
1457
|
+
return throwDefaultError({
|
|
1493
1458
|
output,
|
|
1494
1459
|
parsedBody,
|
|
1495
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
1496
1460
|
errorCode,
|
|
1497
1461
|
});
|
|
1498
1462
|
}
|
|
@@ -1501,13 +1465,14 @@ const de_CreateRecommendationTemplateCommand = async (output, context) => {
|
|
|
1501
1465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1502
1466
|
return de_CreateRecommendationTemplateCommandError(output, context);
|
|
1503
1467
|
}
|
|
1504
|
-
const contents = map({
|
|
1468
|
+
const contents = (0, smithy_client_1.map)({
|
|
1505
1469
|
$metadata: deserializeMetadata(output),
|
|
1506
1470
|
});
|
|
1507
1471
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
}
|
|
1472
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1473
|
+
recommendationTemplate: (_) => de_RecommendationTemplate(_, context),
|
|
1474
|
+
});
|
|
1475
|
+
Object.assign(contents, doc);
|
|
1511
1476
|
return contents;
|
|
1512
1477
|
};
|
|
1513
1478
|
exports.de_CreateRecommendationTemplateCommand = de_CreateRecommendationTemplateCommand;
|
|
@@ -1541,10 +1506,9 @@ const de_CreateRecommendationTemplateCommandError = async (output, context) => {
|
|
|
1541
1506
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1542
1507
|
default:
|
|
1543
1508
|
const parsedBody = parsedOutput.body;
|
|
1544
|
-
|
|
1509
|
+
return throwDefaultError({
|
|
1545
1510
|
output,
|
|
1546
1511
|
parsedBody,
|
|
1547
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
1548
1512
|
errorCode,
|
|
1549
1513
|
});
|
|
1550
1514
|
}
|
|
@@ -1553,13 +1517,14 @@ const de_CreateResiliencyPolicyCommand = async (output, context) => {
|
|
|
1553
1517
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1554
1518
|
return de_CreateResiliencyPolicyCommandError(output, context);
|
|
1555
1519
|
}
|
|
1556
|
-
const contents = map({
|
|
1520
|
+
const contents = (0, smithy_client_1.map)({
|
|
1557
1521
|
$metadata: deserializeMetadata(output),
|
|
1558
1522
|
});
|
|
1559
1523
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
}
|
|
1524
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1525
|
+
policy: (_) => de_ResiliencyPolicy(_, context),
|
|
1526
|
+
});
|
|
1527
|
+
Object.assign(contents, doc);
|
|
1563
1528
|
return contents;
|
|
1564
1529
|
};
|
|
1565
1530
|
exports.de_CreateResiliencyPolicyCommand = de_CreateResiliencyPolicyCommand;
|
|
@@ -1590,10 +1555,9 @@ const de_CreateResiliencyPolicyCommandError = async (output, context) => {
|
|
|
1590
1555
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1591
1556
|
default:
|
|
1592
1557
|
const parsedBody = parsedOutput.body;
|
|
1593
|
-
|
|
1558
|
+
return throwDefaultError({
|
|
1594
1559
|
output,
|
|
1595
1560
|
parsedBody,
|
|
1596
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
1597
1561
|
errorCode,
|
|
1598
1562
|
});
|
|
1599
1563
|
}
|
|
@@ -1602,13 +1566,14 @@ const de_DeleteAppCommand = async (output, context) => {
|
|
|
1602
1566
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1603
1567
|
return de_DeleteAppCommandError(output, context);
|
|
1604
1568
|
}
|
|
1605
|
-
const contents = map({
|
|
1569
|
+
const contents = (0, smithy_client_1.map)({
|
|
1606
1570
|
$metadata: deserializeMetadata(output),
|
|
1607
1571
|
});
|
|
1608
1572
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
}
|
|
1573
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1574
|
+
appArn: smithy_client_1.expectString,
|
|
1575
|
+
});
|
|
1576
|
+
Object.assign(contents, doc);
|
|
1612
1577
|
return contents;
|
|
1613
1578
|
};
|
|
1614
1579
|
exports.de_DeleteAppCommand = de_DeleteAppCommand;
|
|
@@ -1636,10 +1601,9 @@ const de_DeleteAppCommandError = async (output, context) => {
|
|
|
1636
1601
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1637
1602
|
default:
|
|
1638
1603
|
const parsedBody = parsedOutput.body;
|
|
1639
|
-
|
|
1604
|
+
return throwDefaultError({
|
|
1640
1605
|
output,
|
|
1641
1606
|
parsedBody,
|
|
1642
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
1643
1607
|
errorCode,
|
|
1644
1608
|
});
|
|
1645
1609
|
}
|
|
@@ -1648,16 +1612,15 @@ const de_DeleteAppAssessmentCommand = async (output, context) => {
|
|
|
1648
1612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1649
1613
|
return de_DeleteAppAssessmentCommandError(output, context);
|
|
1650
1614
|
}
|
|
1651
|
-
const contents = map({
|
|
1615
|
+
const contents = (0, smithy_client_1.map)({
|
|
1652
1616
|
$metadata: deserializeMetadata(output),
|
|
1653
1617
|
});
|
|
1654
1618
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
}
|
|
1619
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1620
|
+
assessmentArn: smithy_client_1.expectString,
|
|
1621
|
+
assessmentStatus: smithy_client_1.expectString,
|
|
1622
|
+
});
|
|
1623
|
+
Object.assign(contents, doc);
|
|
1661
1624
|
return contents;
|
|
1662
1625
|
};
|
|
1663
1626
|
exports.de_DeleteAppAssessmentCommand = de_DeleteAppAssessmentCommand;
|
|
@@ -1688,10 +1651,9 @@ const de_DeleteAppAssessmentCommandError = async (output, context) => {
|
|
|
1688
1651
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1689
1652
|
default:
|
|
1690
1653
|
const parsedBody = parsedOutput.body;
|
|
1691
|
-
|
|
1654
|
+
return throwDefaultError({
|
|
1692
1655
|
output,
|
|
1693
1656
|
parsedBody,
|
|
1694
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
1695
1657
|
errorCode,
|
|
1696
1658
|
});
|
|
1697
1659
|
}
|
|
@@ -1700,16 +1662,15 @@ const de_DeleteAppInputSourceCommand = async (output, context) => {
|
|
|
1700
1662
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1701
1663
|
return de_DeleteAppInputSourceCommandError(output, context);
|
|
1702
1664
|
}
|
|
1703
|
-
const contents = map({
|
|
1665
|
+
const contents = (0, smithy_client_1.map)({
|
|
1704
1666
|
$metadata: deserializeMetadata(output),
|
|
1705
1667
|
});
|
|
1706
1668
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
}
|
|
1669
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1670
|
+
appArn: smithy_client_1.expectString,
|
|
1671
|
+
appInputSource: smithy_client_1._json,
|
|
1672
|
+
});
|
|
1673
|
+
Object.assign(contents, doc);
|
|
1713
1674
|
return contents;
|
|
1714
1675
|
};
|
|
1715
1676
|
exports.de_DeleteAppInputSourceCommand = de_DeleteAppInputSourceCommand;
|
|
@@ -1740,10 +1701,9 @@ const de_DeleteAppInputSourceCommandError = async (output, context) => {
|
|
|
1740
1701
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1741
1702
|
default:
|
|
1742
1703
|
const parsedBody = parsedOutput.body;
|
|
1743
|
-
|
|
1704
|
+
return throwDefaultError({
|
|
1744
1705
|
output,
|
|
1745
1706
|
parsedBody,
|
|
1746
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
1747
1707
|
errorCode,
|
|
1748
1708
|
});
|
|
1749
1709
|
}
|
|
@@ -1752,19 +1712,16 @@ const de_DeleteAppVersionAppComponentCommand = async (output, context) => {
|
|
|
1752
1712
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1753
1713
|
return de_DeleteAppVersionAppComponentCommandError(output, context);
|
|
1754
1714
|
}
|
|
1755
|
-
const contents = map({
|
|
1715
|
+
const contents = (0, smithy_client_1.map)({
|
|
1756
1716
|
$metadata: deserializeMetadata(output),
|
|
1757
1717
|
});
|
|
1758
1718
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
if (data.appVersion != null) {
|
|
1766
|
-
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
1767
|
-
}
|
|
1719
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1720
|
+
appArn: smithy_client_1.expectString,
|
|
1721
|
+
appComponent: smithy_client_1._json,
|
|
1722
|
+
appVersion: smithy_client_1.expectString,
|
|
1723
|
+
});
|
|
1724
|
+
Object.assign(contents, doc);
|
|
1768
1725
|
return contents;
|
|
1769
1726
|
};
|
|
1770
1727
|
exports.de_DeleteAppVersionAppComponentCommand = de_DeleteAppVersionAppComponentCommand;
|
|
@@ -1795,10 +1752,9 @@ const de_DeleteAppVersionAppComponentCommandError = async (output, context) => {
|
|
|
1795
1752
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1796
1753
|
default:
|
|
1797
1754
|
const parsedBody = parsedOutput.body;
|
|
1798
|
-
|
|
1755
|
+
return throwDefaultError({
|
|
1799
1756
|
output,
|
|
1800
1757
|
parsedBody,
|
|
1801
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
1802
1758
|
errorCode,
|
|
1803
1759
|
});
|
|
1804
1760
|
}
|
|
@@ -1807,19 +1763,16 @@ const de_DeleteAppVersionResourceCommand = async (output, context) => {
|
|
|
1807
1763
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1808
1764
|
return de_DeleteAppVersionResourceCommandError(output, context);
|
|
1809
1765
|
}
|
|
1810
|
-
const contents = map({
|
|
1766
|
+
const contents = (0, smithy_client_1.map)({
|
|
1811
1767
|
$metadata: deserializeMetadata(output),
|
|
1812
1768
|
});
|
|
1813
1769
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
if (data.physicalResource != null) {
|
|
1821
|
-
contents.physicalResource = de_PhysicalResource(data.physicalResource, context);
|
|
1822
|
-
}
|
|
1770
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1771
|
+
appArn: smithy_client_1.expectString,
|
|
1772
|
+
appVersion: smithy_client_1.expectString,
|
|
1773
|
+
physicalResource: smithy_client_1._json,
|
|
1774
|
+
});
|
|
1775
|
+
Object.assign(contents, doc);
|
|
1823
1776
|
return contents;
|
|
1824
1777
|
};
|
|
1825
1778
|
exports.de_DeleteAppVersionResourceCommand = de_DeleteAppVersionResourceCommand;
|
|
@@ -1850,10 +1803,9 @@ const de_DeleteAppVersionResourceCommandError = async (output, context) => {
|
|
|
1850
1803
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1851
1804
|
default:
|
|
1852
1805
|
const parsedBody = parsedOutput.body;
|
|
1853
|
-
|
|
1806
|
+
return throwDefaultError({
|
|
1854
1807
|
output,
|
|
1855
1808
|
parsedBody,
|
|
1856
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
1857
1809
|
errorCode,
|
|
1858
1810
|
});
|
|
1859
1811
|
}
|
|
@@ -1862,16 +1814,15 @@ const de_DeleteRecommendationTemplateCommand = async (output, context) => {
|
|
|
1862
1814
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1863
1815
|
return de_DeleteRecommendationTemplateCommandError(output, context);
|
|
1864
1816
|
}
|
|
1865
|
-
const contents = map({
|
|
1817
|
+
const contents = (0, smithy_client_1.map)({
|
|
1866
1818
|
$metadata: deserializeMetadata(output),
|
|
1867
1819
|
});
|
|
1868
1820
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
}
|
|
1821
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1822
|
+
recommendationTemplateArn: smithy_client_1.expectString,
|
|
1823
|
+
status: smithy_client_1.expectString,
|
|
1824
|
+
});
|
|
1825
|
+
Object.assign(contents, doc);
|
|
1875
1826
|
return contents;
|
|
1876
1827
|
};
|
|
1877
1828
|
exports.de_DeleteRecommendationTemplateCommand = de_DeleteRecommendationTemplateCommand;
|
|
@@ -1899,10 +1850,9 @@ const de_DeleteRecommendationTemplateCommandError = async (output, context) => {
|
|
|
1899
1850
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1900
1851
|
default:
|
|
1901
1852
|
const parsedBody = parsedOutput.body;
|
|
1902
|
-
|
|
1853
|
+
return throwDefaultError({
|
|
1903
1854
|
output,
|
|
1904
1855
|
parsedBody,
|
|
1905
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
1906
1856
|
errorCode,
|
|
1907
1857
|
});
|
|
1908
1858
|
}
|
|
@@ -1911,13 +1861,14 @@ const de_DeleteResiliencyPolicyCommand = async (output, context) => {
|
|
|
1911
1861
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1912
1862
|
return de_DeleteResiliencyPolicyCommandError(output, context);
|
|
1913
1863
|
}
|
|
1914
|
-
const contents = map({
|
|
1864
|
+
const contents = (0, smithy_client_1.map)({
|
|
1915
1865
|
$metadata: deserializeMetadata(output),
|
|
1916
1866
|
});
|
|
1917
1867
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
}
|
|
1868
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1869
|
+
policyArn: smithy_client_1.expectString,
|
|
1870
|
+
});
|
|
1871
|
+
Object.assign(contents, doc);
|
|
1921
1872
|
return contents;
|
|
1922
1873
|
};
|
|
1923
1874
|
exports.de_DeleteResiliencyPolicyCommand = de_DeleteResiliencyPolicyCommand;
|
|
@@ -1948,10 +1899,9 @@ const de_DeleteResiliencyPolicyCommandError = async (output, context) => {
|
|
|
1948
1899
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1949
1900
|
default:
|
|
1950
1901
|
const parsedBody = parsedOutput.body;
|
|
1951
|
-
|
|
1902
|
+
return throwDefaultError({
|
|
1952
1903
|
output,
|
|
1953
1904
|
parsedBody,
|
|
1954
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
1955
1905
|
errorCode,
|
|
1956
1906
|
});
|
|
1957
1907
|
}
|
|
@@ -1960,13 +1910,14 @@ const de_DescribeAppCommand = async (output, context) => {
|
|
|
1960
1910
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1961
1911
|
return de_DescribeAppCommandError(output, context);
|
|
1962
1912
|
}
|
|
1963
|
-
const contents = map({
|
|
1913
|
+
const contents = (0, smithy_client_1.map)({
|
|
1964
1914
|
$metadata: deserializeMetadata(output),
|
|
1965
1915
|
});
|
|
1966
1916
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
}
|
|
1917
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1918
|
+
app: (_) => de_App(_, context),
|
|
1919
|
+
});
|
|
1920
|
+
Object.assign(contents, doc);
|
|
1970
1921
|
return contents;
|
|
1971
1922
|
};
|
|
1972
1923
|
exports.de_DescribeAppCommand = de_DescribeAppCommand;
|
|
@@ -1994,10 +1945,9 @@ const de_DescribeAppCommandError = async (output, context) => {
|
|
|
1994
1945
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1995
1946
|
default:
|
|
1996
1947
|
const parsedBody = parsedOutput.body;
|
|
1997
|
-
|
|
1948
|
+
return throwDefaultError({
|
|
1998
1949
|
output,
|
|
1999
1950
|
parsedBody,
|
|
2000
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2001
1951
|
errorCode,
|
|
2002
1952
|
});
|
|
2003
1953
|
}
|
|
@@ -2006,13 +1956,14 @@ const de_DescribeAppAssessmentCommand = async (output, context) => {
|
|
|
2006
1956
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2007
1957
|
return de_DescribeAppAssessmentCommandError(output, context);
|
|
2008
1958
|
}
|
|
2009
|
-
const contents = map({
|
|
1959
|
+
const contents = (0, smithy_client_1.map)({
|
|
2010
1960
|
$metadata: deserializeMetadata(output),
|
|
2011
1961
|
});
|
|
2012
1962
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
}
|
|
1963
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1964
|
+
assessment: (_) => de_AppAssessment(_, context),
|
|
1965
|
+
});
|
|
1966
|
+
Object.assign(contents, doc);
|
|
2016
1967
|
return contents;
|
|
2017
1968
|
};
|
|
2018
1969
|
exports.de_DescribeAppAssessmentCommand = de_DescribeAppAssessmentCommand;
|
|
@@ -2040,10 +1991,9 @@ const de_DescribeAppAssessmentCommandError = async (output, context) => {
|
|
|
2040
1991
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2041
1992
|
default:
|
|
2042
1993
|
const parsedBody = parsedOutput.body;
|
|
2043
|
-
|
|
1994
|
+
return throwDefaultError({
|
|
2044
1995
|
output,
|
|
2045
1996
|
parsedBody,
|
|
2046
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2047
1997
|
errorCode,
|
|
2048
1998
|
});
|
|
2049
1999
|
}
|
|
@@ -2052,19 +2002,16 @@ const de_DescribeAppVersionCommand = async (output, context) => {
|
|
|
2052
2002
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2053
2003
|
return de_DescribeAppVersionCommandError(output, context);
|
|
2054
2004
|
}
|
|
2055
|
-
const contents = map({
|
|
2005
|
+
const contents = (0, smithy_client_1.map)({
|
|
2056
2006
|
$metadata: deserializeMetadata(output),
|
|
2057
2007
|
});
|
|
2058
2008
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
if (data.appVersion != null) {
|
|
2066
|
-
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
2067
|
-
}
|
|
2009
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2010
|
+
additionalInfo: smithy_client_1._json,
|
|
2011
|
+
appArn: smithy_client_1.expectString,
|
|
2012
|
+
appVersion: smithy_client_1.expectString,
|
|
2013
|
+
});
|
|
2014
|
+
Object.assign(contents, doc);
|
|
2068
2015
|
return contents;
|
|
2069
2016
|
};
|
|
2070
2017
|
exports.de_DescribeAppVersionCommand = de_DescribeAppVersionCommand;
|
|
@@ -2092,10 +2039,9 @@ const de_DescribeAppVersionCommandError = async (output, context) => {
|
|
|
2092
2039
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2093
2040
|
default:
|
|
2094
2041
|
const parsedBody = parsedOutput.body;
|
|
2095
|
-
|
|
2042
|
+
return throwDefaultError({
|
|
2096
2043
|
output,
|
|
2097
2044
|
parsedBody,
|
|
2098
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2099
2045
|
errorCode,
|
|
2100
2046
|
});
|
|
2101
2047
|
}
|
|
@@ -2104,19 +2050,16 @@ const de_DescribeAppVersionAppComponentCommand = async (output, context) => {
|
|
|
2104
2050
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2105
2051
|
return de_DescribeAppVersionAppComponentCommandError(output, context);
|
|
2106
2052
|
}
|
|
2107
|
-
const contents = map({
|
|
2053
|
+
const contents = (0, smithy_client_1.map)({
|
|
2108
2054
|
$metadata: deserializeMetadata(output),
|
|
2109
2055
|
});
|
|
2110
2056
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
if (data.appVersion != null) {
|
|
2118
|
-
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
2119
|
-
}
|
|
2057
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2058
|
+
appArn: smithy_client_1.expectString,
|
|
2059
|
+
appComponent: smithy_client_1._json,
|
|
2060
|
+
appVersion: smithy_client_1.expectString,
|
|
2061
|
+
});
|
|
2062
|
+
Object.assign(contents, doc);
|
|
2120
2063
|
return contents;
|
|
2121
2064
|
};
|
|
2122
2065
|
exports.de_DescribeAppVersionAppComponentCommand = de_DescribeAppVersionAppComponentCommand;
|
|
@@ -2147,10 +2090,9 @@ const de_DescribeAppVersionAppComponentCommandError = async (output, context) =>
|
|
|
2147
2090
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2148
2091
|
default:
|
|
2149
2092
|
const parsedBody = parsedOutput.body;
|
|
2150
|
-
|
|
2093
|
+
return throwDefaultError({
|
|
2151
2094
|
output,
|
|
2152
2095
|
parsedBody,
|
|
2153
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2154
2096
|
errorCode,
|
|
2155
2097
|
});
|
|
2156
2098
|
}
|
|
@@ -2159,19 +2101,16 @@ const de_DescribeAppVersionResourceCommand = async (output, context) => {
|
|
|
2159
2101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2160
2102
|
return de_DescribeAppVersionResourceCommandError(output, context);
|
|
2161
2103
|
}
|
|
2162
|
-
const contents = map({
|
|
2104
|
+
const contents = (0, smithy_client_1.map)({
|
|
2163
2105
|
$metadata: deserializeMetadata(output),
|
|
2164
2106
|
});
|
|
2165
2107
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
if (data.physicalResource != null) {
|
|
2173
|
-
contents.physicalResource = de_PhysicalResource(data.physicalResource, context);
|
|
2174
|
-
}
|
|
2108
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2109
|
+
appArn: smithy_client_1.expectString,
|
|
2110
|
+
appVersion: smithy_client_1.expectString,
|
|
2111
|
+
physicalResource: smithy_client_1._json,
|
|
2112
|
+
});
|
|
2113
|
+
Object.assign(contents, doc);
|
|
2175
2114
|
return contents;
|
|
2176
2115
|
};
|
|
2177
2116
|
exports.de_DescribeAppVersionResourceCommand = de_DescribeAppVersionResourceCommand;
|
|
@@ -2202,10 +2141,9 @@ const de_DescribeAppVersionResourceCommandError = async (output, context) => {
|
|
|
2202
2141
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2203
2142
|
default:
|
|
2204
2143
|
const parsedBody = parsedOutput.body;
|
|
2205
|
-
|
|
2144
|
+
return throwDefaultError({
|
|
2206
2145
|
output,
|
|
2207
2146
|
parsedBody,
|
|
2208
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2209
2147
|
errorCode,
|
|
2210
2148
|
});
|
|
2211
2149
|
}
|
|
@@ -2214,25 +2152,18 @@ const de_DescribeAppVersionResourcesResolutionStatusCommand = async (output, con
|
|
|
2214
2152
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2215
2153
|
return de_DescribeAppVersionResourcesResolutionStatusCommandError(output, context);
|
|
2216
2154
|
}
|
|
2217
|
-
const contents = map({
|
|
2155
|
+
const contents = (0, smithy_client_1.map)({
|
|
2218
2156
|
$metadata: deserializeMetadata(output),
|
|
2219
2157
|
});
|
|
2220
2158
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
}
|
|
2230
|
-
if (data.resolutionId != null) {
|
|
2231
|
-
contents.resolutionId = (0, smithy_client_1.expectString)(data.resolutionId);
|
|
2232
|
-
}
|
|
2233
|
-
if (data.status != null) {
|
|
2234
|
-
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
2235
|
-
}
|
|
2159
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2160
|
+
appArn: smithy_client_1.expectString,
|
|
2161
|
+
appVersion: smithy_client_1.expectString,
|
|
2162
|
+
errorMessage: smithy_client_1.expectString,
|
|
2163
|
+
resolutionId: smithy_client_1.expectString,
|
|
2164
|
+
status: smithy_client_1.expectString,
|
|
2165
|
+
});
|
|
2166
|
+
Object.assign(contents, doc);
|
|
2236
2167
|
return contents;
|
|
2237
2168
|
};
|
|
2238
2169
|
exports.de_DescribeAppVersionResourcesResolutionStatusCommand = de_DescribeAppVersionResourcesResolutionStatusCommand;
|
|
@@ -2260,10 +2191,9 @@ const de_DescribeAppVersionResourcesResolutionStatusCommandError = async (output
|
|
|
2260
2191
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2261
2192
|
default:
|
|
2262
2193
|
const parsedBody = parsedOutput.body;
|
|
2263
|
-
|
|
2194
|
+
return throwDefaultError({
|
|
2264
2195
|
output,
|
|
2265
2196
|
parsedBody,
|
|
2266
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2267
2197
|
errorCode,
|
|
2268
2198
|
});
|
|
2269
2199
|
}
|
|
@@ -2272,19 +2202,16 @@ const de_DescribeAppVersionTemplateCommand = async (output, context) => {
|
|
|
2272
2202
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2273
2203
|
return de_DescribeAppVersionTemplateCommandError(output, context);
|
|
2274
2204
|
}
|
|
2275
|
-
const contents = map({
|
|
2205
|
+
const contents = (0, smithy_client_1.map)({
|
|
2276
2206
|
$metadata: deserializeMetadata(output),
|
|
2277
2207
|
});
|
|
2278
2208
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
if (data.appVersion != null) {
|
|
2286
|
-
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
2287
|
-
}
|
|
2209
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2210
|
+
appArn: smithy_client_1.expectString,
|
|
2211
|
+
appTemplateBody: smithy_client_1.expectString,
|
|
2212
|
+
appVersion: smithy_client_1.expectString,
|
|
2213
|
+
});
|
|
2214
|
+
Object.assign(contents, doc);
|
|
2288
2215
|
return contents;
|
|
2289
2216
|
};
|
|
2290
2217
|
exports.de_DescribeAppVersionTemplateCommand = de_DescribeAppVersionTemplateCommand;
|
|
@@ -2312,10 +2239,9 @@ const de_DescribeAppVersionTemplateCommandError = async (output, context) => {
|
|
|
2312
2239
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2313
2240
|
default:
|
|
2314
2241
|
const parsedBody = parsedOutput.body;
|
|
2315
|
-
|
|
2242
|
+
return throwDefaultError({
|
|
2316
2243
|
output,
|
|
2317
2244
|
parsedBody,
|
|
2318
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2319
2245
|
errorCode,
|
|
2320
2246
|
});
|
|
2321
2247
|
}
|
|
@@ -2324,25 +2250,18 @@ const de_DescribeDraftAppVersionResourcesImportStatusCommand = async (output, co
|
|
|
2324
2250
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2325
2251
|
return de_DescribeDraftAppVersionResourcesImportStatusCommandError(output, context);
|
|
2326
2252
|
}
|
|
2327
|
-
const contents = map({
|
|
2253
|
+
const contents = (0, smithy_client_1.map)({
|
|
2328
2254
|
$metadata: deserializeMetadata(output),
|
|
2329
2255
|
});
|
|
2330
2256
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
}
|
|
2340
|
-
if (data.status != null) {
|
|
2341
|
-
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
2342
|
-
}
|
|
2343
|
-
if (data.statusChangeTime != null) {
|
|
2344
|
-
contents.statusChangeTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.statusChangeTime)));
|
|
2345
|
-
}
|
|
2257
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2258
|
+
appArn: smithy_client_1.expectString,
|
|
2259
|
+
appVersion: smithy_client_1.expectString,
|
|
2260
|
+
errorMessage: smithy_client_1.expectString,
|
|
2261
|
+
status: smithy_client_1.expectString,
|
|
2262
|
+
statusChangeTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2263
|
+
});
|
|
2264
|
+
Object.assign(contents, doc);
|
|
2346
2265
|
return contents;
|
|
2347
2266
|
};
|
|
2348
2267
|
exports.de_DescribeDraftAppVersionResourcesImportStatusCommand = de_DescribeDraftAppVersionResourcesImportStatusCommand;
|
|
@@ -2370,10 +2289,9 @@ const de_DescribeDraftAppVersionResourcesImportStatusCommandError = async (outpu
|
|
|
2370
2289
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2371
2290
|
default:
|
|
2372
2291
|
const parsedBody = parsedOutput.body;
|
|
2373
|
-
|
|
2292
|
+
return throwDefaultError({
|
|
2374
2293
|
output,
|
|
2375
2294
|
parsedBody,
|
|
2376
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2377
2295
|
errorCode,
|
|
2378
2296
|
});
|
|
2379
2297
|
}
|
|
@@ -2382,13 +2300,14 @@ const de_DescribeResiliencyPolicyCommand = async (output, context) => {
|
|
|
2382
2300
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2383
2301
|
return de_DescribeResiliencyPolicyCommandError(output, context);
|
|
2384
2302
|
}
|
|
2385
|
-
const contents = map({
|
|
2303
|
+
const contents = (0, smithy_client_1.map)({
|
|
2386
2304
|
$metadata: deserializeMetadata(output),
|
|
2387
2305
|
});
|
|
2388
2306
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
}
|
|
2307
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2308
|
+
policy: (_) => de_ResiliencyPolicy(_, context),
|
|
2309
|
+
});
|
|
2310
|
+
Object.assign(contents, doc);
|
|
2392
2311
|
return contents;
|
|
2393
2312
|
};
|
|
2394
2313
|
exports.de_DescribeResiliencyPolicyCommand = de_DescribeResiliencyPolicyCommand;
|
|
@@ -2416,10 +2335,9 @@ const de_DescribeResiliencyPolicyCommandError = async (output, context) => {
|
|
|
2416
2335
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2417
2336
|
default:
|
|
2418
2337
|
const parsedBody = parsedOutput.body;
|
|
2419
|
-
|
|
2338
|
+
return throwDefaultError({
|
|
2420
2339
|
output,
|
|
2421
2340
|
parsedBody,
|
|
2422
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2423
2341
|
errorCode,
|
|
2424
2342
|
});
|
|
2425
2343
|
}
|
|
@@ -2428,28 +2346,19 @@ const de_ImportResourcesToDraftAppVersionCommand = async (output, context) => {
|
|
|
2428
2346
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2429
2347
|
return de_ImportResourcesToDraftAppVersionCommandError(output, context);
|
|
2430
2348
|
}
|
|
2431
|
-
const contents = map({
|
|
2349
|
+
const contents = (0, smithy_client_1.map)({
|
|
2432
2350
|
$metadata: deserializeMetadata(output),
|
|
2433
2351
|
});
|
|
2434
2352
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
if (data.sourceArns != null) {
|
|
2445
|
-
contents.sourceArns = de_ArnList(data.sourceArns, context);
|
|
2446
|
-
}
|
|
2447
|
-
if (data.status != null) {
|
|
2448
|
-
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
2449
|
-
}
|
|
2450
|
-
if (data.terraformSources != null) {
|
|
2451
|
-
contents.terraformSources = de_TerraformSourceList(data.terraformSources, context);
|
|
2452
|
-
}
|
|
2353
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2354
|
+
appArn: smithy_client_1.expectString,
|
|
2355
|
+
appVersion: smithy_client_1.expectString,
|
|
2356
|
+
eksSources: smithy_client_1._json,
|
|
2357
|
+
sourceArns: smithy_client_1._json,
|
|
2358
|
+
status: smithy_client_1.expectString,
|
|
2359
|
+
terraformSources: smithy_client_1._json,
|
|
2360
|
+
});
|
|
2361
|
+
Object.assign(contents, doc);
|
|
2453
2362
|
return contents;
|
|
2454
2363
|
};
|
|
2455
2364
|
exports.de_ImportResourcesToDraftAppVersionCommand = de_ImportResourcesToDraftAppVersionCommand;
|
|
@@ -2480,10 +2389,9 @@ const de_ImportResourcesToDraftAppVersionCommandError = async (output, context)
|
|
|
2480
2389
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2481
2390
|
default:
|
|
2482
2391
|
const parsedBody = parsedOutput.body;
|
|
2483
|
-
|
|
2392
|
+
return throwDefaultError({
|
|
2484
2393
|
output,
|
|
2485
2394
|
parsedBody,
|
|
2486
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2487
2395
|
errorCode,
|
|
2488
2396
|
});
|
|
2489
2397
|
}
|
|
@@ -2492,16 +2400,15 @@ const de_ListAlarmRecommendationsCommand = async (output, context) => {
|
|
|
2492
2400
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2493
2401
|
return de_ListAlarmRecommendationsCommandError(output, context);
|
|
2494
2402
|
}
|
|
2495
|
-
const contents = map({
|
|
2403
|
+
const contents = (0, smithy_client_1.map)({
|
|
2496
2404
|
$metadata: deserializeMetadata(output),
|
|
2497
2405
|
});
|
|
2498
2406
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
}
|
|
2407
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2408
|
+
alarmRecommendations: smithy_client_1._json,
|
|
2409
|
+
nextToken: smithy_client_1.expectString,
|
|
2410
|
+
});
|
|
2411
|
+
Object.assign(contents, doc);
|
|
2505
2412
|
return contents;
|
|
2506
2413
|
};
|
|
2507
2414
|
exports.de_ListAlarmRecommendationsCommand = de_ListAlarmRecommendationsCommand;
|
|
@@ -2529,10 +2436,9 @@ const de_ListAlarmRecommendationsCommandError = async (output, context) => {
|
|
|
2529
2436
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2530
2437
|
default:
|
|
2531
2438
|
const parsedBody = parsedOutput.body;
|
|
2532
|
-
|
|
2439
|
+
return throwDefaultError({
|
|
2533
2440
|
output,
|
|
2534
2441
|
parsedBody,
|
|
2535
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2536
2442
|
errorCode,
|
|
2537
2443
|
});
|
|
2538
2444
|
}
|
|
@@ -2541,16 +2447,15 @@ const de_ListAppAssessmentsCommand = async (output, context) => {
|
|
|
2541
2447
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2542
2448
|
return de_ListAppAssessmentsCommandError(output, context);
|
|
2543
2449
|
}
|
|
2544
|
-
const contents = map({
|
|
2450
|
+
const contents = (0, smithy_client_1.map)({
|
|
2545
2451
|
$metadata: deserializeMetadata(output),
|
|
2546
2452
|
});
|
|
2547
2453
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
}
|
|
2454
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2455
|
+
assessmentSummaries: (_) => de_AppAssessmentSummaryList(_, context),
|
|
2456
|
+
nextToken: smithy_client_1.expectString,
|
|
2457
|
+
});
|
|
2458
|
+
Object.assign(contents, doc);
|
|
2554
2459
|
return contents;
|
|
2555
2460
|
};
|
|
2556
2461
|
exports.de_ListAppAssessmentsCommand = de_ListAppAssessmentsCommand;
|
|
@@ -2578,10 +2483,9 @@ const de_ListAppAssessmentsCommandError = async (output, context) => {
|
|
|
2578
2483
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2579
2484
|
default:
|
|
2580
2485
|
const parsedBody = parsedOutput.body;
|
|
2581
|
-
|
|
2486
|
+
return throwDefaultError({
|
|
2582
2487
|
output,
|
|
2583
2488
|
parsedBody,
|
|
2584
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2585
2489
|
errorCode,
|
|
2586
2490
|
});
|
|
2587
2491
|
}
|
|
@@ -2590,16 +2494,15 @@ const de_ListAppComponentCompliancesCommand = async (output, context) => {
|
|
|
2590
2494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2591
2495
|
return de_ListAppComponentCompliancesCommandError(output, context);
|
|
2592
2496
|
}
|
|
2593
|
-
const contents = map({
|
|
2497
|
+
const contents = (0, smithy_client_1.map)({
|
|
2594
2498
|
$metadata: deserializeMetadata(output),
|
|
2595
2499
|
});
|
|
2596
2500
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
}
|
|
2501
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2502
|
+
componentCompliances: (_) => de_ComponentCompliancesList(_, context),
|
|
2503
|
+
nextToken: smithy_client_1.expectString,
|
|
2504
|
+
});
|
|
2505
|
+
Object.assign(contents, doc);
|
|
2603
2506
|
return contents;
|
|
2604
2507
|
};
|
|
2605
2508
|
exports.de_ListAppComponentCompliancesCommand = de_ListAppComponentCompliancesCommand;
|
|
@@ -2627,10 +2530,9 @@ const de_ListAppComponentCompliancesCommandError = async (output, context) => {
|
|
|
2627
2530
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2628
2531
|
default:
|
|
2629
2532
|
const parsedBody = parsedOutput.body;
|
|
2630
|
-
|
|
2533
|
+
return throwDefaultError({
|
|
2631
2534
|
output,
|
|
2632
2535
|
parsedBody,
|
|
2633
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2634
2536
|
errorCode,
|
|
2635
2537
|
});
|
|
2636
2538
|
}
|
|
@@ -2639,16 +2541,15 @@ const de_ListAppComponentRecommendationsCommand = async (output, context) => {
|
|
|
2639
2541
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2640
2542
|
return de_ListAppComponentRecommendationsCommandError(output, context);
|
|
2641
2543
|
}
|
|
2642
|
-
const contents = map({
|
|
2544
|
+
const contents = (0, smithy_client_1.map)({
|
|
2643
2545
|
$metadata: deserializeMetadata(output),
|
|
2644
2546
|
});
|
|
2645
2547
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
}
|
|
2548
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2549
|
+
componentRecommendations: (_) => de_ComponentRecommendationList(_, context),
|
|
2550
|
+
nextToken: smithy_client_1.expectString,
|
|
2551
|
+
});
|
|
2552
|
+
Object.assign(contents, doc);
|
|
2652
2553
|
return contents;
|
|
2653
2554
|
};
|
|
2654
2555
|
exports.de_ListAppComponentRecommendationsCommand = de_ListAppComponentRecommendationsCommand;
|
|
@@ -2676,10 +2577,9 @@ const de_ListAppComponentRecommendationsCommandError = async (output, context) =
|
|
|
2676
2577
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2677
2578
|
default:
|
|
2678
2579
|
const parsedBody = parsedOutput.body;
|
|
2679
|
-
|
|
2580
|
+
return throwDefaultError({
|
|
2680
2581
|
output,
|
|
2681
2582
|
parsedBody,
|
|
2682
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2683
2583
|
errorCode,
|
|
2684
2584
|
});
|
|
2685
2585
|
}
|
|
@@ -2688,16 +2588,15 @@ const de_ListAppInputSourcesCommand = async (output, context) => {
|
|
|
2688
2588
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2689
2589
|
return de_ListAppInputSourcesCommandError(output, context);
|
|
2690
2590
|
}
|
|
2691
|
-
const contents = map({
|
|
2591
|
+
const contents = (0, smithy_client_1.map)({
|
|
2692
2592
|
$metadata: deserializeMetadata(output),
|
|
2693
2593
|
});
|
|
2694
2594
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
}
|
|
2595
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2596
|
+
appInputSources: smithy_client_1._json,
|
|
2597
|
+
nextToken: smithy_client_1.expectString,
|
|
2598
|
+
});
|
|
2599
|
+
Object.assign(contents, doc);
|
|
2701
2600
|
return contents;
|
|
2702
2601
|
};
|
|
2703
2602
|
exports.de_ListAppInputSourcesCommand = de_ListAppInputSourcesCommand;
|
|
@@ -2725,10 +2624,9 @@ const de_ListAppInputSourcesCommandError = async (output, context) => {
|
|
|
2725
2624
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2726
2625
|
default:
|
|
2727
2626
|
const parsedBody = parsedOutput.body;
|
|
2728
|
-
|
|
2627
|
+
return throwDefaultError({
|
|
2729
2628
|
output,
|
|
2730
2629
|
parsedBody,
|
|
2731
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2732
2630
|
errorCode,
|
|
2733
2631
|
});
|
|
2734
2632
|
}
|
|
@@ -2737,16 +2635,15 @@ const de_ListAppsCommand = async (output, context) => {
|
|
|
2737
2635
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2738
2636
|
return de_ListAppsCommandError(output, context);
|
|
2739
2637
|
}
|
|
2740
|
-
const contents = map({
|
|
2638
|
+
const contents = (0, smithy_client_1.map)({
|
|
2741
2639
|
$metadata: deserializeMetadata(output),
|
|
2742
2640
|
});
|
|
2743
2641
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
}
|
|
2642
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2643
|
+
appSummaries: (_) => de_AppSummaryList(_, context),
|
|
2644
|
+
nextToken: smithy_client_1.expectString,
|
|
2645
|
+
});
|
|
2646
|
+
Object.assign(contents, doc);
|
|
2750
2647
|
return contents;
|
|
2751
2648
|
};
|
|
2752
2649
|
exports.de_ListAppsCommand = de_ListAppsCommand;
|
|
@@ -2771,10 +2668,9 @@ const de_ListAppsCommandError = async (output, context) => {
|
|
|
2771
2668
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2772
2669
|
default:
|
|
2773
2670
|
const parsedBody = parsedOutput.body;
|
|
2774
|
-
|
|
2671
|
+
return throwDefaultError({
|
|
2775
2672
|
output,
|
|
2776
2673
|
parsedBody,
|
|
2777
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2778
2674
|
errorCode,
|
|
2779
2675
|
});
|
|
2780
2676
|
}
|
|
@@ -2783,22 +2679,17 @@ const de_ListAppVersionAppComponentsCommand = async (output, context) => {
|
|
|
2783
2679
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2784
2680
|
return de_ListAppVersionAppComponentsCommandError(output, context);
|
|
2785
2681
|
}
|
|
2786
|
-
const contents = map({
|
|
2682
|
+
const contents = (0, smithy_client_1.map)({
|
|
2787
2683
|
$metadata: deserializeMetadata(output),
|
|
2788
2684
|
});
|
|
2789
2685
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
}
|
|
2796
|
-
|
|
2797
|
-
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
2798
|
-
}
|
|
2799
|
-
if (data.nextToken != null) {
|
|
2800
|
-
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2801
|
-
}
|
|
2686
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2687
|
+
appArn: smithy_client_1.expectString,
|
|
2688
|
+
appComponents: smithy_client_1._json,
|
|
2689
|
+
appVersion: smithy_client_1.expectString,
|
|
2690
|
+
nextToken: smithy_client_1.expectString,
|
|
2691
|
+
});
|
|
2692
|
+
Object.assign(contents, doc);
|
|
2802
2693
|
return contents;
|
|
2803
2694
|
};
|
|
2804
2695
|
exports.de_ListAppVersionAppComponentsCommand = de_ListAppVersionAppComponentsCommand;
|
|
@@ -2829,10 +2720,9 @@ const de_ListAppVersionAppComponentsCommandError = async (output, context) => {
|
|
|
2829
2720
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2830
2721
|
default:
|
|
2831
2722
|
const parsedBody = parsedOutput.body;
|
|
2832
|
-
|
|
2723
|
+
return throwDefaultError({
|
|
2833
2724
|
output,
|
|
2834
2725
|
parsedBody,
|
|
2835
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2836
2726
|
errorCode,
|
|
2837
2727
|
});
|
|
2838
2728
|
}
|
|
@@ -2841,16 +2731,15 @@ const de_ListAppVersionResourceMappingsCommand = async (output, context) => {
|
|
|
2841
2731
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2842
2732
|
return de_ListAppVersionResourceMappingsCommandError(output, context);
|
|
2843
2733
|
}
|
|
2844
|
-
const contents = map({
|
|
2734
|
+
const contents = (0, smithy_client_1.map)({
|
|
2845
2735
|
$metadata: deserializeMetadata(output),
|
|
2846
2736
|
});
|
|
2847
2737
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
}
|
|
2738
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2739
|
+
nextToken: smithy_client_1.expectString,
|
|
2740
|
+
resourceMappings: smithy_client_1._json,
|
|
2741
|
+
});
|
|
2742
|
+
Object.assign(contents, doc);
|
|
2854
2743
|
return contents;
|
|
2855
2744
|
};
|
|
2856
2745
|
exports.de_ListAppVersionResourceMappingsCommand = de_ListAppVersionResourceMappingsCommand;
|
|
@@ -2878,10 +2767,9 @@ const de_ListAppVersionResourceMappingsCommandError = async (output, context) =>
|
|
|
2878
2767
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2879
2768
|
default:
|
|
2880
2769
|
const parsedBody = parsedOutput.body;
|
|
2881
|
-
|
|
2770
|
+
return throwDefaultError({
|
|
2882
2771
|
output,
|
|
2883
2772
|
parsedBody,
|
|
2884
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2885
2773
|
errorCode,
|
|
2886
2774
|
});
|
|
2887
2775
|
}
|
|
@@ -2890,19 +2778,16 @@ const de_ListAppVersionResourcesCommand = async (output, context) => {
|
|
|
2890
2778
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2891
2779
|
return de_ListAppVersionResourcesCommandError(output, context);
|
|
2892
2780
|
}
|
|
2893
|
-
const contents = map({
|
|
2781
|
+
const contents = (0, smithy_client_1.map)({
|
|
2894
2782
|
$metadata: deserializeMetadata(output),
|
|
2895
2783
|
});
|
|
2896
2784
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
if (data.resolutionId != null) {
|
|
2904
|
-
contents.resolutionId = (0, smithy_client_1.expectString)(data.resolutionId);
|
|
2905
|
-
}
|
|
2785
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2786
|
+
nextToken: smithy_client_1.expectString,
|
|
2787
|
+
physicalResources: smithy_client_1._json,
|
|
2788
|
+
resolutionId: smithy_client_1.expectString,
|
|
2789
|
+
});
|
|
2790
|
+
Object.assign(contents, doc);
|
|
2906
2791
|
return contents;
|
|
2907
2792
|
};
|
|
2908
2793
|
exports.de_ListAppVersionResourcesCommand = de_ListAppVersionResourcesCommand;
|
|
@@ -2933,10 +2818,9 @@ const de_ListAppVersionResourcesCommandError = async (output, context) => {
|
|
|
2933
2818
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2934
2819
|
default:
|
|
2935
2820
|
const parsedBody = parsedOutput.body;
|
|
2936
|
-
|
|
2821
|
+
return throwDefaultError({
|
|
2937
2822
|
output,
|
|
2938
2823
|
parsedBody,
|
|
2939
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2940
2824
|
errorCode,
|
|
2941
2825
|
});
|
|
2942
2826
|
}
|
|
@@ -2945,16 +2829,15 @@ const de_ListAppVersionsCommand = async (output, context) => {
|
|
|
2945
2829
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2946
2830
|
return de_ListAppVersionsCommandError(output, context);
|
|
2947
2831
|
}
|
|
2948
|
-
const contents = map({
|
|
2832
|
+
const contents = (0, smithy_client_1.map)({
|
|
2949
2833
|
$metadata: deserializeMetadata(output),
|
|
2950
2834
|
});
|
|
2951
2835
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
}
|
|
2836
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2837
|
+
appVersions: smithy_client_1._json,
|
|
2838
|
+
nextToken: smithy_client_1.expectString,
|
|
2839
|
+
});
|
|
2840
|
+
Object.assign(contents, doc);
|
|
2958
2841
|
return contents;
|
|
2959
2842
|
};
|
|
2960
2843
|
exports.de_ListAppVersionsCommand = de_ListAppVersionsCommand;
|
|
@@ -2979,10 +2862,9 @@ const de_ListAppVersionsCommandError = async (output, context) => {
|
|
|
2979
2862
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2980
2863
|
default:
|
|
2981
2864
|
const parsedBody = parsedOutput.body;
|
|
2982
|
-
|
|
2865
|
+
return throwDefaultError({
|
|
2983
2866
|
output,
|
|
2984
2867
|
parsedBody,
|
|
2985
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
2986
2868
|
errorCode,
|
|
2987
2869
|
});
|
|
2988
2870
|
}
|
|
@@ -2991,16 +2873,15 @@ const de_ListRecommendationTemplatesCommand = async (output, context) => {
|
|
|
2991
2873
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2992
2874
|
return de_ListRecommendationTemplatesCommandError(output, context);
|
|
2993
2875
|
}
|
|
2994
|
-
const contents = map({
|
|
2876
|
+
const contents = (0, smithy_client_1.map)({
|
|
2995
2877
|
$metadata: deserializeMetadata(output),
|
|
2996
2878
|
});
|
|
2997
2879
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
}
|
|
2880
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2881
|
+
nextToken: smithy_client_1.expectString,
|
|
2882
|
+
recommendationTemplates: (_) => de_RecommendationTemplateList(_, context),
|
|
2883
|
+
});
|
|
2884
|
+
Object.assign(contents, doc);
|
|
3004
2885
|
return contents;
|
|
3005
2886
|
};
|
|
3006
2887
|
exports.de_ListRecommendationTemplatesCommand = de_ListRecommendationTemplatesCommand;
|
|
@@ -3025,10 +2906,9 @@ const de_ListRecommendationTemplatesCommandError = async (output, context) => {
|
|
|
3025
2906
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3026
2907
|
default:
|
|
3027
2908
|
const parsedBody = parsedOutput.body;
|
|
3028
|
-
|
|
2909
|
+
return throwDefaultError({
|
|
3029
2910
|
output,
|
|
3030
2911
|
parsedBody,
|
|
3031
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3032
2912
|
errorCode,
|
|
3033
2913
|
});
|
|
3034
2914
|
}
|
|
@@ -3037,16 +2917,15 @@ const de_ListResiliencyPoliciesCommand = async (output, context) => {
|
|
|
3037
2917
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3038
2918
|
return de_ListResiliencyPoliciesCommandError(output, context);
|
|
3039
2919
|
}
|
|
3040
|
-
const contents = map({
|
|
2920
|
+
const contents = (0, smithy_client_1.map)({
|
|
3041
2921
|
$metadata: deserializeMetadata(output),
|
|
3042
2922
|
});
|
|
3043
2923
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
}
|
|
2924
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2925
|
+
nextToken: smithy_client_1.expectString,
|
|
2926
|
+
resiliencyPolicies: (_) => de_ResiliencyPolicies(_, context),
|
|
2927
|
+
});
|
|
2928
|
+
Object.assign(contents, doc);
|
|
3050
2929
|
return contents;
|
|
3051
2930
|
};
|
|
3052
2931
|
exports.de_ListResiliencyPoliciesCommand = de_ListResiliencyPoliciesCommand;
|
|
@@ -3074,10 +2953,9 @@ const de_ListResiliencyPoliciesCommandError = async (output, context) => {
|
|
|
3074
2953
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3075
2954
|
default:
|
|
3076
2955
|
const parsedBody = parsedOutput.body;
|
|
3077
|
-
|
|
2956
|
+
return throwDefaultError({
|
|
3078
2957
|
output,
|
|
3079
2958
|
parsedBody,
|
|
3080
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3081
2959
|
errorCode,
|
|
3082
2960
|
});
|
|
3083
2961
|
}
|
|
@@ -3086,16 +2964,15 @@ const de_ListSopRecommendationsCommand = async (output, context) => {
|
|
|
3086
2964
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3087
2965
|
return de_ListSopRecommendationsCommandError(output, context);
|
|
3088
2966
|
}
|
|
3089
|
-
const contents = map({
|
|
2967
|
+
const contents = (0, smithy_client_1.map)({
|
|
3090
2968
|
$metadata: deserializeMetadata(output),
|
|
3091
2969
|
});
|
|
3092
2970
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
}
|
|
2971
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2972
|
+
nextToken: smithy_client_1.expectString,
|
|
2973
|
+
sopRecommendations: smithy_client_1._json,
|
|
2974
|
+
});
|
|
2975
|
+
Object.assign(contents, doc);
|
|
3099
2976
|
return contents;
|
|
3100
2977
|
};
|
|
3101
2978
|
exports.de_ListSopRecommendationsCommand = de_ListSopRecommendationsCommand;
|
|
@@ -3126,10 +3003,9 @@ const de_ListSopRecommendationsCommandError = async (output, context) => {
|
|
|
3126
3003
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3127
3004
|
default:
|
|
3128
3005
|
const parsedBody = parsedOutput.body;
|
|
3129
|
-
|
|
3006
|
+
return throwDefaultError({
|
|
3130
3007
|
output,
|
|
3131
3008
|
parsedBody,
|
|
3132
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3133
3009
|
errorCode,
|
|
3134
3010
|
});
|
|
3135
3011
|
}
|
|
@@ -3138,16 +3014,15 @@ const de_ListSuggestedResiliencyPoliciesCommand = async (output, context) => {
|
|
|
3138
3014
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3139
3015
|
return de_ListSuggestedResiliencyPoliciesCommandError(output, context);
|
|
3140
3016
|
}
|
|
3141
|
-
const contents = map({
|
|
3017
|
+
const contents = (0, smithy_client_1.map)({
|
|
3142
3018
|
$metadata: deserializeMetadata(output),
|
|
3143
3019
|
});
|
|
3144
3020
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
}
|
|
3021
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3022
|
+
nextToken: smithy_client_1.expectString,
|
|
3023
|
+
resiliencyPolicies: (_) => de_ResiliencyPolicies(_, context),
|
|
3024
|
+
});
|
|
3025
|
+
Object.assign(contents, doc);
|
|
3151
3026
|
return contents;
|
|
3152
3027
|
};
|
|
3153
3028
|
exports.de_ListSuggestedResiliencyPoliciesCommand = de_ListSuggestedResiliencyPoliciesCommand;
|
|
@@ -3175,10 +3050,9 @@ const de_ListSuggestedResiliencyPoliciesCommandError = async (output, context) =
|
|
|
3175
3050
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3176
3051
|
default:
|
|
3177
3052
|
const parsedBody = parsedOutput.body;
|
|
3178
|
-
|
|
3053
|
+
return throwDefaultError({
|
|
3179
3054
|
output,
|
|
3180
3055
|
parsedBody,
|
|
3181
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3182
3056
|
errorCode,
|
|
3183
3057
|
});
|
|
3184
3058
|
}
|
|
@@ -3187,13 +3061,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
3187
3061
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3188
3062
|
return de_ListTagsForResourceCommandError(output, context);
|
|
3189
3063
|
}
|
|
3190
|
-
const contents = map({
|
|
3064
|
+
const contents = (0, smithy_client_1.map)({
|
|
3191
3065
|
$metadata: deserializeMetadata(output),
|
|
3192
3066
|
});
|
|
3193
3067
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
}
|
|
3068
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3069
|
+
tags: smithy_client_1._json,
|
|
3070
|
+
});
|
|
3071
|
+
Object.assign(contents, doc);
|
|
3197
3072
|
return contents;
|
|
3198
3073
|
};
|
|
3199
3074
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -3221,10 +3096,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
3221
3096
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3222
3097
|
default:
|
|
3223
3098
|
const parsedBody = parsedOutput.body;
|
|
3224
|
-
|
|
3099
|
+
return throwDefaultError({
|
|
3225
3100
|
output,
|
|
3226
3101
|
parsedBody,
|
|
3227
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3228
3102
|
errorCode,
|
|
3229
3103
|
});
|
|
3230
3104
|
}
|
|
@@ -3233,16 +3107,15 @@ const de_ListTestRecommendationsCommand = async (output, context) => {
|
|
|
3233
3107
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3234
3108
|
return de_ListTestRecommendationsCommandError(output, context);
|
|
3235
3109
|
}
|
|
3236
|
-
const contents = map({
|
|
3110
|
+
const contents = (0, smithy_client_1.map)({
|
|
3237
3111
|
$metadata: deserializeMetadata(output),
|
|
3238
3112
|
});
|
|
3239
3113
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
}
|
|
3114
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3115
|
+
nextToken: smithy_client_1.expectString,
|
|
3116
|
+
testRecommendations: smithy_client_1._json,
|
|
3117
|
+
});
|
|
3118
|
+
Object.assign(contents, doc);
|
|
3246
3119
|
return contents;
|
|
3247
3120
|
};
|
|
3248
3121
|
exports.de_ListTestRecommendationsCommand = de_ListTestRecommendationsCommand;
|
|
@@ -3273,10 +3146,9 @@ const de_ListTestRecommendationsCommandError = async (output, context) => {
|
|
|
3273
3146
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3274
3147
|
default:
|
|
3275
3148
|
const parsedBody = parsedOutput.body;
|
|
3276
|
-
|
|
3149
|
+
return throwDefaultError({
|
|
3277
3150
|
output,
|
|
3278
3151
|
parsedBody,
|
|
3279
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3280
3152
|
errorCode,
|
|
3281
3153
|
});
|
|
3282
3154
|
}
|
|
@@ -3285,19 +3157,16 @@ const de_ListUnsupportedAppVersionResourcesCommand = async (output, context) =>
|
|
|
3285
3157
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3286
3158
|
return de_ListUnsupportedAppVersionResourcesCommandError(output, context);
|
|
3287
3159
|
}
|
|
3288
|
-
const contents = map({
|
|
3160
|
+
const contents = (0, smithy_client_1.map)({
|
|
3289
3161
|
$metadata: deserializeMetadata(output),
|
|
3290
3162
|
});
|
|
3291
3163
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
if (data.unsupportedResources != null) {
|
|
3299
|
-
contents.unsupportedResources = de_UnsupportedResourceList(data.unsupportedResources, context);
|
|
3300
|
-
}
|
|
3164
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3165
|
+
nextToken: smithy_client_1.expectString,
|
|
3166
|
+
resolutionId: smithy_client_1.expectString,
|
|
3167
|
+
unsupportedResources: smithy_client_1._json,
|
|
3168
|
+
});
|
|
3169
|
+
Object.assign(contents, doc);
|
|
3301
3170
|
return contents;
|
|
3302
3171
|
};
|
|
3303
3172
|
exports.de_ListUnsupportedAppVersionResourcesCommand = de_ListUnsupportedAppVersionResourcesCommand;
|
|
@@ -3328,10 +3197,9 @@ const de_ListUnsupportedAppVersionResourcesCommandError = async (output, context
|
|
|
3328
3197
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3329
3198
|
default:
|
|
3330
3199
|
const parsedBody = parsedOutput.body;
|
|
3331
|
-
|
|
3200
|
+
return throwDefaultError({
|
|
3332
3201
|
output,
|
|
3333
3202
|
parsedBody,
|
|
3334
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3335
3203
|
errorCode,
|
|
3336
3204
|
});
|
|
3337
3205
|
}
|
|
@@ -3340,16 +3208,15 @@ const de_PublishAppVersionCommand = async (output, context) => {
|
|
|
3340
3208
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3341
3209
|
return de_PublishAppVersionCommandError(output, context);
|
|
3342
3210
|
}
|
|
3343
|
-
const contents = map({
|
|
3211
|
+
const contents = (0, smithy_client_1.map)({
|
|
3344
3212
|
$metadata: deserializeMetadata(output),
|
|
3345
3213
|
});
|
|
3346
3214
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
}
|
|
3215
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3216
|
+
appArn: smithy_client_1.expectString,
|
|
3217
|
+
appVersion: smithy_client_1.expectString,
|
|
3218
|
+
});
|
|
3219
|
+
Object.assign(contents, doc);
|
|
3353
3220
|
return contents;
|
|
3354
3221
|
};
|
|
3355
3222
|
exports.de_PublishAppVersionCommand = de_PublishAppVersionCommand;
|
|
@@ -3380,10 +3247,9 @@ const de_PublishAppVersionCommandError = async (output, context) => {
|
|
|
3380
3247
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3381
3248
|
default:
|
|
3382
3249
|
const parsedBody = parsedOutput.body;
|
|
3383
|
-
|
|
3250
|
+
return throwDefaultError({
|
|
3384
3251
|
output,
|
|
3385
3252
|
parsedBody,
|
|
3386
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3387
3253
|
errorCode,
|
|
3388
3254
|
});
|
|
3389
3255
|
}
|
|
@@ -3392,16 +3258,15 @@ const de_PutDraftAppVersionTemplateCommand = async (output, context) => {
|
|
|
3392
3258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3393
3259
|
return de_PutDraftAppVersionTemplateCommandError(output, context);
|
|
3394
3260
|
}
|
|
3395
|
-
const contents = map({
|
|
3261
|
+
const contents = (0, smithy_client_1.map)({
|
|
3396
3262
|
$metadata: deserializeMetadata(output),
|
|
3397
3263
|
});
|
|
3398
3264
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
}
|
|
3265
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3266
|
+
appArn: smithy_client_1.expectString,
|
|
3267
|
+
appVersion: smithy_client_1.expectString,
|
|
3268
|
+
});
|
|
3269
|
+
Object.assign(contents, doc);
|
|
3405
3270
|
return contents;
|
|
3406
3271
|
};
|
|
3407
3272
|
exports.de_PutDraftAppVersionTemplateCommand = de_PutDraftAppVersionTemplateCommand;
|
|
@@ -3432,10 +3297,9 @@ const de_PutDraftAppVersionTemplateCommandError = async (output, context) => {
|
|
|
3432
3297
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3433
3298
|
default:
|
|
3434
3299
|
const parsedBody = parsedOutput.body;
|
|
3435
|
-
|
|
3300
|
+
return throwDefaultError({
|
|
3436
3301
|
output,
|
|
3437
3302
|
parsedBody,
|
|
3438
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3439
3303
|
errorCode,
|
|
3440
3304
|
});
|
|
3441
3305
|
}
|
|
@@ -3444,16 +3308,15 @@ const de_RemoveDraftAppVersionResourceMappingsCommand = async (output, context)
|
|
|
3444
3308
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3445
3309
|
return de_RemoveDraftAppVersionResourceMappingsCommandError(output, context);
|
|
3446
3310
|
}
|
|
3447
|
-
const contents = map({
|
|
3311
|
+
const contents = (0, smithy_client_1.map)({
|
|
3448
3312
|
$metadata: deserializeMetadata(output),
|
|
3449
3313
|
});
|
|
3450
3314
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
}
|
|
3315
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3316
|
+
appArn: smithy_client_1.expectString,
|
|
3317
|
+
appVersion: smithy_client_1.expectString,
|
|
3318
|
+
});
|
|
3319
|
+
Object.assign(contents, doc);
|
|
3457
3320
|
return contents;
|
|
3458
3321
|
};
|
|
3459
3322
|
exports.de_RemoveDraftAppVersionResourceMappingsCommand = de_RemoveDraftAppVersionResourceMappingsCommand;
|
|
@@ -3484,10 +3347,9 @@ const de_RemoveDraftAppVersionResourceMappingsCommandError = async (output, cont
|
|
|
3484
3347
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3485
3348
|
default:
|
|
3486
3349
|
const parsedBody = parsedOutput.body;
|
|
3487
|
-
|
|
3350
|
+
return throwDefaultError({
|
|
3488
3351
|
output,
|
|
3489
3352
|
parsedBody,
|
|
3490
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3491
3353
|
errorCode,
|
|
3492
3354
|
});
|
|
3493
3355
|
}
|
|
@@ -3496,22 +3358,17 @@ const de_ResolveAppVersionResourcesCommand = async (output, context) => {
|
|
|
3496
3358
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3497
3359
|
return de_ResolveAppVersionResourcesCommandError(output, context);
|
|
3498
3360
|
}
|
|
3499
|
-
const contents = map({
|
|
3361
|
+
const contents = (0, smithy_client_1.map)({
|
|
3500
3362
|
$metadata: deserializeMetadata(output),
|
|
3501
3363
|
});
|
|
3502
3364
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
}
|
|
3509
|
-
|
|
3510
|
-
contents.resolutionId = (0, smithy_client_1.expectString)(data.resolutionId);
|
|
3511
|
-
}
|
|
3512
|
-
if (data.status != null) {
|
|
3513
|
-
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
3514
|
-
}
|
|
3365
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3366
|
+
appArn: smithy_client_1.expectString,
|
|
3367
|
+
appVersion: smithy_client_1.expectString,
|
|
3368
|
+
resolutionId: smithy_client_1.expectString,
|
|
3369
|
+
status: smithy_client_1.expectString,
|
|
3370
|
+
});
|
|
3371
|
+
Object.assign(contents, doc);
|
|
3515
3372
|
return contents;
|
|
3516
3373
|
};
|
|
3517
3374
|
exports.de_ResolveAppVersionResourcesCommand = de_ResolveAppVersionResourcesCommand;
|
|
@@ -3542,10 +3399,9 @@ const de_ResolveAppVersionResourcesCommandError = async (output, context) => {
|
|
|
3542
3399
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3543
3400
|
default:
|
|
3544
3401
|
const parsedBody = parsedOutput.body;
|
|
3545
|
-
|
|
3402
|
+
return throwDefaultError({
|
|
3546
3403
|
output,
|
|
3547
3404
|
parsedBody,
|
|
3548
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3549
3405
|
errorCode,
|
|
3550
3406
|
});
|
|
3551
3407
|
}
|
|
@@ -3554,13 +3410,14 @@ const de_StartAppAssessmentCommand = async (output, context) => {
|
|
|
3554
3410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3555
3411
|
return de_StartAppAssessmentCommandError(output, context);
|
|
3556
3412
|
}
|
|
3557
|
-
const contents = map({
|
|
3413
|
+
const contents = (0, smithy_client_1.map)({
|
|
3558
3414
|
$metadata: deserializeMetadata(output),
|
|
3559
3415
|
});
|
|
3560
3416
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
}
|
|
3417
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3418
|
+
assessment: (_) => de_AppAssessment(_, context),
|
|
3419
|
+
});
|
|
3420
|
+
Object.assign(contents, doc);
|
|
3564
3421
|
return contents;
|
|
3565
3422
|
};
|
|
3566
3423
|
exports.de_StartAppAssessmentCommand = de_StartAppAssessmentCommand;
|
|
@@ -3594,10 +3451,9 @@ const de_StartAppAssessmentCommandError = async (output, context) => {
|
|
|
3594
3451
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3595
3452
|
default:
|
|
3596
3453
|
const parsedBody = parsedOutput.body;
|
|
3597
|
-
|
|
3454
|
+
return throwDefaultError({
|
|
3598
3455
|
output,
|
|
3599
3456
|
parsedBody,
|
|
3600
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3601
3457
|
errorCode,
|
|
3602
3458
|
});
|
|
3603
3459
|
}
|
|
@@ -3606,7 +3462,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
3606
3462
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3607
3463
|
return de_TagResourceCommandError(output, context);
|
|
3608
3464
|
}
|
|
3609
|
-
const contents = map({
|
|
3465
|
+
const contents = (0, smithy_client_1.map)({
|
|
3610
3466
|
$metadata: deserializeMetadata(output),
|
|
3611
3467
|
});
|
|
3612
3468
|
await collectBody(output.body, context);
|
|
@@ -3637,10 +3493,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
3637
3493
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3638
3494
|
default:
|
|
3639
3495
|
const parsedBody = parsedOutput.body;
|
|
3640
|
-
|
|
3496
|
+
return throwDefaultError({
|
|
3641
3497
|
output,
|
|
3642
3498
|
parsedBody,
|
|
3643
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3644
3499
|
errorCode,
|
|
3645
3500
|
});
|
|
3646
3501
|
}
|
|
@@ -3649,7 +3504,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
3649
3504
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3650
3505
|
return de_UntagResourceCommandError(output, context);
|
|
3651
3506
|
}
|
|
3652
|
-
const contents = map({
|
|
3507
|
+
const contents = (0, smithy_client_1.map)({
|
|
3653
3508
|
$metadata: deserializeMetadata(output),
|
|
3654
3509
|
});
|
|
3655
3510
|
await collectBody(output.body, context);
|
|
@@ -3680,10 +3535,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
3680
3535
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3681
3536
|
default:
|
|
3682
3537
|
const parsedBody = parsedOutput.body;
|
|
3683
|
-
|
|
3538
|
+
return throwDefaultError({
|
|
3684
3539
|
output,
|
|
3685
3540
|
parsedBody,
|
|
3686
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3687
3541
|
errorCode,
|
|
3688
3542
|
});
|
|
3689
3543
|
}
|
|
@@ -3692,13 +3546,14 @@ const de_UpdateAppCommand = async (output, context) => {
|
|
|
3692
3546
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3693
3547
|
return de_UpdateAppCommandError(output, context);
|
|
3694
3548
|
}
|
|
3695
|
-
const contents = map({
|
|
3549
|
+
const contents = (0, smithy_client_1.map)({
|
|
3696
3550
|
$metadata: deserializeMetadata(output),
|
|
3697
3551
|
});
|
|
3698
3552
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
}
|
|
3553
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3554
|
+
app: (_) => de_App(_, context),
|
|
3555
|
+
});
|
|
3556
|
+
Object.assign(contents, doc);
|
|
3702
3557
|
return contents;
|
|
3703
3558
|
};
|
|
3704
3559
|
exports.de_UpdateAppCommand = de_UpdateAppCommand;
|
|
@@ -3729,10 +3584,9 @@ const de_UpdateAppCommandError = async (output, context) => {
|
|
|
3729
3584
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3730
3585
|
default:
|
|
3731
3586
|
const parsedBody = parsedOutput.body;
|
|
3732
|
-
|
|
3587
|
+
return throwDefaultError({
|
|
3733
3588
|
output,
|
|
3734
3589
|
parsedBody,
|
|
3735
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3736
3590
|
errorCode,
|
|
3737
3591
|
});
|
|
3738
3592
|
}
|
|
@@ -3741,19 +3595,16 @@ const de_UpdateAppVersionCommand = async (output, context) => {
|
|
|
3741
3595
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3742
3596
|
return de_UpdateAppVersionCommandError(output, context);
|
|
3743
3597
|
}
|
|
3744
|
-
const contents = map({
|
|
3598
|
+
const contents = (0, smithy_client_1.map)({
|
|
3745
3599
|
$metadata: deserializeMetadata(output),
|
|
3746
3600
|
});
|
|
3747
3601
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
if (data.appVersion != null) {
|
|
3755
|
-
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
3756
|
-
}
|
|
3602
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3603
|
+
additionalInfo: smithy_client_1._json,
|
|
3604
|
+
appArn: smithy_client_1.expectString,
|
|
3605
|
+
appVersion: smithy_client_1.expectString,
|
|
3606
|
+
});
|
|
3607
|
+
Object.assign(contents, doc);
|
|
3757
3608
|
return contents;
|
|
3758
3609
|
};
|
|
3759
3610
|
exports.de_UpdateAppVersionCommand = de_UpdateAppVersionCommand;
|
|
@@ -3784,10 +3635,9 @@ const de_UpdateAppVersionCommandError = async (output, context) => {
|
|
|
3784
3635
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3785
3636
|
default:
|
|
3786
3637
|
const parsedBody = parsedOutput.body;
|
|
3787
|
-
|
|
3638
|
+
return throwDefaultError({
|
|
3788
3639
|
output,
|
|
3789
3640
|
parsedBody,
|
|
3790
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3791
3641
|
errorCode,
|
|
3792
3642
|
});
|
|
3793
3643
|
}
|
|
@@ -3796,19 +3646,16 @@ const de_UpdateAppVersionAppComponentCommand = async (output, context) => {
|
|
|
3796
3646
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3797
3647
|
return de_UpdateAppVersionAppComponentCommandError(output, context);
|
|
3798
3648
|
}
|
|
3799
|
-
const contents = map({
|
|
3649
|
+
const contents = (0, smithy_client_1.map)({
|
|
3800
3650
|
$metadata: deserializeMetadata(output),
|
|
3801
3651
|
});
|
|
3802
3652
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
if (data.appVersion != null) {
|
|
3810
|
-
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
3811
|
-
}
|
|
3653
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3654
|
+
appArn: smithy_client_1.expectString,
|
|
3655
|
+
appComponent: smithy_client_1._json,
|
|
3656
|
+
appVersion: smithy_client_1.expectString,
|
|
3657
|
+
});
|
|
3658
|
+
Object.assign(contents, doc);
|
|
3812
3659
|
return contents;
|
|
3813
3660
|
};
|
|
3814
3661
|
exports.de_UpdateAppVersionAppComponentCommand = de_UpdateAppVersionAppComponentCommand;
|
|
@@ -3839,10 +3686,9 @@ const de_UpdateAppVersionAppComponentCommandError = async (output, context) => {
|
|
|
3839
3686
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3840
3687
|
default:
|
|
3841
3688
|
const parsedBody = parsedOutput.body;
|
|
3842
|
-
|
|
3689
|
+
return throwDefaultError({
|
|
3843
3690
|
output,
|
|
3844
3691
|
parsedBody,
|
|
3845
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3846
3692
|
errorCode,
|
|
3847
3693
|
});
|
|
3848
3694
|
}
|
|
@@ -3851,19 +3697,16 @@ const de_UpdateAppVersionResourceCommand = async (output, context) => {
|
|
|
3851
3697
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3852
3698
|
return de_UpdateAppVersionResourceCommandError(output, context);
|
|
3853
3699
|
}
|
|
3854
|
-
const contents = map({
|
|
3700
|
+
const contents = (0, smithy_client_1.map)({
|
|
3855
3701
|
$metadata: deserializeMetadata(output),
|
|
3856
3702
|
});
|
|
3857
3703
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
if (data.physicalResource != null) {
|
|
3865
|
-
contents.physicalResource = de_PhysicalResource(data.physicalResource, context);
|
|
3866
|
-
}
|
|
3704
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3705
|
+
appArn: smithy_client_1.expectString,
|
|
3706
|
+
appVersion: smithy_client_1.expectString,
|
|
3707
|
+
physicalResource: smithy_client_1._json,
|
|
3708
|
+
});
|
|
3709
|
+
Object.assign(contents, doc);
|
|
3867
3710
|
return contents;
|
|
3868
3711
|
};
|
|
3869
3712
|
exports.de_UpdateAppVersionResourceCommand = de_UpdateAppVersionResourceCommand;
|
|
@@ -3897,10 +3740,9 @@ const de_UpdateAppVersionResourceCommandError = async (output, context) => {
|
|
|
3897
3740
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3898
3741
|
default:
|
|
3899
3742
|
const parsedBody = parsedOutput.body;
|
|
3900
|
-
|
|
3743
|
+
return throwDefaultError({
|
|
3901
3744
|
output,
|
|
3902
3745
|
parsedBody,
|
|
3903
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3904
3746
|
errorCode,
|
|
3905
3747
|
});
|
|
3906
3748
|
}
|
|
@@ -3909,13 +3751,14 @@ const de_UpdateResiliencyPolicyCommand = async (output, context) => {
|
|
|
3909
3751
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3910
3752
|
return de_UpdateResiliencyPolicyCommandError(output, context);
|
|
3911
3753
|
}
|
|
3912
|
-
const contents = map({
|
|
3754
|
+
const contents = (0, smithy_client_1.map)({
|
|
3913
3755
|
$metadata: deserializeMetadata(output),
|
|
3914
3756
|
});
|
|
3915
3757
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
}
|
|
3758
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3759
|
+
policy: (_) => de_ResiliencyPolicy(_, context),
|
|
3760
|
+
});
|
|
3761
|
+
Object.assign(contents, doc);
|
|
3919
3762
|
return contents;
|
|
3920
3763
|
};
|
|
3921
3764
|
exports.de_UpdateResiliencyPolicyCommand = de_UpdateResiliencyPolicyCommand;
|
|
@@ -3946,21 +3789,21 @@ const de_UpdateResiliencyPolicyCommandError = async (output, context) => {
|
|
|
3946
3789
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3947
3790
|
default:
|
|
3948
3791
|
const parsedBody = parsedOutput.body;
|
|
3949
|
-
|
|
3792
|
+
return throwDefaultError({
|
|
3950
3793
|
output,
|
|
3951
3794
|
parsedBody,
|
|
3952
|
-
exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
|
|
3953
3795
|
errorCode,
|
|
3954
3796
|
});
|
|
3955
3797
|
}
|
|
3956
3798
|
};
|
|
3957
|
-
const
|
|
3799
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ResiliencehubServiceException_1.ResiliencehubServiceException);
|
|
3958
3800
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3959
|
-
const contents = map({});
|
|
3801
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3960
3802
|
const data = parsedOutput.body;
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
}
|
|
3803
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3804
|
+
message: smithy_client_1.expectString,
|
|
3805
|
+
});
|
|
3806
|
+
Object.assign(contents, doc);
|
|
3964
3807
|
const exception = new models_0_1.AccessDeniedException({
|
|
3965
3808
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3966
3809
|
...contents,
|
|
@@ -3968,17 +3811,14 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
3968
3811
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3969
3812
|
};
|
|
3970
3813
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3971
|
-
const contents = map({});
|
|
3814
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3972
3815
|
const data = parsedOutput.body;
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
if (data.resourceType != null) {
|
|
3980
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
3981
|
-
}
|
|
3816
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3817
|
+
message: smithy_client_1.expectString,
|
|
3818
|
+
resourceId: smithy_client_1.expectString,
|
|
3819
|
+
resourceType: smithy_client_1.expectString,
|
|
3820
|
+
});
|
|
3821
|
+
Object.assign(contents, doc);
|
|
3982
3822
|
const exception = new models_0_1.ConflictException({
|
|
3983
3823
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3984
3824
|
...contents,
|
|
@@ -3986,11 +3826,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
3986
3826
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3987
3827
|
};
|
|
3988
3828
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
3989
|
-
const contents = map({});
|
|
3829
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3990
3830
|
const data = parsedOutput.body;
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
}
|
|
3831
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3832
|
+
message: smithy_client_1.expectString,
|
|
3833
|
+
});
|
|
3834
|
+
Object.assign(contents, doc);
|
|
3994
3835
|
const exception = new models_0_1.InternalServerException({
|
|
3995
3836
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3996
3837
|
...contents,
|
|
@@ -3998,17 +3839,14 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
3998
3839
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3999
3840
|
};
|
|
4000
3841
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
4001
|
-
const contents = map({});
|
|
3842
|
+
const contents = (0, smithy_client_1.map)({});
|
|
4002
3843
|
const data = parsedOutput.body;
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
if (data.resourceType != null) {
|
|
4010
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
4011
|
-
}
|
|
3844
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3845
|
+
message: smithy_client_1.expectString,
|
|
3846
|
+
resourceId: smithy_client_1.expectString,
|
|
3847
|
+
resourceType: smithy_client_1.expectString,
|
|
3848
|
+
});
|
|
3849
|
+
Object.assign(contents, doc);
|
|
4012
3850
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
4013
3851
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4014
3852
|
...contents,
|
|
@@ -4016,11 +3854,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
4016
3854
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4017
3855
|
};
|
|
4018
3856
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
4019
|
-
const contents = map({});
|
|
3857
|
+
const contents = (0, smithy_client_1.map)({});
|
|
4020
3858
|
const data = parsedOutput.body;
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
}
|
|
3859
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3860
|
+
message: smithy_client_1.expectString,
|
|
3861
|
+
});
|
|
3862
|
+
Object.assign(contents, doc);
|
|
4024
3863
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
4025
3864
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4026
3865
|
...contents,
|
|
@@ -4028,14 +3867,13 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
4028
3867
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4029
3868
|
};
|
|
4030
3869
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
4031
|
-
const contents = map({});
|
|
3870
|
+
const contents = (0, smithy_client_1.map)({});
|
|
4032
3871
|
const data = parsedOutput.body;
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
}
|
|
3872
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3873
|
+
message: smithy_client_1.expectString,
|
|
3874
|
+
retryAfterSeconds: smithy_client_1.expectInt32,
|
|
3875
|
+
});
|
|
3876
|
+
Object.assign(contents, doc);
|
|
4039
3877
|
const exception = new models_0_1.ThrottlingException({
|
|
4040
3878
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4041
3879
|
...contents,
|
|
@@ -4043,500 +3881,159 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
4043
3881
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4044
3882
|
};
|
|
4045
3883
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
4046
|
-
const contents = map({});
|
|
3884
|
+
const contents = (0, smithy_client_1.map)({});
|
|
4047
3885
|
const data = parsedOutput.body;
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
}
|
|
3886
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3887
|
+
message: smithy_client_1.expectString,
|
|
3888
|
+
});
|
|
3889
|
+
Object.assign(contents, doc);
|
|
4051
3890
|
const exception = new models_0_1.ValidationException({
|
|
4052
3891
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4053
3892
|
...contents,
|
|
4054
3893
|
});
|
|
4055
3894
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4056
3895
|
};
|
|
4057
|
-
const
|
|
4058
|
-
return
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
3896
|
+
const de_App = (output, context) => {
|
|
3897
|
+
return (0, smithy_client_1.take)(output, {
|
|
3898
|
+
appArn: smithy_client_1.expectString,
|
|
3899
|
+
assessmentSchedule: smithy_client_1.expectString,
|
|
3900
|
+
complianceStatus: smithy_client_1.expectString,
|
|
3901
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3902
|
+
description: smithy_client_1.expectString,
|
|
3903
|
+
lastAppComplianceEvaluationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3904
|
+
lastResiliencyScoreEvaluationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3905
|
+
name: smithy_client_1.expectString,
|
|
3906
|
+
policyArn: smithy_client_1.expectString,
|
|
3907
|
+
resiliencyScore: smithy_client_1.limitedParseDouble,
|
|
3908
|
+
status: smithy_client_1.expectString,
|
|
3909
|
+
tags: smithy_client_1._json,
|
|
3910
|
+
});
|
|
4065
3911
|
};
|
|
4066
|
-
const
|
|
4067
|
-
return
|
|
4068
|
-
.
|
|
4069
|
-
.
|
|
4070
|
-
|
|
3912
|
+
const de_AppAssessment = (output, context) => {
|
|
3913
|
+
return (0, smithy_client_1.take)(output, {
|
|
3914
|
+
appArn: smithy_client_1.expectString,
|
|
3915
|
+
appVersion: smithy_client_1.expectString,
|
|
3916
|
+
assessmentArn: smithy_client_1.expectString,
|
|
3917
|
+
assessmentName: smithy_client_1.expectString,
|
|
3918
|
+
assessmentStatus: smithy_client_1.expectString,
|
|
3919
|
+
compliance: smithy_client_1._json,
|
|
3920
|
+
complianceStatus: smithy_client_1.expectString,
|
|
3921
|
+
cost: (_) => de_Cost(_, context),
|
|
3922
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3923
|
+
invoker: smithy_client_1.expectString,
|
|
3924
|
+
message: smithy_client_1.expectString,
|
|
3925
|
+
policy: (_) => de_ResiliencyPolicy(_, context),
|
|
3926
|
+
resiliencyScore: (_) => de_ResiliencyScore(_, context),
|
|
3927
|
+
resourceErrorsDetails: smithy_client_1._json,
|
|
3928
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3929
|
+
tags: smithy_client_1._json,
|
|
4071
3930
|
});
|
|
4072
3931
|
};
|
|
4073
|
-
const
|
|
4074
|
-
return
|
|
4075
|
-
.
|
|
4076
|
-
.
|
|
4077
|
-
|
|
3932
|
+
const de_AppAssessmentSummary = (output, context) => {
|
|
3933
|
+
return (0, smithy_client_1.take)(output, {
|
|
3934
|
+
appArn: smithy_client_1.expectString,
|
|
3935
|
+
appVersion: smithy_client_1.expectString,
|
|
3936
|
+
assessmentArn: smithy_client_1.expectString,
|
|
3937
|
+
assessmentName: smithy_client_1.expectString,
|
|
3938
|
+
assessmentStatus: smithy_client_1.expectString,
|
|
3939
|
+
complianceStatus: smithy_client_1.expectString,
|
|
3940
|
+
cost: (_) => de_Cost(_, context),
|
|
3941
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3942
|
+
invoker: smithy_client_1.expectString,
|
|
3943
|
+
message: smithy_client_1.expectString,
|
|
3944
|
+
resiliencyScore: smithy_client_1.limitedParseDouble,
|
|
3945
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4078
3946
|
});
|
|
4079
3947
|
};
|
|
4080
|
-
const
|
|
4081
|
-
|
|
3948
|
+
const de_AppAssessmentSummaryList = (output, context) => {
|
|
3949
|
+
const retVal = (output || [])
|
|
4082
3950
|
.filter((e) => e != null)
|
|
4083
3951
|
.map((entry) => {
|
|
4084
|
-
return entry;
|
|
3952
|
+
return de_AppAssessmentSummary(entry, context);
|
|
4085
3953
|
});
|
|
3954
|
+
return retVal;
|
|
4086
3955
|
};
|
|
4087
|
-
const
|
|
4088
|
-
return
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
};
|
|
4096
|
-
const se_EksNamespaceList = (input, context) => {
|
|
4097
|
-
return input
|
|
4098
|
-
.filter((e) => e != null)
|
|
4099
|
-
.map((entry) => {
|
|
4100
|
-
return entry;
|
|
3956
|
+
const de_AppComponentCompliance = (output, context) => {
|
|
3957
|
+
return (0, smithy_client_1.take)(output, {
|
|
3958
|
+
appComponentName: smithy_client_1.expectString,
|
|
3959
|
+
compliance: smithy_client_1._json,
|
|
3960
|
+
cost: (_) => de_Cost(_, context),
|
|
3961
|
+
message: smithy_client_1.expectString,
|
|
3962
|
+
resiliencyScore: (_) => de_ResiliencyScore(_, context),
|
|
3963
|
+
status: smithy_client_1.expectString,
|
|
4101
3964
|
});
|
|
4102
3965
|
};
|
|
4103
|
-
const
|
|
4104
|
-
return {
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
};
|
|
4114
|
-
};
|
|
4115
|
-
const se_EksSourceList = (input, context) => {
|
|
4116
|
-
return input
|
|
4117
|
-
.filter((e) => e != null)
|
|
4118
|
-
.map((entry) => {
|
|
4119
|
-
return se_EksSource(entry, context);
|
|
4120
|
-
});
|
|
4121
|
-
};
|
|
4122
|
-
const se_EntityNameList = (input, context) => {
|
|
4123
|
-
return input
|
|
4124
|
-
.filter((e) => e != null)
|
|
4125
|
-
.map((entry) => {
|
|
4126
|
-
return entry;
|
|
4127
|
-
});
|
|
4128
|
-
};
|
|
4129
|
-
const se_FailurePolicy = (input, context) => {
|
|
4130
|
-
return {
|
|
4131
|
-
...(input.rpoInSecs != null && { rpoInSecs: input.rpoInSecs }),
|
|
4132
|
-
...(input.rtoInSecs != null && { rtoInSecs: input.rtoInSecs }),
|
|
4133
|
-
};
|
|
4134
|
-
};
|
|
4135
|
-
const se_LogicalResourceId = (input, context) => {
|
|
4136
|
-
return {
|
|
4137
|
-
...(input.eksSourceName != null && { eksSourceName: input.eksSourceName }),
|
|
4138
|
-
...(input.identifier != null && { identifier: input.identifier }),
|
|
4139
|
-
...(input.logicalStackName != null && { logicalStackName: input.logicalStackName }),
|
|
4140
|
-
...(input.resourceGroupName != null && { resourceGroupName: input.resourceGroupName }),
|
|
4141
|
-
...(input.terraformSourceName != null && { terraformSourceName: input.terraformSourceName }),
|
|
4142
|
-
};
|
|
4143
|
-
};
|
|
4144
|
-
const se_PhysicalResourceId = (input, context) => {
|
|
4145
|
-
return {
|
|
4146
|
-
...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
|
|
4147
|
-
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
4148
|
-
...(input.identifier != null && { identifier: input.identifier }),
|
|
4149
|
-
...(input.type != null && { type: input.type }),
|
|
4150
|
-
};
|
|
4151
|
-
};
|
|
4152
|
-
const se_RecommendationIdList = (input, context) => {
|
|
4153
|
-
return input
|
|
4154
|
-
.filter((e) => e != null)
|
|
4155
|
-
.map((entry) => {
|
|
4156
|
-
return entry;
|
|
4157
|
-
});
|
|
4158
|
-
};
|
|
4159
|
-
const se_RenderRecommendationTypeList = (input, context) => {
|
|
4160
|
-
return input
|
|
4161
|
-
.filter((e) => e != null)
|
|
4162
|
-
.map((entry) => {
|
|
4163
|
-
return entry;
|
|
4164
|
-
});
|
|
4165
|
-
};
|
|
4166
|
-
const se_ResourceMapping = (input, context) => {
|
|
4167
|
-
return {
|
|
4168
|
-
...(input.appRegistryAppName != null && { appRegistryAppName: input.appRegistryAppName }),
|
|
4169
|
-
...(input.eksSourceName != null && { eksSourceName: input.eksSourceName }),
|
|
4170
|
-
...(input.logicalStackName != null && { logicalStackName: input.logicalStackName }),
|
|
4171
|
-
...(input.mappingType != null && { mappingType: input.mappingType }),
|
|
4172
|
-
...(input.physicalResourceId != null && {
|
|
4173
|
-
physicalResourceId: se_PhysicalResourceId(input.physicalResourceId, context),
|
|
4174
|
-
}),
|
|
4175
|
-
...(input.resourceGroupName != null && { resourceGroupName: input.resourceGroupName }),
|
|
4176
|
-
...(input.resourceName != null && { resourceName: input.resourceName }),
|
|
4177
|
-
...(input.terraformSourceName != null && { terraformSourceName: input.terraformSourceName }),
|
|
4178
|
-
};
|
|
4179
|
-
};
|
|
4180
|
-
const se_ResourceMappingList = (input, context) => {
|
|
4181
|
-
return input
|
|
4182
|
-
.filter((e) => e != null)
|
|
4183
|
-
.map((entry) => {
|
|
4184
|
-
return se_ResourceMapping(entry, context);
|
|
4185
|
-
});
|
|
4186
|
-
};
|
|
4187
|
-
const se_String255List = (input, context) => {
|
|
4188
|
-
return input
|
|
4189
|
-
.filter((e) => e != null)
|
|
4190
|
-
.map((entry) => {
|
|
4191
|
-
return entry;
|
|
4192
|
-
});
|
|
4193
|
-
};
|
|
4194
|
-
const se_TagMap = (input, context) => {
|
|
4195
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4196
|
-
if (value === null) {
|
|
4197
|
-
return acc;
|
|
4198
|
-
}
|
|
4199
|
-
acc[key] = value;
|
|
4200
|
-
return acc;
|
|
4201
|
-
}, {});
|
|
4202
|
-
};
|
|
4203
|
-
const se_TerraformSource = (input, context) => {
|
|
4204
|
-
return {
|
|
4205
|
-
...(input.s3StateFileUrl != null && { s3StateFileUrl: input.s3StateFileUrl }),
|
|
4206
|
-
};
|
|
4207
|
-
};
|
|
4208
|
-
const se_TerraformSourceList = (input, context) => {
|
|
4209
|
-
return input
|
|
4210
|
-
.filter((e) => e != null)
|
|
4211
|
-
.map((entry) => {
|
|
4212
|
-
return se_TerraformSource(entry, context);
|
|
4213
|
-
});
|
|
4214
|
-
};
|
|
4215
|
-
const de_AdditionalInfoMap = (output, context) => {
|
|
4216
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4217
|
-
if (value === null) {
|
|
4218
|
-
return acc;
|
|
4219
|
-
}
|
|
4220
|
-
acc[key] = de_AdditionalInfoValueList(value, context);
|
|
4221
|
-
return acc;
|
|
4222
|
-
}, {});
|
|
4223
|
-
};
|
|
4224
|
-
const de_AdditionalInfoValueList = (output, context) => {
|
|
4225
|
-
const retVal = (output || [])
|
|
4226
|
-
.filter((e) => e != null)
|
|
4227
|
-
.map((entry) => {
|
|
4228
|
-
if (entry === null) {
|
|
4229
|
-
return null;
|
|
4230
|
-
}
|
|
4231
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4232
|
-
});
|
|
4233
|
-
return retVal;
|
|
4234
|
-
};
|
|
4235
|
-
const de_AlarmRecommendation = (output, context) => {
|
|
4236
|
-
return {
|
|
4237
|
-
appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
|
|
4238
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
4239
|
-
items: output.items != null ? de_RecommendationItemList(output.items, context) : undefined,
|
|
4240
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
4241
|
-
prerequisite: (0, smithy_client_1.expectString)(output.prerequisite),
|
|
4242
|
-
recommendationId: (0, smithy_client_1.expectString)(output.recommendationId),
|
|
4243
|
-
referenceId: (0, smithy_client_1.expectString)(output.referenceId),
|
|
4244
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
4245
|
-
};
|
|
4246
|
-
};
|
|
4247
|
-
const de_AlarmRecommendationList = (output, context) => {
|
|
4248
|
-
const retVal = (output || [])
|
|
4249
|
-
.filter((e) => e != null)
|
|
4250
|
-
.map((entry) => {
|
|
4251
|
-
if (entry === null) {
|
|
4252
|
-
return null;
|
|
4253
|
-
}
|
|
4254
|
-
return de_AlarmRecommendation(entry, context);
|
|
4255
|
-
});
|
|
4256
|
-
return retVal;
|
|
4257
|
-
};
|
|
4258
|
-
const de_AlarmReferenceIdList = (output, context) => {
|
|
4259
|
-
const retVal = (output || [])
|
|
4260
|
-
.filter((e) => e != null)
|
|
4261
|
-
.map((entry) => {
|
|
4262
|
-
if (entry === null) {
|
|
4263
|
-
return null;
|
|
4264
|
-
}
|
|
4265
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4266
|
-
});
|
|
4267
|
-
return retVal;
|
|
4268
|
-
};
|
|
4269
|
-
const de_App = (output, context) => {
|
|
4270
|
-
return {
|
|
4271
|
-
appArn: (0, smithy_client_1.expectString)(output.appArn),
|
|
4272
|
-
assessmentSchedule: (0, smithy_client_1.expectString)(output.assessmentSchedule),
|
|
4273
|
-
complianceStatus: (0, smithy_client_1.expectString)(output.complianceStatus),
|
|
4274
|
-
creationTime: output.creationTime != null
|
|
4275
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
4276
|
-
: undefined,
|
|
4277
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
4278
|
-
lastAppComplianceEvaluationTime: output.lastAppComplianceEvaluationTime != null
|
|
4279
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastAppComplianceEvaluationTime)))
|
|
4280
|
-
: undefined,
|
|
4281
|
-
lastResiliencyScoreEvaluationTime: output.lastResiliencyScoreEvaluationTime != null
|
|
4282
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastResiliencyScoreEvaluationTime)))
|
|
4283
|
-
: undefined,
|
|
4284
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
4285
|
-
policyArn: (0, smithy_client_1.expectString)(output.policyArn),
|
|
4286
|
-
resiliencyScore: (0, smithy_client_1.limitedParseDouble)(output.resiliencyScore),
|
|
4287
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
4288
|
-
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
4289
|
-
};
|
|
4290
|
-
};
|
|
4291
|
-
const de_AppAssessment = (output, context) => {
|
|
4292
|
-
return {
|
|
4293
|
-
appArn: (0, smithy_client_1.expectString)(output.appArn),
|
|
4294
|
-
appVersion: (0, smithy_client_1.expectString)(output.appVersion),
|
|
4295
|
-
assessmentArn: (0, smithy_client_1.expectString)(output.assessmentArn),
|
|
4296
|
-
assessmentName: (0, smithy_client_1.expectString)(output.assessmentName),
|
|
4297
|
-
assessmentStatus: (0, smithy_client_1.expectString)(output.assessmentStatus),
|
|
4298
|
-
compliance: output.compliance != null ? de_AssessmentCompliance(output.compliance, context) : undefined,
|
|
4299
|
-
complianceStatus: (0, smithy_client_1.expectString)(output.complianceStatus),
|
|
4300
|
-
cost: output.cost != null ? de_Cost(output.cost, context) : undefined,
|
|
4301
|
-
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
4302
|
-
invoker: (0, smithy_client_1.expectString)(output.invoker),
|
|
4303
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4304
|
-
policy: output.policy != null ? de_ResiliencyPolicy(output.policy, context) : undefined,
|
|
4305
|
-
resiliencyScore: output.resiliencyScore != null ? de_ResiliencyScore(output.resiliencyScore, context) : undefined,
|
|
4306
|
-
resourceErrorsDetails: output.resourceErrorsDetails != null
|
|
4307
|
-
? de_ResourceErrorsDetails(output.resourceErrorsDetails, context)
|
|
4308
|
-
: undefined,
|
|
4309
|
-
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
4310
|
-
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
4311
|
-
};
|
|
4312
|
-
};
|
|
4313
|
-
const de_AppAssessmentSummary = (output, context) => {
|
|
4314
|
-
return {
|
|
4315
|
-
appArn: (0, smithy_client_1.expectString)(output.appArn),
|
|
4316
|
-
appVersion: (0, smithy_client_1.expectString)(output.appVersion),
|
|
4317
|
-
assessmentArn: (0, smithy_client_1.expectString)(output.assessmentArn),
|
|
4318
|
-
assessmentName: (0, smithy_client_1.expectString)(output.assessmentName),
|
|
4319
|
-
assessmentStatus: (0, smithy_client_1.expectString)(output.assessmentStatus),
|
|
4320
|
-
complianceStatus: (0, smithy_client_1.expectString)(output.complianceStatus),
|
|
4321
|
-
cost: output.cost != null ? de_Cost(output.cost, context) : undefined,
|
|
4322
|
-
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
4323
|
-
invoker: (0, smithy_client_1.expectString)(output.invoker),
|
|
4324
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4325
|
-
resiliencyScore: (0, smithy_client_1.limitedParseDouble)(output.resiliencyScore),
|
|
4326
|
-
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
4327
|
-
};
|
|
4328
|
-
};
|
|
4329
|
-
const de_AppAssessmentSummaryList = (output, context) => {
|
|
4330
|
-
const retVal = (output || [])
|
|
4331
|
-
.filter((e) => e != null)
|
|
4332
|
-
.map((entry) => {
|
|
4333
|
-
if (entry === null) {
|
|
4334
|
-
return null;
|
|
4335
|
-
}
|
|
4336
|
-
return de_AppAssessmentSummary(entry, context);
|
|
4337
|
-
});
|
|
4338
|
-
return retVal;
|
|
4339
|
-
};
|
|
4340
|
-
const de_AppComponent = (output, context) => {
|
|
4341
|
-
return {
|
|
4342
|
-
additionalInfo: output.additionalInfo != null ? de_AdditionalInfoMap(output.additionalInfo, context) : undefined,
|
|
4343
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
4344
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
4345
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
4346
|
-
};
|
|
4347
|
-
};
|
|
4348
|
-
const de_AppComponentCompliance = (output, context) => {
|
|
4349
|
-
return {
|
|
4350
|
-
appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
|
|
4351
|
-
compliance: output.compliance != null ? de_AssessmentCompliance(output.compliance, context) : undefined,
|
|
4352
|
-
cost: output.cost != null ? de_Cost(output.cost, context) : undefined,
|
|
4353
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4354
|
-
resiliencyScore: output.resiliencyScore != null ? de_ResiliencyScore(output.resiliencyScore, context) : undefined,
|
|
4355
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
4356
|
-
};
|
|
4357
|
-
};
|
|
4358
|
-
const de_AppComponentList = (output, context) => {
|
|
4359
|
-
const retVal = (output || [])
|
|
4360
|
-
.filter((e) => e != null)
|
|
4361
|
-
.map((entry) => {
|
|
4362
|
-
if (entry === null) {
|
|
4363
|
-
return null;
|
|
4364
|
-
}
|
|
4365
|
-
return de_AppComponent(entry, context);
|
|
4366
|
-
});
|
|
4367
|
-
return retVal;
|
|
4368
|
-
};
|
|
4369
|
-
const de_AppInputSource = (output, context) => {
|
|
4370
|
-
return {
|
|
4371
|
-
eksSourceClusterNamespace: output.eksSourceClusterNamespace != null
|
|
4372
|
-
? de_EksSourceClusterNamespace(output.eksSourceClusterNamespace, context)
|
|
4373
|
-
: undefined,
|
|
4374
|
-
importType: (0, smithy_client_1.expectString)(output.importType),
|
|
4375
|
-
resourceCount: (0, smithy_client_1.expectInt32)(output.resourceCount),
|
|
4376
|
-
sourceArn: (0, smithy_client_1.expectString)(output.sourceArn),
|
|
4377
|
-
sourceName: (0, smithy_client_1.expectString)(output.sourceName),
|
|
4378
|
-
terraformSource: output.terraformSource != null ? de_TerraformSource(output.terraformSource, context) : undefined,
|
|
4379
|
-
};
|
|
4380
|
-
};
|
|
4381
|
-
const de_AppInputSourceList = (output, context) => {
|
|
4382
|
-
const retVal = (output || [])
|
|
4383
|
-
.filter((e) => e != null)
|
|
4384
|
-
.map((entry) => {
|
|
4385
|
-
if (entry === null) {
|
|
4386
|
-
return null;
|
|
4387
|
-
}
|
|
4388
|
-
return de_AppInputSource(entry, context);
|
|
4389
|
-
});
|
|
4390
|
-
return retVal;
|
|
4391
|
-
};
|
|
4392
|
-
const de_AppSummary = (output, context) => {
|
|
4393
|
-
return {
|
|
4394
|
-
appArn: (0, smithy_client_1.expectString)(output.appArn),
|
|
4395
|
-
assessmentSchedule: (0, smithy_client_1.expectString)(output.assessmentSchedule),
|
|
4396
|
-
complianceStatus: (0, smithy_client_1.expectString)(output.complianceStatus),
|
|
4397
|
-
creationTime: output.creationTime != null
|
|
4398
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
4399
|
-
: undefined,
|
|
4400
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
4401
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
4402
|
-
resiliencyScore: (0, smithy_client_1.limitedParseDouble)(output.resiliencyScore),
|
|
4403
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
4404
|
-
};
|
|
3966
|
+
const de_AppSummary = (output, context) => {
|
|
3967
|
+
return (0, smithy_client_1.take)(output, {
|
|
3968
|
+
appArn: smithy_client_1.expectString,
|
|
3969
|
+
assessmentSchedule: smithy_client_1.expectString,
|
|
3970
|
+
complianceStatus: smithy_client_1.expectString,
|
|
3971
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3972
|
+
description: smithy_client_1.expectString,
|
|
3973
|
+
name: smithy_client_1.expectString,
|
|
3974
|
+
resiliencyScore: smithy_client_1.limitedParseDouble,
|
|
3975
|
+
status: smithy_client_1.expectString,
|
|
3976
|
+
});
|
|
4405
3977
|
};
|
|
4406
3978
|
const de_AppSummaryList = (output, context) => {
|
|
4407
3979
|
const retVal = (output || [])
|
|
4408
3980
|
.filter((e) => e != null)
|
|
4409
3981
|
.map((entry) => {
|
|
4410
|
-
if (entry === null) {
|
|
4411
|
-
return null;
|
|
4412
|
-
}
|
|
4413
3982
|
return de_AppSummary(entry, context);
|
|
4414
3983
|
});
|
|
4415
3984
|
return retVal;
|
|
4416
3985
|
};
|
|
4417
|
-
const de_AppVersionList = (output, context) => {
|
|
4418
|
-
const retVal = (output || [])
|
|
4419
|
-
.filter((e) => e != null)
|
|
4420
|
-
.map((entry) => {
|
|
4421
|
-
if (entry === null) {
|
|
4422
|
-
return null;
|
|
4423
|
-
}
|
|
4424
|
-
return de_AppVersionSummary(entry, context);
|
|
4425
|
-
});
|
|
4426
|
-
return retVal;
|
|
4427
|
-
};
|
|
4428
|
-
const de_AppVersionSummary = (output, context) => {
|
|
4429
|
-
return {
|
|
4430
|
-
appVersion: (0, smithy_client_1.expectString)(output.appVersion),
|
|
4431
|
-
};
|
|
4432
|
-
};
|
|
4433
|
-
const de_ArnList = (output, context) => {
|
|
4434
|
-
const retVal = (output || [])
|
|
4435
|
-
.filter((e) => e != null)
|
|
4436
|
-
.map((entry) => {
|
|
4437
|
-
if (entry === null) {
|
|
4438
|
-
return null;
|
|
4439
|
-
}
|
|
4440
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4441
|
-
});
|
|
4442
|
-
return retVal;
|
|
4443
|
-
};
|
|
4444
|
-
const de_AssessmentCompliance = (output, context) => {
|
|
4445
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4446
|
-
if (value === null) {
|
|
4447
|
-
return acc;
|
|
4448
|
-
}
|
|
4449
|
-
acc[key] = de_DisruptionCompliance(value, context);
|
|
4450
|
-
return acc;
|
|
4451
|
-
}, {});
|
|
4452
|
-
};
|
|
4453
3986
|
const de_ComponentCompliancesList = (output, context) => {
|
|
4454
3987
|
const retVal = (output || [])
|
|
4455
3988
|
.filter((e) => e != null)
|
|
4456
3989
|
.map((entry) => {
|
|
4457
|
-
if (entry === null) {
|
|
4458
|
-
return null;
|
|
4459
|
-
}
|
|
4460
3990
|
return de_AppComponentCompliance(entry, context);
|
|
4461
3991
|
});
|
|
4462
3992
|
return retVal;
|
|
4463
3993
|
};
|
|
4464
3994
|
const de_ComponentRecommendation = (output, context) => {
|
|
4465
|
-
return {
|
|
4466
|
-
appComponentName:
|
|
4467
|
-
configRecommendations:
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
recommendationStatus: (0, smithy_client_1.expectString)(output.recommendationStatus),
|
|
4471
|
-
};
|
|
3995
|
+
return (0, smithy_client_1.take)(output, {
|
|
3996
|
+
appComponentName: smithy_client_1.expectString,
|
|
3997
|
+
configRecommendations: (_) => de_ConfigRecommendationList(_, context),
|
|
3998
|
+
recommendationStatus: smithy_client_1.expectString,
|
|
3999
|
+
});
|
|
4472
4000
|
};
|
|
4473
4001
|
const de_ComponentRecommendationList = (output, context) => {
|
|
4474
4002
|
const retVal = (output || [])
|
|
4475
4003
|
.filter((e) => e != null)
|
|
4476
4004
|
.map((entry) => {
|
|
4477
|
-
if (entry === null) {
|
|
4478
|
-
return null;
|
|
4479
|
-
}
|
|
4480
4005
|
return de_ComponentRecommendation(entry, context);
|
|
4481
4006
|
});
|
|
4482
4007
|
return retVal;
|
|
4483
4008
|
};
|
|
4484
4009
|
const de_ConfigRecommendation = (output, context) => {
|
|
4485
|
-
return {
|
|
4486
|
-
appComponentName:
|
|
4487
|
-
compliance:
|
|
4488
|
-
cost:
|
|
4489
|
-
description:
|
|
4490
|
-
haArchitecture:
|
|
4491
|
-
name:
|
|
4492
|
-
optimizationType:
|
|
4493
|
-
recommendationCompliance:
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
suggestedChanges: output.suggestedChanges != null ? de_SuggestedChangesList(output.suggestedChanges, context) : undefined,
|
|
4498
|
-
};
|
|
4010
|
+
return (0, smithy_client_1.take)(output, {
|
|
4011
|
+
appComponentName: smithy_client_1.expectString,
|
|
4012
|
+
compliance: smithy_client_1._json,
|
|
4013
|
+
cost: (_) => de_Cost(_, context),
|
|
4014
|
+
description: smithy_client_1.expectString,
|
|
4015
|
+
haArchitecture: smithy_client_1.expectString,
|
|
4016
|
+
name: smithy_client_1.expectString,
|
|
4017
|
+
optimizationType: smithy_client_1.expectString,
|
|
4018
|
+
recommendationCompliance: smithy_client_1._json,
|
|
4019
|
+
referenceId: smithy_client_1.expectString,
|
|
4020
|
+
suggestedChanges: smithy_client_1._json,
|
|
4021
|
+
});
|
|
4499
4022
|
};
|
|
4500
4023
|
const de_ConfigRecommendationList = (output, context) => {
|
|
4501
4024
|
const retVal = (output || [])
|
|
4502
4025
|
.filter((e) => e != null)
|
|
4503
4026
|
.map((entry) => {
|
|
4504
|
-
if (entry === null) {
|
|
4505
|
-
return null;
|
|
4506
|
-
}
|
|
4507
4027
|
return de_ConfigRecommendation(entry, context);
|
|
4508
4028
|
});
|
|
4509
4029
|
return retVal;
|
|
4510
4030
|
};
|
|
4511
4031
|
const de_Cost = (output, context) => {
|
|
4512
|
-
return {
|
|
4513
|
-
amount:
|
|
4514
|
-
currency:
|
|
4515
|
-
frequency:
|
|
4516
|
-
};
|
|
4517
|
-
};
|
|
4518
|
-
const de_DisruptionCompliance = (output, context) => {
|
|
4519
|
-
return {
|
|
4520
|
-
achievableRpoInSecs: (0, smithy_client_1.expectInt32)(output.achievableRpoInSecs),
|
|
4521
|
-
achievableRtoInSecs: (0, smithy_client_1.expectInt32)(output.achievableRtoInSecs),
|
|
4522
|
-
complianceStatus: (0, smithy_client_1.expectString)(output.complianceStatus),
|
|
4523
|
-
currentRpoInSecs: (0, smithy_client_1.expectInt32)(output.currentRpoInSecs),
|
|
4524
|
-
currentRtoInSecs: (0, smithy_client_1.expectInt32)(output.currentRtoInSecs),
|
|
4525
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4526
|
-
rpoDescription: (0, smithy_client_1.expectString)(output.rpoDescription),
|
|
4527
|
-
rpoReferenceId: (0, smithy_client_1.expectString)(output.rpoReferenceId),
|
|
4528
|
-
rtoDescription: (0, smithy_client_1.expectString)(output.rtoDescription),
|
|
4529
|
-
rtoReferenceId: (0, smithy_client_1.expectString)(output.rtoReferenceId),
|
|
4530
|
-
};
|
|
4531
|
-
};
|
|
4532
|
-
const de_DisruptionPolicy = (output, context) => {
|
|
4533
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4534
|
-
if (value === null) {
|
|
4535
|
-
return acc;
|
|
4536
|
-
}
|
|
4537
|
-
acc[key] = de_FailurePolicy(value, context);
|
|
4538
|
-
return acc;
|
|
4539
|
-
}, {});
|
|
4032
|
+
return (0, smithy_client_1.take)(output, {
|
|
4033
|
+
amount: smithy_client_1.limitedParseDouble,
|
|
4034
|
+
currency: smithy_client_1.expectString,
|
|
4035
|
+
frequency: smithy_client_1.expectString,
|
|
4036
|
+
});
|
|
4540
4037
|
};
|
|
4541
4038
|
const de_DisruptionResiliencyScore = (output, context) => {
|
|
4542
4039
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -4547,363 +4044,58 @@ const de_DisruptionResiliencyScore = (output, context) => {
|
|
|
4547
4044
|
return acc;
|
|
4548
4045
|
}, {});
|
|
4549
4046
|
};
|
|
4550
|
-
const de_EksNamespaceList = (output, context) => {
|
|
4551
|
-
const retVal = (output || [])
|
|
4552
|
-
.filter((e) => e != null)
|
|
4553
|
-
.map((entry) => {
|
|
4554
|
-
if (entry === null) {
|
|
4555
|
-
return null;
|
|
4556
|
-
}
|
|
4557
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4558
|
-
});
|
|
4559
|
-
return retVal;
|
|
4560
|
-
};
|
|
4561
|
-
const de_EksSource = (output, context) => {
|
|
4562
|
-
return {
|
|
4563
|
-
eksClusterArn: (0, smithy_client_1.expectString)(output.eksClusterArn),
|
|
4564
|
-
namespaces: output.namespaces != null ? de_EksNamespaceList(output.namespaces, context) : undefined,
|
|
4565
|
-
};
|
|
4566
|
-
};
|
|
4567
|
-
const de_EksSourceClusterNamespace = (output, context) => {
|
|
4568
|
-
return {
|
|
4569
|
-
eksClusterArn: (0, smithy_client_1.expectString)(output.eksClusterArn),
|
|
4570
|
-
namespace: (0, smithy_client_1.expectString)(output.namespace),
|
|
4571
|
-
};
|
|
4572
|
-
};
|
|
4573
|
-
const de_EksSourceList = (output, context) => {
|
|
4574
|
-
const retVal = (output || [])
|
|
4575
|
-
.filter((e) => e != null)
|
|
4576
|
-
.map((entry) => {
|
|
4577
|
-
if (entry === null) {
|
|
4578
|
-
return null;
|
|
4579
|
-
}
|
|
4580
|
-
return de_EksSource(entry, context);
|
|
4581
|
-
});
|
|
4582
|
-
return retVal;
|
|
4583
|
-
};
|
|
4584
|
-
const de_FailurePolicy = (output, context) => {
|
|
4585
|
-
return {
|
|
4586
|
-
rpoInSecs: (0, smithy_client_1.expectInt32)(output.rpoInSecs),
|
|
4587
|
-
rtoInSecs: (0, smithy_client_1.expectInt32)(output.rtoInSecs),
|
|
4588
|
-
};
|
|
4589
|
-
};
|
|
4590
|
-
const de_LogicalResourceId = (output, context) => {
|
|
4591
|
-
return {
|
|
4592
|
-
eksSourceName: (0, smithy_client_1.expectString)(output.eksSourceName),
|
|
4593
|
-
identifier: (0, smithy_client_1.expectString)(output.identifier),
|
|
4594
|
-
logicalStackName: (0, smithy_client_1.expectString)(output.logicalStackName),
|
|
4595
|
-
resourceGroupName: (0, smithy_client_1.expectString)(output.resourceGroupName),
|
|
4596
|
-
terraformSourceName: (0, smithy_client_1.expectString)(output.terraformSourceName),
|
|
4597
|
-
};
|
|
4598
|
-
};
|
|
4599
|
-
const de_PhysicalResource = (output, context) => {
|
|
4600
|
-
return {
|
|
4601
|
-
additionalInfo: output.additionalInfo != null ? de_AdditionalInfoMap(output.additionalInfo, context) : undefined,
|
|
4602
|
-
appComponents: output.appComponents != null ? de_AppComponentList(output.appComponents, context) : undefined,
|
|
4603
|
-
excluded: (0, smithy_client_1.expectBoolean)(output.excluded),
|
|
4604
|
-
logicalResourceId: output.logicalResourceId != null ? de_LogicalResourceId(output.logicalResourceId, context) : undefined,
|
|
4605
|
-
physicalResourceId: output.physicalResourceId != null ? de_PhysicalResourceId(output.physicalResourceId, context) : undefined,
|
|
4606
|
-
resourceName: (0, smithy_client_1.expectString)(output.resourceName),
|
|
4607
|
-
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
4608
|
-
};
|
|
4609
|
-
};
|
|
4610
|
-
const de_PhysicalResourceId = (output, context) => {
|
|
4611
|
-
return {
|
|
4612
|
-
awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
|
|
4613
|
-
awsRegion: (0, smithy_client_1.expectString)(output.awsRegion),
|
|
4614
|
-
identifier: (0, smithy_client_1.expectString)(output.identifier),
|
|
4615
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
4616
|
-
};
|
|
4617
|
-
};
|
|
4618
|
-
const de_PhysicalResourceList = (output, context) => {
|
|
4619
|
-
const retVal = (output || [])
|
|
4620
|
-
.filter((e) => e != null)
|
|
4621
|
-
.map((entry) => {
|
|
4622
|
-
if (entry === null) {
|
|
4623
|
-
return null;
|
|
4624
|
-
}
|
|
4625
|
-
return de_PhysicalResource(entry, context);
|
|
4626
|
-
});
|
|
4627
|
-
return retVal;
|
|
4628
|
-
};
|
|
4629
|
-
const de_RecommendationCompliance = (output, context) => {
|
|
4630
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4631
|
-
if (value === null) {
|
|
4632
|
-
return acc;
|
|
4633
|
-
}
|
|
4634
|
-
acc[key] = de_RecommendationDisruptionCompliance(value, context);
|
|
4635
|
-
return acc;
|
|
4636
|
-
}, {});
|
|
4637
|
-
};
|
|
4638
|
-
const de_RecommendationDisruptionCompliance = (output, context) => {
|
|
4639
|
-
return {
|
|
4640
|
-
expectedComplianceStatus: (0, smithy_client_1.expectString)(output.expectedComplianceStatus),
|
|
4641
|
-
expectedRpoDescription: (0, smithy_client_1.expectString)(output.expectedRpoDescription),
|
|
4642
|
-
expectedRpoInSecs: (0, smithy_client_1.expectInt32)(output.expectedRpoInSecs),
|
|
4643
|
-
expectedRtoDescription: (0, smithy_client_1.expectString)(output.expectedRtoDescription),
|
|
4644
|
-
expectedRtoInSecs: (0, smithy_client_1.expectInt32)(output.expectedRtoInSecs),
|
|
4645
|
-
};
|
|
4646
|
-
};
|
|
4647
|
-
const de_RecommendationIdList = (output, context) => {
|
|
4648
|
-
const retVal = (output || [])
|
|
4649
|
-
.filter((e) => e != null)
|
|
4650
|
-
.map((entry) => {
|
|
4651
|
-
if (entry === null) {
|
|
4652
|
-
return null;
|
|
4653
|
-
}
|
|
4654
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4655
|
-
});
|
|
4656
|
-
return retVal;
|
|
4657
|
-
};
|
|
4658
|
-
const de_RecommendationItem = (output, context) => {
|
|
4659
|
-
return {
|
|
4660
|
-
alreadyImplemented: (0, smithy_client_1.expectBoolean)(output.alreadyImplemented),
|
|
4661
|
-
resourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
4662
|
-
targetAccountId: (0, smithy_client_1.expectString)(output.targetAccountId),
|
|
4663
|
-
targetRegion: (0, smithy_client_1.expectString)(output.targetRegion),
|
|
4664
|
-
};
|
|
4665
|
-
};
|
|
4666
|
-
const de_RecommendationItemList = (output, context) => {
|
|
4667
|
-
const retVal = (output || [])
|
|
4668
|
-
.filter((e) => e != null)
|
|
4669
|
-
.map((entry) => {
|
|
4670
|
-
if (entry === null) {
|
|
4671
|
-
return null;
|
|
4672
|
-
}
|
|
4673
|
-
return de_RecommendationItem(entry, context);
|
|
4674
|
-
});
|
|
4675
|
-
return retVal;
|
|
4676
|
-
};
|
|
4677
4047
|
const de_RecommendationTemplate = (output, context) => {
|
|
4678
|
-
return {
|
|
4679
|
-
appArn:
|
|
4680
|
-
assessmentArn:
|
|
4681
|
-
endTime:
|
|
4682
|
-
format:
|
|
4683
|
-
message:
|
|
4684
|
-
name:
|
|
4685
|
-
needsReplacements:
|
|
4686
|
-
recommendationIds:
|
|
4687
|
-
recommendationTemplateArn:
|
|
4688
|
-
recommendationTypes:
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
templatesLocation: output.templatesLocation != null ? de_S3Location(output.templatesLocation, context) : undefined,
|
|
4695
|
-
};
|
|
4048
|
+
return (0, smithy_client_1.take)(output, {
|
|
4049
|
+
appArn: smithy_client_1.expectString,
|
|
4050
|
+
assessmentArn: smithy_client_1.expectString,
|
|
4051
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4052
|
+
format: smithy_client_1.expectString,
|
|
4053
|
+
message: smithy_client_1.expectString,
|
|
4054
|
+
name: smithy_client_1.expectString,
|
|
4055
|
+
needsReplacements: smithy_client_1.expectBoolean,
|
|
4056
|
+
recommendationIds: smithy_client_1._json,
|
|
4057
|
+
recommendationTemplateArn: smithy_client_1.expectString,
|
|
4058
|
+
recommendationTypes: smithy_client_1._json,
|
|
4059
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4060
|
+
status: smithy_client_1.expectString,
|
|
4061
|
+
tags: smithy_client_1._json,
|
|
4062
|
+
templatesLocation: smithy_client_1._json,
|
|
4063
|
+
});
|
|
4696
4064
|
};
|
|
4697
4065
|
const de_RecommendationTemplateList = (output, context) => {
|
|
4698
4066
|
const retVal = (output || [])
|
|
4699
4067
|
.filter((e) => e != null)
|
|
4700
4068
|
.map((entry) => {
|
|
4701
|
-
if (entry === null) {
|
|
4702
|
-
return null;
|
|
4703
|
-
}
|
|
4704
4069
|
return de_RecommendationTemplate(entry, context);
|
|
4705
4070
|
});
|
|
4706
4071
|
return retVal;
|
|
4707
4072
|
};
|
|
4708
|
-
const de_RenderRecommendationTypeList = (output, context) => {
|
|
4709
|
-
const retVal = (output || [])
|
|
4710
|
-
.filter((e) => e != null)
|
|
4711
|
-
.map((entry) => {
|
|
4712
|
-
if (entry === null) {
|
|
4713
|
-
return null;
|
|
4714
|
-
}
|
|
4715
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4716
|
-
});
|
|
4717
|
-
return retVal;
|
|
4718
|
-
};
|
|
4719
4073
|
const de_ResiliencyPolicies = (output, context) => {
|
|
4720
4074
|
const retVal = (output || [])
|
|
4721
4075
|
.filter((e) => e != null)
|
|
4722
4076
|
.map((entry) => {
|
|
4723
|
-
if (entry === null) {
|
|
4724
|
-
return null;
|
|
4725
|
-
}
|
|
4726
4077
|
return de_ResiliencyPolicy(entry, context);
|
|
4727
4078
|
});
|
|
4728
4079
|
return retVal;
|
|
4729
4080
|
};
|
|
4730
4081
|
const de_ResiliencyPolicy = (output, context) => {
|
|
4731
|
-
return {
|
|
4732
|
-
creationTime:
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
4742
|
-
tier: (0, smithy_client_1.expectString)(output.tier),
|
|
4743
|
-
};
|
|
4744
|
-
};
|
|
4745
|
-
const de_ResiliencyScore = (output, context) => {
|
|
4746
|
-
return {
|
|
4747
|
-
disruptionScore: output.disruptionScore != null ? de_DisruptionResiliencyScore(output.disruptionScore, context) : undefined,
|
|
4748
|
-
score: (0, smithy_client_1.limitedParseDouble)(output.score),
|
|
4749
|
-
};
|
|
4750
|
-
};
|
|
4751
|
-
const de_ResourceError = (output, context) => {
|
|
4752
|
-
return {
|
|
4753
|
-
logicalResourceId: (0, smithy_client_1.expectString)(output.logicalResourceId),
|
|
4754
|
-
physicalResourceId: (0, smithy_client_1.expectString)(output.physicalResourceId),
|
|
4755
|
-
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
4756
|
-
};
|
|
4757
|
-
};
|
|
4758
|
-
const de_ResourceErrorList = (output, context) => {
|
|
4759
|
-
const retVal = (output || [])
|
|
4760
|
-
.filter((e) => e != null)
|
|
4761
|
-
.map((entry) => {
|
|
4762
|
-
if (entry === null) {
|
|
4763
|
-
return null;
|
|
4764
|
-
}
|
|
4765
|
-
return de_ResourceError(entry, context);
|
|
4766
|
-
});
|
|
4767
|
-
return retVal;
|
|
4768
|
-
};
|
|
4769
|
-
const de_ResourceErrorsDetails = (output, context) => {
|
|
4770
|
-
return {
|
|
4771
|
-
hasMoreErrors: (0, smithy_client_1.expectBoolean)(output.hasMoreErrors),
|
|
4772
|
-
resourceErrors: output.resourceErrors != null ? de_ResourceErrorList(output.resourceErrors, context) : undefined,
|
|
4773
|
-
};
|
|
4774
|
-
};
|
|
4775
|
-
const de_ResourceMapping = (output, context) => {
|
|
4776
|
-
return {
|
|
4777
|
-
appRegistryAppName: (0, smithy_client_1.expectString)(output.appRegistryAppName),
|
|
4778
|
-
eksSourceName: (0, smithy_client_1.expectString)(output.eksSourceName),
|
|
4779
|
-
logicalStackName: (0, smithy_client_1.expectString)(output.logicalStackName),
|
|
4780
|
-
mappingType: (0, smithy_client_1.expectString)(output.mappingType),
|
|
4781
|
-
physicalResourceId: output.physicalResourceId != null ? de_PhysicalResourceId(output.physicalResourceId, context) : undefined,
|
|
4782
|
-
resourceGroupName: (0, smithy_client_1.expectString)(output.resourceGroupName),
|
|
4783
|
-
resourceName: (0, smithy_client_1.expectString)(output.resourceName),
|
|
4784
|
-
terraformSourceName: (0, smithy_client_1.expectString)(output.terraformSourceName),
|
|
4785
|
-
};
|
|
4786
|
-
};
|
|
4787
|
-
const de_ResourceMappingList = (output, context) => {
|
|
4788
|
-
const retVal = (output || [])
|
|
4789
|
-
.filter((e) => e != null)
|
|
4790
|
-
.map((entry) => {
|
|
4791
|
-
if (entry === null) {
|
|
4792
|
-
return null;
|
|
4793
|
-
}
|
|
4794
|
-
return de_ResourceMapping(entry, context);
|
|
4082
|
+
return (0, smithy_client_1.take)(output, {
|
|
4083
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4084
|
+
dataLocationConstraint: smithy_client_1.expectString,
|
|
4085
|
+
estimatedCostTier: smithy_client_1.expectString,
|
|
4086
|
+
policy: smithy_client_1._json,
|
|
4087
|
+
policyArn: smithy_client_1.expectString,
|
|
4088
|
+
policyDescription: smithy_client_1.expectString,
|
|
4089
|
+
policyName: smithy_client_1.expectString,
|
|
4090
|
+
tags: smithy_client_1._json,
|
|
4091
|
+
tier: smithy_client_1.expectString,
|
|
4795
4092
|
});
|
|
4796
|
-
return retVal;
|
|
4797
4093
|
};
|
|
4798
|
-
const
|
|
4799
|
-
return {
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
};
|
|
4803
|
-
};
|
|
4804
|
-
const de_SopRecommendation = (output, context) => {
|
|
4805
|
-
return {
|
|
4806
|
-
appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
|
|
4807
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
4808
|
-
items: output.items != null ? de_RecommendationItemList(output.items, context) : undefined,
|
|
4809
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
4810
|
-
prerequisite: (0, smithy_client_1.expectString)(output.prerequisite),
|
|
4811
|
-
recommendationId: (0, smithy_client_1.expectString)(output.recommendationId),
|
|
4812
|
-
referenceId: (0, smithy_client_1.expectString)(output.referenceId),
|
|
4813
|
-
serviceType: (0, smithy_client_1.expectString)(output.serviceType),
|
|
4814
|
-
};
|
|
4815
|
-
};
|
|
4816
|
-
const de_SopRecommendationList = (output, context) => {
|
|
4817
|
-
const retVal = (output || [])
|
|
4818
|
-
.filter((e) => e != null)
|
|
4819
|
-
.map((entry) => {
|
|
4820
|
-
if (entry === null) {
|
|
4821
|
-
return null;
|
|
4822
|
-
}
|
|
4823
|
-
return de_SopRecommendation(entry, context);
|
|
4824
|
-
});
|
|
4825
|
-
return retVal;
|
|
4826
|
-
};
|
|
4827
|
-
const de_SuggestedChangesList = (output, context) => {
|
|
4828
|
-
const retVal = (output || [])
|
|
4829
|
-
.filter((e) => e != null)
|
|
4830
|
-
.map((entry) => {
|
|
4831
|
-
if (entry === null) {
|
|
4832
|
-
return null;
|
|
4833
|
-
}
|
|
4834
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4835
|
-
});
|
|
4836
|
-
return retVal;
|
|
4837
|
-
};
|
|
4838
|
-
const de_TagMap = (output, context) => {
|
|
4839
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4840
|
-
if (value === null) {
|
|
4841
|
-
return acc;
|
|
4842
|
-
}
|
|
4843
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
4844
|
-
return acc;
|
|
4845
|
-
}, {});
|
|
4846
|
-
};
|
|
4847
|
-
const de_TerraformSource = (output, context) => {
|
|
4848
|
-
return {
|
|
4849
|
-
s3StateFileUrl: (0, smithy_client_1.expectString)(output.s3StateFileUrl),
|
|
4850
|
-
};
|
|
4851
|
-
};
|
|
4852
|
-
const de_TerraformSourceList = (output, context) => {
|
|
4853
|
-
const retVal = (output || [])
|
|
4854
|
-
.filter((e) => e != null)
|
|
4855
|
-
.map((entry) => {
|
|
4856
|
-
if (entry === null) {
|
|
4857
|
-
return null;
|
|
4858
|
-
}
|
|
4859
|
-
return de_TerraformSource(entry, context);
|
|
4860
|
-
});
|
|
4861
|
-
return retVal;
|
|
4862
|
-
};
|
|
4863
|
-
const de_TestRecommendation = (output, context) => {
|
|
4864
|
-
return {
|
|
4865
|
-
appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
|
|
4866
|
-
dependsOnAlarms: output.dependsOnAlarms != null ? de_AlarmReferenceIdList(output.dependsOnAlarms, context) : undefined,
|
|
4867
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
4868
|
-
intent: (0, smithy_client_1.expectString)(output.intent),
|
|
4869
|
-
items: output.items != null ? de_RecommendationItemList(output.items, context) : undefined,
|
|
4870
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
4871
|
-
prerequisite: (0, smithy_client_1.expectString)(output.prerequisite),
|
|
4872
|
-
recommendationId: (0, smithy_client_1.expectString)(output.recommendationId),
|
|
4873
|
-
referenceId: (0, smithy_client_1.expectString)(output.referenceId),
|
|
4874
|
-
risk: (0, smithy_client_1.expectString)(output.risk),
|
|
4875
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
4876
|
-
};
|
|
4877
|
-
};
|
|
4878
|
-
const de_TestRecommendationList = (output, context) => {
|
|
4879
|
-
const retVal = (output || [])
|
|
4880
|
-
.filter((e) => e != null)
|
|
4881
|
-
.map((entry) => {
|
|
4882
|
-
if (entry === null) {
|
|
4883
|
-
return null;
|
|
4884
|
-
}
|
|
4885
|
-
return de_TestRecommendation(entry, context);
|
|
4886
|
-
});
|
|
4887
|
-
return retVal;
|
|
4888
|
-
};
|
|
4889
|
-
const de_UnsupportedResource = (output, context) => {
|
|
4890
|
-
return {
|
|
4891
|
-
logicalResourceId: output.logicalResourceId != null ? de_LogicalResourceId(output.logicalResourceId, context) : undefined,
|
|
4892
|
-
physicalResourceId: output.physicalResourceId != null ? de_PhysicalResourceId(output.physicalResourceId, context) : undefined,
|
|
4893
|
-
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
4894
|
-
unsupportedResourceStatus: (0, smithy_client_1.expectString)(output.unsupportedResourceStatus),
|
|
4895
|
-
};
|
|
4896
|
-
};
|
|
4897
|
-
const de_UnsupportedResourceList = (output, context) => {
|
|
4898
|
-
const retVal = (output || [])
|
|
4899
|
-
.filter((e) => e != null)
|
|
4900
|
-
.map((entry) => {
|
|
4901
|
-
if (entry === null) {
|
|
4902
|
-
return null;
|
|
4903
|
-
}
|
|
4904
|
-
return de_UnsupportedResource(entry, context);
|
|
4094
|
+
const de_ResiliencyScore = (output, context) => {
|
|
4095
|
+
return (0, smithy_client_1.take)(output, {
|
|
4096
|
+
disruptionScore: (_) => de_DisruptionResiliencyScore(_, context),
|
|
4097
|
+
score: smithy_client_1.limitedParseDouble,
|
|
4905
4098
|
});
|
|
4906
|
-
return retVal;
|
|
4907
4099
|
};
|
|
4908
4100
|
const deserializeMetadata = (output) => ({
|
|
4909
4101
|
httpStatusCode: output.statusCode,
|