@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
-
import { AccessDeniedException, ResourceNotFoundException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { AccessDeniedException, ResourceNotFoundException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { RolesAnywhereServiceException as __BaseException } from "../models/RolesAnywhereServiceException";
|
|
5
5
|
export const se_CreateProfileCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -9,18 +9,16 @@ export const se_CreateProfileCommand = async (input, context) => {
|
|
|
9
9
|
};
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles";
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
23
|
-
});
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
durationSeconds: [],
|
|
14
|
+
enabled: [],
|
|
15
|
+
managedPolicyArns: (_) => _json(_),
|
|
16
|
+
name: [],
|
|
17
|
+
requireInstanceProperties: [],
|
|
18
|
+
roleArns: (_) => _json(_),
|
|
19
|
+
sessionPolicy: [],
|
|
20
|
+
tags: (_) => _json(_),
|
|
21
|
+
}));
|
|
24
22
|
return new __HttpRequest({
|
|
25
23
|
protocol,
|
|
26
24
|
hostname,
|
|
@@ -38,12 +36,12 @@ export const se_CreateTrustAnchorCommand = async (input, context) => {
|
|
|
38
36
|
};
|
|
39
37
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchors";
|
|
40
38
|
let body;
|
|
41
|
-
body = JSON.stringify({
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
});
|
|
39
|
+
body = JSON.stringify(take(input, {
|
|
40
|
+
enabled: [],
|
|
41
|
+
name: [],
|
|
42
|
+
source: (_) => _json(_),
|
|
43
|
+
tags: (_) => _json(_),
|
|
44
|
+
}));
|
|
47
45
|
return new __HttpRequest({
|
|
48
46
|
protocol,
|
|
49
47
|
hostname,
|
|
@@ -269,13 +267,13 @@ export const se_ImportCrlCommand = async (input, context) => {
|
|
|
269
267
|
};
|
|
270
268
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crls";
|
|
271
269
|
let body;
|
|
272
|
-
body = JSON.stringify({
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
});
|
|
270
|
+
body = JSON.stringify(take(input, {
|
|
271
|
+
crlData: (_) => context.base64Encoder(_),
|
|
272
|
+
enabled: [],
|
|
273
|
+
name: [],
|
|
274
|
+
tags: (_) => _json(_),
|
|
275
|
+
trustAnchorArn: [],
|
|
276
|
+
}));
|
|
279
277
|
return new __HttpRequest({
|
|
280
278
|
protocol,
|
|
281
279
|
hostname,
|
|
@@ -392,10 +390,10 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
392
390
|
};
|
|
393
391
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TagResource";
|
|
394
392
|
let body;
|
|
395
|
-
body = JSON.stringify({
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
});
|
|
393
|
+
body = JSON.stringify(take(input, {
|
|
394
|
+
resourceArn: [],
|
|
395
|
+
tags: (_) => _json(_),
|
|
396
|
+
}));
|
|
399
397
|
return new __HttpRequest({
|
|
400
398
|
protocol,
|
|
401
399
|
hostname,
|
|
@@ -413,10 +411,10 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
413
411
|
};
|
|
414
412
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UntagResource";
|
|
415
413
|
let body;
|
|
416
|
-
body = JSON.stringify({
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
});
|
|
414
|
+
body = JSON.stringify(take(input, {
|
|
415
|
+
resourceArn: [],
|
|
416
|
+
tagKeys: (_) => _json(_),
|
|
417
|
+
}));
|
|
420
418
|
return new __HttpRequest({
|
|
421
419
|
protocol,
|
|
422
420
|
hostname,
|
|
@@ -435,10 +433,10 @@ export const se_UpdateCrlCommand = async (input, context) => {
|
|
|
435
433
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}";
|
|
436
434
|
resolvedPath = __resolvedPath(resolvedPath, input, "crlId", () => input.crlId, "{crlId}", false);
|
|
437
435
|
let body;
|
|
438
|
-
body = JSON.stringify({
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
});
|
|
436
|
+
body = JSON.stringify(take(input, {
|
|
437
|
+
crlData: (_) => context.base64Encoder(_),
|
|
438
|
+
name: [],
|
|
439
|
+
}));
|
|
442
440
|
return new __HttpRequest({
|
|
443
441
|
protocol,
|
|
444
442
|
hostname,
|
|
@@ -457,15 +455,13 @@ export const se_UpdateProfileCommand = async (input, context) => {
|
|
|
457
455
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}";
|
|
458
456
|
resolvedPath = __resolvedPath(resolvedPath, input, "profileId", () => input.profileId, "{profileId}", false);
|
|
459
457
|
let body;
|
|
460
|
-
body = JSON.stringify({
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
...(input.sessionPolicy != null && { sessionPolicy: input.sessionPolicy }),
|
|
468
|
-
});
|
|
458
|
+
body = JSON.stringify(take(input, {
|
|
459
|
+
durationSeconds: [],
|
|
460
|
+
managedPolicyArns: (_) => _json(_),
|
|
461
|
+
name: [],
|
|
462
|
+
roleArns: (_) => _json(_),
|
|
463
|
+
sessionPolicy: [],
|
|
464
|
+
}));
|
|
469
465
|
return new __HttpRequest({
|
|
470
466
|
protocol,
|
|
471
467
|
hostname,
|
|
@@ -484,10 +480,10 @@ export const se_UpdateTrustAnchorCommand = async (input, context) => {
|
|
|
484
480
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}";
|
|
485
481
|
resolvedPath = __resolvedPath(resolvedPath, input, "trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
|
|
486
482
|
let body;
|
|
487
|
-
body = JSON.stringify({
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
});
|
|
483
|
+
body = JSON.stringify(take(input, {
|
|
484
|
+
name: [],
|
|
485
|
+
source: (_) => _json(_),
|
|
486
|
+
}));
|
|
491
487
|
return new __HttpRequest({
|
|
492
488
|
protocol,
|
|
493
489
|
hostname,
|
|
@@ -506,9 +502,10 @@ export const de_CreateProfileCommand = async (output, context) => {
|
|
|
506
502
|
$metadata: deserializeMetadata(output),
|
|
507
503
|
});
|
|
508
504
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
}
|
|
505
|
+
const doc = take(data, {
|
|
506
|
+
profile: (_) => de_ProfileDetail(_, context),
|
|
507
|
+
});
|
|
508
|
+
Object.assign(contents, doc);
|
|
512
509
|
return contents;
|
|
513
510
|
};
|
|
514
511
|
const de_CreateProfileCommandError = async (output, context) => {
|
|
@@ -526,10 +523,9 @@ const de_CreateProfileCommandError = async (output, context) => {
|
|
|
526
523
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
527
524
|
default:
|
|
528
525
|
const parsedBody = parsedOutput.body;
|
|
529
|
-
throwDefaultError({
|
|
526
|
+
return throwDefaultError({
|
|
530
527
|
output,
|
|
531
528
|
parsedBody,
|
|
532
|
-
exceptionCtor: __BaseException,
|
|
533
529
|
errorCode,
|
|
534
530
|
});
|
|
535
531
|
}
|
|
@@ -542,9 +538,10 @@ export const de_CreateTrustAnchorCommand = async (output, context) => {
|
|
|
542
538
|
$metadata: deserializeMetadata(output),
|
|
543
539
|
});
|
|
544
540
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
}
|
|
541
|
+
const doc = take(data, {
|
|
542
|
+
trustAnchor: (_) => de_TrustAnchorDetail(_, context),
|
|
543
|
+
});
|
|
544
|
+
Object.assign(contents, doc);
|
|
548
545
|
return contents;
|
|
549
546
|
};
|
|
550
547
|
const de_CreateTrustAnchorCommandError = async (output, context) => {
|
|
@@ -562,10 +559,9 @@ const de_CreateTrustAnchorCommandError = async (output, context) => {
|
|
|
562
559
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
563
560
|
default:
|
|
564
561
|
const parsedBody = parsedOutput.body;
|
|
565
|
-
throwDefaultError({
|
|
562
|
+
return throwDefaultError({
|
|
566
563
|
output,
|
|
567
564
|
parsedBody,
|
|
568
|
-
exceptionCtor: __BaseException,
|
|
569
565
|
errorCode,
|
|
570
566
|
});
|
|
571
567
|
}
|
|
@@ -578,9 +574,10 @@ export const de_DeleteCrlCommand = async (output, context) => {
|
|
|
578
574
|
$metadata: deserializeMetadata(output),
|
|
579
575
|
});
|
|
580
576
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
}
|
|
577
|
+
const doc = take(data, {
|
|
578
|
+
crl: (_) => de_CrlDetail(_, context),
|
|
579
|
+
});
|
|
580
|
+
Object.assign(contents, doc);
|
|
584
581
|
return contents;
|
|
585
582
|
};
|
|
586
583
|
const de_DeleteCrlCommandError = async (output, context) => {
|
|
@@ -598,10 +595,9 @@ const de_DeleteCrlCommandError = async (output, context) => {
|
|
|
598
595
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
599
596
|
default:
|
|
600
597
|
const parsedBody = parsedOutput.body;
|
|
601
|
-
throwDefaultError({
|
|
598
|
+
return throwDefaultError({
|
|
602
599
|
output,
|
|
603
600
|
parsedBody,
|
|
604
|
-
exceptionCtor: __BaseException,
|
|
605
601
|
errorCode,
|
|
606
602
|
});
|
|
607
603
|
}
|
|
@@ -614,9 +610,10 @@ export const de_DeleteProfileCommand = async (output, context) => {
|
|
|
614
610
|
$metadata: deserializeMetadata(output),
|
|
615
611
|
});
|
|
616
612
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
}
|
|
613
|
+
const doc = take(data, {
|
|
614
|
+
profile: (_) => de_ProfileDetail(_, context),
|
|
615
|
+
});
|
|
616
|
+
Object.assign(contents, doc);
|
|
620
617
|
return contents;
|
|
621
618
|
};
|
|
622
619
|
const de_DeleteProfileCommandError = async (output, context) => {
|
|
@@ -634,10 +631,9 @@ const de_DeleteProfileCommandError = async (output, context) => {
|
|
|
634
631
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
635
632
|
default:
|
|
636
633
|
const parsedBody = parsedOutput.body;
|
|
637
|
-
throwDefaultError({
|
|
634
|
+
return throwDefaultError({
|
|
638
635
|
output,
|
|
639
636
|
parsedBody,
|
|
640
|
-
exceptionCtor: __BaseException,
|
|
641
637
|
errorCode,
|
|
642
638
|
});
|
|
643
639
|
}
|
|
@@ -650,9 +646,10 @@ export const de_DeleteTrustAnchorCommand = async (output, context) => {
|
|
|
650
646
|
$metadata: deserializeMetadata(output),
|
|
651
647
|
});
|
|
652
648
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
}
|
|
649
|
+
const doc = take(data, {
|
|
650
|
+
trustAnchor: (_) => de_TrustAnchorDetail(_, context),
|
|
651
|
+
});
|
|
652
|
+
Object.assign(contents, doc);
|
|
656
653
|
return contents;
|
|
657
654
|
};
|
|
658
655
|
const de_DeleteTrustAnchorCommandError = async (output, context) => {
|
|
@@ -670,10 +667,9 @@ const de_DeleteTrustAnchorCommandError = async (output, context) => {
|
|
|
670
667
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
671
668
|
default:
|
|
672
669
|
const parsedBody = parsedOutput.body;
|
|
673
|
-
throwDefaultError({
|
|
670
|
+
return throwDefaultError({
|
|
674
671
|
output,
|
|
675
672
|
parsedBody,
|
|
676
|
-
exceptionCtor: __BaseException,
|
|
677
673
|
errorCode,
|
|
678
674
|
});
|
|
679
675
|
}
|
|
@@ -686,9 +682,10 @@ export const de_DisableCrlCommand = async (output, context) => {
|
|
|
686
682
|
$metadata: deserializeMetadata(output),
|
|
687
683
|
});
|
|
688
684
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
}
|
|
685
|
+
const doc = take(data, {
|
|
686
|
+
crl: (_) => de_CrlDetail(_, context),
|
|
687
|
+
});
|
|
688
|
+
Object.assign(contents, doc);
|
|
692
689
|
return contents;
|
|
693
690
|
};
|
|
694
691
|
const de_DisableCrlCommandError = async (output, context) => {
|
|
@@ -706,10 +703,9 @@ const de_DisableCrlCommandError = async (output, context) => {
|
|
|
706
703
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
707
704
|
default:
|
|
708
705
|
const parsedBody = parsedOutput.body;
|
|
709
|
-
throwDefaultError({
|
|
706
|
+
return throwDefaultError({
|
|
710
707
|
output,
|
|
711
708
|
parsedBody,
|
|
712
|
-
exceptionCtor: __BaseException,
|
|
713
709
|
errorCode,
|
|
714
710
|
});
|
|
715
711
|
}
|
|
@@ -722,9 +718,10 @@ export const de_DisableProfileCommand = async (output, context) => {
|
|
|
722
718
|
$metadata: deserializeMetadata(output),
|
|
723
719
|
});
|
|
724
720
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
}
|
|
721
|
+
const doc = take(data, {
|
|
722
|
+
profile: (_) => de_ProfileDetail(_, context),
|
|
723
|
+
});
|
|
724
|
+
Object.assign(contents, doc);
|
|
728
725
|
return contents;
|
|
729
726
|
};
|
|
730
727
|
const de_DisableProfileCommandError = async (output, context) => {
|
|
@@ -742,10 +739,9 @@ const de_DisableProfileCommandError = async (output, context) => {
|
|
|
742
739
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
743
740
|
default:
|
|
744
741
|
const parsedBody = parsedOutput.body;
|
|
745
|
-
throwDefaultError({
|
|
742
|
+
return throwDefaultError({
|
|
746
743
|
output,
|
|
747
744
|
parsedBody,
|
|
748
|
-
exceptionCtor: __BaseException,
|
|
749
745
|
errorCode,
|
|
750
746
|
});
|
|
751
747
|
}
|
|
@@ -758,9 +754,10 @@ export const de_DisableTrustAnchorCommand = async (output, context) => {
|
|
|
758
754
|
$metadata: deserializeMetadata(output),
|
|
759
755
|
});
|
|
760
756
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
}
|
|
757
|
+
const doc = take(data, {
|
|
758
|
+
trustAnchor: (_) => de_TrustAnchorDetail(_, context),
|
|
759
|
+
});
|
|
760
|
+
Object.assign(contents, doc);
|
|
764
761
|
return contents;
|
|
765
762
|
};
|
|
766
763
|
const de_DisableTrustAnchorCommandError = async (output, context) => {
|
|
@@ -778,10 +775,9 @@ const de_DisableTrustAnchorCommandError = async (output, context) => {
|
|
|
778
775
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
779
776
|
default:
|
|
780
777
|
const parsedBody = parsedOutput.body;
|
|
781
|
-
throwDefaultError({
|
|
778
|
+
return throwDefaultError({
|
|
782
779
|
output,
|
|
783
780
|
parsedBody,
|
|
784
|
-
exceptionCtor: __BaseException,
|
|
785
781
|
errorCode,
|
|
786
782
|
});
|
|
787
783
|
}
|
|
@@ -794,9 +790,10 @@ export const de_EnableCrlCommand = async (output, context) => {
|
|
|
794
790
|
$metadata: deserializeMetadata(output),
|
|
795
791
|
});
|
|
796
792
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
}
|
|
793
|
+
const doc = take(data, {
|
|
794
|
+
crl: (_) => de_CrlDetail(_, context),
|
|
795
|
+
});
|
|
796
|
+
Object.assign(contents, doc);
|
|
800
797
|
return contents;
|
|
801
798
|
};
|
|
802
799
|
const de_EnableCrlCommandError = async (output, context) => {
|
|
@@ -814,10 +811,9 @@ const de_EnableCrlCommandError = async (output, context) => {
|
|
|
814
811
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
815
812
|
default:
|
|
816
813
|
const parsedBody = parsedOutput.body;
|
|
817
|
-
throwDefaultError({
|
|
814
|
+
return throwDefaultError({
|
|
818
815
|
output,
|
|
819
816
|
parsedBody,
|
|
820
|
-
exceptionCtor: __BaseException,
|
|
821
817
|
errorCode,
|
|
822
818
|
});
|
|
823
819
|
}
|
|
@@ -830,9 +826,10 @@ export const de_EnableProfileCommand = async (output, context) => {
|
|
|
830
826
|
$metadata: deserializeMetadata(output),
|
|
831
827
|
});
|
|
832
828
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
}
|
|
829
|
+
const doc = take(data, {
|
|
830
|
+
profile: (_) => de_ProfileDetail(_, context),
|
|
831
|
+
});
|
|
832
|
+
Object.assign(contents, doc);
|
|
836
833
|
return contents;
|
|
837
834
|
};
|
|
838
835
|
const de_EnableProfileCommandError = async (output, context) => {
|
|
@@ -850,10 +847,9 @@ const de_EnableProfileCommandError = async (output, context) => {
|
|
|
850
847
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
851
848
|
default:
|
|
852
849
|
const parsedBody = parsedOutput.body;
|
|
853
|
-
throwDefaultError({
|
|
850
|
+
return throwDefaultError({
|
|
854
851
|
output,
|
|
855
852
|
parsedBody,
|
|
856
|
-
exceptionCtor: __BaseException,
|
|
857
853
|
errorCode,
|
|
858
854
|
});
|
|
859
855
|
}
|
|
@@ -866,9 +862,10 @@ export const de_EnableTrustAnchorCommand = async (output, context) => {
|
|
|
866
862
|
$metadata: deserializeMetadata(output),
|
|
867
863
|
});
|
|
868
864
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
}
|
|
865
|
+
const doc = take(data, {
|
|
866
|
+
trustAnchor: (_) => de_TrustAnchorDetail(_, context),
|
|
867
|
+
});
|
|
868
|
+
Object.assign(contents, doc);
|
|
872
869
|
return contents;
|
|
873
870
|
};
|
|
874
871
|
const de_EnableTrustAnchorCommandError = async (output, context) => {
|
|
@@ -886,10 +883,9 @@ const de_EnableTrustAnchorCommandError = async (output, context) => {
|
|
|
886
883
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
887
884
|
default:
|
|
888
885
|
const parsedBody = parsedOutput.body;
|
|
889
|
-
throwDefaultError({
|
|
886
|
+
return throwDefaultError({
|
|
890
887
|
output,
|
|
891
888
|
parsedBody,
|
|
892
|
-
exceptionCtor: __BaseException,
|
|
893
889
|
errorCode,
|
|
894
890
|
});
|
|
895
891
|
}
|
|
@@ -902,9 +898,10 @@ export const de_GetCrlCommand = async (output, context) => {
|
|
|
902
898
|
$metadata: deserializeMetadata(output),
|
|
903
899
|
});
|
|
904
900
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
}
|
|
901
|
+
const doc = take(data, {
|
|
902
|
+
crl: (_) => de_CrlDetail(_, context),
|
|
903
|
+
});
|
|
904
|
+
Object.assign(contents, doc);
|
|
908
905
|
return contents;
|
|
909
906
|
};
|
|
910
907
|
const de_GetCrlCommandError = async (output, context) => {
|
|
@@ -919,10 +916,9 @@ const de_GetCrlCommandError = async (output, context) => {
|
|
|
919
916
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
920
917
|
default:
|
|
921
918
|
const parsedBody = parsedOutput.body;
|
|
922
|
-
throwDefaultError({
|
|
919
|
+
return throwDefaultError({
|
|
923
920
|
output,
|
|
924
921
|
parsedBody,
|
|
925
|
-
exceptionCtor: __BaseException,
|
|
926
922
|
errorCode,
|
|
927
923
|
});
|
|
928
924
|
}
|
|
@@ -935,9 +931,10 @@ export const de_GetProfileCommand = async (output, context) => {
|
|
|
935
931
|
$metadata: deserializeMetadata(output),
|
|
936
932
|
});
|
|
937
933
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
}
|
|
934
|
+
const doc = take(data, {
|
|
935
|
+
profile: (_) => de_ProfileDetail(_, context),
|
|
936
|
+
});
|
|
937
|
+
Object.assign(contents, doc);
|
|
941
938
|
return contents;
|
|
942
939
|
};
|
|
943
940
|
const de_GetProfileCommandError = async (output, context) => {
|
|
@@ -955,10 +952,9 @@ const de_GetProfileCommandError = async (output, context) => {
|
|
|
955
952
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
956
953
|
default:
|
|
957
954
|
const parsedBody = parsedOutput.body;
|
|
958
|
-
throwDefaultError({
|
|
955
|
+
return throwDefaultError({
|
|
959
956
|
output,
|
|
960
957
|
parsedBody,
|
|
961
|
-
exceptionCtor: __BaseException,
|
|
962
958
|
errorCode,
|
|
963
959
|
});
|
|
964
960
|
}
|
|
@@ -971,9 +967,10 @@ export const de_GetSubjectCommand = async (output, context) => {
|
|
|
971
967
|
$metadata: deserializeMetadata(output),
|
|
972
968
|
});
|
|
973
969
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
}
|
|
970
|
+
const doc = take(data, {
|
|
971
|
+
subject: (_) => de_SubjectDetail(_, context),
|
|
972
|
+
});
|
|
973
|
+
Object.assign(contents, doc);
|
|
977
974
|
return contents;
|
|
978
975
|
};
|
|
979
976
|
const de_GetSubjectCommandError = async (output, context) => {
|
|
@@ -991,10 +988,9 @@ const de_GetSubjectCommandError = async (output, context) => {
|
|
|
991
988
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
992
989
|
default:
|
|
993
990
|
const parsedBody = parsedOutput.body;
|
|
994
|
-
throwDefaultError({
|
|
991
|
+
return throwDefaultError({
|
|
995
992
|
output,
|
|
996
993
|
parsedBody,
|
|
997
|
-
exceptionCtor: __BaseException,
|
|
998
994
|
errorCode,
|
|
999
995
|
});
|
|
1000
996
|
}
|
|
@@ -1007,9 +1003,10 @@ export const de_GetTrustAnchorCommand = async (output, context) => {
|
|
|
1007
1003
|
$metadata: deserializeMetadata(output),
|
|
1008
1004
|
});
|
|
1009
1005
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
}
|
|
1006
|
+
const doc = take(data, {
|
|
1007
|
+
trustAnchor: (_) => de_TrustAnchorDetail(_, context),
|
|
1008
|
+
});
|
|
1009
|
+
Object.assign(contents, doc);
|
|
1013
1010
|
return contents;
|
|
1014
1011
|
};
|
|
1015
1012
|
const de_GetTrustAnchorCommandError = async (output, context) => {
|
|
@@ -1030,10 +1027,9 @@ const de_GetTrustAnchorCommandError = async (output, context) => {
|
|
|
1030
1027
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1031
1028
|
default:
|
|
1032
1029
|
const parsedBody = parsedOutput.body;
|
|
1033
|
-
throwDefaultError({
|
|
1030
|
+
return throwDefaultError({
|
|
1034
1031
|
output,
|
|
1035
1032
|
parsedBody,
|
|
1036
|
-
exceptionCtor: __BaseException,
|
|
1037
1033
|
errorCode,
|
|
1038
1034
|
});
|
|
1039
1035
|
}
|
|
@@ -1046,9 +1042,10 @@ export const de_ImportCrlCommand = async (output, context) => {
|
|
|
1046
1042
|
$metadata: deserializeMetadata(output),
|
|
1047
1043
|
});
|
|
1048
1044
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
}
|
|
1045
|
+
const doc = take(data, {
|
|
1046
|
+
crl: (_) => de_CrlDetail(_, context),
|
|
1047
|
+
});
|
|
1048
|
+
Object.assign(contents, doc);
|
|
1052
1049
|
return contents;
|
|
1053
1050
|
};
|
|
1054
1051
|
const de_ImportCrlCommandError = async (output, context) => {
|
|
@@ -1066,10 +1063,9 @@ const de_ImportCrlCommandError = async (output, context) => {
|
|
|
1066
1063
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1067
1064
|
default:
|
|
1068
1065
|
const parsedBody = parsedOutput.body;
|
|
1069
|
-
throwDefaultError({
|
|
1066
|
+
return throwDefaultError({
|
|
1070
1067
|
output,
|
|
1071
1068
|
parsedBody,
|
|
1072
|
-
exceptionCtor: __BaseException,
|
|
1073
1069
|
errorCode,
|
|
1074
1070
|
});
|
|
1075
1071
|
}
|
|
@@ -1082,12 +1078,11 @@ export const de_ListCrlsCommand = async (output, context) => {
|
|
|
1082
1078
|
$metadata: deserializeMetadata(output),
|
|
1083
1079
|
});
|
|
1084
1080
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
}
|
|
1081
|
+
const doc = take(data, {
|
|
1082
|
+
crls: (_) => de_CrlDetails(_, context),
|
|
1083
|
+
nextToken: __expectString,
|
|
1084
|
+
});
|
|
1085
|
+
Object.assign(contents, doc);
|
|
1091
1086
|
return contents;
|
|
1092
1087
|
};
|
|
1093
1088
|
const de_ListCrlsCommandError = async (output, context) => {
|
|
@@ -1105,10 +1100,9 @@ const de_ListCrlsCommandError = async (output, context) => {
|
|
|
1105
1100
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1106
1101
|
default:
|
|
1107
1102
|
const parsedBody = parsedOutput.body;
|
|
1108
|
-
throwDefaultError({
|
|
1103
|
+
return throwDefaultError({
|
|
1109
1104
|
output,
|
|
1110
1105
|
parsedBody,
|
|
1111
|
-
exceptionCtor: __BaseException,
|
|
1112
1106
|
errorCode,
|
|
1113
1107
|
});
|
|
1114
1108
|
}
|
|
@@ -1121,12 +1115,11 @@ export const de_ListProfilesCommand = async (output, context) => {
|
|
|
1121
1115
|
$metadata: deserializeMetadata(output),
|
|
1122
1116
|
});
|
|
1123
1117
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
}
|
|
1118
|
+
const doc = take(data, {
|
|
1119
|
+
nextToken: __expectString,
|
|
1120
|
+
profiles: (_) => de_ProfileDetails(_, context),
|
|
1121
|
+
});
|
|
1122
|
+
Object.assign(contents, doc);
|
|
1130
1123
|
return contents;
|
|
1131
1124
|
};
|
|
1132
1125
|
const de_ListProfilesCommandError = async (output, context) => {
|
|
@@ -1144,10 +1137,9 @@ const de_ListProfilesCommandError = async (output, context) => {
|
|
|
1144
1137
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1145
1138
|
default:
|
|
1146
1139
|
const parsedBody = parsedOutput.body;
|
|
1147
|
-
throwDefaultError({
|
|
1140
|
+
return throwDefaultError({
|
|
1148
1141
|
output,
|
|
1149
1142
|
parsedBody,
|
|
1150
|
-
exceptionCtor: __BaseException,
|
|
1151
1143
|
errorCode,
|
|
1152
1144
|
});
|
|
1153
1145
|
}
|
|
@@ -1160,12 +1152,11 @@ export const de_ListSubjectsCommand = async (output, context) => {
|
|
|
1160
1152
|
$metadata: deserializeMetadata(output),
|
|
1161
1153
|
});
|
|
1162
1154
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
}
|
|
1155
|
+
const doc = take(data, {
|
|
1156
|
+
nextToken: __expectString,
|
|
1157
|
+
subjects: (_) => de_SubjectSummaries(_, context),
|
|
1158
|
+
});
|
|
1159
|
+
Object.assign(contents, doc);
|
|
1169
1160
|
return contents;
|
|
1170
1161
|
};
|
|
1171
1162
|
const de_ListSubjectsCommandError = async (output, context) => {
|
|
@@ -1183,10 +1174,9 @@ const de_ListSubjectsCommandError = async (output, context) => {
|
|
|
1183
1174
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1184
1175
|
default:
|
|
1185
1176
|
const parsedBody = parsedOutput.body;
|
|
1186
|
-
throwDefaultError({
|
|
1177
|
+
return throwDefaultError({
|
|
1187
1178
|
output,
|
|
1188
1179
|
parsedBody,
|
|
1189
|
-
exceptionCtor: __BaseException,
|
|
1190
1180
|
errorCode,
|
|
1191
1181
|
});
|
|
1192
1182
|
}
|
|
@@ -1199,9 +1189,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1199
1189
|
$metadata: deserializeMetadata(output),
|
|
1200
1190
|
});
|
|
1201
1191
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
}
|
|
1192
|
+
const doc = take(data, {
|
|
1193
|
+
tags: _json,
|
|
1194
|
+
});
|
|
1195
|
+
Object.assign(contents, doc);
|
|
1205
1196
|
return contents;
|
|
1206
1197
|
};
|
|
1207
1198
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1222,10 +1213,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1222
1213
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1223
1214
|
default:
|
|
1224
1215
|
const parsedBody = parsedOutput.body;
|
|
1225
|
-
throwDefaultError({
|
|
1216
|
+
return throwDefaultError({
|
|
1226
1217
|
output,
|
|
1227
1218
|
parsedBody,
|
|
1228
|
-
exceptionCtor: __BaseException,
|
|
1229
1219
|
errorCode,
|
|
1230
1220
|
});
|
|
1231
1221
|
}
|
|
@@ -1238,12 +1228,11 @@ export const de_ListTrustAnchorsCommand = async (output, context) => {
|
|
|
1238
1228
|
$metadata: deserializeMetadata(output),
|
|
1239
1229
|
});
|
|
1240
1230
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
}
|
|
1231
|
+
const doc = take(data, {
|
|
1232
|
+
nextToken: __expectString,
|
|
1233
|
+
trustAnchors: (_) => de_TrustAnchorDetails(_, context),
|
|
1234
|
+
});
|
|
1235
|
+
Object.assign(contents, doc);
|
|
1247
1236
|
return contents;
|
|
1248
1237
|
};
|
|
1249
1238
|
const de_ListTrustAnchorsCommandError = async (output, context) => {
|
|
@@ -1261,10 +1250,9 @@ const de_ListTrustAnchorsCommandError = async (output, context) => {
|
|
|
1261
1250
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1262
1251
|
default:
|
|
1263
1252
|
const parsedBody = parsedOutput.body;
|
|
1264
|
-
throwDefaultError({
|
|
1253
|
+
return throwDefaultError({
|
|
1265
1254
|
output,
|
|
1266
1255
|
parsedBody,
|
|
1267
|
-
exceptionCtor: __BaseException,
|
|
1268
1256
|
errorCode,
|
|
1269
1257
|
});
|
|
1270
1258
|
}
|
|
@@ -1300,10 +1288,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1300
1288
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1301
1289
|
default:
|
|
1302
1290
|
const parsedBody = parsedOutput.body;
|
|
1303
|
-
throwDefaultError({
|
|
1291
|
+
return throwDefaultError({
|
|
1304
1292
|
output,
|
|
1305
1293
|
parsedBody,
|
|
1306
|
-
exceptionCtor: __BaseException,
|
|
1307
1294
|
errorCode,
|
|
1308
1295
|
});
|
|
1309
1296
|
}
|
|
@@ -1336,10 +1323,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1336
1323
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1337
1324
|
default:
|
|
1338
1325
|
const parsedBody = parsedOutput.body;
|
|
1339
|
-
throwDefaultError({
|
|
1326
|
+
return throwDefaultError({
|
|
1340
1327
|
output,
|
|
1341
1328
|
parsedBody,
|
|
1342
|
-
exceptionCtor: __BaseException,
|
|
1343
1329
|
errorCode,
|
|
1344
1330
|
});
|
|
1345
1331
|
}
|
|
@@ -1352,9 +1338,10 @@ export const de_UpdateCrlCommand = async (output, context) => {
|
|
|
1352
1338
|
$metadata: deserializeMetadata(output),
|
|
1353
1339
|
});
|
|
1354
1340
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
}
|
|
1341
|
+
const doc = take(data, {
|
|
1342
|
+
crl: (_) => de_CrlDetail(_, context),
|
|
1343
|
+
});
|
|
1344
|
+
Object.assign(contents, doc);
|
|
1358
1345
|
return contents;
|
|
1359
1346
|
};
|
|
1360
1347
|
const de_UpdateCrlCommandError = async (output, context) => {
|
|
@@ -1375,10 +1362,9 @@ const de_UpdateCrlCommandError = async (output, context) => {
|
|
|
1375
1362
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1376
1363
|
default:
|
|
1377
1364
|
const parsedBody = parsedOutput.body;
|
|
1378
|
-
throwDefaultError({
|
|
1365
|
+
return throwDefaultError({
|
|
1379
1366
|
output,
|
|
1380
1367
|
parsedBody,
|
|
1381
|
-
exceptionCtor: __BaseException,
|
|
1382
1368
|
errorCode,
|
|
1383
1369
|
});
|
|
1384
1370
|
}
|
|
@@ -1391,9 +1377,10 @@ export const de_UpdateProfileCommand = async (output, context) => {
|
|
|
1391
1377
|
$metadata: deserializeMetadata(output),
|
|
1392
1378
|
});
|
|
1393
1379
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
}
|
|
1380
|
+
const doc = take(data, {
|
|
1381
|
+
profile: (_) => de_ProfileDetail(_, context),
|
|
1382
|
+
});
|
|
1383
|
+
Object.assign(contents, doc);
|
|
1397
1384
|
return contents;
|
|
1398
1385
|
};
|
|
1399
1386
|
const de_UpdateProfileCommandError = async (output, context) => {
|
|
@@ -1414,10 +1401,9 @@ const de_UpdateProfileCommandError = async (output, context) => {
|
|
|
1414
1401
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1415
1402
|
default:
|
|
1416
1403
|
const parsedBody = parsedOutput.body;
|
|
1417
|
-
throwDefaultError({
|
|
1404
|
+
return throwDefaultError({
|
|
1418
1405
|
output,
|
|
1419
1406
|
parsedBody,
|
|
1420
|
-
exceptionCtor: __BaseException,
|
|
1421
1407
|
errorCode,
|
|
1422
1408
|
});
|
|
1423
1409
|
}
|
|
@@ -1430,9 +1416,10 @@ export const de_UpdateTrustAnchorCommand = async (output, context) => {
|
|
|
1430
1416
|
$metadata: deserializeMetadata(output),
|
|
1431
1417
|
});
|
|
1432
1418
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
}
|
|
1419
|
+
const doc = take(data, {
|
|
1420
|
+
trustAnchor: (_) => de_TrustAnchorDetail(_, context),
|
|
1421
|
+
});
|
|
1422
|
+
Object.assign(contents, doc);
|
|
1436
1423
|
return contents;
|
|
1437
1424
|
};
|
|
1438
1425
|
const de_UpdateTrustAnchorCommandError = async (output, context) => {
|
|
@@ -1453,21 +1440,21 @@ const de_UpdateTrustAnchorCommandError = async (output, context) => {
|
|
|
1453
1440
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1454
1441
|
default:
|
|
1455
1442
|
const parsedBody = parsedOutput.body;
|
|
1456
|
-
throwDefaultError({
|
|
1443
|
+
return throwDefaultError({
|
|
1457
1444
|
output,
|
|
1458
1445
|
parsedBody,
|
|
1459
|
-
exceptionCtor: __BaseException,
|
|
1460
1446
|
errorCode,
|
|
1461
1447
|
});
|
|
1462
1448
|
}
|
|
1463
1449
|
};
|
|
1464
|
-
const
|
|
1450
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1465
1451
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1466
1452
|
const contents = map({});
|
|
1467
1453
|
const data = parsedOutput.body;
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
}
|
|
1454
|
+
const doc = take(data, {
|
|
1455
|
+
message: __expectString,
|
|
1456
|
+
});
|
|
1457
|
+
Object.assign(contents, doc);
|
|
1471
1458
|
const exception = new AccessDeniedException({
|
|
1472
1459
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1473
1460
|
...contents,
|
|
@@ -1477,9 +1464,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1477
1464
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1478
1465
|
const contents = map({});
|
|
1479
1466
|
const data = parsedOutput.body;
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
}
|
|
1467
|
+
const doc = take(data, {
|
|
1468
|
+
message: __expectString,
|
|
1469
|
+
});
|
|
1470
|
+
Object.assign(contents, doc);
|
|
1483
1471
|
const exception = new ResourceNotFoundException({
|
|
1484
1472
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1485
1473
|
...contents,
|
|
@@ -1489,9 +1477,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1489
1477
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1490
1478
|
const contents = map({});
|
|
1491
1479
|
const data = parsedOutput.body;
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
}
|
|
1480
|
+
const doc = take(data, {
|
|
1481
|
+
message: __expectString,
|
|
1482
|
+
});
|
|
1483
|
+
Object.assign(contents, doc);
|
|
1495
1484
|
const exception = new TooManyTagsException({
|
|
1496
1485
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1497
1486
|
...contents,
|
|
@@ -1501,102 +1490,50 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
1501
1490
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1502
1491
|
const contents = map({});
|
|
1503
1492
|
const data = parsedOutput.body;
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
}
|
|
1493
|
+
const doc = take(data, {
|
|
1494
|
+
message: __expectString,
|
|
1495
|
+
});
|
|
1496
|
+
Object.assign(contents, doc);
|
|
1507
1497
|
const exception = new ValidationException({
|
|
1508
1498
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1509
1499
|
...contents,
|
|
1510
1500
|
});
|
|
1511
1501
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1512
1502
|
};
|
|
1513
|
-
const se_ManagedPolicyList = (input, context) => {
|
|
1514
|
-
return input
|
|
1515
|
-
.filter((e) => e != null)
|
|
1516
|
-
.map((entry) => {
|
|
1517
|
-
return entry;
|
|
1518
|
-
});
|
|
1519
|
-
};
|
|
1520
|
-
const se_RoleArnList = (input, context) => {
|
|
1521
|
-
return input
|
|
1522
|
-
.filter((e) => e != null)
|
|
1523
|
-
.map((entry) => {
|
|
1524
|
-
return entry;
|
|
1525
|
-
});
|
|
1526
|
-
};
|
|
1527
|
-
const se_Source = (input, context) => {
|
|
1528
|
-
return {
|
|
1529
|
-
...(input.sourceData != null && { sourceData: se_SourceData(input.sourceData, context) }),
|
|
1530
|
-
...(input.sourceType != null && { sourceType: input.sourceType }),
|
|
1531
|
-
};
|
|
1532
|
-
};
|
|
1533
|
-
const se_SourceData = (input, context) => {
|
|
1534
|
-
return SourceData.visit(input, {
|
|
1535
|
-
acmPcaArn: (value) => ({ acmPcaArn: value }),
|
|
1536
|
-
x509CertificateData: (value) => ({ x509CertificateData: value }),
|
|
1537
|
-
_: (name, value) => ({ name: value }),
|
|
1538
|
-
});
|
|
1539
|
-
};
|
|
1540
|
-
const se_Tag = (input, context) => {
|
|
1541
|
-
return {
|
|
1542
|
-
...(input.key != null && { key: input.key }),
|
|
1543
|
-
...(input.value != null && { value: input.value }),
|
|
1544
|
-
};
|
|
1545
|
-
};
|
|
1546
|
-
const se_TagKeyList = (input, context) => {
|
|
1547
|
-
return input
|
|
1548
|
-
.filter((e) => e != null)
|
|
1549
|
-
.map((entry) => {
|
|
1550
|
-
return entry;
|
|
1551
|
-
});
|
|
1552
|
-
};
|
|
1553
|
-
const se_TagList = (input, context) => {
|
|
1554
|
-
return input
|
|
1555
|
-
.filter((e) => e != null)
|
|
1556
|
-
.map((entry) => {
|
|
1557
|
-
return se_Tag(entry, context);
|
|
1558
|
-
});
|
|
1559
|
-
};
|
|
1560
1503
|
const de_CredentialSummaries = (output, context) => {
|
|
1561
1504
|
const retVal = (output || [])
|
|
1562
1505
|
.filter((e) => e != null)
|
|
1563
1506
|
.map((entry) => {
|
|
1564
|
-
if (entry === null) {
|
|
1565
|
-
return null;
|
|
1566
|
-
}
|
|
1567
1507
|
return de_CredentialSummary(entry, context);
|
|
1568
1508
|
});
|
|
1569
1509
|
return retVal;
|
|
1570
1510
|
};
|
|
1571
1511
|
const de_CredentialSummary = (output, context) => {
|
|
1572
|
-
return {
|
|
1573
|
-
enabled: __expectBoolean
|
|
1574
|
-
failed: __expectBoolean
|
|
1575
|
-
issuer: __expectString
|
|
1576
|
-
seenAt:
|
|
1577
|
-
serialNumber: __expectString
|
|
1578
|
-
x509CertificateData: __expectString
|
|
1579
|
-
};
|
|
1512
|
+
return take(output, {
|
|
1513
|
+
enabled: __expectBoolean,
|
|
1514
|
+
failed: __expectBoolean,
|
|
1515
|
+
issuer: __expectString,
|
|
1516
|
+
seenAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1517
|
+
serialNumber: __expectString,
|
|
1518
|
+
x509CertificateData: __expectString,
|
|
1519
|
+
});
|
|
1580
1520
|
};
|
|
1581
1521
|
const de_CrlDetail = (output, context) => {
|
|
1582
|
-
return {
|
|
1583
|
-
createdAt:
|
|
1584
|
-
crlArn: __expectString
|
|
1585
|
-
crlData:
|
|
1586
|
-
crlId: __expectString
|
|
1587
|
-
enabled: __expectBoolean
|
|
1588
|
-
name: __expectString
|
|
1589
|
-
trustAnchorArn: __expectString
|
|
1590
|
-
updatedAt:
|
|
1591
|
-
};
|
|
1522
|
+
return take(output, {
|
|
1523
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1524
|
+
crlArn: __expectString,
|
|
1525
|
+
crlData: context.base64Decoder,
|
|
1526
|
+
crlId: __expectString,
|
|
1527
|
+
enabled: __expectBoolean,
|
|
1528
|
+
name: __expectString,
|
|
1529
|
+
trustAnchorArn: __expectString,
|
|
1530
|
+
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1531
|
+
});
|
|
1592
1532
|
};
|
|
1593
1533
|
const de_CrlDetails = (output, context) => {
|
|
1594
1534
|
const retVal = (output || [])
|
|
1595
1535
|
.filter((e) => e != null)
|
|
1596
1536
|
.map((entry) => {
|
|
1597
|
-
if (entry === null) {
|
|
1598
|
-
return null;
|
|
1599
|
-
}
|
|
1600
1537
|
return de_CrlDetail(entry, context);
|
|
1601
1538
|
});
|
|
1602
1539
|
return retVal;
|
|
@@ -1605,163 +1542,88 @@ const de_InstanceProperties = (output, context) => {
|
|
|
1605
1542
|
const retVal = (output || [])
|
|
1606
1543
|
.filter((e) => e != null)
|
|
1607
1544
|
.map((entry) => {
|
|
1608
|
-
if (entry === null) {
|
|
1609
|
-
return null;
|
|
1610
|
-
}
|
|
1611
1545
|
return de_InstanceProperty(entry, context);
|
|
1612
1546
|
});
|
|
1613
1547
|
return retVal;
|
|
1614
1548
|
};
|
|
1615
1549
|
const de_InstanceProperty = (output, context) => {
|
|
1616
|
-
return {
|
|
1617
|
-
failed: __expectBoolean
|
|
1618
|
-
properties:
|
|
1619
|
-
seenAt:
|
|
1620
|
-
};
|
|
1621
|
-
};
|
|
1622
|
-
const de_InstancePropertyMap = (output, context) => {
|
|
1623
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1624
|
-
if (value === null) {
|
|
1625
|
-
return acc;
|
|
1626
|
-
}
|
|
1627
|
-
acc[key] = __expectString(value);
|
|
1628
|
-
return acc;
|
|
1629
|
-
}, {});
|
|
1630
|
-
};
|
|
1631
|
-
const de_ManagedPolicyList = (output, context) => {
|
|
1632
|
-
const retVal = (output || [])
|
|
1633
|
-
.filter((e) => e != null)
|
|
1634
|
-
.map((entry) => {
|
|
1635
|
-
if (entry === null) {
|
|
1636
|
-
return null;
|
|
1637
|
-
}
|
|
1638
|
-
return __expectString(entry);
|
|
1550
|
+
return take(output, {
|
|
1551
|
+
failed: __expectBoolean,
|
|
1552
|
+
properties: _json,
|
|
1553
|
+
seenAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1639
1554
|
});
|
|
1640
|
-
return retVal;
|
|
1641
1555
|
};
|
|
1642
1556
|
const de_ProfileDetail = (output, context) => {
|
|
1643
|
-
return {
|
|
1644
|
-
createdAt:
|
|
1645
|
-
createdBy: __expectString
|
|
1646
|
-
durationSeconds: __expectInt32
|
|
1647
|
-
enabled: __expectBoolean
|
|
1648
|
-
managedPolicyArns:
|
|
1649
|
-
name: __expectString
|
|
1650
|
-
profileArn: __expectString
|
|
1651
|
-
profileId: __expectString
|
|
1652
|
-
requireInstanceProperties: __expectBoolean
|
|
1653
|
-
roleArns:
|
|
1654
|
-
sessionPolicy: __expectString
|
|
1655
|
-
updatedAt:
|
|
1656
|
-
};
|
|
1557
|
+
return take(output, {
|
|
1558
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1559
|
+
createdBy: __expectString,
|
|
1560
|
+
durationSeconds: __expectInt32,
|
|
1561
|
+
enabled: __expectBoolean,
|
|
1562
|
+
managedPolicyArns: _json,
|
|
1563
|
+
name: __expectString,
|
|
1564
|
+
profileArn: __expectString,
|
|
1565
|
+
profileId: __expectString,
|
|
1566
|
+
requireInstanceProperties: __expectBoolean,
|
|
1567
|
+
roleArns: _json,
|
|
1568
|
+
sessionPolicy: __expectString,
|
|
1569
|
+
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1570
|
+
});
|
|
1657
1571
|
};
|
|
1658
1572
|
const de_ProfileDetails = (output, context) => {
|
|
1659
1573
|
const retVal = (output || [])
|
|
1660
1574
|
.filter((e) => e != null)
|
|
1661
1575
|
.map((entry) => {
|
|
1662
|
-
if (entry === null) {
|
|
1663
|
-
return null;
|
|
1664
|
-
}
|
|
1665
1576
|
return de_ProfileDetail(entry, context);
|
|
1666
1577
|
});
|
|
1667
1578
|
return retVal;
|
|
1668
1579
|
};
|
|
1669
|
-
const de_RoleArnList = (output, context) => {
|
|
1670
|
-
const retVal = (output || [])
|
|
1671
|
-
.filter((e) => e != null)
|
|
1672
|
-
.map((entry) => {
|
|
1673
|
-
if (entry === null) {
|
|
1674
|
-
return null;
|
|
1675
|
-
}
|
|
1676
|
-
return __expectString(entry);
|
|
1677
|
-
});
|
|
1678
|
-
return retVal;
|
|
1679
|
-
};
|
|
1680
|
-
const de_Source = (output, context) => {
|
|
1681
|
-
return {
|
|
1682
|
-
sourceData: output.sourceData != null ? de_SourceData(__expectUnion(output.sourceData), context) : undefined,
|
|
1683
|
-
sourceType: __expectString(output.sourceType),
|
|
1684
|
-
};
|
|
1685
|
-
};
|
|
1686
|
-
const de_SourceData = (output, context) => {
|
|
1687
|
-
if (__expectString(output.acmPcaArn) !== undefined) {
|
|
1688
|
-
return { acmPcaArn: __expectString(output.acmPcaArn) };
|
|
1689
|
-
}
|
|
1690
|
-
if (__expectString(output.x509CertificateData) !== undefined) {
|
|
1691
|
-
return { x509CertificateData: __expectString(output.x509CertificateData) };
|
|
1692
|
-
}
|
|
1693
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1694
|
-
};
|
|
1695
1580
|
const de_SubjectDetail = (output, context) => {
|
|
1696
|
-
return {
|
|
1697
|
-
createdAt:
|
|
1698
|
-
credentials:
|
|
1699
|
-
enabled: __expectBoolean
|
|
1700
|
-
instanceProperties:
|
|
1701
|
-
lastSeenAt:
|
|
1702
|
-
subjectArn: __expectString
|
|
1703
|
-
subjectId: __expectString
|
|
1704
|
-
updatedAt:
|
|
1705
|
-
x509Subject: __expectString
|
|
1706
|
-
};
|
|
1581
|
+
return take(output, {
|
|
1582
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1583
|
+
credentials: (_) => de_CredentialSummaries(_, context),
|
|
1584
|
+
enabled: __expectBoolean,
|
|
1585
|
+
instanceProperties: (_) => de_InstanceProperties(_, context),
|
|
1586
|
+
lastSeenAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1587
|
+
subjectArn: __expectString,
|
|
1588
|
+
subjectId: __expectString,
|
|
1589
|
+
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1590
|
+
x509Subject: __expectString,
|
|
1591
|
+
});
|
|
1707
1592
|
};
|
|
1708
1593
|
const de_SubjectSummaries = (output, context) => {
|
|
1709
1594
|
const retVal = (output || [])
|
|
1710
1595
|
.filter((e) => e != null)
|
|
1711
1596
|
.map((entry) => {
|
|
1712
|
-
if (entry === null) {
|
|
1713
|
-
return null;
|
|
1714
|
-
}
|
|
1715
1597
|
return de_SubjectSummary(entry, context);
|
|
1716
1598
|
});
|
|
1717
1599
|
return retVal;
|
|
1718
1600
|
};
|
|
1719
1601
|
const de_SubjectSummary = (output, context) => {
|
|
1720
|
-
return {
|
|
1721
|
-
createdAt:
|
|
1722
|
-
enabled: __expectBoolean
|
|
1723
|
-
lastSeenAt:
|
|
1724
|
-
subjectArn: __expectString
|
|
1725
|
-
subjectId: __expectString
|
|
1726
|
-
updatedAt:
|
|
1727
|
-
x509Subject: __expectString
|
|
1728
|
-
};
|
|
1729
|
-
};
|
|
1730
|
-
const de_Tag = (output, context) => {
|
|
1731
|
-
return {
|
|
1732
|
-
key: __expectString(output.key),
|
|
1733
|
-
value: __expectString(output.value),
|
|
1734
|
-
};
|
|
1735
|
-
};
|
|
1736
|
-
const de_TagList = (output, context) => {
|
|
1737
|
-
const retVal = (output || [])
|
|
1738
|
-
.filter((e) => e != null)
|
|
1739
|
-
.map((entry) => {
|
|
1740
|
-
if (entry === null) {
|
|
1741
|
-
return null;
|
|
1742
|
-
}
|
|
1743
|
-
return de_Tag(entry, context);
|
|
1602
|
+
return take(output, {
|
|
1603
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1604
|
+
enabled: __expectBoolean,
|
|
1605
|
+
lastSeenAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1606
|
+
subjectArn: __expectString,
|
|
1607
|
+
subjectId: __expectString,
|
|
1608
|
+
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1609
|
+
x509Subject: __expectString,
|
|
1744
1610
|
});
|
|
1745
|
-
return retVal;
|
|
1746
1611
|
};
|
|
1747
1612
|
const de_TrustAnchorDetail = (output, context) => {
|
|
1748
|
-
return {
|
|
1749
|
-
createdAt:
|
|
1750
|
-
enabled: __expectBoolean
|
|
1751
|
-
name: __expectString
|
|
1752
|
-
source:
|
|
1753
|
-
trustAnchorArn: __expectString
|
|
1754
|
-
trustAnchorId: __expectString
|
|
1755
|
-
updatedAt:
|
|
1756
|
-
};
|
|
1613
|
+
return take(output, {
|
|
1614
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1615
|
+
enabled: __expectBoolean,
|
|
1616
|
+
name: __expectString,
|
|
1617
|
+
source: _json,
|
|
1618
|
+
trustAnchorArn: __expectString,
|
|
1619
|
+
trustAnchorId: __expectString,
|
|
1620
|
+
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1621
|
+
});
|
|
1757
1622
|
};
|
|
1758
1623
|
const de_TrustAnchorDetails = (output, context) => {
|
|
1759
1624
|
const retVal = (output || [])
|
|
1760
1625
|
.filter((e) => e != null)
|
|
1761
1626
|
.map((entry) => {
|
|
1762
|
-
if (entry === null) {
|
|
1763
|
-
return null;
|
|
1764
|
-
}
|
|
1765
1627
|
return de_TrustAnchorDetail(entry, context);
|
|
1766
1628
|
});
|
|
1767
1629
|
return retVal;
|