@aws-sdk/client-resource-explorer-2 3.312.0 → 3.316.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/ResourceExplorer2.js +23 -266
- package/dist-cjs/protocols/Aws_restJson1.js +248 -479
- package/dist-es/ResourceExplorer2.js +23 -266
- package/dist-es/protocols/Aws_restJson1.js +221 -452
- package/dist-types/ResourceExplorer2.d.ts +46 -226
- package/dist-types/ts3.4/ResourceExplorer2.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { ResourceExplorer2ServiceException as __BaseException } from "../models/ResourceExplorer2ServiceException";
|
|
@@ -10,9 +10,9 @@ export const se_AssociateDefaultViewCommand = async (input, context) => {
|
|
|
10
10
|
};
|
|
11
11
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssociateDefaultView";
|
|
12
12
|
let body;
|
|
13
|
-
body = JSON.stringify({
|
|
14
|
-
|
|
15
|
-
});
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
ViewArn: [],
|
|
15
|
+
}));
|
|
16
16
|
return new __HttpRequest({
|
|
17
17
|
protocol,
|
|
18
18
|
hostname,
|
|
@@ -30,9 +30,9 @@ export const se_BatchGetViewCommand = async (input, context) => {
|
|
|
30
30
|
};
|
|
31
31
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetView";
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify({
|
|
34
|
-
|
|
35
|
-
});
|
|
33
|
+
body = JSON.stringify(take(input, {
|
|
34
|
+
ViewArns: (_) => _json(_),
|
|
35
|
+
}));
|
|
36
36
|
return new __HttpRequest({
|
|
37
37
|
protocol,
|
|
38
38
|
hostname,
|
|
@@ -50,10 +50,10 @@ export const se_CreateIndexCommand = async (input, context) => {
|
|
|
50
50
|
};
|
|
51
51
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateIndex";
|
|
52
52
|
let body;
|
|
53
|
-
body = JSON.stringify({
|
|
54
|
-
ClientToken:
|
|
55
|
-
|
|
56
|
-
});
|
|
53
|
+
body = JSON.stringify(take(input, {
|
|
54
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
55
|
+
Tags: (_) => _json(_),
|
|
56
|
+
}));
|
|
57
57
|
return new __HttpRequest({
|
|
58
58
|
protocol,
|
|
59
59
|
hostname,
|
|
@@ -71,15 +71,13 @@ export const se_CreateViewCommand = async (input, context) => {
|
|
|
71
71
|
};
|
|
72
72
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateView";
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify({
|
|
75
|
-
ClientToken:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
...(input.ViewName != null && { ViewName: input.ViewName }),
|
|
82
|
-
});
|
|
74
|
+
body = JSON.stringify(take(input, {
|
|
75
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
76
|
+
Filters: (_) => _json(_),
|
|
77
|
+
IncludedProperties: (_) => _json(_),
|
|
78
|
+
Tags: (_) => _json(_),
|
|
79
|
+
ViewName: [],
|
|
80
|
+
}));
|
|
83
81
|
return new __HttpRequest({
|
|
84
82
|
protocol,
|
|
85
83
|
hostname,
|
|
@@ -97,9 +95,9 @@ export const se_DeleteIndexCommand = async (input, context) => {
|
|
|
97
95
|
};
|
|
98
96
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteIndex";
|
|
99
97
|
let body;
|
|
100
|
-
body = JSON.stringify({
|
|
101
|
-
|
|
102
|
-
});
|
|
98
|
+
body = JSON.stringify(take(input, {
|
|
99
|
+
Arn: [],
|
|
100
|
+
}));
|
|
103
101
|
return new __HttpRequest({
|
|
104
102
|
protocol,
|
|
105
103
|
hostname,
|
|
@@ -117,9 +115,9 @@ export const se_DeleteViewCommand = async (input, context) => {
|
|
|
117
115
|
};
|
|
118
116
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteView";
|
|
119
117
|
let body;
|
|
120
|
-
body = JSON.stringify({
|
|
121
|
-
|
|
122
|
-
});
|
|
118
|
+
body = JSON.stringify(take(input, {
|
|
119
|
+
ViewArn: [],
|
|
120
|
+
}));
|
|
123
121
|
return new __HttpRequest({
|
|
124
122
|
protocol,
|
|
125
123
|
hostname,
|
|
@@ -191,9 +189,9 @@ export const se_GetViewCommand = async (input, context) => {
|
|
|
191
189
|
};
|
|
192
190
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetView";
|
|
193
191
|
let body;
|
|
194
|
-
body = JSON.stringify({
|
|
195
|
-
|
|
196
|
-
});
|
|
192
|
+
body = JSON.stringify(take(input, {
|
|
193
|
+
ViewArn: [],
|
|
194
|
+
}));
|
|
197
195
|
return new __HttpRequest({
|
|
198
196
|
protocol,
|
|
199
197
|
hostname,
|
|
@@ -211,12 +209,12 @@ export const se_ListIndexesCommand = async (input, context) => {
|
|
|
211
209
|
};
|
|
212
210
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListIndexes";
|
|
213
211
|
let body;
|
|
214
|
-
body = JSON.stringify({
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
});
|
|
212
|
+
body = JSON.stringify(take(input, {
|
|
213
|
+
MaxResults: [],
|
|
214
|
+
NextToken: [],
|
|
215
|
+
Regions: (_) => _json(_),
|
|
216
|
+
Type: [],
|
|
217
|
+
}));
|
|
220
218
|
return new __HttpRequest({
|
|
221
219
|
protocol,
|
|
222
220
|
hostname,
|
|
@@ -234,10 +232,10 @@ export const se_ListSupportedResourceTypesCommand = async (input, context) => {
|
|
|
234
232
|
};
|
|
235
233
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListSupportedResourceTypes";
|
|
236
234
|
let body;
|
|
237
|
-
body = JSON.stringify({
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
});
|
|
235
|
+
body = JSON.stringify(take(input, {
|
|
236
|
+
MaxResults: [],
|
|
237
|
+
NextToken: [],
|
|
238
|
+
}));
|
|
241
239
|
return new __HttpRequest({
|
|
242
240
|
protocol,
|
|
243
241
|
hostname,
|
|
@@ -271,10 +269,10 @@ export const se_ListViewsCommand = async (input, context) => {
|
|
|
271
269
|
};
|
|
272
270
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListViews";
|
|
273
271
|
let body;
|
|
274
|
-
body = JSON.stringify({
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
});
|
|
272
|
+
body = JSON.stringify(take(input, {
|
|
273
|
+
MaxResults: [],
|
|
274
|
+
NextToken: [],
|
|
275
|
+
}));
|
|
278
276
|
return new __HttpRequest({
|
|
279
277
|
protocol,
|
|
280
278
|
hostname,
|
|
@@ -292,12 +290,12 @@ export const se_SearchCommand = async (input, context) => {
|
|
|
292
290
|
};
|
|
293
291
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/Search";
|
|
294
292
|
let body;
|
|
295
|
-
body = JSON.stringify({
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
});
|
|
293
|
+
body = JSON.stringify(take(input, {
|
|
294
|
+
MaxResults: [],
|
|
295
|
+
NextToken: [],
|
|
296
|
+
QueryString: [],
|
|
297
|
+
ViewArn: [],
|
|
298
|
+
}));
|
|
301
299
|
return new __HttpRequest({
|
|
302
300
|
protocol,
|
|
303
301
|
hostname,
|
|
@@ -316,9 +314,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
316
314
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
317
315
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
318
316
|
let body;
|
|
319
|
-
body = JSON.stringify({
|
|
320
|
-
|
|
321
|
-
});
|
|
317
|
+
body = JSON.stringify(take(input, {
|
|
318
|
+
Tags: (_) => _json(_),
|
|
319
|
+
}));
|
|
322
320
|
return new __HttpRequest({
|
|
323
321
|
protocol,
|
|
324
322
|
hostname,
|
|
@@ -359,10 +357,10 @@ export const se_UpdateIndexTypeCommand = async (input, context) => {
|
|
|
359
357
|
};
|
|
360
358
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateIndexType";
|
|
361
359
|
let body;
|
|
362
|
-
body = JSON.stringify({
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
});
|
|
360
|
+
body = JSON.stringify(take(input, {
|
|
361
|
+
Arn: [],
|
|
362
|
+
Type: [],
|
|
363
|
+
}));
|
|
366
364
|
return new __HttpRequest({
|
|
367
365
|
protocol,
|
|
368
366
|
hostname,
|
|
@@ -380,13 +378,11 @@ export const se_UpdateViewCommand = async (input, context) => {
|
|
|
380
378
|
};
|
|
381
379
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateView";
|
|
382
380
|
let body;
|
|
383
|
-
body = JSON.stringify({
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
...(input.ViewArn != null && { ViewArn: input.ViewArn }),
|
|
389
|
-
});
|
|
381
|
+
body = JSON.stringify(take(input, {
|
|
382
|
+
Filters: (_) => _json(_),
|
|
383
|
+
IncludedProperties: (_) => _json(_),
|
|
384
|
+
ViewArn: [],
|
|
385
|
+
}));
|
|
390
386
|
return new __HttpRequest({
|
|
391
387
|
protocol,
|
|
392
388
|
hostname,
|
|
@@ -405,9 +401,10 @@ export const de_AssociateDefaultViewCommand = async (output, context) => {
|
|
|
405
401
|
$metadata: deserializeMetadata(output),
|
|
406
402
|
});
|
|
407
403
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
}
|
|
404
|
+
const doc = take(data, {
|
|
405
|
+
ViewArn: __expectString,
|
|
406
|
+
});
|
|
407
|
+
Object.assign(contents, doc);
|
|
411
408
|
return contents;
|
|
412
409
|
};
|
|
413
410
|
const de_AssociateDefaultViewCommandError = async (output, context) => {
|
|
@@ -434,10 +431,9 @@ const de_AssociateDefaultViewCommandError = async (output, context) => {
|
|
|
434
431
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
435
432
|
default:
|
|
436
433
|
const parsedBody = parsedOutput.body;
|
|
437
|
-
throwDefaultError({
|
|
434
|
+
return throwDefaultError({
|
|
438
435
|
output,
|
|
439
436
|
parsedBody,
|
|
440
|
-
exceptionCtor: __BaseException,
|
|
441
437
|
errorCode,
|
|
442
438
|
});
|
|
443
439
|
}
|
|
@@ -450,12 +446,11 @@ export const de_BatchGetViewCommand = async (output, context) => {
|
|
|
450
446
|
$metadata: deserializeMetadata(output),
|
|
451
447
|
});
|
|
452
448
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
}
|
|
449
|
+
const doc = take(data, {
|
|
450
|
+
Errors: _json,
|
|
451
|
+
Views: (_) => de_ViewList(_, context),
|
|
452
|
+
});
|
|
453
|
+
Object.assign(contents, doc);
|
|
459
454
|
return contents;
|
|
460
455
|
};
|
|
461
456
|
const de_BatchGetViewCommandError = async (output, context) => {
|
|
@@ -482,10 +477,9 @@ const de_BatchGetViewCommandError = async (output, context) => {
|
|
|
482
477
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
483
478
|
default:
|
|
484
479
|
const parsedBody = parsedOutput.body;
|
|
485
|
-
throwDefaultError({
|
|
480
|
+
return throwDefaultError({
|
|
486
481
|
output,
|
|
487
482
|
parsedBody,
|
|
488
|
-
exceptionCtor: __BaseException,
|
|
489
483
|
errorCode,
|
|
490
484
|
});
|
|
491
485
|
}
|
|
@@ -498,15 +492,12 @@ export const de_CreateIndexCommand = async (output, context) => {
|
|
|
498
492
|
$metadata: deserializeMetadata(output),
|
|
499
493
|
});
|
|
500
494
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
if (data.State != null) {
|
|
508
|
-
contents.State = __expectString(data.State);
|
|
509
|
-
}
|
|
495
|
+
const doc = take(data, {
|
|
496
|
+
Arn: __expectString,
|
|
497
|
+
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
498
|
+
State: __expectString,
|
|
499
|
+
});
|
|
500
|
+
Object.assign(contents, doc);
|
|
510
501
|
return contents;
|
|
511
502
|
};
|
|
512
503
|
const de_CreateIndexCommandError = async (output, context) => {
|
|
@@ -533,10 +524,9 @@ const de_CreateIndexCommandError = async (output, context) => {
|
|
|
533
524
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
534
525
|
default:
|
|
535
526
|
const parsedBody = parsedOutput.body;
|
|
536
|
-
throwDefaultError({
|
|
527
|
+
return throwDefaultError({
|
|
537
528
|
output,
|
|
538
529
|
parsedBody,
|
|
539
|
-
exceptionCtor: __BaseException,
|
|
540
530
|
errorCode,
|
|
541
531
|
});
|
|
542
532
|
}
|
|
@@ -549,9 +539,10 @@ export const de_CreateViewCommand = async (output, context) => {
|
|
|
549
539
|
$metadata: deserializeMetadata(output),
|
|
550
540
|
});
|
|
551
541
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
}
|
|
542
|
+
const doc = take(data, {
|
|
543
|
+
View: (_) => de_View(_, context),
|
|
544
|
+
});
|
|
545
|
+
Object.assign(contents, doc);
|
|
555
546
|
return contents;
|
|
556
547
|
};
|
|
557
548
|
const de_CreateViewCommandError = async (output, context) => {
|
|
@@ -584,10 +575,9 @@ const de_CreateViewCommandError = async (output, context) => {
|
|
|
584
575
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
585
576
|
default:
|
|
586
577
|
const parsedBody = parsedOutput.body;
|
|
587
|
-
throwDefaultError({
|
|
578
|
+
return throwDefaultError({
|
|
588
579
|
output,
|
|
589
580
|
parsedBody,
|
|
590
|
-
exceptionCtor: __BaseException,
|
|
591
581
|
errorCode,
|
|
592
582
|
});
|
|
593
583
|
}
|
|
@@ -600,15 +590,12 @@ export const de_DeleteIndexCommand = async (output, context) => {
|
|
|
600
590
|
$metadata: deserializeMetadata(output),
|
|
601
591
|
});
|
|
602
592
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
if (data.State != null) {
|
|
610
|
-
contents.State = __expectString(data.State);
|
|
611
|
-
}
|
|
593
|
+
const doc = take(data, {
|
|
594
|
+
Arn: __expectString,
|
|
595
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
596
|
+
State: __expectString,
|
|
597
|
+
});
|
|
598
|
+
Object.assign(contents, doc);
|
|
612
599
|
return contents;
|
|
613
600
|
};
|
|
614
601
|
const de_DeleteIndexCommandError = async (output, context) => {
|
|
@@ -635,10 +622,9 @@ const de_DeleteIndexCommandError = async (output, context) => {
|
|
|
635
622
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
636
623
|
default:
|
|
637
624
|
const parsedBody = parsedOutput.body;
|
|
638
|
-
throwDefaultError({
|
|
625
|
+
return throwDefaultError({
|
|
639
626
|
output,
|
|
640
627
|
parsedBody,
|
|
641
|
-
exceptionCtor: __BaseException,
|
|
642
628
|
errorCode,
|
|
643
629
|
});
|
|
644
630
|
}
|
|
@@ -651,9 +637,10 @@ export const de_DeleteViewCommand = async (output, context) => {
|
|
|
651
637
|
$metadata: deserializeMetadata(output),
|
|
652
638
|
});
|
|
653
639
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
}
|
|
640
|
+
const doc = take(data, {
|
|
641
|
+
ViewArn: __expectString,
|
|
642
|
+
});
|
|
643
|
+
Object.assign(contents, doc);
|
|
657
644
|
return contents;
|
|
658
645
|
};
|
|
659
646
|
const de_DeleteViewCommandError = async (output, context) => {
|
|
@@ -683,10 +670,9 @@ const de_DeleteViewCommandError = async (output, context) => {
|
|
|
683
670
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
684
671
|
default:
|
|
685
672
|
const parsedBody = parsedOutput.body;
|
|
686
|
-
throwDefaultError({
|
|
673
|
+
return throwDefaultError({
|
|
687
674
|
output,
|
|
688
675
|
parsedBody,
|
|
689
|
-
exceptionCtor: __BaseException,
|
|
690
676
|
errorCode,
|
|
691
677
|
});
|
|
692
678
|
}
|
|
@@ -722,10 +708,9 @@ const de_DisassociateDefaultViewCommandError = async (output, context) => {
|
|
|
722
708
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
723
709
|
default:
|
|
724
710
|
const parsedBody = parsedOutput.body;
|
|
725
|
-
throwDefaultError({
|
|
711
|
+
return throwDefaultError({
|
|
726
712
|
output,
|
|
727
713
|
parsedBody,
|
|
728
|
-
exceptionCtor: __BaseException,
|
|
729
714
|
errorCode,
|
|
730
715
|
});
|
|
731
716
|
}
|
|
@@ -738,9 +723,10 @@ export const de_GetDefaultViewCommand = async (output, context) => {
|
|
|
738
723
|
$metadata: deserializeMetadata(output),
|
|
739
724
|
});
|
|
740
725
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
}
|
|
726
|
+
const doc = take(data, {
|
|
727
|
+
ViewArn: __expectString,
|
|
728
|
+
});
|
|
729
|
+
Object.assign(contents, doc);
|
|
744
730
|
return contents;
|
|
745
731
|
};
|
|
746
732
|
const de_GetDefaultViewCommandError = async (output, context) => {
|
|
@@ -767,10 +753,9 @@ const de_GetDefaultViewCommandError = async (output, context) => {
|
|
|
767
753
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
768
754
|
default:
|
|
769
755
|
const parsedBody = parsedOutput.body;
|
|
770
|
-
throwDefaultError({
|
|
756
|
+
return throwDefaultError({
|
|
771
757
|
output,
|
|
772
758
|
parsedBody,
|
|
773
|
-
exceptionCtor: __BaseException,
|
|
774
759
|
errorCode,
|
|
775
760
|
});
|
|
776
761
|
}
|
|
@@ -783,30 +768,17 @@ export const de_GetIndexCommand = async (output, context) => {
|
|
|
783
768
|
$metadata: deserializeMetadata(output),
|
|
784
769
|
});
|
|
785
770
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
}
|
|
798
|
-
if (data.ReplicatingTo != null) {
|
|
799
|
-
contents.ReplicatingTo = de_RegionList(data.ReplicatingTo, context);
|
|
800
|
-
}
|
|
801
|
-
if (data.State != null) {
|
|
802
|
-
contents.State = __expectString(data.State);
|
|
803
|
-
}
|
|
804
|
-
if (data.Tags != null) {
|
|
805
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
806
|
-
}
|
|
807
|
-
if (data.Type != null) {
|
|
808
|
-
contents.Type = __expectString(data.Type);
|
|
809
|
-
}
|
|
771
|
+
const doc = take(data, {
|
|
772
|
+
Arn: __expectString,
|
|
773
|
+
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
774
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
775
|
+
ReplicatingFrom: _json,
|
|
776
|
+
ReplicatingTo: _json,
|
|
777
|
+
State: __expectString,
|
|
778
|
+
Tags: _json,
|
|
779
|
+
Type: __expectString,
|
|
780
|
+
});
|
|
781
|
+
Object.assign(contents, doc);
|
|
810
782
|
return contents;
|
|
811
783
|
};
|
|
812
784
|
const de_GetIndexCommandError = async (output, context) => {
|
|
@@ -833,10 +805,9 @@ const de_GetIndexCommandError = async (output, context) => {
|
|
|
833
805
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
834
806
|
default:
|
|
835
807
|
const parsedBody = parsedOutput.body;
|
|
836
|
-
throwDefaultError({
|
|
808
|
+
return throwDefaultError({
|
|
837
809
|
output,
|
|
838
810
|
parsedBody,
|
|
839
|
-
exceptionCtor: __BaseException,
|
|
840
811
|
errorCode,
|
|
841
812
|
});
|
|
842
813
|
}
|
|
@@ -849,12 +820,11 @@ export const de_GetViewCommand = async (output, context) => {
|
|
|
849
820
|
$metadata: deserializeMetadata(output),
|
|
850
821
|
});
|
|
851
822
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
}
|
|
823
|
+
const doc = take(data, {
|
|
824
|
+
Tags: _json,
|
|
825
|
+
View: (_) => de_View(_, context),
|
|
826
|
+
});
|
|
827
|
+
Object.assign(contents, doc);
|
|
858
828
|
return contents;
|
|
859
829
|
};
|
|
860
830
|
const de_GetViewCommandError = async (output, context) => {
|
|
@@ -884,10 +854,9 @@ const de_GetViewCommandError = async (output, context) => {
|
|
|
884
854
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
885
855
|
default:
|
|
886
856
|
const parsedBody = parsedOutput.body;
|
|
887
|
-
throwDefaultError({
|
|
857
|
+
return throwDefaultError({
|
|
888
858
|
output,
|
|
889
859
|
parsedBody,
|
|
890
|
-
exceptionCtor: __BaseException,
|
|
891
860
|
errorCode,
|
|
892
861
|
});
|
|
893
862
|
}
|
|
@@ -900,12 +869,11 @@ export const de_ListIndexesCommand = async (output, context) => {
|
|
|
900
869
|
$metadata: deserializeMetadata(output),
|
|
901
870
|
});
|
|
902
871
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
}
|
|
872
|
+
const doc = take(data, {
|
|
873
|
+
Indexes: _json,
|
|
874
|
+
NextToken: __expectString,
|
|
875
|
+
});
|
|
876
|
+
Object.assign(contents, doc);
|
|
909
877
|
return contents;
|
|
910
878
|
};
|
|
911
879
|
const de_ListIndexesCommandError = async (output, context) => {
|
|
@@ -929,10 +897,9 @@ const de_ListIndexesCommandError = async (output, context) => {
|
|
|
929
897
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
930
898
|
default:
|
|
931
899
|
const parsedBody = parsedOutput.body;
|
|
932
|
-
throwDefaultError({
|
|
900
|
+
return throwDefaultError({
|
|
933
901
|
output,
|
|
934
902
|
parsedBody,
|
|
935
|
-
exceptionCtor: __BaseException,
|
|
936
903
|
errorCode,
|
|
937
904
|
});
|
|
938
905
|
}
|
|
@@ -945,12 +912,11 @@ export const de_ListSupportedResourceTypesCommand = async (output, context) => {
|
|
|
945
912
|
$metadata: deserializeMetadata(output),
|
|
946
913
|
});
|
|
947
914
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
}
|
|
915
|
+
const doc = take(data, {
|
|
916
|
+
NextToken: __expectString,
|
|
917
|
+
ResourceTypes: _json,
|
|
918
|
+
});
|
|
919
|
+
Object.assign(contents, doc);
|
|
954
920
|
return contents;
|
|
955
921
|
};
|
|
956
922
|
const de_ListSupportedResourceTypesCommandError = async (output, context) => {
|
|
@@ -974,10 +940,9 @@ const de_ListSupportedResourceTypesCommandError = async (output, context) => {
|
|
|
974
940
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
975
941
|
default:
|
|
976
942
|
const parsedBody = parsedOutput.body;
|
|
977
|
-
throwDefaultError({
|
|
943
|
+
return throwDefaultError({
|
|
978
944
|
output,
|
|
979
945
|
parsedBody,
|
|
980
|
-
exceptionCtor: __BaseException,
|
|
981
946
|
errorCode,
|
|
982
947
|
});
|
|
983
948
|
}
|
|
@@ -990,9 +955,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
990
955
|
$metadata: deserializeMetadata(output),
|
|
991
956
|
});
|
|
992
957
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
}
|
|
958
|
+
const doc = take(data, {
|
|
959
|
+
Tags: _json,
|
|
960
|
+
});
|
|
961
|
+
Object.assign(contents, doc);
|
|
996
962
|
return contents;
|
|
997
963
|
};
|
|
998
964
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1022,10 +988,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1022
988
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1023
989
|
default:
|
|
1024
990
|
const parsedBody = parsedOutput.body;
|
|
1025
|
-
throwDefaultError({
|
|
991
|
+
return throwDefaultError({
|
|
1026
992
|
output,
|
|
1027
993
|
parsedBody,
|
|
1028
|
-
exceptionCtor: __BaseException,
|
|
1029
994
|
errorCode,
|
|
1030
995
|
});
|
|
1031
996
|
}
|
|
@@ -1038,12 +1003,11 @@ export const de_ListViewsCommand = async (output, context) => {
|
|
|
1038
1003
|
$metadata: deserializeMetadata(output),
|
|
1039
1004
|
});
|
|
1040
1005
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
}
|
|
1006
|
+
const doc = take(data, {
|
|
1007
|
+
NextToken: __expectString,
|
|
1008
|
+
Views: _json,
|
|
1009
|
+
});
|
|
1010
|
+
Object.assign(contents, doc);
|
|
1047
1011
|
return contents;
|
|
1048
1012
|
};
|
|
1049
1013
|
const de_ListViewsCommandError = async (output, context) => {
|
|
@@ -1067,10 +1031,9 @@ const de_ListViewsCommandError = async (output, context) => {
|
|
|
1067
1031
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1068
1032
|
default:
|
|
1069
1033
|
const parsedBody = parsedOutput.body;
|
|
1070
|
-
throwDefaultError({
|
|
1034
|
+
return throwDefaultError({
|
|
1071
1035
|
output,
|
|
1072
1036
|
parsedBody,
|
|
1073
|
-
exceptionCtor: __BaseException,
|
|
1074
1037
|
errorCode,
|
|
1075
1038
|
});
|
|
1076
1039
|
}
|
|
@@ -1083,18 +1046,13 @@ export const de_SearchCommand = async (output, context) => {
|
|
|
1083
1046
|
$metadata: deserializeMetadata(output),
|
|
1084
1047
|
});
|
|
1085
1048
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
contents.Resources = de_ResourceList(data.Resources, context);
|
|
1094
|
-
}
|
|
1095
|
-
if (data.ViewArn != null) {
|
|
1096
|
-
contents.ViewArn = __expectString(data.ViewArn);
|
|
1097
|
-
}
|
|
1049
|
+
const doc = take(data, {
|
|
1050
|
+
Count: _json,
|
|
1051
|
+
NextToken: __expectString,
|
|
1052
|
+
Resources: (_) => de_ResourceList(_, context),
|
|
1053
|
+
ViewArn: __expectString,
|
|
1054
|
+
});
|
|
1055
|
+
Object.assign(contents, doc);
|
|
1098
1056
|
return contents;
|
|
1099
1057
|
};
|
|
1100
1058
|
const de_SearchCommandError = async (output, context) => {
|
|
@@ -1124,10 +1082,9 @@ const de_SearchCommandError = async (output, context) => {
|
|
|
1124
1082
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1125
1083
|
default:
|
|
1126
1084
|
const parsedBody = parsedOutput.body;
|
|
1127
|
-
throwDefaultError({
|
|
1085
|
+
return throwDefaultError({
|
|
1128
1086
|
output,
|
|
1129
1087
|
parsedBody,
|
|
1130
|
-
exceptionCtor: __BaseException,
|
|
1131
1088
|
errorCode,
|
|
1132
1089
|
});
|
|
1133
1090
|
}
|
|
@@ -1169,10 +1126,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1169
1126
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1170
1127
|
default:
|
|
1171
1128
|
const parsedBody = parsedOutput.body;
|
|
1172
|
-
throwDefaultError({
|
|
1129
|
+
return throwDefaultError({
|
|
1173
1130
|
output,
|
|
1174
1131
|
parsedBody,
|
|
1175
|
-
exceptionCtor: __BaseException,
|
|
1176
1132
|
errorCode,
|
|
1177
1133
|
});
|
|
1178
1134
|
}
|
|
@@ -1214,10 +1170,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1214
1170
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1215
1171
|
default:
|
|
1216
1172
|
const parsedBody = parsedOutput.body;
|
|
1217
|
-
throwDefaultError({
|
|
1173
|
+
return throwDefaultError({
|
|
1218
1174
|
output,
|
|
1219
1175
|
parsedBody,
|
|
1220
|
-
exceptionCtor: __BaseException,
|
|
1221
1176
|
errorCode,
|
|
1222
1177
|
});
|
|
1223
1178
|
}
|
|
@@ -1230,18 +1185,13 @@ export const de_UpdateIndexTypeCommand = async (output, context) => {
|
|
|
1230
1185
|
$metadata: deserializeMetadata(output),
|
|
1231
1186
|
});
|
|
1232
1187
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
|
-
contents.State = __expectString(data.State);
|
|
1241
|
-
}
|
|
1242
|
-
if (data.Type != null) {
|
|
1243
|
-
contents.Type = __expectString(data.Type);
|
|
1244
|
-
}
|
|
1188
|
+
const doc = take(data, {
|
|
1189
|
+
Arn: __expectString,
|
|
1190
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1191
|
+
State: __expectString,
|
|
1192
|
+
Type: __expectString,
|
|
1193
|
+
});
|
|
1194
|
+
Object.assign(contents, doc);
|
|
1245
1195
|
return contents;
|
|
1246
1196
|
};
|
|
1247
1197
|
const de_UpdateIndexTypeCommandError = async (output, context) => {
|
|
@@ -1274,10 +1224,9 @@ const de_UpdateIndexTypeCommandError = async (output, context) => {
|
|
|
1274
1224
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1275
1225
|
default:
|
|
1276
1226
|
const parsedBody = parsedOutput.body;
|
|
1277
|
-
throwDefaultError({
|
|
1227
|
+
return throwDefaultError({
|
|
1278
1228
|
output,
|
|
1279
1229
|
parsedBody,
|
|
1280
|
-
exceptionCtor: __BaseException,
|
|
1281
1230
|
errorCode,
|
|
1282
1231
|
});
|
|
1283
1232
|
}
|
|
@@ -1290,9 +1239,10 @@ export const de_UpdateViewCommand = async (output, context) => {
|
|
|
1290
1239
|
$metadata: deserializeMetadata(output),
|
|
1291
1240
|
});
|
|
1292
1241
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
}
|
|
1242
|
+
const doc = take(data, {
|
|
1243
|
+
View: (_) => de_View(_, context),
|
|
1244
|
+
});
|
|
1245
|
+
Object.assign(contents, doc);
|
|
1296
1246
|
return contents;
|
|
1297
1247
|
};
|
|
1298
1248
|
const de_UpdateViewCommandError = async (output, context) => {
|
|
@@ -1322,21 +1272,21 @@ const de_UpdateViewCommandError = async (output, context) => {
|
|
|
1322
1272
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1323
1273
|
default:
|
|
1324
1274
|
const parsedBody = parsedOutput.body;
|
|
1325
|
-
throwDefaultError({
|
|
1275
|
+
return throwDefaultError({
|
|
1326
1276
|
output,
|
|
1327
1277
|
parsedBody,
|
|
1328
|
-
exceptionCtor: __BaseException,
|
|
1329
1278
|
errorCode,
|
|
1330
1279
|
});
|
|
1331
1280
|
}
|
|
1332
1281
|
};
|
|
1333
|
-
const
|
|
1282
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1334
1283
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1335
1284
|
const contents = map({});
|
|
1336
1285
|
const data = parsedOutput.body;
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
}
|
|
1286
|
+
const doc = take(data, {
|
|
1287
|
+
Message: __expectString,
|
|
1288
|
+
});
|
|
1289
|
+
Object.assign(contents, doc);
|
|
1340
1290
|
const exception = new AccessDeniedException({
|
|
1341
1291
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1342
1292
|
...contents,
|
|
@@ -1346,9 +1296,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1346
1296
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1347
1297
|
const contents = map({});
|
|
1348
1298
|
const data = parsedOutput.body;
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
}
|
|
1299
|
+
const doc = take(data, {
|
|
1300
|
+
Message: __expectString,
|
|
1301
|
+
});
|
|
1302
|
+
Object.assign(contents, doc);
|
|
1352
1303
|
const exception = new ConflictException({
|
|
1353
1304
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1354
1305
|
...contents,
|
|
@@ -1358,9 +1309,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1358
1309
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1359
1310
|
const contents = map({});
|
|
1360
1311
|
const data = parsedOutput.body;
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
}
|
|
1312
|
+
const doc = take(data, {
|
|
1313
|
+
Message: __expectString,
|
|
1314
|
+
});
|
|
1315
|
+
Object.assign(contents, doc);
|
|
1364
1316
|
const exception = new InternalServerException({
|
|
1365
1317
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1366
1318
|
...contents,
|
|
@@ -1370,9 +1322,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1370
1322
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1371
1323
|
const contents = map({});
|
|
1372
1324
|
const data = parsedOutput.body;
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
}
|
|
1325
|
+
const doc = take(data, {
|
|
1326
|
+
Message: __expectString,
|
|
1327
|
+
});
|
|
1328
|
+
Object.assign(contents, doc);
|
|
1376
1329
|
const exception = new ResourceNotFoundException({
|
|
1377
1330
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1378
1331
|
...contents,
|
|
@@ -1382,15 +1335,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1382
1335
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1383
1336
|
const contents = map({});
|
|
1384
1337
|
const data = parsedOutput.body;
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
if (data.Value != null) {
|
|
1392
|
-
contents.Value = __expectString(data.Value);
|
|
1393
|
-
}
|
|
1338
|
+
const doc = take(data, {
|
|
1339
|
+
Message: __expectString,
|
|
1340
|
+
Name: __expectString,
|
|
1341
|
+
Value: __expectString,
|
|
1342
|
+
});
|
|
1343
|
+
Object.assign(contents, doc);
|
|
1394
1344
|
const exception = new ServiceQuotaExceededException({
|
|
1395
1345
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1396
1346
|
...contents,
|
|
@@ -1400,9 +1350,10 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1400
1350
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1401
1351
|
const contents = map({});
|
|
1402
1352
|
const data = parsedOutput.body;
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
}
|
|
1353
|
+
const doc = take(data, {
|
|
1354
|
+
Message: __expectString,
|
|
1355
|
+
});
|
|
1356
|
+
Object.assign(contents, doc);
|
|
1406
1357
|
const exception = new ThrottlingException({
|
|
1407
1358
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1408
1359
|
...contents,
|
|
@@ -1412,9 +1363,10 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1412
1363
|
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1413
1364
|
const contents = map({});
|
|
1414
1365
|
const data = parsedOutput.body;
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
}
|
|
1366
|
+
const doc = take(data, {
|
|
1367
|
+
Message: __expectString,
|
|
1368
|
+
});
|
|
1369
|
+
Object.assign(contents, doc);
|
|
1418
1370
|
const exception = new UnauthorizedException({
|
|
1419
1371
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1420
1372
|
...contents,
|
|
@@ -1424,248 +1376,65 @@ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
|
1424
1376
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1425
1377
|
const contents = map({});
|
|
1426
1378
|
const data = parsedOutput.body;
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
}
|
|
1379
|
+
const doc = take(data, {
|
|
1380
|
+
FieldList: _json,
|
|
1381
|
+
Message: __expectString,
|
|
1382
|
+
});
|
|
1383
|
+
Object.assign(contents, doc);
|
|
1433
1384
|
const exception = new ValidationException({
|
|
1434
1385
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1435
1386
|
...contents,
|
|
1436
1387
|
});
|
|
1437
1388
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1438
1389
|
};
|
|
1439
|
-
const se_IncludedProperty = (input, context) => {
|
|
1440
|
-
return {
|
|
1441
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1442
|
-
};
|
|
1443
|
-
};
|
|
1444
|
-
const se_IncludedPropertyList = (input, context) => {
|
|
1445
|
-
return input
|
|
1446
|
-
.filter((e) => e != null)
|
|
1447
|
-
.map((entry) => {
|
|
1448
|
-
return se_IncludedProperty(entry, context);
|
|
1449
|
-
});
|
|
1450
|
-
};
|
|
1451
|
-
const se_RegionList = (input, context) => {
|
|
1452
|
-
return input
|
|
1453
|
-
.filter((e) => e != null)
|
|
1454
|
-
.map((entry) => {
|
|
1455
|
-
return entry;
|
|
1456
|
-
});
|
|
1457
|
-
};
|
|
1458
|
-
const se_SearchFilter = (input, context) => {
|
|
1459
|
-
return {
|
|
1460
|
-
...(input.FilterString != null && { FilterString: input.FilterString }),
|
|
1461
|
-
};
|
|
1462
|
-
};
|
|
1463
|
-
const se_TagMap = (input, context) => {
|
|
1464
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1465
|
-
if (value === null) {
|
|
1466
|
-
return acc;
|
|
1467
|
-
}
|
|
1468
|
-
acc[key] = value;
|
|
1469
|
-
return acc;
|
|
1470
|
-
}, {});
|
|
1471
|
-
};
|
|
1472
|
-
const se_ViewArnList = (input, context) => {
|
|
1473
|
-
return input
|
|
1474
|
-
.filter((e) => e != null)
|
|
1475
|
-
.map((entry) => {
|
|
1476
|
-
return entry;
|
|
1477
|
-
});
|
|
1478
|
-
};
|
|
1479
|
-
const de_BatchGetViewError = (output, context) => {
|
|
1480
|
-
return {
|
|
1481
|
-
ErrorMessage: __expectString(output.ErrorMessage),
|
|
1482
|
-
ViewArn: __expectString(output.ViewArn),
|
|
1483
|
-
};
|
|
1484
|
-
};
|
|
1485
|
-
const de_BatchGetViewErrors = (output, context) => {
|
|
1486
|
-
const retVal = (output || [])
|
|
1487
|
-
.filter((e) => e != null)
|
|
1488
|
-
.map((entry) => {
|
|
1489
|
-
if (entry === null) {
|
|
1490
|
-
return null;
|
|
1491
|
-
}
|
|
1492
|
-
return de_BatchGetViewError(entry, context);
|
|
1493
|
-
});
|
|
1494
|
-
return retVal;
|
|
1495
|
-
};
|
|
1496
|
-
const de_IncludedProperty = (output, context) => {
|
|
1497
|
-
return {
|
|
1498
|
-
Name: __expectString(output.Name),
|
|
1499
|
-
};
|
|
1500
|
-
};
|
|
1501
|
-
const de_IncludedPropertyList = (output, context) => {
|
|
1502
|
-
const retVal = (output || [])
|
|
1503
|
-
.filter((e) => e != null)
|
|
1504
|
-
.map((entry) => {
|
|
1505
|
-
if (entry === null) {
|
|
1506
|
-
return null;
|
|
1507
|
-
}
|
|
1508
|
-
return de_IncludedProperty(entry, context);
|
|
1509
|
-
});
|
|
1510
|
-
return retVal;
|
|
1511
|
-
};
|
|
1512
|
-
const de_Index = (output, context) => {
|
|
1513
|
-
return {
|
|
1514
|
-
Arn: __expectString(output.Arn),
|
|
1515
|
-
Region: __expectString(output.Region),
|
|
1516
|
-
Type: __expectString(output.Type),
|
|
1517
|
-
};
|
|
1518
|
-
};
|
|
1519
|
-
const de_IndexList = (output, context) => {
|
|
1520
|
-
const retVal = (output || [])
|
|
1521
|
-
.filter((e) => e != null)
|
|
1522
|
-
.map((entry) => {
|
|
1523
|
-
if (entry === null) {
|
|
1524
|
-
return null;
|
|
1525
|
-
}
|
|
1526
|
-
return de_Index(entry, context);
|
|
1527
|
-
});
|
|
1528
|
-
return retVal;
|
|
1529
|
-
};
|
|
1530
|
-
const de_RegionList = (output, context) => {
|
|
1531
|
-
const retVal = (output || [])
|
|
1532
|
-
.filter((e) => e != null)
|
|
1533
|
-
.map((entry) => {
|
|
1534
|
-
if (entry === null) {
|
|
1535
|
-
return null;
|
|
1536
|
-
}
|
|
1537
|
-
return __expectString(entry);
|
|
1538
|
-
});
|
|
1539
|
-
return retVal;
|
|
1540
|
-
};
|
|
1541
1390
|
const de_Resource = (output, context) => {
|
|
1542
|
-
return {
|
|
1543
|
-
Arn: __expectString
|
|
1544
|
-
LastReportedAt:
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
Service: __expectString(output.Service),
|
|
1552
|
-
};
|
|
1553
|
-
};
|
|
1554
|
-
const de_ResourceCount = (output, context) => {
|
|
1555
|
-
return {
|
|
1556
|
-
Complete: __expectBoolean(output.Complete),
|
|
1557
|
-
TotalResources: __expectLong(output.TotalResources),
|
|
1558
|
-
};
|
|
1391
|
+
return take(output, {
|
|
1392
|
+
Arn: __expectString,
|
|
1393
|
+
LastReportedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1394
|
+
OwningAccountId: __expectString,
|
|
1395
|
+
Properties: (_) => de_ResourcePropertyList(_, context),
|
|
1396
|
+
Region: __expectString,
|
|
1397
|
+
ResourceType: __expectString,
|
|
1398
|
+
Service: __expectString,
|
|
1399
|
+
});
|
|
1559
1400
|
};
|
|
1560
1401
|
const de_ResourceList = (output, context) => {
|
|
1561
1402
|
const retVal = (output || [])
|
|
1562
1403
|
.filter((e) => e != null)
|
|
1563
1404
|
.map((entry) => {
|
|
1564
|
-
if (entry === null) {
|
|
1565
|
-
return null;
|
|
1566
|
-
}
|
|
1567
1405
|
return de_Resource(entry, context);
|
|
1568
1406
|
});
|
|
1569
1407
|
return retVal;
|
|
1570
1408
|
};
|
|
1571
1409
|
const de_ResourceProperty = (output, context) => {
|
|
1572
|
-
return {
|
|
1573
|
-
Data:
|
|
1574
|
-
LastReportedAt:
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
Name: __expectString(output.Name),
|
|
1578
|
-
};
|
|
1410
|
+
return take(output, {
|
|
1411
|
+
Data: (_) => de_Document(_, context),
|
|
1412
|
+
LastReportedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1413
|
+
Name: __expectString,
|
|
1414
|
+
});
|
|
1579
1415
|
};
|
|
1580
1416
|
const de_ResourcePropertyList = (output, context) => {
|
|
1581
1417
|
const retVal = (output || [])
|
|
1582
1418
|
.filter((e) => e != null)
|
|
1583
1419
|
.map((entry) => {
|
|
1584
|
-
if (entry === null) {
|
|
1585
|
-
return null;
|
|
1586
|
-
}
|
|
1587
1420
|
return de_ResourceProperty(entry, context);
|
|
1588
1421
|
});
|
|
1589
1422
|
return retVal;
|
|
1590
1423
|
};
|
|
1591
|
-
const de_ResourceTypeList = (output, context) => {
|
|
1592
|
-
const retVal = (output || [])
|
|
1593
|
-
.filter((e) => e != null)
|
|
1594
|
-
.map((entry) => {
|
|
1595
|
-
if (entry === null) {
|
|
1596
|
-
return null;
|
|
1597
|
-
}
|
|
1598
|
-
return de_SupportedResourceType(entry, context);
|
|
1599
|
-
});
|
|
1600
|
-
return retVal;
|
|
1601
|
-
};
|
|
1602
|
-
const de_SearchFilter = (output, context) => {
|
|
1603
|
-
return {
|
|
1604
|
-
FilterString: __expectString(output.FilterString),
|
|
1605
|
-
};
|
|
1606
|
-
};
|
|
1607
|
-
const de_SupportedResourceType = (output, context) => {
|
|
1608
|
-
return {
|
|
1609
|
-
ResourceType: __expectString(output.ResourceType),
|
|
1610
|
-
Service: __expectString(output.Service),
|
|
1611
|
-
};
|
|
1612
|
-
};
|
|
1613
|
-
const de_TagMap = (output, context) => {
|
|
1614
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1615
|
-
if (value === null) {
|
|
1616
|
-
return acc;
|
|
1617
|
-
}
|
|
1618
|
-
acc[key] = __expectString(value);
|
|
1619
|
-
return acc;
|
|
1620
|
-
}, {});
|
|
1621
|
-
};
|
|
1622
|
-
const de_ValidationExceptionField = (output, context) => {
|
|
1623
|
-
return {
|
|
1624
|
-
Name: __expectString(output.Name),
|
|
1625
|
-
ValidationIssue: __expectString(output.ValidationIssue),
|
|
1626
|
-
};
|
|
1627
|
-
};
|
|
1628
|
-
const de_ValidationExceptionFieldList = (output, context) => {
|
|
1629
|
-
const retVal = (output || [])
|
|
1630
|
-
.filter((e) => e != null)
|
|
1631
|
-
.map((entry) => {
|
|
1632
|
-
if (entry === null) {
|
|
1633
|
-
return null;
|
|
1634
|
-
}
|
|
1635
|
-
return de_ValidationExceptionField(entry, context);
|
|
1636
|
-
});
|
|
1637
|
-
return retVal;
|
|
1638
|
-
};
|
|
1639
1424
|
const de_View = (output, context) => {
|
|
1640
|
-
return {
|
|
1641
|
-
Filters:
|
|
1642
|
-
IncludedProperties:
|
|
1643
|
-
LastUpdatedAt:
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
Scope: __expectString(output.Scope),
|
|
1648
|
-
ViewArn: __expectString(output.ViewArn),
|
|
1649
|
-
};
|
|
1650
|
-
};
|
|
1651
|
-
const de_ViewArnList = (output, context) => {
|
|
1652
|
-
const retVal = (output || [])
|
|
1653
|
-
.filter((e) => e != null)
|
|
1654
|
-
.map((entry) => {
|
|
1655
|
-
if (entry === null) {
|
|
1656
|
-
return null;
|
|
1657
|
-
}
|
|
1658
|
-
return __expectString(entry);
|
|
1425
|
+
return take(output, {
|
|
1426
|
+
Filters: _json,
|
|
1427
|
+
IncludedProperties: _json,
|
|
1428
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1429
|
+
Owner: __expectString,
|
|
1430
|
+
Scope: __expectString,
|
|
1431
|
+
ViewArn: __expectString,
|
|
1659
1432
|
});
|
|
1660
|
-
return retVal;
|
|
1661
1433
|
};
|
|
1662
1434
|
const de_ViewList = (output, context) => {
|
|
1663
1435
|
const retVal = (output || [])
|
|
1664
1436
|
.filter((e) => e != null)
|
|
1665
1437
|
.map((entry) => {
|
|
1666
|
-
if (entry === null) {
|
|
1667
|
-
return null;
|
|
1668
|
-
}
|
|
1669
1438
|
return de_View(entry, context);
|
|
1670
1439
|
});
|
|
1671
1440
|
return retVal;
|