@aws-sdk/client-route53-recovery-readiness 3.476.0 → 3.477.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +184 -417
- package/dist-es/protocols/Aws_restJson1.js +185 -418
- package/package.json +5 -4
|
@@ -2,106 +2,78 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_GetRecoveryGroupReadinessSummaryCommand = exports.de_GetRecoveryGroupCommand = exports.de_GetReadinessCheckStatusCommand = exports.de_GetReadinessCheckResourceStatusCommand = exports.de_GetReadinessCheckCommand = exports.de_GetCellReadinessSummaryCommand = exports.de_GetCellCommand = exports.de_GetArchitectureRecommendationsCommand = exports.de_DeleteResourceSetCommand = exports.de_DeleteRecoveryGroupCommand = exports.de_DeleteReadinessCheckCommand = exports.de_DeleteCrossAccountAuthorizationCommand = exports.de_DeleteCellCommand = exports.de_CreateResourceSetCommand = exports.de_CreateRecoveryGroupCommand = exports.de_CreateReadinessCheckCommand = exports.de_CreateCrossAccountAuthorizationCommand = exports.de_CreateCellCommand = exports.se_UpdateResourceSetCommand = exports.se_UpdateRecoveryGroupCommand = exports.se_UpdateReadinessCheckCommand = exports.se_UpdateCellCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourcesCommand = exports.se_ListRulesCommand = exports.se_ListResourceSetsCommand = exports.se_ListRecoveryGroupsCommand = exports.se_ListReadinessChecksCommand = exports.se_ListCrossAccountAuthorizationsCommand = exports.se_ListCellsCommand = exports.se_GetResourceSetCommand = exports.se_GetRecoveryGroupReadinessSummaryCommand = exports.se_GetRecoveryGroupCommand = exports.se_GetReadinessCheckStatusCommand = exports.se_GetReadinessCheckResourceStatusCommand = exports.se_GetReadinessCheckCommand = exports.se_GetCellReadinessSummaryCommand = exports.se_GetCellCommand = exports.se_GetArchitectureRecommendationsCommand = exports.se_DeleteResourceSetCommand = exports.se_DeleteRecoveryGroupCommand = exports.se_DeleteReadinessCheckCommand = exports.se_DeleteCrossAccountAuthorizationCommand = exports.se_DeleteCellCommand = exports.se_CreateResourceSetCommand = exports.se_CreateRecoveryGroupCommand = exports.se_CreateReadinessCheckCommand = exports.se_CreateCrossAccountAuthorizationCommand = exports.se_CreateCellCommand = void 0;
|
|
4
4
|
exports.de_UpdateResourceSetCommand = exports.de_UpdateRecoveryGroupCommand = exports.de_UpdateReadinessCheckCommand = exports.de_UpdateCellCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourcesCommand = exports.de_ListRulesCommand = exports.de_ListResourceSetsCommand = exports.de_ListRecoveryGroupsCommand = exports.de_ListReadinessChecksCommand = exports.de_ListCrossAccountAuthorizationsCommand = exports.de_ListCellsCommand = exports.de_GetResourceSetCommand = void 0;
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Route53RecoveryReadinessServiceException_1 = require("../models/Route53RecoveryReadinessServiceException");
|
|
9
9
|
const se_CreateCellCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
b.bp("/cells");
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
17
|
cellName: [, , `CellName`],
|
|
18
18
|
cells: [, (_) => (0, smithy_client_1._json)(_), `Cells`],
|
|
19
19
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
20
20
|
}));
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
hostname,
|
|
24
|
-
port,
|
|
25
|
-
method: "POST",
|
|
26
|
-
headers,
|
|
27
|
-
path: resolvedPath,
|
|
28
|
-
body,
|
|
29
|
-
});
|
|
21
|
+
b.m("POST").h(headers).b(body);
|
|
22
|
+
return b.build();
|
|
30
23
|
};
|
|
31
24
|
exports.se_CreateCellCommand = se_CreateCellCommand;
|
|
32
25
|
const se_CreateCrossAccountAuthorizationCommand = async (input, context) => {
|
|
33
|
-
const
|
|
26
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
34
27
|
const headers = {
|
|
35
28
|
"content-type": "application/json",
|
|
36
29
|
};
|
|
37
|
-
|
|
30
|
+
b.bp("/crossaccountauthorizations");
|
|
38
31
|
let body;
|
|
39
32
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
40
33
|
crossAccountAuthorization: [, , `CrossAccountAuthorization`],
|
|
41
34
|
}));
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
hostname,
|
|
45
|
-
port,
|
|
46
|
-
method: "POST",
|
|
47
|
-
headers,
|
|
48
|
-
path: resolvedPath,
|
|
49
|
-
body,
|
|
50
|
-
});
|
|
35
|
+
b.m("POST").h(headers).b(body);
|
|
36
|
+
return b.build();
|
|
51
37
|
};
|
|
52
38
|
exports.se_CreateCrossAccountAuthorizationCommand = se_CreateCrossAccountAuthorizationCommand;
|
|
53
39
|
const se_CreateReadinessCheckCommand = async (input, context) => {
|
|
54
|
-
const
|
|
40
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
55
41
|
const headers = {
|
|
56
42
|
"content-type": "application/json",
|
|
57
43
|
};
|
|
58
|
-
|
|
44
|
+
b.bp("/readinesschecks");
|
|
59
45
|
let body;
|
|
60
46
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
61
47
|
readinessCheckName: [, , `ReadinessCheckName`],
|
|
62
48
|
resourceSetName: [, , `ResourceSetName`],
|
|
63
49
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
64
50
|
}));
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
hostname,
|
|
68
|
-
port,
|
|
69
|
-
method: "POST",
|
|
70
|
-
headers,
|
|
71
|
-
path: resolvedPath,
|
|
72
|
-
body,
|
|
73
|
-
});
|
|
51
|
+
b.m("POST").h(headers).b(body);
|
|
52
|
+
return b.build();
|
|
74
53
|
};
|
|
75
54
|
exports.se_CreateReadinessCheckCommand = se_CreateReadinessCheckCommand;
|
|
76
55
|
const se_CreateRecoveryGroupCommand = async (input, context) => {
|
|
77
|
-
const
|
|
56
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
78
57
|
const headers = {
|
|
79
58
|
"content-type": "application/json",
|
|
80
59
|
};
|
|
81
|
-
|
|
60
|
+
b.bp("/recoverygroups");
|
|
82
61
|
let body;
|
|
83
62
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
84
63
|
cells: [, (_) => (0, smithy_client_1._json)(_), `Cells`],
|
|
85
64
|
recoveryGroupName: [, , `RecoveryGroupName`],
|
|
86
65
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
87
66
|
}));
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
hostname,
|
|
91
|
-
port,
|
|
92
|
-
method: "POST",
|
|
93
|
-
headers,
|
|
94
|
-
path: resolvedPath,
|
|
95
|
-
body,
|
|
96
|
-
});
|
|
67
|
+
b.m("POST").h(headers).b(body);
|
|
68
|
+
return b.build();
|
|
97
69
|
};
|
|
98
70
|
exports.se_CreateRecoveryGroupCommand = se_CreateRecoveryGroupCommand;
|
|
99
71
|
const se_CreateResourceSetCommand = async (input, context) => {
|
|
100
|
-
const
|
|
72
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
101
73
|
const headers = {
|
|
102
74
|
"content-type": "application/json",
|
|
103
75
|
};
|
|
104
|
-
|
|
76
|
+
b.bp("/resourcesets");
|
|
105
77
|
let body;
|
|
106
78
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
107
79
|
resourceSetName: [, , `ResourceSetName`],
|
|
@@ -109,563 +81,350 @@ const se_CreateResourceSetCommand = async (input, context) => {
|
|
|
109
81
|
resources: [, (_) => se___listOfResource(_, context), `Resources`],
|
|
110
82
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
111
83
|
}));
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
hostname,
|
|
115
|
-
port,
|
|
116
|
-
method: "POST",
|
|
117
|
-
headers,
|
|
118
|
-
path: resolvedPath,
|
|
119
|
-
body,
|
|
120
|
-
});
|
|
84
|
+
b.m("POST").h(headers).b(body);
|
|
85
|
+
return b.build();
|
|
121
86
|
};
|
|
122
87
|
exports.se_CreateResourceSetCommand = se_CreateResourceSetCommand;
|
|
123
88
|
const se_DeleteCellCommand = async (input, context) => {
|
|
124
|
-
const
|
|
89
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
125
90
|
const headers = {};
|
|
126
|
-
|
|
127
|
-
|
|
91
|
+
b.bp("/cells/{CellName}");
|
|
92
|
+
b.p("CellName", () => input.CellName, "{CellName}", false);
|
|
128
93
|
let body;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
hostname,
|
|
132
|
-
port,
|
|
133
|
-
method: "DELETE",
|
|
134
|
-
headers,
|
|
135
|
-
path: resolvedPath,
|
|
136
|
-
body,
|
|
137
|
-
});
|
|
94
|
+
b.m("DELETE").h(headers).b(body);
|
|
95
|
+
return b.build();
|
|
138
96
|
};
|
|
139
97
|
exports.se_DeleteCellCommand = se_DeleteCellCommand;
|
|
140
98
|
const se_DeleteCrossAccountAuthorizationCommand = async (input, context) => {
|
|
141
|
-
const
|
|
99
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
142
100
|
const headers = {};
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CrossAccountAuthorization", () => input.CrossAccountAuthorization, "{CrossAccountAuthorization}", false);
|
|
101
|
+
b.bp("/crossaccountauthorizations/{CrossAccountAuthorization}");
|
|
102
|
+
b.p("CrossAccountAuthorization", () => input.CrossAccountAuthorization, "{CrossAccountAuthorization}", false);
|
|
146
103
|
let body;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
hostname,
|
|
150
|
-
port,
|
|
151
|
-
method: "DELETE",
|
|
152
|
-
headers,
|
|
153
|
-
path: resolvedPath,
|
|
154
|
-
body,
|
|
155
|
-
});
|
|
104
|
+
b.m("DELETE").h(headers).b(body);
|
|
105
|
+
return b.build();
|
|
156
106
|
};
|
|
157
107
|
exports.se_DeleteCrossAccountAuthorizationCommand = se_DeleteCrossAccountAuthorizationCommand;
|
|
158
108
|
const se_DeleteReadinessCheckCommand = async (input, context) => {
|
|
159
|
-
const
|
|
109
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
160
110
|
const headers = {};
|
|
161
|
-
|
|
162
|
-
|
|
111
|
+
b.bp("/readinesschecks/{ReadinessCheckName}");
|
|
112
|
+
b.p("ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
163
113
|
let body;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
hostname,
|
|
167
|
-
port,
|
|
168
|
-
method: "DELETE",
|
|
169
|
-
headers,
|
|
170
|
-
path: resolvedPath,
|
|
171
|
-
body,
|
|
172
|
-
});
|
|
114
|
+
b.m("DELETE").h(headers).b(body);
|
|
115
|
+
return b.build();
|
|
173
116
|
};
|
|
174
117
|
exports.se_DeleteReadinessCheckCommand = se_DeleteReadinessCheckCommand;
|
|
175
118
|
const se_DeleteRecoveryGroupCommand = async (input, context) => {
|
|
176
|
-
const
|
|
119
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
177
120
|
const headers = {};
|
|
178
|
-
|
|
179
|
-
|
|
121
|
+
b.bp("/recoverygroups/{RecoveryGroupName}");
|
|
122
|
+
b.p("RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
180
123
|
let body;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
hostname,
|
|
184
|
-
port,
|
|
185
|
-
method: "DELETE",
|
|
186
|
-
headers,
|
|
187
|
-
path: resolvedPath,
|
|
188
|
-
body,
|
|
189
|
-
});
|
|
124
|
+
b.m("DELETE").h(headers).b(body);
|
|
125
|
+
return b.build();
|
|
190
126
|
};
|
|
191
127
|
exports.se_DeleteRecoveryGroupCommand = se_DeleteRecoveryGroupCommand;
|
|
192
128
|
const se_DeleteResourceSetCommand = async (input, context) => {
|
|
193
|
-
const
|
|
129
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
194
130
|
const headers = {};
|
|
195
|
-
|
|
196
|
-
|
|
131
|
+
b.bp("/resourcesets/{ResourceSetName}");
|
|
132
|
+
b.p("ResourceSetName", () => input.ResourceSetName, "{ResourceSetName}", false);
|
|
197
133
|
let body;
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
hostname,
|
|
201
|
-
port,
|
|
202
|
-
method: "DELETE",
|
|
203
|
-
headers,
|
|
204
|
-
path: resolvedPath,
|
|
205
|
-
body,
|
|
206
|
-
});
|
|
134
|
+
b.m("DELETE").h(headers).b(body);
|
|
135
|
+
return b.build();
|
|
207
136
|
};
|
|
208
137
|
exports.se_DeleteResourceSetCommand = se_DeleteResourceSetCommand;
|
|
209
138
|
const se_GetArchitectureRecommendationsCommand = async (input, context) => {
|
|
210
|
-
const
|
|
139
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
211
140
|
const headers = {};
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
141
|
+
b.bp("/recoverygroups/{RecoveryGroupName}/architectureRecommendations");
|
|
142
|
+
b.p("RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
215
143
|
const query = (0, smithy_client_1.map)({
|
|
216
|
-
|
|
217
|
-
|
|
144
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
145
|
+
[_nT]: [, input[_NT]],
|
|
218
146
|
});
|
|
219
147
|
let body;
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
hostname,
|
|
223
|
-
port,
|
|
224
|
-
method: "GET",
|
|
225
|
-
headers,
|
|
226
|
-
path: resolvedPath,
|
|
227
|
-
query,
|
|
228
|
-
body,
|
|
229
|
-
});
|
|
148
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
149
|
+
return b.build();
|
|
230
150
|
};
|
|
231
151
|
exports.se_GetArchitectureRecommendationsCommand = se_GetArchitectureRecommendationsCommand;
|
|
232
152
|
const se_GetCellCommand = async (input, context) => {
|
|
233
|
-
const
|
|
153
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
234
154
|
const headers = {};
|
|
235
|
-
|
|
236
|
-
|
|
155
|
+
b.bp("/cells/{CellName}");
|
|
156
|
+
b.p("CellName", () => input.CellName, "{CellName}", false);
|
|
237
157
|
let body;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
hostname,
|
|
241
|
-
port,
|
|
242
|
-
method: "GET",
|
|
243
|
-
headers,
|
|
244
|
-
path: resolvedPath,
|
|
245
|
-
body,
|
|
246
|
-
});
|
|
158
|
+
b.m("GET").h(headers).b(body);
|
|
159
|
+
return b.build();
|
|
247
160
|
};
|
|
248
161
|
exports.se_GetCellCommand = se_GetCellCommand;
|
|
249
162
|
const se_GetCellReadinessSummaryCommand = async (input, context) => {
|
|
250
|
-
const
|
|
163
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
251
164
|
const headers = {};
|
|
252
|
-
|
|
253
|
-
|
|
165
|
+
b.bp("/cellreadiness/{CellName}");
|
|
166
|
+
b.p("CellName", () => input.CellName, "{CellName}", false);
|
|
254
167
|
const query = (0, smithy_client_1.map)({
|
|
255
|
-
|
|
256
|
-
|
|
168
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
169
|
+
[_nT]: [, input[_NT]],
|
|
257
170
|
});
|
|
258
171
|
let body;
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
hostname,
|
|
262
|
-
port,
|
|
263
|
-
method: "GET",
|
|
264
|
-
headers,
|
|
265
|
-
path: resolvedPath,
|
|
266
|
-
query,
|
|
267
|
-
body,
|
|
268
|
-
});
|
|
172
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
173
|
+
return b.build();
|
|
269
174
|
};
|
|
270
175
|
exports.se_GetCellReadinessSummaryCommand = se_GetCellReadinessSummaryCommand;
|
|
271
176
|
const se_GetReadinessCheckCommand = async (input, context) => {
|
|
272
|
-
const
|
|
177
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
273
178
|
const headers = {};
|
|
274
|
-
|
|
275
|
-
|
|
179
|
+
b.bp("/readinesschecks/{ReadinessCheckName}");
|
|
180
|
+
b.p("ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
276
181
|
let body;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
hostname,
|
|
280
|
-
port,
|
|
281
|
-
method: "GET",
|
|
282
|
-
headers,
|
|
283
|
-
path: resolvedPath,
|
|
284
|
-
body,
|
|
285
|
-
});
|
|
182
|
+
b.m("GET").h(headers).b(body);
|
|
183
|
+
return b.build();
|
|
286
184
|
};
|
|
287
185
|
exports.se_GetReadinessCheckCommand = se_GetReadinessCheckCommand;
|
|
288
186
|
const se_GetReadinessCheckResourceStatusCommand = async (input, context) => {
|
|
289
|
-
const
|
|
187
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
290
188
|
const headers = {};
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
189
|
+
b.bp("/readinesschecks/{ReadinessCheckName}/resource/{ResourceIdentifier}/status");
|
|
190
|
+
b.p("ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
191
|
+
b.p("ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
295
192
|
const query = (0, smithy_client_1.map)({
|
|
296
|
-
|
|
297
|
-
|
|
193
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
194
|
+
[_nT]: [, input[_NT]],
|
|
298
195
|
});
|
|
299
196
|
let body;
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
hostname,
|
|
303
|
-
port,
|
|
304
|
-
method: "GET",
|
|
305
|
-
headers,
|
|
306
|
-
path: resolvedPath,
|
|
307
|
-
query,
|
|
308
|
-
body,
|
|
309
|
-
});
|
|
197
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
198
|
+
return b.build();
|
|
310
199
|
};
|
|
311
200
|
exports.se_GetReadinessCheckResourceStatusCommand = se_GetReadinessCheckResourceStatusCommand;
|
|
312
201
|
const se_GetReadinessCheckStatusCommand = async (input, context) => {
|
|
313
|
-
const
|
|
202
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
314
203
|
const headers = {};
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
204
|
+
b.bp("/readinesschecks/{ReadinessCheckName}/status");
|
|
205
|
+
b.p("ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
318
206
|
const query = (0, smithy_client_1.map)({
|
|
319
|
-
|
|
320
|
-
|
|
207
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
208
|
+
[_nT]: [, input[_NT]],
|
|
321
209
|
});
|
|
322
210
|
let body;
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
hostname,
|
|
326
|
-
port,
|
|
327
|
-
method: "GET",
|
|
328
|
-
headers,
|
|
329
|
-
path: resolvedPath,
|
|
330
|
-
query,
|
|
331
|
-
body,
|
|
332
|
-
});
|
|
211
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
212
|
+
return b.build();
|
|
333
213
|
};
|
|
334
214
|
exports.se_GetReadinessCheckStatusCommand = se_GetReadinessCheckStatusCommand;
|
|
335
215
|
const se_GetRecoveryGroupCommand = async (input, context) => {
|
|
336
|
-
const
|
|
216
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
337
217
|
const headers = {};
|
|
338
|
-
|
|
339
|
-
|
|
218
|
+
b.bp("/recoverygroups/{RecoveryGroupName}");
|
|
219
|
+
b.p("RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
340
220
|
let body;
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
hostname,
|
|
344
|
-
port,
|
|
345
|
-
method: "GET",
|
|
346
|
-
headers,
|
|
347
|
-
path: resolvedPath,
|
|
348
|
-
body,
|
|
349
|
-
});
|
|
221
|
+
b.m("GET").h(headers).b(body);
|
|
222
|
+
return b.build();
|
|
350
223
|
};
|
|
351
224
|
exports.se_GetRecoveryGroupCommand = se_GetRecoveryGroupCommand;
|
|
352
225
|
const se_GetRecoveryGroupReadinessSummaryCommand = async (input, context) => {
|
|
353
|
-
const
|
|
226
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
354
227
|
const headers = {};
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
228
|
+
b.bp("/recoverygroupreadiness/{RecoveryGroupName}");
|
|
229
|
+
b.p("RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
358
230
|
const query = (0, smithy_client_1.map)({
|
|
359
|
-
|
|
360
|
-
|
|
231
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
232
|
+
[_nT]: [, input[_NT]],
|
|
361
233
|
});
|
|
362
234
|
let body;
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
hostname,
|
|
366
|
-
port,
|
|
367
|
-
method: "GET",
|
|
368
|
-
headers,
|
|
369
|
-
path: resolvedPath,
|
|
370
|
-
query,
|
|
371
|
-
body,
|
|
372
|
-
});
|
|
235
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
236
|
+
return b.build();
|
|
373
237
|
};
|
|
374
238
|
exports.se_GetRecoveryGroupReadinessSummaryCommand = se_GetRecoveryGroupReadinessSummaryCommand;
|
|
375
239
|
const se_GetResourceSetCommand = async (input, context) => {
|
|
376
|
-
const
|
|
240
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
377
241
|
const headers = {};
|
|
378
|
-
|
|
379
|
-
|
|
242
|
+
b.bp("/resourcesets/{ResourceSetName}");
|
|
243
|
+
b.p("ResourceSetName", () => input.ResourceSetName, "{ResourceSetName}", false);
|
|
380
244
|
let body;
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
hostname,
|
|
384
|
-
port,
|
|
385
|
-
method: "GET",
|
|
386
|
-
headers,
|
|
387
|
-
path: resolvedPath,
|
|
388
|
-
body,
|
|
389
|
-
});
|
|
245
|
+
b.m("GET").h(headers).b(body);
|
|
246
|
+
return b.build();
|
|
390
247
|
};
|
|
391
248
|
exports.se_GetResourceSetCommand = se_GetResourceSetCommand;
|
|
392
249
|
const se_ListCellsCommand = async (input, context) => {
|
|
393
|
-
const
|
|
250
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
394
251
|
const headers = {};
|
|
395
|
-
|
|
252
|
+
b.bp("/cells");
|
|
396
253
|
const query = (0, smithy_client_1.map)({
|
|
397
|
-
|
|
398
|
-
|
|
254
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
255
|
+
[_nT]: [, input[_NT]],
|
|
399
256
|
});
|
|
400
257
|
let body;
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
hostname,
|
|
404
|
-
port,
|
|
405
|
-
method: "GET",
|
|
406
|
-
headers,
|
|
407
|
-
path: resolvedPath,
|
|
408
|
-
query,
|
|
409
|
-
body,
|
|
410
|
-
});
|
|
258
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
259
|
+
return b.build();
|
|
411
260
|
};
|
|
412
261
|
exports.se_ListCellsCommand = se_ListCellsCommand;
|
|
413
262
|
const se_ListCrossAccountAuthorizationsCommand = async (input, context) => {
|
|
414
|
-
const
|
|
263
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
415
264
|
const headers = {};
|
|
416
|
-
|
|
265
|
+
b.bp("/crossaccountauthorizations");
|
|
417
266
|
const query = (0, smithy_client_1.map)({
|
|
418
|
-
|
|
419
|
-
|
|
267
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
268
|
+
[_nT]: [, input[_NT]],
|
|
420
269
|
});
|
|
421
270
|
let body;
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
hostname,
|
|
425
|
-
port,
|
|
426
|
-
method: "GET",
|
|
427
|
-
headers,
|
|
428
|
-
path: resolvedPath,
|
|
429
|
-
query,
|
|
430
|
-
body,
|
|
431
|
-
});
|
|
271
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
272
|
+
return b.build();
|
|
432
273
|
};
|
|
433
274
|
exports.se_ListCrossAccountAuthorizationsCommand = se_ListCrossAccountAuthorizationsCommand;
|
|
434
275
|
const se_ListReadinessChecksCommand = async (input, context) => {
|
|
435
|
-
const
|
|
276
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
436
277
|
const headers = {};
|
|
437
|
-
|
|
278
|
+
b.bp("/readinesschecks");
|
|
438
279
|
const query = (0, smithy_client_1.map)({
|
|
439
|
-
|
|
440
|
-
|
|
280
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
281
|
+
[_nT]: [, input[_NT]],
|
|
441
282
|
});
|
|
442
283
|
let body;
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
hostname,
|
|
446
|
-
port,
|
|
447
|
-
method: "GET",
|
|
448
|
-
headers,
|
|
449
|
-
path: resolvedPath,
|
|
450
|
-
query,
|
|
451
|
-
body,
|
|
452
|
-
});
|
|
284
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
285
|
+
return b.build();
|
|
453
286
|
};
|
|
454
287
|
exports.se_ListReadinessChecksCommand = se_ListReadinessChecksCommand;
|
|
455
288
|
const se_ListRecoveryGroupsCommand = async (input, context) => {
|
|
456
|
-
const
|
|
289
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
457
290
|
const headers = {};
|
|
458
|
-
|
|
291
|
+
b.bp("/recoverygroups");
|
|
459
292
|
const query = (0, smithy_client_1.map)({
|
|
460
|
-
|
|
461
|
-
|
|
293
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
294
|
+
[_nT]: [, input[_NT]],
|
|
462
295
|
});
|
|
463
296
|
let body;
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
hostname,
|
|
467
|
-
port,
|
|
468
|
-
method: "GET",
|
|
469
|
-
headers,
|
|
470
|
-
path: resolvedPath,
|
|
471
|
-
query,
|
|
472
|
-
body,
|
|
473
|
-
});
|
|
297
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
298
|
+
return b.build();
|
|
474
299
|
};
|
|
475
300
|
exports.se_ListRecoveryGroupsCommand = se_ListRecoveryGroupsCommand;
|
|
476
301
|
const se_ListResourceSetsCommand = async (input, context) => {
|
|
477
|
-
const
|
|
302
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
478
303
|
const headers = {};
|
|
479
|
-
|
|
304
|
+
b.bp("/resourcesets");
|
|
480
305
|
const query = (0, smithy_client_1.map)({
|
|
481
|
-
|
|
482
|
-
|
|
306
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
307
|
+
[_nT]: [, input[_NT]],
|
|
483
308
|
});
|
|
484
309
|
let body;
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
hostname,
|
|
488
|
-
port,
|
|
489
|
-
method: "GET",
|
|
490
|
-
headers,
|
|
491
|
-
path: resolvedPath,
|
|
492
|
-
query,
|
|
493
|
-
body,
|
|
494
|
-
});
|
|
310
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
311
|
+
return b.build();
|
|
495
312
|
};
|
|
496
313
|
exports.se_ListResourceSetsCommand = se_ListResourceSetsCommand;
|
|
497
314
|
const se_ListRulesCommand = async (input, context) => {
|
|
498
|
-
const
|
|
315
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
499
316
|
const headers = {};
|
|
500
|
-
|
|
317
|
+
b.bp("/rules");
|
|
501
318
|
const query = (0, smithy_client_1.map)({
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
319
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
320
|
+
[_nT]: [, input[_NT]],
|
|
321
|
+
[_rT]: [, input[_RT]],
|
|
505
322
|
});
|
|
506
323
|
let body;
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
hostname,
|
|
510
|
-
port,
|
|
511
|
-
method: "GET",
|
|
512
|
-
headers,
|
|
513
|
-
path: resolvedPath,
|
|
514
|
-
query,
|
|
515
|
-
body,
|
|
516
|
-
});
|
|
324
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
325
|
+
return b.build();
|
|
517
326
|
};
|
|
518
327
|
exports.se_ListRulesCommand = se_ListRulesCommand;
|
|
519
328
|
const se_ListTagsForResourcesCommand = async (input, context) => {
|
|
520
|
-
const
|
|
329
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
521
330
|
const headers = {};
|
|
522
|
-
|
|
523
|
-
|
|
331
|
+
b.bp("/tags/{ResourceArn}");
|
|
332
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
524
333
|
let body;
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
hostname,
|
|
528
|
-
port,
|
|
529
|
-
method: "GET",
|
|
530
|
-
headers,
|
|
531
|
-
path: resolvedPath,
|
|
532
|
-
body,
|
|
533
|
-
});
|
|
334
|
+
b.m("GET").h(headers).b(body);
|
|
335
|
+
return b.build();
|
|
534
336
|
};
|
|
535
337
|
exports.se_ListTagsForResourcesCommand = se_ListTagsForResourcesCommand;
|
|
536
338
|
const se_TagResourceCommand = async (input, context) => {
|
|
537
|
-
const
|
|
339
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
538
340
|
const headers = {
|
|
539
341
|
"content-type": "application/json",
|
|
540
342
|
};
|
|
541
|
-
|
|
542
|
-
|
|
343
|
+
b.bp("/tags/{ResourceArn}");
|
|
344
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
543
345
|
let body;
|
|
544
346
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
545
347
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
546
348
|
}));
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
hostname,
|
|
550
|
-
port,
|
|
551
|
-
method: "POST",
|
|
552
|
-
headers,
|
|
553
|
-
path: resolvedPath,
|
|
554
|
-
body,
|
|
555
|
-
});
|
|
349
|
+
b.m("POST").h(headers).b(body);
|
|
350
|
+
return b.build();
|
|
556
351
|
};
|
|
557
352
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
558
353
|
const se_UntagResourceCommand = async (input, context) => {
|
|
559
|
-
const
|
|
354
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
560
355
|
const headers = {};
|
|
561
|
-
|
|
562
|
-
|
|
356
|
+
b.bp("/tags/{ResourceArn}");
|
|
357
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
563
358
|
const query = (0, smithy_client_1.map)({
|
|
564
|
-
|
|
359
|
+
[_tK]: [
|
|
565
360
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
566
|
-
() => (input
|
|
361
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
567
362
|
],
|
|
568
363
|
});
|
|
569
364
|
let body;
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
hostname,
|
|
573
|
-
port,
|
|
574
|
-
method: "DELETE",
|
|
575
|
-
headers,
|
|
576
|
-
path: resolvedPath,
|
|
577
|
-
query,
|
|
578
|
-
body,
|
|
579
|
-
});
|
|
365
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
366
|
+
return b.build();
|
|
580
367
|
};
|
|
581
368
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
582
369
|
const se_UpdateCellCommand = async (input, context) => {
|
|
583
|
-
const
|
|
370
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
584
371
|
const headers = {
|
|
585
372
|
"content-type": "application/json",
|
|
586
373
|
};
|
|
587
|
-
|
|
588
|
-
|
|
374
|
+
b.bp("/cells/{CellName}");
|
|
375
|
+
b.p("CellName", () => input.CellName, "{CellName}", false);
|
|
589
376
|
let body;
|
|
590
377
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
591
378
|
cells: [, (_) => (0, smithy_client_1._json)(_), `Cells`],
|
|
592
379
|
}));
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
hostname,
|
|
596
|
-
port,
|
|
597
|
-
method: "PUT",
|
|
598
|
-
headers,
|
|
599
|
-
path: resolvedPath,
|
|
600
|
-
body,
|
|
601
|
-
});
|
|
380
|
+
b.m("PUT").h(headers).b(body);
|
|
381
|
+
return b.build();
|
|
602
382
|
};
|
|
603
383
|
exports.se_UpdateCellCommand = se_UpdateCellCommand;
|
|
604
384
|
const se_UpdateReadinessCheckCommand = async (input, context) => {
|
|
605
|
-
const
|
|
385
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
606
386
|
const headers = {
|
|
607
387
|
"content-type": "application/json",
|
|
608
388
|
};
|
|
609
|
-
|
|
610
|
-
|
|
389
|
+
b.bp("/readinesschecks/{ReadinessCheckName}");
|
|
390
|
+
b.p("ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
611
391
|
let body;
|
|
612
392
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
613
393
|
resourceSetName: [, , `ResourceSetName`],
|
|
614
394
|
}));
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
hostname,
|
|
618
|
-
port,
|
|
619
|
-
method: "PUT",
|
|
620
|
-
headers,
|
|
621
|
-
path: resolvedPath,
|
|
622
|
-
body,
|
|
623
|
-
});
|
|
395
|
+
b.m("PUT").h(headers).b(body);
|
|
396
|
+
return b.build();
|
|
624
397
|
};
|
|
625
398
|
exports.se_UpdateReadinessCheckCommand = se_UpdateReadinessCheckCommand;
|
|
626
399
|
const se_UpdateRecoveryGroupCommand = async (input, context) => {
|
|
627
|
-
const
|
|
400
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
628
401
|
const headers = {
|
|
629
402
|
"content-type": "application/json",
|
|
630
403
|
};
|
|
631
|
-
|
|
632
|
-
|
|
404
|
+
b.bp("/recoverygroups/{RecoveryGroupName}");
|
|
405
|
+
b.p("RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
633
406
|
let body;
|
|
634
407
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
635
408
|
cells: [, (_) => (0, smithy_client_1._json)(_), `Cells`],
|
|
636
409
|
}));
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
hostname,
|
|
640
|
-
port,
|
|
641
|
-
method: "PUT",
|
|
642
|
-
headers,
|
|
643
|
-
path: resolvedPath,
|
|
644
|
-
body,
|
|
645
|
-
});
|
|
410
|
+
b.m("PUT").h(headers).b(body);
|
|
411
|
+
return b.build();
|
|
646
412
|
};
|
|
647
413
|
exports.se_UpdateRecoveryGroupCommand = se_UpdateRecoveryGroupCommand;
|
|
648
414
|
const se_UpdateResourceSetCommand = async (input, context) => {
|
|
649
|
-
const
|
|
415
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
650
416
|
const headers = {
|
|
651
417
|
"content-type": "application/json",
|
|
652
418
|
};
|
|
653
|
-
|
|
654
|
-
|
|
419
|
+
b.bp("/resourcesets/{ResourceSetName}");
|
|
420
|
+
b.p("ResourceSetName", () => input.ResourceSetName, "{ResourceSetName}", false);
|
|
655
421
|
let body;
|
|
656
422
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
657
423
|
resourceSetType: [, , `ResourceSetType`],
|
|
658
424
|
resources: [, (_) => se___listOfResource(_, context), `Resources`],
|
|
659
425
|
}));
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
hostname,
|
|
663
|
-
port,
|
|
664
|
-
method: "PUT",
|
|
665
|
-
headers,
|
|
666
|
-
path: resolvedPath,
|
|
667
|
-
body,
|
|
668
|
-
});
|
|
426
|
+
b.m("PUT").h(headers).b(body);
|
|
427
|
+
return b.build();
|
|
669
428
|
};
|
|
670
429
|
exports.se_UpdateResourceSetCommand = se_UpdateResourceSetCommand;
|
|
671
430
|
const de_CreateCellCommand = async (output, context) => {
|
|
@@ -2459,6 +2218,14 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
2459
2218
|
value !== "" &&
|
|
2460
2219
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2461
2220
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2221
|
+
const _MR = "MaxResults";
|
|
2222
|
+
const _NT = "NextToken";
|
|
2223
|
+
const _RT = "ResourceType";
|
|
2224
|
+
const _TK = "TagKeys";
|
|
2225
|
+
const _mR = "maxResults";
|
|
2226
|
+
const _nT = "nextToken";
|
|
2227
|
+
const _rT = "resourceType";
|
|
2228
|
+
const _tK = "tagKeys";
|
|
2462
2229
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2463
2230
|
if (encoded.length) {
|
|
2464
2231
|
return JSON.parse(encoded);
|