@aws-sdk/client-route53-recovery-readiness 3.928.0 → 3.929.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/index.js +2390 -1469
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/Route53RecoveryReadinessClient.js +2 -0
- package/dist-es/commands/CreateCellCommand.js +3 -9
- package/dist-es/commands/CreateCrossAccountAuthorizationCommand.js +3 -9
- package/dist-es/commands/CreateReadinessCheckCommand.js +3 -9
- package/dist-es/commands/CreateRecoveryGroupCommand.js +3 -9
- package/dist-es/commands/CreateResourceSetCommand.js +3 -9
- package/dist-es/commands/DeleteCellCommand.js +3 -9
- package/dist-es/commands/DeleteCrossAccountAuthorizationCommand.js +3 -9
- package/dist-es/commands/DeleteReadinessCheckCommand.js +3 -9
- package/dist-es/commands/DeleteRecoveryGroupCommand.js +3 -9
- package/dist-es/commands/DeleteResourceSetCommand.js +3 -9
- package/dist-es/commands/GetArchitectureRecommendationsCommand.js +3 -9
- package/dist-es/commands/GetCellCommand.js +3 -9
- package/dist-es/commands/GetCellReadinessSummaryCommand.js +3 -9
- package/dist-es/commands/GetReadinessCheckCommand.js +3 -9
- package/dist-es/commands/GetReadinessCheckResourceStatusCommand.js +3 -9
- package/dist-es/commands/GetReadinessCheckStatusCommand.js +3 -9
- package/dist-es/commands/GetRecoveryGroupCommand.js +3 -9
- package/dist-es/commands/GetRecoveryGroupReadinessSummaryCommand.js +3 -9
- package/dist-es/commands/GetResourceSetCommand.js +3 -9
- package/dist-es/commands/ListCellsCommand.js +3 -9
- package/dist-es/commands/ListCrossAccountAuthorizationsCommand.js +3 -9
- package/dist-es/commands/ListReadinessChecksCommand.js +3 -9
- package/dist-es/commands/ListRecoveryGroupsCommand.js +3 -9
- package/dist-es/commands/ListResourceSetsCommand.js +3 -9
- package/dist-es/commands/ListRulesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourcesCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateCellCommand.js +3 -9
- package/dist-es/commands/UpdateReadinessCheckCommand.js +3 -9
- package/dist-es/commands/UpdateRecoveryGroupCommand.js +3 -9
- package/dist-es/commands/UpdateResourceSetCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +2315 -0
- package/dist-types/Route53RecoveryReadinessClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +129 -0
- package/dist-types/ts3.4/Route53RecoveryReadinessClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +134 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -1234
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -290
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -389
|
@@ -1,1234 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
-
import { Route53RecoveryReadinessServiceException as __BaseException } from "../models/Route53RecoveryReadinessServiceException";
|
|
6
|
-
export const se_CreateCellCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/cells");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
cellName: [, , `CellName`],
|
|
15
|
-
cells: [, (_) => _json(_), `Cells`],
|
|
16
|
-
tags: [, (_) => _json(_), `Tags`],
|
|
17
|
-
}));
|
|
18
|
-
b.m("POST").h(headers).b(body);
|
|
19
|
-
return b.build();
|
|
20
|
-
};
|
|
21
|
-
export const se_CreateCrossAccountAuthorizationCommand = async (input, context) => {
|
|
22
|
-
const b = rb(input, context);
|
|
23
|
-
const headers = {
|
|
24
|
-
"content-type": "application/json",
|
|
25
|
-
};
|
|
26
|
-
b.bp("/crossaccountauthorizations");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(take(input, {
|
|
29
|
-
crossAccountAuthorization: [, , `CrossAccountAuthorization`],
|
|
30
|
-
}));
|
|
31
|
-
b.m("POST").h(headers).b(body);
|
|
32
|
-
return b.build();
|
|
33
|
-
};
|
|
34
|
-
export const se_CreateReadinessCheckCommand = async (input, context) => {
|
|
35
|
-
const b = rb(input, context);
|
|
36
|
-
const headers = {
|
|
37
|
-
"content-type": "application/json",
|
|
38
|
-
};
|
|
39
|
-
b.bp("/readinesschecks");
|
|
40
|
-
let body;
|
|
41
|
-
body = JSON.stringify(take(input, {
|
|
42
|
-
readinessCheckName: [, , `ReadinessCheckName`],
|
|
43
|
-
resourceSetName: [, , `ResourceSetName`],
|
|
44
|
-
tags: [, (_) => _json(_), `Tags`],
|
|
45
|
-
}));
|
|
46
|
-
b.m("POST").h(headers).b(body);
|
|
47
|
-
return b.build();
|
|
48
|
-
};
|
|
49
|
-
export const se_CreateRecoveryGroupCommand = async (input, context) => {
|
|
50
|
-
const b = rb(input, context);
|
|
51
|
-
const headers = {
|
|
52
|
-
"content-type": "application/json",
|
|
53
|
-
};
|
|
54
|
-
b.bp("/recoverygroups");
|
|
55
|
-
let body;
|
|
56
|
-
body = JSON.stringify(take(input, {
|
|
57
|
-
cells: [, (_) => _json(_), `Cells`],
|
|
58
|
-
recoveryGroupName: [, , `RecoveryGroupName`],
|
|
59
|
-
tags: [, (_) => _json(_), `Tags`],
|
|
60
|
-
}));
|
|
61
|
-
b.m("POST").h(headers).b(body);
|
|
62
|
-
return b.build();
|
|
63
|
-
};
|
|
64
|
-
export const se_CreateResourceSetCommand = async (input, context) => {
|
|
65
|
-
const b = rb(input, context);
|
|
66
|
-
const headers = {
|
|
67
|
-
"content-type": "application/json",
|
|
68
|
-
};
|
|
69
|
-
b.bp("/resourcesets");
|
|
70
|
-
let body;
|
|
71
|
-
body = JSON.stringify(take(input, {
|
|
72
|
-
resourceSetName: [, , `ResourceSetName`],
|
|
73
|
-
resourceSetType: [, , `ResourceSetType`],
|
|
74
|
-
resources: [, (_) => se___listOfResource(_, context), `Resources`],
|
|
75
|
-
tags: [, (_) => _json(_), `Tags`],
|
|
76
|
-
}));
|
|
77
|
-
b.m("POST").h(headers).b(body);
|
|
78
|
-
return b.build();
|
|
79
|
-
};
|
|
80
|
-
export const se_DeleteCellCommand = async (input, context) => {
|
|
81
|
-
const b = rb(input, context);
|
|
82
|
-
const headers = {};
|
|
83
|
-
b.bp("/cells/{CellName}");
|
|
84
|
-
b.p("CellName", () => input.CellName, "{CellName}", false);
|
|
85
|
-
let body;
|
|
86
|
-
b.m("DELETE").h(headers).b(body);
|
|
87
|
-
return b.build();
|
|
88
|
-
};
|
|
89
|
-
export const se_DeleteCrossAccountAuthorizationCommand = async (input, context) => {
|
|
90
|
-
const b = rb(input, context);
|
|
91
|
-
const headers = {};
|
|
92
|
-
b.bp("/crossaccountauthorizations/{CrossAccountAuthorization}");
|
|
93
|
-
b.p("CrossAccountAuthorization", () => input.CrossAccountAuthorization, "{CrossAccountAuthorization}", false);
|
|
94
|
-
let body;
|
|
95
|
-
b.m("DELETE").h(headers).b(body);
|
|
96
|
-
return b.build();
|
|
97
|
-
};
|
|
98
|
-
export const se_DeleteReadinessCheckCommand = async (input, context) => {
|
|
99
|
-
const b = rb(input, context);
|
|
100
|
-
const headers = {};
|
|
101
|
-
b.bp("/readinesschecks/{ReadinessCheckName}");
|
|
102
|
-
b.p("ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
103
|
-
let body;
|
|
104
|
-
b.m("DELETE").h(headers).b(body);
|
|
105
|
-
return b.build();
|
|
106
|
-
};
|
|
107
|
-
export const se_DeleteRecoveryGroupCommand = async (input, context) => {
|
|
108
|
-
const b = rb(input, context);
|
|
109
|
-
const headers = {};
|
|
110
|
-
b.bp("/recoverygroups/{RecoveryGroupName}");
|
|
111
|
-
b.p("RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
112
|
-
let body;
|
|
113
|
-
b.m("DELETE").h(headers).b(body);
|
|
114
|
-
return b.build();
|
|
115
|
-
};
|
|
116
|
-
export const se_DeleteResourceSetCommand = async (input, context) => {
|
|
117
|
-
const b = rb(input, context);
|
|
118
|
-
const headers = {};
|
|
119
|
-
b.bp("/resourcesets/{ResourceSetName}");
|
|
120
|
-
b.p("ResourceSetName", () => input.ResourceSetName, "{ResourceSetName}", false);
|
|
121
|
-
let body;
|
|
122
|
-
b.m("DELETE").h(headers).b(body);
|
|
123
|
-
return b.build();
|
|
124
|
-
};
|
|
125
|
-
export const se_GetArchitectureRecommendationsCommand = async (input, context) => {
|
|
126
|
-
const b = rb(input, context);
|
|
127
|
-
const headers = {};
|
|
128
|
-
b.bp("/recoverygroups/{RecoveryGroupName}/architectureRecommendations");
|
|
129
|
-
b.p("RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
130
|
-
const query = map({
|
|
131
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
132
|
-
[_nT]: [, input[_NT]],
|
|
133
|
-
});
|
|
134
|
-
let body;
|
|
135
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
136
|
-
return b.build();
|
|
137
|
-
};
|
|
138
|
-
export const se_GetCellCommand = async (input, context) => {
|
|
139
|
-
const b = rb(input, context);
|
|
140
|
-
const headers = {};
|
|
141
|
-
b.bp("/cells/{CellName}");
|
|
142
|
-
b.p("CellName", () => input.CellName, "{CellName}", false);
|
|
143
|
-
let body;
|
|
144
|
-
b.m("GET").h(headers).b(body);
|
|
145
|
-
return b.build();
|
|
146
|
-
};
|
|
147
|
-
export const se_GetCellReadinessSummaryCommand = async (input, context) => {
|
|
148
|
-
const b = rb(input, context);
|
|
149
|
-
const headers = {};
|
|
150
|
-
b.bp("/cellreadiness/{CellName}");
|
|
151
|
-
b.p("CellName", () => input.CellName, "{CellName}", false);
|
|
152
|
-
const query = map({
|
|
153
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
154
|
-
[_nT]: [, input[_NT]],
|
|
155
|
-
});
|
|
156
|
-
let body;
|
|
157
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
158
|
-
return b.build();
|
|
159
|
-
};
|
|
160
|
-
export const se_GetReadinessCheckCommand = async (input, context) => {
|
|
161
|
-
const b = rb(input, context);
|
|
162
|
-
const headers = {};
|
|
163
|
-
b.bp("/readinesschecks/{ReadinessCheckName}");
|
|
164
|
-
b.p("ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
165
|
-
let body;
|
|
166
|
-
b.m("GET").h(headers).b(body);
|
|
167
|
-
return b.build();
|
|
168
|
-
};
|
|
169
|
-
export const se_GetReadinessCheckResourceStatusCommand = async (input, context) => {
|
|
170
|
-
const b = rb(input, context);
|
|
171
|
-
const headers = {};
|
|
172
|
-
b.bp("/readinesschecks/{ReadinessCheckName}/resource/{ResourceIdentifier}/status");
|
|
173
|
-
b.p("ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
174
|
-
b.p("ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
175
|
-
const query = map({
|
|
176
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
177
|
-
[_nT]: [, input[_NT]],
|
|
178
|
-
});
|
|
179
|
-
let body;
|
|
180
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
181
|
-
return b.build();
|
|
182
|
-
};
|
|
183
|
-
export const se_GetReadinessCheckStatusCommand = async (input, context) => {
|
|
184
|
-
const b = rb(input, context);
|
|
185
|
-
const headers = {};
|
|
186
|
-
b.bp("/readinesschecks/{ReadinessCheckName}/status");
|
|
187
|
-
b.p("ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
188
|
-
const query = map({
|
|
189
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
190
|
-
[_nT]: [, input[_NT]],
|
|
191
|
-
});
|
|
192
|
-
let body;
|
|
193
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
194
|
-
return b.build();
|
|
195
|
-
};
|
|
196
|
-
export const se_GetRecoveryGroupCommand = async (input, context) => {
|
|
197
|
-
const b = rb(input, context);
|
|
198
|
-
const headers = {};
|
|
199
|
-
b.bp("/recoverygroups/{RecoveryGroupName}");
|
|
200
|
-
b.p("RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
201
|
-
let body;
|
|
202
|
-
b.m("GET").h(headers).b(body);
|
|
203
|
-
return b.build();
|
|
204
|
-
};
|
|
205
|
-
export const se_GetRecoveryGroupReadinessSummaryCommand = async (input, context) => {
|
|
206
|
-
const b = rb(input, context);
|
|
207
|
-
const headers = {};
|
|
208
|
-
b.bp("/recoverygroupreadiness/{RecoveryGroupName}");
|
|
209
|
-
b.p("RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
210
|
-
const query = map({
|
|
211
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
212
|
-
[_nT]: [, input[_NT]],
|
|
213
|
-
});
|
|
214
|
-
let body;
|
|
215
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
216
|
-
return b.build();
|
|
217
|
-
};
|
|
218
|
-
export const se_GetResourceSetCommand = async (input, context) => {
|
|
219
|
-
const b = rb(input, context);
|
|
220
|
-
const headers = {};
|
|
221
|
-
b.bp("/resourcesets/{ResourceSetName}");
|
|
222
|
-
b.p("ResourceSetName", () => input.ResourceSetName, "{ResourceSetName}", false);
|
|
223
|
-
let body;
|
|
224
|
-
b.m("GET").h(headers).b(body);
|
|
225
|
-
return b.build();
|
|
226
|
-
};
|
|
227
|
-
export const se_ListCellsCommand = async (input, context) => {
|
|
228
|
-
const b = rb(input, context);
|
|
229
|
-
const headers = {};
|
|
230
|
-
b.bp("/cells");
|
|
231
|
-
const query = map({
|
|
232
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
233
|
-
[_nT]: [, input[_NT]],
|
|
234
|
-
});
|
|
235
|
-
let body;
|
|
236
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
237
|
-
return b.build();
|
|
238
|
-
};
|
|
239
|
-
export const se_ListCrossAccountAuthorizationsCommand = async (input, context) => {
|
|
240
|
-
const b = rb(input, context);
|
|
241
|
-
const headers = {};
|
|
242
|
-
b.bp("/crossaccountauthorizations");
|
|
243
|
-
const query = map({
|
|
244
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
245
|
-
[_nT]: [, input[_NT]],
|
|
246
|
-
});
|
|
247
|
-
let body;
|
|
248
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
249
|
-
return b.build();
|
|
250
|
-
};
|
|
251
|
-
export const se_ListReadinessChecksCommand = async (input, context) => {
|
|
252
|
-
const b = rb(input, context);
|
|
253
|
-
const headers = {};
|
|
254
|
-
b.bp("/readinesschecks");
|
|
255
|
-
const query = map({
|
|
256
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
257
|
-
[_nT]: [, input[_NT]],
|
|
258
|
-
});
|
|
259
|
-
let body;
|
|
260
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
261
|
-
return b.build();
|
|
262
|
-
};
|
|
263
|
-
export const se_ListRecoveryGroupsCommand = async (input, context) => {
|
|
264
|
-
const b = rb(input, context);
|
|
265
|
-
const headers = {};
|
|
266
|
-
b.bp("/recoverygroups");
|
|
267
|
-
const query = map({
|
|
268
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
269
|
-
[_nT]: [, input[_NT]],
|
|
270
|
-
});
|
|
271
|
-
let body;
|
|
272
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
273
|
-
return b.build();
|
|
274
|
-
};
|
|
275
|
-
export const se_ListResourceSetsCommand = async (input, context) => {
|
|
276
|
-
const b = rb(input, context);
|
|
277
|
-
const headers = {};
|
|
278
|
-
b.bp("/resourcesets");
|
|
279
|
-
const query = map({
|
|
280
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
281
|
-
[_nT]: [, input[_NT]],
|
|
282
|
-
});
|
|
283
|
-
let body;
|
|
284
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
285
|
-
return b.build();
|
|
286
|
-
};
|
|
287
|
-
export const se_ListRulesCommand = async (input, context) => {
|
|
288
|
-
const b = rb(input, context);
|
|
289
|
-
const headers = {};
|
|
290
|
-
b.bp("/rules");
|
|
291
|
-
const query = map({
|
|
292
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
293
|
-
[_nT]: [, input[_NT]],
|
|
294
|
-
[_rT]: [, input[_RT]],
|
|
295
|
-
});
|
|
296
|
-
let body;
|
|
297
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
298
|
-
return b.build();
|
|
299
|
-
};
|
|
300
|
-
export const se_ListTagsForResourcesCommand = async (input, context) => {
|
|
301
|
-
const b = rb(input, context);
|
|
302
|
-
const headers = {};
|
|
303
|
-
b.bp("/tags/{ResourceArn}");
|
|
304
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
305
|
-
let body;
|
|
306
|
-
b.m("GET").h(headers).b(body);
|
|
307
|
-
return b.build();
|
|
308
|
-
};
|
|
309
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
310
|
-
const b = rb(input, context);
|
|
311
|
-
const headers = {
|
|
312
|
-
"content-type": "application/json",
|
|
313
|
-
};
|
|
314
|
-
b.bp("/tags/{ResourceArn}");
|
|
315
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
316
|
-
let body;
|
|
317
|
-
body = JSON.stringify(take(input, {
|
|
318
|
-
tags: [, (_) => _json(_), `Tags`],
|
|
319
|
-
}));
|
|
320
|
-
b.m("POST").h(headers).b(body);
|
|
321
|
-
return b.build();
|
|
322
|
-
};
|
|
323
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
324
|
-
const b = rb(input, context);
|
|
325
|
-
const headers = {};
|
|
326
|
-
b.bp("/tags/{ResourceArn}");
|
|
327
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
328
|
-
const query = map({
|
|
329
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
330
|
-
});
|
|
331
|
-
let body;
|
|
332
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
333
|
-
return b.build();
|
|
334
|
-
};
|
|
335
|
-
export const se_UpdateCellCommand = async (input, context) => {
|
|
336
|
-
const b = rb(input, context);
|
|
337
|
-
const headers = {
|
|
338
|
-
"content-type": "application/json",
|
|
339
|
-
};
|
|
340
|
-
b.bp("/cells/{CellName}");
|
|
341
|
-
b.p("CellName", () => input.CellName, "{CellName}", false);
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify(take(input, {
|
|
344
|
-
cells: [, (_) => _json(_), `Cells`],
|
|
345
|
-
}));
|
|
346
|
-
b.m("PUT").h(headers).b(body);
|
|
347
|
-
return b.build();
|
|
348
|
-
};
|
|
349
|
-
export const se_UpdateReadinessCheckCommand = async (input, context) => {
|
|
350
|
-
const b = rb(input, context);
|
|
351
|
-
const headers = {
|
|
352
|
-
"content-type": "application/json",
|
|
353
|
-
};
|
|
354
|
-
b.bp("/readinesschecks/{ReadinessCheckName}");
|
|
355
|
-
b.p("ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify(take(input, {
|
|
358
|
-
resourceSetName: [, , `ResourceSetName`],
|
|
359
|
-
}));
|
|
360
|
-
b.m("PUT").h(headers).b(body);
|
|
361
|
-
return b.build();
|
|
362
|
-
};
|
|
363
|
-
export const se_UpdateRecoveryGroupCommand = async (input, context) => {
|
|
364
|
-
const b = rb(input, context);
|
|
365
|
-
const headers = {
|
|
366
|
-
"content-type": "application/json",
|
|
367
|
-
};
|
|
368
|
-
b.bp("/recoverygroups/{RecoveryGroupName}");
|
|
369
|
-
b.p("RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
370
|
-
let body;
|
|
371
|
-
body = JSON.stringify(take(input, {
|
|
372
|
-
cells: [, (_) => _json(_), `Cells`],
|
|
373
|
-
}));
|
|
374
|
-
b.m("PUT").h(headers).b(body);
|
|
375
|
-
return b.build();
|
|
376
|
-
};
|
|
377
|
-
export const se_UpdateResourceSetCommand = async (input, context) => {
|
|
378
|
-
const b = rb(input, context);
|
|
379
|
-
const headers = {
|
|
380
|
-
"content-type": "application/json",
|
|
381
|
-
};
|
|
382
|
-
b.bp("/resourcesets/{ResourceSetName}");
|
|
383
|
-
b.p("ResourceSetName", () => input.ResourceSetName, "{ResourceSetName}", false);
|
|
384
|
-
let body;
|
|
385
|
-
body = JSON.stringify(take(input, {
|
|
386
|
-
resourceSetType: [, , `ResourceSetType`],
|
|
387
|
-
resources: [, (_) => se___listOfResource(_, context), `Resources`],
|
|
388
|
-
}));
|
|
389
|
-
b.m("PUT").h(headers).b(body);
|
|
390
|
-
return b.build();
|
|
391
|
-
};
|
|
392
|
-
export const de_CreateCellCommand = async (output, context) => {
|
|
393
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
394
|
-
return de_CommandError(output, context);
|
|
395
|
-
}
|
|
396
|
-
const contents = map({
|
|
397
|
-
$metadata: deserializeMetadata(output),
|
|
398
|
-
});
|
|
399
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
400
|
-
const doc = take(data, {
|
|
401
|
-
CellArn: [, __expectString, `cellArn`],
|
|
402
|
-
CellName: [, __expectString, `cellName`],
|
|
403
|
-
Cells: [, _json, `cells`],
|
|
404
|
-
ParentReadinessScopes: [, _json, `parentReadinessScopes`],
|
|
405
|
-
Tags: [, _json, `tags`],
|
|
406
|
-
});
|
|
407
|
-
Object.assign(contents, doc);
|
|
408
|
-
return contents;
|
|
409
|
-
};
|
|
410
|
-
export const de_CreateCrossAccountAuthorizationCommand = async (output, context) => {
|
|
411
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
412
|
-
return de_CommandError(output, context);
|
|
413
|
-
}
|
|
414
|
-
const contents = map({
|
|
415
|
-
$metadata: deserializeMetadata(output),
|
|
416
|
-
});
|
|
417
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
418
|
-
const doc = take(data, {
|
|
419
|
-
CrossAccountAuthorization: [, __expectString, `crossAccountAuthorization`],
|
|
420
|
-
});
|
|
421
|
-
Object.assign(contents, doc);
|
|
422
|
-
return contents;
|
|
423
|
-
};
|
|
424
|
-
export const de_CreateReadinessCheckCommand = async (output, context) => {
|
|
425
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
426
|
-
return de_CommandError(output, context);
|
|
427
|
-
}
|
|
428
|
-
const contents = map({
|
|
429
|
-
$metadata: deserializeMetadata(output),
|
|
430
|
-
});
|
|
431
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
432
|
-
const doc = take(data, {
|
|
433
|
-
ReadinessCheckArn: [, __expectString, `readinessCheckArn`],
|
|
434
|
-
ReadinessCheckName: [, __expectString, `readinessCheckName`],
|
|
435
|
-
ResourceSet: [, __expectString, `resourceSet`],
|
|
436
|
-
Tags: [, _json, `tags`],
|
|
437
|
-
});
|
|
438
|
-
Object.assign(contents, doc);
|
|
439
|
-
return contents;
|
|
440
|
-
};
|
|
441
|
-
export const de_CreateRecoveryGroupCommand = async (output, context) => {
|
|
442
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
443
|
-
return de_CommandError(output, context);
|
|
444
|
-
}
|
|
445
|
-
const contents = map({
|
|
446
|
-
$metadata: deserializeMetadata(output),
|
|
447
|
-
});
|
|
448
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
449
|
-
const doc = take(data, {
|
|
450
|
-
Cells: [, _json, `cells`],
|
|
451
|
-
RecoveryGroupArn: [, __expectString, `recoveryGroupArn`],
|
|
452
|
-
RecoveryGroupName: [, __expectString, `recoveryGroupName`],
|
|
453
|
-
Tags: [, _json, `tags`],
|
|
454
|
-
});
|
|
455
|
-
Object.assign(contents, doc);
|
|
456
|
-
return contents;
|
|
457
|
-
};
|
|
458
|
-
export const de_CreateResourceSetCommand = async (output, context) => {
|
|
459
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
460
|
-
return de_CommandError(output, context);
|
|
461
|
-
}
|
|
462
|
-
const contents = map({
|
|
463
|
-
$metadata: deserializeMetadata(output),
|
|
464
|
-
});
|
|
465
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
466
|
-
const doc = take(data, {
|
|
467
|
-
ResourceSetArn: [, __expectString, `resourceSetArn`],
|
|
468
|
-
ResourceSetName: [, __expectString, `resourceSetName`],
|
|
469
|
-
ResourceSetType: [, __expectString, `resourceSetType`],
|
|
470
|
-
Resources: [, (_) => de___listOfResource(_, context), `resources`],
|
|
471
|
-
Tags: [, _json, `tags`],
|
|
472
|
-
});
|
|
473
|
-
Object.assign(contents, doc);
|
|
474
|
-
return contents;
|
|
475
|
-
};
|
|
476
|
-
export const de_DeleteCellCommand = async (output, context) => {
|
|
477
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
478
|
-
return de_CommandError(output, context);
|
|
479
|
-
}
|
|
480
|
-
const contents = map({
|
|
481
|
-
$metadata: deserializeMetadata(output),
|
|
482
|
-
});
|
|
483
|
-
await collectBody(output.body, context);
|
|
484
|
-
return contents;
|
|
485
|
-
};
|
|
486
|
-
export const de_DeleteCrossAccountAuthorizationCommand = async (output, context) => {
|
|
487
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
488
|
-
return de_CommandError(output, context);
|
|
489
|
-
}
|
|
490
|
-
const contents = map({
|
|
491
|
-
$metadata: deserializeMetadata(output),
|
|
492
|
-
});
|
|
493
|
-
await collectBody(output.body, context);
|
|
494
|
-
return contents;
|
|
495
|
-
};
|
|
496
|
-
export const de_DeleteReadinessCheckCommand = async (output, context) => {
|
|
497
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
498
|
-
return de_CommandError(output, context);
|
|
499
|
-
}
|
|
500
|
-
const contents = map({
|
|
501
|
-
$metadata: deserializeMetadata(output),
|
|
502
|
-
});
|
|
503
|
-
await collectBody(output.body, context);
|
|
504
|
-
return contents;
|
|
505
|
-
};
|
|
506
|
-
export const de_DeleteRecoveryGroupCommand = async (output, context) => {
|
|
507
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
508
|
-
return de_CommandError(output, context);
|
|
509
|
-
}
|
|
510
|
-
const contents = map({
|
|
511
|
-
$metadata: deserializeMetadata(output),
|
|
512
|
-
});
|
|
513
|
-
await collectBody(output.body, context);
|
|
514
|
-
return contents;
|
|
515
|
-
};
|
|
516
|
-
export const de_DeleteResourceSetCommand = async (output, context) => {
|
|
517
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
518
|
-
return de_CommandError(output, context);
|
|
519
|
-
}
|
|
520
|
-
const contents = map({
|
|
521
|
-
$metadata: deserializeMetadata(output),
|
|
522
|
-
});
|
|
523
|
-
await collectBody(output.body, context);
|
|
524
|
-
return contents;
|
|
525
|
-
};
|
|
526
|
-
export const de_GetArchitectureRecommendationsCommand = async (output, context) => {
|
|
527
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
528
|
-
return de_CommandError(output, context);
|
|
529
|
-
}
|
|
530
|
-
const contents = map({
|
|
531
|
-
$metadata: deserializeMetadata(output),
|
|
532
|
-
});
|
|
533
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
534
|
-
const doc = take(data, {
|
|
535
|
-
LastAuditTimestamp: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `lastAuditTimestamp`],
|
|
536
|
-
NextToken: [, __expectString, `nextToken`],
|
|
537
|
-
Recommendations: [, (_) => de___listOfRecommendation(_, context), `recommendations`],
|
|
538
|
-
});
|
|
539
|
-
Object.assign(contents, doc);
|
|
540
|
-
return contents;
|
|
541
|
-
};
|
|
542
|
-
export const de_GetCellCommand = async (output, context) => {
|
|
543
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
544
|
-
return de_CommandError(output, context);
|
|
545
|
-
}
|
|
546
|
-
const contents = map({
|
|
547
|
-
$metadata: deserializeMetadata(output),
|
|
548
|
-
});
|
|
549
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
550
|
-
const doc = take(data, {
|
|
551
|
-
CellArn: [, __expectString, `cellArn`],
|
|
552
|
-
CellName: [, __expectString, `cellName`],
|
|
553
|
-
Cells: [, _json, `cells`],
|
|
554
|
-
ParentReadinessScopes: [, _json, `parentReadinessScopes`],
|
|
555
|
-
Tags: [, _json, `tags`],
|
|
556
|
-
});
|
|
557
|
-
Object.assign(contents, doc);
|
|
558
|
-
return contents;
|
|
559
|
-
};
|
|
560
|
-
export const de_GetCellReadinessSummaryCommand = async (output, context) => {
|
|
561
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
562
|
-
return de_CommandError(output, context);
|
|
563
|
-
}
|
|
564
|
-
const contents = map({
|
|
565
|
-
$metadata: deserializeMetadata(output),
|
|
566
|
-
});
|
|
567
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
568
|
-
const doc = take(data, {
|
|
569
|
-
NextToken: [, __expectString, `nextToken`],
|
|
570
|
-
Readiness: [, __expectString, `readiness`],
|
|
571
|
-
ReadinessChecks: [, (_) => de___listOfReadinessCheckSummary(_, context), `readinessChecks`],
|
|
572
|
-
});
|
|
573
|
-
Object.assign(contents, doc);
|
|
574
|
-
return contents;
|
|
575
|
-
};
|
|
576
|
-
export const de_GetReadinessCheckCommand = async (output, context) => {
|
|
577
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
578
|
-
return de_CommandError(output, context);
|
|
579
|
-
}
|
|
580
|
-
const contents = map({
|
|
581
|
-
$metadata: deserializeMetadata(output),
|
|
582
|
-
});
|
|
583
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
584
|
-
const doc = take(data, {
|
|
585
|
-
ReadinessCheckArn: [, __expectString, `readinessCheckArn`],
|
|
586
|
-
ReadinessCheckName: [, __expectString, `readinessCheckName`],
|
|
587
|
-
ResourceSet: [, __expectString, `resourceSet`],
|
|
588
|
-
Tags: [, _json, `tags`],
|
|
589
|
-
});
|
|
590
|
-
Object.assign(contents, doc);
|
|
591
|
-
return contents;
|
|
592
|
-
};
|
|
593
|
-
export const de_GetReadinessCheckResourceStatusCommand = async (output, context) => {
|
|
594
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
595
|
-
return de_CommandError(output, context);
|
|
596
|
-
}
|
|
597
|
-
const contents = map({
|
|
598
|
-
$metadata: deserializeMetadata(output),
|
|
599
|
-
});
|
|
600
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
601
|
-
const doc = take(data, {
|
|
602
|
-
NextToken: [, __expectString, `nextToken`],
|
|
603
|
-
Readiness: [, __expectString, `readiness`],
|
|
604
|
-
Rules: [, (_) => de___listOfRuleResult(_, context), `rules`],
|
|
605
|
-
});
|
|
606
|
-
Object.assign(contents, doc);
|
|
607
|
-
return contents;
|
|
608
|
-
};
|
|
609
|
-
export const de_GetReadinessCheckStatusCommand = async (output, context) => {
|
|
610
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
611
|
-
return de_CommandError(output, context);
|
|
612
|
-
}
|
|
613
|
-
const contents = map({
|
|
614
|
-
$metadata: deserializeMetadata(output),
|
|
615
|
-
});
|
|
616
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
617
|
-
const doc = take(data, {
|
|
618
|
-
Messages: [, (_) => de___listOfMessage(_, context), `messages`],
|
|
619
|
-
NextToken: [, __expectString, `nextToken`],
|
|
620
|
-
Readiness: [, __expectString, `readiness`],
|
|
621
|
-
Resources: [, (_) => de___listOfResourceResult(_, context), `resources`],
|
|
622
|
-
});
|
|
623
|
-
Object.assign(contents, doc);
|
|
624
|
-
return contents;
|
|
625
|
-
};
|
|
626
|
-
export const de_GetRecoveryGroupCommand = async (output, context) => {
|
|
627
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
628
|
-
return de_CommandError(output, context);
|
|
629
|
-
}
|
|
630
|
-
const contents = map({
|
|
631
|
-
$metadata: deserializeMetadata(output),
|
|
632
|
-
});
|
|
633
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
634
|
-
const doc = take(data, {
|
|
635
|
-
Cells: [, _json, `cells`],
|
|
636
|
-
RecoveryGroupArn: [, __expectString, `recoveryGroupArn`],
|
|
637
|
-
RecoveryGroupName: [, __expectString, `recoveryGroupName`],
|
|
638
|
-
Tags: [, _json, `tags`],
|
|
639
|
-
});
|
|
640
|
-
Object.assign(contents, doc);
|
|
641
|
-
return contents;
|
|
642
|
-
};
|
|
643
|
-
export const de_GetRecoveryGroupReadinessSummaryCommand = async (output, context) => {
|
|
644
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
645
|
-
return de_CommandError(output, context);
|
|
646
|
-
}
|
|
647
|
-
const contents = map({
|
|
648
|
-
$metadata: deserializeMetadata(output),
|
|
649
|
-
});
|
|
650
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
651
|
-
const doc = take(data, {
|
|
652
|
-
NextToken: [, __expectString, `nextToken`],
|
|
653
|
-
Readiness: [, __expectString, `readiness`],
|
|
654
|
-
ReadinessChecks: [, (_) => de___listOfReadinessCheckSummary(_, context), `readinessChecks`],
|
|
655
|
-
});
|
|
656
|
-
Object.assign(contents, doc);
|
|
657
|
-
return contents;
|
|
658
|
-
};
|
|
659
|
-
export const de_GetResourceSetCommand = async (output, context) => {
|
|
660
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
661
|
-
return de_CommandError(output, context);
|
|
662
|
-
}
|
|
663
|
-
const contents = map({
|
|
664
|
-
$metadata: deserializeMetadata(output),
|
|
665
|
-
});
|
|
666
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
667
|
-
const doc = take(data, {
|
|
668
|
-
ResourceSetArn: [, __expectString, `resourceSetArn`],
|
|
669
|
-
ResourceSetName: [, __expectString, `resourceSetName`],
|
|
670
|
-
ResourceSetType: [, __expectString, `resourceSetType`],
|
|
671
|
-
Resources: [, (_) => de___listOfResource(_, context), `resources`],
|
|
672
|
-
Tags: [, _json, `tags`],
|
|
673
|
-
});
|
|
674
|
-
Object.assign(contents, doc);
|
|
675
|
-
return contents;
|
|
676
|
-
};
|
|
677
|
-
export const de_ListCellsCommand = async (output, context) => {
|
|
678
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
679
|
-
return de_CommandError(output, context);
|
|
680
|
-
}
|
|
681
|
-
const contents = map({
|
|
682
|
-
$metadata: deserializeMetadata(output),
|
|
683
|
-
});
|
|
684
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
685
|
-
const doc = take(data, {
|
|
686
|
-
Cells: [, (_) => de___listOfCellOutput(_, context), `cells`],
|
|
687
|
-
NextToken: [, __expectString, `nextToken`],
|
|
688
|
-
});
|
|
689
|
-
Object.assign(contents, doc);
|
|
690
|
-
return contents;
|
|
691
|
-
};
|
|
692
|
-
export const de_ListCrossAccountAuthorizationsCommand = async (output, context) => {
|
|
693
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
694
|
-
return de_CommandError(output, context);
|
|
695
|
-
}
|
|
696
|
-
const contents = map({
|
|
697
|
-
$metadata: deserializeMetadata(output),
|
|
698
|
-
});
|
|
699
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
700
|
-
const doc = take(data, {
|
|
701
|
-
CrossAccountAuthorizations: [, _json, `crossAccountAuthorizations`],
|
|
702
|
-
NextToken: [, __expectString, `nextToken`],
|
|
703
|
-
});
|
|
704
|
-
Object.assign(contents, doc);
|
|
705
|
-
return contents;
|
|
706
|
-
};
|
|
707
|
-
export const de_ListReadinessChecksCommand = async (output, context) => {
|
|
708
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
709
|
-
return de_CommandError(output, context);
|
|
710
|
-
}
|
|
711
|
-
const contents = map({
|
|
712
|
-
$metadata: deserializeMetadata(output),
|
|
713
|
-
});
|
|
714
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
715
|
-
const doc = take(data, {
|
|
716
|
-
NextToken: [, __expectString, `nextToken`],
|
|
717
|
-
ReadinessChecks: [, (_) => de___listOfReadinessCheckOutput(_, context), `readinessChecks`],
|
|
718
|
-
});
|
|
719
|
-
Object.assign(contents, doc);
|
|
720
|
-
return contents;
|
|
721
|
-
};
|
|
722
|
-
export const de_ListRecoveryGroupsCommand = async (output, context) => {
|
|
723
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
724
|
-
return de_CommandError(output, context);
|
|
725
|
-
}
|
|
726
|
-
const contents = map({
|
|
727
|
-
$metadata: deserializeMetadata(output),
|
|
728
|
-
});
|
|
729
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
730
|
-
const doc = take(data, {
|
|
731
|
-
NextToken: [, __expectString, `nextToken`],
|
|
732
|
-
RecoveryGroups: [, (_) => de___listOfRecoveryGroupOutput(_, context), `recoveryGroups`],
|
|
733
|
-
});
|
|
734
|
-
Object.assign(contents, doc);
|
|
735
|
-
return contents;
|
|
736
|
-
};
|
|
737
|
-
export const de_ListResourceSetsCommand = async (output, context) => {
|
|
738
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
739
|
-
return de_CommandError(output, context);
|
|
740
|
-
}
|
|
741
|
-
const contents = map({
|
|
742
|
-
$metadata: deserializeMetadata(output),
|
|
743
|
-
});
|
|
744
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
745
|
-
const doc = take(data, {
|
|
746
|
-
NextToken: [, __expectString, `nextToken`],
|
|
747
|
-
ResourceSets: [, (_) => de___listOfResourceSetOutput(_, context), `resourceSets`],
|
|
748
|
-
});
|
|
749
|
-
Object.assign(contents, doc);
|
|
750
|
-
return contents;
|
|
751
|
-
};
|
|
752
|
-
export const de_ListRulesCommand = async (output, context) => {
|
|
753
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
754
|
-
return de_CommandError(output, context);
|
|
755
|
-
}
|
|
756
|
-
const contents = map({
|
|
757
|
-
$metadata: deserializeMetadata(output),
|
|
758
|
-
});
|
|
759
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
760
|
-
const doc = take(data, {
|
|
761
|
-
NextToken: [, __expectString, `nextToken`],
|
|
762
|
-
Rules: [, (_) => de___listOfListRulesOutput(_, context), `rules`],
|
|
763
|
-
});
|
|
764
|
-
Object.assign(contents, doc);
|
|
765
|
-
return contents;
|
|
766
|
-
};
|
|
767
|
-
export const de_ListTagsForResourcesCommand = async (output, context) => {
|
|
768
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
769
|
-
return de_CommandError(output, context);
|
|
770
|
-
}
|
|
771
|
-
const contents = map({
|
|
772
|
-
$metadata: deserializeMetadata(output),
|
|
773
|
-
});
|
|
774
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
775
|
-
const doc = take(data, {
|
|
776
|
-
Tags: [, _json, `tags`],
|
|
777
|
-
});
|
|
778
|
-
Object.assign(contents, doc);
|
|
779
|
-
return contents;
|
|
780
|
-
};
|
|
781
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
782
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
783
|
-
return de_CommandError(output, context);
|
|
784
|
-
}
|
|
785
|
-
const contents = map({
|
|
786
|
-
$metadata: deserializeMetadata(output),
|
|
787
|
-
});
|
|
788
|
-
await collectBody(output.body, context);
|
|
789
|
-
return contents;
|
|
790
|
-
};
|
|
791
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
792
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
793
|
-
return de_CommandError(output, context);
|
|
794
|
-
}
|
|
795
|
-
const contents = map({
|
|
796
|
-
$metadata: deserializeMetadata(output),
|
|
797
|
-
});
|
|
798
|
-
await collectBody(output.body, context);
|
|
799
|
-
return contents;
|
|
800
|
-
};
|
|
801
|
-
export const de_UpdateCellCommand = async (output, context) => {
|
|
802
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
803
|
-
return de_CommandError(output, context);
|
|
804
|
-
}
|
|
805
|
-
const contents = map({
|
|
806
|
-
$metadata: deserializeMetadata(output),
|
|
807
|
-
});
|
|
808
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
809
|
-
const doc = take(data, {
|
|
810
|
-
CellArn: [, __expectString, `cellArn`],
|
|
811
|
-
CellName: [, __expectString, `cellName`],
|
|
812
|
-
Cells: [, _json, `cells`],
|
|
813
|
-
ParentReadinessScopes: [, _json, `parentReadinessScopes`],
|
|
814
|
-
Tags: [, _json, `tags`],
|
|
815
|
-
});
|
|
816
|
-
Object.assign(contents, doc);
|
|
817
|
-
return contents;
|
|
818
|
-
};
|
|
819
|
-
export const de_UpdateReadinessCheckCommand = async (output, context) => {
|
|
820
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
821
|
-
return de_CommandError(output, context);
|
|
822
|
-
}
|
|
823
|
-
const contents = map({
|
|
824
|
-
$metadata: deserializeMetadata(output),
|
|
825
|
-
});
|
|
826
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
827
|
-
const doc = take(data, {
|
|
828
|
-
ReadinessCheckArn: [, __expectString, `readinessCheckArn`],
|
|
829
|
-
ReadinessCheckName: [, __expectString, `readinessCheckName`],
|
|
830
|
-
ResourceSet: [, __expectString, `resourceSet`],
|
|
831
|
-
Tags: [, _json, `tags`],
|
|
832
|
-
});
|
|
833
|
-
Object.assign(contents, doc);
|
|
834
|
-
return contents;
|
|
835
|
-
};
|
|
836
|
-
export const de_UpdateRecoveryGroupCommand = async (output, context) => {
|
|
837
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
838
|
-
return de_CommandError(output, context);
|
|
839
|
-
}
|
|
840
|
-
const contents = map({
|
|
841
|
-
$metadata: deserializeMetadata(output),
|
|
842
|
-
});
|
|
843
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
844
|
-
const doc = take(data, {
|
|
845
|
-
Cells: [, _json, `cells`],
|
|
846
|
-
RecoveryGroupArn: [, __expectString, `recoveryGroupArn`],
|
|
847
|
-
RecoveryGroupName: [, __expectString, `recoveryGroupName`],
|
|
848
|
-
Tags: [, _json, `tags`],
|
|
849
|
-
});
|
|
850
|
-
Object.assign(contents, doc);
|
|
851
|
-
return contents;
|
|
852
|
-
};
|
|
853
|
-
export const de_UpdateResourceSetCommand = async (output, context) => {
|
|
854
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
855
|
-
return de_CommandError(output, context);
|
|
856
|
-
}
|
|
857
|
-
const contents = map({
|
|
858
|
-
$metadata: deserializeMetadata(output),
|
|
859
|
-
});
|
|
860
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
861
|
-
const doc = take(data, {
|
|
862
|
-
ResourceSetArn: [, __expectString, `resourceSetArn`],
|
|
863
|
-
ResourceSetName: [, __expectString, `resourceSetName`],
|
|
864
|
-
ResourceSetType: [, __expectString, `resourceSetType`],
|
|
865
|
-
Resources: [, (_) => de___listOfResource(_, context), `resources`],
|
|
866
|
-
Tags: [, _json, `tags`],
|
|
867
|
-
});
|
|
868
|
-
Object.assign(contents, doc);
|
|
869
|
-
return contents;
|
|
870
|
-
};
|
|
871
|
-
const de_CommandError = async (output, context) => {
|
|
872
|
-
const parsedOutput = {
|
|
873
|
-
...output,
|
|
874
|
-
body: await parseErrorBody(output.body, context),
|
|
875
|
-
};
|
|
876
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
|
-
switch (errorCode) {
|
|
878
|
-
case "AccessDeniedException":
|
|
879
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
880
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
881
|
-
case "ConflictException":
|
|
882
|
-
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
883
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
884
|
-
case "InternalServerException":
|
|
885
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
886
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
887
|
-
case "ThrottlingException":
|
|
888
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
889
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ValidationException":
|
|
891
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
892
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
893
|
-
case "ResourceNotFoundException":
|
|
894
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
895
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
896
|
-
default:
|
|
897
|
-
const parsedBody = parsedOutput.body;
|
|
898
|
-
return throwDefaultError({
|
|
899
|
-
output,
|
|
900
|
-
parsedBody,
|
|
901
|
-
errorCode,
|
|
902
|
-
});
|
|
903
|
-
}
|
|
904
|
-
};
|
|
905
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
906
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
907
|
-
const contents = map({});
|
|
908
|
-
const data = parsedOutput.body;
|
|
909
|
-
const doc = take(data, {
|
|
910
|
-
Message: [, __expectString, `message`],
|
|
911
|
-
});
|
|
912
|
-
Object.assign(contents, doc);
|
|
913
|
-
const exception = new AccessDeniedException({
|
|
914
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
915
|
-
...contents,
|
|
916
|
-
});
|
|
917
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
918
|
-
};
|
|
919
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
920
|
-
const contents = map({});
|
|
921
|
-
const data = parsedOutput.body;
|
|
922
|
-
const doc = take(data, {
|
|
923
|
-
Message: [, __expectString, `message`],
|
|
924
|
-
});
|
|
925
|
-
Object.assign(contents, doc);
|
|
926
|
-
const exception = new ConflictException({
|
|
927
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
928
|
-
...contents,
|
|
929
|
-
});
|
|
930
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
931
|
-
};
|
|
932
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
933
|
-
const contents = map({});
|
|
934
|
-
const data = parsedOutput.body;
|
|
935
|
-
const doc = take(data, {
|
|
936
|
-
Message: [, __expectString, `message`],
|
|
937
|
-
});
|
|
938
|
-
Object.assign(contents, doc);
|
|
939
|
-
const exception = new InternalServerException({
|
|
940
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
941
|
-
...contents,
|
|
942
|
-
});
|
|
943
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
944
|
-
};
|
|
945
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
946
|
-
const contents = map({});
|
|
947
|
-
const data = parsedOutput.body;
|
|
948
|
-
const doc = take(data, {
|
|
949
|
-
Message: [, __expectString, `message`],
|
|
950
|
-
});
|
|
951
|
-
Object.assign(contents, doc);
|
|
952
|
-
const exception = new ResourceNotFoundException({
|
|
953
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
954
|
-
...contents,
|
|
955
|
-
});
|
|
956
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
957
|
-
};
|
|
958
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
959
|
-
const contents = map({});
|
|
960
|
-
const data = parsedOutput.body;
|
|
961
|
-
const doc = take(data, {
|
|
962
|
-
Message: [, __expectString, `message`],
|
|
963
|
-
});
|
|
964
|
-
Object.assign(contents, doc);
|
|
965
|
-
const exception = new ThrottlingException({
|
|
966
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
967
|
-
...contents,
|
|
968
|
-
});
|
|
969
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
970
|
-
};
|
|
971
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
972
|
-
const contents = map({});
|
|
973
|
-
const data = parsedOutput.body;
|
|
974
|
-
const doc = take(data, {
|
|
975
|
-
Message: [, __expectString, `message`],
|
|
976
|
-
});
|
|
977
|
-
Object.assign(contents, doc);
|
|
978
|
-
const exception = new ValidationException({
|
|
979
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
980
|
-
...contents,
|
|
981
|
-
});
|
|
982
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
983
|
-
};
|
|
984
|
-
const se___listOfResource = (input, context) => {
|
|
985
|
-
return input
|
|
986
|
-
.filter((e) => e != null)
|
|
987
|
-
.map((entry) => {
|
|
988
|
-
return se_Resource(entry, context);
|
|
989
|
-
});
|
|
990
|
-
};
|
|
991
|
-
const se_DNSTargetResource = (input, context) => {
|
|
992
|
-
return take(input, {
|
|
993
|
-
domainName: [, , `DomainName`],
|
|
994
|
-
hostedZoneArn: [, , `HostedZoneArn`],
|
|
995
|
-
recordSetId: [, , `RecordSetId`],
|
|
996
|
-
recordType: [, , `RecordType`],
|
|
997
|
-
targetResource: [, (_) => se_TargetResource(_, context), `TargetResource`],
|
|
998
|
-
});
|
|
999
|
-
};
|
|
1000
|
-
const se_NLBResource = (input, context) => {
|
|
1001
|
-
return take(input, {
|
|
1002
|
-
arn: [, , `Arn`],
|
|
1003
|
-
});
|
|
1004
|
-
};
|
|
1005
|
-
const se_R53ResourceRecord = (input, context) => {
|
|
1006
|
-
return take(input, {
|
|
1007
|
-
domainName: [, , `DomainName`],
|
|
1008
|
-
recordSetId: [, , `RecordSetId`],
|
|
1009
|
-
});
|
|
1010
|
-
};
|
|
1011
|
-
const se_Resource = (input, context) => {
|
|
1012
|
-
return take(input, {
|
|
1013
|
-
componentId: [, , `ComponentId`],
|
|
1014
|
-
dnsTargetResource: [, (_) => se_DNSTargetResource(_, context), `DnsTargetResource`],
|
|
1015
|
-
readinessScopes: [, _json, `ReadinessScopes`],
|
|
1016
|
-
resourceArn: [, , `ResourceArn`],
|
|
1017
|
-
});
|
|
1018
|
-
};
|
|
1019
|
-
const se_TargetResource = (input, context) => {
|
|
1020
|
-
return take(input, {
|
|
1021
|
-
nLBResource: [, (_) => se_NLBResource(_, context), `NLBResource`],
|
|
1022
|
-
r53Resource: [, (_) => se_R53ResourceRecord(_, context), `R53Resource`],
|
|
1023
|
-
});
|
|
1024
|
-
};
|
|
1025
|
-
const de___listOfCellOutput = (output, context) => {
|
|
1026
|
-
const retVal = (output || [])
|
|
1027
|
-
.filter((e) => e != null)
|
|
1028
|
-
.map((entry) => {
|
|
1029
|
-
return de_CellOutput(entry, context);
|
|
1030
|
-
});
|
|
1031
|
-
return retVal;
|
|
1032
|
-
};
|
|
1033
|
-
const de___listOfListRulesOutput = (output, context) => {
|
|
1034
|
-
const retVal = (output || [])
|
|
1035
|
-
.filter((e) => e != null)
|
|
1036
|
-
.map((entry) => {
|
|
1037
|
-
return de_ListRulesOutput(entry, context);
|
|
1038
|
-
});
|
|
1039
|
-
return retVal;
|
|
1040
|
-
};
|
|
1041
|
-
const de___listOfMessage = (output, context) => {
|
|
1042
|
-
const retVal = (output || [])
|
|
1043
|
-
.filter((e) => e != null)
|
|
1044
|
-
.map((entry) => {
|
|
1045
|
-
return de_Message(entry, context);
|
|
1046
|
-
});
|
|
1047
|
-
return retVal;
|
|
1048
|
-
};
|
|
1049
|
-
const de___listOfReadinessCheckOutput = (output, context) => {
|
|
1050
|
-
const retVal = (output || [])
|
|
1051
|
-
.filter((e) => e != null)
|
|
1052
|
-
.map((entry) => {
|
|
1053
|
-
return de_ReadinessCheckOutput(entry, context);
|
|
1054
|
-
});
|
|
1055
|
-
return retVal;
|
|
1056
|
-
};
|
|
1057
|
-
const de___listOfReadinessCheckSummary = (output, context) => {
|
|
1058
|
-
const retVal = (output || [])
|
|
1059
|
-
.filter((e) => e != null)
|
|
1060
|
-
.map((entry) => {
|
|
1061
|
-
return de_ReadinessCheckSummary(entry, context);
|
|
1062
|
-
});
|
|
1063
|
-
return retVal;
|
|
1064
|
-
};
|
|
1065
|
-
const de___listOfRecommendation = (output, context) => {
|
|
1066
|
-
const retVal = (output || [])
|
|
1067
|
-
.filter((e) => e != null)
|
|
1068
|
-
.map((entry) => {
|
|
1069
|
-
return de_Recommendation(entry, context);
|
|
1070
|
-
});
|
|
1071
|
-
return retVal;
|
|
1072
|
-
};
|
|
1073
|
-
const de___listOfRecoveryGroupOutput = (output, context) => {
|
|
1074
|
-
const retVal = (output || [])
|
|
1075
|
-
.filter((e) => e != null)
|
|
1076
|
-
.map((entry) => {
|
|
1077
|
-
return de_RecoveryGroupOutput(entry, context);
|
|
1078
|
-
});
|
|
1079
|
-
return retVal;
|
|
1080
|
-
};
|
|
1081
|
-
const de___listOfResource = (output, context) => {
|
|
1082
|
-
const retVal = (output || [])
|
|
1083
|
-
.filter((e) => e != null)
|
|
1084
|
-
.map((entry) => {
|
|
1085
|
-
return de_Resource(entry, context);
|
|
1086
|
-
});
|
|
1087
|
-
return retVal;
|
|
1088
|
-
};
|
|
1089
|
-
const de___listOfResourceResult = (output, context) => {
|
|
1090
|
-
const retVal = (output || [])
|
|
1091
|
-
.filter((e) => e != null)
|
|
1092
|
-
.map((entry) => {
|
|
1093
|
-
return de_ResourceResult(entry, context);
|
|
1094
|
-
});
|
|
1095
|
-
return retVal;
|
|
1096
|
-
};
|
|
1097
|
-
const de___listOfResourceSetOutput = (output, context) => {
|
|
1098
|
-
const retVal = (output || [])
|
|
1099
|
-
.filter((e) => e != null)
|
|
1100
|
-
.map((entry) => {
|
|
1101
|
-
return de_ResourceSetOutput(entry, context);
|
|
1102
|
-
});
|
|
1103
|
-
return retVal;
|
|
1104
|
-
};
|
|
1105
|
-
const de___listOfRuleResult = (output, context) => {
|
|
1106
|
-
const retVal = (output || [])
|
|
1107
|
-
.filter((e) => e != null)
|
|
1108
|
-
.map((entry) => {
|
|
1109
|
-
return de_RuleResult(entry, context);
|
|
1110
|
-
});
|
|
1111
|
-
return retVal;
|
|
1112
|
-
};
|
|
1113
|
-
const de_CellOutput = (output, context) => {
|
|
1114
|
-
return take(output, {
|
|
1115
|
-
CellArn: [, __expectString, `cellArn`],
|
|
1116
|
-
CellName: [, __expectString, `cellName`],
|
|
1117
|
-
Cells: [, _json, `cells`],
|
|
1118
|
-
ParentReadinessScopes: [, _json, `parentReadinessScopes`],
|
|
1119
|
-
Tags: [, _json, `tags`],
|
|
1120
|
-
});
|
|
1121
|
-
};
|
|
1122
|
-
const de_DNSTargetResource = (output, context) => {
|
|
1123
|
-
return take(output, {
|
|
1124
|
-
DomainName: [, __expectString, `domainName`],
|
|
1125
|
-
HostedZoneArn: [, __expectString, `hostedZoneArn`],
|
|
1126
|
-
RecordSetId: [, __expectString, `recordSetId`],
|
|
1127
|
-
RecordType: [, __expectString, `recordType`],
|
|
1128
|
-
TargetResource: [, (_) => de_TargetResource(_, context), `targetResource`],
|
|
1129
|
-
});
|
|
1130
|
-
};
|
|
1131
|
-
const de_ListRulesOutput = (output, context) => {
|
|
1132
|
-
return take(output, {
|
|
1133
|
-
ResourceType: [, __expectString, `resourceType`],
|
|
1134
|
-
RuleDescription: [, __expectString, `ruleDescription`],
|
|
1135
|
-
RuleId: [, __expectString, `ruleId`],
|
|
1136
|
-
});
|
|
1137
|
-
};
|
|
1138
|
-
const de_Message = (output, context) => {
|
|
1139
|
-
return take(output, {
|
|
1140
|
-
MessageText: [, __expectString, `messageText`],
|
|
1141
|
-
});
|
|
1142
|
-
};
|
|
1143
|
-
const de_NLBResource = (output, context) => {
|
|
1144
|
-
return take(output, {
|
|
1145
|
-
Arn: [, __expectString, `arn`],
|
|
1146
|
-
});
|
|
1147
|
-
};
|
|
1148
|
-
const de_R53ResourceRecord = (output, context) => {
|
|
1149
|
-
return take(output, {
|
|
1150
|
-
DomainName: [, __expectString, `domainName`],
|
|
1151
|
-
RecordSetId: [, __expectString, `recordSetId`],
|
|
1152
|
-
});
|
|
1153
|
-
};
|
|
1154
|
-
const de_ReadinessCheckOutput = (output, context) => {
|
|
1155
|
-
return take(output, {
|
|
1156
|
-
ReadinessCheckArn: [, __expectString, `readinessCheckArn`],
|
|
1157
|
-
ReadinessCheckName: [, __expectString, `readinessCheckName`],
|
|
1158
|
-
ResourceSet: [, __expectString, `resourceSet`],
|
|
1159
|
-
Tags: [, _json, `tags`],
|
|
1160
|
-
});
|
|
1161
|
-
};
|
|
1162
|
-
const de_ReadinessCheckSummary = (output, context) => {
|
|
1163
|
-
return take(output, {
|
|
1164
|
-
Readiness: [, __expectString, `readiness`],
|
|
1165
|
-
ReadinessCheckName: [, __expectString, `readinessCheckName`],
|
|
1166
|
-
});
|
|
1167
|
-
};
|
|
1168
|
-
const de_Recommendation = (output, context) => {
|
|
1169
|
-
return take(output, {
|
|
1170
|
-
RecommendationText: [, __expectString, `recommendationText`],
|
|
1171
|
-
});
|
|
1172
|
-
};
|
|
1173
|
-
const de_RecoveryGroupOutput = (output, context) => {
|
|
1174
|
-
return take(output, {
|
|
1175
|
-
Cells: [, _json, `cells`],
|
|
1176
|
-
RecoveryGroupArn: [, __expectString, `recoveryGroupArn`],
|
|
1177
|
-
RecoveryGroupName: [, __expectString, `recoveryGroupName`],
|
|
1178
|
-
Tags: [, _json, `tags`],
|
|
1179
|
-
});
|
|
1180
|
-
};
|
|
1181
|
-
const de_Resource = (output, context) => {
|
|
1182
|
-
return take(output, {
|
|
1183
|
-
ComponentId: [, __expectString, `componentId`],
|
|
1184
|
-
DnsTargetResource: [, (_) => de_DNSTargetResource(_, context), `dnsTargetResource`],
|
|
1185
|
-
ReadinessScopes: [, _json, `readinessScopes`],
|
|
1186
|
-
ResourceArn: [, __expectString, `resourceArn`],
|
|
1187
|
-
});
|
|
1188
|
-
};
|
|
1189
|
-
const de_ResourceResult = (output, context) => {
|
|
1190
|
-
return take(output, {
|
|
1191
|
-
ComponentId: [, __expectString, `componentId`],
|
|
1192
|
-
LastCheckedTimestamp: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `lastCheckedTimestamp`],
|
|
1193
|
-
Readiness: [, __expectString, `readiness`],
|
|
1194
|
-
ResourceArn: [, __expectString, `resourceArn`],
|
|
1195
|
-
});
|
|
1196
|
-
};
|
|
1197
|
-
const de_ResourceSetOutput = (output, context) => {
|
|
1198
|
-
return take(output, {
|
|
1199
|
-
ResourceSetArn: [, __expectString, `resourceSetArn`],
|
|
1200
|
-
ResourceSetName: [, __expectString, `resourceSetName`],
|
|
1201
|
-
ResourceSetType: [, __expectString, `resourceSetType`],
|
|
1202
|
-
Resources: [, (_) => de___listOfResource(_, context), `resources`],
|
|
1203
|
-
Tags: [, _json, `tags`],
|
|
1204
|
-
});
|
|
1205
|
-
};
|
|
1206
|
-
const de_RuleResult = (output, context) => {
|
|
1207
|
-
return take(output, {
|
|
1208
|
-
LastCheckedTimestamp: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `lastCheckedTimestamp`],
|
|
1209
|
-
Messages: [, (_) => de___listOfMessage(_, context), `messages`],
|
|
1210
|
-
Readiness: [, __expectString, `readiness`],
|
|
1211
|
-
RuleId: [, __expectString, `ruleId`],
|
|
1212
|
-
});
|
|
1213
|
-
};
|
|
1214
|
-
const de_TargetResource = (output, context) => {
|
|
1215
|
-
return take(output, {
|
|
1216
|
-
NLBResource: [, (_) => de_NLBResource(_, context), `nLBResource`],
|
|
1217
|
-
R53Resource: [, (_) => de_R53ResourceRecord(_, context), `r53Resource`],
|
|
1218
|
-
});
|
|
1219
|
-
};
|
|
1220
|
-
const deserializeMetadata = (output) => ({
|
|
1221
|
-
httpStatusCode: output.statusCode,
|
|
1222
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1223
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1224
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1225
|
-
});
|
|
1226
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1227
|
-
const _MR = "MaxResults";
|
|
1228
|
-
const _NT = "NextToken";
|
|
1229
|
-
const _RT = "ResourceType";
|
|
1230
|
-
const _TK = "TagKeys";
|
|
1231
|
-
const _mR = "maxResults";
|
|
1232
|
-
const _nT = "nextToken";
|
|
1233
|
-
const _rT = "resourceType";
|
|
1234
|
-
const _tK = "tagKeys";
|