@aws-sdk/client-route53-recovery-readiness 3.312.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Route53RecoveryReadiness.js +36 -448
- package/dist-cjs/protocols/Aws_restJson1.js +406 -611
- package/dist-es/Route53RecoveryReadiness.js +36 -448
- package/dist-es/protocols/Aws_restJson1.js +357 -562
- package/dist-types/Route53RecoveryReadiness.d.ts +39 -69
- package/dist-types/ts3.4/Route53RecoveryReadiness.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { Route53RecoveryReadinessServiceException as __BaseException } from "../models/Route53RecoveryReadinessServiceException";
|
|
5
5
|
export const se_CreateCellCommand = async (input, context) => {
|
|
@@ -9,11 +9,11 @@ export const se_CreateCellCommand = async (input, context) => {
|
|
|
9
9
|
};
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cells";
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
cellName: [, , `CellName`],
|
|
14
|
+
cells: [, (_) => _json(_), `Cells`],
|
|
15
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
16
|
+
}));
|
|
17
17
|
return new __HttpRequest({
|
|
18
18
|
protocol,
|
|
19
19
|
hostname,
|
|
@@ -31,9 +31,9 @@ export const se_CreateCrossAccountAuthorizationCommand = async (input, context)
|
|
|
31
31
|
};
|
|
32
32
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crossaccountauthorizations";
|
|
33
33
|
let body;
|
|
34
|
-
body = JSON.stringify({
|
|
35
|
-
|
|
36
|
-
});
|
|
34
|
+
body = JSON.stringify(take(input, {
|
|
35
|
+
crossAccountAuthorization: [, , `CrossAccountAuthorization`],
|
|
36
|
+
}));
|
|
37
37
|
return new __HttpRequest({
|
|
38
38
|
protocol,
|
|
39
39
|
hostname,
|
|
@@ -51,11 +51,11 @@ export const se_CreateReadinessCheckCommand = async (input, context) => {
|
|
|
51
51
|
};
|
|
52
52
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/readinesschecks";
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify({
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
});
|
|
54
|
+
body = JSON.stringify(take(input, {
|
|
55
|
+
readinessCheckName: [, , `ReadinessCheckName`],
|
|
56
|
+
resourceSetName: [, , `ResourceSetName`],
|
|
57
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
58
|
+
}));
|
|
59
59
|
return new __HttpRequest({
|
|
60
60
|
protocol,
|
|
61
61
|
hostname,
|
|
@@ -73,11 +73,11 @@ export const se_CreateRecoveryGroupCommand = async (input, context) => {
|
|
|
73
73
|
};
|
|
74
74
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recoverygroups";
|
|
75
75
|
let body;
|
|
76
|
-
body = JSON.stringify({
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
});
|
|
76
|
+
body = JSON.stringify(take(input, {
|
|
77
|
+
cells: [, (_) => _json(_), `Cells`],
|
|
78
|
+
recoveryGroupName: [, , `RecoveryGroupName`],
|
|
79
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
80
|
+
}));
|
|
81
81
|
return new __HttpRequest({
|
|
82
82
|
protocol,
|
|
83
83
|
hostname,
|
|
@@ -95,12 +95,12 @@ export const se_CreateResourceSetCommand = async (input, context) => {
|
|
|
95
95
|
};
|
|
96
96
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcesets";
|
|
97
97
|
let body;
|
|
98
|
-
body = JSON.stringify({
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
});
|
|
98
|
+
body = JSON.stringify(take(input, {
|
|
99
|
+
resourceSetName: [, , `ResourceSetName`],
|
|
100
|
+
resourceSetType: [, , `ResourceSetType`],
|
|
101
|
+
resources: [, (_) => se___listOfResource(_, context), `Resources`],
|
|
102
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
103
|
+
}));
|
|
104
104
|
return new __HttpRequest({
|
|
105
105
|
protocol,
|
|
106
106
|
hostname,
|
|
@@ -511,9 +511,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
511
511
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
512
512
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
513
513
|
let body;
|
|
514
|
-
body = JSON.stringify({
|
|
515
|
-
|
|
516
|
-
});
|
|
514
|
+
body = JSON.stringify(take(input, {
|
|
515
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
516
|
+
}));
|
|
517
517
|
return new __HttpRequest({
|
|
518
518
|
protocol,
|
|
519
519
|
hostname,
|
|
@@ -555,9 +555,9 @@ export const se_UpdateCellCommand = async (input, context) => {
|
|
|
555
555
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cells/{CellName}";
|
|
556
556
|
resolvedPath = __resolvedPath(resolvedPath, input, "CellName", () => input.CellName, "{CellName}", false);
|
|
557
557
|
let body;
|
|
558
|
-
body = JSON.stringify({
|
|
559
|
-
|
|
560
|
-
});
|
|
558
|
+
body = JSON.stringify(take(input, {
|
|
559
|
+
cells: [, (_) => _json(_), `Cells`],
|
|
560
|
+
}));
|
|
561
561
|
return new __HttpRequest({
|
|
562
562
|
protocol,
|
|
563
563
|
hostname,
|
|
@@ -576,9 +576,9 @@ export const se_UpdateReadinessCheckCommand = async (input, context) => {
|
|
|
576
576
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/readinesschecks/{ReadinessCheckName}";
|
|
577
577
|
resolvedPath = __resolvedPath(resolvedPath, input, "ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
578
578
|
let body;
|
|
579
|
-
body = JSON.stringify({
|
|
580
|
-
|
|
581
|
-
});
|
|
579
|
+
body = JSON.stringify(take(input, {
|
|
580
|
+
resourceSetName: [, , `ResourceSetName`],
|
|
581
|
+
}));
|
|
582
582
|
return new __HttpRequest({
|
|
583
583
|
protocol,
|
|
584
584
|
hostname,
|
|
@@ -597,9 +597,9 @@ export const se_UpdateRecoveryGroupCommand = async (input, context) => {
|
|
|
597
597
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recoverygroups/{RecoveryGroupName}";
|
|
598
598
|
resolvedPath = __resolvedPath(resolvedPath, input, "RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
599
599
|
let body;
|
|
600
|
-
body = JSON.stringify({
|
|
601
|
-
|
|
602
|
-
});
|
|
600
|
+
body = JSON.stringify(take(input, {
|
|
601
|
+
cells: [, (_) => _json(_), `Cells`],
|
|
602
|
+
}));
|
|
603
603
|
return new __HttpRequest({
|
|
604
604
|
protocol,
|
|
605
605
|
hostname,
|
|
@@ -618,10 +618,10 @@ export const se_UpdateResourceSetCommand = async (input, context) => {
|
|
|
618
618
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcesets/{ResourceSetName}";
|
|
619
619
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceSetName", () => input.ResourceSetName, "{ResourceSetName}", false);
|
|
620
620
|
let body;
|
|
621
|
-
body = JSON.stringify({
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
});
|
|
621
|
+
body = JSON.stringify(take(input, {
|
|
622
|
+
resourceSetType: [, , `ResourceSetType`],
|
|
623
|
+
resources: [, (_) => se___listOfResource(_, context), `Resources`],
|
|
624
|
+
}));
|
|
625
625
|
return new __HttpRequest({
|
|
626
626
|
protocol,
|
|
627
627
|
hostname,
|
|
@@ -640,21 +640,14 @@ export const de_CreateCellCommand = async (output, context) => {
|
|
|
640
640
|
$metadata: deserializeMetadata(output),
|
|
641
641
|
});
|
|
642
642
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
}
|
|
652
|
-
if (data.parentReadinessScopes != null) {
|
|
653
|
-
contents.ParentReadinessScopes = de___listOf__string(data.parentReadinessScopes, context);
|
|
654
|
-
}
|
|
655
|
-
if (data.tags != null) {
|
|
656
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
657
|
-
}
|
|
643
|
+
const doc = take(data, {
|
|
644
|
+
CellArn: [, __expectString, `cellArn`],
|
|
645
|
+
CellName: [, __expectString, `cellName`],
|
|
646
|
+
Cells: [, _json, `cells`],
|
|
647
|
+
ParentReadinessScopes: [, _json, `parentReadinessScopes`],
|
|
648
|
+
Tags: [, _json, `tags`],
|
|
649
|
+
});
|
|
650
|
+
Object.assign(contents, doc);
|
|
658
651
|
return contents;
|
|
659
652
|
};
|
|
660
653
|
const de_CreateCellCommandError = async (output, context) => {
|
|
@@ -681,10 +674,9 @@ const de_CreateCellCommandError = async (output, context) => {
|
|
|
681
674
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
682
675
|
default:
|
|
683
676
|
const parsedBody = parsedOutput.body;
|
|
684
|
-
throwDefaultError({
|
|
677
|
+
return throwDefaultError({
|
|
685
678
|
output,
|
|
686
679
|
parsedBody,
|
|
687
|
-
exceptionCtor: __BaseException,
|
|
688
680
|
errorCode,
|
|
689
681
|
});
|
|
690
682
|
}
|
|
@@ -697,9 +689,10 @@ export const de_CreateCrossAccountAuthorizationCommand = async (output, context)
|
|
|
697
689
|
$metadata: deserializeMetadata(output),
|
|
698
690
|
});
|
|
699
691
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
}
|
|
692
|
+
const doc = take(data, {
|
|
693
|
+
CrossAccountAuthorization: [, __expectString, `crossAccountAuthorization`],
|
|
694
|
+
});
|
|
695
|
+
Object.assign(contents, doc);
|
|
703
696
|
return contents;
|
|
704
697
|
};
|
|
705
698
|
const de_CreateCrossAccountAuthorizationCommandError = async (output, context) => {
|
|
@@ -726,10 +719,9 @@ const de_CreateCrossAccountAuthorizationCommandError = async (output, context) =
|
|
|
726
719
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
727
720
|
default:
|
|
728
721
|
const parsedBody = parsedOutput.body;
|
|
729
|
-
throwDefaultError({
|
|
722
|
+
return throwDefaultError({
|
|
730
723
|
output,
|
|
731
724
|
parsedBody,
|
|
732
|
-
exceptionCtor: __BaseException,
|
|
733
725
|
errorCode,
|
|
734
726
|
});
|
|
735
727
|
}
|
|
@@ -742,18 +734,13 @@ export const de_CreateReadinessCheckCommand = async (output, context) => {
|
|
|
742
734
|
$metadata: deserializeMetadata(output),
|
|
743
735
|
});
|
|
744
736
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
contents.ResourceSet = __expectString(data.resourceSet);
|
|
753
|
-
}
|
|
754
|
-
if (data.tags != null) {
|
|
755
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
756
|
-
}
|
|
737
|
+
const doc = take(data, {
|
|
738
|
+
ReadinessCheckArn: [, __expectString, `readinessCheckArn`],
|
|
739
|
+
ReadinessCheckName: [, __expectString, `readinessCheckName`],
|
|
740
|
+
ResourceSet: [, __expectString, `resourceSet`],
|
|
741
|
+
Tags: [, _json, `tags`],
|
|
742
|
+
});
|
|
743
|
+
Object.assign(contents, doc);
|
|
757
744
|
return contents;
|
|
758
745
|
};
|
|
759
746
|
const de_CreateReadinessCheckCommandError = async (output, context) => {
|
|
@@ -780,10 +767,9 @@ const de_CreateReadinessCheckCommandError = async (output, context) => {
|
|
|
780
767
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
781
768
|
default:
|
|
782
769
|
const parsedBody = parsedOutput.body;
|
|
783
|
-
throwDefaultError({
|
|
770
|
+
return throwDefaultError({
|
|
784
771
|
output,
|
|
785
772
|
parsedBody,
|
|
786
|
-
exceptionCtor: __BaseException,
|
|
787
773
|
errorCode,
|
|
788
774
|
});
|
|
789
775
|
}
|
|
@@ -796,18 +782,13 @@ export const de_CreateRecoveryGroupCommand = async (output, context) => {
|
|
|
796
782
|
$metadata: deserializeMetadata(output),
|
|
797
783
|
});
|
|
798
784
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
contents.RecoveryGroupName = __expectString(data.recoveryGroupName);
|
|
807
|
-
}
|
|
808
|
-
if (data.tags != null) {
|
|
809
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
810
|
-
}
|
|
785
|
+
const doc = take(data, {
|
|
786
|
+
Cells: [, _json, `cells`],
|
|
787
|
+
RecoveryGroupArn: [, __expectString, `recoveryGroupArn`],
|
|
788
|
+
RecoveryGroupName: [, __expectString, `recoveryGroupName`],
|
|
789
|
+
Tags: [, _json, `tags`],
|
|
790
|
+
});
|
|
791
|
+
Object.assign(contents, doc);
|
|
811
792
|
return contents;
|
|
812
793
|
};
|
|
813
794
|
const de_CreateRecoveryGroupCommandError = async (output, context) => {
|
|
@@ -834,10 +815,9 @@ const de_CreateRecoveryGroupCommandError = async (output, context) => {
|
|
|
834
815
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
835
816
|
default:
|
|
836
817
|
const parsedBody = parsedOutput.body;
|
|
837
|
-
throwDefaultError({
|
|
818
|
+
return throwDefaultError({
|
|
838
819
|
output,
|
|
839
820
|
parsedBody,
|
|
840
|
-
exceptionCtor: __BaseException,
|
|
841
821
|
errorCode,
|
|
842
822
|
});
|
|
843
823
|
}
|
|
@@ -850,21 +830,14 @@ export const de_CreateResourceSetCommand = async (output, context) => {
|
|
|
850
830
|
$metadata: deserializeMetadata(output),
|
|
851
831
|
});
|
|
852
832
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
}
|
|
862
|
-
if (data.resources != null) {
|
|
863
|
-
contents.Resources = de___listOfResource(data.resources, context);
|
|
864
|
-
}
|
|
865
|
-
if (data.tags != null) {
|
|
866
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
867
|
-
}
|
|
833
|
+
const doc = take(data, {
|
|
834
|
+
ResourceSetArn: [, __expectString, `resourceSetArn`],
|
|
835
|
+
ResourceSetName: [, __expectString, `resourceSetName`],
|
|
836
|
+
ResourceSetType: [, __expectString, `resourceSetType`],
|
|
837
|
+
Resources: [, (_) => de___listOfResource(_, context), `resources`],
|
|
838
|
+
Tags: [, _json, `tags`],
|
|
839
|
+
});
|
|
840
|
+
Object.assign(contents, doc);
|
|
868
841
|
return contents;
|
|
869
842
|
};
|
|
870
843
|
const de_CreateResourceSetCommandError = async (output, context) => {
|
|
@@ -891,10 +864,9 @@ const de_CreateResourceSetCommandError = async (output, context) => {
|
|
|
891
864
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
892
865
|
default:
|
|
893
866
|
const parsedBody = parsedOutput.body;
|
|
894
|
-
throwDefaultError({
|
|
867
|
+
return throwDefaultError({
|
|
895
868
|
output,
|
|
896
869
|
parsedBody,
|
|
897
|
-
exceptionCtor: __BaseException,
|
|
898
870
|
errorCode,
|
|
899
871
|
});
|
|
900
872
|
}
|
|
@@ -933,10 +905,9 @@ const de_DeleteCellCommandError = async (output, context) => {
|
|
|
933
905
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
934
906
|
default:
|
|
935
907
|
const parsedBody = parsedOutput.body;
|
|
936
|
-
throwDefaultError({
|
|
908
|
+
return throwDefaultError({
|
|
937
909
|
output,
|
|
938
910
|
parsedBody,
|
|
939
|
-
exceptionCtor: __BaseException,
|
|
940
911
|
errorCode,
|
|
941
912
|
});
|
|
942
913
|
}
|
|
@@ -972,10 +943,9 @@ const de_DeleteCrossAccountAuthorizationCommandError = async (output, context) =
|
|
|
972
943
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
973
944
|
default:
|
|
974
945
|
const parsedBody = parsedOutput.body;
|
|
975
|
-
throwDefaultError({
|
|
946
|
+
return throwDefaultError({
|
|
976
947
|
output,
|
|
977
948
|
parsedBody,
|
|
978
|
-
exceptionCtor: __BaseException,
|
|
979
949
|
errorCode,
|
|
980
950
|
});
|
|
981
951
|
}
|
|
@@ -1014,10 +984,9 @@ const de_DeleteReadinessCheckCommandError = async (output, context) => {
|
|
|
1014
984
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1015
985
|
default:
|
|
1016
986
|
const parsedBody = parsedOutput.body;
|
|
1017
|
-
throwDefaultError({
|
|
987
|
+
return throwDefaultError({
|
|
1018
988
|
output,
|
|
1019
989
|
parsedBody,
|
|
1020
|
-
exceptionCtor: __BaseException,
|
|
1021
990
|
errorCode,
|
|
1022
991
|
});
|
|
1023
992
|
}
|
|
@@ -1056,10 +1025,9 @@ const de_DeleteRecoveryGroupCommandError = async (output, context) => {
|
|
|
1056
1025
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1057
1026
|
default:
|
|
1058
1027
|
const parsedBody = parsedOutput.body;
|
|
1059
|
-
throwDefaultError({
|
|
1028
|
+
return throwDefaultError({
|
|
1060
1029
|
output,
|
|
1061
1030
|
parsedBody,
|
|
1062
|
-
exceptionCtor: __BaseException,
|
|
1063
1031
|
errorCode,
|
|
1064
1032
|
});
|
|
1065
1033
|
}
|
|
@@ -1098,10 +1066,9 @@ const de_DeleteResourceSetCommandError = async (output, context) => {
|
|
|
1098
1066
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1099
1067
|
default:
|
|
1100
1068
|
const parsedBody = parsedOutput.body;
|
|
1101
|
-
throwDefaultError({
|
|
1069
|
+
return throwDefaultError({
|
|
1102
1070
|
output,
|
|
1103
1071
|
parsedBody,
|
|
1104
|
-
exceptionCtor: __BaseException,
|
|
1105
1072
|
errorCode,
|
|
1106
1073
|
});
|
|
1107
1074
|
}
|
|
@@ -1114,15 +1081,12 @@ export const de_GetArchitectureRecommendationsCommand = async (output, context)
|
|
|
1114
1081
|
$metadata: deserializeMetadata(output),
|
|
1115
1082
|
});
|
|
1116
1083
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
if (data.recommendations != null) {
|
|
1124
|
-
contents.Recommendations = de___listOfRecommendation(data.recommendations, context);
|
|
1125
|
-
}
|
|
1084
|
+
const doc = take(data, {
|
|
1085
|
+
LastAuditTimestamp: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `lastAuditTimestamp`],
|
|
1086
|
+
NextToken: [, __expectString, `nextToken`],
|
|
1087
|
+
Recommendations: [, (_) => de___listOfRecommendation(_, context), `recommendations`],
|
|
1088
|
+
});
|
|
1089
|
+
Object.assign(contents, doc);
|
|
1126
1090
|
return contents;
|
|
1127
1091
|
};
|
|
1128
1092
|
const de_GetArchitectureRecommendationsCommandError = async (output, context) => {
|
|
@@ -1149,10 +1113,9 @@ const de_GetArchitectureRecommendationsCommandError = async (output, context) =>
|
|
|
1149
1113
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1150
1114
|
default:
|
|
1151
1115
|
const parsedBody = parsedOutput.body;
|
|
1152
|
-
throwDefaultError({
|
|
1116
|
+
return throwDefaultError({
|
|
1153
1117
|
output,
|
|
1154
1118
|
parsedBody,
|
|
1155
|
-
exceptionCtor: __BaseException,
|
|
1156
1119
|
errorCode,
|
|
1157
1120
|
});
|
|
1158
1121
|
}
|
|
@@ -1165,21 +1128,14 @@ export const de_GetCellCommand = async (output, context) => {
|
|
|
1165
1128
|
$metadata: deserializeMetadata(output),
|
|
1166
1129
|
});
|
|
1167
1130
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
}
|
|
1177
|
-
if (data.parentReadinessScopes != null) {
|
|
1178
|
-
contents.ParentReadinessScopes = de___listOf__string(data.parentReadinessScopes, context);
|
|
1179
|
-
}
|
|
1180
|
-
if (data.tags != null) {
|
|
1181
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1182
|
-
}
|
|
1131
|
+
const doc = take(data, {
|
|
1132
|
+
CellArn: [, __expectString, `cellArn`],
|
|
1133
|
+
CellName: [, __expectString, `cellName`],
|
|
1134
|
+
Cells: [, _json, `cells`],
|
|
1135
|
+
ParentReadinessScopes: [, _json, `parentReadinessScopes`],
|
|
1136
|
+
Tags: [, _json, `tags`],
|
|
1137
|
+
});
|
|
1138
|
+
Object.assign(contents, doc);
|
|
1183
1139
|
return contents;
|
|
1184
1140
|
};
|
|
1185
1141
|
const de_GetCellCommandError = async (output, context) => {
|
|
@@ -1206,10 +1162,9 @@ const de_GetCellCommandError = async (output, context) => {
|
|
|
1206
1162
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1207
1163
|
default:
|
|
1208
1164
|
const parsedBody = parsedOutput.body;
|
|
1209
|
-
throwDefaultError({
|
|
1165
|
+
return throwDefaultError({
|
|
1210
1166
|
output,
|
|
1211
1167
|
parsedBody,
|
|
1212
|
-
exceptionCtor: __BaseException,
|
|
1213
1168
|
errorCode,
|
|
1214
1169
|
});
|
|
1215
1170
|
}
|
|
@@ -1222,15 +1177,12 @@ export const de_GetCellReadinessSummaryCommand = async (output, context) => {
|
|
|
1222
1177
|
$metadata: deserializeMetadata(output),
|
|
1223
1178
|
});
|
|
1224
1179
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
if (data.readinessChecks != null) {
|
|
1232
|
-
contents.ReadinessChecks = de___listOfReadinessCheckSummary(data.readinessChecks, context);
|
|
1233
|
-
}
|
|
1180
|
+
const doc = take(data, {
|
|
1181
|
+
NextToken: [, __expectString, `nextToken`],
|
|
1182
|
+
Readiness: [, __expectString, `readiness`],
|
|
1183
|
+
ReadinessChecks: [, (_) => de___listOfReadinessCheckSummary(_, context), `readinessChecks`],
|
|
1184
|
+
});
|
|
1185
|
+
Object.assign(contents, doc);
|
|
1234
1186
|
return contents;
|
|
1235
1187
|
};
|
|
1236
1188
|
const de_GetCellReadinessSummaryCommandError = async (output, context) => {
|
|
@@ -1257,10 +1209,9 @@ const de_GetCellReadinessSummaryCommandError = async (output, context) => {
|
|
|
1257
1209
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1258
1210
|
default:
|
|
1259
1211
|
const parsedBody = parsedOutput.body;
|
|
1260
|
-
throwDefaultError({
|
|
1212
|
+
return throwDefaultError({
|
|
1261
1213
|
output,
|
|
1262
1214
|
parsedBody,
|
|
1263
|
-
exceptionCtor: __BaseException,
|
|
1264
1215
|
errorCode,
|
|
1265
1216
|
});
|
|
1266
1217
|
}
|
|
@@ -1273,18 +1224,13 @@ export const de_GetReadinessCheckCommand = async (output, context) => {
|
|
|
1273
1224
|
$metadata: deserializeMetadata(output),
|
|
1274
1225
|
});
|
|
1275
1226
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
contents.ResourceSet = __expectString(data.resourceSet);
|
|
1284
|
-
}
|
|
1285
|
-
if (data.tags != null) {
|
|
1286
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1287
|
-
}
|
|
1227
|
+
const doc = take(data, {
|
|
1228
|
+
ReadinessCheckArn: [, __expectString, `readinessCheckArn`],
|
|
1229
|
+
ReadinessCheckName: [, __expectString, `readinessCheckName`],
|
|
1230
|
+
ResourceSet: [, __expectString, `resourceSet`],
|
|
1231
|
+
Tags: [, _json, `tags`],
|
|
1232
|
+
});
|
|
1233
|
+
Object.assign(contents, doc);
|
|
1288
1234
|
return contents;
|
|
1289
1235
|
};
|
|
1290
1236
|
const de_GetReadinessCheckCommandError = async (output, context) => {
|
|
@@ -1311,10 +1257,9 @@ const de_GetReadinessCheckCommandError = async (output, context) => {
|
|
|
1311
1257
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1312
1258
|
default:
|
|
1313
1259
|
const parsedBody = parsedOutput.body;
|
|
1314
|
-
throwDefaultError({
|
|
1260
|
+
return throwDefaultError({
|
|
1315
1261
|
output,
|
|
1316
1262
|
parsedBody,
|
|
1317
|
-
exceptionCtor: __BaseException,
|
|
1318
1263
|
errorCode,
|
|
1319
1264
|
});
|
|
1320
1265
|
}
|
|
@@ -1327,15 +1272,12 @@ export const de_GetReadinessCheckResourceStatusCommand = async (output, context)
|
|
|
1327
1272
|
$metadata: deserializeMetadata(output),
|
|
1328
1273
|
});
|
|
1329
1274
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
if (data.rules != null) {
|
|
1337
|
-
contents.Rules = de___listOfRuleResult(data.rules, context);
|
|
1338
|
-
}
|
|
1275
|
+
const doc = take(data, {
|
|
1276
|
+
NextToken: [, __expectString, `nextToken`],
|
|
1277
|
+
Readiness: [, __expectString, `readiness`],
|
|
1278
|
+
Rules: [, (_) => de___listOfRuleResult(_, context), `rules`],
|
|
1279
|
+
});
|
|
1280
|
+
Object.assign(contents, doc);
|
|
1339
1281
|
return contents;
|
|
1340
1282
|
};
|
|
1341
1283
|
const de_GetReadinessCheckResourceStatusCommandError = async (output, context) => {
|
|
@@ -1362,10 +1304,9 @@ const de_GetReadinessCheckResourceStatusCommandError = async (output, context) =
|
|
|
1362
1304
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1363
1305
|
default:
|
|
1364
1306
|
const parsedBody = parsedOutput.body;
|
|
1365
|
-
throwDefaultError({
|
|
1307
|
+
return throwDefaultError({
|
|
1366
1308
|
output,
|
|
1367
1309
|
parsedBody,
|
|
1368
|
-
exceptionCtor: __BaseException,
|
|
1369
1310
|
errorCode,
|
|
1370
1311
|
});
|
|
1371
1312
|
}
|
|
@@ -1378,18 +1319,13 @@ export const de_GetReadinessCheckStatusCommand = async (output, context) => {
|
|
|
1378
1319
|
$metadata: deserializeMetadata(output),
|
|
1379
1320
|
});
|
|
1380
1321
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
contents.Readiness = __expectString(data.readiness);
|
|
1389
|
-
}
|
|
1390
|
-
if (data.resources != null) {
|
|
1391
|
-
contents.Resources = de___listOfResourceResult(data.resources, context);
|
|
1392
|
-
}
|
|
1322
|
+
const doc = take(data, {
|
|
1323
|
+
Messages: [, (_) => de___listOfMessage(_, context), `messages`],
|
|
1324
|
+
NextToken: [, __expectString, `nextToken`],
|
|
1325
|
+
Readiness: [, __expectString, `readiness`],
|
|
1326
|
+
Resources: [, (_) => de___listOfResourceResult(_, context), `resources`],
|
|
1327
|
+
});
|
|
1328
|
+
Object.assign(contents, doc);
|
|
1393
1329
|
return contents;
|
|
1394
1330
|
};
|
|
1395
1331
|
const de_GetReadinessCheckStatusCommandError = async (output, context) => {
|
|
@@ -1416,10 +1352,9 @@ const de_GetReadinessCheckStatusCommandError = async (output, context) => {
|
|
|
1416
1352
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1417
1353
|
default:
|
|
1418
1354
|
const parsedBody = parsedOutput.body;
|
|
1419
|
-
throwDefaultError({
|
|
1355
|
+
return throwDefaultError({
|
|
1420
1356
|
output,
|
|
1421
1357
|
parsedBody,
|
|
1422
|
-
exceptionCtor: __BaseException,
|
|
1423
1358
|
errorCode,
|
|
1424
1359
|
});
|
|
1425
1360
|
}
|
|
@@ -1432,18 +1367,13 @@ export const de_GetRecoveryGroupCommand = async (output, context) => {
|
|
|
1432
1367
|
$metadata: deserializeMetadata(output),
|
|
1433
1368
|
});
|
|
1434
1369
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
contents.RecoveryGroupName = __expectString(data.recoveryGroupName);
|
|
1443
|
-
}
|
|
1444
|
-
if (data.tags != null) {
|
|
1445
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1446
|
-
}
|
|
1370
|
+
const doc = take(data, {
|
|
1371
|
+
Cells: [, _json, `cells`],
|
|
1372
|
+
RecoveryGroupArn: [, __expectString, `recoveryGroupArn`],
|
|
1373
|
+
RecoveryGroupName: [, __expectString, `recoveryGroupName`],
|
|
1374
|
+
Tags: [, _json, `tags`],
|
|
1375
|
+
});
|
|
1376
|
+
Object.assign(contents, doc);
|
|
1447
1377
|
return contents;
|
|
1448
1378
|
};
|
|
1449
1379
|
const de_GetRecoveryGroupCommandError = async (output, context) => {
|
|
@@ -1470,10 +1400,9 @@ const de_GetRecoveryGroupCommandError = async (output, context) => {
|
|
|
1470
1400
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1471
1401
|
default:
|
|
1472
1402
|
const parsedBody = parsedOutput.body;
|
|
1473
|
-
throwDefaultError({
|
|
1403
|
+
return throwDefaultError({
|
|
1474
1404
|
output,
|
|
1475
1405
|
parsedBody,
|
|
1476
|
-
exceptionCtor: __BaseException,
|
|
1477
1406
|
errorCode,
|
|
1478
1407
|
});
|
|
1479
1408
|
}
|
|
@@ -1486,15 +1415,12 @@ export const de_GetRecoveryGroupReadinessSummaryCommand = async (output, context
|
|
|
1486
1415
|
$metadata: deserializeMetadata(output),
|
|
1487
1416
|
});
|
|
1488
1417
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
if (data.readinessChecks != null) {
|
|
1496
|
-
contents.ReadinessChecks = de___listOfReadinessCheckSummary(data.readinessChecks, context);
|
|
1497
|
-
}
|
|
1418
|
+
const doc = take(data, {
|
|
1419
|
+
NextToken: [, __expectString, `nextToken`],
|
|
1420
|
+
Readiness: [, __expectString, `readiness`],
|
|
1421
|
+
ReadinessChecks: [, (_) => de___listOfReadinessCheckSummary(_, context), `readinessChecks`],
|
|
1422
|
+
});
|
|
1423
|
+
Object.assign(contents, doc);
|
|
1498
1424
|
return contents;
|
|
1499
1425
|
};
|
|
1500
1426
|
const de_GetRecoveryGroupReadinessSummaryCommandError = async (output, context) => {
|
|
@@ -1521,10 +1447,9 @@ const de_GetRecoveryGroupReadinessSummaryCommandError = async (output, context)
|
|
|
1521
1447
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1522
1448
|
default:
|
|
1523
1449
|
const parsedBody = parsedOutput.body;
|
|
1524
|
-
throwDefaultError({
|
|
1450
|
+
return throwDefaultError({
|
|
1525
1451
|
output,
|
|
1526
1452
|
parsedBody,
|
|
1527
|
-
exceptionCtor: __BaseException,
|
|
1528
1453
|
errorCode,
|
|
1529
1454
|
});
|
|
1530
1455
|
}
|
|
@@ -1537,21 +1462,14 @@ export const de_GetResourceSetCommand = async (output, context) => {
|
|
|
1537
1462
|
$metadata: deserializeMetadata(output),
|
|
1538
1463
|
});
|
|
1539
1464
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
}
|
|
1549
|
-
if (data.resources != null) {
|
|
1550
|
-
contents.Resources = de___listOfResource(data.resources, context);
|
|
1551
|
-
}
|
|
1552
|
-
if (data.tags != null) {
|
|
1553
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1554
|
-
}
|
|
1465
|
+
const doc = take(data, {
|
|
1466
|
+
ResourceSetArn: [, __expectString, `resourceSetArn`],
|
|
1467
|
+
ResourceSetName: [, __expectString, `resourceSetName`],
|
|
1468
|
+
ResourceSetType: [, __expectString, `resourceSetType`],
|
|
1469
|
+
Resources: [, (_) => de___listOfResource(_, context), `resources`],
|
|
1470
|
+
Tags: [, _json, `tags`],
|
|
1471
|
+
});
|
|
1472
|
+
Object.assign(contents, doc);
|
|
1555
1473
|
return contents;
|
|
1556
1474
|
};
|
|
1557
1475
|
const de_GetResourceSetCommandError = async (output, context) => {
|
|
@@ -1578,10 +1496,9 @@ const de_GetResourceSetCommandError = async (output, context) => {
|
|
|
1578
1496
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1579
1497
|
default:
|
|
1580
1498
|
const parsedBody = parsedOutput.body;
|
|
1581
|
-
throwDefaultError({
|
|
1499
|
+
return throwDefaultError({
|
|
1582
1500
|
output,
|
|
1583
1501
|
parsedBody,
|
|
1584
|
-
exceptionCtor: __BaseException,
|
|
1585
1502
|
errorCode,
|
|
1586
1503
|
});
|
|
1587
1504
|
}
|
|
@@ -1594,12 +1511,11 @@ export const de_ListCellsCommand = async (output, context) => {
|
|
|
1594
1511
|
$metadata: deserializeMetadata(output),
|
|
1595
1512
|
});
|
|
1596
1513
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
}
|
|
1514
|
+
const doc = take(data, {
|
|
1515
|
+
Cells: [, (_) => de___listOfCellOutput(_, context), `cells`],
|
|
1516
|
+
NextToken: [, __expectString, `nextToken`],
|
|
1517
|
+
});
|
|
1518
|
+
Object.assign(contents, doc);
|
|
1603
1519
|
return contents;
|
|
1604
1520
|
};
|
|
1605
1521
|
const de_ListCellsCommandError = async (output, context) => {
|
|
@@ -1623,10 +1539,9 @@ const de_ListCellsCommandError = async (output, context) => {
|
|
|
1623
1539
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1624
1540
|
default:
|
|
1625
1541
|
const parsedBody = parsedOutput.body;
|
|
1626
|
-
throwDefaultError({
|
|
1542
|
+
return throwDefaultError({
|
|
1627
1543
|
output,
|
|
1628
1544
|
parsedBody,
|
|
1629
|
-
exceptionCtor: __BaseException,
|
|
1630
1545
|
errorCode,
|
|
1631
1546
|
});
|
|
1632
1547
|
}
|
|
@@ -1639,12 +1554,11 @@ export const de_ListCrossAccountAuthorizationsCommand = async (output, context)
|
|
|
1639
1554
|
$metadata: deserializeMetadata(output),
|
|
1640
1555
|
});
|
|
1641
1556
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
}
|
|
1557
|
+
const doc = take(data, {
|
|
1558
|
+
CrossAccountAuthorizations: [, _json, `crossAccountAuthorizations`],
|
|
1559
|
+
NextToken: [, __expectString, `nextToken`],
|
|
1560
|
+
});
|
|
1561
|
+
Object.assign(contents, doc);
|
|
1648
1562
|
return contents;
|
|
1649
1563
|
};
|
|
1650
1564
|
const de_ListCrossAccountAuthorizationsCommandError = async (output, context) => {
|
|
@@ -1668,10 +1582,9 @@ const de_ListCrossAccountAuthorizationsCommandError = async (output, context) =>
|
|
|
1668
1582
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1669
1583
|
default:
|
|
1670
1584
|
const parsedBody = parsedOutput.body;
|
|
1671
|
-
throwDefaultError({
|
|
1585
|
+
return throwDefaultError({
|
|
1672
1586
|
output,
|
|
1673
1587
|
parsedBody,
|
|
1674
|
-
exceptionCtor: __BaseException,
|
|
1675
1588
|
errorCode,
|
|
1676
1589
|
});
|
|
1677
1590
|
}
|
|
@@ -1684,12 +1597,11 @@ export const de_ListReadinessChecksCommand = async (output, context) => {
|
|
|
1684
1597
|
$metadata: deserializeMetadata(output),
|
|
1685
1598
|
});
|
|
1686
1599
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
}
|
|
1600
|
+
const doc = take(data, {
|
|
1601
|
+
NextToken: [, __expectString, `nextToken`],
|
|
1602
|
+
ReadinessChecks: [, (_) => de___listOfReadinessCheckOutput(_, context), `readinessChecks`],
|
|
1603
|
+
});
|
|
1604
|
+
Object.assign(contents, doc);
|
|
1693
1605
|
return contents;
|
|
1694
1606
|
};
|
|
1695
1607
|
const de_ListReadinessChecksCommandError = async (output, context) => {
|
|
@@ -1713,10 +1625,9 @@ const de_ListReadinessChecksCommandError = async (output, context) => {
|
|
|
1713
1625
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1714
1626
|
default:
|
|
1715
1627
|
const parsedBody = parsedOutput.body;
|
|
1716
|
-
throwDefaultError({
|
|
1628
|
+
return throwDefaultError({
|
|
1717
1629
|
output,
|
|
1718
1630
|
parsedBody,
|
|
1719
|
-
exceptionCtor: __BaseException,
|
|
1720
1631
|
errorCode,
|
|
1721
1632
|
});
|
|
1722
1633
|
}
|
|
@@ -1729,12 +1640,11 @@ export const de_ListRecoveryGroupsCommand = async (output, context) => {
|
|
|
1729
1640
|
$metadata: deserializeMetadata(output),
|
|
1730
1641
|
});
|
|
1731
1642
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
}
|
|
1643
|
+
const doc = take(data, {
|
|
1644
|
+
NextToken: [, __expectString, `nextToken`],
|
|
1645
|
+
RecoveryGroups: [, (_) => de___listOfRecoveryGroupOutput(_, context), `recoveryGroups`],
|
|
1646
|
+
});
|
|
1647
|
+
Object.assign(contents, doc);
|
|
1738
1648
|
return contents;
|
|
1739
1649
|
};
|
|
1740
1650
|
const de_ListRecoveryGroupsCommandError = async (output, context) => {
|
|
@@ -1758,10 +1668,9 @@ const de_ListRecoveryGroupsCommandError = async (output, context) => {
|
|
|
1758
1668
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1759
1669
|
default:
|
|
1760
1670
|
const parsedBody = parsedOutput.body;
|
|
1761
|
-
throwDefaultError({
|
|
1671
|
+
return throwDefaultError({
|
|
1762
1672
|
output,
|
|
1763
1673
|
parsedBody,
|
|
1764
|
-
exceptionCtor: __BaseException,
|
|
1765
1674
|
errorCode,
|
|
1766
1675
|
});
|
|
1767
1676
|
}
|
|
@@ -1774,12 +1683,11 @@ export const de_ListResourceSetsCommand = async (output, context) => {
|
|
|
1774
1683
|
$metadata: deserializeMetadata(output),
|
|
1775
1684
|
});
|
|
1776
1685
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
}
|
|
1686
|
+
const doc = take(data, {
|
|
1687
|
+
NextToken: [, __expectString, `nextToken`],
|
|
1688
|
+
ResourceSets: [, (_) => de___listOfResourceSetOutput(_, context), `resourceSets`],
|
|
1689
|
+
});
|
|
1690
|
+
Object.assign(contents, doc);
|
|
1783
1691
|
return contents;
|
|
1784
1692
|
};
|
|
1785
1693
|
const de_ListResourceSetsCommandError = async (output, context) => {
|
|
@@ -1803,10 +1711,9 @@ const de_ListResourceSetsCommandError = async (output, context) => {
|
|
|
1803
1711
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1804
1712
|
default:
|
|
1805
1713
|
const parsedBody = parsedOutput.body;
|
|
1806
|
-
throwDefaultError({
|
|
1714
|
+
return throwDefaultError({
|
|
1807
1715
|
output,
|
|
1808
1716
|
parsedBody,
|
|
1809
|
-
exceptionCtor: __BaseException,
|
|
1810
1717
|
errorCode,
|
|
1811
1718
|
});
|
|
1812
1719
|
}
|
|
@@ -1819,12 +1726,11 @@ export const de_ListRulesCommand = async (output, context) => {
|
|
|
1819
1726
|
$metadata: deserializeMetadata(output),
|
|
1820
1727
|
});
|
|
1821
1728
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
}
|
|
1729
|
+
const doc = take(data, {
|
|
1730
|
+
NextToken: [, __expectString, `nextToken`],
|
|
1731
|
+
Rules: [, (_) => de___listOfListRulesOutput(_, context), `rules`],
|
|
1732
|
+
});
|
|
1733
|
+
Object.assign(contents, doc);
|
|
1828
1734
|
return contents;
|
|
1829
1735
|
};
|
|
1830
1736
|
const de_ListRulesCommandError = async (output, context) => {
|
|
@@ -1848,10 +1754,9 @@ const de_ListRulesCommandError = async (output, context) => {
|
|
|
1848
1754
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1849
1755
|
default:
|
|
1850
1756
|
const parsedBody = parsedOutput.body;
|
|
1851
|
-
throwDefaultError({
|
|
1757
|
+
return throwDefaultError({
|
|
1852
1758
|
output,
|
|
1853
1759
|
parsedBody,
|
|
1854
|
-
exceptionCtor: __BaseException,
|
|
1855
1760
|
errorCode,
|
|
1856
1761
|
});
|
|
1857
1762
|
}
|
|
@@ -1864,9 +1769,10 @@ export const de_ListTagsForResourcesCommand = async (output, context) => {
|
|
|
1864
1769
|
$metadata: deserializeMetadata(output),
|
|
1865
1770
|
});
|
|
1866
1771
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
}
|
|
1772
|
+
const doc = take(data, {
|
|
1773
|
+
Tags: [, _json, `tags`],
|
|
1774
|
+
});
|
|
1775
|
+
Object.assign(contents, doc);
|
|
1870
1776
|
return contents;
|
|
1871
1777
|
};
|
|
1872
1778
|
const de_ListTagsForResourcesCommandError = async (output, context) => {
|
|
@@ -1887,10 +1793,9 @@ const de_ListTagsForResourcesCommandError = async (output, context) => {
|
|
|
1887
1793
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1888
1794
|
default:
|
|
1889
1795
|
const parsedBody = parsedOutput.body;
|
|
1890
|
-
throwDefaultError({
|
|
1796
|
+
return throwDefaultError({
|
|
1891
1797
|
output,
|
|
1892
1798
|
parsedBody,
|
|
1893
|
-
exceptionCtor: __BaseException,
|
|
1894
1799
|
errorCode,
|
|
1895
1800
|
});
|
|
1896
1801
|
}
|
|
@@ -1923,10 +1828,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1923
1828
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1924
1829
|
default:
|
|
1925
1830
|
const parsedBody = parsedOutput.body;
|
|
1926
|
-
throwDefaultError({
|
|
1831
|
+
return throwDefaultError({
|
|
1927
1832
|
output,
|
|
1928
1833
|
parsedBody,
|
|
1929
|
-
exceptionCtor: __BaseException,
|
|
1930
1834
|
errorCode,
|
|
1931
1835
|
});
|
|
1932
1836
|
}
|
|
@@ -1959,10 +1863,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1959
1863
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1960
1864
|
default:
|
|
1961
1865
|
const parsedBody = parsedOutput.body;
|
|
1962
|
-
throwDefaultError({
|
|
1866
|
+
return throwDefaultError({
|
|
1963
1867
|
output,
|
|
1964
1868
|
parsedBody,
|
|
1965
|
-
exceptionCtor: __BaseException,
|
|
1966
1869
|
errorCode,
|
|
1967
1870
|
});
|
|
1968
1871
|
}
|
|
@@ -1975,21 +1878,14 @@ export const de_UpdateCellCommand = async (output, context) => {
|
|
|
1975
1878
|
$metadata: deserializeMetadata(output),
|
|
1976
1879
|
});
|
|
1977
1880
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
}
|
|
1987
|
-
if (data.parentReadinessScopes != null) {
|
|
1988
|
-
contents.ParentReadinessScopes = de___listOf__string(data.parentReadinessScopes, context);
|
|
1989
|
-
}
|
|
1990
|
-
if (data.tags != null) {
|
|
1991
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1992
|
-
}
|
|
1881
|
+
const doc = take(data, {
|
|
1882
|
+
CellArn: [, __expectString, `cellArn`],
|
|
1883
|
+
CellName: [, __expectString, `cellName`],
|
|
1884
|
+
Cells: [, _json, `cells`],
|
|
1885
|
+
ParentReadinessScopes: [, _json, `parentReadinessScopes`],
|
|
1886
|
+
Tags: [, _json, `tags`],
|
|
1887
|
+
});
|
|
1888
|
+
Object.assign(contents, doc);
|
|
1993
1889
|
return contents;
|
|
1994
1890
|
};
|
|
1995
1891
|
const de_UpdateCellCommandError = async (output, context) => {
|
|
@@ -2016,10 +1912,9 @@ const de_UpdateCellCommandError = async (output, context) => {
|
|
|
2016
1912
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2017
1913
|
default:
|
|
2018
1914
|
const parsedBody = parsedOutput.body;
|
|
2019
|
-
throwDefaultError({
|
|
1915
|
+
return throwDefaultError({
|
|
2020
1916
|
output,
|
|
2021
1917
|
parsedBody,
|
|
2022
|
-
exceptionCtor: __BaseException,
|
|
2023
1918
|
errorCode,
|
|
2024
1919
|
});
|
|
2025
1920
|
}
|
|
@@ -2032,18 +1927,13 @@ export const de_UpdateReadinessCheckCommand = async (output, context) => {
|
|
|
2032
1927
|
$metadata: deserializeMetadata(output),
|
|
2033
1928
|
});
|
|
2034
1929
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
}
|
|
2041
|
-
|
|
2042
|
-
contents.ResourceSet = __expectString(data.resourceSet);
|
|
2043
|
-
}
|
|
2044
|
-
if (data.tags != null) {
|
|
2045
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
2046
|
-
}
|
|
1930
|
+
const doc = take(data, {
|
|
1931
|
+
ReadinessCheckArn: [, __expectString, `readinessCheckArn`],
|
|
1932
|
+
ReadinessCheckName: [, __expectString, `readinessCheckName`],
|
|
1933
|
+
ResourceSet: [, __expectString, `resourceSet`],
|
|
1934
|
+
Tags: [, _json, `tags`],
|
|
1935
|
+
});
|
|
1936
|
+
Object.assign(contents, doc);
|
|
2047
1937
|
return contents;
|
|
2048
1938
|
};
|
|
2049
1939
|
const de_UpdateReadinessCheckCommandError = async (output, context) => {
|
|
@@ -2070,10 +1960,9 @@ const de_UpdateReadinessCheckCommandError = async (output, context) => {
|
|
|
2070
1960
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2071
1961
|
default:
|
|
2072
1962
|
const parsedBody = parsedOutput.body;
|
|
2073
|
-
throwDefaultError({
|
|
1963
|
+
return throwDefaultError({
|
|
2074
1964
|
output,
|
|
2075
1965
|
parsedBody,
|
|
2076
|
-
exceptionCtor: __BaseException,
|
|
2077
1966
|
errorCode,
|
|
2078
1967
|
});
|
|
2079
1968
|
}
|
|
@@ -2086,18 +1975,13 @@ export const de_UpdateRecoveryGroupCommand = async (output, context) => {
|
|
|
2086
1975
|
$metadata: deserializeMetadata(output),
|
|
2087
1976
|
});
|
|
2088
1977
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
}
|
|
2095
|
-
|
|
2096
|
-
contents.RecoveryGroupName = __expectString(data.recoveryGroupName);
|
|
2097
|
-
}
|
|
2098
|
-
if (data.tags != null) {
|
|
2099
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
2100
|
-
}
|
|
1978
|
+
const doc = take(data, {
|
|
1979
|
+
Cells: [, _json, `cells`],
|
|
1980
|
+
RecoveryGroupArn: [, __expectString, `recoveryGroupArn`],
|
|
1981
|
+
RecoveryGroupName: [, __expectString, `recoveryGroupName`],
|
|
1982
|
+
Tags: [, _json, `tags`],
|
|
1983
|
+
});
|
|
1984
|
+
Object.assign(contents, doc);
|
|
2101
1985
|
return contents;
|
|
2102
1986
|
};
|
|
2103
1987
|
const de_UpdateRecoveryGroupCommandError = async (output, context) => {
|
|
@@ -2124,10 +2008,9 @@ const de_UpdateRecoveryGroupCommandError = async (output, context) => {
|
|
|
2124
2008
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2125
2009
|
default:
|
|
2126
2010
|
const parsedBody = parsedOutput.body;
|
|
2127
|
-
throwDefaultError({
|
|
2011
|
+
return throwDefaultError({
|
|
2128
2012
|
output,
|
|
2129
2013
|
parsedBody,
|
|
2130
|
-
exceptionCtor: __BaseException,
|
|
2131
2014
|
errorCode,
|
|
2132
2015
|
});
|
|
2133
2016
|
}
|
|
@@ -2140,21 +2023,14 @@ export const de_UpdateResourceSetCommand = async (output, context) => {
|
|
|
2140
2023
|
$metadata: deserializeMetadata(output),
|
|
2141
2024
|
});
|
|
2142
2025
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
}
|
|
2152
|
-
if (data.resources != null) {
|
|
2153
|
-
contents.Resources = de___listOfResource(data.resources, context);
|
|
2154
|
-
}
|
|
2155
|
-
if (data.tags != null) {
|
|
2156
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
2157
|
-
}
|
|
2026
|
+
const doc = take(data, {
|
|
2027
|
+
ResourceSetArn: [, __expectString, `resourceSetArn`],
|
|
2028
|
+
ResourceSetName: [, __expectString, `resourceSetName`],
|
|
2029
|
+
ResourceSetType: [, __expectString, `resourceSetType`],
|
|
2030
|
+
Resources: [, (_) => de___listOfResource(_, context), `resources`],
|
|
2031
|
+
Tags: [, _json, `tags`],
|
|
2032
|
+
});
|
|
2033
|
+
Object.assign(contents, doc);
|
|
2158
2034
|
return contents;
|
|
2159
2035
|
};
|
|
2160
2036
|
const de_UpdateResourceSetCommandError = async (output, context) => {
|
|
@@ -2181,21 +2057,21 @@ const de_UpdateResourceSetCommandError = async (output, context) => {
|
|
|
2181
2057
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2182
2058
|
default:
|
|
2183
2059
|
const parsedBody = parsedOutput.body;
|
|
2184
|
-
throwDefaultError({
|
|
2060
|
+
return throwDefaultError({
|
|
2185
2061
|
output,
|
|
2186
2062
|
parsedBody,
|
|
2187
|
-
exceptionCtor: __BaseException,
|
|
2188
2063
|
errorCode,
|
|
2189
2064
|
});
|
|
2190
2065
|
}
|
|
2191
2066
|
};
|
|
2192
|
-
const
|
|
2067
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2193
2068
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2194
2069
|
const contents = map({});
|
|
2195
2070
|
const data = parsedOutput.body;
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
}
|
|
2071
|
+
const doc = take(data, {
|
|
2072
|
+
Message: [, __expectString, `message`],
|
|
2073
|
+
});
|
|
2074
|
+
Object.assign(contents, doc);
|
|
2199
2075
|
const exception = new AccessDeniedException({
|
|
2200
2076
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2201
2077
|
...contents,
|
|
@@ -2205,9 +2081,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2205
2081
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2206
2082
|
const contents = map({});
|
|
2207
2083
|
const data = parsedOutput.body;
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
}
|
|
2084
|
+
const doc = take(data, {
|
|
2085
|
+
Message: [, __expectString, `message`],
|
|
2086
|
+
});
|
|
2087
|
+
Object.assign(contents, doc);
|
|
2211
2088
|
const exception = new ConflictException({
|
|
2212
2089
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2213
2090
|
...contents,
|
|
@@ -2217,9 +2094,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2217
2094
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2218
2095
|
const contents = map({});
|
|
2219
2096
|
const data = parsedOutput.body;
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
}
|
|
2097
|
+
const doc = take(data, {
|
|
2098
|
+
Message: [, __expectString, `message`],
|
|
2099
|
+
});
|
|
2100
|
+
Object.assign(contents, doc);
|
|
2223
2101
|
const exception = new InternalServerException({
|
|
2224
2102
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2225
2103
|
...contents,
|
|
@@ -2229,9 +2107,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2229
2107
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2230
2108
|
const contents = map({});
|
|
2231
2109
|
const data = parsedOutput.body;
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
}
|
|
2110
|
+
const doc = take(data, {
|
|
2111
|
+
Message: [, __expectString, `message`],
|
|
2112
|
+
});
|
|
2113
|
+
Object.assign(contents, doc);
|
|
2235
2114
|
const exception = new ResourceNotFoundException({
|
|
2236
2115
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2237
2116
|
...contents,
|
|
@@ -2241,9 +2120,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2241
2120
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2242
2121
|
const contents = map({});
|
|
2243
2122
|
const data = parsedOutput.body;
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
}
|
|
2123
|
+
const doc = take(data, {
|
|
2124
|
+
Message: [, __expectString, `message`],
|
|
2125
|
+
});
|
|
2126
|
+
Object.assign(contents, doc);
|
|
2247
2127
|
const exception = new ThrottlingException({
|
|
2248
2128
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2249
2129
|
...contents,
|
|
@@ -2253,22 +2133,16 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2253
2133
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2254
2134
|
const contents = map({});
|
|
2255
2135
|
const data = parsedOutput.body;
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
}
|
|
2136
|
+
const doc = take(data, {
|
|
2137
|
+
Message: [, __expectString, `message`],
|
|
2138
|
+
});
|
|
2139
|
+
Object.assign(contents, doc);
|
|
2259
2140
|
const exception = new ValidationException({
|
|
2260
2141
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2261
2142
|
...contents,
|
|
2262
2143
|
});
|
|
2263
2144
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2264
2145
|
};
|
|
2265
|
-
const se___listOf__string = (input, context) => {
|
|
2266
|
-
return input
|
|
2267
|
-
.filter((e) => e != null)
|
|
2268
|
-
.map((entry) => {
|
|
2269
|
-
return entry;
|
|
2270
|
-
});
|
|
2271
|
-
};
|
|
2272
2146
|
const se___listOfResource = (input, context) => {
|
|
2273
2147
|
return input
|
|
2274
2148
|
.filter((e) => e != null)
|
|
@@ -2277,90 +2151,51 @@ const se___listOfResource = (input, context) => {
|
|
|
2277
2151
|
});
|
|
2278
2152
|
};
|
|
2279
2153
|
const se_DNSTargetResource = (input, context) => {
|
|
2280
|
-
return {
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
};
|
|
2154
|
+
return take(input, {
|
|
2155
|
+
domainName: [, , `DomainName`],
|
|
2156
|
+
hostedZoneArn: [, , `HostedZoneArn`],
|
|
2157
|
+
recordSetId: [, , `RecordSetId`],
|
|
2158
|
+
recordType: [, , `RecordType`],
|
|
2159
|
+
targetResource: [, (_) => se_TargetResource(_, context), `TargetResource`],
|
|
2160
|
+
});
|
|
2287
2161
|
};
|
|
2288
2162
|
const se_NLBResource = (input, context) => {
|
|
2289
|
-
return {
|
|
2290
|
-
|
|
2291
|
-
};
|
|
2163
|
+
return take(input, {
|
|
2164
|
+
arn: [, , `Arn`],
|
|
2165
|
+
});
|
|
2292
2166
|
};
|
|
2293
2167
|
const se_R53ResourceRecord = (input, context) => {
|
|
2294
|
-
return {
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
};
|
|
2168
|
+
return take(input, {
|
|
2169
|
+
domainName: [, , `DomainName`],
|
|
2170
|
+
recordSetId: [, , `RecordSetId`],
|
|
2171
|
+
});
|
|
2298
2172
|
};
|
|
2299
2173
|
const se_Resource = (input, context) => {
|
|
2300
|
-
return {
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
...(input.ResourceArn != null && { resourceArn: input.ResourceArn }),
|
|
2307
|
-
};
|
|
2308
|
-
};
|
|
2309
|
-
const se_Tags = (input, context) => {
|
|
2310
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2311
|
-
if (value === null) {
|
|
2312
|
-
return acc;
|
|
2313
|
-
}
|
|
2314
|
-
acc[key] = value;
|
|
2315
|
-
return acc;
|
|
2316
|
-
}, {});
|
|
2174
|
+
return take(input, {
|
|
2175
|
+
componentId: [, , `ComponentId`],
|
|
2176
|
+
dnsTargetResource: [, (_) => se_DNSTargetResource(_, context), `DnsTargetResource`],
|
|
2177
|
+
readinessScopes: [, _json, `ReadinessScopes`],
|
|
2178
|
+
resourceArn: [, , `ResourceArn`],
|
|
2179
|
+
});
|
|
2317
2180
|
};
|
|
2318
2181
|
const se_TargetResource = (input, context) => {
|
|
2319
|
-
return {
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
};
|
|
2323
|
-
};
|
|
2324
|
-
const de___listOf__string = (output, context) => {
|
|
2325
|
-
const retVal = (output || [])
|
|
2326
|
-
.filter((e) => e != null)
|
|
2327
|
-
.map((entry) => {
|
|
2328
|
-
if (entry === null) {
|
|
2329
|
-
return null;
|
|
2330
|
-
}
|
|
2331
|
-
return __expectString(entry);
|
|
2182
|
+
return take(input, {
|
|
2183
|
+
nLBResource: [, (_) => se_NLBResource(_, context), `NLBResource`],
|
|
2184
|
+
r53Resource: [, (_) => se_R53ResourceRecord(_, context), `R53Resource`],
|
|
2332
2185
|
});
|
|
2333
|
-
return retVal;
|
|
2334
2186
|
};
|
|
2335
2187
|
const de___listOfCellOutput = (output, context) => {
|
|
2336
2188
|
const retVal = (output || [])
|
|
2337
2189
|
.filter((e) => e != null)
|
|
2338
2190
|
.map((entry) => {
|
|
2339
|
-
if (entry === null) {
|
|
2340
|
-
return null;
|
|
2341
|
-
}
|
|
2342
2191
|
return de_CellOutput(entry, context);
|
|
2343
2192
|
});
|
|
2344
2193
|
return retVal;
|
|
2345
2194
|
};
|
|
2346
|
-
const de___listOfCrossAccountAuthorization = (output, context) => {
|
|
2347
|
-
const retVal = (output || [])
|
|
2348
|
-
.filter((e) => e != null)
|
|
2349
|
-
.map((entry) => {
|
|
2350
|
-
if (entry === null) {
|
|
2351
|
-
return null;
|
|
2352
|
-
}
|
|
2353
|
-
return __expectString(entry);
|
|
2354
|
-
});
|
|
2355
|
-
return retVal;
|
|
2356
|
-
};
|
|
2357
2195
|
const de___listOfListRulesOutput = (output, context) => {
|
|
2358
2196
|
const retVal = (output || [])
|
|
2359
2197
|
.filter((e) => e != null)
|
|
2360
2198
|
.map((entry) => {
|
|
2361
|
-
if (entry === null) {
|
|
2362
|
-
return null;
|
|
2363
|
-
}
|
|
2364
2199
|
return de_ListRulesOutput(entry, context);
|
|
2365
2200
|
});
|
|
2366
2201
|
return retVal;
|
|
@@ -2369,9 +2204,6 @@ const de___listOfMessage = (output, context) => {
|
|
|
2369
2204
|
const retVal = (output || [])
|
|
2370
2205
|
.filter((e) => e != null)
|
|
2371
2206
|
.map((entry) => {
|
|
2372
|
-
if (entry === null) {
|
|
2373
|
-
return null;
|
|
2374
|
-
}
|
|
2375
2207
|
return de_Message(entry, context);
|
|
2376
2208
|
});
|
|
2377
2209
|
return retVal;
|
|
@@ -2380,9 +2212,6 @@ const de___listOfReadinessCheckOutput = (output, context) => {
|
|
|
2380
2212
|
const retVal = (output || [])
|
|
2381
2213
|
.filter((e) => e != null)
|
|
2382
2214
|
.map((entry) => {
|
|
2383
|
-
if (entry === null) {
|
|
2384
|
-
return null;
|
|
2385
|
-
}
|
|
2386
2215
|
return de_ReadinessCheckOutput(entry, context);
|
|
2387
2216
|
});
|
|
2388
2217
|
return retVal;
|
|
@@ -2391,9 +2220,6 @@ const de___listOfReadinessCheckSummary = (output, context) => {
|
|
|
2391
2220
|
const retVal = (output || [])
|
|
2392
2221
|
.filter((e) => e != null)
|
|
2393
2222
|
.map((entry) => {
|
|
2394
|
-
if (entry === null) {
|
|
2395
|
-
return null;
|
|
2396
|
-
}
|
|
2397
2223
|
return de_ReadinessCheckSummary(entry, context);
|
|
2398
2224
|
});
|
|
2399
2225
|
return retVal;
|
|
@@ -2402,9 +2228,6 @@ const de___listOfRecommendation = (output, context) => {
|
|
|
2402
2228
|
const retVal = (output || [])
|
|
2403
2229
|
.filter((e) => e != null)
|
|
2404
2230
|
.map((entry) => {
|
|
2405
|
-
if (entry === null) {
|
|
2406
|
-
return null;
|
|
2407
|
-
}
|
|
2408
2231
|
return de_Recommendation(entry, context);
|
|
2409
2232
|
});
|
|
2410
2233
|
return retVal;
|
|
@@ -2413,9 +2236,6 @@ const de___listOfRecoveryGroupOutput = (output, context) => {
|
|
|
2413
2236
|
const retVal = (output || [])
|
|
2414
2237
|
.filter((e) => e != null)
|
|
2415
2238
|
.map((entry) => {
|
|
2416
|
-
if (entry === null) {
|
|
2417
|
-
return null;
|
|
2418
|
-
}
|
|
2419
2239
|
return de_RecoveryGroupOutput(entry, context);
|
|
2420
2240
|
});
|
|
2421
2241
|
return retVal;
|
|
@@ -2424,9 +2244,6 @@ const de___listOfResource = (output, context) => {
|
|
|
2424
2244
|
const retVal = (output || [])
|
|
2425
2245
|
.filter((e) => e != null)
|
|
2426
2246
|
.map((entry) => {
|
|
2427
|
-
if (entry === null) {
|
|
2428
|
-
return null;
|
|
2429
|
-
}
|
|
2430
2247
|
return de_Resource(entry, context);
|
|
2431
2248
|
});
|
|
2432
2249
|
return retVal;
|
|
@@ -2435,9 +2252,6 @@ const de___listOfResourceResult = (output, context) => {
|
|
|
2435
2252
|
const retVal = (output || [])
|
|
2436
2253
|
.filter((e) => e != null)
|
|
2437
2254
|
.map((entry) => {
|
|
2438
|
-
if (entry === null) {
|
|
2439
|
-
return null;
|
|
2440
|
-
}
|
|
2441
2255
|
return de_ResourceResult(entry, context);
|
|
2442
2256
|
});
|
|
2443
2257
|
return retVal;
|
|
@@ -2446,9 +2260,6 @@ const de___listOfResourceSetOutput = (output, context) => {
|
|
|
2446
2260
|
const retVal = (output || [])
|
|
2447
2261
|
.filter((e) => e != null)
|
|
2448
2262
|
.map((entry) => {
|
|
2449
|
-
if (entry === null) {
|
|
2450
|
-
return null;
|
|
2451
|
-
}
|
|
2452
2263
|
return de_ResourceSetOutput(entry, context);
|
|
2453
2264
|
});
|
|
2454
2265
|
return retVal;
|
|
@@ -2457,132 +2268,116 @@ const de___listOfRuleResult = (output, context) => {
|
|
|
2457
2268
|
const retVal = (output || [])
|
|
2458
2269
|
.filter((e) => e != null)
|
|
2459
2270
|
.map((entry) => {
|
|
2460
|
-
if (entry === null) {
|
|
2461
|
-
return null;
|
|
2462
|
-
}
|
|
2463
2271
|
return de_RuleResult(entry, context);
|
|
2464
2272
|
});
|
|
2465
2273
|
return retVal;
|
|
2466
2274
|
};
|
|
2467
2275
|
const de_CellOutput = (output, context) => {
|
|
2468
|
-
return {
|
|
2469
|
-
CellArn: __expectString
|
|
2470
|
-
CellName: __expectString
|
|
2471
|
-
Cells:
|
|
2472
|
-
ParentReadinessScopes:
|
|
2473
|
-
Tags:
|
|
2474
|
-
};
|
|
2276
|
+
return take(output, {
|
|
2277
|
+
CellArn: [, __expectString, `cellArn`],
|
|
2278
|
+
CellName: [, __expectString, `cellName`],
|
|
2279
|
+
Cells: [, _json, `cells`],
|
|
2280
|
+
ParentReadinessScopes: [, _json, `parentReadinessScopes`],
|
|
2281
|
+
Tags: [, _json, `tags`],
|
|
2282
|
+
});
|
|
2475
2283
|
};
|
|
2476
2284
|
const de_DNSTargetResource = (output, context) => {
|
|
2477
|
-
return {
|
|
2478
|
-
DomainName: __expectString
|
|
2479
|
-
HostedZoneArn: __expectString
|
|
2480
|
-
RecordSetId: __expectString
|
|
2481
|
-
RecordType: __expectString
|
|
2482
|
-
TargetResource:
|
|
2483
|
-
};
|
|
2285
|
+
return take(output, {
|
|
2286
|
+
DomainName: [, __expectString, `domainName`],
|
|
2287
|
+
HostedZoneArn: [, __expectString, `hostedZoneArn`],
|
|
2288
|
+
RecordSetId: [, __expectString, `recordSetId`],
|
|
2289
|
+
RecordType: [, __expectString, `recordType`],
|
|
2290
|
+
TargetResource: (_) => [, de_TargetResource(_, context), `targetResource`],
|
|
2291
|
+
});
|
|
2484
2292
|
};
|
|
2485
2293
|
const de_ListRulesOutput = (output, context) => {
|
|
2486
|
-
return {
|
|
2487
|
-
ResourceType: __expectString
|
|
2488
|
-
RuleDescription: __expectString
|
|
2489
|
-
RuleId: __expectString
|
|
2490
|
-
};
|
|
2294
|
+
return take(output, {
|
|
2295
|
+
ResourceType: [, __expectString, `resourceType`],
|
|
2296
|
+
RuleDescription: [, __expectString, `ruleDescription`],
|
|
2297
|
+
RuleId: [, __expectString, `ruleId`],
|
|
2298
|
+
});
|
|
2491
2299
|
};
|
|
2492
2300
|
const de_Message = (output, context) => {
|
|
2493
|
-
return {
|
|
2494
|
-
MessageText: __expectString
|
|
2495
|
-
};
|
|
2301
|
+
return take(output, {
|
|
2302
|
+
MessageText: [, __expectString, `messageText`],
|
|
2303
|
+
});
|
|
2496
2304
|
};
|
|
2497
2305
|
const de_NLBResource = (output, context) => {
|
|
2498
|
-
return {
|
|
2499
|
-
Arn: __expectString
|
|
2500
|
-
};
|
|
2306
|
+
return take(output, {
|
|
2307
|
+
Arn: [, __expectString, `arn`],
|
|
2308
|
+
});
|
|
2501
2309
|
};
|
|
2502
2310
|
const de_R53ResourceRecord = (output, context) => {
|
|
2503
|
-
return {
|
|
2504
|
-
DomainName: __expectString
|
|
2505
|
-
RecordSetId: __expectString
|
|
2506
|
-
};
|
|
2311
|
+
return take(output, {
|
|
2312
|
+
DomainName: [, __expectString, `domainName`],
|
|
2313
|
+
RecordSetId: [, __expectString, `recordSetId`],
|
|
2314
|
+
});
|
|
2507
2315
|
};
|
|
2508
2316
|
const de_ReadinessCheckOutput = (output, context) => {
|
|
2509
|
-
return {
|
|
2510
|
-
ReadinessCheckArn: __expectString
|
|
2511
|
-
ReadinessCheckName: __expectString
|
|
2512
|
-
ResourceSet: __expectString
|
|
2513
|
-
Tags:
|
|
2514
|
-
};
|
|
2317
|
+
return take(output, {
|
|
2318
|
+
ReadinessCheckArn: [, __expectString, `readinessCheckArn`],
|
|
2319
|
+
ReadinessCheckName: [, __expectString, `readinessCheckName`],
|
|
2320
|
+
ResourceSet: [, __expectString, `resourceSet`],
|
|
2321
|
+
Tags: [, _json, `tags`],
|
|
2322
|
+
});
|
|
2515
2323
|
};
|
|
2516
2324
|
const de_ReadinessCheckSummary = (output, context) => {
|
|
2517
|
-
return {
|
|
2518
|
-
Readiness: __expectString
|
|
2519
|
-
ReadinessCheckName: __expectString
|
|
2520
|
-
};
|
|
2325
|
+
return take(output, {
|
|
2326
|
+
Readiness: [, __expectString, `readiness`],
|
|
2327
|
+
ReadinessCheckName: [, __expectString, `readinessCheckName`],
|
|
2328
|
+
});
|
|
2521
2329
|
};
|
|
2522
2330
|
const de_Recommendation = (output, context) => {
|
|
2523
|
-
return {
|
|
2524
|
-
RecommendationText: __expectString
|
|
2525
|
-
};
|
|
2331
|
+
return take(output, {
|
|
2332
|
+
RecommendationText: [, __expectString, `recommendationText`],
|
|
2333
|
+
});
|
|
2526
2334
|
};
|
|
2527
2335
|
const de_RecoveryGroupOutput = (output, context) => {
|
|
2528
|
-
return {
|
|
2529
|
-
Cells:
|
|
2530
|
-
RecoveryGroupArn: __expectString
|
|
2531
|
-
RecoveryGroupName: __expectString
|
|
2532
|
-
Tags:
|
|
2533
|
-
};
|
|
2336
|
+
return take(output, {
|
|
2337
|
+
Cells: [, _json, `cells`],
|
|
2338
|
+
RecoveryGroupArn: [, __expectString, `recoveryGroupArn`],
|
|
2339
|
+
RecoveryGroupName: [, __expectString, `recoveryGroupName`],
|
|
2340
|
+
Tags: [, _json, `tags`],
|
|
2341
|
+
});
|
|
2534
2342
|
};
|
|
2535
2343
|
const de_Resource = (output, context) => {
|
|
2536
|
-
return {
|
|
2537
|
-
ComponentId: __expectString
|
|
2538
|
-
DnsTargetResource:
|
|
2539
|
-
ReadinessScopes:
|
|
2540
|
-
ResourceArn: __expectString
|
|
2541
|
-
};
|
|
2344
|
+
return take(output, {
|
|
2345
|
+
ComponentId: [, __expectString, `componentId`],
|
|
2346
|
+
DnsTargetResource: (_) => [, de_DNSTargetResource(_, context), `dnsTargetResource`],
|
|
2347
|
+
ReadinessScopes: [, _json, `readinessScopes`],
|
|
2348
|
+
ResourceArn: [, __expectString, `resourceArn`],
|
|
2349
|
+
});
|
|
2542
2350
|
};
|
|
2543
2351
|
const de_ResourceResult = (output, context) => {
|
|
2544
|
-
return {
|
|
2545
|
-
ComponentId: __expectString
|
|
2546
|
-
LastCheckedTimestamp:
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
ResourceArn: __expectString(output.resourceArn),
|
|
2551
|
-
};
|
|
2352
|
+
return take(output, {
|
|
2353
|
+
ComponentId: [, __expectString, `componentId`],
|
|
2354
|
+
LastCheckedTimestamp: (_) => [, __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `lastCheckedTimestamp`],
|
|
2355
|
+
Readiness: [, __expectString, `readiness`],
|
|
2356
|
+
ResourceArn: [, __expectString, `resourceArn`],
|
|
2357
|
+
});
|
|
2552
2358
|
};
|
|
2553
2359
|
const de_ResourceSetOutput = (output, context) => {
|
|
2554
|
-
return {
|
|
2555
|
-
ResourceSetArn: __expectString
|
|
2556
|
-
ResourceSetName: __expectString
|
|
2557
|
-
ResourceSetType: __expectString
|
|
2558
|
-
Resources:
|
|
2559
|
-
Tags:
|
|
2560
|
-
};
|
|
2360
|
+
return take(output, {
|
|
2361
|
+
ResourceSetArn: [, __expectString, `resourceSetArn`],
|
|
2362
|
+
ResourceSetName: [, __expectString, `resourceSetName`],
|
|
2363
|
+
ResourceSetType: [, __expectString, `resourceSetType`],
|
|
2364
|
+
Resources: (_) => [, de___listOfResource(_, context), `resources`],
|
|
2365
|
+
Tags: [, _json, `tags`],
|
|
2366
|
+
});
|
|
2561
2367
|
};
|
|
2562
2368
|
const de_RuleResult = (output, context) => {
|
|
2563
|
-
return {
|
|
2564
|
-
LastCheckedTimestamp:
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
RuleId: __expectString(output.ruleId),
|
|
2570
|
-
};
|
|
2571
|
-
};
|
|
2572
|
-
const de_Tags = (output, context) => {
|
|
2573
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2574
|
-
if (value === null) {
|
|
2575
|
-
return acc;
|
|
2576
|
-
}
|
|
2577
|
-
acc[key] = __expectString(value);
|
|
2578
|
-
return acc;
|
|
2579
|
-
}, {});
|
|
2369
|
+
return take(output, {
|
|
2370
|
+
LastCheckedTimestamp: (_) => [, __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `lastCheckedTimestamp`],
|
|
2371
|
+
Messages: (_) => [, de___listOfMessage(_, context), `messages`],
|
|
2372
|
+
Readiness: [, __expectString, `readiness`],
|
|
2373
|
+
RuleId: [, __expectString, `ruleId`],
|
|
2374
|
+
});
|
|
2580
2375
|
};
|
|
2581
2376
|
const de_TargetResource = (output, context) => {
|
|
2582
|
-
return {
|
|
2583
|
-
NLBResource:
|
|
2584
|
-
R53Resource:
|
|
2585
|
-
};
|
|
2377
|
+
return take(output, {
|
|
2378
|
+
NLBResource: (_) => [, de_NLBResource(_, context), `nLBResource`],
|
|
2379
|
+
R53Resource: (_) => [, de_R53ResourceRecord(_, context), `r53Resource`],
|
|
2380
|
+
});
|
|
2586
2381
|
};
|
|
2587
2382
|
const deserializeMetadata = (output) => ({
|
|
2588
2383
|
httpStatusCode: output.statusCode,
|