@aws-sdk/client-resource-explorer-2 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 +248 -479
- package/dist-es/protocols/Aws_restJson1.js +221 -452
- package/package.json +6 -6
|
@@ -13,9 +13,9 @@ const se_AssociateDefaultViewCommand = async (input, context) => {
|
|
|
13
13
|
};
|
|
14
14
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssociateDefaultView";
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
|
|
18
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
ViewArn: [],
|
|
18
|
+
}));
|
|
19
19
|
return new protocol_http_1.HttpRequest({
|
|
20
20
|
protocol,
|
|
21
21
|
hostname,
|
|
@@ -34,9 +34,9 @@ const se_BatchGetViewCommand = async (input, context) => {
|
|
|
34
34
|
};
|
|
35
35
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetView";
|
|
36
36
|
let body;
|
|
37
|
-
body = JSON.stringify({
|
|
38
|
-
|
|
39
|
-
});
|
|
37
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
38
|
+
ViewArns: (_) => (0, smithy_client_1._json)(_),
|
|
39
|
+
}));
|
|
40
40
|
return new protocol_http_1.HttpRequest({
|
|
41
41
|
protocol,
|
|
42
42
|
hostname,
|
|
@@ -55,10 +55,10 @@ const se_CreateIndexCommand = async (input, context) => {
|
|
|
55
55
|
};
|
|
56
56
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateIndex";
|
|
57
57
|
let body;
|
|
58
|
-
body = JSON.stringify({
|
|
59
|
-
ClientToken:
|
|
60
|
-
|
|
61
|
-
});
|
|
58
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
59
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
60
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
61
|
+
}));
|
|
62
62
|
return new protocol_http_1.HttpRequest({
|
|
63
63
|
protocol,
|
|
64
64
|
hostname,
|
|
@@ -77,15 +77,13 @@ const se_CreateViewCommand = async (input, context) => {
|
|
|
77
77
|
};
|
|
78
78
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateView";
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify({
|
|
81
|
-
ClientToken:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
...(input.ViewName != null && { ViewName: input.ViewName }),
|
|
88
|
-
});
|
|
80
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
81
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
82
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
83
|
+
IncludedProperties: (_) => (0, smithy_client_1._json)(_),
|
|
84
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
85
|
+
ViewName: [],
|
|
86
|
+
}));
|
|
89
87
|
return new protocol_http_1.HttpRequest({
|
|
90
88
|
protocol,
|
|
91
89
|
hostname,
|
|
@@ -104,9 +102,9 @@ const se_DeleteIndexCommand = async (input, context) => {
|
|
|
104
102
|
};
|
|
105
103
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteIndex";
|
|
106
104
|
let body;
|
|
107
|
-
body = JSON.stringify({
|
|
108
|
-
|
|
109
|
-
});
|
|
105
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
106
|
+
Arn: [],
|
|
107
|
+
}));
|
|
110
108
|
return new protocol_http_1.HttpRequest({
|
|
111
109
|
protocol,
|
|
112
110
|
hostname,
|
|
@@ -125,9 +123,9 @@ const se_DeleteViewCommand = async (input, context) => {
|
|
|
125
123
|
};
|
|
126
124
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteView";
|
|
127
125
|
let body;
|
|
128
|
-
body = JSON.stringify({
|
|
129
|
-
|
|
130
|
-
});
|
|
126
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
127
|
+
ViewArn: [],
|
|
128
|
+
}));
|
|
131
129
|
return new protocol_http_1.HttpRequest({
|
|
132
130
|
protocol,
|
|
133
131
|
hostname,
|
|
@@ -203,9 +201,9 @@ const se_GetViewCommand = async (input, context) => {
|
|
|
203
201
|
};
|
|
204
202
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetView";
|
|
205
203
|
let body;
|
|
206
|
-
body = JSON.stringify({
|
|
207
|
-
|
|
208
|
-
});
|
|
204
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
205
|
+
ViewArn: [],
|
|
206
|
+
}));
|
|
209
207
|
return new protocol_http_1.HttpRequest({
|
|
210
208
|
protocol,
|
|
211
209
|
hostname,
|
|
@@ -224,12 +222,12 @@ const se_ListIndexesCommand = async (input, context) => {
|
|
|
224
222
|
};
|
|
225
223
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListIndexes";
|
|
226
224
|
let body;
|
|
227
|
-
body = JSON.stringify({
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
});
|
|
225
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
226
|
+
MaxResults: [],
|
|
227
|
+
NextToken: [],
|
|
228
|
+
Regions: (_) => (0, smithy_client_1._json)(_),
|
|
229
|
+
Type: [],
|
|
230
|
+
}));
|
|
233
231
|
return new protocol_http_1.HttpRequest({
|
|
234
232
|
protocol,
|
|
235
233
|
hostname,
|
|
@@ -248,10 +246,10 @@ const se_ListSupportedResourceTypesCommand = async (input, context) => {
|
|
|
248
246
|
};
|
|
249
247
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListSupportedResourceTypes";
|
|
250
248
|
let body;
|
|
251
|
-
body = JSON.stringify({
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
});
|
|
249
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
250
|
+
MaxResults: [],
|
|
251
|
+
NextToken: [],
|
|
252
|
+
}));
|
|
255
253
|
return new protocol_http_1.HttpRequest({
|
|
256
254
|
protocol,
|
|
257
255
|
hostname,
|
|
@@ -287,10 +285,10 @@ const se_ListViewsCommand = async (input, context) => {
|
|
|
287
285
|
};
|
|
288
286
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListViews";
|
|
289
287
|
let body;
|
|
290
|
-
body = JSON.stringify({
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
});
|
|
288
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
289
|
+
MaxResults: [],
|
|
290
|
+
NextToken: [],
|
|
291
|
+
}));
|
|
294
292
|
return new protocol_http_1.HttpRequest({
|
|
295
293
|
protocol,
|
|
296
294
|
hostname,
|
|
@@ -309,12 +307,12 @@ const se_SearchCommand = async (input, context) => {
|
|
|
309
307
|
};
|
|
310
308
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/Search";
|
|
311
309
|
let body;
|
|
312
|
-
body = JSON.stringify({
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
});
|
|
310
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
311
|
+
MaxResults: [],
|
|
312
|
+
NextToken: [],
|
|
313
|
+
QueryString: [],
|
|
314
|
+
ViewArn: [],
|
|
315
|
+
}));
|
|
318
316
|
return new protocol_http_1.HttpRequest({
|
|
319
317
|
protocol,
|
|
320
318
|
hostname,
|
|
@@ -334,9 +332,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
334
332
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
335
333
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
336
334
|
let body;
|
|
337
|
-
body = JSON.stringify({
|
|
338
|
-
|
|
339
|
-
});
|
|
335
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
336
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
337
|
+
}));
|
|
340
338
|
return new protocol_http_1.HttpRequest({
|
|
341
339
|
protocol,
|
|
342
340
|
hostname,
|
|
@@ -353,7 +351,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
353
351
|
const headers = {};
|
|
354
352
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
355
353
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
356
|
-
const query = map({
|
|
354
|
+
const query = (0, smithy_client_1.map)({
|
|
357
355
|
tagKeys: [
|
|
358
356
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
359
357
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -379,10 +377,10 @@ const se_UpdateIndexTypeCommand = async (input, context) => {
|
|
|
379
377
|
};
|
|
380
378
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateIndexType";
|
|
381
379
|
let body;
|
|
382
|
-
body = JSON.stringify({
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
});
|
|
380
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
381
|
+
Arn: [],
|
|
382
|
+
Type: [],
|
|
383
|
+
}));
|
|
386
384
|
return new protocol_http_1.HttpRequest({
|
|
387
385
|
protocol,
|
|
388
386
|
hostname,
|
|
@@ -401,13 +399,11 @@ const se_UpdateViewCommand = async (input, context) => {
|
|
|
401
399
|
};
|
|
402
400
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateView";
|
|
403
401
|
let body;
|
|
404
|
-
body = JSON.stringify({
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
...(input.ViewArn != null && { ViewArn: input.ViewArn }),
|
|
410
|
-
});
|
|
402
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
403
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
404
|
+
IncludedProperties: (_) => (0, smithy_client_1._json)(_),
|
|
405
|
+
ViewArn: [],
|
|
406
|
+
}));
|
|
411
407
|
return new protocol_http_1.HttpRequest({
|
|
412
408
|
protocol,
|
|
413
409
|
hostname,
|
|
@@ -423,13 +419,14 @@ const de_AssociateDefaultViewCommand = async (output, context) => {
|
|
|
423
419
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
424
420
|
return de_AssociateDefaultViewCommandError(output, context);
|
|
425
421
|
}
|
|
426
|
-
const contents = map({
|
|
422
|
+
const contents = (0, smithy_client_1.map)({
|
|
427
423
|
$metadata: deserializeMetadata(output),
|
|
428
424
|
});
|
|
429
425
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
}
|
|
426
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
427
|
+
ViewArn: smithy_client_1.expectString,
|
|
428
|
+
});
|
|
429
|
+
Object.assign(contents, doc);
|
|
433
430
|
return contents;
|
|
434
431
|
};
|
|
435
432
|
exports.de_AssociateDefaultViewCommand = de_AssociateDefaultViewCommand;
|
|
@@ -457,10 +454,9 @@ const de_AssociateDefaultViewCommandError = async (output, context) => {
|
|
|
457
454
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
458
455
|
default:
|
|
459
456
|
const parsedBody = parsedOutput.body;
|
|
460
|
-
|
|
457
|
+
return throwDefaultError({
|
|
461
458
|
output,
|
|
462
459
|
parsedBody,
|
|
463
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
464
460
|
errorCode,
|
|
465
461
|
});
|
|
466
462
|
}
|
|
@@ -469,16 +465,15 @@ const de_BatchGetViewCommand = async (output, context) => {
|
|
|
469
465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
470
466
|
return de_BatchGetViewCommandError(output, context);
|
|
471
467
|
}
|
|
472
|
-
const contents = map({
|
|
468
|
+
const contents = (0, smithy_client_1.map)({
|
|
473
469
|
$metadata: deserializeMetadata(output),
|
|
474
470
|
});
|
|
475
471
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
}
|
|
472
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
473
|
+
Errors: smithy_client_1._json,
|
|
474
|
+
Views: (_) => de_ViewList(_, context),
|
|
475
|
+
});
|
|
476
|
+
Object.assign(contents, doc);
|
|
482
477
|
return contents;
|
|
483
478
|
};
|
|
484
479
|
exports.de_BatchGetViewCommand = de_BatchGetViewCommand;
|
|
@@ -506,10 +501,9 @@ const de_BatchGetViewCommandError = async (output, context) => {
|
|
|
506
501
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
507
502
|
default:
|
|
508
503
|
const parsedBody = parsedOutput.body;
|
|
509
|
-
|
|
504
|
+
return throwDefaultError({
|
|
510
505
|
output,
|
|
511
506
|
parsedBody,
|
|
512
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
513
507
|
errorCode,
|
|
514
508
|
});
|
|
515
509
|
}
|
|
@@ -518,19 +512,16 @@ const de_CreateIndexCommand = async (output, context) => {
|
|
|
518
512
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
519
513
|
return de_CreateIndexCommandError(output, context);
|
|
520
514
|
}
|
|
521
|
-
const contents = map({
|
|
515
|
+
const contents = (0, smithy_client_1.map)({
|
|
522
516
|
$metadata: deserializeMetadata(output),
|
|
523
517
|
});
|
|
524
518
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
if (data.State != null) {
|
|
532
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
533
|
-
}
|
|
519
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
520
|
+
Arn: smithy_client_1.expectString,
|
|
521
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
522
|
+
State: smithy_client_1.expectString,
|
|
523
|
+
});
|
|
524
|
+
Object.assign(contents, doc);
|
|
534
525
|
return contents;
|
|
535
526
|
};
|
|
536
527
|
exports.de_CreateIndexCommand = de_CreateIndexCommand;
|
|
@@ -558,10 +549,9 @@ const de_CreateIndexCommandError = async (output, context) => {
|
|
|
558
549
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
559
550
|
default:
|
|
560
551
|
const parsedBody = parsedOutput.body;
|
|
561
|
-
|
|
552
|
+
return throwDefaultError({
|
|
562
553
|
output,
|
|
563
554
|
parsedBody,
|
|
564
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
565
555
|
errorCode,
|
|
566
556
|
});
|
|
567
557
|
}
|
|
@@ -570,13 +560,14 @@ const de_CreateViewCommand = async (output, context) => {
|
|
|
570
560
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
571
561
|
return de_CreateViewCommandError(output, context);
|
|
572
562
|
}
|
|
573
|
-
const contents = map({
|
|
563
|
+
const contents = (0, smithy_client_1.map)({
|
|
574
564
|
$metadata: deserializeMetadata(output),
|
|
575
565
|
});
|
|
576
566
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
}
|
|
567
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
568
|
+
View: (_) => de_View(_, context),
|
|
569
|
+
});
|
|
570
|
+
Object.assign(contents, doc);
|
|
580
571
|
return contents;
|
|
581
572
|
};
|
|
582
573
|
exports.de_CreateViewCommand = de_CreateViewCommand;
|
|
@@ -610,10 +601,9 @@ const de_CreateViewCommandError = async (output, context) => {
|
|
|
610
601
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
611
602
|
default:
|
|
612
603
|
const parsedBody = parsedOutput.body;
|
|
613
|
-
|
|
604
|
+
return throwDefaultError({
|
|
614
605
|
output,
|
|
615
606
|
parsedBody,
|
|
616
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
617
607
|
errorCode,
|
|
618
608
|
});
|
|
619
609
|
}
|
|
@@ -622,19 +612,16 @@ const de_DeleteIndexCommand = async (output, context) => {
|
|
|
622
612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
623
613
|
return de_DeleteIndexCommandError(output, context);
|
|
624
614
|
}
|
|
625
|
-
const contents = map({
|
|
615
|
+
const contents = (0, smithy_client_1.map)({
|
|
626
616
|
$metadata: deserializeMetadata(output),
|
|
627
617
|
});
|
|
628
618
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
if (data.State != null) {
|
|
636
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
637
|
-
}
|
|
619
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
620
|
+
Arn: smithy_client_1.expectString,
|
|
621
|
+
LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
622
|
+
State: smithy_client_1.expectString,
|
|
623
|
+
});
|
|
624
|
+
Object.assign(contents, doc);
|
|
638
625
|
return contents;
|
|
639
626
|
};
|
|
640
627
|
exports.de_DeleteIndexCommand = de_DeleteIndexCommand;
|
|
@@ -662,10 +649,9 @@ const de_DeleteIndexCommandError = async (output, context) => {
|
|
|
662
649
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
663
650
|
default:
|
|
664
651
|
const parsedBody = parsedOutput.body;
|
|
665
|
-
|
|
652
|
+
return throwDefaultError({
|
|
666
653
|
output,
|
|
667
654
|
parsedBody,
|
|
668
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
669
655
|
errorCode,
|
|
670
656
|
});
|
|
671
657
|
}
|
|
@@ -674,13 +660,14 @@ const de_DeleteViewCommand = async (output, context) => {
|
|
|
674
660
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
675
661
|
return de_DeleteViewCommandError(output, context);
|
|
676
662
|
}
|
|
677
|
-
const contents = map({
|
|
663
|
+
const contents = (0, smithy_client_1.map)({
|
|
678
664
|
$metadata: deserializeMetadata(output),
|
|
679
665
|
});
|
|
680
666
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
}
|
|
667
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
668
|
+
ViewArn: smithy_client_1.expectString,
|
|
669
|
+
});
|
|
670
|
+
Object.assign(contents, doc);
|
|
684
671
|
return contents;
|
|
685
672
|
};
|
|
686
673
|
exports.de_DeleteViewCommand = de_DeleteViewCommand;
|
|
@@ -711,10 +698,9 @@ const de_DeleteViewCommandError = async (output, context) => {
|
|
|
711
698
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
712
699
|
default:
|
|
713
700
|
const parsedBody = parsedOutput.body;
|
|
714
|
-
|
|
701
|
+
return throwDefaultError({
|
|
715
702
|
output,
|
|
716
703
|
parsedBody,
|
|
717
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
718
704
|
errorCode,
|
|
719
705
|
});
|
|
720
706
|
}
|
|
@@ -723,7 +709,7 @@ const de_DisassociateDefaultViewCommand = async (output, context) => {
|
|
|
723
709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
724
710
|
return de_DisassociateDefaultViewCommandError(output, context);
|
|
725
711
|
}
|
|
726
|
-
const contents = map({
|
|
712
|
+
const contents = (0, smithy_client_1.map)({
|
|
727
713
|
$metadata: deserializeMetadata(output),
|
|
728
714
|
});
|
|
729
715
|
await collectBody(output.body, context);
|
|
@@ -751,10 +737,9 @@ const de_DisassociateDefaultViewCommandError = async (output, context) => {
|
|
|
751
737
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
752
738
|
default:
|
|
753
739
|
const parsedBody = parsedOutput.body;
|
|
754
|
-
|
|
740
|
+
return throwDefaultError({
|
|
755
741
|
output,
|
|
756
742
|
parsedBody,
|
|
757
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
758
743
|
errorCode,
|
|
759
744
|
});
|
|
760
745
|
}
|
|
@@ -763,13 +748,14 @@ const de_GetDefaultViewCommand = async (output, context) => {
|
|
|
763
748
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
764
749
|
return de_GetDefaultViewCommandError(output, context);
|
|
765
750
|
}
|
|
766
|
-
const contents = map({
|
|
751
|
+
const contents = (0, smithy_client_1.map)({
|
|
767
752
|
$metadata: deserializeMetadata(output),
|
|
768
753
|
});
|
|
769
754
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
}
|
|
755
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
756
|
+
ViewArn: smithy_client_1.expectString,
|
|
757
|
+
});
|
|
758
|
+
Object.assign(contents, doc);
|
|
773
759
|
return contents;
|
|
774
760
|
};
|
|
775
761
|
exports.de_GetDefaultViewCommand = de_GetDefaultViewCommand;
|
|
@@ -797,10 +783,9 @@ const de_GetDefaultViewCommandError = async (output, context) => {
|
|
|
797
783
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
798
784
|
default:
|
|
799
785
|
const parsedBody = parsedOutput.body;
|
|
800
|
-
|
|
786
|
+
return throwDefaultError({
|
|
801
787
|
output,
|
|
802
788
|
parsedBody,
|
|
803
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
804
789
|
errorCode,
|
|
805
790
|
});
|
|
806
791
|
}
|
|
@@ -809,34 +794,21 @@ const de_GetIndexCommand = async (output, context) => {
|
|
|
809
794
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
810
795
|
return de_GetIndexCommandError(output, context);
|
|
811
796
|
}
|
|
812
|
-
const contents = map({
|
|
797
|
+
const contents = (0, smithy_client_1.map)({
|
|
813
798
|
$metadata: deserializeMetadata(output),
|
|
814
799
|
});
|
|
815
800
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
}
|
|
828
|
-
if (data.ReplicatingTo != null) {
|
|
829
|
-
contents.ReplicatingTo = de_RegionList(data.ReplicatingTo, context);
|
|
830
|
-
}
|
|
831
|
-
if (data.State != null) {
|
|
832
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
833
|
-
}
|
|
834
|
-
if (data.Tags != null) {
|
|
835
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
836
|
-
}
|
|
837
|
-
if (data.Type != null) {
|
|
838
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
839
|
-
}
|
|
801
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
802
|
+
Arn: smithy_client_1.expectString,
|
|
803
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
804
|
+
LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
805
|
+
ReplicatingFrom: smithy_client_1._json,
|
|
806
|
+
ReplicatingTo: smithy_client_1._json,
|
|
807
|
+
State: smithy_client_1.expectString,
|
|
808
|
+
Tags: smithy_client_1._json,
|
|
809
|
+
Type: smithy_client_1.expectString,
|
|
810
|
+
});
|
|
811
|
+
Object.assign(contents, doc);
|
|
840
812
|
return contents;
|
|
841
813
|
};
|
|
842
814
|
exports.de_GetIndexCommand = de_GetIndexCommand;
|
|
@@ -864,10 +836,9 @@ const de_GetIndexCommandError = async (output, context) => {
|
|
|
864
836
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
865
837
|
default:
|
|
866
838
|
const parsedBody = parsedOutput.body;
|
|
867
|
-
|
|
839
|
+
return throwDefaultError({
|
|
868
840
|
output,
|
|
869
841
|
parsedBody,
|
|
870
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
871
842
|
errorCode,
|
|
872
843
|
});
|
|
873
844
|
}
|
|
@@ -876,16 +847,15 @@ const de_GetViewCommand = async (output, context) => {
|
|
|
876
847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
877
848
|
return de_GetViewCommandError(output, context);
|
|
878
849
|
}
|
|
879
|
-
const contents = map({
|
|
850
|
+
const contents = (0, smithy_client_1.map)({
|
|
880
851
|
$metadata: deserializeMetadata(output),
|
|
881
852
|
});
|
|
882
853
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
}
|
|
854
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
855
|
+
Tags: smithy_client_1._json,
|
|
856
|
+
View: (_) => de_View(_, context),
|
|
857
|
+
});
|
|
858
|
+
Object.assign(contents, doc);
|
|
889
859
|
return contents;
|
|
890
860
|
};
|
|
891
861
|
exports.de_GetViewCommand = de_GetViewCommand;
|
|
@@ -916,10 +886,9 @@ const de_GetViewCommandError = async (output, context) => {
|
|
|
916
886
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
917
887
|
default:
|
|
918
888
|
const parsedBody = parsedOutput.body;
|
|
919
|
-
|
|
889
|
+
return throwDefaultError({
|
|
920
890
|
output,
|
|
921
891
|
parsedBody,
|
|
922
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
923
892
|
errorCode,
|
|
924
893
|
});
|
|
925
894
|
}
|
|
@@ -928,16 +897,15 @@ const de_ListIndexesCommand = async (output, context) => {
|
|
|
928
897
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
929
898
|
return de_ListIndexesCommandError(output, context);
|
|
930
899
|
}
|
|
931
|
-
const contents = map({
|
|
900
|
+
const contents = (0, smithy_client_1.map)({
|
|
932
901
|
$metadata: deserializeMetadata(output),
|
|
933
902
|
});
|
|
934
903
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
}
|
|
904
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
905
|
+
Indexes: smithy_client_1._json,
|
|
906
|
+
NextToken: smithy_client_1.expectString,
|
|
907
|
+
});
|
|
908
|
+
Object.assign(contents, doc);
|
|
941
909
|
return contents;
|
|
942
910
|
};
|
|
943
911
|
exports.de_ListIndexesCommand = de_ListIndexesCommand;
|
|
@@ -962,10 +930,9 @@ const de_ListIndexesCommandError = async (output, context) => {
|
|
|
962
930
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
963
931
|
default:
|
|
964
932
|
const parsedBody = parsedOutput.body;
|
|
965
|
-
|
|
933
|
+
return throwDefaultError({
|
|
966
934
|
output,
|
|
967
935
|
parsedBody,
|
|
968
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
969
936
|
errorCode,
|
|
970
937
|
});
|
|
971
938
|
}
|
|
@@ -974,16 +941,15 @@ const de_ListSupportedResourceTypesCommand = async (output, context) => {
|
|
|
974
941
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
975
942
|
return de_ListSupportedResourceTypesCommandError(output, context);
|
|
976
943
|
}
|
|
977
|
-
const contents = map({
|
|
944
|
+
const contents = (0, smithy_client_1.map)({
|
|
978
945
|
$metadata: deserializeMetadata(output),
|
|
979
946
|
});
|
|
980
947
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
}
|
|
948
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
949
|
+
NextToken: smithy_client_1.expectString,
|
|
950
|
+
ResourceTypes: smithy_client_1._json,
|
|
951
|
+
});
|
|
952
|
+
Object.assign(contents, doc);
|
|
987
953
|
return contents;
|
|
988
954
|
};
|
|
989
955
|
exports.de_ListSupportedResourceTypesCommand = de_ListSupportedResourceTypesCommand;
|
|
@@ -1008,10 +974,9 @@ const de_ListSupportedResourceTypesCommandError = async (output, context) => {
|
|
|
1008
974
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1009
975
|
default:
|
|
1010
976
|
const parsedBody = parsedOutput.body;
|
|
1011
|
-
|
|
977
|
+
return throwDefaultError({
|
|
1012
978
|
output,
|
|
1013
979
|
parsedBody,
|
|
1014
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
1015
980
|
errorCode,
|
|
1016
981
|
});
|
|
1017
982
|
}
|
|
@@ -1020,13 +985,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1020
985
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1021
986
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1022
987
|
}
|
|
1023
|
-
const contents = map({
|
|
988
|
+
const contents = (0, smithy_client_1.map)({
|
|
1024
989
|
$metadata: deserializeMetadata(output),
|
|
1025
990
|
});
|
|
1026
991
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
}
|
|
992
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
993
|
+
Tags: smithy_client_1._json,
|
|
994
|
+
});
|
|
995
|
+
Object.assign(contents, doc);
|
|
1030
996
|
return contents;
|
|
1031
997
|
};
|
|
1032
998
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1057,10 +1023,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1057
1023
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1058
1024
|
default:
|
|
1059
1025
|
const parsedBody = parsedOutput.body;
|
|
1060
|
-
|
|
1026
|
+
return throwDefaultError({
|
|
1061
1027
|
output,
|
|
1062
1028
|
parsedBody,
|
|
1063
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
1064
1029
|
errorCode,
|
|
1065
1030
|
});
|
|
1066
1031
|
}
|
|
@@ -1069,16 +1034,15 @@ const de_ListViewsCommand = async (output, context) => {
|
|
|
1069
1034
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1070
1035
|
return de_ListViewsCommandError(output, context);
|
|
1071
1036
|
}
|
|
1072
|
-
const contents = map({
|
|
1037
|
+
const contents = (0, smithy_client_1.map)({
|
|
1073
1038
|
$metadata: deserializeMetadata(output),
|
|
1074
1039
|
});
|
|
1075
1040
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
}
|
|
1041
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1042
|
+
NextToken: smithy_client_1.expectString,
|
|
1043
|
+
Views: smithy_client_1._json,
|
|
1044
|
+
});
|
|
1045
|
+
Object.assign(contents, doc);
|
|
1082
1046
|
return contents;
|
|
1083
1047
|
};
|
|
1084
1048
|
exports.de_ListViewsCommand = de_ListViewsCommand;
|
|
@@ -1103,10 +1067,9 @@ const de_ListViewsCommandError = async (output, context) => {
|
|
|
1103
1067
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1104
1068
|
default:
|
|
1105
1069
|
const parsedBody = parsedOutput.body;
|
|
1106
|
-
|
|
1070
|
+
return throwDefaultError({
|
|
1107
1071
|
output,
|
|
1108
1072
|
parsedBody,
|
|
1109
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
1110
1073
|
errorCode,
|
|
1111
1074
|
});
|
|
1112
1075
|
}
|
|
@@ -1115,22 +1078,17 @@ const de_SearchCommand = async (output, context) => {
|
|
|
1115
1078
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1116
1079
|
return de_SearchCommandError(output, context);
|
|
1117
1080
|
}
|
|
1118
|
-
const contents = map({
|
|
1081
|
+
const contents = (0, smithy_client_1.map)({
|
|
1119
1082
|
$metadata: deserializeMetadata(output),
|
|
1120
1083
|
});
|
|
1121
1084
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
contents.Resources = de_ResourceList(data.Resources, context);
|
|
1130
|
-
}
|
|
1131
|
-
if (data.ViewArn != null) {
|
|
1132
|
-
contents.ViewArn = (0, smithy_client_1.expectString)(data.ViewArn);
|
|
1133
|
-
}
|
|
1085
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1086
|
+
Count: smithy_client_1._json,
|
|
1087
|
+
NextToken: smithy_client_1.expectString,
|
|
1088
|
+
Resources: (_) => de_ResourceList(_, context),
|
|
1089
|
+
ViewArn: smithy_client_1.expectString,
|
|
1090
|
+
});
|
|
1091
|
+
Object.assign(contents, doc);
|
|
1134
1092
|
return contents;
|
|
1135
1093
|
};
|
|
1136
1094
|
exports.de_SearchCommand = de_SearchCommand;
|
|
@@ -1161,10 +1119,9 @@ const de_SearchCommandError = async (output, context) => {
|
|
|
1161
1119
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1162
1120
|
default:
|
|
1163
1121
|
const parsedBody = parsedOutput.body;
|
|
1164
|
-
|
|
1122
|
+
return throwDefaultError({
|
|
1165
1123
|
output,
|
|
1166
1124
|
parsedBody,
|
|
1167
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
1168
1125
|
errorCode,
|
|
1169
1126
|
});
|
|
1170
1127
|
}
|
|
@@ -1173,7 +1130,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1173
1130
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1174
1131
|
return de_TagResourceCommandError(output, context);
|
|
1175
1132
|
}
|
|
1176
|
-
const contents = map({
|
|
1133
|
+
const contents = (0, smithy_client_1.map)({
|
|
1177
1134
|
$metadata: deserializeMetadata(output),
|
|
1178
1135
|
});
|
|
1179
1136
|
await collectBody(output.body, context);
|
|
@@ -1207,10 +1164,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1207
1164
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1208
1165
|
default:
|
|
1209
1166
|
const parsedBody = parsedOutput.body;
|
|
1210
|
-
|
|
1167
|
+
return throwDefaultError({
|
|
1211
1168
|
output,
|
|
1212
1169
|
parsedBody,
|
|
1213
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
1214
1170
|
errorCode,
|
|
1215
1171
|
});
|
|
1216
1172
|
}
|
|
@@ -1219,7 +1175,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1219
1175
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1220
1176
|
return de_UntagResourceCommandError(output, context);
|
|
1221
1177
|
}
|
|
1222
|
-
const contents = map({
|
|
1178
|
+
const contents = (0, smithy_client_1.map)({
|
|
1223
1179
|
$metadata: deserializeMetadata(output),
|
|
1224
1180
|
});
|
|
1225
1181
|
await collectBody(output.body, context);
|
|
@@ -1253,10 +1209,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1253
1209
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1254
1210
|
default:
|
|
1255
1211
|
const parsedBody = parsedOutput.body;
|
|
1256
|
-
|
|
1212
|
+
return throwDefaultError({
|
|
1257
1213
|
output,
|
|
1258
1214
|
parsedBody,
|
|
1259
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
1260
1215
|
errorCode,
|
|
1261
1216
|
});
|
|
1262
1217
|
}
|
|
@@ -1265,22 +1220,17 @@ const de_UpdateIndexTypeCommand = async (output, context) => {
|
|
|
1265
1220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1266
1221
|
return de_UpdateIndexTypeCommandError(output, context);
|
|
1267
1222
|
}
|
|
1268
|
-
const contents = map({
|
|
1223
|
+
const contents = (0, smithy_client_1.map)({
|
|
1269
1224
|
$metadata: deserializeMetadata(output),
|
|
1270
1225
|
});
|
|
1271
1226
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1280
|
-
}
|
|
1281
|
-
if (data.Type != null) {
|
|
1282
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
1283
|
-
}
|
|
1227
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1228
|
+
Arn: smithy_client_1.expectString,
|
|
1229
|
+
LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1230
|
+
State: smithy_client_1.expectString,
|
|
1231
|
+
Type: smithy_client_1.expectString,
|
|
1232
|
+
});
|
|
1233
|
+
Object.assign(contents, doc);
|
|
1284
1234
|
return contents;
|
|
1285
1235
|
};
|
|
1286
1236
|
exports.de_UpdateIndexTypeCommand = de_UpdateIndexTypeCommand;
|
|
@@ -1314,10 +1264,9 @@ const de_UpdateIndexTypeCommandError = async (output, context) => {
|
|
|
1314
1264
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1315
1265
|
default:
|
|
1316
1266
|
const parsedBody = parsedOutput.body;
|
|
1317
|
-
|
|
1267
|
+
return throwDefaultError({
|
|
1318
1268
|
output,
|
|
1319
1269
|
parsedBody,
|
|
1320
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
1321
1270
|
errorCode,
|
|
1322
1271
|
});
|
|
1323
1272
|
}
|
|
@@ -1326,13 +1275,14 @@ const de_UpdateViewCommand = async (output, context) => {
|
|
|
1326
1275
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1327
1276
|
return de_UpdateViewCommandError(output, context);
|
|
1328
1277
|
}
|
|
1329
|
-
const contents = map({
|
|
1278
|
+
const contents = (0, smithy_client_1.map)({
|
|
1330
1279
|
$metadata: deserializeMetadata(output),
|
|
1331
1280
|
});
|
|
1332
1281
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
}
|
|
1282
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1283
|
+
View: (_) => de_View(_, context),
|
|
1284
|
+
});
|
|
1285
|
+
Object.assign(contents, doc);
|
|
1336
1286
|
return contents;
|
|
1337
1287
|
};
|
|
1338
1288
|
exports.de_UpdateViewCommand = de_UpdateViewCommand;
|
|
@@ -1363,21 +1313,21 @@ const de_UpdateViewCommandError = async (output, context) => {
|
|
|
1363
1313
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1364
1314
|
default:
|
|
1365
1315
|
const parsedBody = parsedOutput.body;
|
|
1366
|
-
|
|
1316
|
+
return throwDefaultError({
|
|
1367
1317
|
output,
|
|
1368
1318
|
parsedBody,
|
|
1369
|
-
exceptionCtor: ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException,
|
|
1370
1319
|
errorCode,
|
|
1371
1320
|
});
|
|
1372
1321
|
}
|
|
1373
1322
|
};
|
|
1374
|
-
const
|
|
1323
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ResourceExplorer2ServiceException_1.ResourceExplorer2ServiceException);
|
|
1375
1324
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1376
|
-
const contents = map({});
|
|
1325
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1377
1326
|
const data = parsedOutput.body;
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
}
|
|
1327
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1328
|
+
Message: smithy_client_1.expectString,
|
|
1329
|
+
});
|
|
1330
|
+
Object.assign(contents, doc);
|
|
1381
1331
|
const exception = new models_0_1.AccessDeniedException({
|
|
1382
1332
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1383
1333
|
...contents,
|
|
@@ -1385,11 +1335,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1385
1335
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1386
1336
|
};
|
|
1387
1337
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1388
|
-
const contents = map({});
|
|
1338
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1389
1339
|
const data = parsedOutput.body;
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
}
|
|
1340
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1341
|
+
Message: smithy_client_1.expectString,
|
|
1342
|
+
});
|
|
1343
|
+
Object.assign(contents, doc);
|
|
1393
1344
|
const exception = new models_0_1.ConflictException({
|
|
1394
1345
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1395
1346
|
...contents,
|
|
@@ -1397,11 +1348,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1397
1348
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1398
1349
|
};
|
|
1399
1350
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1400
|
-
const contents = map({});
|
|
1351
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1401
1352
|
const data = parsedOutput.body;
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
}
|
|
1353
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1354
|
+
Message: smithy_client_1.expectString,
|
|
1355
|
+
});
|
|
1356
|
+
Object.assign(contents, doc);
|
|
1405
1357
|
const exception = new models_0_1.InternalServerException({
|
|
1406
1358
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1407
1359
|
...contents,
|
|
@@ -1409,11 +1361,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1409
1361
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1410
1362
|
};
|
|
1411
1363
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1412
|
-
const contents = map({});
|
|
1364
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1413
1365
|
const data = parsedOutput.body;
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
}
|
|
1366
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1367
|
+
Message: smithy_client_1.expectString,
|
|
1368
|
+
});
|
|
1369
|
+
Object.assign(contents, doc);
|
|
1417
1370
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1418
1371
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1419
1372
|
...contents,
|
|
@@ -1421,17 +1374,14 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1421
1374
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1422
1375
|
};
|
|
1423
1376
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1424
|
-
const contents = map({});
|
|
1377
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1425
1378
|
const data = parsedOutput.body;
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
if (data.Value != null) {
|
|
1433
|
-
contents.Value = (0, smithy_client_1.expectString)(data.Value);
|
|
1434
|
-
}
|
|
1379
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1380
|
+
Message: smithy_client_1.expectString,
|
|
1381
|
+
Name: smithy_client_1.expectString,
|
|
1382
|
+
Value: smithy_client_1.expectString,
|
|
1383
|
+
});
|
|
1384
|
+
Object.assign(contents, doc);
|
|
1435
1385
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1436
1386
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1437
1387
|
...contents,
|
|
@@ -1439,11 +1389,12 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1439
1389
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1440
1390
|
};
|
|
1441
1391
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1442
|
-
const contents = map({});
|
|
1392
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1443
1393
|
const data = parsedOutput.body;
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
}
|
|
1394
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1395
|
+
Message: smithy_client_1.expectString,
|
|
1396
|
+
});
|
|
1397
|
+
Object.assign(contents, doc);
|
|
1447
1398
|
const exception = new models_0_1.ThrottlingException({
|
|
1448
1399
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1449
1400
|
...contents,
|
|
@@ -1451,11 +1402,12 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1451
1402
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1452
1403
|
};
|
|
1453
1404
|
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1454
|
-
const contents = map({});
|
|
1405
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1455
1406
|
const data = parsedOutput.body;
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
}
|
|
1407
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1408
|
+
Message: smithy_client_1.expectString,
|
|
1409
|
+
});
|
|
1410
|
+
Object.assign(contents, doc);
|
|
1459
1411
|
const exception = new models_0_1.UnauthorizedException({
|
|
1460
1412
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1461
1413
|
...contents,
|
|
@@ -1463,250 +1415,67 @@ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
|
1463
1415
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1464
1416
|
};
|
|
1465
1417
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1466
|
-
const contents = map({});
|
|
1418
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1467
1419
|
const data = parsedOutput.body;
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
}
|
|
1420
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1421
|
+
FieldList: smithy_client_1._json,
|
|
1422
|
+
Message: smithy_client_1.expectString,
|
|
1423
|
+
});
|
|
1424
|
+
Object.assign(contents, doc);
|
|
1474
1425
|
const exception = new models_0_1.ValidationException({
|
|
1475
1426
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1476
1427
|
...contents,
|
|
1477
1428
|
});
|
|
1478
1429
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1479
1430
|
};
|
|
1480
|
-
const se_IncludedProperty = (input, context) => {
|
|
1481
|
-
return {
|
|
1482
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1483
|
-
};
|
|
1484
|
-
};
|
|
1485
|
-
const se_IncludedPropertyList = (input, context) => {
|
|
1486
|
-
return input
|
|
1487
|
-
.filter((e) => e != null)
|
|
1488
|
-
.map((entry) => {
|
|
1489
|
-
return se_IncludedProperty(entry, context);
|
|
1490
|
-
});
|
|
1491
|
-
};
|
|
1492
|
-
const se_RegionList = (input, context) => {
|
|
1493
|
-
return input
|
|
1494
|
-
.filter((e) => e != null)
|
|
1495
|
-
.map((entry) => {
|
|
1496
|
-
return entry;
|
|
1497
|
-
});
|
|
1498
|
-
};
|
|
1499
|
-
const se_SearchFilter = (input, context) => {
|
|
1500
|
-
return {
|
|
1501
|
-
...(input.FilterString != null && { FilterString: input.FilterString }),
|
|
1502
|
-
};
|
|
1503
|
-
};
|
|
1504
|
-
const se_TagMap = (input, context) => {
|
|
1505
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1506
|
-
if (value === null) {
|
|
1507
|
-
return acc;
|
|
1508
|
-
}
|
|
1509
|
-
acc[key] = value;
|
|
1510
|
-
return acc;
|
|
1511
|
-
}, {});
|
|
1512
|
-
};
|
|
1513
|
-
const se_ViewArnList = (input, context) => {
|
|
1514
|
-
return input
|
|
1515
|
-
.filter((e) => e != null)
|
|
1516
|
-
.map((entry) => {
|
|
1517
|
-
return entry;
|
|
1518
|
-
});
|
|
1519
|
-
};
|
|
1520
|
-
const de_BatchGetViewError = (output, context) => {
|
|
1521
|
-
return {
|
|
1522
|
-
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
1523
|
-
ViewArn: (0, smithy_client_1.expectString)(output.ViewArn),
|
|
1524
|
-
};
|
|
1525
|
-
};
|
|
1526
|
-
const de_BatchGetViewErrors = (output, context) => {
|
|
1527
|
-
const retVal = (output || [])
|
|
1528
|
-
.filter((e) => e != null)
|
|
1529
|
-
.map((entry) => {
|
|
1530
|
-
if (entry === null) {
|
|
1531
|
-
return null;
|
|
1532
|
-
}
|
|
1533
|
-
return de_BatchGetViewError(entry, context);
|
|
1534
|
-
});
|
|
1535
|
-
return retVal;
|
|
1536
|
-
};
|
|
1537
|
-
const de_IncludedProperty = (output, context) => {
|
|
1538
|
-
return {
|
|
1539
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1540
|
-
};
|
|
1541
|
-
};
|
|
1542
|
-
const de_IncludedPropertyList = (output, context) => {
|
|
1543
|
-
const retVal = (output || [])
|
|
1544
|
-
.filter((e) => e != null)
|
|
1545
|
-
.map((entry) => {
|
|
1546
|
-
if (entry === null) {
|
|
1547
|
-
return null;
|
|
1548
|
-
}
|
|
1549
|
-
return de_IncludedProperty(entry, context);
|
|
1550
|
-
});
|
|
1551
|
-
return retVal;
|
|
1552
|
-
};
|
|
1553
|
-
const de_Index = (output, context) => {
|
|
1554
|
-
return {
|
|
1555
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1556
|
-
Region: (0, smithy_client_1.expectString)(output.Region),
|
|
1557
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1558
|
-
};
|
|
1559
|
-
};
|
|
1560
|
-
const de_IndexList = (output, context) => {
|
|
1561
|
-
const retVal = (output || [])
|
|
1562
|
-
.filter((e) => e != null)
|
|
1563
|
-
.map((entry) => {
|
|
1564
|
-
if (entry === null) {
|
|
1565
|
-
return null;
|
|
1566
|
-
}
|
|
1567
|
-
return de_Index(entry, context);
|
|
1568
|
-
});
|
|
1569
|
-
return retVal;
|
|
1570
|
-
};
|
|
1571
|
-
const de_RegionList = (output, context) => {
|
|
1572
|
-
const retVal = (output || [])
|
|
1573
|
-
.filter((e) => e != null)
|
|
1574
|
-
.map((entry) => {
|
|
1575
|
-
if (entry === null) {
|
|
1576
|
-
return null;
|
|
1577
|
-
}
|
|
1578
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1579
|
-
});
|
|
1580
|
-
return retVal;
|
|
1581
|
-
};
|
|
1582
1431
|
const de_Resource = (output, context) => {
|
|
1583
|
-
return {
|
|
1584
|
-
Arn:
|
|
1585
|
-
LastReportedAt:
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
Service: (0, smithy_client_1.expectString)(output.Service),
|
|
1593
|
-
};
|
|
1594
|
-
};
|
|
1595
|
-
const de_ResourceCount = (output, context) => {
|
|
1596
|
-
return {
|
|
1597
|
-
Complete: (0, smithy_client_1.expectBoolean)(output.Complete),
|
|
1598
|
-
TotalResources: (0, smithy_client_1.expectLong)(output.TotalResources),
|
|
1599
|
-
};
|
|
1432
|
+
return (0, smithy_client_1.take)(output, {
|
|
1433
|
+
Arn: smithy_client_1.expectString,
|
|
1434
|
+
LastReportedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1435
|
+
OwningAccountId: smithy_client_1.expectString,
|
|
1436
|
+
Properties: (_) => de_ResourcePropertyList(_, context),
|
|
1437
|
+
Region: smithy_client_1.expectString,
|
|
1438
|
+
ResourceType: smithy_client_1.expectString,
|
|
1439
|
+
Service: smithy_client_1.expectString,
|
|
1440
|
+
});
|
|
1600
1441
|
};
|
|
1601
1442
|
const de_ResourceList = (output, context) => {
|
|
1602
1443
|
const retVal = (output || [])
|
|
1603
1444
|
.filter((e) => e != null)
|
|
1604
1445
|
.map((entry) => {
|
|
1605
|
-
if (entry === null) {
|
|
1606
|
-
return null;
|
|
1607
|
-
}
|
|
1608
1446
|
return de_Resource(entry, context);
|
|
1609
1447
|
});
|
|
1610
1448
|
return retVal;
|
|
1611
1449
|
};
|
|
1612
1450
|
const de_ResourceProperty = (output, context) => {
|
|
1613
|
-
return {
|
|
1614
|
-
Data:
|
|
1615
|
-
LastReportedAt:
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1619
|
-
};
|
|
1451
|
+
return (0, smithy_client_1.take)(output, {
|
|
1452
|
+
Data: (_) => de_Document(_, context),
|
|
1453
|
+
LastReportedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1454
|
+
Name: smithy_client_1.expectString,
|
|
1455
|
+
});
|
|
1620
1456
|
};
|
|
1621
1457
|
const de_ResourcePropertyList = (output, context) => {
|
|
1622
1458
|
const retVal = (output || [])
|
|
1623
1459
|
.filter((e) => e != null)
|
|
1624
1460
|
.map((entry) => {
|
|
1625
|
-
if (entry === null) {
|
|
1626
|
-
return null;
|
|
1627
|
-
}
|
|
1628
1461
|
return de_ResourceProperty(entry, context);
|
|
1629
1462
|
});
|
|
1630
1463
|
return retVal;
|
|
1631
1464
|
};
|
|
1632
|
-
const de_ResourceTypeList = (output, context) => {
|
|
1633
|
-
const retVal = (output || [])
|
|
1634
|
-
.filter((e) => e != null)
|
|
1635
|
-
.map((entry) => {
|
|
1636
|
-
if (entry === null) {
|
|
1637
|
-
return null;
|
|
1638
|
-
}
|
|
1639
|
-
return de_SupportedResourceType(entry, context);
|
|
1640
|
-
});
|
|
1641
|
-
return retVal;
|
|
1642
|
-
};
|
|
1643
|
-
const de_SearchFilter = (output, context) => {
|
|
1644
|
-
return {
|
|
1645
|
-
FilterString: (0, smithy_client_1.expectString)(output.FilterString),
|
|
1646
|
-
};
|
|
1647
|
-
};
|
|
1648
|
-
const de_SupportedResourceType = (output, context) => {
|
|
1649
|
-
return {
|
|
1650
|
-
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
1651
|
-
Service: (0, smithy_client_1.expectString)(output.Service),
|
|
1652
|
-
};
|
|
1653
|
-
};
|
|
1654
|
-
const de_TagMap = (output, context) => {
|
|
1655
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1656
|
-
if (value === null) {
|
|
1657
|
-
return acc;
|
|
1658
|
-
}
|
|
1659
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1660
|
-
return acc;
|
|
1661
|
-
}, {});
|
|
1662
|
-
};
|
|
1663
|
-
const de_ValidationExceptionField = (output, context) => {
|
|
1664
|
-
return {
|
|
1665
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1666
|
-
ValidationIssue: (0, smithy_client_1.expectString)(output.ValidationIssue),
|
|
1667
|
-
};
|
|
1668
|
-
};
|
|
1669
|
-
const de_ValidationExceptionFieldList = (output, context) => {
|
|
1670
|
-
const retVal = (output || [])
|
|
1671
|
-
.filter((e) => e != null)
|
|
1672
|
-
.map((entry) => {
|
|
1673
|
-
if (entry === null) {
|
|
1674
|
-
return null;
|
|
1675
|
-
}
|
|
1676
|
-
return de_ValidationExceptionField(entry, context);
|
|
1677
|
-
});
|
|
1678
|
-
return retVal;
|
|
1679
|
-
};
|
|
1680
1465
|
const de_View = (output, context) => {
|
|
1681
|
-
return {
|
|
1682
|
-
Filters:
|
|
1683
|
-
IncludedProperties:
|
|
1684
|
-
LastUpdatedAt:
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
Scope: (0, smithy_client_1.expectString)(output.Scope),
|
|
1689
|
-
ViewArn: (0, smithy_client_1.expectString)(output.ViewArn),
|
|
1690
|
-
};
|
|
1691
|
-
};
|
|
1692
|
-
const de_ViewArnList = (output, context) => {
|
|
1693
|
-
const retVal = (output || [])
|
|
1694
|
-
.filter((e) => e != null)
|
|
1695
|
-
.map((entry) => {
|
|
1696
|
-
if (entry === null) {
|
|
1697
|
-
return null;
|
|
1698
|
-
}
|
|
1699
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1466
|
+
return (0, smithy_client_1.take)(output, {
|
|
1467
|
+
Filters: smithy_client_1._json,
|
|
1468
|
+
IncludedProperties: smithy_client_1._json,
|
|
1469
|
+
LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1470
|
+
Owner: smithy_client_1.expectString,
|
|
1471
|
+
Scope: smithy_client_1.expectString,
|
|
1472
|
+
ViewArn: smithy_client_1.expectString,
|
|
1700
1473
|
});
|
|
1701
|
-
return retVal;
|
|
1702
1474
|
};
|
|
1703
1475
|
const de_ViewList = (output, context) => {
|
|
1704
1476
|
const retVal = (output || [])
|
|
1705
1477
|
.filter((e) => e != null)
|
|
1706
1478
|
.map((entry) => {
|
|
1707
|
-
if (entry === null) {
|
|
1708
|
-
return null;
|
|
1709
|
-
}
|
|
1710
1479
|
return de_View(entry, context);
|
|
1711
1480
|
});
|
|
1712
1481
|
return retVal;
|