@aws-sdk/client-backup 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/Backup.js +76 -1008
- package/dist-cjs/protocols/Aws_restJson1.js +915 -2130
- package/dist-es/Backup.js +76 -1008
- package/dist-es/protocols/Aws_restJson1.js +815 -2030
- package/dist-types/Backup.d.ts +83 -280
- package/dist-types/ts3.4/Backup.d.ts +2 -1
- package/package.json +6 -6
|
@@ -13,7 +13,7 @@ const se_CancelLegalHoldCommand = async (input, context) => {
|
|
|
13
13
|
const headers = {};
|
|
14
14
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/legal-holds/{LegalHoldId}";
|
|
15
15
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LegalHoldId", () => input.LegalHoldId, "{LegalHoldId}", false);
|
|
16
|
-
const query = map({
|
|
16
|
+
const query = (0, smithy_client_1.map)({
|
|
17
17
|
cancelDescription: [, (0, smithy_client_1.expectNonNull)(input.CancelDescription, `CancelDescription`)],
|
|
18
18
|
retainRecordInDays: [() => input.RetainRecordInDays !== void 0, () => input.RetainRecordInDays.toString()],
|
|
19
19
|
});
|
|
@@ -37,11 +37,11 @@ const se_CreateBackupPlanCommand = async (input, context) => {
|
|
|
37
37
|
};
|
|
38
38
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans";
|
|
39
39
|
let body;
|
|
40
|
-
body = JSON.stringify({
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
});
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
|
+
BackupPlan: (_) => (0, smithy_client_1._json)(_),
|
|
42
|
+
BackupPlanTags: (_) => (0, smithy_client_1._json)(_),
|
|
43
|
+
CreatorRequestId: [],
|
|
44
|
+
}));
|
|
45
45
|
return new protocol_http_1.HttpRequest({
|
|
46
46
|
protocol,
|
|
47
47
|
hostname,
|
|
@@ -61,10 +61,10 @@ const se_CreateBackupSelectionCommand = async (input, context) => {
|
|
|
61
61
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}/selections";
|
|
62
62
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
|
|
63
63
|
let body;
|
|
64
|
-
body = JSON.stringify({
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
});
|
|
64
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
65
|
+
BackupSelection: (_) => (0, smithy_client_1._json)(_),
|
|
66
|
+
CreatorRequestId: [],
|
|
67
|
+
}));
|
|
68
68
|
return new protocol_http_1.HttpRequest({
|
|
69
69
|
protocol,
|
|
70
70
|
hostname,
|
|
@@ -84,11 +84,11 @@ const se_CreateBackupVaultCommand = async (input, context) => {
|
|
|
84
84
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-vaults/{BackupVaultName}";
|
|
85
85
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
86
86
|
let body;
|
|
87
|
-
body = JSON.stringify({
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
});
|
|
87
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
88
|
+
BackupVaultTags: (_) => (0, smithy_client_1._json)(_),
|
|
89
|
+
CreatorRequestId: [],
|
|
90
|
+
EncryptionKeyArn: [],
|
|
91
|
+
}));
|
|
92
92
|
return new protocol_http_1.HttpRequest({
|
|
93
93
|
protocol,
|
|
94
94
|
hostname,
|
|
@@ -107,15 +107,13 @@ const se_CreateFrameworkCommand = async (input, context) => {
|
|
|
107
107
|
};
|
|
108
108
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/frameworks";
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify({
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
|
|
118
|
-
});
|
|
110
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
111
|
+
FrameworkControls: (_) => (0, smithy_client_1._json)(_),
|
|
112
|
+
FrameworkDescription: [],
|
|
113
|
+
FrameworkName: [],
|
|
114
|
+
FrameworkTags: (_) => (0, smithy_client_1._json)(_),
|
|
115
|
+
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
116
|
+
}));
|
|
119
117
|
return new protocol_http_1.HttpRequest({
|
|
120
118
|
protocol,
|
|
121
119
|
hostname,
|
|
@@ -134,15 +132,13 @@ const se_CreateLegalHoldCommand = async (input, context) => {
|
|
|
134
132
|
};
|
|
135
133
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/legal-holds";
|
|
136
134
|
let body;
|
|
137
|
-
body = JSON.stringify({
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
...(input.Title != null && { Title: input.Title }),
|
|
145
|
-
});
|
|
135
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
136
|
+
Description: [],
|
|
137
|
+
IdempotencyToken: [],
|
|
138
|
+
RecoveryPointSelection: (_) => se_RecoveryPointSelection(_, context),
|
|
139
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
140
|
+
Title: [],
|
|
141
|
+
}));
|
|
146
142
|
return new protocol_http_1.HttpRequest({
|
|
147
143
|
protocol,
|
|
148
144
|
hostname,
|
|
@@ -161,16 +157,14 @@ const se_CreateReportPlanCommand = async (input, context) => {
|
|
|
161
157
|
};
|
|
162
158
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-plans";
|
|
163
159
|
let body;
|
|
164
|
-
body = JSON.stringify({
|
|
165
|
-
IdempotencyToken:
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
...(input.ReportSetting != null && { ReportSetting: se_ReportSetting(input.ReportSetting, context) }),
|
|
173
|
-
});
|
|
160
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
161
|
+
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
162
|
+
ReportDeliveryChannel: (_) => (0, smithy_client_1._json)(_),
|
|
163
|
+
ReportPlanDescription: [],
|
|
164
|
+
ReportPlanName: [],
|
|
165
|
+
ReportPlanTags: (_) => (0, smithy_client_1._json)(_),
|
|
166
|
+
ReportSetting: (_) => (0, smithy_client_1._json)(_),
|
|
167
|
+
}));
|
|
174
168
|
return new protocol_http_1.HttpRequest({
|
|
175
169
|
protocol,
|
|
176
170
|
hostname,
|
|
@@ -595,7 +589,7 @@ const se_GetBackupPlanCommand = async (input, context) => {
|
|
|
595
589
|
const headers = {};
|
|
596
590
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}";
|
|
597
591
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
|
|
598
|
-
const query = map({
|
|
592
|
+
const query = (0, smithy_client_1.map)({
|
|
599
593
|
versionId: [, input.VersionId],
|
|
600
594
|
});
|
|
601
595
|
let body;
|
|
@@ -618,9 +612,9 @@ const se_GetBackupPlanFromJSONCommand = async (input, context) => {
|
|
|
618
612
|
};
|
|
619
613
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/template/json/toPlan";
|
|
620
614
|
let body;
|
|
621
|
-
body = JSON.stringify({
|
|
622
|
-
|
|
623
|
-
});
|
|
615
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
616
|
+
BackupPlanTemplateJson: [],
|
|
617
|
+
}));
|
|
624
618
|
return new protocol_http_1.HttpRequest({
|
|
625
619
|
protocol,
|
|
626
620
|
hostname,
|
|
@@ -764,7 +758,7 @@ const se_ListBackupJobsCommand = async (input, context) => {
|
|
|
764
758
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
765
759
|
const headers = {};
|
|
766
760
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-jobs";
|
|
767
|
-
const query = map({
|
|
761
|
+
const query = (0, smithy_client_1.map)({
|
|
768
762
|
nextToken: [, input.NextToken],
|
|
769
763
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
770
764
|
resourceArn: [, input.ByResourceArn],
|
|
@@ -807,7 +801,7 @@ const se_ListBackupPlansCommand = async (input, context) => {
|
|
|
807
801
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
808
802
|
const headers = {};
|
|
809
803
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans";
|
|
810
|
-
const query = map({
|
|
804
|
+
const query = (0, smithy_client_1.map)({
|
|
811
805
|
nextToken: [, input.NextToken],
|
|
812
806
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
813
807
|
includeDeleted: [() => input.IncludeDeleted !== void 0, () => input.IncludeDeleted.toString()],
|
|
@@ -829,7 +823,7 @@ const se_ListBackupPlanTemplatesCommand = async (input, context) => {
|
|
|
829
823
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
830
824
|
const headers = {};
|
|
831
825
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/template/plans";
|
|
832
|
-
const query = map({
|
|
826
|
+
const query = (0, smithy_client_1.map)({
|
|
833
827
|
nextToken: [, input.NextToken],
|
|
834
828
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
835
829
|
});
|
|
@@ -851,7 +845,7 @@ const se_ListBackupPlanVersionsCommand = async (input, context) => {
|
|
|
851
845
|
const headers = {};
|
|
852
846
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}/versions";
|
|
853
847
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
|
|
854
|
-
const query = map({
|
|
848
|
+
const query = (0, smithy_client_1.map)({
|
|
855
849
|
nextToken: [, input.NextToken],
|
|
856
850
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
857
851
|
});
|
|
@@ -873,7 +867,7 @@ const se_ListBackupSelectionsCommand = async (input, context) => {
|
|
|
873
867
|
const headers = {};
|
|
874
868
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}/selections";
|
|
875
869
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
|
|
876
|
-
const query = map({
|
|
870
|
+
const query = (0, smithy_client_1.map)({
|
|
877
871
|
nextToken: [, input.NextToken],
|
|
878
872
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
879
873
|
});
|
|
@@ -894,7 +888,7 @@ const se_ListBackupVaultsCommand = async (input, context) => {
|
|
|
894
888
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
895
889
|
const headers = {};
|
|
896
890
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-vaults";
|
|
897
|
-
const query = map({
|
|
891
|
+
const query = (0, smithy_client_1.map)({
|
|
898
892
|
nextToken: [, input.NextToken],
|
|
899
893
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
900
894
|
});
|
|
@@ -915,7 +909,7 @@ const se_ListCopyJobsCommand = async (input, context) => {
|
|
|
915
909
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
916
910
|
const headers = {};
|
|
917
911
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/copy-jobs";
|
|
918
|
-
const query = map({
|
|
912
|
+
const query = (0, smithy_client_1.map)({
|
|
919
913
|
nextToken: [, input.NextToken],
|
|
920
914
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
921
915
|
resourceArn: [, input.ByResourceArn],
|
|
@@ -958,7 +952,7 @@ const se_ListFrameworksCommand = async (input, context) => {
|
|
|
958
952
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
959
953
|
const headers = {};
|
|
960
954
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/frameworks";
|
|
961
|
-
const query = map({
|
|
955
|
+
const query = (0, smithy_client_1.map)({
|
|
962
956
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
963
957
|
NextToken: [, input.NextToken],
|
|
964
958
|
});
|
|
@@ -979,7 +973,7 @@ const se_ListLegalHoldsCommand = async (input, context) => {
|
|
|
979
973
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
980
974
|
const headers = {};
|
|
981
975
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/legal-holds";
|
|
982
|
-
const query = map({
|
|
976
|
+
const query = (0, smithy_client_1.map)({
|
|
983
977
|
nextToken: [, input.NextToken],
|
|
984
978
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
985
979
|
});
|
|
@@ -1000,7 +994,7 @@ const se_ListProtectedResourcesCommand = async (input, context) => {
|
|
|
1000
994
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1001
995
|
const headers = {};
|
|
1002
996
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources";
|
|
1003
|
-
const query = map({
|
|
997
|
+
const query = (0, smithy_client_1.map)({
|
|
1004
998
|
nextToken: [, input.NextToken],
|
|
1005
999
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1006
1000
|
});
|
|
@@ -1023,7 +1017,7 @@ const se_ListRecoveryPointsByBackupVaultCommand = async (input, context) => {
|
|
|
1023
1017
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1024
1018
|
"/backup-vaults/{BackupVaultName}/recovery-points";
|
|
1025
1019
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
1026
|
-
const query = map({
|
|
1020
|
+
const query = (0, smithy_client_1.map)({
|
|
1027
1021
|
nextToken: [, input.NextToken],
|
|
1028
1022
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1029
1023
|
resourceArn: [, input.ByResourceArn],
|
|
@@ -1058,7 +1052,7 @@ const se_ListRecoveryPointsByLegalHoldCommand = async (input, context) => {
|
|
|
1058
1052
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1059
1053
|
"/legal-holds/{LegalHoldId}/recovery-points";
|
|
1060
1054
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LegalHoldId", () => input.LegalHoldId, "{LegalHoldId}", false);
|
|
1061
|
-
const query = map({
|
|
1055
|
+
const query = (0, smithy_client_1.map)({
|
|
1062
1056
|
nextToken: [, input.NextToken],
|
|
1063
1057
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1064
1058
|
});
|
|
@@ -1080,7 +1074,7 @@ const se_ListRecoveryPointsByResourceCommand = async (input, context) => {
|
|
|
1080
1074
|
const headers = {};
|
|
1081
1075
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources/{ResourceArn}/recovery-points";
|
|
1082
1076
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1083
|
-
const query = map({
|
|
1077
|
+
const query = (0, smithy_client_1.map)({
|
|
1084
1078
|
nextToken: [, input.NextToken],
|
|
1085
1079
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1086
1080
|
});
|
|
@@ -1101,7 +1095,7 @@ const se_ListReportJobsCommand = async (input, context) => {
|
|
|
1101
1095
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1102
1096
|
const headers = {};
|
|
1103
1097
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-jobs";
|
|
1104
|
-
const query = map({
|
|
1098
|
+
const query = (0, smithy_client_1.map)({
|
|
1105
1099
|
ReportPlanName: [, input.ByReportPlanName],
|
|
1106
1100
|
CreationBefore: [
|
|
1107
1101
|
() => input.ByCreationBefore !== void 0,
|
|
@@ -1132,7 +1126,7 @@ const se_ListReportPlansCommand = async (input, context) => {
|
|
|
1132
1126
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1133
1127
|
const headers = {};
|
|
1134
1128
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-plans";
|
|
1135
|
-
const query = map({
|
|
1129
|
+
const query = (0, smithy_client_1.map)({
|
|
1136
1130
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1137
1131
|
NextToken: [, input.NextToken],
|
|
1138
1132
|
});
|
|
@@ -1153,7 +1147,7 @@ const se_ListRestoreJobsCommand = async (input, context) => {
|
|
|
1153
1147
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1154
1148
|
const headers = {};
|
|
1155
1149
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs";
|
|
1156
|
-
const query = map({
|
|
1150
|
+
const query = (0, smithy_client_1.map)({
|
|
1157
1151
|
nextToken: [, input.NextToken],
|
|
1158
1152
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1159
1153
|
accountId: [, input.ByAccountId],
|
|
@@ -1193,7 +1187,7 @@ const se_ListTagsCommand = async (input, context) => {
|
|
|
1193
1187
|
const headers = {};
|
|
1194
1188
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
1195
1189
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1196
|
-
const query = map({
|
|
1190
|
+
const query = (0, smithy_client_1.map)({
|
|
1197
1191
|
nextToken: [, input.NextToken],
|
|
1198
1192
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1199
1193
|
});
|
|
@@ -1219,9 +1213,9 @@ const se_PutBackupVaultAccessPolicyCommand = async (input, context) => {
|
|
|
1219
1213
|
"/backup-vaults/{BackupVaultName}/access-policy";
|
|
1220
1214
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
1221
1215
|
let body;
|
|
1222
|
-
body = JSON.stringify({
|
|
1223
|
-
|
|
1224
|
-
});
|
|
1216
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1217
|
+
Policy: [],
|
|
1218
|
+
}));
|
|
1225
1219
|
return new protocol_http_1.HttpRequest({
|
|
1226
1220
|
protocol,
|
|
1227
1221
|
hostname,
|
|
@@ -1242,11 +1236,11 @@ const se_PutBackupVaultLockConfigurationCommand = async (input, context) => {
|
|
|
1242
1236
|
"/backup-vaults/{BackupVaultName}/vault-lock";
|
|
1243
1237
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
1244
1238
|
let body;
|
|
1245
|
-
body = JSON.stringify({
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
});
|
|
1239
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1240
|
+
ChangeableForDays: [],
|
|
1241
|
+
MaxRetentionDays: [],
|
|
1242
|
+
MinRetentionDays: [],
|
|
1243
|
+
}));
|
|
1250
1244
|
return new protocol_http_1.HttpRequest({
|
|
1251
1245
|
protocol,
|
|
1252
1246
|
hostname,
|
|
@@ -1267,12 +1261,10 @@ const se_PutBackupVaultNotificationsCommand = async (input, context) => {
|
|
|
1267
1261
|
"/backup-vaults/{BackupVaultName}/notification-configuration";
|
|
1268
1262
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
1269
1263
|
let body;
|
|
1270
|
-
body = JSON.stringify({
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
...(input.SNSTopicArn != null && { SNSTopicArn: input.SNSTopicArn }),
|
|
1275
|
-
});
|
|
1264
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1265
|
+
BackupVaultEvents: (_) => (0, smithy_client_1._json)(_),
|
|
1266
|
+
SNSTopicArn: [],
|
|
1267
|
+
}));
|
|
1276
1268
|
return new protocol_http_1.HttpRequest({
|
|
1277
1269
|
protocol,
|
|
1278
1270
|
hostname,
|
|
@@ -1291,17 +1283,17 @@ const se_StartBackupJobCommand = async (input, context) => {
|
|
|
1291
1283
|
};
|
|
1292
1284
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-jobs";
|
|
1293
1285
|
let body;
|
|
1294
|
-
body = JSON.stringify({
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
});
|
|
1286
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1287
|
+
BackupOptions: (_) => (0, smithy_client_1._json)(_),
|
|
1288
|
+
BackupVaultName: [],
|
|
1289
|
+
CompleteWindowMinutes: [],
|
|
1290
|
+
IamRoleArn: [],
|
|
1291
|
+
IdempotencyToken: [],
|
|
1292
|
+
Lifecycle: (_) => (0, smithy_client_1._json)(_),
|
|
1293
|
+
RecoveryPointTags: (_) => (0, smithy_client_1._json)(_),
|
|
1294
|
+
ResourceArn: [],
|
|
1295
|
+
StartWindowMinutes: [],
|
|
1296
|
+
}));
|
|
1305
1297
|
return new protocol_http_1.HttpRequest({
|
|
1306
1298
|
protocol,
|
|
1307
1299
|
hostname,
|
|
@@ -1320,14 +1312,14 @@ const se_StartCopyJobCommand = async (input, context) => {
|
|
|
1320
1312
|
};
|
|
1321
1313
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/copy-jobs";
|
|
1322
1314
|
let body;
|
|
1323
|
-
body = JSON.stringify({
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
});
|
|
1315
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1316
|
+
DestinationBackupVaultArn: [],
|
|
1317
|
+
IamRoleArn: [],
|
|
1318
|
+
IdempotencyToken: [],
|
|
1319
|
+
Lifecycle: (_) => (0, smithy_client_1._json)(_),
|
|
1320
|
+
RecoveryPointArn: [],
|
|
1321
|
+
SourceBackupVaultName: [],
|
|
1322
|
+
}));
|
|
1331
1323
|
return new protocol_http_1.HttpRequest({
|
|
1332
1324
|
protocol,
|
|
1333
1325
|
hostname,
|
|
@@ -1347,9 +1339,9 @@ const se_StartReportJobCommand = async (input, context) => {
|
|
|
1347
1339
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-jobs/{ReportPlanName}";
|
|
1348
1340
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReportPlanName", () => input.ReportPlanName, "{ReportPlanName}", false);
|
|
1349
1341
|
let body;
|
|
1350
|
-
body = JSON.stringify({
|
|
1351
|
-
IdempotencyToken:
|
|
1352
|
-
});
|
|
1342
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1343
|
+
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1344
|
+
}));
|
|
1353
1345
|
return new protocol_http_1.HttpRequest({
|
|
1354
1346
|
protocol,
|
|
1355
1347
|
hostname,
|
|
@@ -1368,13 +1360,13 @@ const se_StartRestoreJobCommand = async (input, context) => {
|
|
|
1368
1360
|
};
|
|
1369
1361
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs";
|
|
1370
1362
|
let body;
|
|
1371
|
-
body = JSON.stringify({
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
});
|
|
1363
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1364
|
+
IamRoleArn: [],
|
|
1365
|
+
IdempotencyToken: [],
|
|
1366
|
+
Metadata: (_) => (0, smithy_client_1._json)(_),
|
|
1367
|
+
RecoveryPointArn: [],
|
|
1368
|
+
ResourceType: [],
|
|
1369
|
+
}));
|
|
1378
1370
|
return new protocol_http_1.HttpRequest({
|
|
1379
1371
|
protocol,
|
|
1380
1372
|
hostname,
|
|
@@ -1411,9 +1403,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
1411
1403
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
1412
1404
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1413
1405
|
let body;
|
|
1414
|
-
body = JSON.stringify({
|
|
1415
|
-
|
|
1416
|
-
});
|
|
1406
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1407
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
1408
|
+
}));
|
|
1417
1409
|
return new protocol_http_1.HttpRequest({
|
|
1418
1410
|
protocol,
|
|
1419
1411
|
hostname,
|
|
@@ -1433,9 +1425,9 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
1433
1425
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/untag/{ResourceArn}";
|
|
1434
1426
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1435
1427
|
let body;
|
|
1436
|
-
body = JSON.stringify({
|
|
1437
|
-
|
|
1438
|
-
});
|
|
1428
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1429
|
+
TagKeyList: (_) => (0, smithy_client_1._json)(_),
|
|
1430
|
+
}));
|
|
1439
1431
|
return new protocol_http_1.HttpRequest({
|
|
1440
1432
|
protocol,
|
|
1441
1433
|
hostname,
|
|
@@ -1455,9 +1447,9 @@ const se_UpdateBackupPlanCommand = async (input, context) => {
|
|
|
1455
1447
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}";
|
|
1456
1448
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
|
|
1457
1449
|
let body;
|
|
1458
|
-
body = JSON.stringify({
|
|
1459
|
-
|
|
1460
|
-
});
|
|
1450
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1451
|
+
BackupPlan: (_) => (0, smithy_client_1._json)(_),
|
|
1452
|
+
}));
|
|
1461
1453
|
return new protocol_http_1.HttpRequest({
|
|
1462
1454
|
protocol,
|
|
1463
1455
|
hostname,
|
|
@@ -1477,13 +1469,11 @@ const se_UpdateFrameworkCommand = async (input, context) => {
|
|
|
1477
1469
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/frameworks/{FrameworkName}";
|
|
1478
1470
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FrameworkName", () => input.FrameworkName, "{FrameworkName}", false);
|
|
1479
1471
|
let body;
|
|
1480
|
-
body = JSON.stringify({
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
|
|
1486
|
-
});
|
|
1472
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1473
|
+
FrameworkControls: (_) => (0, smithy_client_1._json)(_),
|
|
1474
|
+
FrameworkDescription: [],
|
|
1475
|
+
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1476
|
+
}));
|
|
1487
1477
|
return new protocol_http_1.HttpRequest({
|
|
1488
1478
|
protocol,
|
|
1489
1479
|
hostname,
|
|
@@ -1502,9 +1492,9 @@ const se_UpdateGlobalSettingsCommand = async (input, context) => {
|
|
|
1502
1492
|
};
|
|
1503
1493
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-settings";
|
|
1504
1494
|
let body;
|
|
1505
|
-
body = JSON.stringify({
|
|
1506
|
-
|
|
1507
|
-
});
|
|
1495
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1496
|
+
GlobalSettings: (_) => (0, smithy_client_1._json)(_),
|
|
1497
|
+
}));
|
|
1508
1498
|
return new protocol_http_1.HttpRequest({
|
|
1509
1499
|
protocol,
|
|
1510
1500
|
hostname,
|
|
@@ -1526,9 +1516,9 @@ const se_UpdateRecoveryPointLifecycleCommand = async (input, context) => {
|
|
|
1526
1516
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
1527
1517
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecoveryPointArn", () => input.RecoveryPointArn, "{RecoveryPointArn}", false);
|
|
1528
1518
|
let body;
|
|
1529
|
-
body = JSON.stringify({
|
|
1530
|
-
|
|
1531
|
-
});
|
|
1519
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1520
|
+
Lifecycle: (_) => (0, smithy_client_1._json)(_),
|
|
1521
|
+
}));
|
|
1532
1522
|
return new protocol_http_1.HttpRequest({
|
|
1533
1523
|
protocol,
|
|
1534
1524
|
hostname,
|
|
@@ -1547,14 +1537,10 @@ const se_UpdateRegionSettingsCommand = async (input, context) => {
|
|
|
1547
1537
|
};
|
|
1548
1538
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account-settings";
|
|
1549
1539
|
let body;
|
|
1550
|
-
body = JSON.stringify({
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
...(input.ResourceTypeOptInPreference != null && {
|
|
1555
|
-
ResourceTypeOptInPreference: se_ResourceTypeOptInPreference(input.ResourceTypeOptInPreference, context),
|
|
1556
|
-
}),
|
|
1557
|
-
});
|
|
1540
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1541
|
+
ResourceTypeManagementPreference: (_) => (0, smithy_client_1._json)(_),
|
|
1542
|
+
ResourceTypeOptInPreference: (_) => (0, smithy_client_1._json)(_),
|
|
1543
|
+
}));
|
|
1558
1544
|
return new protocol_http_1.HttpRequest({
|
|
1559
1545
|
protocol,
|
|
1560
1546
|
hostname,
|
|
@@ -1574,14 +1560,12 @@ const se_UpdateReportPlanCommand = async (input, context) => {
|
|
|
1574
1560
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-plans/{ReportPlanName}";
|
|
1575
1561
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReportPlanName", () => input.ReportPlanName, "{ReportPlanName}", false);
|
|
1576
1562
|
let body;
|
|
1577
|
-
body = JSON.stringify({
|
|
1578
|
-
IdempotencyToken:
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
...(input.ReportSetting != null && { ReportSetting: se_ReportSetting(input.ReportSetting, context) }),
|
|
1584
|
-
});
|
|
1563
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1564
|
+
IdempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1565
|
+
ReportDeliveryChannel: (_) => (0, smithy_client_1._json)(_),
|
|
1566
|
+
ReportPlanDescription: [],
|
|
1567
|
+
ReportSetting: (_) => (0, smithy_client_1._json)(_),
|
|
1568
|
+
}));
|
|
1585
1569
|
return new protocol_http_1.HttpRequest({
|
|
1586
1570
|
protocol,
|
|
1587
1571
|
hostname,
|
|
@@ -1597,7 +1581,7 @@ const de_CancelLegalHoldCommand = async (output, context) => {
|
|
|
1597
1581
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1598
1582
|
return de_CancelLegalHoldCommandError(output, context);
|
|
1599
1583
|
}
|
|
1600
|
-
const contents = map({
|
|
1584
|
+
const contents = (0, smithy_client_1.map)({
|
|
1601
1585
|
$metadata: deserializeMetadata(output),
|
|
1602
1586
|
});
|
|
1603
1587
|
await collectBody(output.body, context);
|
|
@@ -1628,10 +1612,9 @@ const de_CancelLegalHoldCommandError = async (output, context) => {
|
|
|
1628
1612
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1629
1613
|
default:
|
|
1630
1614
|
const parsedBody = parsedOutput.body;
|
|
1631
|
-
|
|
1615
|
+
return throwDefaultError({
|
|
1632
1616
|
output,
|
|
1633
1617
|
parsedBody,
|
|
1634
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
1635
1618
|
errorCode,
|
|
1636
1619
|
});
|
|
1637
1620
|
}
|
|
@@ -1640,25 +1623,18 @@ const de_CreateBackupPlanCommand = async (output, context) => {
|
|
|
1640
1623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1641
1624
|
return de_CreateBackupPlanCommandError(output, context);
|
|
1642
1625
|
}
|
|
1643
|
-
const contents = map({
|
|
1626
|
+
const contents = (0, smithy_client_1.map)({
|
|
1644
1627
|
$metadata: deserializeMetadata(output),
|
|
1645
1628
|
});
|
|
1646
1629
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
}
|
|
1656
|
-
if (data.CreationDate != null) {
|
|
1657
|
-
contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
|
|
1658
|
-
}
|
|
1659
|
-
if (data.VersionId != null) {
|
|
1660
|
-
contents.VersionId = (0, smithy_client_1.expectString)(data.VersionId);
|
|
1661
|
-
}
|
|
1630
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1631
|
+
AdvancedBackupSettings: smithy_client_1._json,
|
|
1632
|
+
BackupPlanArn: smithy_client_1.expectString,
|
|
1633
|
+
BackupPlanId: smithy_client_1.expectString,
|
|
1634
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1635
|
+
VersionId: smithy_client_1.expectString,
|
|
1636
|
+
});
|
|
1637
|
+
Object.assign(contents, doc);
|
|
1662
1638
|
return contents;
|
|
1663
1639
|
};
|
|
1664
1640
|
exports.de_CreateBackupPlanCommand = de_CreateBackupPlanCommand;
|
|
@@ -1686,10 +1662,9 @@ const de_CreateBackupPlanCommandError = async (output, context) => {
|
|
|
1686
1662
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1687
1663
|
default:
|
|
1688
1664
|
const parsedBody = parsedOutput.body;
|
|
1689
|
-
|
|
1665
|
+
return throwDefaultError({
|
|
1690
1666
|
output,
|
|
1691
1667
|
parsedBody,
|
|
1692
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
1693
1668
|
errorCode,
|
|
1694
1669
|
});
|
|
1695
1670
|
}
|
|
@@ -1698,19 +1673,16 @@ const de_CreateBackupSelectionCommand = async (output, context) => {
|
|
|
1698
1673
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1699
1674
|
return de_CreateBackupSelectionCommandError(output, context);
|
|
1700
1675
|
}
|
|
1701
|
-
const contents = map({
|
|
1676
|
+
const contents = (0, smithy_client_1.map)({
|
|
1702
1677
|
$metadata: deserializeMetadata(output),
|
|
1703
1678
|
});
|
|
1704
1679
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
if (data.SelectionId != null) {
|
|
1712
|
-
contents.SelectionId = (0, smithy_client_1.expectString)(data.SelectionId);
|
|
1713
|
-
}
|
|
1680
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1681
|
+
BackupPlanId: smithy_client_1.expectString,
|
|
1682
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1683
|
+
SelectionId: smithy_client_1.expectString,
|
|
1684
|
+
});
|
|
1685
|
+
Object.assign(contents, doc);
|
|
1714
1686
|
return contents;
|
|
1715
1687
|
};
|
|
1716
1688
|
exports.de_CreateBackupSelectionCommand = de_CreateBackupSelectionCommand;
|
|
@@ -1738,10 +1710,9 @@ const de_CreateBackupSelectionCommandError = async (output, context) => {
|
|
|
1738
1710
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1739
1711
|
default:
|
|
1740
1712
|
const parsedBody = parsedOutput.body;
|
|
1741
|
-
|
|
1713
|
+
return throwDefaultError({
|
|
1742
1714
|
output,
|
|
1743
1715
|
parsedBody,
|
|
1744
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
1745
1716
|
errorCode,
|
|
1746
1717
|
});
|
|
1747
1718
|
}
|
|
@@ -1750,19 +1721,16 @@ const de_CreateBackupVaultCommand = async (output, context) => {
|
|
|
1750
1721
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1751
1722
|
return de_CreateBackupVaultCommandError(output, context);
|
|
1752
1723
|
}
|
|
1753
|
-
const contents = map({
|
|
1724
|
+
const contents = (0, smithy_client_1.map)({
|
|
1754
1725
|
$metadata: deserializeMetadata(output),
|
|
1755
1726
|
});
|
|
1756
1727
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
if (data.CreationDate != null) {
|
|
1764
|
-
contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
|
|
1765
|
-
}
|
|
1728
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1729
|
+
BackupVaultArn: smithy_client_1.expectString,
|
|
1730
|
+
BackupVaultName: smithy_client_1.expectString,
|
|
1731
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1732
|
+
});
|
|
1733
|
+
Object.assign(contents, doc);
|
|
1766
1734
|
return contents;
|
|
1767
1735
|
};
|
|
1768
1736
|
exports.de_CreateBackupVaultCommand = de_CreateBackupVaultCommand;
|
|
@@ -1790,10 +1758,9 @@ const de_CreateBackupVaultCommandError = async (output, context) => {
|
|
|
1790
1758
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1791
1759
|
default:
|
|
1792
1760
|
const parsedBody = parsedOutput.body;
|
|
1793
|
-
|
|
1761
|
+
return throwDefaultError({
|
|
1794
1762
|
output,
|
|
1795
1763
|
parsedBody,
|
|
1796
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
1797
1764
|
errorCode,
|
|
1798
1765
|
});
|
|
1799
1766
|
}
|
|
@@ -1802,16 +1769,15 @@ const de_CreateFrameworkCommand = async (output, context) => {
|
|
|
1802
1769
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1803
1770
|
return de_CreateFrameworkCommandError(output, context);
|
|
1804
1771
|
}
|
|
1805
|
-
const contents = map({
|
|
1772
|
+
const contents = (0, smithy_client_1.map)({
|
|
1806
1773
|
$metadata: deserializeMetadata(output),
|
|
1807
1774
|
});
|
|
1808
1775
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
}
|
|
1776
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1777
|
+
FrameworkArn: smithy_client_1.expectString,
|
|
1778
|
+
FrameworkName: smithy_client_1.expectString,
|
|
1779
|
+
});
|
|
1780
|
+
Object.assign(contents, doc);
|
|
1815
1781
|
return contents;
|
|
1816
1782
|
};
|
|
1817
1783
|
exports.de_CreateFrameworkCommand = de_CreateFrameworkCommand;
|
|
@@ -1839,10 +1805,9 @@ const de_CreateFrameworkCommandError = async (output, context) => {
|
|
|
1839
1805
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1840
1806
|
default:
|
|
1841
1807
|
const parsedBody = parsedOutput.body;
|
|
1842
|
-
|
|
1808
|
+
return throwDefaultError({
|
|
1843
1809
|
output,
|
|
1844
1810
|
parsedBody,
|
|
1845
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
1846
1811
|
errorCode,
|
|
1847
1812
|
});
|
|
1848
1813
|
}
|
|
@@ -1851,31 +1816,20 @@ const de_CreateLegalHoldCommand = async (output, context) => {
|
|
|
1851
1816
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1852
1817
|
return de_CreateLegalHoldCommandError(output, context);
|
|
1853
1818
|
}
|
|
1854
|
-
const contents = map({
|
|
1819
|
+
const contents = (0, smithy_client_1.map)({
|
|
1855
1820
|
$metadata: deserializeMetadata(output),
|
|
1856
1821
|
});
|
|
1857
1822
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
}
|
|
1867
|
-
|
|
1868
|
-
contents.LegalHoldId = (0, smithy_client_1.expectString)(data.LegalHoldId);
|
|
1869
|
-
}
|
|
1870
|
-
if (data.RecoveryPointSelection != null) {
|
|
1871
|
-
contents.RecoveryPointSelection = de_RecoveryPointSelection(data.RecoveryPointSelection, context);
|
|
1872
|
-
}
|
|
1873
|
-
if (data.Status != null) {
|
|
1874
|
-
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
1875
|
-
}
|
|
1876
|
-
if (data.Title != null) {
|
|
1877
|
-
contents.Title = (0, smithy_client_1.expectString)(data.Title);
|
|
1878
|
-
}
|
|
1823
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1824
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1825
|
+
Description: smithy_client_1.expectString,
|
|
1826
|
+
LegalHoldArn: smithy_client_1.expectString,
|
|
1827
|
+
LegalHoldId: smithy_client_1.expectString,
|
|
1828
|
+
RecoveryPointSelection: (_) => de_RecoveryPointSelection(_, context),
|
|
1829
|
+
Status: smithy_client_1.expectString,
|
|
1830
|
+
Title: smithy_client_1.expectString,
|
|
1831
|
+
});
|
|
1832
|
+
Object.assign(contents, doc);
|
|
1879
1833
|
return contents;
|
|
1880
1834
|
};
|
|
1881
1835
|
exports.de_CreateLegalHoldCommand = de_CreateLegalHoldCommand;
|
|
@@ -1900,10 +1854,9 @@ const de_CreateLegalHoldCommandError = async (output, context) => {
|
|
|
1900
1854
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1901
1855
|
default:
|
|
1902
1856
|
const parsedBody = parsedOutput.body;
|
|
1903
|
-
|
|
1857
|
+
return throwDefaultError({
|
|
1904
1858
|
output,
|
|
1905
1859
|
parsedBody,
|
|
1906
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
1907
1860
|
errorCode,
|
|
1908
1861
|
});
|
|
1909
1862
|
}
|
|
@@ -1912,19 +1865,16 @@ const de_CreateReportPlanCommand = async (output, context) => {
|
|
|
1912
1865
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1913
1866
|
return de_CreateReportPlanCommandError(output, context);
|
|
1914
1867
|
}
|
|
1915
|
-
const contents = map({
|
|
1868
|
+
const contents = (0, smithy_client_1.map)({
|
|
1916
1869
|
$metadata: deserializeMetadata(output),
|
|
1917
1870
|
});
|
|
1918
1871
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
if (data.ReportPlanName != null) {
|
|
1926
|
-
contents.ReportPlanName = (0, smithy_client_1.expectString)(data.ReportPlanName);
|
|
1927
|
-
}
|
|
1872
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1873
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1874
|
+
ReportPlanArn: smithy_client_1.expectString,
|
|
1875
|
+
ReportPlanName: smithy_client_1.expectString,
|
|
1876
|
+
});
|
|
1877
|
+
Object.assign(contents, doc);
|
|
1928
1878
|
return contents;
|
|
1929
1879
|
};
|
|
1930
1880
|
exports.de_CreateReportPlanCommand = de_CreateReportPlanCommand;
|
|
@@ -1952,10 +1902,9 @@ const de_CreateReportPlanCommandError = async (output, context) => {
|
|
|
1952
1902
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1953
1903
|
default:
|
|
1954
1904
|
const parsedBody = parsedOutput.body;
|
|
1955
|
-
|
|
1905
|
+
return throwDefaultError({
|
|
1956
1906
|
output,
|
|
1957
1907
|
parsedBody,
|
|
1958
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
1959
1908
|
errorCode,
|
|
1960
1909
|
});
|
|
1961
1910
|
}
|
|
@@ -1964,22 +1913,17 @@ const de_DeleteBackupPlanCommand = async (output, context) => {
|
|
|
1964
1913
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1965
1914
|
return de_DeleteBackupPlanCommandError(output, context);
|
|
1966
1915
|
}
|
|
1967
|
-
const contents = map({
|
|
1916
|
+
const contents = (0, smithy_client_1.map)({
|
|
1968
1917
|
$metadata: deserializeMetadata(output),
|
|
1969
1918
|
});
|
|
1970
1919
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
|
-
contents.DeletionDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.DeletionDate)));
|
|
1979
|
-
}
|
|
1980
|
-
if (data.VersionId != null) {
|
|
1981
|
-
contents.VersionId = (0, smithy_client_1.expectString)(data.VersionId);
|
|
1982
|
-
}
|
|
1920
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1921
|
+
BackupPlanArn: smithy_client_1.expectString,
|
|
1922
|
+
BackupPlanId: smithy_client_1.expectString,
|
|
1923
|
+
DeletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1924
|
+
VersionId: smithy_client_1.expectString,
|
|
1925
|
+
});
|
|
1926
|
+
Object.assign(contents, doc);
|
|
1983
1927
|
return contents;
|
|
1984
1928
|
};
|
|
1985
1929
|
exports.de_DeleteBackupPlanCommand = de_DeleteBackupPlanCommand;
|
|
@@ -2007,10 +1951,9 @@ const de_DeleteBackupPlanCommandError = async (output, context) => {
|
|
|
2007
1951
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2008
1952
|
default:
|
|
2009
1953
|
const parsedBody = parsedOutput.body;
|
|
2010
|
-
|
|
1954
|
+
return throwDefaultError({
|
|
2011
1955
|
output,
|
|
2012
1956
|
parsedBody,
|
|
2013
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2014
1957
|
errorCode,
|
|
2015
1958
|
});
|
|
2016
1959
|
}
|
|
@@ -2019,7 +1962,7 @@ const de_DeleteBackupSelectionCommand = async (output, context) => {
|
|
|
2019
1962
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2020
1963
|
return de_DeleteBackupSelectionCommandError(output, context);
|
|
2021
1964
|
}
|
|
2022
|
-
const contents = map({
|
|
1965
|
+
const contents = (0, smithy_client_1.map)({
|
|
2023
1966
|
$metadata: deserializeMetadata(output),
|
|
2024
1967
|
});
|
|
2025
1968
|
await collectBody(output.body, context);
|
|
@@ -2047,10 +1990,9 @@ const de_DeleteBackupSelectionCommandError = async (output, context) => {
|
|
|
2047
1990
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2048
1991
|
default:
|
|
2049
1992
|
const parsedBody = parsedOutput.body;
|
|
2050
|
-
|
|
1993
|
+
return throwDefaultError({
|
|
2051
1994
|
output,
|
|
2052
1995
|
parsedBody,
|
|
2053
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2054
1996
|
errorCode,
|
|
2055
1997
|
});
|
|
2056
1998
|
}
|
|
@@ -2059,7 +2001,7 @@ const de_DeleteBackupVaultCommand = async (output, context) => {
|
|
|
2059
2001
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2060
2002
|
return de_DeleteBackupVaultCommandError(output, context);
|
|
2061
2003
|
}
|
|
2062
|
-
const contents = map({
|
|
2004
|
+
const contents = (0, smithy_client_1.map)({
|
|
2063
2005
|
$metadata: deserializeMetadata(output),
|
|
2064
2006
|
});
|
|
2065
2007
|
await collectBody(output.body, context);
|
|
@@ -2090,10 +2032,9 @@ const de_DeleteBackupVaultCommandError = async (output, context) => {
|
|
|
2090
2032
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2091
2033
|
default:
|
|
2092
2034
|
const parsedBody = parsedOutput.body;
|
|
2093
|
-
|
|
2035
|
+
return throwDefaultError({
|
|
2094
2036
|
output,
|
|
2095
2037
|
parsedBody,
|
|
2096
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2097
2038
|
errorCode,
|
|
2098
2039
|
});
|
|
2099
2040
|
}
|
|
@@ -2102,7 +2043,7 @@ const de_DeleteBackupVaultAccessPolicyCommand = async (output, context) => {
|
|
|
2102
2043
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2103
2044
|
return de_DeleteBackupVaultAccessPolicyCommandError(output, context);
|
|
2104
2045
|
}
|
|
2105
|
-
const contents = map({
|
|
2046
|
+
const contents = (0, smithy_client_1.map)({
|
|
2106
2047
|
$metadata: deserializeMetadata(output),
|
|
2107
2048
|
});
|
|
2108
2049
|
await collectBody(output.body, context);
|
|
@@ -2130,10 +2071,9 @@ const de_DeleteBackupVaultAccessPolicyCommandError = async (output, context) =>
|
|
|
2130
2071
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2131
2072
|
default:
|
|
2132
2073
|
const parsedBody = parsedOutput.body;
|
|
2133
|
-
|
|
2074
|
+
return throwDefaultError({
|
|
2134
2075
|
output,
|
|
2135
2076
|
parsedBody,
|
|
2136
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2137
2077
|
errorCode,
|
|
2138
2078
|
});
|
|
2139
2079
|
}
|
|
@@ -2142,7 +2082,7 @@ const de_DeleteBackupVaultLockConfigurationCommand = async (output, context) =>
|
|
|
2142
2082
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2143
2083
|
return de_DeleteBackupVaultLockConfigurationCommandError(output, context);
|
|
2144
2084
|
}
|
|
2145
|
-
const contents = map({
|
|
2085
|
+
const contents = (0, smithy_client_1.map)({
|
|
2146
2086
|
$metadata: deserializeMetadata(output),
|
|
2147
2087
|
});
|
|
2148
2088
|
await collectBody(output.body, context);
|
|
@@ -2173,10 +2113,9 @@ const de_DeleteBackupVaultLockConfigurationCommandError = async (output, context
|
|
|
2173
2113
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2174
2114
|
default:
|
|
2175
2115
|
const parsedBody = parsedOutput.body;
|
|
2176
|
-
|
|
2116
|
+
return throwDefaultError({
|
|
2177
2117
|
output,
|
|
2178
2118
|
parsedBody,
|
|
2179
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2180
2119
|
errorCode,
|
|
2181
2120
|
});
|
|
2182
2121
|
}
|
|
@@ -2185,7 +2124,7 @@ const de_DeleteBackupVaultNotificationsCommand = async (output, context) => {
|
|
|
2185
2124
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2186
2125
|
return de_DeleteBackupVaultNotificationsCommandError(output, context);
|
|
2187
2126
|
}
|
|
2188
|
-
const contents = map({
|
|
2127
|
+
const contents = (0, smithy_client_1.map)({
|
|
2189
2128
|
$metadata: deserializeMetadata(output),
|
|
2190
2129
|
});
|
|
2191
2130
|
await collectBody(output.body, context);
|
|
@@ -2213,10 +2152,9 @@ const de_DeleteBackupVaultNotificationsCommandError = async (output, context) =>
|
|
|
2213
2152
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2214
2153
|
default:
|
|
2215
2154
|
const parsedBody = parsedOutput.body;
|
|
2216
|
-
|
|
2155
|
+
return throwDefaultError({
|
|
2217
2156
|
output,
|
|
2218
2157
|
parsedBody,
|
|
2219
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2220
2158
|
errorCode,
|
|
2221
2159
|
});
|
|
2222
2160
|
}
|
|
@@ -2225,7 +2163,7 @@ const de_DeleteFrameworkCommand = async (output, context) => {
|
|
|
2225
2163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2226
2164
|
return de_DeleteFrameworkCommandError(output, context);
|
|
2227
2165
|
}
|
|
2228
|
-
const contents = map({
|
|
2166
|
+
const contents = (0, smithy_client_1.map)({
|
|
2229
2167
|
$metadata: deserializeMetadata(output),
|
|
2230
2168
|
});
|
|
2231
2169
|
await collectBody(output.body, context);
|
|
@@ -2256,10 +2194,9 @@ const de_DeleteFrameworkCommandError = async (output, context) => {
|
|
|
2256
2194
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2257
2195
|
default:
|
|
2258
2196
|
const parsedBody = parsedOutput.body;
|
|
2259
|
-
|
|
2197
|
+
return throwDefaultError({
|
|
2260
2198
|
output,
|
|
2261
2199
|
parsedBody,
|
|
2262
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2263
2200
|
errorCode,
|
|
2264
2201
|
});
|
|
2265
2202
|
}
|
|
@@ -2268,7 +2205,7 @@ const de_DeleteRecoveryPointCommand = async (output, context) => {
|
|
|
2268
2205
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2269
2206
|
return de_DeleteRecoveryPointCommandError(output, context);
|
|
2270
2207
|
}
|
|
2271
|
-
const contents = map({
|
|
2208
|
+
const contents = (0, smithy_client_1.map)({
|
|
2272
2209
|
$metadata: deserializeMetadata(output),
|
|
2273
2210
|
});
|
|
2274
2211
|
await collectBody(output.body, context);
|
|
@@ -2302,10 +2239,9 @@ const de_DeleteRecoveryPointCommandError = async (output, context) => {
|
|
|
2302
2239
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2303
2240
|
default:
|
|
2304
2241
|
const parsedBody = parsedOutput.body;
|
|
2305
|
-
|
|
2242
|
+
return throwDefaultError({
|
|
2306
2243
|
output,
|
|
2307
2244
|
parsedBody,
|
|
2308
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2309
2245
|
errorCode,
|
|
2310
2246
|
});
|
|
2311
2247
|
}
|
|
@@ -2314,7 +2250,7 @@ const de_DeleteReportPlanCommand = async (output, context) => {
|
|
|
2314
2250
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2315
2251
|
return de_DeleteReportPlanCommandError(output, context);
|
|
2316
2252
|
}
|
|
2317
|
-
const contents = map({
|
|
2253
|
+
const contents = (0, smithy_client_1.map)({
|
|
2318
2254
|
$metadata: deserializeMetadata(output),
|
|
2319
2255
|
});
|
|
2320
2256
|
await collectBody(output.body, context);
|
|
@@ -2345,10 +2281,9 @@ const de_DeleteReportPlanCommandError = async (output, context) => {
|
|
|
2345
2281
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2346
2282
|
default:
|
|
2347
2283
|
const parsedBody = parsedOutput.body;
|
|
2348
|
-
|
|
2284
|
+
return throwDefaultError({
|
|
2349
2285
|
output,
|
|
2350
2286
|
parsedBody,
|
|
2351
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2352
2287
|
errorCode,
|
|
2353
2288
|
});
|
|
2354
2289
|
}
|
|
@@ -2357,85 +2292,38 @@ const de_DescribeBackupJobCommand = async (output, context) => {
|
|
|
2357
2292
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2358
2293
|
return de_DescribeBackupJobCommandError(output, context);
|
|
2359
2294
|
}
|
|
2360
|
-
const contents = map({
|
|
2295
|
+
const contents = (0, smithy_client_1.map)({
|
|
2361
2296
|
$metadata: deserializeMetadata(output),
|
|
2362
2297
|
});
|
|
2363
2298
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
}
|
|
2391
|
-
|
|
2392
|
-
contents.CompletionDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CompletionDate)));
|
|
2393
|
-
}
|
|
2394
|
-
if (data.CreatedBy != null) {
|
|
2395
|
-
contents.CreatedBy = de_RecoveryPointCreator(data.CreatedBy, context);
|
|
2396
|
-
}
|
|
2397
|
-
if (data.CreationDate != null) {
|
|
2398
|
-
contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
|
|
2399
|
-
}
|
|
2400
|
-
if (data.ExpectedCompletionDate != null) {
|
|
2401
|
-
contents.ExpectedCompletionDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.ExpectedCompletionDate)));
|
|
2402
|
-
}
|
|
2403
|
-
if (data.IamRoleArn != null) {
|
|
2404
|
-
contents.IamRoleArn = (0, smithy_client_1.expectString)(data.IamRoleArn);
|
|
2405
|
-
}
|
|
2406
|
-
if (data.IsParent != null) {
|
|
2407
|
-
contents.IsParent = (0, smithy_client_1.expectBoolean)(data.IsParent);
|
|
2408
|
-
}
|
|
2409
|
-
if (data.NumberOfChildJobs != null) {
|
|
2410
|
-
contents.NumberOfChildJobs = (0, smithy_client_1.expectLong)(data.NumberOfChildJobs);
|
|
2411
|
-
}
|
|
2412
|
-
if (data.ParentJobId != null) {
|
|
2413
|
-
contents.ParentJobId = (0, smithy_client_1.expectString)(data.ParentJobId);
|
|
2414
|
-
}
|
|
2415
|
-
if (data.PercentDone != null) {
|
|
2416
|
-
contents.PercentDone = (0, smithy_client_1.expectString)(data.PercentDone);
|
|
2417
|
-
}
|
|
2418
|
-
if (data.RecoveryPointArn != null) {
|
|
2419
|
-
contents.RecoveryPointArn = (0, smithy_client_1.expectString)(data.RecoveryPointArn);
|
|
2420
|
-
}
|
|
2421
|
-
if (data.ResourceArn != null) {
|
|
2422
|
-
contents.ResourceArn = (0, smithy_client_1.expectString)(data.ResourceArn);
|
|
2423
|
-
}
|
|
2424
|
-
if (data.ResourceName != null) {
|
|
2425
|
-
contents.ResourceName = (0, smithy_client_1.expectString)(data.ResourceName);
|
|
2426
|
-
}
|
|
2427
|
-
if (data.ResourceType != null) {
|
|
2428
|
-
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
2429
|
-
}
|
|
2430
|
-
if (data.StartBy != null) {
|
|
2431
|
-
contents.StartBy = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.StartBy)));
|
|
2432
|
-
}
|
|
2433
|
-
if (data.State != null) {
|
|
2434
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
2435
|
-
}
|
|
2436
|
-
if (data.StatusMessage != null) {
|
|
2437
|
-
contents.StatusMessage = (0, smithy_client_1.expectString)(data.StatusMessage);
|
|
2438
|
-
}
|
|
2299
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2300
|
+
AccountId: smithy_client_1.expectString,
|
|
2301
|
+
BackupJobId: smithy_client_1.expectString,
|
|
2302
|
+
BackupOptions: smithy_client_1._json,
|
|
2303
|
+
BackupSizeInBytes: smithy_client_1.expectLong,
|
|
2304
|
+
BackupType: smithy_client_1.expectString,
|
|
2305
|
+
BackupVaultArn: smithy_client_1.expectString,
|
|
2306
|
+
BackupVaultName: smithy_client_1.expectString,
|
|
2307
|
+
BytesTransferred: smithy_client_1.expectLong,
|
|
2308
|
+
ChildJobsInState: smithy_client_1._json,
|
|
2309
|
+
CompletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2310
|
+
CreatedBy: smithy_client_1._json,
|
|
2311
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2312
|
+
ExpectedCompletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2313
|
+
IamRoleArn: smithy_client_1.expectString,
|
|
2314
|
+
IsParent: smithy_client_1.expectBoolean,
|
|
2315
|
+
NumberOfChildJobs: smithy_client_1.expectLong,
|
|
2316
|
+
ParentJobId: smithy_client_1.expectString,
|
|
2317
|
+
PercentDone: smithy_client_1.expectString,
|
|
2318
|
+
RecoveryPointArn: smithy_client_1.expectString,
|
|
2319
|
+
ResourceArn: smithy_client_1.expectString,
|
|
2320
|
+
ResourceName: smithy_client_1.expectString,
|
|
2321
|
+
ResourceType: smithy_client_1.expectString,
|
|
2322
|
+
StartBy: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2323
|
+
State: smithy_client_1.expectString,
|
|
2324
|
+
StatusMessage: smithy_client_1.expectString,
|
|
2325
|
+
});
|
|
2326
|
+
Object.assign(contents, doc);
|
|
2439
2327
|
return contents;
|
|
2440
2328
|
};
|
|
2441
2329
|
exports.de_DescribeBackupJobCommand = de_DescribeBackupJobCommand;
|
|
@@ -2463,10 +2351,9 @@ const de_DescribeBackupJobCommandError = async (output, context) => {
|
|
|
2463
2351
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2464
2352
|
default:
|
|
2465
2353
|
const parsedBody = parsedOutput.body;
|
|
2466
|
-
|
|
2354
|
+
return throwDefaultError({
|
|
2467
2355
|
output,
|
|
2468
2356
|
parsedBody,
|
|
2469
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2470
2357
|
errorCode,
|
|
2471
2358
|
});
|
|
2472
2359
|
}
|
|
@@ -2475,40 +2362,23 @@ const de_DescribeBackupVaultCommand = async (output, context) => {
|
|
|
2475
2362
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2476
2363
|
return de_DescribeBackupVaultCommandError(output, context);
|
|
2477
2364
|
}
|
|
2478
|
-
const contents = map({
|
|
2365
|
+
const contents = (0, smithy_client_1.map)({
|
|
2479
2366
|
$metadata: deserializeMetadata(output),
|
|
2480
2367
|
});
|
|
2481
2368
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
}
|
|
2494
|
-
|
|
2495
|
-
contents.EncryptionKeyArn = (0, smithy_client_1.expectString)(data.EncryptionKeyArn);
|
|
2496
|
-
}
|
|
2497
|
-
if (data.LockDate != null) {
|
|
2498
|
-
contents.LockDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LockDate)));
|
|
2499
|
-
}
|
|
2500
|
-
if (data.Locked != null) {
|
|
2501
|
-
contents.Locked = (0, smithy_client_1.expectBoolean)(data.Locked);
|
|
2502
|
-
}
|
|
2503
|
-
if (data.MaxRetentionDays != null) {
|
|
2504
|
-
contents.MaxRetentionDays = (0, smithy_client_1.expectLong)(data.MaxRetentionDays);
|
|
2505
|
-
}
|
|
2506
|
-
if (data.MinRetentionDays != null) {
|
|
2507
|
-
contents.MinRetentionDays = (0, smithy_client_1.expectLong)(data.MinRetentionDays);
|
|
2508
|
-
}
|
|
2509
|
-
if (data.NumberOfRecoveryPoints != null) {
|
|
2510
|
-
contents.NumberOfRecoveryPoints = (0, smithy_client_1.expectLong)(data.NumberOfRecoveryPoints);
|
|
2511
|
-
}
|
|
2369
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2370
|
+
BackupVaultArn: smithy_client_1.expectString,
|
|
2371
|
+
BackupVaultName: smithy_client_1.expectString,
|
|
2372
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2373
|
+
CreatorRequestId: smithy_client_1.expectString,
|
|
2374
|
+
EncryptionKeyArn: smithy_client_1.expectString,
|
|
2375
|
+
LockDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2376
|
+
Locked: smithy_client_1.expectBoolean,
|
|
2377
|
+
MaxRetentionDays: smithy_client_1.expectLong,
|
|
2378
|
+
MinRetentionDays: smithy_client_1.expectLong,
|
|
2379
|
+
NumberOfRecoveryPoints: smithy_client_1.expectLong,
|
|
2380
|
+
});
|
|
2381
|
+
Object.assign(contents, doc);
|
|
2512
2382
|
return contents;
|
|
2513
2383
|
};
|
|
2514
2384
|
exports.de_DescribeBackupVaultCommand = de_DescribeBackupVaultCommand;
|
|
@@ -2533,10 +2403,9 @@ const de_DescribeBackupVaultCommandError = async (output, context) => {
|
|
|
2533
2403
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2534
2404
|
default:
|
|
2535
2405
|
const parsedBody = parsedOutput.body;
|
|
2536
|
-
|
|
2406
|
+
return throwDefaultError({
|
|
2537
2407
|
output,
|
|
2538
2408
|
parsedBody,
|
|
2539
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2540
2409
|
errorCode,
|
|
2541
2410
|
});
|
|
2542
2411
|
}
|
|
@@ -2545,13 +2414,14 @@ const de_DescribeCopyJobCommand = async (output, context) => {
|
|
|
2545
2414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2546
2415
|
return de_DescribeCopyJobCommandError(output, context);
|
|
2547
2416
|
}
|
|
2548
|
-
const contents = map({
|
|
2417
|
+
const contents = (0, smithy_client_1.map)({
|
|
2549
2418
|
$metadata: deserializeMetadata(output),
|
|
2550
2419
|
});
|
|
2551
2420
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
}
|
|
2421
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2422
|
+
CopyJob: (_) => de_CopyJob(_, context),
|
|
2423
|
+
});
|
|
2424
|
+
Object.assign(contents, doc);
|
|
2555
2425
|
return contents;
|
|
2556
2426
|
};
|
|
2557
2427
|
exports.de_DescribeCopyJobCommand = de_DescribeCopyJobCommand;
|
|
@@ -2576,10 +2446,9 @@ const de_DescribeCopyJobCommandError = async (output, context) => {
|
|
|
2576
2446
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2577
2447
|
default:
|
|
2578
2448
|
const parsedBody = parsedOutput.body;
|
|
2579
|
-
|
|
2449
|
+
return throwDefaultError({
|
|
2580
2450
|
output,
|
|
2581
2451
|
parsedBody,
|
|
2582
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2583
2452
|
errorCode,
|
|
2584
2453
|
});
|
|
2585
2454
|
}
|
|
@@ -2588,34 +2457,21 @@ const de_DescribeFrameworkCommand = async (output, context) => {
|
|
|
2588
2457
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2589
2458
|
return de_DescribeFrameworkCommandError(output, context);
|
|
2590
2459
|
}
|
|
2591
|
-
const contents = map({
|
|
2460
|
+
const contents = (0, smithy_client_1.map)({
|
|
2592
2461
|
$metadata: deserializeMetadata(output),
|
|
2593
2462
|
});
|
|
2594
2463
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
}
|
|
2607
|
-
if (data.FrameworkDescription != null) {
|
|
2608
|
-
contents.FrameworkDescription = (0, smithy_client_1.expectString)(data.FrameworkDescription);
|
|
2609
|
-
}
|
|
2610
|
-
if (data.FrameworkName != null) {
|
|
2611
|
-
contents.FrameworkName = (0, smithy_client_1.expectString)(data.FrameworkName);
|
|
2612
|
-
}
|
|
2613
|
-
if (data.FrameworkStatus != null) {
|
|
2614
|
-
contents.FrameworkStatus = (0, smithy_client_1.expectString)(data.FrameworkStatus);
|
|
2615
|
-
}
|
|
2616
|
-
if (data.IdempotencyToken != null) {
|
|
2617
|
-
contents.IdempotencyToken = (0, smithy_client_1.expectString)(data.IdempotencyToken);
|
|
2618
|
-
}
|
|
2464
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2465
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2466
|
+
DeploymentStatus: smithy_client_1.expectString,
|
|
2467
|
+
FrameworkArn: smithy_client_1.expectString,
|
|
2468
|
+
FrameworkControls: smithy_client_1._json,
|
|
2469
|
+
FrameworkDescription: smithy_client_1.expectString,
|
|
2470
|
+
FrameworkName: smithy_client_1.expectString,
|
|
2471
|
+
FrameworkStatus: smithy_client_1.expectString,
|
|
2472
|
+
IdempotencyToken: smithy_client_1.expectString,
|
|
2473
|
+
});
|
|
2474
|
+
Object.assign(contents, doc);
|
|
2619
2475
|
return contents;
|
|
2620
2476
|
};
|
|
2621
2477
|
exports.de_DescribeFrameworkCommand = de_DescribeFrameworkCommand;
|
|
@@ -2640,10 +2496,9 @@ const de_DescribeFrameworkCommandError = async (output, context) => {
|
|
|
2640
2496
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2641
2497
|
default:
|
|
2642
2498
|
const parsedBody = parsedOutput.body;
|
|
2643
|
-
|
|
2499
|
+
return throwDefaultError({
|
|
2644
2500
|
output,
|
|
2645
2501
|
parsedBody,
|
|
2646
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2647
2502
|
errorCode,
|
|
2648
2503
|
});
|
|
2649
2504
|
}
|
|
@@ -2652,16 +2507,15 @@ const de_DescribeGlobalSettingsCommand = async (output, context) => {
|
|
|
2652
2507
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2653
2508
|
return de_DescribeGlobalSettingsCommandError(output, context);
|
|
2654
2509
|
}
|
|
2655
|
-
const contents = map({
|
|
2510
|
+
const contents = (0, smithy_client_1.map)({
|
|
2656
2511
|
$metadata: deserializeMetadata(output),
|
|
2657
2512
|
});
|
|
2658
2513
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
}
|
|
2514
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2515
|
+
GlobalSettings: smithy_client_1._json,
|
|
2516
|
+
LastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2517
|
+
});
|
|
2518
|
+
Object.assign(contents, doc);
|
|
2665
2519
|
return contents;
|
|
2666
2520
|
};
|
|
2667
2521
|
exports.de_DescribeGlobalSettingsCommand = de_DescribeGlobalSettingsCommand;
|
|
@@ -2680,10 +2534,9 @@ const de_DescribeGlobalSettingsCommandError = async (output, context) => {
|
|
|
2680
2534
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2681
2535
|
default:
|
|
2682
2536
|
const parsedBody = parsedOutput.body;
|
|
2683
|
-
|
|
2537
|
+
return throwDefaultError({
|
|
2684
2538
|
output,
|
|
2685
2539
|
parsedBody,
|
|
2686
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2687
2540
|
errorCode,
|
|
2688
2541
|
});
|
|
2689
2542
|
}
|
|
@@ -2692,22 +2545,17 @@ const de_DescribeProtectedResourceCommand = async (output, context) => {
|
|
|
2692
2545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2693
2546
|
return de_DescribeProtectedResourceCommandError(output, context);
|
|
2694
2547
|
}
|
|
2695
|
-
const contents = map({
|
|
2548
|
+
const contents = (0, smithy_client_1.map)({
|
|
2696
2549
|
$metadata: deserializeMetadata(output),
|
|
2697
2550
|
});
|
|
2698
2551
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
}
|
|
2705
|
-
|
|
2706
|
-
contents.ResourceName = (0, smithy_client_1.expectString)(data.ResourceName);
|
|
2707
|
-
}
|
|
2708
|
-
if (data.ResourceType != null) {
|
|
2709
|
-
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
2710
|
-
}
|
|
2552
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2553
|
+
LastBackupTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2554
|
+
ResourceArn: smithy_client_1.expectString,
|
|
2555
|
+
ResourceName: smithy_client_1.expectString,
|
|
2556
|
+
ResourceType: smithy_client_1.expectString,
|
|
2557
|
+
});
|
|
2558
|
+
Object.assign(contents, doc);
|
|
2711
2559
|
return contents;
|
|
2712
2560
|
};
|
|
2713
2561
|
exports.de_DescribeProtectedResourceCommand = de_DescribeProtectedResourceCommand;
|
|
@@ -2732,10 +2580,9 @@ const de_DescribeProtectedResourceCommandError = async (output, context) => {
|
|
|
2732
2580
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2733
2581
|
default:
|
|
2734
2582
|
const parsedBody = parsedOutput.body;
|
|
2735
|
-
|
|
2583
|
+
return throwDefaultError({
|
|
2736
2584
|
output,
|
|
2737
2585
|
parsedBody,
|
|
2738
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2739
2586
|
errorCode,
|
|
2740
2587
|
});
|
|
2741
2588
|
}
|
|
@@ -2744,79 +2591,36 @@ const de_DescribeRecoveryPointCommand = async (output, context) => {
|
|
|
2744
2591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2745
2592
|
return de_DescribeRecoveryPointCommandError(output, context);
|
|
2746
2593
|
}
|
|
2747
|
-
const contents = map({
|
|
2594
|
+
const contents = (0, smithy_client_1.map)({
|
|
2748
2595
|
$metadata: deserializeMetadata(output),
|
|
2749
2596
|
});
|
|
2750
2597
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
}
|
|
2778
|
-
if (data.IamRoleArn != null) {
|
|
2779
|
-
contents.IamRoleArn = (0, smithy_client_1.expectString)(data.IamRoleArn);
|
|
2780
|
-
}
|
|
2781
|
-
if (data.IsEncrypted != null) {
|
|
2782
|
-
contents.IsEncrypted = (0, smithy_client_1.expectBoolean)(data.IsEncrypted);
|
|
2783
|
-
}
|
|
2784
|
-
if (data.IsParent != null) {
|
|
2785
|
-
contents.IsParent = (0, smithy_client_1.expectBoolean)(data.IsParent);
|
|
2786
|
-
}
|
|
2787
|
-
if (data.LastRestoreTime != null) {
|
|
2788
|
-
contents.LastRestoreTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastRestoreTime)));
|
|
2789
|
-
}
|
|
2790
|
-
if (data.Lifecycle != null) {
|
|
2791
|
-
contents.Lifecycle = de_Lifecycle(data.Lifecycle, context);
|
|
2792
|
-
}
|
|
2793
|
-
if (data.ParentRecoveryPointArn != null) {
|
|
2794
|
-
contents.ParentRecoveryPointArn = (0, smithy_client_1.expectString)(data.ParentRecoveryPointArn);
|
|
2795
|
-
}
|
|
2796
|
-
if (data.RecoveryPointArn != null) {
|
|
2797
|
-
contents.RecoveryPointArn = (0, smithy_client_1.expectString)(data.RecoveryPointArn);
|
|
2798
|
-
}
|
|
2799
|
-
if (data.ResourceArn != null) {
|
|
2800
|
-
contents.ResourceArn = (0, smithy_client_1.expectString)(data.ResourceArn);
|
|
2801
|
-
}
|
|
2802
|
-
if (data.ResourceName != null) {
|
|
2803
|
-
contents.ResourceName = (0, smithy_client_1.expectString)(data.ResourceName);
|
|
2804
|
-
}
|
|
2805
|
-
if (data.ResourceType != null) {
|
|
2806
|
-
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
2807
|
-
}
|
|
2808
|
-
if (data.SourceBackupVaultArn != null) {
|
|
2809
|
-
contents.SourceBackupVaultArn = (0, smithy_client_1.expectString)(data.SourceBackupVaultArn);
|
|
2810
|
-
}
|
|
2811
|
-
if (data.Status != null) {
|
|
2812
|
-
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
2813
|
-
}
|
|
2814
|
-
if (data.StatusMessage != null) {
|
|
2815
|
-
contents.StatusMessage = (0, smithy_client_1.expectString)(data.StatusMessage);
|
|
2816
|
-
}
|
|
2817
|
-
if (data.StorageClass != null) {
|
|
2818
|
-
contents.StorageClass = (0, smithy_client_1.expectString)(data.StorageClass);
|
|
2819
|
-
}
|
|
2598
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2599
|
+
BackupSizeInBytes: smithy_client_1.expectLong,
|
|
2600
|
+
BackupVaultArn: smithy_client_1.expectString,
|
|
2601
|
+
BackupVaultName: smithy_client_1.expectString,
|
|
2602
|
+
CalculatedLifecycle: (_) => de_CalculatedLifecycle(_, context),
|
|
2603
|
+
CompletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2604
|
+
CompositeMemberIdentifier: smithy_client_1.expectString,
|
|
2605
|
+
CreatedBy: smithy_client_1._json,
|
|
2606
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2607
|
+
EncryptionKeyArn: smithy_client_1.expectString,
|
|
2608
|
+
IamRoleArn: smithy_client_1.expectString,
|
|
2609
|
+
IsEncrypted: smithy_client_1.expectBoolean,
|
|
2610
|
+
IsParent: smithy_client_1.expectBoolean,
|
|
2611
|
+
LastRestoreTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2612
|
+
Lifecycle: smithy_client_1._json,
|
|
2613
|
+
ParentRecoveryPointArn: smithy_client_1.expectString,
|
|
2614
|
+
RecoveryPointArn: smithy_client_1.expectString,
|
|
2615
|
+
ResourceArn: smithy_client_1.expectString,
|
|
2616
|
+
ResourceName: smithy_client_1.expectString,
|
|
2617
|
+
ResourceType: smithy_client_1.expectString,
|
|
2618
|
+
SourceBackupVaultArn: smithy_client_1.expectString,
|
|
2619
|
+
Status: smithy_client_1.expectString,
|
|
2620
|
+
StatusMessage: smithy_client_1.expectString,
|
|
2621
|
+
StorageClass: smithy_client_1.expectString,
|
|
2622
|
+
});
|
|
2623
|
+
Object.assign(contents, doc);
|
|
2820
2624
|
return contents;
|
|
2821
2625
|
};
|
|
2822
2626
|
exports.de_DescribeRecoveryPointCommand = de_DescribeRecoveryPointCommand;
|
|
@@ -2841,10 +2645,9 @@ const de_DescribeRecoveryPointCommandError = async (output, context) => {
|
|
|
2841
2645
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2842
2646
|
default:
|
|
2843
2647
|
const parsedBody = parsedOutput.body;
|
|
2844
|
-
|
|
2648
|
+
return throwDefaultError({
|
|
2845
2649
|
output,
|
|
2846
2650
|
parsedBody,
|
|
2847
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2848
2651
|
errorCode,
|
|
2849
2652
|
});
|
|
2850
2653
|
}
|
|
@@ -2853,16 +2656,15 @@ const de_DescribeRegionSettingsCommand = async (output, context) => {
|
|
|
2853
2656
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2854
2657
|
return de_DescribeRegionSettingsCommandError(output, context);
|
|
2855
2658
|
}
|
|
2856
|
-
const contents = map({
|
|
2659
|
+
const contents = (0, smithy_client_1.map)({
|
|
2857
2660
|
$metadata: deserializeMetadata(output),
|
|
2858
2661
|
});
|
|
2859
2662
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
}
|
|
2663
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2664
|
+
ResourceTypeManagementPreference: smithy_client_1._json,
|
|
2665
|
+
ResourceTypeOptInPreference: smithy_client_1._json,
|
|
2666
|
+
});
|
|
2667
|
+
Object.assign(contents, doc);
|
|
2866
2668
|
return contents;
|
|
2867
2669
|
};
|
|
2868
2670
|
exports.de_DescribeRegionSettingsCommand = de_DescribeRegionSettingsCommand;
|
|
@@ -2878,10 +2680,9 @@ const de_DescribeRegionSettingsCommandError = async (output, context) => {
|
|
|
2878
2680
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2879
2681
|
default:
|
|
2880
2682
|
const parsedBody = parsedOutput.body;
|
|
2881
|
-
|
|
2683
|
+
return throwDefaultError({
|
|
2882
2684
|
output,
|
|
2883
2685
|
parsedBody,
|
|
2884
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2885
2686
|
errorCode,
|
|
2886
2687
|
});
|
|
2887
2688
|
}
|
|
@@ -2890,13 +2691,14 @@ const de_DescribeReportJobCommand = async (output, context) => {
|
|
|
2890
2691
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2891
2692
|
return de_DescribeReportJobCommandError(output, context);
|
|
2892
2693
|
}
|
|
2893
|
-
const contents = map({
|
|
2694
|
+
const contents = (0, smithy_client_1.map)({
|
|
2894
2695
|
$metadata: deserializeMetadata(output),
|
|
2895
2696
|
});
|
|
2896
2697
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
}
|
|
2698
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2699
|
+
ReportJob: (_) => de_ReportJob(_, context),
|
|
2700
|
+
});
|
|
2701
|
+
Object.assign(contents, doc);
|
|
2900
2702
|
return contents;
|
|
2901
2703
|
};
|
|
2902
2704
|
exports.de_DescribeReportJobCommand = de_DescribeReportJobCommand;
|
|
@@ -2918,10 +2720,9 @@ const de_DescribeReportJobCommandError = async (output, context) => {
|
|
|
2918
2720
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2919
2721
|
default:
|
|
2920
2722
|
const parsedBody = parsedOutput.body;
|
|
2921
|
-
|
|
2723
|
+
return throwDefaultError({
|
|
2922
2724
|
output,
|
|
2923
2725
|
parsedBody,
|
|
2924
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2925
2726
|
errorCode,
|
|
2926
2727
|
});
|
|
2927
2728
|
}
|
|
@@ -2930,13 +2731,14 @@ const de_DescribeReportPlanCommand = async (output, context) => {
|
|
|
2930
2731
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2931
2732
|
return de_DescribeReportPlanCommandError(output, context);
|
|
2932
2733
|
}
|
|
2933
|
-
const contents = map({
|
|
2734
|
+
const contents = (0, smithy_client_1.map)({
|
|
2934
2735
|
$metadata: deserializeMetadata(output),
|
|
2935
2736
|
});
|
|
2936
2737
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
}
|
|
2738
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2739
|
+
ReportPlan: (_) => de_ReportPlan(_, context),
|
|
2740
|
+
});
|
|
2741
|
+
Object.assign(contents, doc);
|
|
2940
2742
|
return contents;
|
|
2941
2743
|
};
|
|
2942
2744
|
exports.de_DescribeReportPlanCommand = de_DescribeReportPlanCommand;
|
|
@@ -2961,10 +2763,9 @@ const de_DescribeReportPlanCommandError = async (output, context) => {
|
|
|
2961
2763
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2962
2764
|
default:
|
|
2963
2765
|
const parsedBody = parsedOutput.body;
|
|
2964
|
-
|
|
2766
|
+
return throwDefaultError({
|
|
2965
2767
|
output,
|
|
2966
2768
|
parsedBody,
|
|
2967
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
2968
2769
|
errorCode,
|
|
2969
2770
|
});
|
|
2970
2771
|
}
|
|
@@ -2973,49 +2774,26 @@ const de_DescribeRestoreJobCommand = async (output, context) => {
|
|
|
2973
2774
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2974
2775
|
return de_DescribeRestoreJobCommandError(output, context);
|
|
2975
2776
|
}
|
|
2976
|
-
const contents = map({
|
|
2777
|
+
const contents = (0, smithy_client_1.map)({
|
|
2977
2778
|
$metadata: deserializeMetadata(output),
|
|
2978
2779
|
});
|
|
2979
2780
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
}
|
|
2995
|
-
|
|
2996
|
-
contents.ExpectedCompletionTimeMinutes = (0, smithy_client_1.expectLong)(data.ExpectedCompletionTimeMinutes);
|
|
2997
|
-
}
|
|
2998
|
-
if (data.IamRoleArn != null) {
|
|
2999
|
-
contents.IamRoleArn = (0, smithy_client_1.expectString)(data.IamRoleArn);
|
|
3000
|
-
}
|
|
3001
|
-
if (data.PercentDone != null) {
|
|
3002
|
-
contents.PercentDone = (0, smithy_client_1.expectString)(data.PercentDone);
|
|
3003
|
-
}
|
|
3004
|
-
if (data.RecoveryPointArn != null) {
|
|
3005
|
-
contents.RecoveryPointArn = (0, smithy_client_1.expectString)(data.RecoveryPointArn);
|
|
3006
|
-
}
|
|
3007
|
-
if (data.ResourceType != null) {
|
|
3008
|
-
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
3009
|
-
}
|
|
3010
|
-
if (data.RestoreJobId != null) {
|
|
3011
|
-
contents.RestoreJobId = (0, smithy_client_1.expectString)(data.RestoreJobId);
|
|
3012
|
-
}
|
|
3013
|
-
if (data.Status != null) {
|
|
3014
|
-
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
3015
|
-
}
|
|
3016
|
-
if (data.StatusMessage != null) {
|
|
3017
|
-
contents.StatusMessage = (0, smithy_client_1.expectString)(data.StatusMessage);
|
|
3018
|
-
}
|
|
2781
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2782
|
+
AccountId: smithy_client_1.expectString,
|
|
2783
|
+
BackupSizeInBytes: smithy_client_1.expectLong,
|
|
2784
|
+
CompletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2785
|
+
CreatedResourceArn: smithy_client_1.expectString,
|
|
2786
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2787
|
+
ExpectedCompletionTimeMinutes: smithy_client_1.expectLong,
|
|
2788
|
+
IamRoleArn: smithy_client_1.expectString,
|
|
2789
|
+
PercentDone: smithy_client_1.expectString,
|
|
2790
|
+
RecoveryPointArn: smithy_client_1.expectString,
|
|
2791
|
+
ResourceType: smithy_client_1.expectString,
|
|
2792
|
+
RestoreJobId: smithy_client_1.expectString,
|
|
2793
|
+
Status: smithy_client_1.expectString,
|
|
2794
|
+
StatusMessage: smithy_client_1.expectString,
|
|
2795
|
+
});
|
|
2796
|
+
Object.assign(contents, doc);
|
|
3019
2797
|
return contents;
|
|
3020
2798
|
};
|
|
3021
2799
|
exports.de_DescribeRestoreJobCommand = de_DescribeRestoreJobCommand;
|
|
@@ -3043,10 +2821,9 @@ const de_DescribeRestoreJobCommandError = async (output, context) => {
|
|
|
3043
2821
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3044
2822
|
default:
|
|
3045
2823
|
const parsedBody = parsedOutput.body;
|
|
3046
|
-
|
|
2824
|
+
return throwDefaultError({
|
|
3047
2825
|
output,
|
|
3048
2826
|
parsedBody,
|
|
3049
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3050
2827
|
errorCode,
|
|
3051
2828
|
});
|
|
3052
2829
|
}
|
|
@@ -3055,7 +2832,7 @@ const de_DisassociateRecoveryPointCommand = async (output, context) => {
|
|
|
3055
2832
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3056
2833
|
return de_DisassociateRecoveryPointCommandError(output, context);
|
|
3057
2834
|
}
|
|
3058
|
-
const contents = map({
|
|
2835
|
+
const contents = (0, smithy_client_1.map)({
|
|
3059
2836
|
$metadata: deserializeMetadata(output),
|
|
3060
2837
|
});
|
|
3061
2838
|
await collectBody(output.body, context);
|
|
@@ -3089,10 +2866,9 @@ const de_DisassociateRecoveryPointCommandError = async (output, context) => {
|
|
|
3089
2866
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3090
2867
|
default:
|
|
3091
2868
|
const parsedBody = parsedOutput.body;
|
|
3092
|
-
|
|
2869
|
+
return throwDefaultError({
|
|
3093
2870
|
output,
|
|
3094
2871
|
parsedBody,
|
|
3095
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3096
2872
|
errorCode,
|
|
3097
2873
|
});
|
|
3098
2874
|
}
|
|
@@ -3101,7 +2877,7 @@ const de_DisassociateRecoveryPointFromParentCommand = async (output, context) =>
|
|
|
3101
2877
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3102
2878
|
return de_DisassociateRecoveryPointFromParentCommandError(output, context);
|
|
3103
2879
|
}
|
|
3104
|
-
const contents = map({
|
|
2880
|
+
const contents = (0, smithy_client_1.map)({
|
|
3105
2881
|
$metadata: deserializeMetadata(output),
|
|
3106
2882
|
});
|
|
3107
2883
|
await collectBody(output.body, context);
|
|
@@ -3132,10 +2908,9 @@ const de_DisassociateRecoveryPointFromParentCommandError = async (output, contex
|
|
|
3132
2908
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3133
2909
|
default:
|
|
3134
2910
|
const parsedBody = parsedOutput.body;
|
|
3135
|
-
|
|
2911
|
+
return throwDefaultError({
|
|
3136
2912
|
output,
|
|
3137
2913
|
parsedBody,
|
|
3138
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3139
2914
|
errorCode,
|
|
3140
2915
|
});
|
|
3141
2916
|
}
|
|
@@ -3144,13 +2919,14 @@ const de_ExportBackupPlanTemplateCommand = async (output, context) => {
|
|
|
3144
2919
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3145
2920
|
return de_ExportBackupPlanTemplateCommandError(output, context);
|
|
3146
2921
|
}
|
|
3147
|
-
const contents = map({
|
|
2922
|
+
const contents = (0, smithy_client_1.map)({
|
|
3148
2923
|
$metadata: deserializeMetadata(output),
|
|
3149
2924
|
});
|
|
3150
2925
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
}
|
|
2926
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2927
|
+
BackupPlanTemplateJson: smithy_client_1.expectString,
|
|
2928
|
+
});
|
|
2929
|
+
Object.assign(contents, doc);
|
|
3154
2930
|
return contents;
|
|
3155
2931
|
};
|
|
3156
2932
|
exports.de_ExportBackupPlanTemplateCommand = de_ExportBackupPlanTemplateCommand;
|
|
@@ -3175,10 +2951,9 @@ const de_ExportBackupPlanTemplateCommandError = async (output, context) => {
|
|
|
3175
2951
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3176
2952
|
default:
|
|
3177
2953
|
const parsedBody = parsedOutput.body;
|
|
3178
|
-
|
|
2954
|
+
return throwDefaultError({
|
|
3179
2955
|
output,
|
|
3180
2956
|
parsedBody,
|
|
3181
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3182
2957
|
errorCode,
|
|
3183
2958
|
});
|
|
3184
2959
|
}
|
|
@@ -3187,37 +2962,22 @@ const de_GetBackupPlanCommand = async (output, context) => {
|
|
|
3187
2962
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3188
2963
|
return de_GetBackupPlanCommandError(output, context);
|
|
3189
2964
|
}
|
|
3190
|
-
const contents = map({
|
|
2965
|
+
const contents = (0, smithy_client_1.map)({
|
|
3191
2966
|
$metadata: deserializeMetadata(output),
|
|
3192
2967
|
});
|
|
3193
2968
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
if (data.CreationDate != null) {
|
|
3207
|
-
contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
|
|
3208
|
-
}
|
|
3209
|
-
if (data.CreatorRequestId != null) {
|
|
3210
|
-
contents.CreatorRequestId = (0, smithy_client_1.expectString)(data.CreatorRequestId);
|
|
3211
|
-
}
|
|
3212
|
-
if (data.DeletionDate != null) {
|
|
3213
|
-
contents.DeletionDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.DeletionDate)));
|
|
3214
|
-
}
|
|
3215
|
-
if (data.LastExecutionDate != null) {
|
|
3216
|
-
contents.LastExecutionDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastExecutionDate)));
|
|
3217
|
-
}
|
|
3218
|
-
if (data.VersionId != null) {
|
|
3219
|
-
contents.VersionId = (0, smithy_client_1.expectString)(data.VersionId);
|
|
3220
|
-
}
|
|
2969
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2970
|
+
AdvancedBackupSettings: smithy_client_1._json,
|
|
2971
|
+
BackupPlan: smithy_client_1._json,
|
|
2972
|
+
BackupPlanArn: smithy_client_1.expectString,
|
|
2973
|
+
BackupPlanId: smithy_client_1.expectString,
|
|
2974
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2975
|
+
CreatorRequestId: smithy_client_1.expectString,
|
|
2976
|
+
DeletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2977
|
+
LastExecutionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2978
|
+
VersionId: smithy_client_1.expectString,
|
|
2979
|
+
});
|
|
2980
|
+
Object.assign(contents, doc);
|
|
3221
2981
|
return contents;
|
|
3222
2982
|
};
|
|
3223
2983
|
exports.de_GetBackupPlanCommand = de_GetBackupPlanCommand;
|
|
@@ -3242,10 +3002,9 @@ const de_GetBackupPlanCommandError = async (output, context) => {
|
|
|
3242
3002
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3243
3003
|
default:
|
|
3244
3004
|
const parsedBody = parsedOutput.body;
|
|
3245
|
-
|
|
3005
|
+
return throwDefaultError({
|
|
3246
3006
|
output,
|
|
3247
3007
|
parsedBody,
|
|
3248
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3249
3008
|
errorCode,
|
|
3250
3009
|
});
|
|
3251
3010
|
}
|
|
@@ -3254,13 +3013,14 @@ const de_GetBackupPlanFromJSONCommand = async (output, context) => {
|
|
|
3254
3013
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3255
3014
|
return de_GetBackupPlanFromJSONCommandError(output, context);
|
|
3256
3015
|
}
|
|
3257
|
-
const contents = map({
|
|
3016
|
+
const contents = (0, smithy_client_1.map)({
|
|
3258
3017
|
$metadata: deserializeMetadata(output),
|
|
3259
3018
|
});
|
|
3260
3019
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
}
|
|
3020
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3021
|
+
BackupPlan: smithy_client_1._json,
|
|
3022
|
+
});
|
|
3023
|
+
Object.assign(contents, doc);
|
|
3264
3024
|
return contents;
|
|
3265
3025
|
};
|
|
3266
3026
|
exports.de_GetBackupPlanFromJSONCommand = de_GetBackupPlanFromJSONCommand;
|
|
@@ -3288,10 +3048,9 @@ const de_GetBackupPlanFromJSONCommandError = async (output, context) => {
|
|
|
3288
3048
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3289
3049
|
default:
|
|
3290
3050
|
const parsedBody = parsedOutput.body;
|
|
3291
|
-
|
|
3051
|
+
return throwDefaultError({
|
|
3292
3052
|
output,
|
|
3293
3053
|
parsedBody,
|
|
3294
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3295
3054
|
errorCode,
|
|
3296
3055
|
});
|
|
3297
3056
|
}
|
|
@@ -3300,13 +3059,14 @@ const de_GetBackupPlanFromTemplateCommand = async (output, context) => {
|
|
|
3300
3059
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3301
3060
|
return de_GetBackupPlanFromTemplateCommandError(output, context);
|
|
3302
3061
|
}
|
|
3303
|
-
const contents = map({
|
|
3062
|
+
const contents = (0, smithy_client_1.map)({
|
|
3304
3063
|
$metadata: deserializeMetadata(output),
|
|
3305
3064
|
});
|
|
3306
3065
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
}
|
|
3066
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3067
|
+
BackupPlanDocument: smithy_client_1._json,
|
|
3068
|
+
});
|
|
3069
|
+
Object.assign(contents, doc);
|
|
3310
3070
|
return contents;
|
|
3311
3071
|
};
|
|
3312
3072
|
exports.de_GetBackupPlanFromTemplateCommand = de_GetBackupPlanFromTemplateCommand;
|
|
@@ -3331,10 +3091,9 @@ const de_GetBackupPlanFromTemplateCommandError = async (output, context) => {
|
|
|
3331
3091
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3332
3092
|
default:
|
|
3333
3093
|
const parsedBody = parsedOutput.body;
|
|
3334
|
-
|
|
3094
|
+
return throwDefaultError({
|
|
3335
3095
|
output,
|
|
3336
3096
|
parsedBody,
|
|
3337
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3338
3097
|
errorCode,
|
|
3339
3098
|
});
|
|
3340
3099
|
}
|
|
@@ -3343,25 +3102,18 @@ const de_GetBackupSelectionCommand = async (output, context) => {
|
|
|
3343
3102
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3344
3103
|
return de_GetBackupSelectionCommandError(output, context);
|
|
3345
3104
|
}
|
|
3346
|
-
const contents = map({
|
|
3105
|
+
const contents = (0, smithy_client_1.map)({
|
|
3347
3106
|
$metadata: deserializeMetadata(output),
|
|
3348
3107
|
});
|
|
3349
3108
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
}
|
|
3359
|
-
if (data.CreatorRequestId != null) {
|
|
3360
|
-
contents.CreatorRequestId = (0, smithy_client_1.expectString)(data.CreatorRequestId);
|
|
3361
|
-
}
|
|
3362
|
-
if (data.SelectionId != null) {
|
|
3363
|
-
contents.SelectionId = (0, smithy_client_1.expectString)(data.SelectionId);
|
|
3364
|
-
}
|
|
3109
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3110
|
+
BackupPlanId: smithy_client_1.expectString,
|
|
3111
|
+
BackupSelection: smithy_client_1._json,
|
|
3112
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3113
|
+
CreatorRequestId: smithy_client_1.expectString,
|
|
3114
|
+
SelectionId: smithy_client_1.expectString,
|
|
3115
|
+
});
|
|
3116
|
+
Object.assign(contents, doc);
|
|
3365
3117
|
return contents;
|
|
3366
3118
|
};
|
|
3367
3119
|
exports.de_GetBackupSelectionCommand = de_GetBackupSelectionCommand;
|
|
@@ -3386,10 +3138,9 @@ const de_GetBackupSelectionCommandError = async (output, context) => {
|
|
|
3386
3138
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3387
3139
|
default:
|
|
3388
3140
|
const parsedBody = parsedOutput.body;
|
|
3389
|
-
|
|
3141
|
+
return throwDefaultError({
|
|
3390
3142
|
output,
|
|
3391
3143
|
parsedBody,
|
|
3392
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3393
3144
|
errorCode,
|
|
3394
3145
|
});
|
|
3395
3146
|
}
|
|
@@ -3398,19 +3149,16 @@ const de_GetBackupVaultAccessPolicyCommand = async (output, context) => {
|
|
|
3398
3149
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3399
3150
|
return de_GetBackupVaultAccessPolicyCommandError(output, context);
|
|
3400
3151
|
}
|
|
3401
|
-
const contents = map({
|
|
3152
|
+
const contents = (0, smithy_client_1.map)({
|
|
3402
3153
|
$metadata: deserializeMetadata(output),
|
|
3403
3154
|
});
|
|
3404
3155
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
if (data.Policy != null) {
|
|
3412
|
-
contents.Policy = (0, smithy_client_1.expectString)(data.Policy);
|
|
3413
|
-
}
|
|
3156
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3157
|
+
BackupVaultArn: smithy_client_1.expectString,
|
|
3158
|
+
BackupVaultName: smithy_client_1.expectString,
|
|
3159
|
+
Policy: smithy_client_1.expectString,
|
|
3160
|
+
});
|
|
3161
|
+
Object.assign(contents, doc);
|
|
3414
3162
|
return contents;
|
|
3415
3163
|
};
|
|
3416
3164
|
exports.de_GetBackupVaultAccessPolicyCommand = de_GetBackupVaultAccessPolicyCommand;
|
|
@@ -3435,10 +3183,9 @@ const de_GetBackupVaultAccessPolicyCommandError = async (output, context) => {
|
|
|
3435
3183
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3436
3184
|
default:
|
|
3437
3185
|
const parsedBody = parsedOutput.body;
|
|
3438
|
-
|
|
3186
|
+
return throwDefaultError({
|
|
3439
3187
|
output,
|
|
3440
3188
|
parsedBody,
|
|
3441
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3442
3189
|
errorCode,
|
|
3443
3190
|
});
|
|
3444
3191
|
}
|
|
@@ -3447,22 +3194,17 @@ const de_GetBackupVaultNotificationsCommand = async (output, context) => {
|
|
|
3447
3194
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3448
3195
|
return de_GetBackupVaultNotificationsCommandError(output, context);
|
|
3449
3196
|
}
|
|
3450
|
-
const contents = map({
|
|
3197
|
+
const contents = (0, smithy_client_1.map)({
|
|
3451
3198
|
$metadata: deserializeMetadata(output),
|
|
3452
3199
|
});
|
|
3453
3200
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
}
|
|
3460
|
-
|
|
3461
|
-
contents.BackupVaultName = (0, smithy_client_1.expectString)(data.BackupVaultName);
|
|
3462
|
-
}
|
|
3463
|
-
if (data.SNSTopicArn != null) {
|
|
3464
|
-
contents.SNSTopicArn = (0, smithy_client_1.expectString)(data.SNSTopicArn);
|
|
3465
|
-
}
|
|
3201
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3202
|
+
BackupVaultArn: smithy_client_1.expectString,
|
|
3203
|
+
BackupVaultEvents: smithy_client_1._json,
|
|
3204
|
+
BackupVaultName: smithy_client_1.expectString,
|
|
3205
|
+
SNSTopicArn: smithy_client_1.expectString,
|
|
3206
|
+
});
|
|
3207
|
+
Object.assign(contents, doc);
|
|
3466
3208
|
return contents;
|
|
3467
3209
|
};
|
|
3468
3210
|
exports.de_GetBackupVaultNotificationsCommand = de_GetBackupVaultNotificationsCommand;
|
|
@@ -3487,10 +3229,9 @@ const de_GetBackupVaultNotificationsCommandError = async (output, context) => {
|
|
|
3487
3229
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3488
3230
|
default:
|
|
3489
3231
|
const parsedBody = parsedOutput.body;
|
|
3490
|
-
|
|
3232
|
+
return throwDefaultError({
|
|
3491
3233
|
output,
|
|
3492
3234
|
parsedBody,
|
|
3493
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3494
3235
|
errorCode,
|
|
3495
3236
|
});
|
|
3496
3237
|
}
|
|
@@ -3499,40 +3240,23 @@ const de_GetLegalHoldCommand = async (output, context) => {
|
|
|
3499
3240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3500
3241
|
return de_GetLegalHoldCommandError(output, context);
|
|
3501
3242
|
}
|
|
3502
|
-
const contents = map({
|
|
3243
|
+
const contents = (0, smithy_client_1.map)({
|
|
3503
3244
|
$metadata: deserializeMetadata(output),
|
|
3504
3245
|
});
|
|
3505
3246
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
}
|
|
3518
|
-
|
|
3519
|
-
contents.LegalHoldArn = (0, smithy_client_1.expectString)(data.LegalHoldArn);
|
|
3520
|
-
}
|
|
3521
|
-
if (data.LegalHoldId != null) {
|
|
3522
|
-
contents.LegalHoldId = (0, smithy_client_1.expectString)(data.LegalHoldId);
|
|
3523
|
-
}
|
|
3524
|
-
if (data.RecoveryPointSelection != null) {
|
|
3525
|
-
contents.RecoveryPointSelection = de_RecoveryPointSelection(data.RecoveryPointSelection, context);
|
|
3526
|
-
}
|
|
3527
|
-
if (data.RetainRecordUntil != null) {
|
|
3528
|
-
contents.RetainRecordUntil = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.RetainRecordUntil)));
|
|
3529
|
-
}
|
|
3530
|
-
if (data.Status != null) {
|
|
3531
|
-
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
3532
|
-
}
|
|
3533
|
-
if (data.Title != null) {
|
|
3534
|
-
contents.Title = (0, smithy_client_1.expectString)(data.Title);
|
|
3535
|
-
}
|
|
3247
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3248
|
+
CancelDescription: smithy_client_1.expectString,
|
|
3249
|
+
CancellationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3250
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3251
|
+
Description: smithy_client_1.expectString,
|
|
3252
|
+
LegalHoldArn: smithy_client_1.expectString,
|
|
3253
|
+
LegalHoldId: smithy_client_1.expectString,
|
|
3254
|
+
RecoveryPointSelection: (_) => de_RecoveryPointSelection(_, context),
|
|
3255
|
+
RetainRecordUntil: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3256
|
+
Status: smithy_client_1.expectString,
|
|
3257
|
+
Title: smithy_client_1.expectString,
|
|
3258
|
+
});
|
|
3259
|
+
Object.assign(contents, doc);
|
|
3536
3260
|
return contents;
|
|
3537
3261
|
};
|
|
3538
3262
|
exports.de_GetLegalHoldCommand = de_GetLegalHoldCommand;
|
|
@@ -3557,10 +3281,9 @@ const de_GetLegalHoldCommandError = async (output, context) => {
|
|
|
3557
3281
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3558
3282
|
default:
|
|
3559
3283
|
const parsedBody = parsedOutput.body;
|
|
3560
|
-
|
|
3284
|
+
return throwDefaultError({
|
|
3561
3285
|
output,
|
|
3562
3286
|
parsedBody,
|
|
3563
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3564
3287
|
errorCode,
|
|
3565
3288
|
});
|
|
3566
3289
|
}
|
|
@@ -3569,19 +3292,16 @@ const de_GetRecoveryPointRestoreMetadataCommand = async (output, context) => {
|
|
|
3569
3292
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3570
3293
|
return de_GetRecoveryPointRestoreMetadataCommandError(output, context);
|
|
3571
3294
|
}
|
|
3572
|
-
const contents = map({
|
|
3295
|
+
const contents = (0, smithy_client_1.map)({
|
|
3573
3296
|
$metadata: deserializeMetadata(output),
|
|
3574
3297
|
});
|
|
3575
3298
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
if (data.RestoreMetadata != null) {
|
|
3583
|
-
contents.RestoreMetadata = de_Metadata(data.RestoreMetadata, context);
|
|
3584
|
-
}
|
|
3299
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3300
|
+
BackupVaultArn: smithy_client_1.expectString,
|
|
3301
|
+
RecoveryPointArn: smithy_client_1.expectString,
|
|
3302
|
+
RestoreMetadata: smithy_client_1._json,
|
|
3303
|
+
});
|
|
3304
|
+
Object.assign(contents, doc);
|
|
3585
3305
|
return contents;
|
|
3586
3306
|
};
|
|
3587
3307
|
exports.de_GetRecoveryPointRestoreMetadataCommand = de_GetRecoveryPointRestoreMetadataCommand;
|
|
@@ -3606,10 +3326,9 @@ const de_GetRecoveryPointRestoreMetadataCommandError = async (output, context) =
|
|
|
3606
3326
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3607
3327
|
default:
|
|
3608
3328
|
const parsedBody = parsedOutput.body;
|
|
3609
|
-
|
|
3329
|
+
return throwDefaultError({
|
|
3610
3330
|
output,
|
|
3611
3331
|
parsedBody,
|
|
3612
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3613
3332
|
errorCode,
|
|
3614
3333
|
});
|
|
3615
3334
|
}
|
|
@@ -3618,13 +3337,14 @@ const de_GetSupportedResourceTypesCommand = async (output, context) => {
|
|
|
3618
3337
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3619
3338
|
return de_GetSupportedResourceTypesCommandError(output, context);
|
|
3620
3339
|
}
|
|
3621
|
-
const contents = map({
|
|
3340
|
+
const contents = (0, smithy_client_1.map)({
|
|
3622
3341
|
$metadata: deserializeMetadata(output),
|
|
3623
3342
|
});
|
|
3624
3343
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
}
|
|
3344
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3345
|
+
ResourceTypes: smithy_client_1._json,
|
|
3346
|
+
});
|
|
3347
|
+
Object.assign(contents, doc);
|
|
3628
3348
|
return contents;
|
|
3629
3349
|
};
|
|
3630
3350
|
exports.de_GetSupportedResourceTypesCommand = de_GetSupportedResourceTypesCommand;
|
|
@@ -3640,10 +3360,9 @@ const de_GetSupportedResourceTypesCommandError = async (output, context) => {
|
|
|
3640
3360
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3641
3361
|
default:
|
|
3642
3362
|
const parsedBody = parsedOutput.body;
|
|
3643
|
-
|
|
3363
|
+
return throwDefaultError({
|
|
3644
3364
|
output,
|
|
3645
3365
|
parsedBody,
|
|
3646
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3647
3366
|
errorCode,
|
|
3648
3367
|
});
|
|
3649
3368
|
}
|
|
@@ -3652,16 +3371,15 @@ const de_ListBackupJobsCommand = async (output, context) => {
|
|
|
3652
3371
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3653
3372
|
return de_ListBackupJobsCommandError(output, context);
|
|
3654
3373
|
}
|
|
3655
|
-
const contents = map({
|
|
3374
|
+
const contents = (0, smithy_client_1.map)({
|
|
3656
3375
|
$metadata: deserializeMetadata(output),
|
|
3657
3376
|
});
|
|
3658
3377
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
}
|
|
3378
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3379
|
+
BackupJobs: (_) => de_BackupJobsList(_, context),
|
|
3380
|
+
NextToken: smithy_client_1.expectString,
|
|
3381
|
+
});
|
|
3382
|
+
Object.assign(contents, doc);
|
|
3665
3383
|
return contents;
|
|
3666
3384
|
};
|
|
3667
3385
|
exports.de_ListBackupJobsCommand = de_ListBackupJobsCommand;
|
|
@@ -3680,10 +3398,9 @@ const de_ListBackupJobsCommandError = async (output, context) => {
|
|
|
3680
3398
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3681
3399
|
default:
|
|
3682
3400
|
const parsedBody = parsedOutput.body;
|
|
3683
|
-
|
|
3401
|
+
return throwDefaultError({
|
|
3684
3402
|
output,
|
|
3685
3403
|
parsedBody,
|
|
3686
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3687
3404
|
errorCode,
|
|
3688
3405
|
});
|
|
3689
3406
|
}
|
|
@@ -3692,16 +3409,15 @@ const de_ListBackupPlansCommand = async (output, context) => {
|
|
|
3692
3409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3693
3410
|
return de_ListBackupPlansCommandError(output, context);
|
|
3694
3411
|
}
|
|
3695
|
-
const contents = map({
|
|
3412
|
+
const contents = (0, smithy_client_1.map)({
|
|
3696
3413
|
$metadata: deserializeMetadata(output),
|
|
3697
3414
|
});
|
|
3698
3415
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
}
|
|
3416
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3417
|
+
BackupPlansList: (_) => de_BackupPlansList(_, context),
|
|
3418
|
+
NextToken: smithy_client_1.expectString,
|
|
3419
|
+
});
|
|
3420
|
+
Object.assign(contents, doc);
|
|
3705
3421
|
return contents;
|
|
3706
3422
|
};
|
|
3707
3423
|
exports.de_ListBackupPlansCommand = de_ListBackupPlansCommand;
|
|
@@ -3726,10 +3442,9 @@ const de_ListBackupPlansCommandError = async (output, context) => {
|
|
|
3726
3442
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3727
3443
|
default:
|
|
3728
3444
|
const parsedBody = parsedOutput.body;
|
|
3729
|
-
|
|
3445
|
+
return throwDefaultError({
|
|
3730
3446
|
output,
|
|
3731
3447
|
parsedBody,
|
|
3732
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3733
3448
|
errorCode,
|
|
3734
3449
|
});
|
|
3735
3450
|
}
|
|
@@ -3738,16 +3453,15 @@ const de_ListBackupPlanTemplatesCommand = async (output, context) => {
|
|
|
3738
3453
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3739
3454
|
return de_ListBackupPlanTemplatesCommandError(output, context);
|
|
3740
3455
|
}
|
|
3741
|
-
const contents = map({
|
|
3456
|
+
const contents = (0, smithy_client_1.map)({
|
|
3742
3457
|
$metadata: deserializeMetadata(output),
|
|
3743
3458
|
});
|
|
3744
3459
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
}
|
|
3460
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3461
|
+
BackupPlanTemplatesList: smithy_client_1._json,
|
|
3462
|
+
NextToken: smithy_client_1.expectString,
|
|
3463
|
+
});
|
|
3464
|
+
Object.assign(contents, doc);
|
|
3751
3465
|
return contents;
|
|
3752
3466
|
};
|
|
3753
3467
|
exports.de_ListBackupPlanTemplatesCommand = de_ListBackupPlanTemplatesCommand;
|
|
@@ -3772,10 +3486,9 @@ const de_ListBackupPlanTemplatesCommandError = async (output, context) => {
|
|
|
3772
3486
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3773
3487
|
default:
|
|
3774
3488
|
const parsedBody = parsedOutput.body;
|
|
3775
|
-
|
|
3489
|
+
return throwDefaultError({
|
|
3776
3490
|
output,
|
|
3777
3491
|
parsedBody,
|
|
3778
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3779
3492
|
errorCode,
|
|
3780
3493
|
});
|
|
3781
3494
|
}
|
|
@@ -3784,16 +3497,15 @@ const de_ListBackupPlanVersionsCommand = async (output, context) => {
|
|
|
3784
3497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3785
3498
|
return de_ListBackupPlanVersionsCommandError(output, context);
|
|
3786
3499
|
}
|
|
3787
|
-
const contents = map({
|
|
3500
|
+
const contents = (0, smithy_client_1.map)({
|
|
3788
3501
|
$metadata: deserializeMetadata(output),
|
|
3789
3502
|
});
|
|
3790
3503
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
}
|
|
3504
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3505
|
+
BackupPlanVersionsList: (_) => de_BackupPlanVersionsList(_, context),
|
|
3506
|
+
NextToken: smithy_client_1.expectString,
|
|
3507
|
+
});
|
|
3508
|
+
Object.assign(contents, doc);
|
|
3797
3509
|
return contents;
|
|
3798
3510
|
};
|
|
3799
3511
|
exports.de_ListBackupPlanVersionsCommand = de_ListBackupPlanVersionsCommand;
|
|
@@ -3818,10 +3530,9 @@ const de_ListBackupPlanVersionsCommandError = async (output, context) => {
|
|
|
3818
3530
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3819
3531
|
default:
|
|
3820
3532
|
const parsedBody = parsedOutput.body;
|
|
3821
|
-
|
|
3533
|
+
return throwDefaultError({
|
|
3822
3534
|
output,
|
|
3823
3535
|
parsedBody,
|
|
3824
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3825
3536
|
errorCode,
|
|
3826
3537
|
});
|
|
3827
3538
|
}
|
|
@@ -3830,16 +3541,15 @@ const de_ListBackupSelectionsCommand = async (output, context) => {
|
|
|
3830
3541
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3831
3542
|
return de_ListBackupSelectionsCommandError(output, context);
|
|
3832
3543
|
}
|
|
3833
|
-
const contents = map({
|
|
3544
|
+
const contents = (0, smithy_client_1.map)({
|
|
3834
3545
|
$metadata: deserializeMetadata(output),
|
|
3835
3546
|
});
|
|
3836
3547
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
}
|
|
3548
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3549
|
+
BackupSelectionsList: (_) => de_BackupSelectionsList(_, context),
|
|
3550
|
+
NextToken: smithy_client_1.expectString,
|
|
3551
|
+
});
|
|
3552
|
+
Object.assign(contents, doc);
|
|
3843
3553
|
return contents;
|
|
3844
3554
|
};
|
|
3845
3555
|
exports.de_ListBackupSelectionsCommand = de_ListBackupSelectionsCommand;
|
|
@@ -3864,10 +3574,9 @@ const de_ListBackupSelectionsCommandError = async (output, context) => {
|
|
|
3864
3574
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3865
3575
|
default:
|
|
3866
3576
|
const parsedBody = parsedOutput.body;
|
|
3867
|
-
|
|
3577
|
+
return throwDefaultError({
|
|
3868
3578
|
output,
|
|
3869
3579
|
parsedBody,
|
|
3870
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3871
3580
|
errorCode,
|
|
3872
3581
|
});
|
|
3873
3582
|
}
|
|
@@ -3876,16 +3585,15 @@ const de_ListBackupVaultsCommand = async (output, context) => {
|
|
|
3876
3585
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3877
3586
|
return de_ListBackupVaultsCommandError(output, context);
|
|
3878
3587
|
}
|
|
3879
|
-
const contents = map({
|
|
3588
|
+
const contents = (0, smithy_client_1.map)({
|
|
3880
3589
|
$metadata: deserializeMetadata(output),
|
|
3881
3590
|
});
|
|
3882
3591
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
}
|
|
3592
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3593
|
+
BackupVaultList: (_) => de_BackupVaultList(_, context),
|
|
3594
|
+
NextToken: smithy_client_1.expectString,
|
|
3595
|
+
});
|
|
3596
|
+
Object.assign(contents, doc);
|
|
3889
3597
|
return contents;
|
|
3890
3598
|
};
|
|
3891
3599
|
exports.de_ListBackupVaultsCommand = de_ListBackupVaultsCommand;
|
|
@@ -3910,10 +3618,9 @@ const de_ListBackupVaultsCommandError = async (output, context) => {
|
|
|
3910
3618
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3911
3619
|
default:
|
|
3912
3620
|
const parsedBody = parsedOutput.body;
|
|
3913
|
-
|
|
3621
|
+
return throwDefaultError({
|
|
3914
3622
|
output,
|
|
3915
3623
|
parsedBody,
|
|
3916
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3917
3624
|
errorCode,
|
|
3918
3625
|
});
|
|
3919
3626
|
}
|
|
@@ -3922,16 +3629,15 @@ const de_ListCopyJobsCommand = async (output, context) => {
|
|
|
3922
3629
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3923
3630
|
return de_ListCopyJobsCommandError(output, context);
|
|
3924
3631
|
}
|
|
3925
|
-
const contents = map({
|
|
3632
|
+
const contents = (0, smithy_client_1.map)({
|
|
3926
3633
|
$metadata: deserializeMetadata(output),
|
|
3927
3634
|
});
|
|
3928
3635
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
}
|
|
3636
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3637
|
+
CopyJobs: (_) => de_CopyJobsList(_, context),
|
|
3638
|
+
NextToken: smithy_client_1.expectString,
|
|
3639
|
+
});
|
|
3640
|
+
Object.assign(contents, doc);
|
|
3935
3641
|
return contents;
|
|
3936
3642
|
};
|
|
3937
3643
|
exports.de_ListCopyJobsCommand = de_ListCopyJobsCommand;
|
|
@@ -3950,10 +3656,9 @@ const de_ListCopyJobsCommandError = async (output, context) => {
|
|
|
3950
3656
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3951
3657
|
default:
|
|
3952
3658
|
const parsedBody = parsedOutput.body;
|
|
3953
|
-
|
|
3659
|
+
return throwDefaultError({
|
|
3954
3660
|
output,
|
|
3955
3661
|
parsedBody,
|
|
3956
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3957
3662
|
errorCode,
|
|
3958
3663
|
});
|
|
3959
3664
|
}
|
|
@@ -3962,16 +3667,15 @@ const de_ListFrameworksCommand = async (output, context) => {
|
|
|
3962
3667
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3963
3668
|
return de_ListFrameworksCommandError(output, context);
|
|
3964
3669
|
}
|
|
3965
|
-
const contents = map({
|
|
3670
|
+
const contents = (0, smithy_client_1.map)({
|
|
3966
3671
|
$metadata: deserializeMetadata(output),
|
|
3967
3672
|
});
|
|
3968
3673
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
}
|
|
3674
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3675
|
+
Frameworks: (_) => de_FrameworkList(_, context),
|
|
3676
|
+
NextToken: smithy_client_1.expectString,
|
|
3677
|
+
});
|
|
3678
|
+
Object.assign(contents, doc);
|
|
3975
3679
|
return contents;
|
|
3976
3680
|
};
|
|
3977
3681
|
exports.de_ListFrameworksCommand = de_ListFrameworksCommand;
|
|
@@ -3990,10 +3694,9 @@ const de_ListFrameworksCommandError = async (output, context) => {
|
|
|
3990
3694
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3991
3695
|
default:
|
|
3992
3696
|
const parsedBody = parsedOutput.body;
|
|
3993
|
-
|
|
3697
|
+
return throwDefaultError({
|
|
3994
3698
|
output,
|
|
3995
3699
|
parsedBody,
|
|
3996
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
3997
3700
|
errorCode,
|
|
3998
3701
|
});
|
|
3999
3702
|
}
|
|
@@ -4002,16 +3705,15 @@ const de_ListLegalHoldsCommand = async (output, context) => {
|
|
|
4002
3705
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4003
3706
|
return de_ListLegalHoldsCommandError(output, context);
|
|
4004
3707
|
}
|
|
4005
|
-
const contents = map({
|
|
3708
|
+
const contents = (0, smithy_client_1.map)({
|
|
4006
3709
|
$metadata: deserializeMetadata(output),
|
|
4007
3710
|
});
|
|
4008
3711
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
}
|
|
3712
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3713
|
+
LegalHolds: (_) => de_LegalHoldsList(_, context),
|
|
3714
|
+
NextToken: smithy_client_1.expectString,
|
|
3715
|
+
});
|
|
3716
|
+
Object.assign(contents, doc);
|
|
4015
3717
|
return contents;
|
|
4016
3718
|
};
|
|
4017
3719
|
exports.de_ListLegalHoldsCommand = de_ListLegalHoldsCommand;
|
|
@@ -4030,10 +3732,9 @@ const de_ListLegalHoldsCommandError = async (output, context) => {
|
|
|
4030
3732
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4031
3733
|
default:
|
|
4032
3734
|
const parsedBody = parsedOutput.body;
|
|
4033
|
-
|
|
3735
|
+
return throwDefaultError({
|
|
4034
3736
|
output,
|
|
4035
3737
|
parsedBody,
|
|
4036
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4037
3738
|
errorCode,
|
|
4038
3739
|
});
|
|
4039
3740
|
}
|
|
@@ -4042,16 +3743,15 @@ const de_ListProtectedResourcesCommand = async (output, context) => {
|
|
|
4042
3743
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4043
3744
|
return de_ListProtectedResourcesCommandError(output, context);
|
|
4044
3745
|
}
|
|
4045
|
-
const contents = map({
|
|
3746
|
+
const contents = (0, smithy_client_1.map)({
|
|
4046
3747
|
$metadata: deserializeMetadata(output),
|
|
4047
3748
|
});
|
|
4048
3749
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
}
|
|
3750
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3751
|
+
NextToken: smithy_client_1.expectString,
|
|
3752
|
+
Results: (_) => de_ProtectedResourcesList(_, context),
|
|
3753
|
+
});
|
|
3754
|
+
Object.assign(contents, doc);
|
|
4055
3755
|
return contents;
|
|
4056
3756
|
};
|
|
4057
3757
|
exports.de_ListProtectedResourcesCommand = de_ListProtectedResourcesCommand;
|
|
@@ -4070,10 +3770,9 @@ const de_ListProtectedResourcesCommandError = async (output, context) => {
|
|
|
4070
3770
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4071
3771
|
default:
|
|
4072
3772
|
const parsedBody = parsedOutput.body;
|
|
4073
|
-
|
|
3773
|
+
return throwDefaultError({
|
|
4074
3774
|
output,
|
|
4075
3775
|
parsedBody,
|
|
4076
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4077
3776
|
errorCode,
|
|
4078
3777
|
});
|
|
4079
3778
|
}
|
|
@@ -4082,16 +3781,15 @@ const de_ListRecoveryPointsByBackupVaultCommand = async (output, context) => {
|
|
|
4082
3781
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4083
3782
|
return de_ListRecoveryPointsByBackupVaultCommandError(output, context);
|
|
4084
3783
|
}
|
|
4085
|
-
const contents = map({
|
|
3784
|
+
const contents = (0, smithy_client_1.map)({
|
|
4086
3785
|
$metadata: deserializeMetadata(output),
|
|
4087
3786
|
});
|
|
4088
3787
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
}
|
|
3788
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3789
|
+
NextToken: smithy_client_1.expectString,
|
|
3790
|
+
RecoveryPoints: (_) => de_RecoveryPointByBackupVaultList(_, context),
|
|
3791
|
+
});
|
|
3792
|
+
Object.assign(contents, doc);
|
|
4095
3793
|
return contents;
|
|
4096
3794
|
};
|
|
4097
3795
|
exports.de_ListRecoveryPointsByBackupVaultCommand = de_ListRecoveryPointsByBackupVaultCommand;
|
|
@@ -4116,10 +3814,9 @@ const de_ListRecoveryPointsByBackupVaultCommandError = async (output, context) =
|
|
|
4116
3814
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4117
3815
|
default:
|
|
4118
3816
|
const parsedBody = parsedOutput.body;
|
|
4119
|
-
|
|
3817
|
+
return throwDefaultError({
|
|
4120
3818
|
output,
|
|
4121
3819
|
parsedBody,
|
|
4122
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4123
3820
|
errorCode,
|
|
4124
3821
|
});
|
|
4125
3822
|
}
|
|
@@ -4128,16 +3825,15 @@ const de_ListRecoveryPointsByLegalHoldCommand = async (output, context) => {
|
|
|
4128
3825
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4129
3826
|
return de_ListRecoveryPointsByLegalHoldCommandError(output, context);
|
|
4130
3827
|
}
|
|
4131
|
-
const contents = map({
|
|
3828
|
+
const contents = (0, smithy_client_1.map)({
|
|
4132
3829
|
$metadata: deserializeMetadata(output),
|
|
4133
3830
|
});
|
|
4134
3831
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
}
|
|
3832
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3833
|
+
NextToken: smithy_client_1.expectString,
|
|
3834
|
+
RecoveryPoints: smithy_client_1._json,
|
|
3835
|
+
});
|
|
3836
|
+
Object.assign(contents, doc);
|
|
4141
3837
|
return contents;
|
|
4142
3838
|
};
|
|
4143
3839
|
exports.de_ListRecoveryPointsByLegalHoldCommand = de_ListRecoveryPointsByLegalHoldCommand;
|
|
@@ -4159,10 +3855,9 @@ const de_ListRecoveryPointsByLegalHoldCommandError = async (output, context) =>
|
|
|
4159
3855
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4160
3856
|
default:
|
|
4161
3857
|
const parsedBody = parsedOutput.body;
|
|
4162
|
-
|
|
3858
|
+
return throwDefaultError({
|
|
4163
3859
|
output,
|
|
4164
3860
|
parsedBody,
|
|
4165
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4166
3861
|
errorCode,
|
|
4167
3862
|
});
|
|
4168
3863
|
}
|
|
@@ -4171,16 +3866,15 @@ const de_ListRecoveryPointsByResourceCommand = async (output, context) => {
|
|
|
4171
3866
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4172
3867
|
return de_ListRecoveryPointsByResourceCommandError(output, context);
|
|
4173
3868
|
}
|
|
4174
|
-
const contents = map({
|
|
3869
|
+
const contents = (0, smithy_client_1.map)({
|
|
4175
3870
|
$metadata: deserializeMetadata(output),
|
|
4176
3871
|
});
|
|
4177
3872
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
}
|
|
3873
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3874
|
+
NextToken: smithy_client_1.expectString,
|
|
3875
|
+
RecoveryPoints: (_) => de_RecoveryPointByResourceList(_, context),
|
|
3876
|
+
});
|
|
3877
|
+
Object.assign(contents, doc);
|
|
4184
3878
|
return contents;
|
|
4185
3879
|
};
|
|
4186
3880
|
exports.de_ListRecoveryPointsByResourceCommand = de_ListRecoveryPointsByResourceCommand;
|
|
@@ -4205,10 +3899,9 @@ const de_ListRecoveryPointsByResourceCommandError = async (output, context) => {
|
|
|
4205
3899
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4206
3900
|
default:
|
|
4207
3901
|
const parsedBody = parsedOutput.body;
|
|
4208
|
-
|
|
3902
|
+
return throwDefaultError({
|
|
4209
3903
|
output,
|
|
4210
3904
|
parsedBody,
|
|
4211
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4212
3905
|
errorCode,
|
|
4213
3906
|
});
|
|
4214
3907
|
}
|
|
@@ -4217,16 +3910,15 @@ const de_ListReportJobsCommand = async (output, context) => {
|
|
|
4217
3910
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4218
3911
|
return de_ListReportJobsCommandError(output, context);
|
|
4219
3912
|
}
|
|
4220
|
-
const contents = map({
|
|
3913
|
+
const contents = (0, smithy_client_1.map)({
|
|
4221
3914
|
$metadata: deserializeMetadata(output),
|
|
4222
3915
|
});
|
|
4223
3916
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
}
|
|
3917
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3918
|
+
NextToken: smithy_client_1.expectString,
|
|
3919
|
+
ReportJobs: (_) => de_ReportJobList(_, context),
|
|
3920
|
+
});
|
|
3921
|
+
Object.assign(contents, doc);
|
|
4230
3922
|
return contents;
|
|
4231
3923
|
};
|
|
4232
3924
|
exports.de_ListReportJobsCommand = de_ListReportJobsCommand;
|
|
@@ -4248,10 +3940,9 @@ const de_ListReportJobsCommandError = async (output, context) => {
|
|
|
4248
3940
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4249
3941
|
default:
|
|
4250
3942
|
const parsedBody = parsedOutput.body;
|
|
4251
|
-
|
|
3943
|
+
return throwDefaultError({
|
|
4252
3944
|
output,
|
|
4253
3945
|
parsedBody,
|
|
4254
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4255
3946
|
errorCode,
|
|
4256
3947
|
});
|
|
4257
3948
|
}
|
|
@@ -4260,16 +3951,15 @@ const de_ListReportPlansCommand = async (output, context) => {
|
|
|
4260
3951
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4261
3952
|
return de_ListReportPlansCommandError(output, context);
|
|
4262
3953
|
}
|
|
4263
|
-
const contents = map({
|
|
3954
|
+
const contents = (0, smithy_client_1.map)({
|
|
4264
3955
|
$metadata: deserializeMetadata(output),
|
|
4265
3956
|
});
|
|
4266
3957
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
}
|
|
3958
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3959
|
+
NextToken: smithy_client_1.expectString,
|
|
3960
|
+
ReportPlans: (_) => de_ReportPlanList(_, context),
|
|
3961
|
+
});
|
|
3962
|
+
Object.assign(contents, doc);
|
|
4273
3963
|
return contents;
|
|
4274
3964
|
};
|
|
4275
3965
|
exports.de_ListReportPlansCommand = de_ListReportPlansCommand;
|
|
@@ -4288,10 +3978,9 @@ const de_ListReportPlansCommandError = async (output, context) => {
|
|
|
4288
3978
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4289
3979
|
default:
|
|
4290
3980
|
const parsedBody = parsedOutput.body;
|
|
4291
|
-
|
|
3981
|
+
return throwDefaultError({
|
|
4292
3982
|
output,
|
|
4293
3983
|
parsedBody,
|
|
4294
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4295
3984
|
errorCode,
|
|
4296
3985
|
});
|
|
4297
3986
|
}
|
|
@@ -4300,16 +3989,15 @@ const de_ListRestoreJobsCommand = async (output, context) => {
|
|
|
4300
3989
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4301
3990
|
return de_ListRestoreJobsCommandError(output, context);
|
|
4302
3991
|
}
|
|
4303
|
-
const contents = map({
|
|
3992
|
+
const contents = (0, smithy_client_1.map)({
|
|
4304
3993
|
$metadata: deserializeMetadata(output),
|
|
4305
3994
|
});
|
|
4306
3995
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
}
|
|
3996
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3997
|
+
NextToken: smithy_client_1.expectString,
|
|
3998
|
+
RestoreJobs: (_) => de_RestoreJobsList(_, context),
|
|
3999
|
+
});
|
|
4000
|
+
Object.assign(contents, doc);
|
|
4313
4001
|
return contents;
|
|
4314
4002
|
};
|
|
4315
4003
|
exports.de_ListRestoreJobsCommand = de_ListRestoreJobsCommand;
|
|
@@ -4334,10 +4022,9 @@ const de_ListRestoreJobsCommandError = async (output, context) => {
|
|
|
4334
4022
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4335
4023
|
default:
|
|
4336
4024
|
const parsedBody = parsedOutput.body;
|
|
4337
|
-
|
|
4025
|
+
return throwDefaultError({
|
|
4338
4026
|
output,
|
|
4339
4027
|
parsedBody,
|
|
4340
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4341
4028
|
errorCode,
|
|
4342
4029
|
});
|
|
4343
4030
|
}
|
|
@@ -4346,16 +4033,15 @@ const de_ListTagsCommand = async (output, context) => {
|
|
|
4346
4033
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4347
4034
|
return de_ListTagsCommandError(output, context);
|
|
4348
4035
|
}
|
|
4349
|
-
const contents = map({
|
|
4036
|
+
const contents = (0, smithy_client_1.map)({
|
|
4350
4037
|
$metadata: deserializeMetadata(output),
|
|
4351
4038
|
});
|
|
4352
4039
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
}
|
|
4040
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4041
|
+
NextToken: smithy_client_1.expectString,
|
|
4042
|
+
Tags: smithy_client_1._json,
|
|
4043
|
+
});
|
|
4044
|
+
Object.assign(contents, doc);
|
|
4359
4045
|
return contents;
|
|
4360
4046
|
};
|
|
4361
4047
|
exports.de_ListTagsCommand = de_ListTagsCommand;
|
|
@@ -4380,10 +4066,9 @@ const de_ListTagsCommandError = async (output, context) => {
|
|
|
4380
4066
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4381
4067
|
default:
|
|
4382
4068
|
const parsedBody = parsedOutput.body;
|
|
4383
|
-
|
|
4069
|
+
return throwDefaultError({
|
|
4384
4070
|
output,
|
|
4385
4071
|
parsedBody,
|
|
4386
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4387
4072
|
errorCode,
|
|
4388
4073
|
});
|
|
4389
4074
|
}
|
|
@@ -4392,7 +4077,7 @@ const de_PutBackupVaultAccessPolicyCommand = async (output, context) => {
|
|
|
4392
4077
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4393
4078
|
return de_PutBackupVaultAccessPolicyCommandError(output, context);
|
|
4394
4079
|
}
|
|
4395
|
-
const contents = map({
|
|
4080
|
+
const contents = (0, smithy_client_1.map)({
|
|
4396
4081
|
$metadata: deserializeMetadata(output),
|
|
4397
4082
|
});
|
|
4398
4083
|
await collectBody(output.body, context);
|
|
@@ -4420,10 +4105,9 @@ const de_PutBackupVaultAccessPolicyCommandError = async (output, context) => {
|
|
|
4420
4105
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4421
4106
|
default:
|
|
4422
4107
|
const parsedBody = parsedOutput.body;
|
|
4423
|
-
|
|
4108
|
+
return throwDefaultError({
|
|
4424
4109
|
output,
|
|
4425
4110
|
parsedBody,
|
|
4426
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4427
4111
|
errorCode,
|
|
4428
4112
|
});
|
|
4429
4113
|
}
|
|
@@ -4432,7 +4116,7 @@ const de_PutBackupVaultLockConfigurationCommand = async (output, context) => {
|
|
|
4432
4116
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4433
4117
|
return de_PutBackupVaultLockConfigurationCommandError(output, context);
|
|
4434
4118
|
}
|
|
4435
|
-
const contents = map({
|
|
4119
|
+
const contents = (0, smithy_client_1.map)({
|
|
4436
4120
|
$metadata: deserializeMetadata(output),
|
|
4437
4121
|
});
|
|
4438
4122
|
await collectBody(output.body, context);
|
|
@@ -4463,10 +4147,9 @@ const de_PutBackupVaultLockConfigurationCommandError = async (output, context) =
|
|
|
4463
4147
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4464
4148
|
default:
|
|
4465
4149
|
const parsedBody = parsedOutput.body;
|
|
4466
|
-
|
|
4150
|
+
return throwDefaultError({
|
|
4467
4151
|
output,
|
|
4468
4152
|
parsedBody,
|
|
4469
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4470
4153
|
errorCode,
|
|
4471
4154
|
});
|
|
4472
4155
|
}
|
|
@@ -4475,7 +4158,7 @@ const de_PutBackupVaultNotificationsCommand = async (output, context) => {
|
|
|
4475
4158
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4476
4159
|
return de_PutBackupVaultNotificationsCommandError(output, context);
|
|
4477
4160
|
}
|
|
4478
|
-
const contents = map({
|
|
4161
|
+
const contents = (0, smithy_client_1.map)({
|
|
4479
4162
|
$metadata: deserializeMetadata(output),
|
|
4480
4163
|
});
|
|
4481
4164
|
await collectBody(output.body, context);
|
|
@@ -4503,10 +4186,9 @@ const de_PutBackupVaultNotificationsCommandError = async (output, context) => {
|
|
|
4503
4186
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4504
4187
|
default:
|
|
4505
4188
|
const parsedBody = parsedOutput.body;
|
|
4506
|
-
|
|
4189
|
+
return throwDefaultError({
|
|
4507
4190
|
output,
|
|
4508
4191
|
parsedBody,
|
|
4509
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4510
4192
|
errorCode,
|
|
4511
4193
|
});
|
|
4512
4194
|
}
|
|
@@ -4515,22 +4197,17 @@ const de_StartBackupJobCommand = async (output, context) => {
|
|
|
4515
4197
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4516
4198
|
return de_StartBackupJobCommandError(output, context);
|
|
4517
4199
|
}
|
|
4518
|
-
const contents = map({
|
|
4200
|
+
const contents = (0, smithy_client_1.map)({
|
|
4519
4201
|
$metadata: deserializeMetadata(output),
|
|
4520
4202
|
});
|
|
4521
4203
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
}
|
|
4528
|
-
|
|
4529
|
-
contents.IsParent = (0, smithy_client_1.expectBoolean)(data.IsParent);
|
|
4530
|
-
}
|
|
4531
|
-
if (data.RecoveryPointArn != null) {
|
|
4532
|
-
contents.RecoveryPointArn = (0, smithy_client_1.expectString)(data.RecoveryPointArn);
|
|
4533
|
-
}
|
|
4204
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4205
|
+
BackupJobId: smithy_client_1.expectString,
|
|
4206
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4207
|
+
IsParent: smithy_client_1.expectBoolean,
|
|
4208
|
+
RecoveryPointArn: smithy_client_1.expectString,
|
|
4209
|
+
});
|
|
4210
|
+
Object.assign(contents, doc);
|
|
4534
4211
|
return contents;
|
|
4535
4212
|
};
|
|
4536
4213
|
exports.de_StartBackupJobCommand = de_StartBackupJobCommand;
|
|
@@ -4561,10 +4238,9 @@ const de_StartBackupJobCommandError = async (output, context) => {
|
|
|
4561
4238
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4562
4239
|
default:
|
|
4563
4240
|
const parsedBody = parsedOutput.body;
|
|
4564
|
-
|
|
4241
|
+
return throwDefaultError({
|
|
4565
4242
|
output,
|
|
4566
4243
|
parsedBody,
|
|
4567
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4568
4244
|
errorCode,
|
|
4569
4245
|
});
|
|
4570
4246
|
}
|
|
@@ -4573,19 +4249,16 @@ const de_StartCopyJobCommand = async (output, context) => {
|
|
|
4573
4249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4574
4250
|
return de_StartCopyJobCommandError(output, context);
|
|
4575
4251
|
}
|
|
4576
|
-
const contents = map({
|
|
4252
|
+
const contents = (0, smithy_client_1.map)({
|
|
4577
4253
|
$metadata: deserializeMetadata(output),
|
|
4578
4254
|
});
|
|
4579
4255
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
if (data.IsParent != null) {
|
|
4587
|
-
contents.IsParent = (0, smithy_client_1.expectBoolean)(data.IsParent);
|
|
4588
|
-
}
|
|
4256
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4257
|
+
CopyJobId: smithy_client_1.expectString,
|
|
4258
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4259
|
+
IsParent: smithy_client_1.expectBoolean,
|
|
4260
|
+
});
|
|
4261
|
+
Object.assign(contents, doc);
|
|
4589
4262
|
return contents;
|
|
4590
4263
|
};
|
|
4591
4264
|
exports.de_StartCopyJobCommand = de_StartCopyJobCommand;
|
|
@@ -4616,10 +4289,9 @@ const de_StartCopyJobCommandError = async (output, context) => {
|
|
|
4616
4289
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4617
4290
|
default:
|
|
4618
4291
|
const parsedBody = parsedOutput.body;
|
|
4619
|
-
|
|
4292
|
+
return throwDefaultError({
|
|
4620
4293
|
output,
|
|
4621
4294
|
parsedBody,
|
|
4622
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4623
4295
|
errorCode,
|
|
4624
4296
|
});
|
|
4625
4297
|
}
|
|
@@ -4628,13 +4300,14 @@ const de_StartReportJobCommand = async (output, context) => {
|
|
|
4628
4300
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4629
4301
|
return de_StartReportJobCommandError(output, context);
|
|
4630
4302
|
}
|
|
4631
|
-
const contents = map({
|
|
4303
|
+
const contents = (0, smithy_client_1.map)({
|
|
4632
4304
|
$metadata: deserializeMetadata(output),
|
|
4633
4305
|
});
|
|
4634
4306
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
}
|
|
4307
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4308
|
+
ReportJobId: smithy_client_1.expectString,
|
|
4309
|
+
});
|
|
4310
|
+
Object.assign(contents, doc);
|
|
4638
4311
|
return contents;
|
|
4639
4312
|
};
|
|
4640
4313
|
exports.de_StartReportJobCommand = de_StartReportJobCommand;
|
|
@@ -4659,10 +4332,9 @@ const de_StartReportJobCommandError = async (output, context) => {
|
|
|
4659
4332
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4660
4333
|
default:
|
|
4661
4334
|
const parsedBody = parsedOutput.body;
|
|
4662
|
-
|
|
4335
|
+
return throwDefaultError({
|
|
4663
4336
|
output,
|
|
4664
4337
|
parsedBody,
|
|
4665
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4666
4338
|
errorCode,
|
|
4667
4339
|
});
|
|
4668
4340
|
}
|
|
@@ -4671,13 +4343,14 @@ const de_StartRestoreJobCommand = async (output, context) => {
|
|
|
4671
4343
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4672
4344
|
return de_StartRestoreJobCommandError(output, context);
|
|
4673
4345
|
}
|
|
4674
|
-
const contents = map({
|
|
4346
|
+
const contents = (0, smithy_client_1.map)({
|
|
4675
4347
|
$metadata: deserializeMetadata(output),
|
|
4676
4348
|
});
|
|
4677
4349
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
}
|
|
4350
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4351
|
+
RestoreJobId: smithy_client_1.expectString,
|
|
4352
|
+
});
|
|
4353
|
+
Object.assign(contents, doc);
|
|
4681
4354
|
return contents;
|
|
4682
4355
|
};
|
|
4683
4356
|
exports.de_StartRestoreJobCommand = de_StartRestoreJobCommand;
|
|
@@ -4702,10 +4375,9 @@ const de_StartRestoreJobCommandError = async (output, context) => {
|
|
|
4702
4375
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4703
4376
|
default:
|
|
4704
4377
|
const parsedBody = parsedOutput.body;
|
|
4705
|
-
|
|
4378
|
+
return throwDefaultError({
|
|
4706
4379
|
output,
|
|
4707
4380
|
parsedBody,
|
|
4708
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4709
4381
|
errorCode,
|
|
4710
4382
|
});
|
|
4711
4383
|
}
|
|
@@ -4714,7 +4386,7 @@ const de_StopBackupJobCommand = async (output, context) => {
|
|
|
4714
4386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4715
4387
|
return de_StopBackupJobCommandError(output, context);
|
|
4716
4388
|
}
|
|
4717
|
-
const contents = map({
|
|
4389
|
+
const contents = (0, smithy_client_1.map)({
|
|
4718
4390
|
$metadata: deserializeMetadata(output),
|
|
4719
4391
|
});
|
|
4720
4392
|
await collectBody(output.body, context);
|
|
@@ -4745,10 +4417,9 @@ const de_StopBackupJobCommandError = async (output, context) => {
|
|
|
4745
4417
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4746
4418
|
default:
|
|
4747
4419
|
const parsedBody = parsedOutput.body;
|
|
4748
|
-
|
|
4420
|
+
return throwDefaultError({
|
|
4749
4421
|
output,
|
|
4750
4422
|
parsedBody,
|
|
4751
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4752
4423
|
errorCode,
|
|
4753
4424
|
});
|
|
4754
4425
|
}
|
|
@@ -4757,7 +4428,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
4757
4428
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4758
4429
|
return de_TagResourceCommandError(output, context);
|
|
4759
4430
|
}
|
|
4760
|
-
const contents = map({
|
|
4431
|
+
const contents = (0, smithy_client_1.map)({
|
|
4761
4432
|
$metadata: deserializeMetadata(output),
|
|
4762
4433
|
});
|
|
4763
4434
|
await collectBody(output.body, context);
|
|
@@ -4788,10 +4459,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
4788
4459
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4789
4460
|
default:
|
|
4790
4461
|
const parsedBody = parsedOutput.body;
|
|
4791
|
-
|
|
4462
|
+
return throwDefaultError({
|
|
4792
4463
|
output,
|
|
4793
4464
|
parsedBody,
|
|
4794
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4795
4465
|
errorCode,
|
|
4796
4466
|
});
|
|
4797
4467
|
}
|
|
@@ -4800,7 +4470,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
4800
4470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4801
4471
|
return de_UntagResourceCommandError(output, context);
|
|
4802
4472
|
}
|
|
4803
|
-
const contents = map({
|
|
4473
|
+
const contents = (0, smithy_client_1.map)({
|
|
4804
4474
|
$metadata: deserializeMetadata(output),
|
|
4805
4475
|
});
|
|
4806
4476
|
await collectBody(output.body, context);
|
|
@@ -4828,10 +4498,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
4828
4498
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4829
4499
|
default:
|
|
4830
4500
|
const parsedBody = parsedOutput.body;
|
|
4831
|
-
|
|
4501
|
+
return throwDefaultError({
|
|
4832
4502
|
output,
|
|
4833
4503
|
parsedBody,
|
|
4834
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4835
4504
|
errorCode,
|
|
4836
4505
|
});
|
|
4837
4506
|
}
|
|
@@ -4840,25 +4509,18 @@ const de_UpdateBackupPlanCommand = async (output, context) => {
|
|
|
4840
4509
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4841
4510
|
return de_UpdateBackupPlanCommandError(output, context);
|
|
4842
4511
|
}
|
|
4843
|
-
const contents = map({
|
|
4512
|
+
const contents = (0, smithy_client_1.map)({
|
|
4844
4513
|
$metadata: deserializeMetadata(output),
|
|
4845
4514
|
});
|
|
4846
4515
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
}
|
|
4856
|
-
if (data.CreationDate != null) {
|
|
4857
|
-
contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
|
|
4858
|
-
}
|
|
4859
|
-
if (data.VersionId != null) {
|
|
4860
|
-
contents.VersionId = (0, smithy_client_1.expectString)(data.VersionId);
|
|
4861
|
-
}
|
|
4516
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4517
|
+
AdvancedBackupSettings: smithy_client_1._json,
|
|
4518
|
+
BackupPlanArn: smithy_client_1.expectString,
|
|
4519
|
+
BackupPlanId: smithy_client_1.expectString,
|
|
4520
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4521
|
+
VersionId: smithy_client_1.expectString,
|
|
4522
|
+
});
|
|
4523
|
+
Object.assign(contents, doc);
|
|
4862
4524
|
return contents;
|
|
4863
4525
|
};
|
|
4864
4526
|
exports.de_UpdateBackupPlanCommand = de_UpdateBackupPlanCommand;
|
|
@@ -4883,10 +4545,9 @@ const de_UpdateBackupPlanCommandError = async (output, context) => {
|
|
|
4883
4545
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4884
4546
|
default:
|
|
4885
4547
|
const parsedBody = parsedOutput.body;
|
|
4886
|
-
|
|
4548
|
+
return throwDefaultError({
|
|
4887
4549
|
output,
|
|
4888
4550
|
parsedBody,
|
|
4889
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4890
4551
|
errorCode,
|
|
4891
4552
|
});
|
|
4892
4553
|
}
|
|
@@ -4895,19 +4556,16 @@ const de_UpdateFrameworkCommand = async (output, context) => {
|
|
|
4895
4556
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4896
4557
|
return de_UpdateFrameworkCommandError(output, context);
|
|
4897
4558
|
}
|
|
4898
|
-
const contents = map({
|
|
4559
|
+
const contents = (0, smithy_client_1.map)({
|
|
4899
4560
|
$metadata: deserializeMetadata(output),
|
|
4900
4561
|
});
|
|
4901
4562
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
if (data.FrameworkName != null) {
|
|
4909
|
-
contents.FrameworkName = (0, smithy_client_1.expectString)(data.FrameworkName);
|
|
4910
|
-
}
|
|
4563
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4564
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4565
|
+
FrameworkArn: smithy_client_1.expectString,
|
|
4566
|
+
FrameworkName: smithy_client_1.expectString,
|
|
4567
|
+
});
|
|
4568
|
+
Object.assign(contents, doc);
|
|
4911
4569
|
return contents;
|
|
4912
4570
|
};
|
|
4913
4571
|
exports.de_UpdateFrameworkCommand = de_UpdateFrameworkCommand;
|
|
@@ -4941,10 +4599,9 @@ const de_UpdateFrameworkCommandError = async (output, context) => {
|
|
|
4941
4599
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4942
4600
|
default:
|
|
4943
4601
|
const parsedBody = parsedOutput.body;
|
|
4944
|
-
|
|
4602
|
+
return throwDefaultError({
|
|
4945
4603
|
output,
|
|
4946
4604
|
parsedBody,
|
|
4947
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4948
4605
|
errorCode,
|
|
4949
4606
|
});
|
|
4950
4607
|
}
|
|
@@ -4953,7 +4610,7 @@ const de_UpdateGlobalSettingsCommand = async (output, context) => {
|
|
|
4953
4610
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4954
4611
|
return de_UpdateGlobalSettingsCommandError(output, context);
|
|
4955
4612
|
}
|
|
4956
|
-
const contents = map({
|
|
4613
|
+
const contents = (0, smithy_client_1.map)({
|
|
4957
4614
|
$metadata: deserializeMetadata(output),
|
|
4958
4615
|
});
|
|
4959
4616
|
await collectBody(output.body, context);
|
|
@@ -4981,10 +4638,9 @@ const de_UpdateGlobalSettingsCommandError = async (output, context) => {
|
|
|
4981
4638
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4982
4639
|
default:
|
|
4983
4640
|
const parsedBody = parsedOutput.body;
|
|
4984
|
-
|
|
4641
|
+
return throwDefaultError({
|
|
4985
4642
|
output,
|
|
4986
4643
|
parsedBody,
|
|
4987
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
4988
4644
|
errorCode,
|
|
4989
4645
|
});
|
|
4990
4646
|
}
|
|
@@ -4993,22 +4649,17 @@ const de_UpdateRecoveryPointLifecycleCommand = async (output, context) => {
|
|
|
4993
4649
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4994
4650
|
return de_UpdateRecoveryPointLifecycleCommandError(output, context);
|
|
4995
4651
|
}
|
|
4996
|
-
const contents = map({
|
|
4652
|
+
const contents = (0, smithy_client_1.map)({
|
|
4997
4653
|
$metadata: deserializeMetadata(output),
|
|
4998
4654
|
});
|
|
4999
4655
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
}
|
|
5006
|
-
|
|
5007
|
-
contents.Lifecycle = de_Lifecycle(data.Lifecycle, context);
|
|
5008
|
-
}
|
|
5009
|
-
if (data.RecoveryPointArn != null) {
|
|
5010
|
-
contents.RecoveryPointArn = (0, smithy_client_1.expectString)(data.RecoveryPointArn);
|
|
5011
|
-
}
|
|
4656
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4657
|
+
BackupVaultArn: smithy_client_1.expectString,
|
|
4658
|
+
CalculatedLifecycle: (_) => de_CalculatedLifecycle(_, context),
|
|
4659
|
+
Lifecycle: smithy_client_1._json,
|
|
4660
|
+
RecoveryPointArn: smithy_client_1.expectString,
|
|
4661
|
+
});
|
|
4662
|
+
Object.assign(contents, doc);
|
|
5012
4663
|
return contents;
|
|
5013
4664
|
};
|
|
5014
4665
|
exports.de_UpdateRecoveryPointLifecycleCommand = de_UpdateRecoveryPointLifecycleCommand;
|
|
@@ -5036,10 +4687,9 @@ const de_UpdateRecoveryPointLifecycleCommandError = async (output, context) => {
|
|
|
5036
4687
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5037
4688
|
default:
|
|
5038
4689
|
const parsedBody = parsedOutput.body;
|
|
5039
|
-
|
|
4690
|
+
return throwDefaultError({
|
|
5040
4691
|
output,
|
|
5041
4692
|
parsedBody,
|
|
5042
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
5043
4693
|
errorCode,
|
|
5044
4694
|
});
|
|
5045
4695
|
}
|
|
@@ -5048,7 +4698,7 @@ const de_UpdateRegionSettingsCommand = async (output, context) => {
|
|
|
5048
4698
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5049
4699
|
return de_UpdateRegionSettingsCommandError(output, context);
|
|
5050
4700
|
}
|
|
5051
|
-
const contents = map({
|
|
4701
|
+
const contents = (0, smithy_client_1.map)({
|
|
5052
4702
|
$metadata: deserializeMetadata(output),
|
|
5053
4703
|
});
|
|
5054
4704
|
await collectBody(output.body, context);
|
|
@@ -5073,10 +4723,9 @@ const de_UpdateRegionSettingsCommandError = async (output, context) => {
|
|
|
5073
4723
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5074
4724
|
default:
|
|
5075
4725
|
const parsedBody = parsedOutput.body;
|
|
5076
|
-
|
|
4726
|
+
return throwDefaultError({
|
|
5077
4727
|
output,
|
|
5078
4728
|
parsedBody,
|
|
5079
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
5080
4729
|
errorCode,
|
|
5081
4730
|
});
|
|
5082
4731
|
}
|
|
@@ -5085,19 +4734,16 @@ const de_UpdateReportPlanCommand = async (output, context) => {
|
|
|
5085
4734
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5086
4735
|
return de_UpdateReportPlanCommandError(output, context);
|
|
5087
4736
|
}
|
|
5088
|
-
const contents = map({
|
|
4737
|
+
const contents = (0, smithy_client_1.map)({
|
|
5089
4738
|
$metadata: deserializeMetadata(output),
|
|
5090
4739
|
});
|
|
5091
4740
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
if (data.ReportPlanName != null) {
|
|
5099
|
-
contents.ReportPlanName = (0, smithy_client_1.expectString)(data.ReportPlanName);
|
|
5100
|
-
}
|
|
4741
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4742
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4743
|
+
ReportPlanArn: smithy_client_1.expectString,
|
|
4744
|
+
ReportPlanName: smithy_client_1.expectString,
|
|
4745
|
+
});
|
|
4746
|
+
Object.assign(contents, doc);
|
|
5101
4747
|
return contents;
|
|
5102
4748
|
};
|
|
5103
4749
|
exports.de_UpdateReportPlanCommand = de_UpdateReportPlanCommand;
|
|
@@ -5125,36 +4771,26 @@ const de_UpdateReportPlanCommandError = async (output, context) => {
|
|
|
5125
4771
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5126
4772
|
default:
|
|
5127
4773
|
const parsedBody = parsedOutput.body;
|
|
5128
|
-
|
|
4774
|
+
return throwDefaultError({
|
|
5129
4775
|
output,
|
|
5130
4776
|
parsedBody,
|
|
5131
|
-
exceptionCtor: BackupServiceException_1.BackupServiceException,
|
|
5132
4777
|
errorCode,
|
|
5133
4778
|
});
|
|
5134
4779
|
}
|
|
5135
4780
|
};
|
|
5136
|
-
const
|
|
4781
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(BackupServiceException_1.BackupServiceException);
|
|
5137
4782
|
const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
5138
|
-
const contents = map({});
|
|
4783
|
+
const contents = (0, smithy_client_1.map)({});
|
|
5139
4784
|
const data = parsedOutput.body;
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
if (data.CreatorRequestId != null) {
|
|
5150
|
-
contents.CreatorRequestId = (0, smithy_client_1.expectString)(data.CreatorRequestId);
|
|
5151
|
-
}
|
|
5152
|
-
if (data.Message != null) {
|
|
5153
|
-
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5154
|
-
}
|
|
5155
|
-
if (data.Type != null) {
|
|
5156
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
5157
|
-
}
|
|
4785
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4786
|
+
Arn: smithy_client_1.expectString,
|
|
4787
|
+
Code: smithy_client_1.expectString,
|
|
4788
|
+
Context: smithy_client_1.expectString,
|
|
4789
|
+
CreatorRequestId: smithy_client_1.expectString,
|
|
4790
|
+
Message: smithy_client_1.expectString,
|
|
4791
|
+
Type: smithy_client_1.expectString,
|
|
4792
|
+
});
|
|
4793
|
+
Object.assign(contents, doc);
|
|
5158
4794
|
const exception = new models_0_1.AlreadyExistsException({
|
|
5159
4795
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5160
4796
|
...contents,
|
|
@@ -5162,20 +4798,15 @@ const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
5162
4798
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5163
4799
|
};
|
|
5164
4800
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
5165
|
-
const contents = map({});
|
|
4801
|
+
const contents = (0, smithy_client_1.map)({});
|
|
5166
4802
|
const data = parsedOutput.body;
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
}
|
|
5173
|
-
|
|
5174
|
-
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5175
|
-
}
|
|
5176
|
-
if (data.Type != null) {
|
|
5177
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
5178
|
-
}
|
|
4803
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4804
|
+
Code: smithy_client_1.expectString,
|
|
4805
|
+
Context: smithy_client_1.expectString,
|
|
4806
|
+
Message: smithy_client_1.expectString,
|
|
4807
|
+
Type: smithy_client_1.expectString,
|
|
4808
|
+
});
|
|
4809
|
+
Object.assign(contents, doc);
|
|
5179
4810
|
const exception = new models_0_1.ConflictException({
|
|
5180
4811
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5181
4812
|
...contents,
|
|
@@ -5183,20 +4814,15 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
5183
4814
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5184
4815
|
};
|
|
5185
4816
|
const de_DependencyFailureExceptionRes = async (parsedOutput, context) => {
|
|
5186
|
-
const contents = map({});
|
|
4817
|
+
const contents = (0, smithy_client_1.map)({});
|
|
5187
4818
|
const data = parsedOutput.body;
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
}
|
|
5194
|
-
|
|
5195
|
-
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5196
|
-
}
|
|
5197
|
-
if (data.Type != null) {
|
|
5198
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
5199
|
-
}
|
|
4819
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4820
|
+
Code: smithy_client_1.expectString,
|
|
4821
|
+
Context: smithy_client_1.expectString,
|
|
4822
|
+
Message: smithy_client_1.expectString,
|
|
4823
|
+
Type: smithy_client_1.expectString,
|
|
4824
|
+
});
|
|
4825
|
+
Object.assign(contents, doc);
|
|
5200
4826
|
const exception = new models_0_1.DependencyFailureException({
|
|
5201
4827
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5202
4828
|
...contents,
|
|
@@ -5204,20 +4830,15 @@ const de_DependencyFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
5204
4830
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5205
4831
|
};
|
|
5206
4832
|
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
5207
|
-
const contents = map({});
|
|
4833
|
+
const contents = (0, smithy_client_1.map)({});
|
|
5208
4834
|
const data = parsedOutput.body;
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
}
|
|
5215
|
-
|
|
5216
|
-
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5217
|
-
}
|
|
5218
|
-
if (data.Type != null) {
|
|
5219
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
5220
|
-
}
|
|
4835
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4836
|
+
Code: smithy_client_1.expectString,
|
|
4837
|
+
Context: smithy_client_1.expectString,
|
|
4838
|
+
Message: smithy_client_1.expectString,
|
|
4839
|
+
Type: smithy_client_1.expectString,
|
|
4840
|
+
});
|
|
4841
|
+
Object.assign(contents, doc);
|
|
5221
4842
|
const exception = new models_0_1.InvalidParameterValueException({
|
|
5222
4843
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5223
4844
|
...contents,
|
|
@@ -5225,20 +4846,15 @@ const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
|
5225
4846
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5226
4847
|
};
|
|
5227
4848
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
5228
|
-
const contents = map({});
|
|
4849
|
+
const contents = (0, smithy_client_1.map)({});
|
|
5229
4850
|
const data = parsedOutput.body;
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
}
|
|
5236
|
-
|
|
5237
|
-
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5238
|
-
}
|
|
5239
|
-
if (data.Type != null) {
|
|
5240
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
5241
|
-
}
|
|
4851
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4852
|
+
Code: smithy_client_1.expectString,
|
|
4853
|
+
Context: smithy_client_1.expectString,
|
|
4854
|
+
Message: smithy_client_1.expectString,
|
|
4855
|
+
Type: smithy_client_1.expectString,
|
|
4856
|
+
});
|
|
4857
|
+
Object.assign(contents, doc);
|
|
5242
4858
|
const exception = new models_0_1.InvalidRequestException({
|
|
5243
4859
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5244
4860
|
...contents,
|
|
@@ -5246,20 +4862,15 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
5246
4862
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5247
4863
|
};
|
|
5248
4864
|
const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
|
|
5249
|
-
const contents = map({});
|
|
4865
|
+
const contents = (0, smithy_client_1.map)({});
|
|
5250
4866
|
const data = parsedOutput.body;
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
}
|
|
5257
|
-
|
|
5258
|
-
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5259
|
-
}
|
|
5260
|
-
if (data.Type != null) {
|
|
5261
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
5262
|
-
}
|
|
4867
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4868
|
+
Code: smithy_client_1.expectString,
|
|
4869
|
+
Context: smithy_client_1.expectString,
|
|
4870
|
+
Message: smithy_client_1.expectString,
|
|
4871
|
+
Type: smithy_client_1.expectString,
|
|
4872
|
+
});
|
|
4873
|
+
Object.assign(contents, doc);
|
|
5263
4874
|
const exception = new models_0_1.InvalidResourceStateException({
|
|
5264
4875
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5265
4876
|
...contents,
|
|
@@ -5267,20 +4878,15 @@ const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
|
|
|
5267
4878
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5268
4879
|
};
|
|
5269
4880
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
5270
|
-
const contents = map({});
|
|
4881
|
+
const contents = (0, smithy_client_1.map)({});
|
|
5271
4882
|
const data = parsedOutput.body;
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
}
|
|
5278
|
-
|
|
5279
|
-
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5280
|
-
}
|
|
5281
|
-
if (data.Type != null) {
|
|
5282
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
5283
|
-
}
|
|
4883
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4884
|
+
Code: smithy_client_1.expectString,
|
|
4885
|
+
Context: smithy_client_1.expectString,
|
|
4886
|
+
Message: smithy_client_1.expectString,
|
|
4887
|
+
Type: smithy_client_1.expectString,
|
|
4888
|
+
});
|
|
4889
|
+
Object.assign(contents, doc);
|
|
5284
4890
|
const exception = new models_0_1.LimitExceededException({
|
|
5285
4891
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5286
4892
|
...contents,
|
|
@@ -5288,20 +4894,15 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
5288
4894
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5289
4895
|
};
|
|
5290
4896
|
const de_MissingParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
5291
|
-
const contents = map({});
|
|
4897
|
+
const contents = (0, smithy_client_1.map)({});
|
|
5292
4898
|
const data = parsedOutput.body;
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
}
|
|
5299
|
-
|
|
5300
|
-
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5301
|
-
}
|
|
5302
|
-
if (data.Type != null) {
|
|
5303
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
5304
|
-
}
|
|
4899
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4900
|
+
Code: smithy_client_1.expectString,
|
|
4901
|
+
Context: smithy_client_1.expectString,
|
|
4902
|
+
Message: smithy_client_1.expectString,
|
|
4903
|
+
Type: smithy_client_1.expectString,
|
|
4904
|
+
});
|
|
4905
|
+
Object.assign(contents, doc);
|
|
5305
4906
|
const exception = new models_0_1.MissingParameterValueException({
|
|
5306
4907
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5307
4908
|
...contents,
|
|
@@ -5309,20 +4910,15 @@ const de_MissingParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
|
5309
4910
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5310
4911
|
};
|
|
5311
4912
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
5312
|
-
const contents = map({});
|
|
4913
|
+
const contents = (0, smithy_client_1.map)({});
|
|
5313
4914
|
const data = parsedOutput.body;
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
}
|
|
5320
|
-
|
|
5321
|
-
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5322
|
-
}
|
|
5323
|
-
if (data.Type != null) {
|
|
5324
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
5325
|
-
}
|
|
4915
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4916
|
+
Code: smithy_client_1.expectString,
|
|
4917
|
+
Context: smithy_client_1.expectString,
|
|
4918
|
+
Message: smithy_client_1.expectString,
|
|
4919
|
+
Type: smithy_client_1.expectString,
|
|
4920
|
+
});
|
|
4921
|
+
Object.assign(contents, doc);
|
|
5326
4922
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
5327
4923
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5328
4924
|
...contents,
|
|
@@ -5330,1175 +4926,364 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
5330
4926
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5331
4927
|
};
|
|
5332
4928
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
5333
|
-
const contents = map({});
|
|
4929
|
+
const contents = (0, smithy_client_1.map)({});
|
|
5334
4930
|
const data = parsedOutput.body;
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
}
|
|
5341
|
-
|
|
5342
|
-
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5343
|
-
}
|
|
5344
|
-
if (data.Type != null) {
|
|
5345
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
5346
|
-
}
|
|
4931
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4932
|
+
Code: smithy_client_1.expectString,
|
|
4933
|
+
Context: smithy_client_1.expectString,
|
|
4934
|
+
Message: smithy_client_1.expectString,
|
|
4935
|
+
Type: smithy_client_1.expectString,
|
|
4936
|
+
});
|
|
4937
|
+
Object.assign(contents, doc);
|
|
5347
4938
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
5348
4939
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5349
4940
|
...contents,
|
|
5350
4941
|
});
|
|
5351
4942
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5352
4943
|
};
|
|
5353
|
-
const se_AdvancedBackupSetting = (input, context) => {
|
|
5354
|
-
return {
|
|
5355
|
-
...(input.BackupOptions != null && { BackupOptions: se_BackupOptions(input.BackupOptions, context) }),
|
|
5356
|
-
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
5357
|
-
};
|
|
5358
|
-
};
|
|
5359
|
-
const se_AdvancedBackupSettings = (input, context) => {
|
|
5360
|
-
return input
|
|
5361
|
-
.filter((e) => e != null)
|
|
5362
|
-
.map((entry) => {
|
|
5363
|
-
return se_AdvancedBackupSetting(entry, context);
|
|
5364
|
-
});
|
|
5365
|
-
};
|
|
5366
|
-
const se_BackupOptions = (input, context) => {
|
|
5367
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
5368
|
-
if (value === null) {
|
|
5369
|
-
return acc;
|
|
5370
|
-
}
|
|
5371
|
-
acc[key] = value;
|
|
5372
|
-
return acc;
|
|
5373
|
-
}, {});
|
|
5374
|
-
};
|
|
5375
|
-
const se_BackupPlanInput = (input, context) => {
|
|
5376
|
-
return {
|
|
5377
|
-
...(input.AdvancedBackupSettings != null && {
|
|
5378
|
-
AdvancedBackupSettings: se_AdvancedBackupSettings(input.AdvancedBackupSettings, context),
|
|
5379
|
-
}),
|
|
5380
|
-
...(input.BackupPlanName != null && { BackupPlanName: input.BackupPlanName }),
|
|
5381
|
-
...(input.Rules != null && { Rules: se_BackupRulesInput(input.Rules, context) }),
|
|
5382
|
-
};
|
|
5383
|
-
};
|
|
5384
|
-
const se_BackupRuleInput = (input, context) => {
|
|
5385
|
-
return {
|
|
5386
|
-
...(input.CompletionWindowMinutes != null && { CompletionWindowMinutes: input.CompletionWindowMinutes }),
|
|
5387
|
-
...(input.CopyActions != null && { CopyActions: se_CopyActions(input.CopyActions, context) }),
|
|
5388
|
-
...(input.EnableContinuousBackup != null && { EnableContinuousBackup: input.EnableContinuousBackup }),
|
|
5389
|
-
...(input.Lifecycle != null && { Lifecycle: se_Lifecycle(input.Lifecycle, context) }),
|
|
5390
|
-
...(input.RecoveryPointTags != null && { RecoveryPointTags: se_Tags(input.RecoveryPointTags, context) }),
|
|
5391
|
-
...(input.RuleName != null && { RuleName: input.RuleName }),
|
|
5392
|
-
...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
|
|
5393
|
-
...(input.StartWindowMinutes != null && { StartWindowMinutes: input.StartWindowMinutes }),
|
|
5394
|
-
...(input.TargetBackupVaultName != null && { TargetBackupVaultName: input.TargetBackupVaultName }),
|
|
5395
|
-
};
|
|
5396
|
-
};
|
|
5397
|
-
const se_BackupRulesInput = (input, context) => {
|
|
5398
|
-
return input
|
|
5399
|
-
.filter((e) => e != null)
|
|
5400
|
-
.map((entry) => {
|
|
5401
|
-
return se_BackupRuleInput(entry, context);
|
|
5402
|
-
});
|
|
5403
|
-
};
|
|
5404
|
-
const se_BackupSelection = (input, context) => {
|
|
5405
|
-
return {
|
|
5406
|
-
...(input.Conditions != null && { Conditions: se_Conditions(input.Conditions, context) }),
|
|
5407
|
-
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
5408
|
-
...(input.ListOfTags != null && { ListOfTags: se_ListOfTags(input.ListOfTags, context) }),
|
|
5409
|
-
...(input.NotResources != null && { NotResources: se_ResourceArns(input.NotResources, context) }),
|
|
5410
|
-
...(input.Resources != null && { Resources: se_ResourceArns(input.Resources, context) }),
|
|
5411
|
-
...(input.SelectionName != null && { SelectionName: input.SelectionName }),
|
|
5412
|
-
};
|
|
5413
|
-
};
|
|
5414
|
-
const se_BackupVaultEvents = (input, context) => {
|
|
5415
|
-
return input
|
|
5416
|
-
.filter((e) => e != null)
|
|
5417
|
-
.map((entry) => {
|
|
5418
|
-
return entry;
|
|
5419
|
-
});
|
|
5420
|
-
};
|
|
5421
|
-
const se_ComplianceResourceIdList = (input, context) => {
|
|
5422
|
-
return input
|
|
5423
|
-
.filter((e) => e != null)
|
|
5424
|
-
.map((entry) => {
|
|
5425
|
-
return entry;
|
|
5426
|
-
});
|
|
5427
|
-
};
|
|
5428
|
-
const se_Condition = (input, context) => {
|
|
5429
|
-
return {
|
|
5430
|
-
...(input.ConditionKey != null && { ConditionKey: input.ConditionKey }),
|
|
5431
|
-
...(input.ConditionType != null && { ConditionType: input.ConditionType }),
|
|
5432
|
-
...(input.ConditionValue != null && { ConditionValue: input.ConditionValue }),
|
|
5433
|
-
};
|
|
5434
|
-
};
|
|
5435
|
-
const se_ConditionParameter = (input, context) => {
|
|
5436
|
-
return {
|
|
5437
|
-
...(input.ConditionKey != null && { ConditionKey: input.ConditionKey }),
|
|
5438
|
-
...(input.ConditionValue != null && { ConditionValue: input.ConditionValue }),
|
|
5439
|
-
};
|
|
5440
|
-
};
|
|
5441
|
-
const se_ConditionParameters = (input, context) => {
|
|
5442
|
-
return input
|
|
5443
|
-
.filter((e) => e != null)
|
|
5444
|
-
.map((entry) => {
|
|
5445
|
-
return se_ConditionParameter(entry, context);
|
|
5446
|
-
});
|
|
5447
|
-
};
|
|
5448
|
-
const se_Conditions = (input, context) => {
|
|
5449
|
-
return {
|
|
5450
|
-
...(input.StringEquals != null && { StringEquals: se_ConditionParameters(input.StringEquals, context) }),
|
|
5451
|
-
...(input.StringLike != null && { StringLike: se_ConditionParameters(input.StringLike, context) }),
|
|
5452
|
-
...(input.StringNotEquals != null && { StringNotEquals: se_ConditionParameters(input.StringNotEquals, context) }),
|
|
5453
|
-
...(input.StringNotLike != null && { StringNotLike: se_ConditionParameters(input.StringNotLike, context) }),
|
|
5454
|
-
};
|
|
5455
|
-
};
|
|
5456
|
-
const se_ControlInputParameter = (input, context) => {
|
|
5457
|
-
return {
|
|
5458
|
-
...(input.ParameterName != null && { ParameterName: input.ParameterName }),
|
|
5459
|
-
...(input.ParameterValue != null && { ParameterValue: input.ParameterValue }),
|
|
5460
|
-
};
|
|
5461
|
-
};
|
|
5462
|
-
const se_ControlInputParameters = (input, context) => {
|
|
5463
|
-
return input
|
|
5464
|
-
.filter((e) => e != null)
|
|
5465
|
-
.map((entry) => {
|
|
5466
|
-
return se_ControlInputParameter(entry, context);
|
|
5467
|
-
});
|
|
5468
|
-
};
|
|
5469
|
-
const se_ControlScope = (input, context) => {
|
|
5470
|
-
return {
|
|
5471
|
-
...(input.ComplianceResourceIds != null && {
|
|
5472
|
-
ComplianceResourceIds: se_ComplianceResourceIdList(input.ComplianceResourceIds, context),
|
|
5473
|
-
}),
|
|
5474
|
-
...(input.ComplianceResourceTypes != null && {
|
|
5475
|
-
ComplianceResourceTypes: se_ResourceTypeList(input.ComplianceResourceTypes, context),
|
|
5476
|
-
}),
|
|
5477
|
-
...(input.Tags != null && { Tags: se_stringMap(input.Tags, context) }),
|
|
5478
|
-
};
|
|
5479
|
-
};
|
|
5480
|
-
const se_CopyAction = (input, context) => {
|
|
5481
|
-
return {
|
|
5482
|
-
...(input.DestinationBackupVaultArn != null && { DestinationBackupVaultArn: input.DestinationBackupVaultArn }),
|
|
5483
|
-
...(input.Lifecycle != null && { Lifecycle: se_Lifecycle(input.Lifecycle, context) }),
|
|
5484
|
-
};
|
|
5485
|
-
};
|
|
5486
|
-
const se_CopyActions = (input, context) => {
|
|
5487
|
-
return input
|
|
5488
|
-
.filter((e) => e != null)
|
|
5489
|
-
.map((entry) => {
|
|
5490
|
-
return se_CopyAction(entry, context);
|
|
5491
|
-
});
|
|
5492
|
-
};
|
|
5493
4944
|
const se_DateRange = (input, context) => {
|
|
5494
|
-
return {
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
};
|
|
5498
|
-
};
|
|
5499
|
-
const se_FormatList = (input, context) => {
|
|
5500
|
-
return input
|
|
5501
|
-
.filter((e) => e != null)
|
|
5502
|
-
.map((entry) => {
|
|
5503
|
-
return entry;
|
|
5504
|
-
});
|
|
5505
|
-
};
|
|
5506
|
-
const se_FrameworkControl = (input, context) => {
|
|
5507
|
-
return {
|
|
5508
|
-
...(input.ControlInputParameters != null && {
|
|
5509
|
-
ControlInputParameters: se_ControlInputParameters(input.ControlInputParameters, context),
|
|
5510
|
-
}),
|
|
5511
|
-
...(input.ControlName != null && { ControlName: input.ControlName }),
|
|
5512
|
-
...(input.ControlScope != null && { ControlScope: se_ControlScope(input.ControlScope, context) }),
|
|
5513
|
-
};
|
|
5514
|
-
};
|
|
5515
|
-
const se_FrameworkControls = (input, context) => {
|
|
5516
|
-
return input
|
|
5517
|
-
.filter((e) => e != null)
|
|
5518
|
-
.map((entry) => {
|
|
5519
|
-
return se_FrameworkControl(entry, context);
|
|
5520
|
-
});
|
|
5521
|
-
};
|
|
5522
|
-
const se_GlobalSettings = (input, context) => {
|
|
5523
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
5524
|
-
if (value === null) {
|
|
5525
|
-
return acc;
|
|
5526
|
-
}
|
|
5527
|
-
acc[key] = value;
|
|
5528
|
-
return acc;
|
|
5529
|
-
}, {});
|
|
5530
|
-
};
|
|
5531
|
-
const se_Lifecycle = (input, context) => {
|
|
5532
|
-
return {
|
|
5533
|
-
...(input.DeleteAfterDays != null && { DeleteAfterDays: input.DeleteAfterDays }),
|
|
5534
|
-
...(input.MoveToColdStorageAfterDays != null && { MoveToColdStorageAfterDays: input.MoveToColdStorageAfterDays }),
|
|
5535
|
-
};
|
|
5536
|
-
};
|
|
5537
|
-
const se_ListOfTags = (input, context) => {
|
|
5538
|
-
return input
|
|
5539
|
-
.filter((e) => e != null)
|
|
5540
|
-
.map((entry) => {
|
|
5541
|
-
return se_Condition(entry, context);
|
|
4945
|
+
return (0, smithy_client_1.take)(input, {
|
|
4946
|
+
FromDate: (_) => Math.round(_.getTime() / 1000),
|
|
4947
|
+
ToDate: (_) => Math.round(_.getTime() / 1000),
|
|
5542
4948
|
});
|
|
5543
4949
|
};
|
|
5544
|
-
const se_Metadata = (input, context) => {
|
|
5545
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
5546
|
-
if (value === null) {
|
|
5547
|
-
return acc;
|
|
5548
|
-
}
|
|
5549
|
-
acc[key] = value;
|
|
5550
|
-
return acc;
|
|
5551
|
-
}, {});
|
|
5552
|
-
};
|
|
5553
4950
|
const se_RecoveryPointSelection = (input, context) => {
|
|
5554
|
-
return {
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
}),
|
|
5559
|
-
...(input.VaultNames != null && { VaultNames: se_VaultNames(input.VaultNames, context) }),
|
|
5560
|
-
};
|
|
5561
|
-
};
|
|
5562
|
-
const se_ReportDeliveryChannel = (input, context) => {
|
|
5563
|
-
return {
|
|
5564
|
-
...(input.Formats != null && { Formats: se_FormatList(input.Formats, context) }),
|
|
5565
|
-
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
5566
|
-
...(input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }),
|
|
5567
|
-
};
|
|
5568
|
-
};
|
|
5569
|
-
const se_ReportSetting = (input, context) => {
|
|
5570
|
-
return {
|
|
5571
|
-
...(input.Accounts != null && { Accounts: se_stringList(input.Accounts, context) }),
|
|
5572
|
-
...(input.FrameworkArns != null && { FrameworkArns: se_stringList(input.FrameworkArns, context) }),
|
|
5573
|
-
...(input.NumberOfFrameworks != null && { NumberOfFrameworks: input.NumberOfFrameworks }),
|
|
5574
|
-
...(input.OrganizationUnits != null && { OrganizationUnits: se_stringList(input.OrganizationUnits, context) }),
|
|
5575
|
-
...(input.Regions != null && { Regions: se_stringList(input.Regions, context) }),
|
|
5576
|
-
...(input.ReportTemplate != null && { ReportTemplate: input.ReportTemplate }),
|
|
5577
|
-
};
|
|
5578
|
-
};
|
|
5579
|
-
const se_ResourceArns = (input, context) => {
|
|
5580
|
-
return input
|
|
5581
|
-
.filter((e) => e != null)
|
|
5582
|
-
.map((entry) => {
|
|
5583
|
-
return entry;
|
|
5584
|
-
});
|
|
5585
|
-
};
|
|
5586
|
-
const se_ResourceIdentifiers = (input, context) => {
|
|
5587
|
-
return input
|
|
5588
|
-
.filter((e) => e != null)
|
|
5589
|
-
.map((entry) => {
|
|
5590
|
-
return entry;
|
|
5591
|
-
});
|
|
5592
|
-
};
|
|
5593
|
-
const se_ResourceTypeList = (input, context) => {
|
|
5594
|
-
return input
|
|
5595
|
-
.filter((e) => e != null)
|
|
5596
|
-
.map((entry) => {
|
|
5597
|
-
return entry;
|
|
5598
|
-
});
|
|
5599
|
-
};
|
|
5600
|
-
const se_ResourceTypeManagementPreference = (input, context) => {
|
|
5601
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
5602
|
-
if (value === null) {
|
|
5603
|
-
return acc;
|
|
5604
|
-
}
|
|
5605
|
-
acc[key] = value;
|
|
5606
|
-
return acc;
|
|
5607
|
-
}, {});
|
|
5608
|
-
};
|
|
5609
|
-
const se_ResourceTypeOptInPreference = (input, context) => {
|
|
5610
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
5611
|
-
if (value === null) {
|
|
5612
|
-
return acc;
|
|
5613
|
-
}
|
|
5614
|
-
acc[key] = value;
|
|
5615
|
-
return acc;
|
|
5616
|
-
}, {});
|
|
5617
|
-
};
|
|
5618
|
-
const se_stringList = (input, context) => {
|
|
5619
|
-
return input
|
|
5620
|
-
.filter((e) => e != null)
|
|
5621
|
-
.map((entry) => {
|
|
5622
|
-
return entry;
|
|
5623
|
-
});
|
|
5624
|
-
};
|
|
5625
|
-
const se_stringMap = (input, context) => {
|
|
5626
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
5627
|
-
if (value === null) {
|
|
5628
|
-
return acc;
|
|
5629
|
-
}
|
|
5630
|
-
acc[key] = value;
|
|
5631
|
-
return acc;
|
|
5632
|
-
}, {});
|
|
5633
|
-
};
|
|
5634
|
-
const se_TagKeyList = (input, context) => {
|
|
5635
|
-
return input
|
|
5636
|
-
.filter((e) => e != null)
|
|
5637
|
-
.map((entry) => {
|
|
5638
|
-
return entry;
|
|
4951
|
+
return (0, smithy_client_1.take)(input, {
|
|
4952
|
+
DateRange: (_) => se_DateRange(_, context),
|
|
4953
|
+
ResourceIdentifiers: smithy_client_1._json,
|
|
4954
|
+
VaultNames: smithy_client_1._json,
|
|
5639
4955
|
});
|
|
5640
4956
|
};
|
|
5641
|
-
const se_Tags = (input, context) => {
|
|
5642
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
5643
|
-
if (value === null) {
|
|
5644
|
-
return acc;
|
|
5645
|
-
}
|
|
5646
|
-
acc[key] = value;
|
|
5647
|
-
return acc;
|
|
5648
|
-
}, {});
|
|
5649
|
-
};
|
|
5650
|
-
const se_VaultNames = (input, context) => {
|
|
5651
|
-
return input
|
|
5652
|
-
.filter((e) => e != null)
|
|
5653
|
-
.map((entry) => {
|
|
5654
|
-
return entry;
|
|
5655
|
-
});
|
|
5656
|
-
};
|
|
5657
|
-
const de_AdvancedBackupSetting = (output, context) => {
|
|
5658
|
-
return {
|
|
5659
|
-
BackupOptions: output.BackupOptions != null ? de_BackupOptions(output.BackupOptions, context) : undefined,
|
|
5660
|
-
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
5661
|
-
};
|
|
5662
|
-
};
|
|
5663
|
-
const de_AdvancedBackupSettings = (output, context) => {
|
|
5664
|
-
const retVal = (output || [])
|
|
5665
|
-
.filter((e) => e != null)
|
|
5666
|
-
.map((entry) => {
|
|
5667
|
-
if (entry === null) {
|
|
5668
|
-
return null;
|
|
5669
|
-
}
|
|
5670
|
-
return de_AdvancedBackupSetting(entry, context);
|
|
5671
|
-
});
|
|
5672
|
-
return retVal;
|
|
5673
|
-
};
|
|
5674
4957
|
const de_BackupJob = (output, context) => {
|
|
5675
|
-
return {
|
|
5676
|
-
AccountId:
|
|
5677
|
-
BackupJobId:
|
|
5678
|
-
BackupOptions:
|
|
5679
|
-
BackupSizeInBytes:
|
|
5680
|
-
BackupType:
|
|
5681
|
-
BackupVaultArn:
|
|
5682
|
-
BackupVaultName:
|
|
5683
|
-
BytesTransferred:
|
|
5684
|
-
CompletionDate:
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
ResourceName: (0, smithy_client_1.expectString)(output.ResourceName),
|
|
5701
|
-
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
5702
|
-
StartBy: output.StartBy != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartBy))) : undefined,
|
|
5703
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
5704
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
5705
|
-
};
|
|
5706
|
-
};
|
|
5707
|
-
const de_BackupJobChildJobsInState = (output, context) => {
|
|
5708
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
5709
|
-
if (value === null) {
|
|
5710
|
-
return acc;
|
|
5711
|
-
}
|
|
5712
|
-
acc[key] = (0, smithy_client_1.expectLong)(value);
|
|
5713
|
-
return acc;
|
|
5714
|
-
}, {});
|
|
4958
|
+
return (0, smithy_client_1.take)(output, {
|
|
4959
|
+
AccountId: smithy_client_1.expectString,
|
|
4960
|
+
BackupJobId: smithy_client_1.expectString,
|
|
4961
|
+
BackupOptions: smithy_client_1._json,
|
|
4962
|
+
BackupSizeInBytes: smithy_client_1.expectLong,
|
|
4963
|
+
BackupType: smithy_client_1.expectString,
|
|
4964
|
+
BackupVaultArn: smithy_client_1.expectString,
|
|
4965
|
+
BackupVaultName: smithy_client_1.expectString,
|
|
4966
|
+
BytesTransferred: smithy_client_1.expectLong,
|
|
4967
|
+
CompletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4968
|
+
CreatedBy: smithy_client_1._json,
|
|
4969
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4970
|
+
ExpectedCompletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4971
|
+
IamRoleArn: smithy_client_1.expectString,
|
|
4972
|
+
IsParent: smithy_client_1.expectBoolean,
|
|
4973
|
+
ParentJobId: smithy_client_1.expectString,
|
|
4974
|
+
PercentDone: smithy_client_1.expectString,
|
|
4975
|
+
RecoveryPointArn: smithy_client_1.expectString,
|
|
4976
|
+
ResourceArn: smithy_client_1.expectString,
|
|
4977
|
+
ResourceName: smithy_client_1.expectString,
|
|
4978
|
+
ResourceType: smithy_client_1.expectString,
|
|
4979
|
+
StartBy: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4980
|
+
State: smithy_client_1.expectString,
|
|
4981
|
+
StatusMessage: smithy_client_1.expectString,
|
|
4982
|
+
});
|
|
5715
4983
|
};
|
|
5716
4984
|
const de_BackupJobsList = (output, context) => {
|
|
5717
4985
|
const retVal = (output || [])
|
|
5718
4986
|
.filter((e) => e != null)
|
|
5719
4987
|
.map((entry) => {
|
|
5720
|
-
if (entry === null) {
|
|
5721
|
-
return null;
|
|
5722
|
-
}
|
|
5723
4988
|
return de_BackupJob(entry, context);
|
|
5724
4989
|
});
|
|
5725
4990
|
return retVal;
|
|
5726
4991
|
};
|
|
5727
|
-
const de_BackupOptions = (output, context) => {
|
|
5728
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
5729
|
-
if (value === null) {
|
|
5730
|
-
return acc;
|
|
5731
|
-
}
|
|
5732
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
5733
|
-
return acc;
|
|
5734
|
-
}, {});
|
|
5735
|
-
};
|
|
5736
|
-
const de_BackupPlan = (output, context) => {
|
|
5737
|
-
return {
|
|
5738
|
-
AdvancedBackupSettings: output.AdvancedBackupSettings != null
|
|
5739
|
-
? de_AdvancedBackupSettings(output.AdvancedBackupSettings, context)
|
|
5740
|
-
: undefined,
|
|
5741
|
-
BackupPlanName: (0, smithy_client_1.expectString)(output.BackupPlanName),
|
|
5742
|
-
Rules: output.Rules != null ? de_BackupRules(output.Rules, context) : undefined,
|
|
5743
|
-
};
|
|
5744
|
-
};
|
|
5745
4992
|
const de_BackupPlansList = (output, context) => {
|
|
5746
4993
|
const retVal = (output || [])
|
|
5747
4994
|
.filter((e) => e != null)
|
|
5748
4995
|
.map((entry) => {
|
|
5749
|
-
if (entry === null) {
|
|
5750
|
-
return null;
|
|
5751
|
-
}
|
|
5752
4996
|
return de_BackupPlansListMember(entry, context);
|
|
5753
4997
|
});
|
|
5754
4998
|
return retVal;
|
|
5755
4999
|
};
|
|
5756
5000
|
const de_BackupPlansListMember = (output, context) => {
|
|
5757
|
-
return {
|
|
5758
|
-
AdvancedBackupSettings:
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
CreatorRequestId: (0, smithy_client_1.expectString)(output.CreatorRequestId),
|
|
5768
|
-
DeletionDate: output.DeletionDate != null
|
|
5769
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeletionDate)))
|
|
5770
|
-
: undefined,
|
|
5771
|
-
LastExecutionDate: output.LastExecutionDate != null
|
|
5772
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastExecutionDate)))
|
|
5773
|
-
: undefined,
|
|
5774
|
-
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
5775
|
-
};
|
|
5776
|
-
};
|
|
5777
|
-
const de_BackupPlanTemplatesList = (output, context) => {
|
|
5778
|
-
const retVal = (output || [])
|
|
5779
|
-
.filter((e) => e != null)
|
|
5780
|
-
.map((entry) => {
|
|
5781
|
-
if (entry === null) {
|
|
5782
|
-
return null;
|
|
5783
|
-
}
|
|
5784
|
-
return de_BackupPlanTemplatesListMember(entry, context);
|
|
5001
|
+
return (0, smithy_client_1.take)(output, {
|
|
5002
|
+
AdvancedBackupSettings: smithy_client_1._json,
|
|
5003
|
+
BackupPlanArn: smithy_client_1.expectString,
|
|
5004
|
+
BackupPlanId: smithy_client_1.expectString,
|
|
5005
|
+
BackupPlanName: smithy_client_1.expectString,
|
|
5006
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5007
|
+
CreatorRequestId: smithy_client_1.expectString,
|
|
5008
|
+
DeletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5009
|
+
LastExecutionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5010
|
+
VersionId: smithy_client_1.expectString,
|
|
5785
5011
|
});
|
|
5786
|
-
return retVal;
|
|
5787
|
-
};
|
|
5788
|
-
const de_BackupPlanTemplatesListMember = (output, context) => {
|
|
5789
|
-
return {
|
|
5790
|
-
BackupPlanTemplateId: (0, smithy_client_1.expectString)(output.BackupPlanTemplateId),
|
|
5791
|
-
BackupPlanTemplateName: (0, smithy_client_1.expectString)(output.BackupPlanTemplateName),
|
|
5792
|
-
};
|
|
5793
5012
|
};
|
|
5794
5013
|
const de_BackupPlanVersionsList = (output, context) => {
|
|
5795
5014
|
const retVal = (output || [])
|
|
5796
5015
|
.filter((e) => e != null)
|
|
5797
5016
|
.map((entry) => {
|
|
5798
|
-
if (entry === null) {
|
|
5799
|
-
return null;
|
|
5800
|
-
}
|
|
5801
5017
|
return de_BackupPlansListMember(entry, context);
|
|
5802
5018
|
});
|
|
5803
5019
|
return retVal;
|
|
5804
5020
|
};
|
|
5805
|
-
const de_BackupRule = (output, context) => {
|
|
5806
|
-
return {
|
|
5807
|
-
CompletionWindowMinutes: (0, smithy_client_1.expectLong)(output.CompletionWindowMinutes),
|
|
5808
|
-
CopyActions: output.CopyActions != null ? de_CopyActions(output.CopyActions, context) : undefined,
|
|
5809
|
-
EnableContinuousBackup: (0, smithy_client_1.expectBoolean)(output.EnableContinuousBackup),
|
|
5810
|
-
Lifecycle: output.Lifecycle != null ? de_Lifecycle(output.Lifecycle, context) : undefined,
|
|
5811
|
-
RecoveryPointTags: output.RecoveryPointTags != null ? de_Tags(output.RecoveryPointTags, context) : undefined,
|
|
5812
|
-
RuleId: (0, smithy_client_1.expectString)(output.RuleId),
|
|
5813
|
-
RuleName: (0, smithy_client_1.expectString)(output.RuleName),
|
|
5814
|
-
ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression),
|
|
5815
|
-
StartWindowMinutes: (0, smithy_client_1.expectLong)(output.StartWindowMinutes),
|
|
5816
|
-
TargetBackupVaultName: (0, smithy_client_1.expectString)(output.TargetBackupVaultName),
|
|
5817
|
-
};
|
|
5818
|
-
};
|
|
5819
|
-
const de_BackupRules = (output, context) => {
|
|
5820
|
-
const retVal = (output || [])
|
|
5821
|
-
.filter((e) => e != null)
|
|
5822
|
-
.map((entry) => {
|
|
5823
|
-
if (entry === null) {
|
|
5824
|
-
return null;
|
|
5825
|
-
}
|
|
5826
|
-
return de_BackupRule(entry, context);
|
|
5827
|
-
});
|
|
5828
|
-
return retVal;
|
|
5829
|
-
};
|
|
5830
|
-
const de_BackupSelection = (output, context) => {
|
|
5831
|
-
return {
|
|
5832
|
-
Conditions: output.Conditions != null ? de_Conditions(output.Conditions, context) : undefined,
|
|
5833
|
-
IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
|
|
5834
|
-
ListOfTags: output.ListOfTags != null ? de_ListOfTags(output.ListOfTags, context) : undefined,
|
|
5835
|
-
NotResources: output.NotResources != null ? de_ResourceArns(output.NotResources, context) : undefined,
|
|
5836
|
-
Resources: output.Resources != null ? de_ResourceArns(output.Resources, context) : undefined,
|
|
5837
|
-
SelectionName: (0, smithy_client_1.expectString)(output.SelectionName),
|
|
5838
|
-
};
|
|
5839
|
-
};
|
|
5840
5021
|
const de_BackupSelectionsList = (output, context) => {
|
|
5841
5022
|
const retVal = (output || [])
|
|
5842
5023
|
.filter((e) => e != null)
|
|
5843
5024
|
.map((entry) => {
|
|
5844
|
-
if (entry === null) {
|
|
5845
|
-
return null;
|
|
5846
|
-
}
|
|
5847
5025
|
return de_BackupSelectionsListMember(entry, context);
|
|
5848
5026
|
});
|
|
5849
5027
|
return retVal;
|
|
5850
5028
|
};
|
|
5851
5029
|
const de_BackupSelectionsListMember = (output, context) => {
|
|
5852
|
-
return {
|
|
5853
|
-
BackupPlanId:
|
|
5854
|
-
CreationDate:
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
SelectionId: (0, smithy_client_1.expectString)(output.SelectionId),
|
|
5860
|
-
SelectionName: (0, smithy_client_1.expectString)(output.SelectionName),
|
|
5861
|
-
};
|
|
5862
|
-
};
|
|
5863
|
-
const de_BackupVaultEvents = (output, context) => {
|
|
5864
|
-
const retVal = (output || [])
|
|
5865
|
-
.filter((e) => e != null)
|
|
5866
|
-
.map((entry) => {
|
|
5867
|
-
if (entry === null) {
|
|
5868
|
-
return null;
|
|
5869
|
-
}
|
|
5870
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
5030
|
+
return (0, smithy_client_1.take)(output, {
|
|
5031
|
+
BackupPlanId: smithy_client_1.expectString,
|
|
5032
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5033
|
+
CreatorRequestId: smithy_client_1.expectString,
|
|
5034
|
+
IamRoleArn: smithy_client_1.expectString,
|
|
5035
|
+
SelectionId: smithy_client_1.expectString,
|
|
5036
|
+
SelectionName: smithy_client_1.expectString,
|
|
5871
5037
|
});
|
|
5872
|
-
return retVal;
|
|
5873
5038
|
};
|
|
5874
5039
|
const de_BackupVaultList = (output, context) => {
|
|
5875
5040
|
const retVal = (output || [])
|
|
5876
5041
|
.filter((e) => e != null)
|
|
5877
5042
|
.map((entry) => {
|
|
5878
|
-
if (entry === null) {
|
|
5879
|
-
return null;
|
|
5880
|
-
}
|
|
5881
5043
|
return de_BackupVaultListMember(entry, context);
|
|
5882
5044
|
});
|
|
5883
5045
|
return retVal;
|
|
5884
5046
|
};
|
|
5885
5047
|
const de_BackupVaultListMember = (output, context) => {
|
|
5886
|
-
return {
|
|
5887
|
-
BackupVaultArn:
|
|
5888
|
-
BackupVaultName:
|
|
5889
|
-
CreationDate:
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
MinRetentionDays: (0, smithy_client_1.expectLong)(output.MinRetentionDays),
|
|
5898
|
-
NumberOfRecoveryPoints: (0, smithy_client_1.expectLong)(output.NumberOfRecoveryPoints),
|
|
5899
|
-
};
|
|
5900
|
-
};
|
|
5901
|
-
const de_CalculatedLifecycle = (output, context) => {
|
|
5902
|
-
return {
|
|
5903
|
-
DeleteAt: output.DeleteAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeleteAt))) : undefined,
|
|
5904
|
-
MoveToColdStorageAt: output.MoveToColdStorageAt != null
|
|
5905
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.MoveToColdStorageAt)))
|
|
5906
|
-
: undefined,
|
|
5907
|
-
};
|
|
5908
|
-
};
|
|
5909
|
-
const de_ComplianceResourceIdList = (output, context) => {
|
|
5910
|
-
const retVal = (output || [])
|
|
5911
|
-
.filter((e) => e != null)
|
|
5912
|
-
.map((entry) => {
|
|
5913
|
-
if (entry === null) {
|
|
5914
|
-
return null;
|
|
5915
|
-
}
|
|
5916
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
5917
|
-
});
|
|
5918
|
-
return retVal;
|
|
5919
|
-
};
|
|
5920
|
-
const de_Condition = (output, context) => {
|
|
5921
|
-
return {
|
|
5922
|
-
ConditionKey: (0, smithy_client_1.expectString)(output.ConditionKey),
|
|
5923
|
-
ConditionType: (0, smithy_client_1.expectString)(output.ConditionType),
|
|
5924
|
-
ConditionValue: (0, smithy_client_1.expectString)(output.ConditionValue),
|
|
5925
|
-
};
|
|
5926
|
-
};
|
|
5927
|
-
const de_ConditionParameter = (output, context) => {
|
|
5928
|
-
return {
|
|
5929
|
-
ConditionKey: (0, smithy_client_1.expectString)(output.ConditionKey),
|
|
5930
|
-
ConditionValue: (0, smithy_client_1.expectString)(output.ConditionValue),
|
|
5931
|
-
};
|
|
5932
|
-
};
|
|
5933
|
-
const de_ConditionParameters = (output, context) => {
|
|
5934
|
-
const retVal = (output || [])
|
|
5935
|
-
.filter((e) => e != null)
|
|
5936
|
-
.map((entry) => {
|
|
5937
|
-
if (entry === null) {
|
|
5938
|
-
return null;
|
|
5939
|
-
}
|
|
5940
|
-
return de_ConditionParameter(entry, context);
|
|
5941
|
-
});
|
|
5942
|
-
return retVal;
|
|
5943
|
-
};
|
|
5944
|
-
const de_Conditions = (output, context) => {
|
|
5945
|
-
return {
|
|
5946
|
-
StringEquals: output.StringEquals != null ? de_ConditionParameters(output.StringEquals, context) : undefined,
|
|
5947
|
-
StringLike: output.StringLike != null ? de_ConditionParameters(output.StringLike, context) : undefined,
|
|
5948
|
-
StringNotEquals: output.StringNotEquals != null ? de_ConditionParameters(output.StringNotEquals, context) : undefined,
|
|
5949
|
-
StringNotLike: output.StringNotLike != null ? de_ConditionParameters(output.StringNotLike, context) : undefined,
|
|
5950
|
-
};
|
|
5951
|
-
};
|
|
5952
|
-
const de_ControlInputParameter = (output, context) => {
|
|
5953
|
-
return {
|
|
5954
|
-
ParameterName: (0, smithy_client_1.expectString)(output.ParameterName),
|
|
5955
|
-
ParameterValue: (0, smithy_client_1.expectString)(output.ParameterValue),
|
|
5956
|
-
};
|
|
5957
|
-
};
|
|
5958
|
-
const de_ControlInputParameters = (output, context) => {
|
|
5959
|
-
const retVal = (output || [])
|
|
5960
|
-
.filter((e) => e != null)
|
|
5961
|
-
.map((entry) => {
|
|
5962
|
-
if (entry === null) {
|
|
5963
|
-
return null;
|
|
5964
|
-
}
|
|
5965
|
-
return de_ControlInputParameter(entry, context);
|
|
5048
|
+
return (0, smithy_client_1.take)(output, {
|
|
5049
|
+
BackupVaultArn: smithy_client_1.expectString,
|
|
5050
|
+
BackupVaultName: smithy_client_1.expectString,
|
|
5051
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5052
|
+
CreatorRequestId: smithy_client_1.expectString,
|
|
5053
|
+
EncryptionKeyArn: smithy_client_1.expectString,
|
|
5054
|
+
LockDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5055
|
+
Locked: smithy_client_1.expectBoolean,
|
|
5056
|
+
MaxRetentionDays: smithy_client_1.expectLong,
|
|
5057
|
+
MinRetentionDays: smithy_client_1.expectLong,
|
|
5058
|
+
NumberOfRecoveryPoints: smithy_client_1.expectLong,
|
|
5966
5059
|
});
|
|
5967
|
-
return retVal;
|
|
5968
|
-
};
|
|
5969
|
-
const de_ControlScope = (output, context) => {
|
|
5970
|
-
return {
|
|
5971
|
-
ComplianceResourceIds: output.ComplianceResourceIds != null
|
|
5972
|
-
? de_ComplianceResourceIdList(output.ComplianceResourceIds, context)
|
|
5973
|
-
: undefined,
|
|
5974
|
-
ComplianceResourceTypes: output.ComplianceResourceTypes != null ? de_ResourceTypeList(output.ComplianceResourceTypes, context) : undefined,
|
|
5975
|
-
Tags: output.Tags != null ? de_stringMap(output.Tags, context) : undefined,
|
|
5976
|
-
};
|
|
5977
|
-
};
|
|
5978
|
-
const de_CopyAction = (output, context) => {
|
|
5979
|
-
return {
|
|
5980
|
-
DestinationBackupVaultArn: (0, smithy_client_1.expectString)(output.DestinationBackupVaultArn),
|
|
5981
|
-
Lifecycle: output.Lifecycle != null ? de_Lifecycle(output.Lifecycle, context) : undefined,
|
|
5982
|
-
};
|
|
5983
5060
|
};
|
|
5984
|
-
const
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
.
|
|
5988
|
-
if (entry === null) {
|
|
5989
|
-
return null;
|
|
5990
|
-
}
|
|
5991
|
-
return de_CopyAction(entry, context);
|
|
5061
|
+
const de_CalculatedLifecycle = (output, context) => {
|
|
5062
|
+
return (0, smithy_client_1.take)(output, {
|
|
5063
|
+
DeleteAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5064
|
+
MoveToColdStorageAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5992
5065
|
});
|
|
5993
|
-
return retVal;
|
|
5994
5066
|
};
|
|
5995
5067
|
const de_CopyJob = (output, context) => {
|
|
5996
|
-
return {
|
|
5997
|
-
AccountId:
|
|
5998
|
-
BackupSizeInBytes:
|
|
5999
|
-
ChildJobsInState:
|
|
6000
|
-
CompletionDate:
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
SourceRecoveryPointArn: (0, smithy_client_1.expectString)(output.SourceRecoveryPointArn),
|
|
6020
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
6021
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
6022
|
-
};
|
|
6023
|
-
};
|
|
6024
|
-
const de_CopyJobChildJobsInState = (output, context) => {
|
|
6025
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
6026
|
-
if (value === null) {
|
|
6027
|
-
return acc;
|
|
6028
|
-
}
|
|
6029
|
-
acc[key] = (0, smithy_client_1.expectLong)(value);
|
|
6030
|
-
return acc;
|
|
6031
|
-
}, {});
|
|
5068
|
+
return (0, smithy_client_1.take)(output, {
|
|
5069
|
+
AccountId: smithy_client_1.expectString,
|
|
5070
|
+
BackupSizeInBytes: smithy_client_1.expectLong,
|
|
5071
|
+
ChildJobsInState: smithy_client_1._json,
|
|
5072
|
+
CompletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5073
|
+
CompositeMemberIdentifier: smithy_client_1.expectString,
|
|
5074
|
+
CopyJobId: smithy_client_1.expectString,
|
|
5075
|
+
CreatedBy: smithy_client_1._json,
|
|
5076
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5077
|
+
DestinationBackupVaultArn: smithy_client_1.expectString,
|
|
5078
|
+
DestinationRecoveryPointArn: smithy_client_1.expectString,
|
|
5079
|
+
IamRoleArn: smithy_client_1.expectString,
|
|
5080
|
+
IsParent: smithy_client_1.expectBoolean,
|
|
5081
|
+
NumberOfChildJobs: smithy_client_1.expectLong,
|
|
5082
|
+
ParentJobId: smithy_client_1.expectString,
|
|
5083
|
+
ResourceArn: smithy_client_1.expectString,
|
|
5084
|
+
ResourceName: smithy_client_1.expectString,
|
|
5085
|
+
ResourceType: smithy_client_1.expectString,
|
|
5086
|
+
SourceBackupVaultArn: smithy_client_1.expectString,
|
|
5087
|
+
SourceRecoveryPointArn: smithy_client_1.expectString,
|
|
5088
|
+
State: smithy_client_1.expectString,
|
|
5089
|
+
StatusMessage: smithy_client_1.expectString,
|
|
5090
|
+
});
|
|
6032
5091
|
};
|
|
6033
5092
|
const de_CopyJobsList = (output, context) => {
|
|
6034
5093
|
const retVal = (output || [])
|
|
6035
5094
|
.filter((e) => e != null)
|
|
6036
5095
|
.map((entry) => {
|
|
6037
|
-
if (entry === null) {
|
|
6038
|
-
return null;
|
|
6039
|
-
}
|
|
6040
5096
|
return de_CopyJob(entry, context);
|
|
6041
5097
|
});
|
|
6042
5098
|
return retVal;
|
|
6043
5099
|
};
|
|
6044
5100
|
const de_DateRange = (output, context) => {
|
|
6045
|
-
return {
|
|
6046
|
-
FromDate:
|
|
6047
|
-
ToDate:
|
|
6048
|
-
};
|
|
6049
|
-
};
|
|
6050
|
-
const de_FormatList = (output, context) => {
|
|
6051
|
-
const retVal = (output || [])
|
|
6052
|
-
.filter((e) => e != null)
|
|
6053
|
-
.map((entry) => {
|
|
6054
|
-
if (entry === null) {
|
|
6055
|
-
return null;
|
|
6056
|
-
}
|
|
6057
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
5101
|
+
return (0, smithy_client_1.take)(output, {
|
|
5102
|
+
FromDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5103
|
+
ToDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6058
5104
|
});
|
|
6059
|
-
return retVal;
|
|
6060
5105
|
};
|
|
6061
5106
|
const de_Framework = (output, context) => {
|
|
6062
|
-
return {
|
|
6063
|
-
CreationTime:
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
FrameworkName: (0, smithy_client_1.expectString)(output.FrameworkName),
|
|
6070
|
-
NumberOfControls: (0, smithy_client_1.expectInt32)(output.NumberOfControls),
|
|
6071
|
-
};
|
|
6072
|
-
};
|
|
6073
|
-
const de_FrameworkControl = (output, context) => {
|
|
6074
|
-
return {
|
|
6075
|
-
ControlInputParameters: output.ControlInputParameters != null
|
|
6076
|
-
? de_ControlInputParameters(output.ControlInputParameters, context)
|
|
6077
|
-
: undefined,
|
|
6078
|
-
ControlName: (0, smithy_client_1.expectString)(output.ControlName),
|
|
6079
|
-
ControlScope: output.ControlScope != null ? de_ControlScope(output.ControlScope, context) : undefined,
|
|
6080
|
-
};
|
|
6081
|
-
};
|
|
6082
|
-
const de_FrameworkControls = (output, context) => {
|
|
6083
|
-
const retVal = (output || [])
|
|
6084
|
-
.filter((e) => e != null)
|
|
6085
|
-
.map((entry) => {
|
|
6086
|
-
if (entry === null) {
|
|
6087
|
-
return null;
|
|
6088
|
-
}
|
|
6089
|
-
return de_FrameworkControl(entry, context);
|
|
5107
|
+
return (0, smithy_client_1.take)(output, {
|
|
5108
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5109
|
+
DeploymentStatus: smithy_client_1.expectString,
|
|
5110
|
+
FrameworkArn: smithy_client_1.expectString,
|
|
5111
|
+
FrameworkDescription: smithy_client_1.expectString,
|
|
5112
|
+
FrameworkName: smithy_client_1.expectString,
|
|
5113
|
+
NumberOfControls: smithy_client_1.expectInt32,
|
|
6090
5114
|
});
|
|
6091
|
-
return retVal;
|
|
6092
5115
|
};
|
|
6093
5116
|
const de_FrameworkList = (output, context) => {
|
|
6094
5117
|
const retVal = (output || [])
|
|
6095
5118
|
.filter((e) => e != null)
|
|
6096
5119
|
.map((entry) => {
|
|
6097
|
-
if (entry === null) {
|
|
6098
|
-
return null;
|
|
6099
|
-
}
|
|
6100
5120
|
return de_Framework(entry, context);
|
|
6101
5121
|
});
|
|
6102
5122
|
return retVal;
|
|
6103
5123
|
};
|
|
6104
|
-
const de_GlobalSettings = (output, context) => {
|
|
6105
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
6106
|
-
if (value === null) {
|
|
6107
|
-
return acc;
|
|
6108
|
-
}
|
|
6109
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
6110
|
-
return acc;
|
|
6111
|
-
}, {});
|
|
6112
|
-
};
|
|
6113
5124
|
const de_LegalHold = (output, context) => {
|
|
6114
|
-
return {
|
|
6115
|
-
CancellationDate:
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
LegalHoldId: (0, smithy_client_1.expectString)(output.LegalHoldId),
|
|
6124
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6125
|
-
Title: (0, smithy_client_1.expectString)(output.Title),
|
|
6126
|
-
};
|
|
5125
|
+
return (0, smithy_client_1.take)(output, {
|
|
5126
|
+
CancellationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5127
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5128
|
+
Description: smithy_client_1.expectString,
|
|
5129
|
+
LegalHoldArn: smithy_client_1.expectString,
|
|
5130
|
+
LegalHoldId: smithy_client_1.expectString,
|
|
5131
|
+
Status: smithy_client_1.expectString,
|
|
5132
|
+
Title: smithy_client_1.expectString,
|
|
5133
|
+
});
|
|
6127
5134
|
};
|
|
6128
5135
|
const de_LegalHoldsList = (output, context) => {
|
|
6129
5136
|
const retVal = (output || [])
|
|
6130
5137
|
.filter((e) => e != null)
|
|
6131
5138
|
.map((entry) => {
|
|
6132
|
-
if (entry === null) {
|
|
6133
|
-
return null;
|
|
6134
|
-
}
|
|
6135
5139
|
return de_LegalHold(entry, context);
|
|
6136
5140
|
});
|
|
6137
5141
|
return retVal;
|
|
6138
5142
|
};
|
|
6139
|
-
const de_Lifecycle = (output, context) => {
|
|
6140
|
-
return {
|
|
6141
|
-
DeleteAfterDays: (0, smithy_client_1.expectLong)(output.DeleteAfterDays),
|
|
6142
|
-
MoveToColdStorageAfterDays: (0, smithy_client_1.expectLong)(output.MoveToColdStorageAfterDays),
|
|
6143
|
-
};
|
|
6144
|
-
};
|
|
6145
|
-
const de_ListOfTags = (output, context) => {
|
|
6146
|
-
const retVal = (output || [])
|
|
6147
|
-
.filter((e) => e != null)
|
|
6148
|
-
.map((entry) => {
|
|
6149
|
-
if (entry === null) {
|
|
6150
|
-
return null;
|
|
6151
|
-
}
|
|
6152
|
-
return de_Condition(entry, context);
|
|
6153
|
-
});
|
|
6154
|
-
return retVal;
|
|
6155
|
-
};
|
|
6156
|
-
const de_Metadata = (output, context) => {
|
|
6157
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
6158
|
-
if (value === null) {
|
|
6159
|
-
return acc;
|
|
6160
|
-
}
|
|
6161
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
6162
|
-
return acc;
|
|
6163
|
-
}, {});
|
|
6164
|
-
};
|
|
6165
5143
|
const de_ProtectedResource = (output, context) => {
|
|
6166
|
-
return {
|
|
6167
|
-
LastBackupTime:
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
6173
|
-
};
|
|
5144
|
+
return (0, smithy_client_1.take)(output, {
|
|
5145
|
+
LastBackupTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5146
|
+
ResourceArn: smithy_client_1.expectString,
|
|
5147
|
+
ResourceName: smithy_client_1.expectString,
|
|
5148
|
+
ResourceType: smithy_client_1.expectString,
|
|
5149
|
+
});
|
|
6174
5150
|
};
|
|
6175
5151
|
const de_ProtectedResourcesList = (output, context) => {
|
|
6176
5152
|
const retVal = (output || [])
|
|
6177
5153
|
.filter((e) => e != null)
|
|
6178
5154
|
.map((entry) => {
|
|
6179
|
-
if (entry === null) {
|
|
6180
|
-
return null;
|
|
6181
|
-
}
|
|
6182
5155
|
return de_ProtectedResource(entry, context);
|
|
6183
5156
|
});
|
|
6184
5157
|
return retVal;
|
|
6185
5158
|
};
|
|
6186
5159
|
const de_RecoveryPointByBackupVault = (output, context) => {
|
|
6187
|
-
return {
|
|
6188
|
-
BackupSizeInBytes:
|
|
6189
|
-
BackupVaultArn:
|
|
6190
|
-
BackupVaultName:
|
|
6191
|
-
CalculatedLifecycle:
|
|
6192
|
-
CompletionDate:
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
ResourceName: (0, smithy_client_1.expectString)(output.ResourceName),
|
|
6212
|
-
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
6213
|
-
SourceBackupVaultArn: (0, smithy_client_1.expectString)(output.SourceBackupVaultArn),
|
|
6214
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6215
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
6216
|
-
};
|
|
5160
|
+
return (0, smithy_client_1.take)(output, {
|
|
5161
|
+
BackupSizeInBytes: smithy_client_1.expectLong,
|
|
5162
|
+
BackupVaultArn: smithy_client_1.expectString,
|
|
5163
|
+
BackupVaultName: smithy_client_1.expectString,
|
|
5164
|
+
CalculatedLifecycle: (_) => de_CalculatedLifecycle(_, context),
|
|
5165
|
+
CompletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5166
|
+
CompositeMemberIdentifier: smithy_client_1.expectString,
|
|
5167
|
+
CreatedBy: smithy_client_1._json,
|
|
5168
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5169
|
+
EncryptionKeyArn: smithy_client_1.expectString,
|
|
5170
|
+
IamRoleArn: smithy_client_1.expectString,
|
|
5171
|
+
IsEncrypted: smithy_client_1.expectBoolean,
|
|
5172
|
+
IsParent: smithy_client_1.expectBoolean,
|
|
5173
|
+
LastRestoreTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5174
|
+
Lifecycle: smithy_client_1._json,
|
|
5175
|
+
ParentRecoveryPointArn: smithy_client_1.expectString,
|
|
5176
|
+
RecoveryPointArn: smithy_client_1.expectString,
|
|
5177
|
+
ResourceArn: smithy_client_1.expectString,
|
|
5178
|
+
ResourceName: smithy_client_1.expectString,
|
|
5179
|
+
ResourceType: smithy_client_1.expectString,
|
|
5180
|
+
SourceBackupVaultArn: smithy_client_1.expectString,
|
|
5181
|
+
Status: smithy_client_1.expectString,
|
|
5182
|
+
StatusMessage: smithy_client_1.expectString,
|
|
5183
|
+
});
|
|
6217
5184
|
};
|
|
6218
5185
|
const de_RecoveryPointByBackupVaultList = (output, context) => {
|
|
6219
5186
|
const retVal = (output || [])
|
|
6220
5187
|
.filter((e) => e != null)
|
|
6221
5188
|
.map((entry) => {
|
|
6222
|
-
if (entry === null) {
|
|
6223
|
-
return null;
|
|
6224
|
-
}
|
|
6225
5189
|
return de_RecoveryPointByBackupVault(entry, context);
|
|
6226
5190
|
});
|
|
6227
5191
|
return retVal;
|
|
6228
5192
|
};
|
|
6229
5193
|
const de_RecoveryPointByResource = (output, context) => {
|
|
6230
|
-
return {
|
|
6231
|
-
BackupSizeBytes:
|
|
6232
|
-
BackupVaultName:
|
|
6233
|
-
CreationDate:
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
6243
|
-
};
|
|
5194
|
+
return (0, smithy_client_1.take)(output, {
|
|
5195
|
+
BackupSizeBytes: smithy_client_1.expectLong,
|
|
5196
|
+
BackupVaultName: smithy_client_1.expectString,
|
|
5197
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5198
|
+
EncryptionKeyArn: smithy_client_1.expectString,
|
|
5199
|
+
IsParent: smithy_client_1.expectBoolean,
|
|
5200
|
+
ParentRecoveryPointArn: smithy_client_1.expectString,
|
|
5201
|
+
RecoveryPointArn: smithy_client_1.expectString,
|
|
5202
|
+
ResourceName: smithy_client_1.expectString,
|
|
5203
|
+
Status: smithy_client_1.expectString,
|
|
5204
|
+
StatusMessage: smithy_client_1.expectString,
|
|
5205
|
+
});
|
|
6244
5206
|
};
|
|
6245
5207
|
const de_RecoveryPointByResourceList = (output, context) => {
|
|
6246
5208
|
const retVal = (output || [])
|
|
6247
5209
|
.filter((e) => e != null)
|
|
6248
5210
|
.map((entry) => {
|
|
6249
|
-
if (entry === null) {
|
|
6250
|
-
return null;
|
|
6251
|
-
}
|
|
6252
5211
|
return de_RecoveryPointByResource(entry, context);
|
|
6253
5212
|
});
|
|
6254
5213
|
return retVal;
|
|
6255
5214
|
};
|
|
6256
|
-
const de_RecoveryPointCreator = (output, context) => {
|
|
6257
|
-
return {
|
|
6258
|
-
BackupPlanArn: (0, smithy_client_1.expectString)(output.BackupPlanArn),
|
|
6259
|
-
BackupPlanId: (0, smithy_client_1.expectString)(output.BackupPlanId),
|
|
6260
|
-
BackupPlanVersion: (0, smithy_client_1.expectString)(output.BackupPlanVersion),
|
|
6261
|
-
BackupRuleId: (0, smithy_client_1.expectString)(output.BackupRuleId),
|
|
6262
|
-
};
|
|
6263
|
-
};
|
|
6264
|
-
const de_RecoveryPointMember = (output, context) => {
|
|
6265
|
-
return {
|
|
6266
|
-
RecoveryPointArn: (0, smithy_client_1.expectString)(output.RecoveryPointArn),
|
|
6267
|
-
};
|
|
6268
|
-
};
|
|
6269
5215
|
const de_RecoveryPointSelection = (output, context) => {
|
|
6270
|
-
return {
|
|
6271
|
-
DateRange:
|
|
6272
|
-
ResourceIdentifiers:
|
|
6273
|
-
VaultNames:
|
|
6274
|
-
};
|
|
6275
|
-
};
|
|
6276
|
-
const de_RecoveryPointsList = (output, context) => {
|
|
6277
|
-
const retVal = (output || [])
|
|
6278
|
-
.filter((e) => e != null)
|
|
6279
|
-
.map((entry) => {
|
|
6280
|
-
if (entry === null) {
|
|
6281
|
-
return null;
|
|
6282
|
-
}
|
|
6283
|
-
return de_RecoveryPointMember(entry, context);
|
|
5216
|
+
return (0, smithy_client_1.take)(output, {
|
|
5217
|
+
DateRange: (_) => de_DateRange(_, context),
|
|
5218
|
+
ResourceIdentifiers: smithy_client_1._json,
|
|
5219
|
+
VaultNames: smithy_client_1._json,
|
|
6284
5220
|
});
|
|
6285
|
-
return retVal;
|
|
6286
|
-
};
|
|
6287
|
-
const de_ReportDeliveryChannel = (output, context) => {
|
|
6288
|
-
return {
|
|
6289
|
-
Formats: output.Formats != null ? de_FormatList(output.Formats, context) : undefined,
|
|
6290
|
-
S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
|
|
6291
|
-
S3KeyPrefix: (0, smithy_client_1.expectString)(output.S3KeyPrefix),
|
|
6292
|
-
};
|
|
6293
|
-
};
|
|
6294
|
-
const de_ReportDestination = (output, context) => {
|
|
6295
|
-
return {
|
|
6296
|
-
S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
|
|
6297
|
-
S3Keys: output.S3Keys != null ? de_stringList(output.S3Keys, context) : undefined,
|
|
6298
|
-
};
|
|
6299
5221
|
};
|
|
6300
5222
|
const de_ReportJob = (output, context) => {
|
|
6301
|
-
return {
|
|
6302
|
-
CompletionTime:
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
ReportTemplate: (0, smithy_client_1.expectString)(output.ReportTemplate),
|
|
6312
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6313
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
6314
|
-
};
|
|
5223
|
+
return (0, smithy_client_1.take)(output, {
|
|
5224
|
+
CompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5225
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5226
|
+
ReportDestination: smithy_client_1._json,
|
|
5227
|
+
ReportJobId: smithy_client_1.expectString,
|
|
5228
|
+
ReportPlanArn: smithy_client_1.expectString,
|
|
5229
|
+
ReportTemplate: smithy_client_1.expectString,
|
|
5230
|
+
Status: smithy_client_1.expectString,
|
|
5231
|
+
StatusMessage: smithy_client_1.expectString,
|
|
5232
|
+
});
|
|
6315
5233
|
};
|
|
6316
5234
|
const de_ReportJobList = (output, context) => {
|
|
6317
5235
|
const retVal = (output || [])
|
|
6318
5236
|
.filter((e) => e != null)
|
|
6319
5237
|
.map((entry) => {
|
|
6320
|
-
if (entry === null) {
|
|
6321
|
-
return null;
|
|
6322
|
-
}
|
|
6323
5238
|
return de_ReportJob(entry, context);
|
|
6324
5239
|
});
|
|
6325
5240
|
return retVal;
|
|
6326
5241
|
};
|
|
6327
5242
|
const de_ReportPlan = (output, context) => {
|
|
6328
|
-
return {
|
|
6329
|
-
CreationTime:
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
ReportDeliveryChannel: output.ReportDeliveryChannel != null
|
|
6340
|
-
? de_ReportDeliveryChannel(output.ReportDeliveryChannel, context)
|
|
6341
|
-
: undefined,
|
|
6342
|
-
ReportPlanArn: (0, smithy_client_1.expectString)(output.ReportPlanArn),
|
|
6343
|
-
ReportPlanDescription: (0, smithy_client_1.expectString)(output.ReportPlanDescription),
|
|
6344
|
-
ReportPlanName: (0, smithy_client_1.expectString)(output.ReportPlanName),
|
|
6345
|
-
ReportSetting: output.ReportSetting != null ? de_ReportSetting(output.ReportSetting, context) : undefined,
|
|
6346
|
-
};
|
|
5243
|
+
return (0, smithy_client_1.take)(output, {
|
|
5244
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5245
|
+
DeploymentStatus: smithy_client_1.expectString,
|
|
5246
|
+
LastAttemptedExecutionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5247
|
+
LastSuccessfulExecutionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5248
|
+
ReportDeliveryChannel: smithy_client_1._json,
|
|
5249
|
+
ReportPlanArn: smithy_client_1.expectString,
|
|
5250
|
+
ReportPlanDescription: smithy_client_1.expectString,
|
|
5251
|
+
ReportPlanName: smithy_client_1.expectString,
|
|
5252
|
+
ReportSetting: smithy_client_1._json,
|
|
5253
|
+
});
|
|
6347
5254
|
};
|
|
6348
5255
|
const de_ReportPlanList = (output, context) => {
|
|
6349
5256
|
const retVal = (output || [])
|
|
6350
5257
|
.filter((e) => e != null)
|
|
6351
5258
|
.map((entry) => {
|
|
6352
|
-
if (entry === null) {
|
|
6353
|
-
return null;
|
|
6354
|
-
}
|
|
6355
5259
|
return de_ReportPlan(entry, context);
|
|
6356
5260
|
});
|
|
6357
5261
|
return retVal;
|
|
6358
5262
|
};
|
|
6359
|
-
const de_ReportSetting = (output, context) => {
|
|
6360
|
-
return {
|
|
6361
|
-
Accounts: output.Accounts != null ? de_stringList(output.Accounts, context) : undefined,
|
|
6362
|
-
FrameworkArns: output.FrameworkArns != null ? de_stringList(output.FrameworkArns, context) : undefined,
|
|
6363
|
-
NumberOfFrameworks: (0, smithy_client_1.expectInt32)(output.NumberOfFrameworks),
|
|
6364
|
-
OrganizationUnits: output.OrganizationUnits != null ? de_stringList(output.OrganizationUnits, context) : undefined,
|
|
6365
|
-
Regions: output.Regions != null ? de_stringList(output.Regions, context) : undefined,
|
|
6366
|
-
ReportTemplate: (0, smithy_client_1.expectString)(output.ReportTemplate),
|
|
6367
|
-
};
|
|
6368
|
-
};
|
|
6369
|
-
const de_ResourceArns = (output, context) => {
|
|
6370
|
-
const retVal = (output || [])
|
|
6371
|
-
.filter((e) => e != null)
|
|
6372
|
-
.map((entry) => {
|
|
6373
|
-
if (entry === null) {
|
|
6374
|
-
return null;
|
|
6375
|
-
}
|
|
6376
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
6377
|
-
});
|
|
6378
|
-
return retVal;
|
|
6379
|
-
};
|
|
6380
|
-
const de_ResourceIdentifiers = (output, context) => {
|
|
6381
|
-
const retVal = (output || [])
|
|
6382
|
-
.filter((e) => e != null)
|
|
6383
|
-
.map((entry) => {
|
|
6384
|
-
if (entry === null) {
|
|
6385
|
-
return null;
|
|
6386
|
-
}
|
|
6387
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
6388
|
-
});
|
|
6389
|
-
return retVal;
|
|
6390
|
-
};
|
|
6391
|
-
const de_ResourceTypeList = (output, context) => {
|
|
6392
|
-
const retVal = (output || [])
|
|
6393
|
-
.filter((e) => e != null)
|
|
6394
|
-
.map((entry) => {
|
|
6395
|
-
if (entry === null) {
|
|
6396
|
-
return null;
|
|
6397
|
-
}
|
|
6398
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
6399
|
-
});
|
|
6400
|
-
return retVal;
|
|
6401
|
-
};
|
|
6402
|
-
const de_ResourceTypeManagementPreference = (output, context) => {
|
|
6403
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
6404
|
-
if (value === null) {
|
|
6405
|
-
return acc;
|
|
6406
|
-
}
|
|
6407
|
-
acc[key] = (0, smithy_client_1.expectBoolean)(value);
|
|
6408
|
-
return acc;
|
|
6409
|
-
}, {});
|
|
6410
|
-
};
|
|
6411
|
-
const de_ResourceTypeOptInPreference = (output, context) => {
|
|
6412
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
6413
|
-
if (value === null) {
|
|
6414
|
-
return acc;
|
|
6415
|
-
}
|
|
6416
|
-
acc[key] = (0, smithy_client_1.expectBoolean)(value);
|
|
6417
|
-
return acc;
|
|
6418
|
-
}, {});
|
|
6419
|
-
};
|
|
6420
|
-
const de_ResourceTypes = (output, context) => {
|
|
6421
|
-
const retVal = (output || [])
|
|
6422
|
-
.filter((e) => e != null)
|
|
6423
|
-
.map((entry) => {
|
|
6424
|
-
if (entry === null) {
|
|
6425
|
-
return null;
|
|
6426
|
-
}
|
|
6427
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
6428
|
-
});
|
|
6429
|
-
return retVal;
|
|
6430
|
-
};
|
|
6431
5263
|
const de_RestoreJobsList = (output, context) => {
|
|
6432
5264
|
const retVal = (output || [])
|
|
6433
5265
|
.filter((e) => e != null)
|
|
6434
5266
|
.map((entry) => {
|
|
6435
|
-
if (entry === null) {
|
|
6436
|
-
return null;
|
|
6437
|
-
}
|
|
6438
5267
|
return de_RestoreJobsListMember(entry, context);
|
|
6439
5268
|
});
|
|
6440
5269
|
return retVal;
|
|
6441
5270
|
};
|
|
6442
5271
|
const de_RestoreJobsListMember = (output, context) => {
|
|
6443
|
-
return {
|
|
6444
|
-
AccountId:
|
|
6445
|
-
BackupSizeInBytes:
|
|
6446
|
-
CompletionDate:
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
6458
|
-
RestoreJobId: (0, smithy_client_1.expectString)(output.RestoreJobId),
|
|
6459
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6460
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
6461
|
-
};
|
|
6462
|
-
};
|
|
6463
|
-
const de_stringList = (output, context) => {
|
|
6464
|
-
const retVal = (output || [])
|
|
6465
|
-
.filter((e) => e != null)
|
|
6466
|
-
.map((entry) => {
|
|
6467
|
-
if (entry === null) {
|
|
6468
|
-
return null;
|
|
6469
|
-
}
|
|
6470
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
5272
|
+
return (0, smithy_client_1.take)(output, {
|
|
5273
|
+
AccountId: smithy_client_1.expectString,
|
|
5274
|
+
BackupSizeInBytes: smithy_client_1.expectLong,
|
|
5275
|
+
CompletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5276
|
+
CreatedResourceArn: smithy_client_1.expectString,
|
|
5277
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5278
|
+
ExpectedCompletionTimeMinutes: smithy_client_1.expectLong,
|
|
5279
|
+
IamRoleArn: smithy_client_1.expectString,
|
|
5280
|
+
PercentDone: smithy_client_1.expectString,
|
|
5281
|
+
RecoveryPointArn: smithy_client_1.expectString,
|
|
5282
|
+
ResourceType: smithy_client_1.expectString,
|
|
5283
|
+
RestoreJobId: smithy_client_1.expectString,
|
|
5284
|
+
Status: smithy_client_1.expectString,
|
|
5285
|
+
StatusMessage: smithy_client_1.expectString,
|
|
6471
5286
|
});
|
|
6472
|
-
return retVal;
|
|
6473
|
-
};
|
|
6474
|
-
const de_stringMap = (output, context) => {
|
|
6475
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
6476
|
-
if (value === null) {
|
|
6477
|
-
return acc;
|
|
6478
|
-
}
|
|
6479
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
6480
|
-
return acc;
|
|
6481
|
-
}, {});
|
|
6482
|
-
};
|
|
6483
|
-
const de_Tags = (output, context) => {
|
|
6484
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
6485
|
-
if (value === null) {
|
|
6486
|
-
return acc;
|
|
6487
|
-
}
|
|
6488
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
6489
|
-
return acc;
|
|
6490
|
-
}, {});
|
|
6491
|
-
};
|
|
6492
|
-
const de_VaultNames = (output, context) => {
|
|
6493
|
-
const retVal = (output || [])
|
|
6494
|
-
.filter((e) => e != null)
|
|
6495
|
-
.map((entry) => {
|
|
6496
|
-
if (entry === null) {
|
|
6497
|
-
return null;
|
|
6498
|
-
}
|
|
6499
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
6500
|
-
});
|
|
6501
|
-
return retVal;
|
|
6502
5287
|
};
|
|
6503
5288
|
const deserializeMetadata = (output) => ({
|
|
6504
5289
|
httpStatusCode: output.statusCode,
|