@aws-sdk/client-rolesanywhere 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 +288 -426
- package/dist-es/protocols/Aws_restJson1.js +255 -393
- package/package.json +6 -6
|
@@ -13,18 +13,16 @@ const se_CreateProfileCommand = async (input, context) => {
|
|
|
13
13
|
};
|
|
14
14
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles";
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
27
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
durationSeconds: [],
|
|
18
|
+
enabled: [],
|
|
19
|
+
managedPolicyArns: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
+
name: [],
|
|
21
|
+
requireInstanceProperties: [],
|
|
22
|
+
roleArns: (_) => (0, smithy_client_1._json)(_),
|
|
23
|
+
sessionPolicy: [],
|
|
24
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
25
|
+
}));
|
|
28
26
|
return new protocol_http_1.HttpRequest({
|
|
29
27
|
protocol,
|
|
30
28
|
hostname,
|
|
@@ -43,12 +41,12 @@ const se_CreateTrustAnchorCommand = async (input, context) => {
|
|
|
43
41
|
};
|
|
44
42
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchors";
|
|
45
43
|
let body;
|
|
46
|
-
body = JSON.stringify({
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
});
|
|
44
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
45
|
+
enabled: [],
|
|
46
|
+
name: [],
|
|
47
|
+
source: (_) => (0, smithy_client_1._json)(_),
|
|
48
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
49
|
+
}));
|
|
52
50
|
return new protocol_http_1.HttpRequest({
|
|
53
51
|
protocol,
|
|
54
52
|
hostname,
|
|
@@ -288,13 +286,13 @@ const se_ImportCrlCommand = async (input, context) => {
|
|
|
288
286
|
};
|
|
289
287
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crls";
|
|
290
288
|
let body;
|
|
291
|
-
body = JSON.stringify({
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
});
|
|
289
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
290
|
+
crlData: (_) => context.base64Encoder(_),
|
|
291
|
+
enabled: [],
|
|
292
|
+
name: [],
|
|
293
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
294
|
+
trustAnchorArn: [],
|
|
295
|
+
}));
|
|
298
296
|
return new protocol_http_1.HttpRequest({
|
|
299
297
|
protocol,
|
|
300
298
|
hostname,
|
|
@@ -310,7 +308,7 @@ const se_ListCrlsCommand = async (input, context) => {
|
|
|
310
308
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
311
309
|
const headers = {};
|
|
312
310
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crls";
|
|
313
|
-
const query = map({
|
|
311
|
+
const query = (0, smithy_client_1.map)({
|
|
314
312
|
nextToken: [, input.nextToken],
|
|
315
313
|
pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
|
|
316
314
|
});
|
|
@@ -331,7 +329,7 @@ const se_ListProfilesCommand = async (input, context) => {
|
|
|
331
329
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
332
330
|
const headers = {};
|
|
333
331
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles";
|
|
334
|
-
const query = map({
|
|
332
|
+
const query = (0, smithy_client_1.map)({
|
|
335
333
|
nextToken: [, input.nextToken],
|
|
336
334
|
pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
|
|
337
335
|
});
|
|
@@ -352,7 +350,7 @@ const se_ListSubjectsCommand = async (input, context) => {
|
|
|
352
350
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
353
351
|
const headers = {};
|
|
354
352
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subjects";
|
|
355
|
-
const query = map({
|
|
353
|
+
const query = (0, smithy_client_1.map)({
|
|
356
354
|
nextToken: [, input.nextToken],
|
|
357
355
|
pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
|
|
358
356
|
});
|
|
@@ -373,7 +371,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
373
371
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
374
372
|
const headers = {};
|
|
375
373
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTagsForResource";
|
|
376
|
-
const query = map({
|
|
374
|
+
const query = (0, smithy_client_1.map)({
|
|
377
375
|
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
|
|
378
376
|
});
|
|
379
377
|
let body;
|
|
@@ -393,7 +391,7 @@ const se_ListTrustAnchorsCommand = async (input, context) => {
|
|
|
393
391
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
394
392
|
const headers = {};
|
|
395
393
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchors";
|
|
396
|
-
const query = map({
|
|
394
|
+
const query = (0, smithy_client_1.map)({
|
|
397
395
|
nextToken: [, input.nextToken],
|
|
398
396
|
pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
|
|
399
397
|
});
|
|
@@ -417,10 +415,10 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
417
415
|
};
|
|
418
416
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TagResource";
|
|
419
417
|
let body;
|
|
420
|
-
body = JSON.stringify({
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
});
|
|
418
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
419
|
+
resourceArn: [],
|
|
420
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
421
|
+
}));
|
|
424
422
|
return new protocol_http_1.HttpRequest({
|
|
425
423
|
protocol,
|
|
426
424
|
hostname,
|
|
@@ -439,10 +437,10 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
439
437
|
};
|
|
440
438
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UntagResource";
|
|
441
439
|
let body;
|
|
442
|
-
body = JSON.stringify({
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
});
|
|
440
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
441
|
+
resourceArn: [],
|
|
442
|
+
tagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
443
|
+
}));
|
|
446
444
|
return new protocol_http_1.HttpRequest({
|
|
447
445
|
protocol,
|
|
448
446
|
hostname,
|
|
@@ -462,10 +460,10 @@ const se_UpdateCrlCommand = async (input, context) => {
|
|
|
462
460
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}";
|
|
463
461
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "crlId", () => input.crlId, "{crlId}", false);
|
|
464
462
|
let body;
|
|
465
|
-
body = JSON.stringify({
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
});
|
|
463
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
464
|
+
crlData: (_) => context.base64Encoder(_),
|
|
465
|
+
name: [],
|
|
466
|
+
}));
|
|
469
467
|
return new protocol_http_1.HttpRequest({
|
|
470
468
|
protocol,
|
|
471
469
|
hostname,
|
|
@@ -485,15 +483,13 @@ const se_UpdateProfileCommand = async (input, context) => {
|
|
|
485
483
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}";
|
|
486
484
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "profileId", () => input.profileId, "{profileId}", false);
|
|
487
485
|
let body;
|
|
488
|
-
body = JSON.stringify({
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
...(input.sessionPolicy != null && { sessionPolicy: input.sessionPolicy }),
|
|
496
|
-
});
|
|
486
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
487
|
+
durationSeconds: [],
|
|
488
|
+
managedPolicyArns: (_) => (0, smithy_client_1._json)(_),
|
|
489
|
+
name: [],
|
|
490
|
+
roleArns: (_) => (0, smithy_client_1._json)(_),
|
|
491
|
+
sessionPolicy: [],
|
|
492
|
+
}));
|
|
497
493
|
return new protocol_http_1.HttpRequest({
|
|
498
494
|
protocol,
|
|
499
495
|
hostname,
|
|
@@ -513,10 +509,10 @@ const se_UpdateTrustAnchorCommand = async (input, context) => {
|
|
|
513
509
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}";
|
|
514
510
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
|
|
515
511
|
let body;
|
|
516
|
-
body = JSON.stringify({
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
});
|
|
512
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
513
|
+
name: [],
|
|
514
|
+
source: (_) => (0, smithy_client_1._json)(_),
|
|
515
|
+
}));
|
|
520
516
|
return new protocol_http_1.HttpRequest({
|
|
521
517
|
protocol,
|
|
522
518
|
hostname,
|
|
@@ -532,13 +528,14 @@ const de_CreateProfileCommand = async (output, context) => {
|
|
|
532
528
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
533
529
|
return de_CreateProfileCommandError(output, context);
|
|
534
530
|
}
|
|
535
|
-
const contents = map({
|
|
531
|
+
const contents = (0, smithy_client_1.map)({
|
|
536
532
|
$metadata: deserializeMetadata(output),
|
|
537
533
|
});
|
|
538
534
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
}
|
|
535
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
536
|
+
profile: (_) => de_ProfileDetail(_, context),
|
|
537
|
+
});
|
|
538
|
+
Object.assign(contents, doc);
|
|
542
539
|
return contents;
|
|
543
540
|
};
|
|
544
541
|
exports.de_CreateProfileCommand = de_CreateProfileCommand;
|
|
@@ -557,10 +554,9 @@ const de_CreateProfileCommandError = async (output, context) => {
|
|
|
557
554
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
558
555
|
default:
|
|
559
556
|
const parsedBody = parsedOutput.body;
|
|
560
|
-
|
|
557
|
+
return throwDefaultError({
|
|
561
558
|
output,
|
|
562
559
|
parsedBody,
|
|
563
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
564
560
|
errorCode,
|
|
565
561
|
});
|
|
566
562
|
}
|
|
@@ -569,13 +565,14 @@ const de_CreateTrustAnchorCommand = async (output, context) => {
|
|
|
569
565
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
570
566
|
return de_CreateTrustAnchorCommandError(output, context);
|
|
571
567
|
}
|
|
572
|
-
const contents = map({
|
|
568
|
+
const contents = (0, smithy_client_1.map)({
|
|
573
569
|
$metadata: deserializeMetadata(output),
|
|
574
570
|
});
|
|
575
571
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}
|
|
572
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
573
|
+
trustAnchor: (_) => de_TrustAnchorDetail(_, context),
|
|
574
|
+
});
|
|
575
|
+
Object.assign(contents, doc);
|
|
579
576
|
return contents;
|
|
580
577
|
};
|
|
581
578
|
exports.de_CreateTrustAnchorCommand = de_CreateTrustAnchorCommand;
|
|
@@ -594,10 +591,9 @@ const de_CreateTrustAnchorCommandError = async (output, context) => {
|
|
|
594
591
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
595
592
|
default:
|
|
596
593
|
const parsedBody = parsedOutput.body;
|
|
597
|
-
|
|
594
|
+
return throwDefaultError({
|
|
598
595
|
output,
|
|
599
596
|
parsedBody,
|
|
600
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
601
597
|
errorCode,
|
|
602
598
|
});
|
|
603
599
|
}
|
|
@@ -606,13 +602,14 @@ const de_DeleteCrlCommand = async (output, context) => {
|
|
|
606
602
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
607
603
|
return de_DeleteCrlCommandError(output, context);
|
|
608
604
|
}
|
|
609
|
-
const contents = map({
|
|
605
|
+
const contents = (0, smithy_client_1.map)({
|
|
610
606
|
$metadata: deserializeMetadata(output),
|
|
611
607
|
});
|
|
612
608
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
}
|
|
609
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
610
|
+
crl: (_) => de_CrlDetail(_, context),
|
|
611
|
+
});
|
|
612
|
+
Object.assign(contents, doc);
|
|
616
613
|
return contents;
|
|
617
614
|
};
|
|
618
615
|
exports.de_DeleteCrlCommand = de_DeleteCrlCommand;
|
|
@@ -631,10 +628,9 @@ const de_DeleteCrlCommandError = async (output, context) => {
|
|
|
631
628
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
632
629
|
default:
|
|
633
630
|
const parsedBody = parsedOutput.body;
|
|
634
|
-
|
|
631
|
+
return throwDefaultError({
|
|
635
632
|
output,
|
|
636
633
|
parsedBody,
|
|
637
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
638
634
|
errorCode,
|
|
639
635
|
});
|
|
640
636
|
}
|
|
@@ -643,13 +639,14 @@ const de_DeleteProfileCommand = async (output, context) => {
|
|
|
643
639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
644
640
|
return de_DeleteProfileCommandError(output, context);
|
|
645
641
|
}
|
|
646
|
-
const contents = map({
|
|
642
|
+
const contents = (0, smithy_client_1.map)({
|
|
647
643
|
$metadata: deserializeMetadata(output),
|
|
648
644
|
});
|
|
649
645
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
}
|
|
646
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
647
|
+
profile: (_) => de_ProfileDetail(_, context),
|
|
648
|
+
});
|
|
649
|
+
Object.assign(contents, doc);
|
|
653
650
|
return contents;
|
|
654
651
|
};
|
|
655
652
|
exports.de_DeleteProfileCommand = de_DeleteProfileCommand;
|
|
@@ -668,10 +665,9 @@ const de_DeleteProfileCommandError = async (output, context) => {
|
|
|
668
665
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
669
666
|
default:
|
|
670
667
|
const parsedBody = parsedOutput.body;
|
|
671
|
-
|
|
668
|
+
return throwDefaultError({
|
|
672
669
|
output,
|
|
673
670
|
parsedBody,
|
|
674
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
675
671
|
errorCode,
|
|
676
672
|
});
|
|
677
673
|
}
|
|
@@ -680,13 +676,14 @@ const de_DeleteTrustAnchorCommand = async (output, context) => {
|
|
|
680
676
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
681
677
|
return de_DeleteTrustAnchorCommandError(output, context);
|
|
682
678
|
}
|
|
683
|
-
const contents = map({
|
|
679
|
+
const contents = (0, smithy_client_1.map)({
|
|
684
680
|
$metadata: deserializeMetadata(output),
|
|
685
681
|
});
|
|
686
682
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
}
|
|
683
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
684
|
+
trustAnchor: (_) => de_TrustAnchorDetail(_, context),
|
|
685
|
+
});
|
|
686
|
+
Object.assign(contents, doc);
|
|
690
687
|
return contents;
|
|
691
688
|
};
|
|
692
689
|
exports.de_DeleteTrustAnchorCommand = de_DeleteTrustAnchorCommand;
|
|
@@ -705,10 +702,9 @@ const de_DeleteTrustAnchorCommandError = async (output, context) => {
|
|
|
705
702
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
706
703
|
default:
|
|
707
704
|
const parsedBody = parsedOutput.body;
|
|
708
|
-
|
|
705
|
+
return throwDefaultError({
|
|
709
706
|
output,
|
|
710
707
|
parsedBody,
|
|
711
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
712
708
|
errorCode,
|
|
713
709
|
});
|
|
714
710
|
}
|
|
@@ -717,13 +713,14 @@ const de_DisableCrlCommand = async (output, context) => {
|
|
|
717
713
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
718
714
|
return de_DisableCrlCommandError(output, context);
|
|
719
715
|
}
|
|
720
|
-
const contents = map({
|
|
716
|
+
const contents = (0, smithy_client_1.map)({
|
|
721
717
|
$metadata: deserializeMetadata(output),
|
|
722
718
|
});
|
|
723
719
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
}
|
|
720
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
721
|
+
crl: (_) => de_CrlDetail(_, context),
|
|
722
|
+
});
|
|
723
|
+
Object.assign(contents, doc);
|
|
727
724
|
return contents;
|
|
728
725
|
};
|
|
729
726
|
exports.de_DisableCrlCommand = de_DisableCrlCommand;
|
|
@@ -742,10 +739,9 @@ const de_DisableCrlCommandError = async (output, context) => {
|
|
|
742
739
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
743
740
|
default:
|
|
744
741
|
const parsedBody = parsedOutput.body;
|
|
745
|
-
|
|
742
|
+
return throwDefaultError({
|
|
746
743
|
output,
|
|
747
744
|
parsedBody,
|
|
748
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
749
745
|
errorCode,
|
|
750
746
|
});
|
|
751
747
|
}
|
|
@@ -754,13 +750,14 @@ const de_DisableProfileCommand = async (output, context) => {
|
|
|
754
750
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
751
|
return de_DisableProfileCommandError(output, context);
|
|
756
752
|
}
|
|
757
|
-
const contents = map({
|
|
753
|
+
const contents = (0, smithy_client_1.map)({
|
|
758
754
|
$metadata: deserializeMetadata(output),
|
|
759
755
|
});
|
|
760
756
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
}
|
|
757
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
758
|
+
profile: (_) => de_ProfileDetail(_, context),
|
|
759
|
+
});
|
|
760
|
+
Object.assign(contents, doc);
|
|
764
761
|
return contents;
|
|
765
762
|
};
|
|
766
763
|
exports.de_DisableProfileCommand = de_DisableProfileCommand;
|
|
@@ -779,10 +776,9 @@ const de_DisableProfileCommandError = async (output, context) => {
|
|
|
779
776
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
780
777
|
default:
|
|
781
778
|
const parsedBody = parsedOutput.body;
|
|
782
|
-
|
|
779
|
+
return throwDefaultError({
|
|
783
780
|
output,
|
|
784
781
|
parsedBody,
|
|
785
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
786
782
|
errorCode,
|
|
787
783
|
});
|
|
788
784
|
}
|
|
@@ -791,13 +787,14 @@ const de_DisableTrustAnchorCommand = async (output, context) => {
|
|
|
791
787
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
788
|
return de_DisableTrustAnchorCommandError(output, context);
|
|
793
789
|
}
|
|
794
|
-
const contents = map({
|
|
790
|
+
const contents = (0, smithy_client_1.map)({
|
|
795
791
|
$metadata: deserializeMetadata(output),
|
|
796
792
|
});
|
|
797
793
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
}
|
|
794
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
795
|
+
trustAnchor: (_) => de_TrustAnchorDetail(_, context),
|
|
796
|
+
});
|
|
797
|
+
Object.assign(contents, doc);
|
|
801
798
|
return contents;
|
|
802
799
|
};
|
|
803
800
|
exports.de_DisableTrustAnchorCommand = de_DisableTrustAnchorCommand;
|
|
@@ -816,10 +813,9 @@ const de_DisableTrustAnchorCommandError = async (output, context) => {
|
|
|
816
813
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
817
814
|
default:
|
|
818
815
|
const parsedBody = parsedOutput.body;
|
|
819
|
-
|
|
816
|
+
return throwDefaultError({
|
|
820
817
|
output,
|
|
821
818
|
parsedBody,
|
|
822
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
823
819
|
errorCode,
|
|
824
820
|
});
|
|
825
821
|
}
|
|
@@ -828,13 +824,14 @@ const de_EnableCrlCommand = async (output, context) => {
|
|
|
828
824
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
829
825
|
return de_EnableCrlCommandError(output, context);
|
|
830
826
|
}
|
|
831
|
-
const contents = map({
|
|
827
|
+
const contents = (0, smithy_client_1.map)({
|
|
832
828
|
$metadata: deserializeMetadata(output),
|
|
833
829
|
});
|
|
834
830
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
}
|
|
831
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
832
|
+
crl: (_) => de_CrlDetail(_, context),
|
|
833
|
+
});
|
|
834
|
+
Object.assign(contents, doc);
|
|
838
835
|
return contents;
|
|
839
836
|
};
|
|
840
837
|
exports.de_EnableCrlCommand = de_EnableCrlCommand;
|
|
@@ -853,10 +850,9 @@ const de_EnableCrlCommandError = async (output, context) => {
|
|
|
853
850
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
854
851
|
default:
|
|
855
852
|
const parsedBody = parsedOutput.body;
|
|
856
|
-
|
|
853
|
+
return throwDefaultError({
|
|
857
854
|
output,
|
|
858
855
|
parsedBody,
|
|
859
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
860
856
|
errorCode,
|
|
861
857
|
});
|
|
862
858
|
}
|
|
@@ -865,13 +861,14 @@ const de_EnableProfileCommand = async (output, context) => {
|
|
|
865
861
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
866
862
|
return de_EnableProfileCommandError(output, context);
|
|
867
863
|
}
|
|
868
|
-
const contents = map({
|
|
864
|
+
const contents = (0, smithy_client_1.map)({
|
|
869
865
|
$metadata: deserializeMetadata(output),
|
|
870
866
|
});
|
|
871
867
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
}
|
|
868
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
869
|
+
profile: (_) => de_ProfileDetail(_, context),
|
|
870
|
+
});
|
|
871
|
+
Object.assign(contents, doc);
|
|
875
872
|
return contents;
|
|
876
873
|
};
|
|
877
874
|
exports.de_EnableProfileCommand = de_EnableProfileCommand;
|
|
@@ -890,10 +887,9 @@ const de_EnableProfileCommandError = async (output, context) => {
|
|
|
890
887
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
891
888
|
default:
|
|
892
889
|
const parsedBody = parsedOutput.body;
|
|
893
|
-
|
|
890
|
+
return throwDefaultError({
|
|
894
891
|
output,
|
|
895
892
|
parsedBody,
|
|
896
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
897
893
|
errorCode,
|
|
898
894
|
});
|
|
899
895
|
}
|
|
@@ -902,13 +898,14 @@ const de_EnableTrustAnchorCommand = async (output, context) => {
|
|
|
902
898
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
903
899
|
return de_EnableTrustAnchorCommandError(output, context);
|
|
904
900
|
}
|
|
905
|
-
const contents = map({
|
|
901
|
+
const contents = (0, smithy_client_1.map)({
|
|
906
902
|
$metadata: deserializeMetadata(output),
|
|
907
903
|
});
|
|
908
904
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
}
|
|
905
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
906
|
+
trustAnchor: (_) => de_TrustAnchorDetail(_, context),
|
|
907
|
+
});
|
|
908
|
+
Object.assign(contents, doc);
|
|
912
909
|
return contents;
|
|
913
910
|
};
|
|
914
911
|
exports.de_EnableTrustAnchorCommand = de_EnableTrustAnchorCommand;
|
|
@@ -927,10 +924,9 @@ const de_EnableTrustAnchorCommandError = async (output, context) => {
|
|
|
927
924
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
928
925
|
default:
|
|
929
926
|
const parsedBody = parsedOutput.body;
|
|
930
|
-
|
|
927
|
+
return throwDefaultError({
|
|
931
928
|
output,
|
|
932
929
|
parsedBody,
|
|
933
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
934
930
|
errorCode,
|
|
935
931
|
});
|
|
936
932
|
}
|
|
@@ -939,13 +935,14 @@ const de_GetCrlCommand = async (output, context) => {
|
|
|
939
935
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
940
936
|
return de_GetCrlCommandError(output, context);
|
|
941
937
|
}
|
|
942
|
-
const contents = map({
|
|
938
|
+
const contents = (0, smithy_client_1.map)({
|
|
943
939
|
$metadata: deserializeMetadata(output),
|
|
944
940
|
});
|
|
945
941
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
}
|
|
942
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
943
|
+
crl: (_) => de_CrlDetail(_, context),
|
|
944
|
+
});
|
|
945
|
+
Object.assign(contents, doc);
|
|
949
946
|
return contents;
|
|
950
947
|
};
|
|
951
948
|
exports.de_GetCrlCommand = de_GetCrlCommand;
|
|
@@ -961,10 +958,9 @@ const de_GetCrlCommandError = async (output, context) => {
|
|
|
961
958
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
962
959
|
default:
|
|
963
960
|
const parsedBody = parsedOutput.body;
|
|
964
|
-
|
|
961
|
+
return throwDefaultError({
|
|
965
962
|
output,
|
|
966
963
|
parsedBody,
|
|
967
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
968
964
|
errorCode,
|
|
969
965
|
});
|
|
970
966
|
}
|
|
@@ -973,13 +969,14 @@ const de_GetProfileCommand = async (output, context) => {
|
|
|
973
969
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
974
970
|
return de_GetProfileCommandError(output, context);
|
|
975
971
|
}
|
|
976
|
-
const contents = map({
|
|
972
|
+
const contents = (0, smithy_client_1.map)({
|
|
977
973
|
$metadata: deserializeMetadata(output),
|
|
978
974
|
});
|
|
979
975
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
}
|
|
976
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
977
|
+
profile: (_) => de_ProfileDetail(_, context),
|
|
978
|
+
});
|
|
979
|
+
Object.assign(contents, doc);
|
|
983
980
|
return contents;
|
|
984
981
|
};
|
|
985
982
|
exports.de_GetProfileCommand = de_GetProfileCommand;
|
|
@@ -998,10 +995,9 @@ const de_GetProfileCommandError = async (output, context) => {
|
|
|
998
995
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
999
996
|
default:
|
|
1000
997
|
const parsedBody = parsedOutput.body;
|
|
1001
|
-
|
|
998
|
+
return throwDefaultError({
|
|
1002
999
|
output,
|
|
1003
1000
|
parsedBody,
|
|
1004
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
1005
1001
|
errorCode,
|
|
1006
1002
|
});
|
|
1007
1003
|
}
|
|
@@ -1010,13 +1006,14 @@ const de_GetSubjectCommand = async (output, context) => {
|
|
|
1010
1006
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1011
1007
|
return de_GetSubjectCommandError(output, context);
|
|
1012
1008
|
}
|
|
1013
|
-
const contents = map({
|
|
1009
|
+
const contents = (0, smithy_client_1.map)({
|
|
1014
1010
|
$metadata: deserializeMetadata(output),
|
|
1015
1011
|
});
|
|
1016
1012
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
}
|
|
1013
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1014
|
+
subject: (_) => de_SubjectDetail(_, context),
|
|
1015
|
+
});
|
|
1016
|
+
Object.assign(contents, doc);
|
|
1020
1017
|
return contents;
|
|
1021
1018
|
};
|
|
1022
1019
|
exports.de_GetSubjectCommand = de_GetSubjectCommand;
|
|
@@ -1035,10 +1032,9 @@ const de_GetSubjectCommandError = async (output, context) => {
|
|
|
1035
1032
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1036
1033
|
default:
|
|
1037
1034
|
const parsedBody = parsedOutput.body;
|
|
1038
|
-
|
|
1035
|
+
return throwDefaultError({
|
|
1039
1036
|
output,
|
|
1040
1037
|
parsedBody,
|
|
1041
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
1042
1038
|
errorCode,
|
|
1043
1039
|
});
|
|
1044
1040
|
}
|
|
@@ -1047,13 +1043,14 @@ const de_GetTrustAnchorCommand = async (output, context) => {
|
|
|
1047
1043
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1048
1044
|
return de_GetTrustAnchorCommandError(output, context);
|
|
1049
1045
|
}
|
|
1050
|
-
const contents = map({
|
|
1046
|
+
const contents = (0, smithy_client_1.map)({
|
|
1051
1047
|
$metadata: deserializeMetadata(output),
|
|
1052
1048
|
});
|
|
1053
1049
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
}
|
|
1050
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1051
|
+
trustAnchor: (_) => de_TrustAnchorDetail(_, context),
|
|
1052
|
+
});
|
|
1053
|
+
Object.assign(contents, doc);
|
|
1057
1054
|
return contents;
|
|
1058
1055
|
};
|
|
1059
1056
|
exports.de_GetTrustAnchorCommand = de_GetTrustAnchorCommand;
|
|
@@ -1075,10 +1072,9 @@ const de_GetTrustAnchorCommandError = async (output, context) => {
|
|
|
1075
1072
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1076
1073
|
default:
|
|
1077
1074
|
const parsedBody = parsedOutput.body;
|
|
1078
|
-
|
|
1075
|
+
return throwDefaultError({
|
|
1079
1076
|
output,
|
|
1080
1077
|
parsedBody,
|
|
1081
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
1082
1078
|
errorCode,
|
|
1083
1079
|
});
|
|
1084
1080
|
}
|
|
@@ -1087,13 +1083,14 @@ const de_ImportCrlCommand = async (output, context) => {
|
|
|
1087
1083
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1088
1084
|
return de_ImportCrlCommandError(output, context);
|
|
1089
1085
|
}
|
|
1090
|
-
const contents = map({
|
|
1086
|
+
const contents = (0, smithy_client_1.map)({
|
|
1091
1087
|
$metadata: deserializeMetadata(output),
|
|
1092
1088
|
});
|
|
1093
1089
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
}
|
|
1090
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1091
|
+
crl: (_) => de_CrlDetail(_, context),
|
|
1092
|
+
});
|
|
1093
|
+
Object.assign(contents, doc);
|
|
1097
1094
|
return contents;
|
|
1098
1095
|
};
|
|
1099
1096
|
exports.de_ImportCrlCommand = de_ImportCrlCommand;
|
|
@@ -1112,10 +1109,9 @@ const de_ImportCrlCommandError = async (output, context) => {
|
|
|
1112
1109
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1113
1110
|
default:
|
|
1114
1111
|
const parsedBody = parsedOutput.body;
|
|
1115
|
-
|
|
1112
|
+
return throwDefaultError({
|
|
1116
1113
|
output,
|
|
1117
1114
|
parsedBody,
|
|
1118
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
1119
1115
|
errorCode,
|
|
1120
1116
|
});
|
|
1121
1117
|
}
|
|
@@ -1124,16 +1120,15 @@ const de_ListCrlsCommand = async (output, context) => {
|
|
|
1124
1120
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1125
1121
|
return de_ListCrlsCommandError(output, context);
|
|
1126
1122
|
}
|
|
1127
|
-
const contents = map({
|
|
1123
|
+
const contents = (0, smithy_client_1.map)({
|
|
1128
1124
|
$metadata: deserializeMetadata(output),
|
|
1129
1125
|
});
|
|
1130
1126
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
}
|
|
1127
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1128
|
+
crls: (_) => de_CrlDetails(_, context),
|
|
1129
|
+
nextToken: smithy_client_1.expectString,
|
|
1130
|
+
});
|
|
1131
|
+
Object.assign(contents, doc);
|
|
1137
1132
|
return contents;
|
|
1138
1133
|
};
|
|
1139
1134
|
exports.de_ListCrlsCommand = de_ListCrlsCommand;
|
|
@@ -1152,10 +1147,9 @@ const de_ListCrlsCommandError = async (output, context) => {
|
|
|
1152
1147
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1153
1148
|
default:
|
|
1154
1149
|
const parsedBody = parsedOutput.body;
|
|
1155
|
-
|
|
1150
|
+
return throwDefaultError({
|
|
1156
1151
|
output,
|
|
1157
1152
|
parsedBody,
|
|
1158
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
1159
1153
|
errorCode,
|
|
1160
1154
|
});
|
|
1161
1155
|
}
|
|
@@ -1164,16 +1158,15 @@ const de_ListProfilesCommand = async (output, context) => {
|
|
|
1164
1158
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1165
1159
|
return de_ListProfilesCommandError(output, context);
|
|
1166
1160
|
}
|
|
1167
|
-
const contents = map({
|
|
1161
|
+
const contents = (0, smithy_client_1.map)({
|
|
1168
1162
|
$metadata: deserializeMetadata(output),
|
|
1169
1163
|
});
|
|
1170
1164
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
}
|
|
1165
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1166
|
+
nextToken: smithy_client_1.expectString,
|
|
1167
|
+
profiles: (_) => de_ProfileDetails(_, context),
|
|
1168
|
+
});
|
|
1169
|
+
Object.assign(contents, doc);
|
|
1177
1170
|
return contents;
|
|
1178
1171
|
};
|
|
1179
1172
|
exports.de_ListProfilesCommand = de_ListProfilesCommand;
|
|
@@ -1192,10 +1185,9 @@ const de_ListProfilesCommandError = async (output, context) => {
|
|
|
1192
1185
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1193
1186
|
default:
|
|
1194
1187
|
const parsedBody = parsedOutput.body;
|
|
1195
|
-
|
|
1188
|
+
return throwDefaultError({
|
|
1196
1189
|
output,
|
|
1197
1190
|
parsedBody,
|
|
1198
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
1199
1191
|
errorCode,
|
|
1200
1192
|
});
|
|
1201
1193
|
}
|
|
@@ -1204,16 +1196,15 @@ const de_ListSubjectsCommand = async (output, context) => {
|
|
|
1204
1196
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1205
1197
|
return de_ListSubjectsCommandError(output, context);
|
|
1206
1198
|
}
|
|
1207
|
-
const contents = map({
|
|
1199
|
+
const contents = (0, smithy_client_1.map)({
|
|
1208
1200
|
$metadata: deserializeMetadata(output),
|
|
1209
1201
|
});
|
|
1210
1202
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
}
|
|
1203
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1204
|
+
nextToken: smithy_client_1.expectString,
|
|
1205
|
+
subjects: (_) => de_SubjectSummaries(_, context),
|
|
1206
|
+
});
|
|
1207
|
+
Object.assign(contents, doc);
|
|
1217
1208
|
return contents;
|
|
1218
1209
|
};
|
|
1219
1210
|
exports.de_ListSubjectsCommand = de_ListSubjectsCommand;
|
|
@@ -1232,10 +1223,9 @@ const de_ListSubjectsCommandError = async (output, context) => {
|
|
|
1232
1223
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1233
1224
|
default:
|
|
1234
1225
|
const parsedBody = parsedOutput.body;
|
|
1235
|
-
|
|
1226
|
+
return throwDefaultError({
|
|
1236
1227
|
output,
|
|
1237
1228
|
parsedBody,
|
|
1238
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
1239
1229
|
errorCode,
|
|
1240
1230
|
});
|
|
1241
1231
|
}
|
|
@@ -1244,13 +1234,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1244
1234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1245
1235
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1246
1236
|
}
|
|
1247
|
-
const contents = map({
|
|
1237
|
+
const contents = (0, smithy_client_1.map)({
|
|
1248
1238
|
$metadata: deserializeMetadata(output),
|
|
1249
1239
|
});
|
|
1250
1240
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
}
|
|
1241
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1242
|
+
tags: smithy_client_1._json,
|
|
1243
|
+
});
|
|
1244
|
+
Object.assign(contents, doc);
|
|
1254
1245
|
return contents;
|
|
1255
1246
|
};
|
|
1256
1247
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1272,10 +1263,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1272
1263
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1273
1264
|
default:
|
|
1274
1265
|
const parsedBody = parsedOutput.body;
|
|
1275
|
-
|
|
1266
|
+
return throwDefaultError({
|
|
1276
1267
|
output,
|
|
1277
1268
|
parsedBody,
|
|
1278
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
1279
1269
|
errorCode,
|
|
1280
1270
|
});
|
|
1281
1271
|
}
|
|
@@ -1284,16 +1274,15 @@ const de_ListTrustAnchorsCommand = async (output, context) => {
|
|
|
1284
1274
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1285
1275
|
return de_ListTrustAnchorsCommandError(output, context);
|
|
1286
1276
|
}
|
|
1287
|
-
const contents = map({
|
|
1277
|
+
const contents = (0, smithy_client_1.map)({
|
|
1288
1278
|
$metadata: deserializeMetadata(output),
|
|
1289
1279
|
});
|
|
1290
1280
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
}
|
|
1281
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1282
|
+
nextToken: smithy_client_1.expectString,
|
|
1283
|
+
trustAnchors: (_) => de_TrustAnchorDetails(_, context),
|
|
1284
|
+
});
|
|
1285
|
+
Object.assign(contents, doc);
|
|
1297
1286
|
return contents;
|
|
1298
1287
|
};
|
|
1299
1288
|
exports.de_ListTrustAnchorsCommand = de_ListTrustAnchorsCommand;
|
|
@@ -1312,10 +1301,9 @@ const de_ListTrustAnchorsCommandError = async (output, context) => {
|
|
|
1312
1301
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1313
1302
|
default:
|
|
1314
1303
|
const parsedBody = parsedOutput.body;
|
|
1315
|
-
|
|
1304
|
+
return throwDefaultError({
|
|
1316
1305
|
output,
|
|
1317
1306
|
parsedBody,
|
|
1318
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
1319
1307
|
errorCode,
|
|
1320
1308
|
});
|
|
1321
1309
|
}
|
|
@@ -1324,7 +1312,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1324
1312
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1325
1313
|
return de_TagResourceCommandError(output, context);
|
|
1326
1314
|
}
|
|
1327
|
-
const contents = map({
|
|
1315
|
+
const contents = (0, smithy_client_1.map)({
|
|
1328
1316
|
$metadata: deserializeMetadata(output),
|
|
1329
1317
|
});
|
|
1330
1318
|
await collectBody(output.body, context);
|
|
@@ -1352,10 +1340,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1352
1340
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1353
1341
|
default:
|
|
1354
1342
|
const parsedBody = parsedOutput.body;
|
|
1355
|
-
|
|
1343
|
+
return throwDefaultError({
|
|
1356
1344
|
output,
|
|
1357
1345
|
parsedBody,
|
|
1358
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
1359
1346
|
errorCode,
|
|
1360
1347
|
});
|
|
1361
1348
|
}
|
|
@@ -1364,7 +1351,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1364
1351
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1365
1352
|
return de_UntagResourceCommandError(output, context);
|
|
1366
1353
|
}
|
|
1367
|
-
const contents = map({
|
|
1354
|
+
const contents = (0, smithy_client_1.map)({
|
|
1368
1355
|
$metadata: deserializeMetadata(output),
|
|
1369
1356
|
});
|
|
1370
1357
|
await collectBody(output.body, context);
|
|
@@ -1389,10 +1376,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1389
1376
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1390
1377
|
default:
|
|
1391
1378
|
const parsedBody = parsedOutput.body;
|
|
1392
|
-
|
|
1379
|
+
return throwDefaultError({
|
|
1393
1380
|
output,
|
|
1394
1381
|
parsedBody,
|
|
1395
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
1396
1382
|
errorCode,
|
|
1397
1383
|
});
|
|
1398
1384
|
}
|
|
@@ -1401,13 +1387,14 @@ const de_UpdateCrlCommand = async (output, context) => {
|
|
|
1401
1387
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1402
1388
|
return de_UpdateCrlCommandError(output, context);
|
|
1403
1389
|
}
|
|
1404
|
-
const contents = map({
|
|
1390
|
+
const contents = (0, smithy_client_1.map)({
|
|
1405
1391
|
$metadata: deserializeMetadata(output),
|
|
1406
1392
|
});
|
|
1407
1393
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
}
|
|
1394
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1395
|
+
crl: (_) => de_CrlDetail(_, context),
|
|
1396
|
+
});
|
|
1397
|
+
Object.assign(contents, doc);
|
|
1411
1398
|
return contents;
|
|
1412
1399
|
};
|
|
1413
1400
|
exports.de_UpdateCrlCommand = de_UpdateCrlCommand;
|
|
@@ -1429,10 +1416,9 @@ const de_UpdateCrlCommandError = async (output, context) => {
|
|
|
1429
1416
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1430
1417
|
default:
|
|
1431
1418
|
const parsedBody = parsedOutput.body;
|
|
1432
|
-
|
|
1419
|
+
return throwDefaultError({
|
|
1433
1420
|
output,
|
|
1434
1421
|
parsedBody,
|
|
1435
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
1436
1422
|
errorCode,
|
|
1437
1423
|
});
|
|
1438
1424
|
}
|
|
@@ -1441,13 +1427,14 @@ const de_UpdateProfileCommand = async (output, context) => {
|
|
|
1441
1427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1442
1428
|
return de_UpdateProfileCommandError(output, context);
|
|
1443
1429
|
}
|
|
1444
|
-
const contents = map({
|
|
1430
|
+
const contents = (0, smithy_client_1.map)({
|
|
1445
1431
|
$metadata: deserializeMetadata(output),
|
|
1446
1432
|
});
|
|
1447
1433
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
}
|
|
1434
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1435
|
+
profile: (_) => de_ProfileDetail(_, context),
|
|
1436
|
+
});
|
|
1437
|
+
Object.assign(contents, doc);
|
|
1451
1438
|
return contents;
|
|
1452
1439
|
};
|
|
1453
1440
|
exports.de_UpdateProfileCommand = de_UpdateProfileCommand;
|
|
@@ -1469,10 +1456,9 @@ const de_UpdateProfileCommandError = async (output, context) => {
|
|
|
1469
1456
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1470
1457
|
default:
|
|
1471
1458
|
const parsedBody = parsedOutput.body;
|
|
1472
|
-
|
|
1459
|
+
return throwDefaultError({
|
|
1473
1460
|
output,
|
|
1474
1461
|
parsedBody,
|
|
1475
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
1476
1462
|
errorCode,
|
|
1477
1463
|
});
|
|
1478
1464
|
}
|
|
@@ -1481,13 +1467,14 @@ const de_UpdateTrustAnchorCommand = async (output, context) => {
|
|
|
1481
1467
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1482
1468
|
return de_UpdateTrustAnchorCommandError(output, context);
|
|
1483
1469
|
}
|
|
1484
|
-
const contents = map({
|
|
1470
|
+
const contents = (0, smithy_client_1.map)({
|
|
1485
1471
|
$metadata: deserializeMetadata(output),
|
|
1486
1472
|
});
|
|
1487
1473
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
}
|
|
1474
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1475
|
+
trustAnchor: (_) => de_TrustAnchorDetail(_, context),
|
|
1476
|
+
});
|
|
1477
|
+
Object.assign(contents, doc);
|
|
1491
1478
|
return contents;
|
|
1492
1479
|
};
|
|
1493
1480
|
exports.de_UpdateTrustAnchorCommand = de_UpdateTrustAnchorCommand;
|
|
@@ -1509,21 +1496,21 @@ const de_UpdateTrustAnchorCommandError = async (output, context) => {
|
|
|
1509
1496
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1510
1497
|
default:
|
|
1511
1498
|
const parsedBody = parsedOutput.body;
|
|
1512
|
-
|
|
1499
|
+
return throwDefaultError({
|
|
1513
1500
|
output,
|
|
1514
1501
|
parsedBody,
|
|
1515
|
-
exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
|
|
1516
1502
|
errorCode,
|
|
1517
1503
|
});
|
|
1518
1504
|
}
|
|
1519
1505
|
};
|
|
1520
|
-
const
|
|
1506
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(RolesAnywhereServiceException_1.RolesAnywhereServiceException);
|
|
1521
1507
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1522
|
-
const contents = map({});
|
|
1508
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1523
1509
|
const data = parsedOutput.body;
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
}
|
|
1510
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1511
|
+
message: smithy_client_1.expectString,
|
|
1512
|
+
});
|
|
1513
|
+
Object.assign(contents, doc);
|
|
1527
1514
|
const exception = new models_0_1.AccessDeniedException({
|
|
1528
1515
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1529
1516
|
...contents,
|
|
@@ -1531,11 +1518,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1531
1518
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1532
1519
|
};
|
|
1533
1520
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1534
|
-
const contents = map({});
|
|
1521
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1535
1522
|
const data = parsedOutput.body;
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
}
|
|
1523
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1524
|
+
message: smithy_client_1.expectString,
|
|
1525
|
+
});
|
|
1526
|
+
Object.assign(contents, doc);
|
|
1539
1527
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1540
1528
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1541
1529
|
...contents,
|
|
@@ -1543,11 +1531,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1543
1531
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1544
1532
|
};
|
|
1545
1533
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1546
|
-
const contents = map({});
|
|
1534
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1547
1535
|
const data = parsedOutput.body;
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
}
|
|
1536
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1537
|
+
message: smithy_client_1.expectString,
|
|
1538
|
+
});
|
|
1539
|
+
Object.assign(contents, doc);
|
|
1551
1540
|
const exception = new models_0_1.TooManyTagsException({
|
|
1552
1541
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1553
1542
|
...contents,
|
|
@@ -1555,104 +1544,52 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
1555
1544
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1556
1545
|
};
|
|
1557
1546
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1558
|
-
const contents = map({});
|
|
1547
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1559
1548
|
const data = parsedOutput.body;
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
}
|
|
1549
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1550
|
+
message: smithy_client_1.expectString,
|
|
1551
|
+
});
|
|
1552
|
+
Object.assign(contents, doc);
|
|
1563
1553
|
const exception = new models_0_1.ValidationException({
|
|
1564
1554
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1565
1555
|
...contents,
|
|
1566
1556
|
});
|
|
1567
1557
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1568
1558
|
};
|
|
1569
|
-
const se_ManagedPolicyList = (input, context) => {
|
|
1570
|
-
return input
|
|
1571
|
-
.filter((e) => e != null)
|
|
1572
|
-
.map((entry) => {
|
|
1573
|
-
return entry;
|
|
1574
|
-
});
|
|
1575
|
-
};
|
|
1576
|
-
const se_RoleArnList = (input, context) => {
|
|
1577
|
-
return input
|
|
1578
|
-
.filter((e) => e != null)
|
|
1579
|
-
.map((entry) => {
|
|
1580
|
-
return entry;
|
|
1581
|
-
});
|
|
1582
|
-
};
|
|
1583
|
-
const se_Source = (input, context) => {
|
|
1584
|
-
return {
|
|
1585
|
-
...(input.sourceData != null && { sourceData: se_SourceData(input.sourceData, context) }),
|
|
1586
|
-
...(input.sourceType != null && { sourceType: input.sourceType }),
|
|
1587
|
-
};
|
|
1588
|
-
};
|
|
1589
|
-
const se_SourceData = (input, context) => {
|
|
1590
|
-
return models_0_1.SourceData.visit(input, {
|
|
1591
|
-
acmPcaArn: (value) => ({ acmPcaArn: value }),
|
|
1592
|
-
x509CertificateData: (value) => ({ x509CertificateData: value }),
|
|
1593
|
-
_: (name, value) => ({ name: value }),
|
|
1594
|
-
});
|
|
1595
|
-
};
|
|
1596
|
-
const se_Tag = (input, context) => {
|
|
1597
|
-
return {
|
|
1598
|
-
...(input.key != null && { key: input.key }),
|
|
1599
|
-
...(input.value != null && { value: input.value }),
|
|
1600
|
-
};
|
|
1601
|
-
};
|
|
1602
|
-
const se_TagKeyList = (input, context) => {
|
|
1603
|
-
return input
|
|
1604
|
-
.filter((e) => e != null)
|
|
1605
|
-
.map((entry) => {
|
|
1606
|
-
return entry;
|
|
1607
|
-
});
|
|
1608
|
-
};
|
|
1609
|
-
const se_TagList = (input, context) => {
|
|
1610
|
-
return input
|
|
1611
|
-
.filter((e) => e != null)
|
|
1612
|
-
.map((entry) => {
|
|
1613
|
-
return se_Tag(entry, context);
|
|
1614
|
-
});
|
|
1615
|
-
};
|
|
1616
1559
|
const de_CredentialSummaries = (output, context) => {
|
|
1617
1560
|
const retVal = (output || [])
|
|
1618
1561
|
.filter((e) => e != null)
|
|
1619
1562
|
.map((entry) => {
|
|
1620
|
-
if (entry === null) {
|
|
1621
|
-
return null;
|
|
1622
|
-
}
|
|
1623
1563
|
return de_CredentialSummary(entry, context);
|
|
1624
1564
|
});
|
|
1625
1565
|
return retVal;
|
|
1626
1566
|
};
|
|
1627
1567
|
const de_CredentialSummary = (output, context) => {
|
|
1628
|
-
return {
|
|
1629
|
-
enabled:
|
|
1630
|
-
failed:
|
|
1631
|
-
issuer:
|
|
1632
|
-
seenAt:
|
|
1633
|
-
serialNumber:
|
|
1634
|
-
x509CertificateData:
|
|
1635
|
-
};
|
|
1568
|
+
return (0, smithy_client_1.take)(output, {
|
|
1569
|
+
enabled: smithy_client_1.expectBoolean,
|
|
1570
|
+
failed: smithy_client_1.expectBoolean,
|
|
1571
|
+
issuer: smithy_client_1.expectString,
|
|
1572
|
+
seenAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1573
|
+
serialNumber: smithy_client_1.expectString,
|
|
1574
|
+
x509CertificateData: smithy_client_1.expectString,
|
|
1575
|
+
});
|
|
1636
1576
|
};
|
|
1637
1577
|
const de_CrlDetail = (output, context) => {
|
|
1638
|
-
return {
|
|
1639
|
-
createdAt:
|
|
1640
|
-
crlArn:
|
|
1641
|
-
crlData:
|
|
1642
|
-
crlId:
|
|
1643
|
-
enabled:
|
|
1644
|
-
name:
|
|
1645
|
-
trustAnchorArn:
|
|
1646
|
-
updatedAt:
|
|
1647
|
-
};
|
|
1578
|
+
return (0, smithy_client_1.take)(output, {
|
|
1579
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1580
|
+
crlArn: smithy_client_1.expectString,
|
|
1581
|
+
crlData: context.base64Decoder,
|
|
1582
|
+
crlId: smithy_client_1.expectString,
|
|
1583
|
+
enabled: smithy_client_1.expectBoolean,
|
|
1584
|
+
name: smithy_client_1.expectString,
|
|
1585
|
+
trustAnchorArn: smithy_client_1.expectString,
|
|
1586
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1587
|
+
});
|
|
1648
1588
|
};
|
|
1649
1589
|
const de_CrlDetails = (output, context) => {
|
|
1650
1590
|
const retVal = (output || [])
|
|
1651
1591
|
.filter((e) => e != null)
|
|
1652
1592
|
.map((entry) => {
|
|
1653
|
-
if (entry === null) {
|
|
1654
|
-
return null;
|
|
1655
|
-
}
|
|
1656
1593
|
return de_CrlDetail(entry, context);
|
|
1657
1594
|
});
|
|
1658
1595
|
return retVal;
|
|
@@ -1661,163 +1598,88 @@ const de_InstanceProperties = (output, context) => {
|
|
|
1661
1598
|
const retVal = (output || [])
|
|
1662
1599
|
.filter((e) => e != null)
|
|
1663
1600
|
.map((entry) => {
|
|
1664
|
-
if (entry === null) {
|
|
1665
|
-
return null;
|
|
1666
|
-
}
|
|
1667
1601
|
return de_InstanceProperty(entry, context);
|
|
1668
1602
|
});
|
|
1669
1603
|
return retVal;
|
|
1670
1604
|
};
|
|
1671
1605
|
const de_InstanceProperty = (output, context) => {
|
|
1672
|
-
return {
|
|
1673
|
-
failed:
|
|
1674
|
-
properties:
|
|
1675
|
-
seenAt:
|
|
1676
|
-
};
|
|
1677
|
-
};
|
|
1678
|
-
const de_InstancePropertyMap = (output, context) => {
|
|
1679
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1680
|
-
if (value === null) {
|
|
1681
|
-
return acc;
|
|
1682
|
-
}
|
|
1683
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1684
|
-
return acc;
|
|
1685
|
-
}, {});
|
|
1686
|
-
};
|
|
1687
|
-
const de_ManagedPolicyList = (output, context) => {
|
|
1688
|
-
const retVal = (output || [])
|
|
1689
|
-
.filter((e) => e != null)
|
|
1690
|
-
.map((entry) => {
|
|
1691
|
-
if (entry === null) {
|
|
1692
|
-
return null;
|
|
1693
|
-
}
|
|
1694
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1606
|
+
return (0, smithy_client_1.take)(output, {
|
|
1607
|
+
failed: smithy_client_1.expectBoolean,
|
|
1608
|
+
properties: smithy_client_1._json,
|
|
1609
|
+
seenAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1695
1610
|
});
|
|
1696
|
-
return retVal;
|
|
1697
1611
|
};
|
|
1698
1612
|
const de_ProfileDetail = (output, context) => {
|
|
1699
|
-
return {
|
|
1700
|
-
createdAt:
|
|
1701
|
-
createdBy:
|
|
1702
|
-
durationSeconds:
|
|
1703
|
-
enabled:
|
|
1704
|
-
managedPolicyArns:
|
|
1705
|
-
name:
|
|
1706
|
-
profileArn:
|
|
1707
|
-
profileId:
|
|
1708
|
-
requireInstanceProperties:
|
|
1709
|
-
roleArns:
|
|
1710
|
-
sessionPolicy:
|
|
1711
|
-
updatedAt:
|
|
1712
|
-
};
|
|
1613
|
+
return (0, smithy_client_1.take)(output, {
|
|
1614
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1615
|
+
createdBy: smithy_client_1.expectString,
|
|
1616
|
+
durationSeconds: smithy_client_1.expectInt32,
|
|
1617
|
+
enabled: smithy_client_1.expectBoolean,
|
|
1618
|
+
managedPolicyArns: smithy_client_1._json,
|
|
1619
|
+
name: smithy_client_1.expectString,
|
|
1620
|
+
profileArn: smithy_client_1.expectString,
|
|
1621
|
+
profileId: smithy_client_1.expectString,
|
|
1622
|
+
requireInstanceProperties: smithy_client_1.expectBoolean,
|
|
1623
|
+
roleArns: smithy_client_1._json,
|
|
1624
|
+
sessionPolicy: smithy_client_1.expectString,
|
|
1625
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1626
|
+
});
|
|
1713
1627
|
};
|
|
1714
1628
|
const de_ProfileDetails = (output, context) => {
|
|
1715
1629
|
const retVal = (output || [])
|
|
1716
1630
|
.filter((e) => e != null)
|
|
1717
1631
|
.map((entry) => {
|
|
1718
|
-
if (entry === null) {
|
|
1719
|
-
return null;
|
|
1720
|
-
}
|
|
1721
1632
|
return de_ProfileDetail(entry, context);
|
|
1722
1633
|
});
|
|
1723
1634
|
return retVal;
|
|
1724
1635
|
};
|
|
1725
|
-
const de_RoleArnList = (output, context) => {
|
|
1726
|
-
const retVal = (output || [])
|
|
1727
|
-
.filter((e) => e != null)
|
|
1728
|
-
.map((entry) => {
|
|
1729
|
-
if (entry === null) {
|
|
1730
|
-
return null;
|
|
1731
|
-
}
|
|
1732
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1733
|
-
});
|
|
1734
|
-
return retVal;
|
|
1735
|
-
};
|
|
1736
|
-
const de_Source = (output, context) => {
|
|
1737
|
-
return {
|
|
1738
|
-
sourceData: output.sourceData != null ? de_SourceData((0, smithy_client_1.expectUnion)(output.sourceData), context) : undefined,
|
|
1739
|
-
sourceType: (0, smithy_client_1.expectString)(output.sourceType),
|
|
1740
|
-
};
|
|
1741
|
-
};
|
|
1742
|
-
const de_SourceData = (output, context) => {
|
|
1743
|
-
if ((0, smithy_client_1.expectString)(output.acmPcaArn) !== undefined) {
|
|
1744
|
-
return { acmPcaArn: (0, smithy_client_1.expectString)(output.acmPcaArn) };
|
|
1745
|
-
}
|
|
1746
|
-
if ((0, smithy_client_1.expectString)(output.x509CertificateData) !== undefined) {
|
|
1747
|
-
return { x509CertificateData: (0, smithy_client_1.expectString)(output.x509CertificateData) };
|
|
1748
|
-
}
|
|
1749
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1750
|
-
};
|
|
1751
1636
|
const de_SubjectDetail = (output, context) => {
|
|
1752
|
-
return {
|
|
1753
|
-
createdAt:
|
|
1754
|
-
credentials:
|
|
1755
|
-
enabled:
|
|
1756
|
-
instanceProperties:
|
|
1757
|
-
lastSeenAt:
|
|
1758
|
-
subjectArn:
|
|
1759
|
-
subjectId:
|
|
1760
|
-
updatedAt:
|
|
1761
|
-
x509Subject:
|
|
1762
|
-
};
|
|
1637
|
+
return (0, smithy_client_1.take)(output, {
|
|
1638
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1639
|
+
credentials: (_) => de_CredentialSummaries(_, context),
|
|
1640
|
+
enabled: smithy_client_1.expectBoolean,
|
|
1641
|
+
instanceProperties: (_) => de_InstanceProperties(_, context),
|
|
1642
|
+
lastSeenAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1643
|
+
subjectArn: smithy_client_1.expectString,
|
|
1644
|
+
subjectId: smithy_client_1.expectString,
|
|
1645
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1646
|
+
x509Subject: smithy_client_1.expectString,
|
|
1647
|
+
});
|
|
1763
1648
|
};
|
|
1764
1649
|
const de_SubjectSummaries = (output, context) => {
|
|
1765
1650
|
const retVal = (output || [])
|
|
1766
1651
|
.filter((e) => e != null)
|
|
1767
1652
|
.map((entry) => {
|
|
1768
|
-
if (entry === null) {
|
|
1769
|
-
return null;
|
|
1770
|
-
}
|
|
1771
1653
|
return de_SubjectSummary(entry, context);
|
|
1772
1654
|
});
|
|
1773
1655
|
return retVal;
|
|
1774
1656
|
};
|
|
1775
1657
|
const de_SubjectSummary = (output, context) => {
|
|
1776
|
-
return {
|
|
1777
|
-
createdAt:
|
|
1778
|
-
enabled:
|
|
1779
|
-
lastSeenAt:
|
|
1780
|
-
subjectArn:
|
|
1781
|
-
subjectId:
|
|
1782
|
-
updatedAt:
|
|
1783
|
-
x509Subject:
|
|
1784
|
-
};
|
|
1785
|
-
};
|
|
1786
|
-
const de_Tag = (output, context) => {
|
|
1787
|
-
return {
|
|
1788
|
-
key: (0, smithy_client_1.expectString)(output.key),
|
|
1789
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
1790
|
-
};
|
|
1791
|
-
};
|
|
1792
|
-
const de_TagList = (output, context) => {
|
|
1793
|
-
const retVal = (output || [])
|
|
1794
|
-
.filter((e) => e != null)
|
|
1795
|
-
.map((entry) => {
|
|
1796
|
-
if (entry === null) {
|
|
1797
|
-
return null;
|
|
1798
|
-
}
|
|
1799
|
-
return de_Tag(entry, context);
|
|
1658
|
+
return (0, smithy_client_1.take)(output, {
|
|
1659
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1660
|
+
enabled: smithy_client_1.expectBoolean,
|
|
1661
|
+
lastSeenAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1662
|
+
subjectArn: smithy_client_1.expectString,
|
|
1663
|
+
subjectId: smithy_client_1.expectString,
|
|
1664
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1665
|
+
x509Subject: smithy_client_1.expectString,
|
|
1800
1666
|
});
|
|
1801
|
-
return retVal;
|
|
1802
1667
|
};
|
|
1803
1668
|
const de_TrustAnchorDetail = (output, context) => {
|
|
1804
|
-
return {
|
|
1805
|
-
createdAt:
|
|
1806
|
-
enabled:
|
|
1807
|
-
name:
|
|
1808
|
-
source:
|
|
1809
|
-
trustAnchorArn:
|
|
1810
|
-
trustAnchorId:
|
|
1811
|
-
updatedAt:
|
|
1812
|
-
};
|
|
1669
|
+
return (0, smithy_client_1.take)(output, {
|
|
1670
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1671
|
+
enabled: smithy_client_1.expectBoolean,
|
|
1672
|
+
name: smithy_client_1.expectString,
|
|
1673
|
+
source: smithy_client_1._json,
|
|
1674
|
+
trustAnchorArn: smithy_client_1.expectString,
|
|
1675
|
+
trustAnchorId: smithy_client_1.expectString,
|
|
1676
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1677
|
+
});
|
|
1813
1678
|
};
|
|
1814
1679
|
const de_TrustAnchorDetails = (output, context) => {
|
|
1815
1680
|
const retVal = (output || [])
|
|
1816
1681
|
.filter((e) => e != null)
|
|
1817
1682
|
.map((entry) => {
|
|
1818
|
-
if (entry === null) {
|
|
1819
|
-
return null;
|
|
1820
|
-
}
|
|
1821
1683
|
return de_TrustAnchorDetail(entry, context);
|
|
1822
1684
|
});
|
|
1823
1685
|
return retVal;
|