@aws-sdk/client-marketplace-catalog 3.312.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 +157 -370
- package/dist-es/protocols/Aws_restJson1.js +133 -346
- package/package.json +6 -6
|
@@ -10,7 +10,7 @@ const se_CancelChangeSetCommand = async (input, context) => {
|
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {};
|
|
12
12
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CancelChangeSet";
|
|
13
|
-
const query = map({
|
|
13
|
+
const query = (0, smithy_client_1.map)({
|
|
14
14
|
catalog: [, (0, smithy_client_1.expectNonNull)(input.Catalog, `Catalog`)],
|
|
15
15
|
changeSetId: [, (0, smithy_client_1.expectNonNull)(input.ChangeSetId, `ChangeSetId`)],
|
|
16
16
|
});
|
|
@@ -31,7 +31,7 @@ const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
|
31
31
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
32
32
|
const headers = {};
|
|
33
33
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteResourcePolicy";
|
|
34
|
-
const query = map({
|
|
34
|
+
const query = (0, smithy_client_1.map)({
|
|
35
35
|
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
|
|
36
36
|
});
|
|
37
37
|
let body;
|
|
@@ -51,7 +51,7 @@ const se_DescribeChangeSetCommand = async (input, context) => {
|
|
|
51
51
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
52
52
|
const headers = {};
|
|
53
53
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeChangeSet";
|
|
54
|
-
const query = map({
|
|
54
|
+
const query = (0, smithy_client_1.map)({
|
|
55
55
|
catalog: [, (0, smithy_client_1.expectNonNull)(input.Catalog, `Catalog`)],
|
|
56
56
|
changeSetId: [, (0, smithy_client_1.expectNonNull)(input.ChangeSetId, `ChangeSetId`)],
|
|
57
57
|
});
|
|
@@ -72,7 +72,7 @@ const se_DescribeEntityCommand = async (input, context) => {
|
|
|
72
72
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
73
73
|
const headers = {};
|
|
74
74
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeEntity";
|
|
75
|
-
const query = map({
|
|
75
|
+
const query = (0, smithy_client_1.map)({
|
|
76
76
|
catalog: [, (0, smithy_client_1.expectNonNull)(input.Catalog, `Catalog`)],
|
|
77
77
|
entityId: [, (0, smithy_client_1.expectNonNull)(input.EntityId, `EntityId`)],
|
|
78
78
|
});
|
|
@@ -93,7 +93,7 @@ const se_GetResourcePolicyCommand = async (input, context) => {
|
|
|
93
93
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
94
94
|
const headers = {};
|
|
95
95
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetResourcePolicy";
|
|
96
|
-
const query = map({
|
|
96
|
+
const query = (0, smithy_client_1.map)({
|
|
97
97
|
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
|
|
98
98
|
});
|
|
99
99
|
let body;
|
|
@@ -116,13 +116,13 @@ const se_ListChangeSetsCommand = async (input, context) => {
|
|
|
116
116
|
};
|
|
117
117
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListChangeSets";
|
|
118
118
|
let body;
|
|
119
|
-
body = JSON.stringify({
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
});
|
|
119
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
120
|
+
Catalog: [],
|
|
121
|
+
FilterList: (_) => (0, smithy_client_1._json)(_),
|
|
122
|
+
MaxResults: [],
|
|
123
|
+
NextToken: [],
|
|
124
|
+
Sort: (_) => (0, smithy_client_1._json)(_),
|
|
125
|
+
}));
|
|
126
126
|
return new protocol_http_1.HttpRequest({
|
|
127
127
|
protocol,
|
|
128
128
|
hostname,
|
|
@@ -141,15 +141,15 @@ const se_ListEntitiesCommand = async (input, context) => {
|
|
|
141
141
|
};
|
|
142
142
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListEntities";
|
|
143
143
|
let body;
|
|
144
|
-
body = JSON.stringify({
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
});
|
|
144
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
145
|
+
Catalog: [],
|
|
146
|
+
EntityType: [],
|
|
147
|
+
FilterList: (_) => (0, smithy_client_1._json)(_),
|
|
148
|
+
MaxResults: [],
|
|
149
|
+
NextToken: [],
|
|
150
|
+
OwnershipType: [],
|
|
151
|
+
Sort: (_) => (0, smithy_client_1._json)(_),
|
|
152
|
+
}));
|
|
153
153
|
return new protocol_http_1.HttpRequest({
|
|
154
154
|
protocol,
|
|
155
155
|
hostname,
|
|
@@ -168,9 +168,9 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
168
168
|
};
|
|
169
169
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTagsForResource";
|
|
170
170
|
let body;
|
|
171
|
-
body = JSON.stringify({
|
|
172
|
-
|
|
173
|
-
});
|
|
171
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
172
|
+
ResourceArn: [],
|
|
173
|
+
}));
|
|
174
174
|
return new protocol_http_1.HttpRequest({
|
|
175
175
|
protocol,
|
|
176
176
|
hostname,
|
|
@@ -189,10 +189,10 @@ const se_PutResourcePolicyCommand = async (input, context) => {
|
|
|
189
189
|
};
|
|
190
190
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutResourcePolicy";
|
|
191
191
|
let body;
|
|
192
|
-
body = JSON.stringify({
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
});
|
|
192
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
193
|
+
Policy: [],
|
|
194
|
+
ResourceArn: [],
|
|
195
|
+
}));
|
|
196
196
|
return new protocol_http_1.HttpRequest({
|
|
197
197
|
protocol,
|
|
198
198
|
hostname,
|
|
@@ -211,13 +211,13 @@ const se_StartChangeSetCommand = async (input, context) => {
|
|
|
211
211
|
};
|
|
212
212
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartChangeSet";
|
|
213
213
|
let body;
|
|
214
|
-
body = JSON.stringify({
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
ClientRequestToken:
|
|
220
|
-
});
|
|
214
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
215
|
+
Catalog: [],
|
|
216
|
+
ChangeSet: (_) => (0, smithy_client_1._json)(_),
|
|
217
|
+
ChangeSetName: [],
|
|
218
|
+
ChangeSetTags: (_) => (0, smithy_client_1._json)(_),
|
|
219
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
220
|
+
}));
|
|
221
221
|
return new protocol_http_1.HttpRequest({
|
|
222
222
|
protocol,
|
|
223
223
|
hostname,
|
|
@@ -236,10 +236,10 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
236
236
|
};
|
|
237
237
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TagResource";
|
|
238
238
|
let body;
|
|
239
|
-
body = JSON.stringify({
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
});
|
|
239
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
240
|
+
ResourceArn: [],
|
|
241
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
242
|
+
}));
|
|
243
243
|
return new protocol_http_1.HttpRequest({
|
|
244
244
|
protocol,
|
|
245
245
|
hostname,
|
|
@@ -258,10 +258,10 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
258
258
|
};
|
|
259
259
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UntagResource";
|
|
260
260
|
let body;
|
|
261
|
-
body = JSON.stringify({
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
});
|
|
261
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
262
|
+
ResourceArn: [],
|
|
263
|
+
TagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
264
|
+
}));
|
|
265
265
|
return new protocol_http_1.HttpRequest({
|
|
266
266
|
protocol,
|
|
267
267
|
hostname,
|
|
@@ -277,16 +277,15 @@ const de_CancelChangeSetCommand = async (output, context) => {
|
|
|
277
277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
278
278
|
return de_CancelChangeSetCommandError(output, context);
|
|
279
279
|
}
|
|
280
|
-
const contents = map({
|
|
280
|
+
const contents = (0, smithy_client_1.map)({
|
|
281
281
|
$metadata: deserializeMetadata(output),
|
|
282
282
|
});
|
|
283
283
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
284
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
285
|
+
ChangeSetArn: smithy_client_1.expectString,
|
|
286
|
+
ChangeSetId: smithy_client_1.expectString,
|
|
287
|
+
});
|
|
288
|
+
Object.assign(contents, doc);
|
|
290
289
|
return contents;
|
|
291
290
|
};
|
|
292
291
|
exports.de_CancelChangeSetCommand = de_CancelChangeSetCommand;
|
|
@@ -317,10 +316,9 @@ const de_CancelChangeSetCommandError = async (output, context) => {
|
|
|
317
316
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
318
317
|
default:
|
|
319
318
|
const parsedBody = parsedOutput.body;
|
|
320
|
-
|
|
319
|
+
return throwDefaultError({
|
|
321
320
|
output,
|
|
322
321
|
parsedBody,
|
|
323
|
-
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
324
322
|
errorCode,
|
|
325
323
|
});
|
|
326
324
|
}
|
|
@@ -329,7 +327,7 @@ const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
|
329
327
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
330
328
|
return de_DeleteResourcePolicyCommandError(output, context);
|
|
331
329
|
}
|
|
332
|
-
const contents = map({
|
|
330
|
+
const contents = (0, smithy_client_1.map)({
|
|
333
331
|
$metadata: deserializeMetadata(output),
|
|
334
332
|
});
|
|
335
333
|
await collectBody(output.body, context);
|
|
@@ -360,10 +358,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
|
360
358
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
361
359
|
default:
|
|
362
360
|
const parsedBody = parsedOutput.body;
|
|
363
|
-
|
|
361
|
+
return throwDefaultError({
|
|
364
362
|
output,
|
|
365
363
|
parsedBody,
|
|
366
|
-
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
367
364
|
errorCode,
|
|
368
365
|
});
|
|
369
366
|
}
|
|
@@ -372,37 +369,22 @@ const de_DescribeChangeSetCommand = async (output, context) => {
|
|
|
372
369
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
373
370
|
return de_DescribeChangeSetCommandError(output, context);
|
|
374
371
|
}
|
|
375
|
-
const contents = map({
|
|
372
|
+
const contents = (0, smithy_client_1.map)({
|
|
376
373
|
$metadata: deserializeMetadata(output),
|
|
377
374
|
});
|
|
378
375
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
if (data.EndTime != null) {
|
|
392
|
-
contents.EndTime = (0, smithy_client_1.expectString)(data.EndTime);
|
|
393
|
-
}
|
|
394
|
-
if (data.FailureCode != null) {
|
|
395
|
-
contents.FailureCode = (0, smithy_client_1.expectString)(data.FailureCode);
|
|
396
|
-
}
|
|
397
|
-
if (data.FailureDescription != null) {
|
|
398
|
-
contents.FailureDescription = (0, smithy_client_1.expectString)(data.FailureDescription);
|
|
399
|
-
}
|
|
400
|
-
if (data.StartTime != null) {
|
|
401
|
-
contents.StartTime = (0, smithy_client_1.expectString)(data.StartTime);
|
|
402
|
-
}
|
|
403
|
-
if (data.Status != null) {
|
|
404
|
-
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
405
|
-
}
|
|
376
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
377
|
+
ChangeSet: smithy_client_1._json,
|
|
378
|
+
ChangeSetArn: smithy_client_1.expectString,
|
|
379
|
+
ChangeSetId: smithy_client_1.expectString,
|
|
380
|
+
ChangeSetName: smithy_client_1.expectString,
|
|
381
|
+
EndTime: smithy_client_1.expectString,
|
|
382
|
+
FailureCode: smithy_client_1.expectString,
|
|
383
|
+
FailureDescription: smithy_client_1.expectString,
|
|
384
|
+
StartTime: smithy_client_1.expectString,
|
|
385
|
+
Status: smithy_client_1.expectString,
|
|
386
|
+
});
|
|
387
|
+
Object.assign(contents, doc);
|
|
406
388
|
return contents;
|
|
407
389
|
};
|
|
408
390
|
exports.de_DescribeChangeSetCommand = de_DescribeChangeSetCommand;
|
|
@@ -430,10 +412,9 @@ const de_DescribeChangeSetCommandError = async (output, context) => {
|
|
|
430
412
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
431
413
|
default:
|
|
432
414
|
const parsedBody = parsedOutput.body;
|
|
433
|
-
|
|
415
|
+
return throwDefaultError({
|
|
434
416
|
output,
|
|
435
417
|
parsedBody,
|
|
436
|
-
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
437
418
|
errorCode,
|
|
438
419
|
});
|
|
439
420
|
}
|
|
@@ -442,25 +423,18 @@ const de_DescribeEntityCommand = async (output, context) => {
|
|
|
442
423
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
443
424
|
return de_DescribeEntityCommandError(output, context);
|
|
444
425
|
}
|
|
445
|
-
const contents = map({
|
|
426
|
+
const contents = (0, smithy_client_1.map)({
|
|
446
427
|
$metadata: deserializeMetadata(output),
|
|
447
428
|
});
|
|
448
429
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
}
|
|
458
|
-
if (data.EntityType != null) {
|
|
459
|
-
contents.EntityType = (0, smithy_client_1.expectString)(data.EntityType);
|
|
460
|
-
}
|
|
461
|
-
if (data.LastModifiedDate != null) {
|
|
462
|
-
contents.LastModifiedDate = (0, smithy_client_1.expectString)(data.LastModifiedDate);
|
|
463
|
-
}
|
|
430
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
431
|
+
Details: smithy_client_1.expectString,
|
|
432
|
+
EntityArn: smithy_client_1.expectString,
|
|
433
|
+
EntityIdentifier: smithy_client_1.expectString,
|
|
434
|
+
EntityType: smithy_client_1.expectString,
|
|
435
|
+
LastModifiedDate: smithy_client_1.expectString,
|
|
436
|
+
});
|
|
437
|
+
Object.assign(contents, doc);
|
|
464
438
|
return contents;
|
|
465
439
|
};
|
|
466
440
|
exports.de_DescribeEntityCommand = de_DescribeEntityCommand;
|
|
@@ -491,10 +465,9 @@ const de_DescribeEntityCommandError = async (output, context) => {
|
|
|
491
465
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
492
466
|
default:
|
|
493
467
|
const parsedBody = parsedOutput.body;
|
|
494
|
-
|
|
468
|
+
return throwDefaultError({
|
|
495
469
|
output,
|
|
496
470
|
parsedBody,
|
|
497
|
-
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
498
471
|
errorCode,
|
|
499
472
|
});
|
|
500
473
|
}
|
|
@@ -503,13 +476,14 @@ const de_GetResourcePolicyCommand = async (output, context) => {
|
|
|
503
476
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
504
477
|
return de_GetResourcePolicyCommandError(output, context);
|
|
505
478
|
}
|
|
506
|
-
const contents = map({
|
|
479
|
+
const contents = (0, smithy_client_1.map)({
|
|
507
480
|
$metadata: deserializeMetadata(output),
|
|
508
481
|
});
|
|
509
482
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
}
|
|
483
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
484
|
+
Policy: smithy_client_1.expectString,
|
|
485
|
+
});
|
|
486
|
+
Object.assign(contents, doc);
|
|
513
487
|
return contents;
|
|
514
488
|
};
|
|
515
489
|
exports.de_GetResourcePolicyCommand = de_GetResourcePolicyCommand;
|
|
@@ -537,10 +511,9 @@ const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
|
537
511
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
538
512
|
default:
|
|
539
513
|
const parsedBody = parsedOutput.body;
|
|
540
|
-
|
|
514
|
+
return throwDefaultError({
|
|
541
515
|
output,
|
|
542
516
|
parsedBody,
|
|
543
|
-
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
544
517
|
errorCode,
|
|
545
518
|
});
|
|
546
519
|
}
|
|
@@ -549,16 +522,15 @@ const de_ListChangeSetsCommand = async (output, context) => {
|
|
|
549
522
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
550
523
|
return de_ListChangeSetsCommandError(output, context);
|
|
551
524
|
}
|
|
552
|
-
const contents = map({
|
|
525
|
+
const contents = (0, smithy_client_1.map)({
|
|
553
526
|
$metadata: deserializeMetadata(output),
|
|
554
527
|
});
|
|
555
528
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
}
|
|
529
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
530
|
+
ChangeSetSummaryList: smithy_client_1._json,
|
|
531
|
+
NextToken: smithy_client_1.expectString,
|
|
532
|
+
});
|
|
533
|
+
Object.assign(contents, doc);
|
|
562
534
|
return contents;
|
|
563
535
|
};
|
|
564
536
|
exports.de_ListChangeSetsCommand = de_ListChangeSetsCommand;
|
|
@@ -583,10 +555,9 @@ const de_ListChangeSetsCommandError = async (output, context) => {
|
|
|
583
555
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
584
556
|
default:
|
|
585
557
|
const parsedBody = parsedOutput.body;
|
|
586
|
-
|
|
558
|
+
return throwDefaultError({
|
|
587
559
|
output,
|
|
588
560
|
parsedBody,
|
|
589
|
-
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
590
561
|
errorCode,
|
|
591
562
|
});
|
|
592
563
|
}
|
|
@@ -595,16 +566,15 @@ const de_ListEntitiesCommand = async (output, context) => {
|
|
|
595
566
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
596
567
|
return de_ListEntitiesCommandError(output, context);
|
|
597
568
|
}
|
|
598
|
-
const contents = map({
|
|
569
|
+
const contents = (0, smithy_client_1.map)({
|
|
599
570
|
$metadata: deserializeMetadata(output),
|
|
600
571
|
});
|
|
601
572
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
}
|
|
573
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
574
|
+
EntitySummaryList: smithy_client_1._json,
|
|
575
|
+
NextToken: smithy_client_1.expectString,
|
|
576
|
+
});
|
|
577
|
+
Object.assign(contents, doc);
|
|
608
578
|
return contents;
|
|
609
579
|
};
|
|
610
580
|
exports.de_ListEntitiesCommand = de_ListEntitiesCommand;
|
|
@@ -632,10 +602,9 @@ const de_ListEntitiesCommandError = async (output, context) => {
|
|
|
632
602
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
633
603
|
default:
|
|
634
604
|
const parsedBody = parsedOutput.body;
|
|
635
|
-
|
|
605
|
+
return throwDefaultError({
|
|
636
606
|
output,
|
|
637
607
|
parsedBody,
|
|
638
|
-
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
639
608
|
errorCode,
|
|
640
609
|
});
|
|
641
610
|
}
|
|
@@ -644,16 +613,15 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
644
613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
645
614
|
return de_ListTagsForResourceCommandError(output, context);
|
|
646
615
|
}
|
|
647
|
-
const contents = map({
|
|
616
|
+
const contents = (0, smithy_client_1.map)({
|
|
648
617
|
$metadata: deserializeMetadata(output),
|
|
649
618
|
});
|
|
650
619
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
}
|
|
620
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
621
|
+
ResourceArn: smithy_client_1.expectString,
|
|
622
|
+
Tags: smithy_client_1._json,
|
|
623
|
+
});
|
|
624
|
+
Object.assign(contents, doc);
|
|
657
625
|
return contents;
|
|
658
626
|
};
|
|
659
627
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -681,10 +649,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
681
649
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
682
650
|
default:
|
|
683
651
|
const parsedBody = parsedOutput.body;
|
|
684
|
-
|
|
652
|
+
return throwDefaultError({
|
|
685
653
|
output,
|
|
686
654
|
parsedBody,
|
|
687
|
-
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
688
655
|
errorCode,
|
|
689
656
|
});
|
|
690
657
|
}
|
|
@@ -693,7 +660,7 @@ const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
693
660
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
694
661
|
return de_PutResourcePolicyCommandError(output, context);
|
|
695
662
|
}
|
|
696
|
-
const contents = map({
|
|
663
|
+
const contents = (0, smithy_client_1.map)({
|
|
697
664
|
$metadata: deserializeMetadata(output),
|
|
698
665
|
});
|
|
699
666
|
await collectBody(output.body, context);
|
|
@@ -724,10 +691,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
|
724
691
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
725
692
|
default:
|
|
726
693
|
const parsedBody = parsedOutput.body;
|
|
727
|
-
|
|
694
|
+
return throwDefaultError({
|
|
728
695
|
output,
|
|
729
696
|
parsedBody,
|
|
730
|
-
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
731
697
|
errorCode,
|
|
732
698
|
});
|
|
733
699
|
}
|
|
@@ -736,16 +702,15 @@ const de_StartChangeSetCommand = async (output, context) => {
|
|
|
736
702
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
703
|
return de_StartChangeSetCommandError(output, context);
|
|
738
704
|
}
|
|
739
|
-
const contents = map({
|
|
705
|
+
const contents = (0, smithy_client_1.map)({
|
|
740
706
|
$metadata: deserializeMetadata(output),
|
|
741
707
|
});
|
|
742
708
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
}
|
|
709
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
710
|
+
ChangeSetArn: smithy_client_1.expectString,
|
|
711
|
+
ChangeSetId: smithy_client_1.expectString,
|
|
712
|
+
});
|
|
713
|
+
Object.assign(contents, doc);
|
|
749
714
|
return contents;
|
|
750
715
|
};
|
|
751
716
|
exports.de_StartChangeSetCommand = de_StartChangeSetCommand;
|
|
@@ -779,10 +744,9 @@ const de_StartChangeSetCommandError = async (output, context) => {
|
|
|
779
744
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
780
745
|
default:
|
|
781
746
|
const parsedBody = parsedOutput.body;
|
|
782
|
-
|
|
747
|
+
return throwDefaultError({
|
|
783
748
|
output,
|
|
784
749
|
parsedBody,
|
|
785
|
-
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
786
750
|
errorCode,
|
|
787
751
|
});
|
|
788
752
|
}
|
|
@@ -791,7 +755,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
791
755
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
756
|
return de_TagResourceCommandError(output, context);
|
|
793
757
|
}
|
|
794
|
-
const contents = map({
|
|
758
|
+
const contents = (0, smithy_client_1.map)({
|
|
795
759
|
$metadata: deserializeMetadata(output),
|
|
796
760
|
});
|
|
797
761
|
await collectBody(output.body, context);
|
|
@@ -822,10 +786,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
822
786
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
823
787
|
default:
|
|
824
788
|
const parsedBody = parsedOutput.body;
|
|
825
|
-
|
|
789
|
+
return throwDefaultError({
|
|
826
790
|
output,
|
|
827
791
|
parsedBody,
|
|
828
|
-
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
829
792
|
errorCode,
|
|
830
793
|
});
|
|
831
794
|
}
|
|
@@ -834,7 +797,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
834
797
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
835
798
|
return de_UntagResourceCommandError(output, context);
|
|
836
799
|
}
|
|
837
|
-
const contents = map({
|
|
800
|
+
const contents = (0, smithy_client_1.map)({
|
|
838
801
|
$metadata: deserializeMetadata(output),
|
|
839
802
|
});
|
|
840
803
|
await collectBody(output.body, context);
|
|
@@ -865,21 +828,21 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
865
828
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
866
829
|
default:
|
|
867
830
|
const parsedBody = parsedOutput.body;
|
|
868
|
-
|
|
831
|
+
return throwDefaultError({
|
|
869
832
|
output,
|
|
870
833
|
parsedBody,
|
|
871
|
-
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
872
834
|
errorCode,
|
|
873
835
|
});
|
|
874
836
|
}
|
|
875
837
|
};
|
|
876
|
-
const
|
|
838
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException);
|
|
877
839
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
878
|
-
const contents = map({});
|
|
840
|
+
const contents = (0, smithy_client_1.map)({});
|
|
879
841
|
const data = parsedOutput.body;
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
}
|
|
842
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
843
|
+
Message: smithy_client_1.expectString,
|
|
844
|
+
});
|
|
845
|
+
Object.assign(contents, doc);
|
|
883
846
|
const exception = new models_0_1.AccessDeniedException({
|
|
884
847
|
$metadata: deserializeMetadata(parsedOutput),
|
|
885
848
|
...contents,
|
|
@@ -887,11 +850,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
887
850
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
888
851
|
};
|
|
889
852
|
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
890
|
-
const contents = map({});
|
|
853
|
+
const contents = (0, smithy_client_1.map)({});
|
|
891
854
|
const data = parsedOutput.body;
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
}
|
|
855
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
856
|
+
Message: smithy_client_1.expectString,
|
|
857
|
+
});
|
|
858
|
+
Object.assign(contents, doc);
|
|
895
859
|
const exception = new models_0_1.InternalServiceException({
|
|
896
860
|
$metadata: deserializeMetadata(parsedOutput),
|
|
897
861
|
...contents,
|
|
@@ -899,11 +863,12 @@ const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
|
899
863
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
900
864
|
};
|
|
901
865
|
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
902
|
-
const contents = map({});
|
|
866
|
+
const contents = (0, smithy_client_1.map)({});
|
|
903
867
|
const data = parsedOutput.body;
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
}
|
|
868
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
869
|
+
Message: smithy_client_1.expectString,
|
|
870
|
+
});
|
|
871
|
+
Object.assign(contents, doc);
|
|
907
872
|
const exception = new models_0_1.ResourceInUseException({
|
|
908
873
|
$metadata: deserializeMetadata(parsedOutput),
|
|
909
874
|
...contents,
|
|
@@ -911,11 +876,12 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
911
876
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
912
877
|
};
|
|
913
878
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
914
|
-
const contents = map({});
|
|
879
|
+
const contents = (0, smithy_client_1.map)({});
|
|
915
880
|
const data = parsedOutput.body;
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
}
|
|
881
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
882
|
+
Message: smithy_client_1.expectString,
|
|
883
|
+
});
|
|
884
|
+
Object.assign(contents, doc);
|
|
919
885
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
920
886
|
$metadata: deserializeMetadata(parsedOutput),
|
|
921
887
|
...contents,
|
|
@@ -923,11 +889,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
923
889
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
924
890
|
};
|
|
925
891
|
const de_ResourceNotSupportedExceptionRes = async (parsedOutput, context) => {
|
|
926
|
-
const contents = map({});
|
|
892
|
+
const contents = (0, smithy_client_1.map)({});
|
|
927
893
|
const data = parsedOutput.body;
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
}
|
|
894
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
895
|
+
Message: smithy_client_1.expectString,
|
|
896
|
+
});
|
|
897
|
+
Object.assign(contents, doc);
|
|
931
898
|
const exception = new models_0_1.ResourceNotSupportedException({
|
|
932
899
|
$metadata: deserializeMetadata(parsedOutput),
|
|
933
900
|
...contents,
|
|
@@ -935,11 +902,12 @@ const de_ResourceNotSupportedExceptionRes = async (parsedOutput, context) => {
|
|
|
935
902
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
936
903
|
};
|
|
937
904
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
938
|
-
const contents = map({});
|
|
905
|
+
const contents = (0, smithy_client_1.map)({});
|
|
939
906
|
const data = parsedOutput.body;
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
}
|
|
907
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
908
|
+
Message: smithy_client_1.expectString,
|
|
909
|
+
});
|
|
910
|
+
Object.assign(contents, doc);
|
|
943
911
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
944
912
|
$metadata: deserializeMetadata(parsedOutput),
|
|
945
913
|
...contents,
|
|
@@ -947,11 +915,12 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
947
915
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
948
916
|
};
|
|
949
917
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
950
|
-
const contents = map({});
|
|
918
|
+
const contents = (0, smithy_client_1.map)({});
|
|
951
919
|
const data = parsedOutput.body;
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
}
|
|
920
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
921
|
+
Message: smithy_client_1.expectString,
|
|
922
|
+
});
|
|
923
|
+
Object.assign(contents, doc);
|
|
955
924
|
const exception = new models_0_1.ThrottlingException({
|
|
956
925
|
$metadata: deserializeMetadata(parsedOutput),
|
|
957
926
|
...contents,
|
|
@@ -959,200 +928,18 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
959
928
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
960
929
|
};
|
|
961
930
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
962
|
-
const contents = map({});
|
|
931
|
+
const contents = (0, smithy_client_1.map)({});
|
|
963
932
|
const data = parsedOutput.body;
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
}
|
|
933
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
934
|
+
Message: smithy_client_1.expectString,
|
|
935
|
+
});
|
|
936
|
+
Object.assign(contents, doc);
|
|
967
937
|
const exception = new models_0_1.ValidationException({
|
|
968
938
|
$metadata: deserializeMetadata(parsedOutput),
|
|
969
939
|
...contents,
|
|
970
940
|
});
|
|
971
941
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
972
942
|
};
|
|
973
|
-
const se_Change = (input, context) => {
|
|
974
|
-
return {
|
|
975
|
-
...(input.ChangeName != null && { ChangeName: input.ChangeName }),
|
|
976
|
-
...(input.ChangeType != null && { ChangeType: input.ChangeType }),
|
|
977
|
-
...(input.Details != null && { Details: input.Details }),
|
|
978
|
-
...(input.Entity != null && { Entity: se_Entity(input.Entity, context) }),
|
|
979
|
-
...(input.EntityTags != null && { EntityTags: se_TagList(input.EntityTags, context) }),
|
|
980
|
-
};
|
|
981
|
-
};
|
|
982
|
-
const se_Entity = (input, context) => {
|
|
983
|
-
return {
|
|
984
|
-
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
985
|
-
...(input.Type != null && { Type: input.Type }),
|
|
986
|
-
};
|
|
987
|
-
};
|
|
988
|
-
const se_Filter = (input, context) => {
|
|
989
|
-
return {
|
|
990
|
-
...(input.Name != null && { Name: input.Name }),
|
|
991
|
-
...(input.ValueList != null && { ValueList: se_ValueList(input.ValueList, context) }),
|
|
992
|
-
};
|
|
993
|
-
};
|
|
994
|
-
const se_FilterList = (input, context) => {
|
|
995
|
-
return input
|
|
996
|
-
.filter((e) => e != null)
|
|
997
|
-
.map((entry) => {
|
|
998
|
-
return se_Filter(entry, context);
|
|
999
|
-
});
|
|
1000
|
-
};
|
|
1001
|
-
const se_RequestedChangeList = (input, context) => {
|
|
1002
|
-
return input
|
|
1003
|
-
.filter((e) => e != null)
|
|
1004
|
-
.map((entry) => {
|
|
1005
|
-
return se_Change(entry, context);
|
|
1006
|
-
});
|
|
1007
|
-
};
|
|
1008
|
-
const se_Sort = (input, context) => {
|
|
1009
|
-
return {
|
|
1010
|
-
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
1011
|
-
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
1012
|
-
};
|
|
1013
|
-
};
|
|
1014
|
-
const se_Tag = (input, context) => {
|
|
1015
|
-
return {
|
|
1016
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1017
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1018
|
-
};
|
|
1019
|
-
};
|
|
1020
|
-
const se_TagKeyList = (input, context) => {
|
|
1021
|
-
return input
|
|
1022
|
-
.filter((e) => e != null)
|
|
1023
|
-
.map((entry) => {
|
|
1024
|
-
return entry;
|
|
1025
|
-
});
|
|
1026
|
-
};
|
|
1027
|
-
const se_TagList = (input, context) => {
|
|
1028
|
-
return input
|
|
1029
|
-
.filter((e) => e != null)
|
|
1030
|
-
.map((entry) => {
|
|
1031
|
-
return se_Tag(entry, context);
|
|
1032
|
-
});
|
|
1033
|
-
};
|
|
1034
|
-
const se_ValueList = (input, context) => {
|
|
1035
|
-
return input
|
|
1036
|
-
.filter((e) => e != null)
|
|
1037
|
-
.map((entry) => {
|
|
1038
|
-
return entry;
|
|
1039
|
-
});
|
|
1040
|
-
};
|
|
1041
|
-
const de_ChangeSetDescription = (output, context) => {
|
|
1042
|
-
const retVal = (output || [])
|
|
1043
|
-
.filter((e) => e != null)
|
|
1044
|
-
.map((entry) => {
|
|
1045
|
-
if (entry === null) {
|
|
1046
|
-
return null;
|
|
1047
|
-
}
|
|
1048
|
-
return de_ChangeSummary(entry, context);
|
|
1049
|
-
});
|
|
1050
|
-
return retVal;
|
|
1051
|
-
};
|
|
1052
|
-
const de_ChangeSetSummaryList = (output, context) => {
|
|
1053
|
-
const retVal = (output || [])
|
|
1054
|
-
.filter((e) => e != null)
|
|
1055
|
-
.map((entry) => {
|
|
1056
|
-
if (entry === null) {
|
|
1057
|
-
return null;
|
|
1058
|
-
}
|
|
1059
|
-
return de_ChangeSetSummaryListItem(entry, context);
|
|
1060
|
-
});
|
|
1061
|
-
return retVal;
|
|
1062
|
-
};
|
|
1063
|
-
const de_ChangeSetSummaryListItem = (output, context) => {
|
|
1064
|
-
return {
|
|
1065
|
-
ChangeSetArn: (0, smithy_client_1.expectString)(output.ChangeSetArn),
|
|
1066
|
-
ChangeSetId: (0, smithy_client_1.expectString)(output.ChangeSetId),
|
|
1067
|
-
ChangeSetName: (0, smithy_client_1.expectString)(output.ChangeSetName),
|
|
1068
|
-
EndTime: (0, smithy_client_1.expectString)(output.EndTime),
|
|
1069
|
-
EntityIdList: output.EntityIdList != null ? de_ResourceIdList(output.EntityIdList, context) : undefined,
|
|
1070
|
-
FailureCode: (0, smithy_client_1.expectString)(output.FailureCode),
|
|
1071
|
-
StartTime: (0, smithy_client_1.expectString)(output.StartTime),
|
|
1072
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1073
|
-
};
|
|
1074
|
-
};
|
|
1075
|
-
const de_ChangeSummary = (output, context) => {
|
|
1076
|
-
return {
|
|
1077
|
-
ChangeName: (0, smithy_client_1.expectString)(output.ChangeName),
|
|
1078
|
-
ChangeType: (0, smithy_client_1.expectString)(output.ChangeType),
|
|
1079
|
-
Details: (0, smithy_client_1.expectString)(output.Details),
|
|
1080
|
-
Entity: output.Entity != null ? de_Entity(output.Entity, context) : undefined,
|
|
1081
|
-
ErrorDetailList: output.ErrorDetailList != null ? de_ErrorDetailList(output.ErrorDetailList, context) : undefined,
|
|
1082
|
-
};
|
|
1083
|
-
};
|
|
1084
|
-
const de_Entity = (output, context) => {
|
|
1085
|
-
return {
|
|
1086
|
-
Identifier: (0, smithy_client_1.expectString)(output.Identifier),
|
|
1087
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1088
|
-
};
|
|
1089
|
-
};
|
|
1090
|
-
const de_EntitySummary = (output, context) => {
|
|
1091
|
-
return {
|
|
1092
|
-
EntityArn: (0, smithy_client_1.expectString)(output.EntityArn),
|
|
1093
|
-
EntityId: (0, smithy_client_1.expectString)(output.EntityId),
|
|
1094
|
-
EntityType: (0, smithy_client_1.expectString)(output.EntityType),
|
|
1095
|
-
LastModifiedDate: (0, smithy_client_1.expectString)(output.LastModifiedDate),
|
|
1096
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1097
|
-
Visibility: (0, smithy_client_1.expectString)(output.Visibility),
|
|
1098
|
-
};
|
|
1099
|
-
};
|
|
1100
|
-
const de_EntitySummaryList = (output, context) => {
|
|
1101
|
-
const retVal = (output || [])
|
|
1102
|
-
.filter((e) => e != null)
|
|
1103
|
-
.map((entry) => {
|
|
1104
|
-
if (entry === null) {
|
|
1105
|
-
return null;
|
|
1106
|
-
}
|
|
1107
|
-
return de_EntitySummary(entry, context);
|
|
1108
|
-
});
|
|
1109
|
-
return retVal;
|
|
1110
|
-
};
|
|
1111
|
-
const de_ErrorDetail = (output, context) => {
|
|
1112
|
-
return {
|
|
1113
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1114
|
-
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
1115
|
-
};
|
|
1116
|
-
};
|
|
1117
|
-
const de_ErrorDetailList = (output, context) => {
|
|
1118
|
-
const retVal = (output || [])
|
|
1119
|
-
.filter((e) => e != null)
|
|
1120
|
-
.map((entry) => {
|
|
1121
|
-
if (entry === null) {
|
|
1122
|
-
return null;
|
|
1123
|
-
}
|
|
1124
|
-
return de_ErrorDetail(entry, context);
|
|
1125
|
-
});
|
|
1126
|
-
return retVal;
|
|
1127
|
-
};
|
|
1128
|
-
const de_ResourceIdList = (output, context) => {
|
|
1129
|
-
const retVal = (output || [])
|
|
1130
|
-
.filter((e) => e != null)
|
|
1131
|
-
.map((entry) => {
|
|
1132
|
-
if (entry === null) {
|
|
1133
|
-
return null;
|
|
1134
|
-
}
|
|
1135
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1136
|
-
});
|
|
1137
|
-
return retVal;
|
|
1138
|
-
};
|
|
1139
|
-
const de_Tag = (output, context) => {
|
|
1140
|
-
return {
|
|
1141
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
1142
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1143
|
-
};
|
|
1144
|
-
};
|
|
1145
|
-
const de_TagList = (output, context) => {
|
|
1146
|
-
const retVal = (output || [])
|
|
1147
|
-
.filter((e) => e != null)
|
|
1148
|
-
.map((entry) => {
|
|
1149
|
-
if (entry === null) {
|
|
1150
|
-
return null;
|
|
1151
|
-
}
|
|
1152
|
-
return de_Tag(entry, context);
|
|
1153
|
-
});
|
|
1154
|
-
return retVal;
|
|
1155
|
-
};
|
|
1156
943
|
const deserializeMetadata = (output) => ({
|
|
1157
944
|
httpStatusCode: output.statusCode,
|
|
1158
945
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|