@aws-sdk/client-route53-recovery-readiness 3.489.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Route53RecoveryReadiness.js +1 -75
- package/dist-cjs/Route53RecoveryReadinessClient.js +1 -43
- package/dist-cjs/commands/CreateCellCommand.js +1 -28
- package/dist-cjs/commands/CreateCrossAccountAuthorizationCommand.js +1 -28
- package/dist-cjs/commands/CreateReadinessCheckCommand.js +1 -28
- package/dist-cjs/commands/CreateRecoveryGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateResourceSetCommand.js +1 -28
- package/dist-cjs/commands/DeleteCellCommand.js +1 -28
- package/dist-cjs/commands/DeleteCrossAccountAuthorizationCommand.js +1 -28
- package/dist-cjs/commands/DeleteReadinessCheckCommand.js +1 -28
- package/dist-cjs/commands/DeleteRecoveryGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteResourceSetCommand.js +1 -28
- package/dist-cjs/commands/GetArchitectureRecommendationsCommand.js +1 -28
- package/dist-cjs/commands/GetCellCommand.js +1 -28
- package/dist-cjs/commands/GetCellReadinessSummaryCommand.js +1 -28
- package/dist-cjs/commands/GetReadinessCheckCommand.js +1 -28
- package/dist-cjs/commands/GetReadinessCheckResourceStatusCommand.js +1 -28
- package/dist-cjs/commands/GetReadinessCheckStatusCommand.js +1 -28
- package/dist-cjs/commands/GetRecoveryGroupCommand.js +1 -28
- package/dist-cjs/commands/GetRecoveryGroupReadinessSummaryCommand.js +1 -28
- package/dist-cjs/commands/GetResourceSetCommand.js +1 -28
- package/dist-cjs/commands/ListCellsCommand.js +1 -28
- package/dist-cjs/commands/ListCrossAccountAuthorizationsCommand.js +1 -28
- package/dist-cjs/commands/ListReadinessChecksCommand.js +1 -28
- package/dist-cjs/commands/ListRecoveryGroupsCommand.js +1 -28
- package/dist-cjs/commands/ListResourceSetsCommand.js +1 -28
- package/dist-cjs/commands/ListRulesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourcesCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateCellCommand.js +1 -28
- package/dist-cjs/commands/UpdateReadinessCheckCommand.js +1 -28
- package/dist-cjs/commands/UpdateRecoveryGroupCommand.js +1 -28
- package/dist-cjs/commands/UpdateResourceSetCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -35
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3174 -11
- package/dist-cjs/models/Route53RecoveryReadinessServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -94
- package/dist-cjs/pagination/GetCellReadinessSummaryPaginator.js +1 -7
- package/dist-cjs/pagination/GetReadinessCheckResourceStatusPaginator.js +1 -7
- package/dist-cjs/pagination/GetReadinessCheckStatusPaginator.js +1 -7
- package/dist-cjs/pagination/GetRecoveryGroupReadinessSummaryPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListCellsPaginator.js +1 -7
- package/dist-cjs/pagination/ListCrossAccountAuthorizationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListReadinessChecksPaginator.js +1 -7
- package/dist-cjs/pagination/ListRecoveryGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/ListResourceSetsPaginator.js +1 -7
- package/dist-cjs/pagination/ListRulesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -14
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2268
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2268 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
-
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 core_1 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const Route53RecoveryReadinessServiceException_1 = require("../models/Route53RecoveryReadinessServiceException");
|
|
9
|
-
const se_CreateCellCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
-
const headers = {
|
|
12
|
-
"content-type": "application/json",
|
|
13
|
-
};
|
|
14
|
-
b.bp("/cells");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
-
cellName: [, , `CellName`],
|
|
18
|
-
cells: [, (_) => (0, smithy_client_1._json)(_), `Cells`],
|
|
19
|
-
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
20
|
-
}));
|
|
21
|
-
b.m("POST").h(headers).b(body);
|
|
22
|
-
return b.build();
|
|
23
|
-
};
|
|
24
|
-
exports.se_CreateCellCommand = se_CreateCellCommand;
|
|
25
|
-
const se_CreateCrossAccountAuthorizationCommand = async (input, context) => {
|
|
26
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
27
|
-
const headers = {
|
|
28
|
-
"content-type": "application/json",
|
|
29
|
-
};
|
|
30
|
-
b.bp("/crossaccountauthorizations");
|
|
31
|
-
let body;
|
|
32
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
33
|
-
crossAccountAuthorization: [, , `CrossAccountAuthorization`],
|
|
34
|
-
}));
|
|
35
|
-
b.m("POST").h(headers).b(body);
|
|
36
|
-
return b.build();
|
|
37
|
-
};
|
|
38
|
-
exports.se_CreateCrossAccountAuthorizationCommand = se_CreateCrossAccountAuthorizationCommand;
|
|
39
|
-
const se_CreateReadinessCheckCommand = async (input, context) => {
|
|
40
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
41
|
-
const headers = {
|
|
42
|
-
"content-type": "application/json",
|
|
43
|
-
};
|
|
44
|
-
b.bp("/readinesschecks");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
47
|
-
readinessCheckName: [, , `ReadinessCheckName`],
|
|
48
|
-
resourceSetName: [, , `ResourceSetName`],
|
|
49
|
-
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
50
|
-
}));
|
|
51
|
-
b.m("POST").h(headers).b(body);
|
|
52
|
-
return b.build();
|
|
53
|
-
};
|
|
54
|
-
exports.se_CreateReadinessCheckCommand = se_CreateReadinessCheckCommand;
|
|
55
|
-
const se_CreateRecoveryGroupCommand = async (input, context) => {
|
|
56
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
57
|
-
const headers = {
|
|
58
|
-
"content-type": "application/json",
|
|
59
|
-
};
|
|
60
|
-
b.bp("/recoverygroups");
|
|
61
|
-
let body;
|
|
62
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
63
|
-
cells: [, (_) => (0, smithy_client_1._json)(_), `Cells`],
|
|
64
|
-
recoveryGroupName: [, , `RecoveryGroupName`],
|
|
65
|
-
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
66
|
-
}));
|
|
67
|
-
b.m("POST").h(headers).b(body);
|
|
68
|
-
return b.build();
|
|
69
|
-
};
|
|
70
|
-
exports.se_CreateRecoveryGroupCommand = se_CreateRecoveryGroupCommand;
|
|
71
|
-
const se_CreateResourceSetCommand = async (input, context) => {
|
|
72
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
73
|
-
const headers = {
|
|
74
|
-
"content-type": "application/json",
|
|
75
|
-
};
|
|
76
|
-
b.bp("/resourcesets");
|
|
77
|
-
let body;
|
|
78
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
79
|
-
resourceSetName: [, , `ResourceSetName`],
|
|
80
|
-
resourceSetType: [, , `ResourceSetType`],
|
|
81
|
-
resources: [, (_) => se___listOfResource(_, context), `Resources`],
|
|
82
|
-
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
83
|
-
}));
|
|
84
|
-
b.m("POST").h(headers).b(body);
|
|
85
|
-
return b.build();
|
|
86
|
-
};
|
|
87
|
-
exports.se_CreateResourceSetCommand = se_CreateResourceSetCommand;
|
|
88
|
-
const se_DeleteCellCommand = async (input, context) => {
|
|
89
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
90
|
-
const headers = {};
|
|
91
|
-
b.bp("/cells/{CellName}");
|
|
92
|
-
b.p("CellName", () => input.CellName, "{CellName}", false);
|
|
93
|
-
let body;
|
|
94
|
-
b.m("DELETE").h(headers).b(body);
|
|
95
|
-
return b.build();
|
|
96
|
-
};
|
|
97
|
-
exports.se_DeleteCellCommand = se_DeleteCellCommand;
|
|
98
|
-
const se_DeleteCrossAccountAuthorizationCommand = async (input, context) => {
|
|
99
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
100
|
-
const headers = {};
|
|
101
|
-
b.bp("/crossaccountauthorizations/{CrossAccountAuthorization}");
|
|
102
|
-
b.p("CrossAccountAuthorization", () => input.CrossAccountAuthorization, "{CrossAccountAuthorization}", false);
|
|
103
|
-
let body;
|
|
104
|
-
b.m("DELETE").h(headers).b(body);
|
|
105
|
-
return b.build();
|
|
106
|
-
};
|
|
107
|
-
exports.se_DeleteCrossAccountAuthorizationCommand = se_DeleteCrossAccountAuthorizationCommand;
|
|
108
|
-
const se_DeleteReadinessCheckCommand = async (input, context) => {
|
|
109
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
110
|
-
const headers = {};
|
|
111
|
-
b.bp("/readinesschecks/{ReadinessCheckName}");
|
|
112
|
-
b.p("ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
113
|
-
let body;
|
|
114
|
-
b.m("DELETE").h(headers).b(body);
|
|
115
|
-
return b.build();
|
|
116
|
-
};
|
|
117
|
-
exports.se_DeleteReadinessCheckCommand = se_DeleteReadinessCheckCommand;
|
|
118
|
-
const se_DeleteRecoveryGroupCommand = async (input, context) => {
|
|
119
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
120
|
-
const headers = {};
|
|
121
|
-
b.bp("/recoverygroups/{RecoveryGroupName}");
|
|
122
|
-
b.p("RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
123
|
-
let body;
|
|
124
|
-
b.m("DELETE").h(headers).b(body);
|
|
125
|
-
return b.build();
|
|
126
|
-
};
|
|
127
|
-
exports.se_DeleteRecoveryGroupCommand = se_DeleteRecoveryGroupCommand;
|
|
128
|
-
const se_DeleteResourceSetCommand = async (input, context) => {
|
|
129
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
130
|
-
const headers = {};
|
|
131
|
-
b.bp("/resourcesets/{ResourceSetName}");
|
|
132
|
-
b.p("ResourceSetName", () => input.ResourceSetName, "{ResourceSetName}", false);
|
|
133
|
-
let body;
|
|
134
|
-
b.m("DELETE").h(headers).b(body);
|
|
135
|
-
return b.build();
|
|
136
|
-
};
|
|
137
|
-
exports.se_DeleteResourceSetCommand = se_DeleteResourceSetCommand;
|
|
138
|
-
const se_GetArchitectureRecommendationsCommand = async (input, context) => {
|
|
139
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
140
|
-
const headers = {};
|
|
141
|
-
b.bp("/recoverygroups/{RecoveryGroupName}/architectureRecommendations");
|
|
142
|
-
b.p("RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
143
|
-
const query = (0, smithy_client_1.map)({
|
|
144
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
145
|
-
[_nT]: [, input[_NT]],
|
|
146
|
-
});
|
|
147
|
-
let body;
|
|
148
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
149
|
-
return b.build();
|
|
150
|
-
};
|
|
151
|
-
exports.se_GetArchitectureRecommendationsCommand = se_GetArchitectureRecommendationsCommand;
|
|
152
|
-
const se_GetCellCommand = async (input, context) => {
|
|
153
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
154
|
-
const headers = {};
|
|
155
|
-
b.bp("/cells/{CellName}");
|
|
156
|
-
b.p("CellName", () => input.CellName, "{CellName}", false);
|
|
157
|
-
let body;
|
|
158
|
-
b.m("GET").h(headers).b(body);
|
|
159
|
-
return b.build();
|
|
160
|
-
};
|
|
161
|
-
exports.se_GetCellCommand = se_GetCellCommand;
|
|
162
|
-
const se_GetCellReadinessSummaryCommand = async (input, context) => {
|
|
163
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
164
|
-
const headers = {};
|
|
165
|
-
b.bp("/cellreadiness/{CellName}");
|
|
166
|
-
b.p("CellName", () => input.CellName, "{CellName}", false);
|
|
167
|
-
const query = (0, smithy_client_1.map)({
|
|
168
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
169
|
-
[_nT]: [, input[_NT]],
|
|
170
|
-
});
|
|
171
|
-
let body;
|
|
172
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
173
|
-
return b.build();
|
|
174
|
-
};
|
|
175
|
-
exports.se_GetCellReadinessSummaryCommand = se_GetCellReadinessSummaryCommand;
|
|
176
|
-
const se_GetReadinessCheckCommand = async (input, context) => {
|
|
177
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
178
|
-
const headers = {};
|
|
179
|
-
b.bp("/readinesschecks/{ReadinessCheckName}");
|
|
180
|
-
b.p("ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
181
|
-
let body;
|
|
182
|
-
b.m("GET").h(headers).b(body);
|
|
183
|
-
return b.build();
|
|
184
|
-
};
|
|
185
|
-
exports.se_GetReadinessCheckCommand = se_GetReadinessCheckCommand;
|
|
186
|
-
const se_GetReadinessCheckResourceStatusCommand = async (input, context) => {
|
|
187
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
188
|
-
const headers = {};
|
|
189
|
-
b.bp("/readinesschecks/{ReadinessCheckName}/resource/{ResourceIdentifier}/status");
|
|
190
|
-
b.p("ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
191
|
-
b.p("ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
192
|
-
const query = (0, smithy_client_1.map)({
|
|
193
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
194
|
-
[_nT]: [, input[_NT]],
|
|
195
|
-
});
|
|
196
|
-
let body;
|
|
197
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
198
|
-
return b.build();
|
|
199
|
-
};
|
|
200
|
-
exports.se_GetReadinessCheckResourceStatusCommand = se_GetReadinessCheckResourceStatusCommand;
|
|
201
|
-
const se_GetReadinessCheckStatusCommand = async (input, context) => {
|
|
202
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
203
|
-
const headers = {};
|
|
204
|
-
b.bp("/readinesschecks/{ReadinessCheckName}/status");
|
|
205
|
-
b.p("ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
206
|
-
const query = (0, smithy_client_1.map)({
|
|
207
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
208
|
-
[_nT]: [, input[_NT]],
|
|
209
|
-
});
|
|
210
|
-
let body;
|
|
211
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
212
|
-
return b.build();
|
|
213
|
-
};
|
|
214
|
-
exports.se_GetReadinessCheckStatusCommand = se_GetReadinessCheckStatusCommand;
|
|
215
|
-
const se_GetRecoveryGroupCommand = async (input, context) => {
|
|
216
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
217
|
-
const headers = {};
|
|
218
|
-
b.bp("/recoverygroups/{RecoveryGroupName}");
|
|
219
|
-
b.p("RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
220
|
-
let body;
|
|
221
|
-
b.m("GET").h(headers).b(body);
|
|
222
|
-
return b.build();
|
|
223
|
-
};
|
|
224
|
-
exports.se_GetRecoveryGroupCommand = se_GetRecoveryGroupCommand;
|
|
225
|
-
const se_GetRecoveryGroupReadinessSummaryCommand = async (input, context) => {
|
|
226
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
227
|
-
const headers = {};
|
|
228
|
-
b.bp("/recoverygroupreadiness/{RecoveryGroupName}");
|
|
229
|
-
b.p("RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
230
|
-
const query = (0, smithy_client_1.map)({
|
|
231
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
232
|
-
[_nT]: [, input[_NT]],
|
|
233
|
-
});
|
|
234
|
-
let body;
|
|
235
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
236
|
-
return b.build();
|
|
237
|
-
};
|
|
238
|
-
exports.se_GetRecoveryGroupReadinessSummaryCommand = se_GetRecoveryGroupReadinessSummaryCommand;
|
|
239
|
-
const se_GetResourceSetCommand = async (input, context) => {
|
|
240
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
241
|
-
const headers = {};
|
|
242
|
-
b.bp("/resourcesets/{ResourceSetName}");
|
|
243
|
-
b.p("ResourceSetName", () => input.ResourceSetName, "{ResourceSetName}", false);
|
|
244
|
-
let body;
|
|
245
|
-
b.m("GET").h(headers).b(body);
|
|
246
|
-
return b.build();
|
|
247
|
-
};
|
|
248
|
-
exports.se_GetResourceSetCommand = se_GetResourceSetCommand;
|
|
249
|
-
const se_ListCellsCommand = async (input, context) => {
|
|
250
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
251
|
-
const headers = {};
|
|
252
|
-
b.bp("/cells");
|
|
253
|
-
const query = (0, smithy_client_1.map)({
|
|
254
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
255
|
-
[_nT]: [, input[_NT]],
|
|
256
|
-
});
|
|
257
|
-
let body;
|
|
258
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
259
|
-
return b.build();
|
|
260
|
-
};
|
|
261
|
-
exports.se_ListCellsCommand = se_ListCellsCommand;
|
|
262
|
-
const se_ListCrossAccountAuthorizationsCommand = async (input, context) => {
|
|
263
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
264
|
-
const headers = {};
|
|
265
|
-
b.bp("/crossaccountauthorizations");
|
|
266
|
-
const query = (0, smithy_client_1.map)({
|
|
267
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
268
|
-
[_nT]: [, input[_NT]],
|
|
269
|
-
});
|
|
270
|
-
let body;
|
|
271
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
272
|
-
return b.build();
|
|
273
|
-
};
|
|
274
|
-
exports.se_ListCrossAccountAuthorizationsCommand = se_ListCrossAccountAuthorizationsCommand;
|
|
275
|
-
const se_ListReadinessChecksCommand = async (input, context) => {
|
|
276
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
277
|
-
const headers = {};
|
|
278
|
-
b.bp("/readinesschecks");
|
|
279
|
-
const query = (0, smithy_client_1.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
|
-
exports.se_ListReadinessChecksCommand = se_ListReadinessChecksCommand;
|
|
288
|
-
const se_ListRecoveryGroupsCommand = async (input, context) => {
|
|
289
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
290
|
-
const headers = {};
|
|
291
|
-
b.bp("/recoverygroups");
|
|
292
|
-
const query = (0, smithy_client_1.map)({
|
|
293
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
294
|
-
[_nT]: [, input[_NT]],
|
|
295
|
-
});
|
|
296
|
-
let body;
|
|
297
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
298
|
-
return b.build();
|
|
299
|
-
};
|
|
300
|
-
exports.se_ListRecoveryGroupsCommand = se_ListRecoveryGroupsCommand;
|
|
301
|
-
const se_ListResourceSetsCommand = async (input, context) => {
|
|
302
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
303
|
-
const headers = {};
|
|
304
|
-
b.bp("/resourcesets");
|
|
305
|
-
const query = (0, smithy_client_1.map)({
|
|
306
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
307
|
-
[_nT]: [, input[_NT]],
|
|
308
|
-
});
|
|
309
|
-
let body;
|
|
310
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
311
|
-
return b.build();
|
|
312
|
-
};
|
|
313
|
-
exports.se_ListResourceSetsCommand = se_ListResourceSetsCommand;
|
|
314
|
-
const se_ListRulesCommand = async (input, context) => {
|
|
315
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
316
|
-
const headers = {};
|
|
317
|
-
b.bp("/rules");
|
|
318
|
-
const query = (0, smithy_client_1.map)({
|
|
319
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
320
|
-
[_nT]: [, input[_NT]],
|
|
321
|
-
[_rT]: [, input[_RT]],
|
|
322
|
-
});
|
|
323
|
-
let body;
|
|
324
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
325
|
-
return b.build();
|
|
326
|
-
};
|
|
327
|
-
exports.se_ListRulesCommand = se_ListRulesCommand;
|
|
328
|
-
const se_ListTagsForResourcesCommand = async (input, context) => {
|
|
329
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
330
|
-
const headers = {};
|
|
331
|
-
b.bp("/tags/{ResourceArn}");
|
|
332
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
333
|
-
let body;
|
|
334
|
-
b.m("GET").h(headers).b(body);
|
|
335
|
-
return b.build();
|
|
336
|
-
};
|
|
337
|
-
exports.se_ListTagsForResourcesCommand = se_ListTagsForResourcesCommand;
|
|
338
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
339
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
340
|
-
const headers = {
|
|
341
|
-
"content-type": "application/json",
|
|
342
|
-
};
|
|
343
|
-
b.bp("/tags/{ResourceArn}");
|
|
344
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
345
|
-
let body;
|
|
346
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
347
|
-
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
348
|
-
}));
|
|
349
|
-
b.m("POST").h(headers).b(body);
|
|
350
|
-
return b.build();
|
|
351
|
-
};
|
|
352
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
353
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
354
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
355
|
-
const headers = {};
|
|
356
|
-
b.bp("/tags/{ResourceArn}");
|
|
357
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
358
|
-
const query = (0, smithy_client_1.map)({
|
|
359
|
-
[_tK]: [
|
|
360
|
-
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
361
|
-
() => (input[_TK] || []).map((_entry) => _entry),
|
|
362
|
-
],
|
|
363
|
-
});
|
|
364
|
-
let body;
|
|
365
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
366
|
-
return b.build();
|
|
367
|
-
};
|
|
368
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
369
|
-
const se_UpdateCellCommand = async (input, context) => {
|
|
370
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
371
|
-
const headers = {
|
|
372
|
-
"content-type": "application/json",
|
|
373
|
-
};
|
|
374
|
-
b.bp("/cells/{CellName}");
|
|
375
|
-
b.p("CellName", () => input.CellName, "{CellName}", false);
|
|
376
|
-
let body;
|
|
377
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
378
|
-
cells: [, (_) => (0, smithy_client_1._json)(_), `Cells`],
|
|
379
|
-
}));
|
|
380
|
-
b.m("PUT").h(headers).b(body);
|
|
381
|
-
return b.build();
|
|
382
|
-
};
|
|
383
|
-
exports.se_UpdateCellCommand = se_UpdateCellCommand;
|
|
384
|
-
const se_UpdateReadinessCheckCommand = async (input, context) => {
|
|
385
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
386
|
-
const headers = {
|
|
387
|
-
"content-type": "application/json",
|
|
388
|
-
};
|
|
389
|
-
b.bp("/readinesschecks/{ReadinessCheckName}");
|
|
390
|
-
b.p("ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
391
|
-
let body;
|
|
392
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
393
|
-
resourceSetName: [, , `ResourceSetName`],
|
|
394
|
-
}));
|
|
395
|
-
b.m("PUT").h(headers).b(body);
|
|
396
|
-
return b.build();
|
|
397
|
-
};
|
|
398
|
-
exports.se_UpdateReadinessCheckCommand = se_UpdateReadinessCheckCommand;
|
|
399
|
-
const se_UpdateRecoveryGroupCommand = async (input, context) => {
|
|
400
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
401
|
-
const headers = {
|
|
402
|
-
"content-type": "application/json",
|
|
403
|
-
};
|
|
404
|
-
b.bp("/recoverygroups/{RecoveryGroupName}");
|
|
405
|
-
b.p("RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
406
|
-
let body;
|
|
407
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
408
|
-
cells: [, (_) => (0, smithy_client_1._json)(_), `Cells`],
|
|
409
|
-
}));
|
|
410
|
-
b.m("PUT").h(headers).b(body);
|
|
411
|
-
return b.build();
|
|
412
|
-
};
|
|
413
|
-
exports.se_UpdateRecoveryGroupCommand = se_UpdateRecoveryGroupCommand;
|
|
414
|
-
const se_UpdateResourceSetCommand = async (input, context) => {
|
|
415
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
416
|
-
const headers = {
|
|
417
|
-
"content-type": "application/json",
|
|
418
|
-
};
|
|
419
|
-
b.bp("/resourcesets/{ResourceSetName}");
|
|
420
|
-
b.p("ResourceSetName", () => input.ResourceSetName, "{ResourceSetName}", false);
|
|
421
|
-
let body;
|
|
422
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
423
|
-
resourceSetType: [, , `ResourceSetType`],
|
|
424
|
-
resources: [, (_) => se___listOfResource(_, context), `Resources`],
|
|
425
|
-
}));
|
|
426
|
-
b.m("PUT").h(headers).b(body);
|
|
427
|
-
return b.build();
|
|
428
|
-
};
|
|
429
|
-
exports.se_UpdateResourceSetCommand = se_UpdateResourceSetCommand;
|
|
430
|
-
const de_CreateCellCommand = async (output, context) => {
|
|
431
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
432
|
-
return de_CreateCellCommandError(output, context);
|
|
433
|
-
}
|
|
434
|
-
const contents = (0, smithy_client_1.map)({
|
|
435
|
-
$metadata: deserializeMetadata(output),
|
|
436
|
-
});
|
|
437
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
438
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
439
|
-
CellArn: [, smithy_client_1.expectString, `cellArn`],
|
|
440
|
-
CellName: [, smithy_client_1.expectString, `cellName`],
|
|
441
|
-
Cells: [, smithy_client_1._json, `cells`],
|
|
442
|
-
ParentReadinessScopes: [, smithy_client_1._json, `parentReadinessScopes`],
|
|
443
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
444
|
-
});
|
|
445
|
-
Object.assign(contents, doc);
|
|
446
|
-
return contents;
|
|
447
|
-
};
|
|
448
|
-
exports.de_CreateCellCommand = de_CreateCellCommand;
|
|
449
|
-
const de_CreateCellCommandError = async (output, context) => {
|
|
450
|
-
const parsedOutput = {
|
|
451
|
-
...output,
|
|
452
|
-
body: await parseErrorBody(output.body, context),
|
|
453
|
-
};
|
|
454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
455
|
-
switch (errorCode) {
|
|
456
|
-
case "AccessDeniedException":
|
|
457
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
458
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
459
|
-
case "ConflictException":
|
|
460
|
-
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
461
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
462
|
-
case "InternalServerException":
|
|
463
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
464
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
465
|
-
case "ThrottlingException":
|
|
466
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
467
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
468
|
-
case "ValidationException":
|
|
469
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
470
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
471
|
-
default:
|
|
472
|
-
const parsedBody = parsedOutput.body;
|
|
473
|
-
return throwDefaultError({
|
|
474
|
-
output,
|
|
475
|
-
parsedBody,
|
|
476
|
-
errorCode,
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
};
|
|
480
|
-
const de_CreateCrossAccountAuthorizationCommand = async (output, context) => {
|
|
481
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
482
|
-
return de_CreateCrossAccountAuthorizationCommandError(output, context);
|
|
483
|
-
}
|
|
484
|
-
const contents = (0, smithy_client_1.map)({
|
|
485
|
-
$metadata: deserializeMetadata(output),
|
|
486
|
-
});
|
|
487
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
488
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
489
|
-
CrossAccountAuthorization: [, smithy_client_1.expectString, `crossAccountAuthorization`],
|
|
490
|
-
});
|
|
491
|
-
Object.assign(contents, doc);
|
|
492
|
-
return contents;
|
|
493
|
-
};
|
|
494
|
-
exports.de_CreateCrossAccountAuthorizationCommand = de_CreateCrossAccountAuthorizationCommand;
|
|
495
|
-
const de_CreateCrossAccountAuthorizationCommandError = async (output, context) => {
|
|
496
|
-
const parsedOutput = {
|
|
497
|
-
...output,
|
|
498
|
-
body: await parseErrorBody(output.body, context),
|
|
499
|
-
};
|
|
500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
501
|
-
switch (errorCode) {
|
|
502
|
-
case "AccessDeniedException":
|
|
503
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
504
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
505
|
-
case "ConflictException":
|
|
506
|
-
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
507
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
508
|
-
case "InternalServerException":
|
|
509
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
510
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
511
|
-
case "ThrottlingException":
|
|
512
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
513
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
514
|
-
case "ValidationException":
|
|
515
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
516
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
517
|
-
default:
|
|
518
|
-
const parsedBody = parsedOutput.body;
|
|
519
|
-
return throwDefaultError({
|
|
520
|
-
output,
|
|
521
|
-
parsedBody,
|
|
522
|
-
errorCode,
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
};
|
|
526
|
-
const de_CreateReadinessCheckCommand = async (output, context) => {
|
|
527
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
528
|
-
return de_CreateReadinessCheckCommandError(output, context);
|
|
529
|
-
}
|
|
530
|
-
const contents = (0, smithy_client_1.map)({
|
|
531
|
-
$metadata: deserializeMetadata(output),
|
|
532
|
-
});
|
|
533
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
534
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
535
|
-
ReadinessCheckArn: [, smithy_client_1.expectString, `readinessCheckArn`],
|
|
536
|
-
ReadinessCheckName: [, smithy_client_1.expectString, `readinessCheckName`],
|
|
537
|
-
ResourceSet: [, smithy_client_1.expectString, `resourceSet`],
|
|
538
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
539
|
-
});
|
|
540
|
-
Object.assign(contents, doc);
|
|
541
|
-
return contents;
|
|
542
|
-
};
|
|
543
|
-
exports.de_CreateReadinessCheckCommand = de_CreateReadinessCheckCommand;
|
|
544
|
-
const de_CreateReadinessCheckCommandError = async (output, context) => {
|
|
545
|
-
const parsedOutput = {
|
|
546
|
-
...output,
|
|
547
|
-
body: await parseErrorBody(output.body, context),
|
|
548
|
-
};
|
|
549
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
550
|
-
switch (errorCode) {
|
|
551
|
-
case "AccessDeniedException":
|
|
552
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
553
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
554
|
-
case "ConflictException":
|
|
555
|
-
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
556
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
557
|
-
case "InternalServerException":
|
|
558
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
559
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
560
|
-
case "ThrottlingException":
|
|
561
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
562
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
563
|
-
case "ValidationException":
|
|
564
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
565
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
566
|
-
default:
|
|
567
|
-
const parsedBody = parsedOutput.body;
|
|
568
|
-
return throwDefaultError({
|
|
569
|
-
output,
|
|
570
|
-
parsedBody,
|
|
571
|
-
errorCode,
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
|
-
const de_CreateRecoveryGroupCommand = async (output, context) => {
|
|
576
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
577
|
-
return de_CreateRecoveryGroupCommandError(output, context);
|
|
578
|
-
}
|
|
579
|
-
const contents = (0, smithy_client_1.map)({
|
|
580
|
-
$metadata: deserializeMetadata(output),
|
|
581
|
-
});
|
|
582
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
583
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
584
|
-
Cells: [, smithy_client_1._json, `cells`],
|
|
585
|
-
RecoveryGroupArn: [, smithy_client_1.expectString, `recoveryGroupArn`],
|
|
586
|
-
RecoveryGroupName: [, smithy_client_1.expectString, `recoveryGroupName`],
|
|
587
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
588
|
-
});
|
|
589
|
-
Object.assign(contents, doc);
|
|
590
|
-
return contents;
|
|
591
|
-
};
|
|
592
|
-
exports.de_CreateRecoveryGroupCommand = de_CreateRecoveryGroupCommand;
|
|
593
|
-
const de_CreateRecoveryGroupCommandError = async (output, context) => {
|
|
594
|
-
const parsedOutput = {
|
|
595
|
-
...output,
|
|
596
|
-
body: await parseErrorBody(output.body, context),
|
|
597
|
-
};
|
|
598
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
599
|
-
switch (errorCode) {
|
|
600
|
-
case "AccessDeniedException":
|
|
601
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
602
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
603
|
-
case "ConflictException":
|
|
604
|
-
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
605
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
606
|
-
case "InternalServerException":
|
|
607
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
608
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
609
|
-
case "ThrottlingException":
|
|
610
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
611
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
612
|
-
case "ValidationException":
|
|
613
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
614
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
615
|
-
default:
|
|
616
|
-
const parsedBody = parsedOutput.body;
|
|
617
|
-
return throwDefaultError({
|
|
618
|
-
output,
|
|
619
|
-
parsedBody,
|
|
620
|
-
errorCode,
|
|
621
|
-
});
|
|
622
|
-
}
|
|
623
|
-
};
|
|
624
|
-
const de_CreateResourceSetCommand = async (output, context) => {
|
|
625
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
626
|
-
return de_CreateResourceSetCommandError(output, context);
|
|
627
|
-
}
|
|
628
|
-
const contents = (0, smithy_client_1.map)({
|
|
629
|
-
$metadata: deserializeMetadata(output),
|
|
630
|
-
});
|
|
631
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
632
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
633
|
-
ResourceSetArn: [, smithy_client_1.expectString, `resourceSetArn`],
|
|
634
|
-
ResourceSetName: [, smithy_client_1.expectString, `resourceSetName`],
|
|
635
|
-
ResourceSetType: [, smithy_client_1.expectString, `resourceSetType`],
|
|
636
|
-
Resources: [, (_) => de___listOfResource(_, context), `resources`],
|
|
637
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
638
|
-
});
|
|
639
|
-
Object.assign(contents, doc);
|
|
640
|
-
return contents;
|
|
641
|
-
};
|
|
642
|
-
exports.de_CreateResourceSetCommand = de_CreateResourceSetCommand;
|
|
643
|
-
const de_CreateResourceSetCommandError = async (output, context) => {
|
|
644
|
-
const parsedOutput = {
|
|
645
|
-
...output,
|
|
646
|
-
body: await parseErrorBody(output.body, context),
|
|
647
|
-
};
|
|
648
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
649
|
-
switch (errorCode) {
|
|
650
|
-
case "AccessDeniedException":
|
|
651
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
652
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
653
|
-
case "ConflictException":
|
|
654
|
-
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
655
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
656
|
-
case "InternalServerException":
|
|
657
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
658
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
659
|
-
case "ThrottlingException":
|
|
660
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
661
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
662
|
-
case "ValidationException":
|
|
663
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
664
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
665
|
-
default:
|
|
666
|
-
const parsedBody = parsedOutput.body;
|
|
667
|
-
return throwDefaultError({
|
|
668
|
-
output,
|
|
669
|
-
parsedBody,
|
|
670
|
-
errorCode,
|
|
671
|
-
});
|
|
672
|
-
}
|
|
673
|
-
};
|
|
674
|
-
const de_DeleteCellCommand = async (output, context) => {
|
|
675
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
676
|
-
return de_DeleteCellCommandError(output, context);
|
|
677
|
-
}
|
|
678
|
-
const contents = (0, smithy_client_1.map)({
|
|
679
|
-
$metadata: deserializeMetadata(output),
|
|
680
|
-
});
|
|
681
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
682
|
-
return contents;
|
|
683
|
-
};
|
|
684
|
-
exports.de_DeleteCellCommand = de_DeleteCellCommand;
|
|
685
|
-
const de_DeleteCellCommandError = async (output, context) => {
|
|
686
|
-
const parsedOutput = {
|
|
687
|
-
...output,
|
|
688
|
-
body: await parseErrorBody(output.body, context),
|
|
689
|
-
};
|
|
690
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
691
|
-
switch (errorCode) {
|
|
692
|
-
case "AccessDeniedException":
|
|
693
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
694
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
695
|
-
case "InternalServerException":
|
|
696
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
697
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
698
|
-
case "ResourceNotFoundException":
|
|
699
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
700
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
701
|
-
case "ThrottlingException":
|
|
702
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
703
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
704
|
-
case "ValidationException":
|
|
705
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
706
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
707
|
-
default:
|
|
708
|
-
const parsedBody = parsedOutput.body;
|
|
709
|
-
return throwDefaultError({
|
|
710
|
-
output,
|
|
711
|
-
parsedBody,
|
|
712
|
-
errorCode,
|
|
713
|
-
});
|
|
714
|
-
}
|
|
715
|
-
};
|
|
716
|
-
const de_DeleteCrossAccountAuthorizationCommand = async (output, context) => {
|
|
717
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
718
|
-
return de_DeleteCrossAccountAuthorizationCommandError(output, context);
|
|
719
|
-
}
|
|
720
|
-
const contents = (0, smithy_client_1.map)({
|
|
721
|
-
$metadata: deserializeMetadata(output),
|
|
722
|
-
});
|
|
723
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
724
|
-
return contents;
|
|
725
|
-
};
|
|
726
|
-
exports.de_DeleteCrossAccountAuthorizationCommand = de_DeleteCrossAccountAuthorizationCommand;
|
|
727
|
-
const de_DeleteCrossAccountAuthorizationCommandError = async (output, context) => {
|
|
728
|
-
const parsedOutput = {
|
|
729
|
-
...output,
|
|
730
|
-
body: await parseErrorBody(output.body, context),
|
|
731
|
-
};
|
|
732
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
733
|
-
switch (errorCode) {
|
|
734
|
-
case "AccessDeniedException":
|
|
735
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
736
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
737
|
-
case "InternalServerException":
|
|
738
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
739
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
740
|
-
case "ThrottlingException":
|
|
741
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
742
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
743
|
-
case "ValidationException":
|
|
744
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
745
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
746
|
-
default:
|
|
747
|
-
const parsedBody = parsedOutput.body;
|
|
748
|
-
return throwDefaultError({
|
|
749
|
-
output,
|
|
750
|
-
parsedBody,
|
|
751
|
-
errorCode,
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
};
|
|
755
|
-
const de_DeleteReadinessCheckCommand = async (output, context) => {
|
|
756
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
757
|
-
return de_DeleteReadinessCheckCommandError(output, context);
|
|
758
|
-
}
|
|
759
|
-
const contents = (0, smithy_client_1.map)({
|
|
760
|
-
$metadata: deserializeMetadata(output),
|
|
761
|
-
});
|
|
762
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
763
|
-
return contents;
|
|
764
|
-
};
|
|
765
|
-
exports.de_DeleteReadinessCheckCommand = de_DeleteReadinessCheckCommand;
|
|
766
|
-
const de_DeleteReadinessCheckCommandError = async (output, context) => {
|
|
767
|
-
const parsedOutput = {
|
|
768
|
-
...output,
|
|
769
|
-
body: await parseErrorBody(output.body, context),
|
|
770
|
-
};
|
|
771
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
772
|
-
switch (errorCode) {
|
|
773
|
-
case "AccessDeniedException":
|
|
774
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
775
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
776
|
-
case "InternalServerException":
|
|
777
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
778
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
779
|
-
case "ResourceNotFoundException":
|
|
780
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
781
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
782
|
-
case "ThrottlingException":
|
|
783
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
784
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
785
|
-
case "ValidationException":
|
|
786
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
787
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
788
|
-
default:
|
|
789
|
-
const parsedBody = parsedOutput.body;
|
|
790
|
-
return throwDefaultError({
|
|
791
|
-
output,
|
|
792
|
-
parsedBody,
|
|
793
|
-
errorCode,
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
|
-
const de_DeleteRecoveryGroupCommand = async (output, context) => {
|
|
798
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
799
|
-
return de_DeleteRecoveryGroupCommandError(output, context);
|
|
800
|
-
}
|
|
801
|
-
const contents = (0, smithy_client_1.map)({
|
|
802
|
-
$metadata: deserializeMetadata(output),
|
|
803
|
-
});
|
|
804
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
805
|
-
return contents;
|
|
806
|
-
};
|
|
807
|
-
exports.de_DeleteRecoveryGroupCommand = de_DeleteRecoveryGroupCommand;
|
|
808
|
-
const de_DeleteRecoveryGroupCommandError = async (output, context) => {
|
|
809
|
-
const parsedOutput = {
|
|
810
|
-
...output,
|
|
811
|
-
body: await parseErrorBody(output.body, context),
|
|
812
|
-
};
|
|
813
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
814
|
-
switch (errorCode) {
|
|
815
|
-
case "AccessDeniedException":
|
|
816
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
817
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
818
|
-
case "InternalServerException":
|
|
819
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
820
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
821
|
-
case "ResourceNotFoundException":
|
|
822
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
823
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
824
|
-
case "ThrottlingException":
|
|
825
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
826
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
827
|
-
case "ValidationException":
|
|
828
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
829
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
830
|
-
default:
|
|
831
|
-
const parsedBody = parsedOutput.body;
|
|
832
|
-
return throwDefaultError({
|
|
833
|
-
output,
|
|
834
|
-
parsedBody,
|
|
835
|
-
errorCode,
|
|
836
|
-
});
|
|
837
|
-
}
|
|
838
|
-
};
|
|
839
|
-
const de_DeleteResourceSetCommand = async (output, context) => {
|
|
840
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
841
|
-
return de_DeleteResourceSetCommandError(output, context);
|
|
842
|
-
}
|
|
843
|
-
const contents = (0, smithy_client_1.map)({
|
|
844
|
-
$metadata: deserializeMetadata(output),
|
|
845
|
-
});
|
|
846
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
847
|
-
return contents;
|
|
848
|
-
};
|
|
849
|
-
exports.de_DeleteResourceSetCommand = de_DeleteResourceSetCommand;
|
|
850
|
-
const de_DeleteResourceSetCommandError = async (output, context) => {
|
|
851
|
-
const parsedOutput = {
|
|
852
|
-
...output,
|
|
853
|
-
body: await parseErrorBody(output.body, context),
|
|
854
|
-
};
|
|
855
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
856
|
-
switch (errorCode) {
|
|
857
|
-
case "AccessDeniedException":
|
|
858
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
859
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
860
|
-
case "InternalServerException":
|
|
861
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
862
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
863
|
-
case "ResourceNotFoundException":
|
|
864
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
865
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
866
|
-
case "ThrottlingException":
|
|
867
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
868
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
869
|
-
case "ValidationException":
|
|
870
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
871
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
872
|
-
default:
|
|
873
|
-
const parsedBody = parsedOutput.body;
|
|
874
|
-
return throwDefaultError({
|
|
875
|
-
output,
|
|
876
|
-
parsedBody,
|
|
877
|
-
errorCode,
|
|
878
|
-
});
|
|
879
|
-
}
|
|
880
|
-
};
|
|
881
|
-
const de_GetArchitectureRecommendationsCommand = async (output, context) => {
|
|
882
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
883
|
-
return de_GetArchitectureRecommendationsCommandError(output, context);
|
|
884
|
-
}
|
|
885
|
-
const contents = (0, smithy_client_1.map)({
|
|
886
|
-
$metadata: deserializeMetadata(output),
|
|
887
|
-
});
|
|
888
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
889
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
890
|
-
LastAuditTimestamp: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `lastAuditTimestamp`],
|
|
891
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
892
|
-
Recommendations: [, (_) => de___listOfRecommendation(_, context), `recommendations`],
|
|
893
|
-
});
|
|
894
|
-
Object.assign(contents, doc);
|
|
895
|
-
return contents;
|
|
896
|
-
};
|
|
897
|
-
exports.de_GetArchitectureRecommendationsCommand = de_GetArchitectureRecommendationsCommand;
|
|
898
|
-
const de_GetArchitectureRecommendationsCommandError = async (output, context) => {
|
|
899
|
-
const parsedOutput = {
|
|
900
|
-
...output,
|
|
901
|
-
body: await parseErrorBody(output.body, context),
|
|
902
|
-
};
|
|
903
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
904
|
-
switch (errorCode) {
|
|
905
|
-
case "AccessDeniedException":
|
|
906
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
907
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
908
|
-
case "InternalServerException":
|
|
909
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
910
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
911
|
-
case "ResourceNotFoundException":
|
|
912
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
913
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
914
|
-
case "ThrottlingException":
|
|
915
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
916
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
917
|
-
case "ValidationException":
|
|
918
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
919
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
920
|
-
default:
|
|
921
|
-
const parsedBody = parsedOutput.body;
|
|
922
|
-
return throwDefaultError({
|
|
923
|
-
output,
|
|
924
|
-
parsedBody,
|
|
925
|
-
errorCode,
|
|
926
|
-
});
|
|
927
|
-
}
|
|
928
|
-
};
|
|
929
|
-
const de_GetCellCommand = async (output, context) => {
|
|
930
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
931
|
-
return de_GetCellCommandError(output, context);
|
|
932
|
-
}
|
|
933
|
-
const contents = (0, smithy_client_1.map)({
|
|
934
|
-
$metadata: deserializeMetadata(output),
|
|
935
|
-
});
|
|
936
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
937
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
938
|
-
CellArn: [, smithy_client_1.expectString, `cellArn`],
|
|
939
|
-
CellName: [, smithy_client_1.expectString, `cellName`],
|
|
940
|
-
Cells: [, smithy_client_1._json, `cells`],
|
|
941
|
-
ParentReadinessScopes: [, smithy_client_1._json, `parentReadinessScopes`],
|
|
942
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
943
|
-
});
|
|
944
|
-
Object.assign(contents, doc);
|
|
945
|
-
return contents;
|
|
946
|
-
};
|
|
947
|
-
exports.de_GetCellCommand = de_GetCellCommand;
|
|
948
|
-
const de_GetCellCommandError = async (output, context) => {
|
|
949
|
-
const parsedOutput = {
|
|
950
|
-
...output,
|
|
951
|
-
body: await parseErrorBody(output.body, context),
|
|
952
|
-
};
|
|
953
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
954
|
-
switch (errorCode) {
|
|
955
|
-
case "AccessDeniedException":
|
|
956
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
957
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
958
|
-
case "InternalServerException":
|
|
959
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
960
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
961
|
-
case "ResourceNotFoundException":
|
|
962
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
963
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
964
|
-
case "ThrottlingException":
|
|
965
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
966
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
967
|
-
case "ValidationException":
|
|
968
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
969
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
970
|
-
default:
|
|
971
|
-
const parsedBody = parsedOutput.body;
|
|
972
|
-
return throwDefaultError({
|
|
973
|
-
output,
|
|
974
|
-
parsedBody,
|
|
975
|
-
errorCode,
|
|
976
|
-
});
|
|
977
|
-
}
|
|
978
|
-
};
|
|
979
|
-
const de_GetCellReadinessSummaryCommand = async (output, context) => {
|
|
980
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
981
|
-
return de_GetCellReadinessSummaryCommandError(output, context);
|
|
982
|
-
}
|
|
983
|
-
const contents = (0, smithy_client_1.map)({
|
|
984
|
-
$metadata: deserializeMetadata(output),
|
|
985
|
-
});
|
|
986
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
987
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
988
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
989
|
-
Readiness: [, smithy_client_1.expectString, `readiness`],
|
|
990
|
-
ReadinessChecks: [, (_) => de___listOfReadinessCheckSummary(_, context), `readinessChecks`],
|
|
991
|
-
});
|
|
992
|
-
Object.assign(contents, doc);
|
|
993
|
-
return contents;
|
|
994
|
-
};
|
|
995
|
-
exports.de_GetCellReadinessSummaryCommand = de_GetCellReadinessSummaryCommand;
|
|
996
|
-
const de_GetCellReadinessSummaryCommandError = async (output, context) => {
|
|
997
|
-
const parsedOutput = {
|
|
998
|
-
...output,
|
|
999
|
-
body: await parseErrorBody(output.body, context),
|
|
1000
|
-
};
|
|
1001
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1002
|
-
switch (errorCode) {
|
|
1003
|
-
case "AccessDeniedException":
|
|
1004
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1005
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "InternalServerException":
|
|
1007
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1008
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "ResourceNotFoundException":
|
|
1010
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1011
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "ThrottlingException":
|
|
1013
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1014
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "ValidationException":
|
|
1016
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1017
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1018
|
-
default:
|
|
1019
|
-
const parsedBody = parsedOutput.body;
|
|
1020
|
-
return throwDefaultError({
|
|
1021
|
-
output,
|
|
1022
|
-
parsedBody,
|
|
1023
|
-
errorCode,
|
|
1024
|
-
});
|
|
1025
|
-
}
|
|
1026
|
-
};
|
|
1027
|
-
const de_GetReadinessCheckCommand = async (output, context) => {
|
|
1028
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1029
|
-
return de_GetReadinessCheckCommandError(output, context);
|
|
1030
|
-
}
|
|
1031
|
-
const contents = (0, smithy_client_1.map)({
|
|
1032
|
-
$metadata: deserializeMetadata(output),
|
|
1033
|
-
});
|
|
1034
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1035
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1036
|
-
ReadinessCheckArn: [, smithy_client_1.expectString, `readinessCheckArn`],
|
|
1037
|
-
ReadinessCheckName: [, smithy_client_1.expectString, `readinessCheckName`],
|
|
1038
|
-
ResourceSet: [, smithy_client_1.expectString, `resourceSet`],
|
|
1039
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1040
|
-
});
|
|
1041
|
-
Object.assign(contents, doc);
|
|
1042
|
-
return contents;
|
|
1043
|
-
};
|
|
1044
|
-
exports.de_GetReadinessCheckCommand = de_GetReadinessCheckCommand;
|
|
1045
|
-
const de_GetReadinessCheckCommandError = async (output, context) => {
|
|
1046
|
-
const parsedOutput = {
|
|
1047
|
-
...output,
|
|
1048
|
-
body: await parseErrorBody(output.body, context),
|
|
1049
|
-
};
|
|
1050
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
|
-
switch (errorCode) {
|
|
1052
|
-
case "AccessDeniedException":
|
|
1053
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1054
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1055
|
-
case "InternalServerException":
|
|
1056
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1057
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "ResourceNotFoundException":
|
|
1059
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1060
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "ThrottlingException":
|
|
1062
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1063
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "ValidationException":
|
|
1065
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1066
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1067
|
-
default:
|
|
1068
|
-
const parsedBody = parsedOutput.body;
|
|
1069
|
-
return throwDefaultError({
|
|
1070
|
-
output,
|
|
1071
|
-
parsedBody,
|
|
1072
|
-
errorCode,
|
|
1073
|
-
});
|
|
1074
|
-
}
|
|
1075
|
-
};
|
|
1076
|
-
const de_GetReadinessCheckResourceStatusCommand = async (output, context) => {
|
|
1077
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1078
|
-
return de_GetReadinessCheckResourceStatusCommandError(output, context);
|
|
1079
|
-
}
|
|
1080
|
-
const contents = (0, smithy_client_1.map)({
|
|
1081
|
-
$metadata: deserializeMetadata(output),
|
|
1082
|
-
});
|
|
1083
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1084
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1085
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1086
|
-
Readiness: [, smithy_client_1.expectString, `readiness`],
|
|
1087
|
-
Rules: [, (_) => de___listOfRuleResult(_, context), `rules`],
|
|
1088
|
-
});
|
|
1089
|
-
Object.assign(contents, doc);
|
|
1090
|
-
return contents;
|
|
1091
|
-
};
|
|
1092
|
-
exports.de_GetReadinessCheckResourceStatusCommand = de_GetReadinessCheckResourceStatusCommand;
|
|
1093
|
-
const de_GetReadinessCheckResourceStatusCommandError = async (output, context) => {
|
|
1094
|
-
const parsedOutput = {
|
|
1095
|
-
...output,
|
|
1096
|
-
body: await parseErrorBody(output.body, context),
|
|
1097
|
-
};
|
|
1098
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1099
|
-
switch (errorCode) {
|
|
1100
|
-
case "AccessDeniedException":
|
|
1101
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1102
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1103
|
-
case "InternalServerException":
|
|
1104
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1105
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1106
|
-
case "ResourceNotFoundException":
|
|
1107
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1108
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1109
|
-
case "ThrottlingException":
|
|
1110
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1111
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "ValidationException":
|
|
1113
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1114
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1115
|
-
default:
|
|
1116
|
-
const parsedBody = parsedOutput.body;
|
|
1117
|
-
return throwDefaultError({
|
|
1118
|
-
output,
|
|
1119
|
-
parsedBody,
|
|
1120
|
-
errorCode,
|
|
1121
|
-
});
|
|
1122
|
-
}
|
|
1123
|
-
};
|
|
1124
|
-
const de_GetReadinessCheckStatusCommand = async (output, context) => {
|
|
1125
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1126
|
-
return de_GetReadinessCheckStatusCommandError(output, context);
|
|
1127
|
-
}
|
|
1128
|
-
const contents = (0, smithy_client_1.map)({
|
|
1129
|
-
$metadata: deserializeMetadata(output),
|
|
1130
|
-
});
|
|
1131
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1132
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1133
|
-
Messages: [, (_) => de___listOfMessage(_, context), `messages`],
|
|
1134
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1135
|
-
Readiness: [, smithy_client_1.expectString, `readiness`],
|
|
1136
|
-
Resources: [, (_) => de___listOfResourceResult(_, context), `resources`],
|
|
1137
|
-
});
|
|
1138
|
-
Object.assign(contents, doc);
|
|
1139
|
-
return contents;
|
|
1140
|
-
};
|
|
1141
|
-
exports.de_GetReadinessCheckStatusCommand = de_GetReadinessCheckStatusCommand;
|
|
1142
|
-
const de_GetReadinessCheckStatusCommandError = async (output, context) => {
|
|
1143
|
-
const parsedOutput = {
|
|
1144
|
-
...output,
|
|
1145
|
-
body: await parseErrorBody(output.body, context),
|
|
1146
|
-
};
|
|
1147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
|
-
switch (errorCode) {
|
|
1149
|
-
case "AccessDeniedException":
|
|
1150
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1151
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "InternalServerException":
|
|
1153
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1154
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "ResourceNotFoundException":
|
|
1156
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1157
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "ThrottlingException":
|
|
1159
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1160
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "ValidationException":
|
|
1162
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1163
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1164
|
-
default:
|
|
1165
|
-
const parsedBody = parsedOutput.body;
|
|
1166
|
-
return throwDefaultError({
|
|
1167
|
-
output,
|
|
1168
|
-
parsedBody,
|
|
1169
|
-
errorCode,
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
};
|
|
1173
|
-
const de_GetRecoveryGroupCommand = async (output, context) => {
|
|
1174
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1175
|
-
return de_GetRecoveryGroupCommandError(output, context);
|
|
1176
|
-
}
|
|
1177
|
-
const contents = (0, smithy_client_1.map)({
|
|
1178
|
-
$metadata: deserializeMetadata(output),
|
|
1179
|
-
});
|
|
1180
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1181
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1182
|
-
Cells: [, smithy_client_1._json, `cells`],
|
|
1183
|
-
RecoveryGroupArn: [, smithy_client_1.expectString, `recoveryGroupArn`],
|
|
1184
|
-
RecoveryGroupName: [, smithy_client_1.expectString, `recoveryGroupName`],
|
|
1185
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1186
|
-
});
|
|
1187
|
-
Object.assign(contents, doc);
|
|
1188
|
-
return contents;
|
|
1189
|
-
};
|
|
1190
|
-
exports.de_GetRecoveryGroupCommand = de_GetRecoveryGroupCommand;
|
|
1191
|
-
const de_GetRecoveryGroupCommandError = async (output, context) => {
|
|
1192
|
-
const parsedOutput = {
|
|
1193
|
-
...output,
|
|
1194
|
-
body: await parseErrorBody(output.body, context),
|
|
1195
|
-
};
|
|
1196
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
|
-
switch (errorCode) {
|
|
1198
|
-
case "AccessDeniedException":
|
|
1199
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1200
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "InternalServerException":
|
|
1202
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1203
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "ResourceNotFoundException":
|
|
1205
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1206
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "ThrottlingException":
|
|
1208
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1209
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "ValidationException":
|
|
1211
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1212
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1213
|
-
default:
|
|
1214
|
-
const parsedBody = parsedOutput.body;
|
|
1215
|
-
return throwDefaultError({
|
|
1216
|
-
output,
|
|
1217
|
-
parsedBody,
|
|
1218
|
-
errorCode,
|
|
1219
|
-
});
|
|
1220
|
-
}
|
|
1221
|
-
};
|
|
1222
|
-
const de_GetRecoveryGroupReadinessSummaryCommand = async (output, context) => {
|
|
1223
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1224
|
-
return de_GetRecoveryGroupReadinessSummaryCommandError(output, context);
|
|
1225
|
-
}
|
|
1226
|
-
const contents = (0, smithy_client_1.map)({
|
|
1227
|
-
$metadata: deserializeMetadata(output),
|
|
1228
|
-
});
|
|
1229
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1230
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1231
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1232
|
-
Readiness: [, smithy_client_1.expectString, `readiness`],
|
|
1233
|
-
ReadinessChecks: [, (_) => de___listOfReadinessCheckSummary(_, context), `readinessChecks`],
|
|
1234
|
-
});
|
|
1235
|
-
Object.assign(contents, doc);
|
|
1236
|
-
return contents;
|
|
1237
|
-
};
|
|
1238
|
-
exports.de_GetRecoveryGroupReadinessSummaryCommand = de_GetRecoveryGroupReadinessSummaryCommand;
|
|
1239
|
-
const de_GetRecoveryGroupReadinessSummaryCommandError = async (output, context) => {
|
|
1240
|
-
const parsedOutput = {
|
|
1241
|
-
...output,
|
|
1242
|
-
body: await parseErrorBody(output.body, context),
|
|
1243
|
-
};
|
|
1244
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1245
|
-
switch (errorCode) {
|
|
1246
|
-
case "AccessDeniedException":
|
|
1247
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1248
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1249
|
-
case "InternalServerException":
|
|
1250
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1251
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1252
|
-
case "ResourceNotFoundException":
|
|
1253
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1254
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1255
|
-
case "ThrottlingException":
|
|
1256
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1257
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1258
|
-
case "ValidationException":
|
|
1259
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1260
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1261
|
-
default:
|
|
1262
|
-
const parsedBody = parsedOutput.body;
|
|
1263
|
-
return throwDefaultError({
|
|
1264
|
-
output,
|
|
1265
|
-
parsedBody,
|
|
1266
|
-
errorCode,
|
|
1267
|
-
});
|
|
1268
|
-
}
|
|
1269
|
-
};
|
|
1270
|
-
const de_GetResourceSetCommand = async (output, context) => {
|
|
1271
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1272
|
-
return de_GetResourceSetCommandError(output, context);
|
|
1273
|
-
}
|
|
1274
|
-
const contents = (0, smithy_client_1.map)({
|
|
1275
|
-
$metadata: deserializeMetadata(output),
|
|
1276
|
-
});
|
|
1277
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1278
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1279
|
-
ResourceSetArn: [, smithy_client_1.expectString, `resourceSetArn`],
|
|
1280
|
-
ResourceSetName: [, smithy_client_1.expectString, `resourceSetName`],
|
|
1281
|
-
ResourceSetType: [, smithy_client_1.expectString, `resourceSetType`],
|
|
1282
|
-
Resources: [, (_) => de___listOfResource(_, context), `resources`],
|
|
1283
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1284
|
-
});
|
|
1285
|
-
Object.assign(contents, doc);
|
|
1286
|
-
return contents;
|
|
1287
|
-
};
|
|
1288
|
-
exports.de_GetResourceSetCommand = de_GetResourceSetCommand;
|
|
1289
|
-
const de_GetResourceSetCommandError = async (output, context) => {
|
|
1290
|
-
const parsedOutput = {
|
|
1291
|
-
...output,
|
|
1292
|
-
body: await parseErrorBody(output.body, context),
|
|
1293
|
-
};
|
|
1294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1295
|
-
switch (errorCode) {
|
|
1296
|
-
case "AccessDeniedException":
|
|
1297
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1298
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "InternalServerException":
|
|
1300
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1301
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "ResourceNotFoundException":
|
|
1303
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1304
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "ThrottlingException":
|
|
1306
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1307
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1308
|
-
case "ValidationException":
|
|
1309
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1310
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1311
|
-
default:
|
|
1312
|
-
const parsedBody = parsedOutput.body;
|
|
1313
|
-
return throwDefaultError({
|
|
1314
|
-
output,
|
|
1315
|
-
parsedBody,
|
|
1316
|
-
errorCode,
|
|
1317
|
-
});
|
|
1318
|
-
}
|
|
1319
|
-
};
|
|
1320
|
-
const de_ListCellsCommand = async (output, context) => {
|
|
1321
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1322
|
-
return de_ListCellsCommandError(output, context);
|
|
1323
|
-
}
|
|
1324
|
-
const contents = (0, smithy_client_1.map)({
|
|
1325
|
-
$metadata: deserializeMetadata(output),
|
|
1326
|
-
});
|
|
1327
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1328
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1329
|
-
Cells: [, (_) => de___listOfCellOutput(_, context), `cells`],
|
|
1330
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1331
|
-
});
|
|
1332
|
-
Object.assign(contents, doc);
|
|
1333
|
-
return contents;
|
|
1334
|
-
};
|
|
1335
|
-
exports.de_ListCellsCommand = de_ListCellsCommand;
|
|
1336
|
-
const de_ListCellsCommandError = async (output, context) => {
|
|
1337
|
-
const parsedOutput = {
|
|
1338
|
-
...output,
|
|
1339
|
-
body: await parseErrorBody(output.body, context),
|
|
1340
|
-
};
|
|
1341
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1342
|
-
switch (errorCode) {
|
|
1343
|
-
case "AccessDeniedException":
|
|
1344
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1345
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "InternalServerException":
|
|
1347
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1348
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1349
|
-
case "ThrottlingException":
|
|
1350
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1351
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1352
|
-
case "ValidationException":
|
|
1353
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1354
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1355
|
-
default:
|
|
1356
|
-
const parsedBody = parsedOutput.body;
|
|
1357
|
-
return throwDefaultError({
|
|
1358
|
-
output,
|
|
1359
|
-
parsedBody,
|
|
1360
|
-
errorCode,
|
|
1361
|
-
});
|
|
1362
|
-
}
|
|
1363
|
-
};
|
|
1364
|
-
const de_ListCrossAccountAuthorizationsCommand = async (output, context) => {
|
|
1365
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1366
|
-
return de_ListCrossAccountAuthorizationsCommandError(output, context);
|
|
1367
|
-
}
|
|
1368
|
-
const contents = (0, smithy_client_1.map)({
|
|
1369
|
-
$metadata: deserializeMetadata(output),
|
|
1370
|
-
});
|
|
1371
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1372
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1373
|
-
CrossAccountAuthorizations: [, smithy_client_1._json, `crossAccountAuthorizations`],
|
|
1374
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1375
|
-
});
|
|
1376
|
-
Object.assign(contents, doc);
|
|
1377
|
-
return contents;
|
|
1378
|
-
};
|
|
1379
|
-
exports.de_ListCrossAccountAuthorizationsCommand = de_ListCrossAccountAuthorizationsCommand;
|
|
1380
|
-
const de_ListCrossAccountAuthorizationsCommandError = async (output, context) => {
|
|
1381
|
-
const parsedOutput = {
|
|
1382
|
-
...output,
|
|
1383
|
-
body: await parseErrorBody(output.body, context),
|
|
1384
|
-
};
|
|
1385
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1386
|
-
switch (errorCode) {
|
|
1387
|
-
case "AccessDeniedException":
|
|
1388
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1389
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "InternalServerException":
|
|
1391
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1392
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "ThrottlingException":
|
|
1394
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1395
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "ValidationException":
|
|
1397
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1398
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1399
|
-
default:
|
|
1400
|
-
const parsedBody = parsedOutput.body;
|
|
1401
|
-
return throwDefaultError({
|
|
1402
|
-
output,
|
|
1403
|
-
parsedBody,
|
|
1404
|
-
errorCode,
|
|
1405
|
-
});
|
|
1406
|
-
}
|
|
1407
|
-
};
|
|
1408
|
-
const de_ListReadinessChecksCommand = async (output, context) => {
|
|
1409
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1410
|
-
return de_ListReadinessChecksCommandError(output, context);
|
|
1411
|
-
}
|
|
1412
|
-
const contents = (0, smithy_client_1.map)({
|
|
1413
|
-
$metadata: deserializeMetadata(output),
|
|
1414
|
-
});
|
|
1415
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1416
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1417
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1418
|
-
ReadinessChecks: [, (_) => de___listOfReadinessCheckOutput(_, context), `readinessChecks`],
|
|
1419
|
-
});
|
|
1420
|
-
Object.assign(contents, doc);
|
|
1421
|
-
return contents;
|
|
1422
|
-
};
|
|
1423
|
-
exports.de_ListReadinessChecksCommand = de_ListReadinessChecksCommand;
|
|
1424
|
-
const de_ListReadinessChecksCommandError = async (output, context) => {
|
|
1425
|
-
const parsedOutput = {
|
|
1426
|
-
...output,
|
|
1427
|
-
body: await parseErrorBody(output.body, context),
|
|
1428
|
-
};
|
|
1429
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
|
-
switch (errorCode) {
|
|
1431
|
-
case "AccessDeniedException":
|
|
1432
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1433
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "InternalServerException":
|
|
1435
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1436
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "ThrottlingException":
|
|
1438
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1439
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "ValidationException":
|
|
1441
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1442
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1443
|
-
default:
|
|
1444
|
-
const parsedBody = parsedOutput.body;
|
|
1445
|
-
return throwDefaultError({
|
|
1446
|
-
output,
|
|
1447
|
-
parsedBody,
|
|
1448
|
-
errorCode,
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
};
|
|
1452
|
-
const de_ListRecoveryGroupsCommand = async (output, context) => {
|
|
1453
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1454
|
-
return de_ListRecoveryGroupsCommandError(output, context);
|
|
1455
|
-
}
|
|
1456
|
-
const contents = (0, smithy_client_1.map)({
|
|
1457
|
-
$metadata: deserializeMetadata(output),
|
|
1458
|
-
});
|
|
1459
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1460
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1461
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1462
|
-
RecoveryGroups: [, (_) => de___listOfRecoveryGroupOutput(_, context), `recoveryGroups`],
|
|
1463
|
-
});
|
|
1464
|
-
Object.assign(contents, doc);
|
|
1465
|
-
return contents;
|
|
1466
|
-
};
|
|
1467
|
-
exports.de_ListRecoveryGroupsCommand = de_ListRecoveryGroupsCommand;
|
|
1468
|
-
const de_ListRecoveryGroupsCommandError = async (output, context) => {
|
|
1469
|
-
const parsedOutput = {
|
|
1470
|
-
...output,
|
|
1471
|
-
body: await parseErrorBody(output.body, context),
|
|
1472
|
-
};
|
|
1473
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1474
|
-
switch (errorCode) {
|
|
1475
|
-
case "AccessDeniedException":
|
|
1476
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1477
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "InternalServerException":
|
|
1479
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1480
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "ThrottlingException":
|
|
1482
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1483
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "ValidationException":
|
|
1485
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1486
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1487
|
-
default:
|
|
1488
|
-
const parsedBody = parsedOutput.body;
|
|
1489
|
-
return throwDefaultError({
|
|
1490
|
-
output,
|
|
1491
|
-
parsedBody,
|
|
1492
|
-
errorCode,
|
|
1493
|
-
});
|
|
1494
|
-
}
|
|
1495
|
-
};
|
|
1496
|
-
const de_ListResourceSetsCommand = async (output, context) => {
|
|
1497
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1498
|
-
return de_ListResourceSetsCommandError(output, context);
|
|
1499
|
-
}
|
|
1500
|
-
const contents = (0, smithy_client_1.map)({
|
|
1501
|
-
$metadata: deserializeMetadata(output),
|
|
1502
|
-
});
|
|
1503
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1504
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1505
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1506
|
-
ResourceSets: [, (_) => de___listOfResourceSetOutput(_, context), `resourceSets`],
|
|
1507
|
-
});
|
|
1508
|
-
Object.assign(contents, doc);
|
|
1509
|
-
return contents;
|
|
1510
|
-
};
|
|
1511
|
-
exports.de_ListResourceSetsCommand = de_ListResourceSetsCommand;
|
|
1512
|
-
const de_ListResourceSetsCommandError = async (output, context) => {
|
|
1513
|
-
const parsedOutput = {
|
|
1514
|
-
...output,
|
|
1515
|
-
body: await parseErrorBody(output.body, context),
|
|
1516
|
-
};
|
|
1517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1518
|
-
switch (errorCode) {
|
|
1519
|
-
case "AccessDeniedException":
|
|
1520
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1521
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "InternalServerException":
|
|
1523
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1524
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "ThrottlingException":
|
|
1526
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1527
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1528
|
-
case "ValidationException":
|
|
1529
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1530
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1531
|
-
default:
|
|
1532
|
-
const parsedBody = parsedOutput.body;
|
|
1533
|
-
return throwDefaultError({
|
|
1534
|
-
output,
|
|
1535
|
-
parsedBody,
|
|
1536
|
-
errorCode,
|
|
1537
|
-
});
|
|
1538
|
-
}
|
|
1539
|
-
};
|
|
1540
|
-
const de_ListRulesCommand = async (output, context) => {
|
|
1541
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1542
|
-
return de_ListRulesCommandError(output, context);
|
|
1543
|
-
}
|
|
1544
|
-
const contents = (0, smithy_client_1.map)({
|
|
1545
|
-
$metadata: deserializeMetadata(output),
|
|
1546
|
-
});
|
|
1547
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1548
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1549
|
-
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1550
|
-
Rules: [, (_) => de___listOfListRulesOutput(_, context), `rules`],
|
|
1551
|
-
});
|
|
1552
|
-
Object.assign(contents, doc);
|
|
1553
|
-
return contents;
|
|
1554
|
-
};
|
|
1555
|
-
exports.de_ListRulesCommand = de_ListRulesCommand;
|
|
1556
|
-
const de_ListRulesCommandError = async (output, context) => {
|
|
1557
|
-
const parsedOutput = {
|
|
1558
|
-
...output,
|
|
1559
|
-
body: await parseErrorBody(output.body, context),
|
|
1560
|
-
};
|
|
1561
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1562
|
-
switch (errorCode) {
|
|
1563
|
-
case "AccessDeniedException":
|
|
1564
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1565
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1566
|
-
case "InternalServerException":
|
|
1567
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1568
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1569
|
-
case "ThrottlingException":
|
|
1570
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1571
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1572
|
-
case "ValidationException":
|
|
1573
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1574
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1575
|
-
default:
|
|
1576
|
-
const parsedBody = parsedOutput.body;
|
|
1577
|
-
return throwDefaultError({
|
|
1578
|
-
output,
|
|
1579
|
-
parsedBody,
|
|
1580
|
-
errorCode,
|
|
1581
|
-
});
|
|
1582
|
-
}
|
|
1583
|
-
};
|
|
1584
|
-
const de_ListTagsForResourcesCommand = async (output, context) => {
|
|
1585
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1586
|
-
return de_ListTagsForResourcesCommandError(output, context);
|
|
1587
|
-
}
|
|
1588
|
-
const contents = (0, smithy_client_1.map)({
|
|
1589
|
-
$metadata: deserializeMetadata(output),
|
|
1590
|
-
});
|
|
1591
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1592
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1593
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1594
|
-
});
|
|
1595
|
-
Object.assign(contents, doc);
|
|
1596
|
-
return contents;
|
|
1597
|
-
};
|
|
1598
|
-
exports.de_ListTagsForResourcesCommand = de_ListTagsForResourcesCommand;
|
|
1599
|
-
const de_ListTagsForResourcesCommandError = async (output, context) => {
|
|
1600
|
-
const parsedOutput = {
|
|
1601
|
-
...output,
|
|
1602
|
-
body: await parseErrorBody(output.body, context),
|
|
1603
|
-
};
|
|
1604
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1605
|
-
switch (errorCode) {
|
|
1606
|
-
case "InternalServerException":
|
|
1607
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1608
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1609
|
-
case "ResourceNotFoundException":
|
|
1610
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1611
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1612
|
-
case "ValidationException":
|
|
1613
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1614
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1615
|
-
default:
|
|
1616
|
-
const parsedBody = parsedOutput.body;
|
|
1617
|
-
return throwDefaultError({
|
|
1618
|
-
output,
|
|
1619
|
-
parsedBody,
|
|
1620
|
-
errorCode,
|
|
1621
|
-
});
|
|
1622
|
-
}
|
|
1623
|
-
};
|
|
1624
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1625
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1626
|
-
return de_TagResourceCommandError(output, context);
|
|
1627
|
-
}
|
|
1628
|
-
const contents = (0, smithy_client_1.map)({
|
|
1629
|
-
$metadata: deserializeMetadata(output),
|
|
1630
|
-
});
|
|
1631
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1632
|
-
return contents;
|
|
1633
|
-
};
|
|
1634
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1635
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1636
|
-
const parsedOutput = {
|
|
1637
|
-
...output,
|
|
1638
|
-
body: await parseErrorBody(output.body, context),
|
|
1639
|
-
};
|
|
1640
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1641
|
-
switch (errorCode) {
|
|
1642
|
-
case "InternalServerException":
|
|
1643
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1644
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "ResourceNotFoundException":
|
|
1646
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1647
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "ValidationException":
|
|
1649
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1650
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1651
|
-
default:
|
|
1652
|
-
const parsedBody = parsedOutput.body;
|
|
1653
|
-
return throwDefaultError({
|
|
1654
|
-
output,
|
|
1655
|
-
parsedBody,
|
|
1656
|
-
errorCode,
|
|
1657
|
-
});
|
|
1658
|
-
}
|
|
1659
|
-
};
|
|
1660
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1661
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1662
|
-
return de_UntagResourceCommandError(output, context);
|
|
1663
|
-
}
|
|
1664
|
-
const contents = (0, smithy_client_1.map)({
|
|
1665
|
-
$metadata: deserializeMetadata(output),
|
|
1666
|
-
});
|
|
1667
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1668
|
-
return contents;
|
|
1669
|
-
};
|
|
1670
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1671
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1672
|
-
const parsedOutput = {
|
|
1673
|
-
...output,
|
|
1674
|
-
body: await parseErrorBody(output.body, context),
|
|
1675
|
-
};
|
|
1676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1677
|
-
switch (errorCode) {
|
|
1678
|
-
case "InternalServerException":
|
|
1679
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1680
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "ResourceNotFoundException":
|
|
1682
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1683
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "ValidationException":
|
|
1685
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1686
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1687
|
-
default:
|
|
1688
|
-
const parsedBody = parsedOutput.body;
|
|
1689
|
-
return throwDefaultError({
|
|
1690
|
-
output,
|
|
1691
|
-
parsedBody,
|
|
1692
|
-
errorCode,
|
|
1693
|
-
});
|
|
1694
|
-
}
|
|
1695
|
-
};
|
|
1696
|
-
const de_UpdateCellCommand = async (output, context) => {
|
|
1697
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1698
|
-
return de_UpdateCellCommandError(output, context);
|
|
1699
|
-
}
|
|
1700
|
-
const contents = (0, smithy_client_1.map)({
|
|
1701
|
-
$metadata: deserializeMetadata(output),
|
|
1702
|
-
});
|
|
1703
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1704
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1705
|
-
CellArn: [, smithy_client_1.expectString, `cellArn`],
|
|
1706
|
-
CellName: [, smithy_client_1.expectString, `cellName`],
|
|
1707
|
-
Cells: [, smithy_client_1._json, `cells`],
|
|
1708
|
-
ParentReadinessScopes: [, smithy_client_1._json, `parentReadinessScopes`],
|
|
1709
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1710
|
-
});
|
|
1711
|
-
Object.assign(contents, doc);
|
|
1712
|
-
return contents;
|
|
1713
|
-
};
|
|
1714
|
-
exports.de_UpdateCellCommand = de_UpdateCellCommand;
|
|
1715
|
-
const de_UpdateCellCommandError = async (output, context) => {
|
|
1716
|
-
const parsedOutput = {
|
|
1717
|
-
...output,
|
|
1718
|
-
body: await parseErrorBody(output.body, context),
|
|
1719
|
-
};
|
|
1720
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1721
|
-
switch (errorCode) {
|
|
1722
|
-
case "AccessDeniedException":
|
|
1723
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1724
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1725
|
-
case "InternalServerException":
|
|
1726
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1727
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1728
|
-
case "ResourceNotFoundException":
|
|
1729
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1730
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "ThrottlingException":
|
|
1732
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1733
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "ValidationException":
|
|
1735
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1736
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1737
|
-
default:
|
|
1738
|
-
const parsedBody = parsedOutput.body;
|
|
1739
|
-
return throwDefaultError({
|
|
1740
|
-
output,
|
|
1741
|
-
parsedBody,
|
|
1742
|
-
errorCode,
|
|
1743
|
-
});
|
|
1744
|
-
}
|
|
1745
|
-
};
|
|
1746
|
-
const de_UpdateReadinessCheckCommand = async (output, context) => {
|
|
1747
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1748
|
-
return de_UpdateReadinessCheckCommandError(output, context);
|
|
1749
|
-
}
|
|
1750
|
-
const contents = (0, smithy_client_1.map)({
|
|
1751
|
-
$metadata: deserializeMetadata(output),
|
|
1752
|
-
});
|
|
1753
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1754
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1755
|
-
ReadinessCheckArn: [, smithy_client_1.expectString, `readinessCheckArn`],
|
|
1756
|
-
ReadinessCheckName: [, smithy_client_1.expectString, `readinessCheckName`],
|
|
1757
|
-
ResourceSet: [, smithy_client_1.expectString, `resourceSet`],
|
|
1758
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1759
|
-
});
|
|
1760
|
-
Object.assign(contents, doc);
|
|
1761
|
-
return contents;
|
|
1762
|
-
};
|
|
1763
|
-
exports.de_UpdateReadinessCheckCommand = de_UpdateReadinessCheckCommand;
|
|
1764
|
-
const de_UpdateReadinessCheckCommandError = async (output, context) => {
|
|
1765
|
-
const parsedOutput = {
|
|
1766
|
-
...output,
|
|
1767
|
-
body: await parseErrorBody(output.body, context),
|
|
1768
|
-
};
|
|
1769
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1770
|
-
switch (errorCode) {
|
|
1771
|
-
case "AccessDeniedException":
|
|
1772
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1773
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1774
|
-
case "InternalServerException":
|
|
1775
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1776
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1777
|
-
case "ResourceNotFoundException":
|
|
1778
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1779
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1780
|
-
case "ThrottlingException":
|
|
1781
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1782
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1783
|
-
case "ValidationException":
|
|
1784
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1785
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1786
|
-
default:
|
|
1787
|
-
const parsedBody = parsedOutput.body;
|
|
1788
|
-
return throwDefaultError({
|
|
1789
|
-
output,
|
|
1790
|
-
parsedBody,
|
|
1791
|
-
errorCode,
|
|
1792
|
-
});
|
|
1793
|
-
}
|
|
1794
|
-
};
|
|
1795
|
-
const de_UpdateRecoveryGroupCommand = async (output, context) => {
|
|
1796
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1797
|
-
return de_UpdateRecoveryGroupCommandError(output, context);
|
|
1798
|
-
}
|
|
1799
|
-
const contents = (0, smithy_client_1.map)({
|
|
1800
|
-
$metadata: deserializeMetadata(output),
|
|
1801
|
-
});
|
|
1802
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1803
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1804
|
-
Cells: [, smithy_client_1._json, `cells`],
|
|
1805
|
-
RecoveryGroupArn: [, smithy_client_1.expectString, `recoveryGroupArn`],
|
|
1806
|
-
RecoveryGroupName: [, smithy_client_1.expectString, `recoveryGroupName`],
|
|
1807
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1808
|
-
});
|
|
1809
|
-
Object.assign(contents, doc);
|
|
1810
|
-
return contents;
|
|
1811
|
-
};
|
|
1812
|
-
exports.de_UpdateRecoveryGroupCommand = de_UpdateRecoveryGroupCommand;
|
|
1813
|
-
const de_UpdateRecoveryGroupCommandError = async (output, context) => {
|
|
1814
|
-
const parsedOutput = {
|
|
1815
|
-
...output,
|
|
1816
|
-
body: await parseErrorBody(output.body, context),
|
|
1817
|
-
};
|
|
1818
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1819
|
-
switch (errorCode) {
|
|
1820
|
-
case "AccessDeniedException":
|
|
1821
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1822
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "InternalServerException":
|
|
1824
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1825
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1826
|
-
case "ResourceNotFoundException":
|
|
1827
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1828
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1829
|
-
case "ThrottlingException":
|
|
1830
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1831
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1832
|
-
case "ValidationException":
|
|
1833
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1834
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1835
|
-
default:
|
|
1836
|
-
const parsedBody = parsedOutput.body;
|
|
1837
|
-
return throwDefaultError({
|
|
1838
|
-
output,
|
|
1839
|
-
parsedBody,
|
|
1840
|
-
errorCode,
|
|
1841
|
-
});
|
|
1842
|
-
}
|
|
1843
|
-
};
|
|
1844
|
-
const de_UpdateResourceSetCommand = async (output, context) => {
|
|
1845
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1846
|
-
return de_UpdateResourceSetCommandError(output, context);
|
|
1847
|
-
}
|
|
1848
|
-
const contents = (0, smithy_client_1.map)({
|
|
1849
|
-
$metadata: deserializeMetadata(output),
|
|
1850
|
-
});
|
|
1851
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1852
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1853
|
-
ResourceSetArn: [, smithy_client_1.expectString, `resourceSetArn`],
|
|
1854
|
-
ResourceSetName: [, smithy_client_1.expectString, `resourceSetName`],
|
|
1855
|
-
ResourceSetType: [, smithy_client_1.expectString, `resourceSetType`],
|
|
1856
|
-
Resources: [, (_) => de___listOfResource(_, context), `resources`],
|
|
1857
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
1858
|
-
});
|
|
1859
|
-
Object.assign(contents, doc);
|
|
1860
|
-
return contents;
|
|
1861
|
-
};
|
|
1862
|
-
exports.de_UpdateResourceSetCommand = de_UpdateResourceSetCommand;
|
|
1863
|
-
const de_UpdateResourceSetCommandError = async (output, context) => {
|
|
1864
|
-
const parsedOutput = {
|
|
1865
|
-
...output,
|
|
1866
|
-
body: await parseErrorBody(output.body, context),
|
|
1867
|
-
};
|
|
1868
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1869
|
-
switch (errorCode) {
|
|
1870
|
-
case "AccessDeniedException":
|
|
1871
|
-
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1872
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1873
|
-
case "InternalServerException":
|
|
1874
|
-
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1875
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "ResourceNotFoundException":
|
|
1877
|
-
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1878
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1879
|
-
case "ThrottlingException":
|
|
1880
|
-
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1881
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "ValidationException":
|
|
1883
|
-
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1884
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1885
|
-
default:
|
|
1886
|
-
const parsedBody = parsedOutput.body;
|
|
1887
|
-
return throwDefaultError({
|
|
1888
|
-
output,
|
|
1889
|
-
parsedBody,
|
|
1890
|
-
errorCode,
|
|
1891
|
-
});
|
|
1892
|
-
}
|
|
1893
|
-
};
|
|
1894
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException);
|
|
1895
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1896
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1897
|
-
const data = parsedOutput.body;
|
|
1898
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1899
|
-
Message: [, smithy_client_1.expectString, `message`],
|
|
1900
|
-
});
|
|
1901
|
-
Object.assign(contents, doc);
|
|
1902
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1903
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1904
|
-
...contents,
|
|
1905
|
-
});
|
|
1906
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1907
|
-
};
|
|
1908
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1909
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1910
|
-
const data = parsedOutput.body;
|
|
1911
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1912
|
-
Message: [, smithy_client_1.expectString, `message`],
|
|
1913
|
-
});
|
|
1914
|
-
Object.assign(contents, doc);
|
|
1915
|
-
const exception = new models_0_1.ConflictException({
|
|
1916
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1917
|
-
...contents,
|
|
1918
|
-
});
|
|
1919
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1920
|
-
};
|
|
1921
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1922
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1923
|
-
const data = parsedOutput.body;
|
|
1924
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1925
|
-
Message: [, smithy_client_1.expectString, `message`],
|
|
1926
|
-
});
|
|
1927
|
-
Object.assign(contents, doc);
|
|
1928
|
-
const exception = new models_0_1.InternalServerException({
|
|
1929
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1930
|
-
...contents,
|
|
1931
|
-
});
|
|
1932
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1933
|
-
};
|
|
1934
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1935
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1936
|
-
const data = parsedOutput.body;
|
|
1937
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1938
|
-
Message: [, smithy_client_1.expectString, `message`],
|
|
1939
|
-
});
|
|
1940
|
-
Object.assign(contents, doc);
|
|
1941
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1942
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1943
|
-
...contents,
|
|
1944
|
-
});
|
|
1945
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1946
|
-
};
|
|
1947
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1948
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1949
|
-
const data = parsedOutput.body;
|
|
1950
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1951
|
-
Message: [, smithy_client_1.expectString, `message`],
|
|
1952
|
-
});
|
|
1953
|
-
Object.assign(contents, doc);
|
|
1954
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1955
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1956
|
-
...contents,
|
|
1957
|
-
});
|
|
1958
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1959
|
-
};
|
|
1960
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1961
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1962
|
-
const data = parsedOutput.body;
|
|
1963
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1964
|
-
Message: [, smithy_client_1.expectString, `message`],
|
|
1965
|
-
});
|
|
1966
|
-
Object.assign(contents, doc);
|
|
1967
|
-
const exception = new models_0_1.ValidationException({
|
|
1968
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1969
|
-
...contents,
|
|
1970
|
-
});
|
|
1971
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1972
|
-
};
|
|
1973
|
-
const se___listOfResource = (input, context) => {
|
|
1974
|
-
return input
|
|
1975
|
-
.filter((e) => e != null)
|
|
1976
|
-
.map((entry) => {
|
|
1977
|
-
return se_Resource(entry, context);
|
|
1978
|
-
});
|
|
1979
|
-
};
|
|
1980
|
-
const se_DNSTargetResource = (input, context) => {
|
|
1981
|
-
return (0, smithy_client_1.take)(input, {
|
|
1982
|
-
domainName: [, , `DomainName`],
|
|
1983
|
-
hostedZoneArn: [, , `HostedZoneArn`],
|
|
1984
|
-
recordSetId: [, , `RecordSetId`],
|
|
1985
|
-
recordType: [, , `RecordType`],
|
|
1986
|
-
targetResource: [, (_) => se_TargetResource(_, context), `TargetResource`],
|
|
1987
|
-
});
|
|
1988
|
-
};
|
|
1989
|
-
const se_NLBResource = (input, context) => {
|
|
1990
|
-
return (0, smithy_client_1.take)(input, {
|
|
1991
|
-
arn: [, , `Arn`],
|
|
1992
|
-
});
|
|
1993
|
-
};
|
|
1994
|
-
const se_R53ResourceRecord = (input, context) => {
|
|
1995
|
-
return (0, smithy_client_1.take)(input, {
|
|
1996
|
-
domainName: [, , `DomainName`],
|
|
1997
|
-
recordSetId: [, , `RecordSetId`],
|
|
1998
|
-
});
|
|
1999
|
-
};
|
|
2000
|
-
const se_Resource = (input, context) => {
|
|
2001
|
-
return (0, smithy_client_1.take)(input, {
|
|
2002
|
-
componentId: [, , `ComponentId`],
|
|
2003
|
-
dnsTargetResource: [, (_) => se_DNSTargetResource(_, context), `DnsTargetResource`],
|
|
2004
|
-
readinessScopes: [, smithy_client_1._json, `ReadinessScopes`],
|
|
2005
|
-
resourceArn: [, , `ResourceArn`],
|
|
2006
|
-
});
|
|
2007
|
-
};
|
|
2008
|
-
const se_TargetResource = (input, context) => {
|
|
2009
|
-
return (0, smithy_client_1.take)(input, {
|
|
2010
|
-
nLBResource: [, (_) => se_NLBResource(_, context), `NLBResource`],
|
|
2011
|
-
r53Resource: [, (_) => se_R53ResourceRecord(_, context), `R53Resource`],
|
|
2012
|
-
});
|
|
2013
|
-
};
|
|
2014
|
-
const de___listOfCellOutput = (output, context) => {
|
|
2015
|
-
const retVal = (output || [])
|
|
2016
|
-
.filter((e) => e != null)
|
|
2017
|
-
.map((entry) => {
|
|
2018
|
-
return de_CellOutput(entry, context);
|
|
2019
|
-
});
|
|
2020
|
-
return retVal;
|
|
2021
|
-
};
|
|
2022
|
-
const de___listOfListRulesOutput = (output, context) => {
|
|
2023
|
-
const retVal = (output || [])
|
|
2024
|
-
.filter((e) => e != null)
|
|
2025
|
-
.map((entry) => {
|
|
2026
|
-
return de_ListRulesOutput(entry, context);
|
|
2027
|
-
});
|
|
2028
|
-
return retVal;
|
|
2029
|
-
};
|
|
2030
|
-
const de___listOfMessage = (output, context) => {
|
|
2031
|
-
const retVal = (output || [])
|
|
2032
|
-
.filter((e) => e != null)
|
|
2033
|
-
.map((entry) => {
|
|
2034
|
-
return de_Message(entry, context);
|
|
2035
|
-
});
|
|
2036
|
-
return retVal;
|
|
2037
|
-
};
|
|
2038
|
-
const de___listOfReadinessCheckOutput = (output, context) => {
|
|
2039
|
-
const retVal = (output || [])
|
|
2040
|
-
.filter((e) => e != null)
|
|
2041
|
-
.map((entry) => {
|
|
2042
|
-
return de_ReadinessCheckOutput(entry, context);
|
|
2043
|
-
});
|
|
2044
|
-
return retVal;
|
|
2045
|
-
};
|
|
2046
|
-
const de___listOfReadinessCheckSummary = (output, context) => {
|
|
2047
|
-
const retVal = (output || [])
|
|
2048
|
-
.filter((e) => e != null)
|
|
2049
|
-
.map((entry) => {
|
|
2050
|
-
return de_ReadinessCheckSummary(entry, context);
|
|
2051
|
-
});
|
|
2052
|
-
return retVal;
|
|
2053
|
-
};
|
|
2054
|
-
const de___listOfRecommendation = (output, context) => {
|
|
2055
|
-
const retVal = (output || [])
|
|
2056
|
-
.filter((e) => e != null)
|
|
2057
|
-
.map((entry) => {
|
|
2058
|
-
return de_Recommendation(entry, context);
|
|
2059
|
-
});
|
|
2060
|
-
return retVal;
|
|
2061
|
-
};
|
|
2062
|
-
const de___listOfRecoveryGroupOutput = (output, context) => {
|
|
2063
|
-
const retVal = (output || [])
|
|
2064
|
-
.filter((e) => e != null)
|
|
2065
|
-
.map((entry) => {
|
|
2066
|
-
return de_RecoveryGroupOutput(entry, context);
|
|
2067
|
-
});
|
|
2068
|
-
return retVal;
|
|
2069
|
-
};
|
|
2070
|
-
const de___listOfResource = (output, context) => {
|
|
2071
|
-
const retVal = (output || [])
|
|
2072
|
-
.filter((e) => e != null)
|
|
2073
|
-
.map((entry) => {
|
|
2074
|
-
return de_Resource(entry, context);
|
|
2075
|
-
});
|
|
2076
|
-
return retVal;
|
|
2077
|
-
};
|
|
2078
|
-
const de___listOfResourceResult = (output, context) => {
|
|
2079
|
-
const retVal = (output || [])
|
|
2080
|
-
.filter((e) => e != null)
|
|
2081
|
-
.map((entry) => {
|
|
2082
|
-
return de_ResourceResult(entry, context);
|
|
2083
|
-
});
|
|
2084
|
-
return retVal;
|
|
2085
|
-
};
|
|
2086
|
-
const de___listOfResourceSetOutput = (output, context) => {
|
|
2087
|
-
const retVal = (output || [])
|
|
2088
|
-
.filter((e) => e != null)
|
|
2089
|
-
.map((entry) => {
|
|
2090
|
-
return de_ResourceSetOutput(entry, context);
|
|
2091
|
-
});
|
|
2092
|
-
return retVal;
|
|
2093
|
-
};
|
|
2094
|
-
const de___listOfRuleResult = (output, context) => {
|
|
2095
|
-
const retVal = (output || [])
|
|
2096
|
-
.filter((e) => e != null)
|
|
2097
|
-
.map((entry) => {
|
|
2098
|
-
return de_RuleResult(entry, context);
|
|
2099
|
-
});
|
|
2100
|
-
return retVal;
|
|
2101
|
-
};
|
|
2102
|
-
const de_CellOutput = (output, context) => {
|
|
2103
|
-
return (0, smithy_client_1.take)(output, {
|
|
2104
|
-
CellArn: [, smithy_client_1.expectString, `cellArn`],
|
|
2105
|
-
CellName: [, smithy_client_1.expectString, `cellName`],
|
|
2106
|
-
Cells: [, smithy_client_1._json, `cells`],
|
|
2107
|
-
ParentReadinessScopes: [, smithy_client_1._json, `parentReadinessScopes`],
|
|
2108
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
2109
|
-
});
|
|
2110
|
-
};
|
|
2111
|
-
const de_DNSTargetResource = (output, context) => {
|
|
2112
|
-
return (0, smithy_client_1.take)(output, {
|
|
2113
|
-
DomainName: [, smithy_client_1.expectString, `domainName`],
|
|
2114
|
-
HostedZoneArn: [, smithy_client_1.expectString, `hostedZoneArn`],
|
|
2115
|
-
RecordSetId: [, smithy_client_1.expectString, `recordSetId`],
|
|
2116
|
-
RecordType: [, smithy_client_1.expectString, `recordType`],
|
|
2117
|
-
TargetResource: [, (_) => de_TargetResource(_, context), `targetResource`],
|
|
2118
|
-
});
|
|
2119
|
-
};
|
|
2120
|
-
const de_ListRulesOutput = (output, context) => {
|
|
2121
|
-
return (0, smithy_client_1.take)(output, {
|
|
2122
|
-
ResourceType: [, smithy_client_1.expectString, `resourceType`],
|
|
2123
|
-
RuleDescription: [, smithy_client_1.expectString, `ruleDescription`],
|
|
2124
|
-
RuleId: [, smithy_client_1.expectString, `ruleId`],
|
|
2125
|
-
});
|
|
2126
|
-
};
|
|
2127
|
-
const de_Message = (output, context) => {
|
|
2128
|
-
return (0, smithy_client_1.take)(output, {
|
|
2129
|
-
MessageText: [, smithy_client_1.expectString, `messageText`],
|
|
2130
|
-
});
|
|
2131
|
-
};
|
|
2132
|
-
const de_NLBResource = (output, context) => {
|
|
2133
|
-
return (0, smithy_client_1.take)(output, {
|
|
2134
|
-
Arn: [, smithy_client_1.expectString, `arn`],
|
|
2135
|
-
});
|
|
2136
|
-
};
|
|
2137
|
-
const de_R53ResourceRecord = (output, context) => {
|
|
2138
|
-
return (0, smithy_client_1.take)(output, {
|
|
2139
|
-
DomainName: [, smithy_client_1.expectString, `domainName`],
|
|
2140
|
-
RecordSetId: [, smithy_client_1.expectString, `recordSetId`],
|
|
2141
|
-
});
|
|
2142
|
-
};
|
|
2143
|
-
const de_ReadinessCheckOutput = (output, context) => {
|
|
2144
|
-
return (0, smithy_client_1.take)(output, {
|
|
2145
|
-
ReadinessCheckArn: [, smithy_client_1.expectString, `readinessCheckArn`],
|
|
2146
|
-
ReadinessCheckName: [, smithy_client_1.expectString, `readinessCheckName`],
|
|
2147
|
-
ResourceSet: [, smithy_client_1.expectString, `resourceSet`],
|
|
2148
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
2149
|
-
});
|
|
2150
|
-
};
|
|
2151
|
-
const de_ReadinessCheckSummary = (output, context) => {
|
|
2152
|
-
return (0, smithy_client_1.take)(output, {
|
|
2153
|
-
Readiness: [, smithy_client_1.expectString, `readiness`],
|
|
2154
|
-
ReadinessCheckName: [, smithy_client_1.expectString, `readinessCheckName`],
|
|
2155
|
-
});
|
|
2156
|
-
};
|
|
2157
|
-
const de_Recommendation = (output, context) => {
|
|
2158
|
-
return (0, smithy_client_1.take)(output, {
|
|
2159
|
-
RecommendationText: [, smithy_client_1.expectString, `recommendationText`],
|
|
2160
|
-
});
|
|
2161
|
-
};
|
|
2162
|
-
const de_RecoveryGroupOutput = (output, context) => {
|
|
2163
|
-
return (0, smithy_client_1.take)(output, {
|
|
2164
|
-
Cells: [, smithy_client_1._json, `cells`],
|
|
2165
|
-
RecoveryGroupArn: [, smithy_client_1.expectString, `recoveryGroupArn`],
|
|
2166
|
-
RecoveryGroupName: [, smithy_client_1.expectString, `recoveryGroupName`],
|
|
2167
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
2168
|
-
});
|
|
2169
|
-
};
|
|
2170
|
-
const de_Resource = (output, context) => {
|
|
2171
|
-
return (0, smithy_client_1.take)(output, {
|
|
2172
|
-
ComponentId: [, smithy_client_1.expectString, `componentId`],
|
|
2173
|
-
DnsTargetResource: [, (_) => de_DNSTargetResource(_, context), `dnsTargetResource`],
|
|
2174
|
-
ReadinessScopes: [, smithy_client_1._json, `readinessScopes`],
|
|
2175
|
-
ResourceArn: [, smithy_client_1.expectString, `resourceArn`],
|
|
2176
|
-
});
|
|
2177
|
-
};
|
|
2178
|
-
const de_ResourceResult = (output, context) => {
|
|
2179
|
-
return (0, smithy_client_1.take)(output, {
|
|
2180
|
-
ComponentId: [, smithy_client_1.expectString, `componentId`],
|
|
2181
|
-
LastCheckedTimestamp: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `lastCheckedTimestamp`],
|
|
2182
|
-
Readiness: [, smithy_client_1.expectString, `readiness`],
|
|
2183
|
-
ResourceArn: [, smithy_client_1.expectString, `resourceArn`],
|
|
2184
|
-
});
|
|
2185
|
-
};
|
|
2186
|
-
const de_ResourceSetOutput = (output, context) => {
|
|
2187
|
-
return (0, smithy_client_1.take)(output, {
|
|
2188
|
-
ResourceSetArn: [, smithy_client_1.expectString, `resourceSetArn`],
|
|
2189
|
-
ResourceSetName: [, smithy_client_1.expectString, `resourceSetName`],
|
|
2190
|
-
ResourceSetType: [, smithy_client_1.expectString, `resourceSetType`],
|
|
2191
|
-
Resources: [, (_) => de___listOfResource(_, context), `resources`],
|
|
2192
|
-
Tags: [, smithy_client_1._json, `tags`],
|
|
2193
|
-
});
|
|
2194
|
-
};
|
|
2195
|
-
const de_RuleResult = (output, context) => {
|
|
2196
|
-
return (0, smithy_client_1.take)(output, {
|
|
2197
|
-
LastCheckedTimestamp: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `lastCheckedTimestamp`],
|
|
2198
|
-
Messages: [, (_) => de___listOfMessage(_, context), `messages`],
|
|
2199
|
-
Readiness: [, smithy_client_1.expectString, `readiness`],
|
|
2200
|
-
RuleId: [, smithy_client_1.expectString, `ruleId`],
|
|
2201
|
-
});
|
|
2202
|
-
};
|
|
2203
|
-
const de_TargetResource = (output, context) => {
|
|
2204
|
-
return (0, smithy_client_1.take)(output, {
|
|
2205
|
-
NLBResource: [, (_) => de_NLBResource(_, context), `nLBResource`],
|
|
2206
|
-
R53Resource: [, (_) => de_R53ResourceRecord(_, context), `r53Resource`],
|
|
2207
|
-
});
|
|
2208
|
-
};
|
|
2209
|
-
const deserializeMetadata = (output) => ({
|
|
2210
|
-
httpStatusCode: output.statusCode,
|
|
2211
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2212
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2213
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2214
|
-
});
|
|
2215
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2216
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2217
|
-
value !== null &&
|
|
2218
|
-
value !== "" &&
|
|
2219
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
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";
|
|
2229
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2230
|
-
if (encoded.length) {
|
|
2231
|
-
return JSON.parse(encoded);
|
|
2232
|
-
}
|
|
2233
|
-
return {};
|
|
2234
|
-
});
|
|
2235
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2236
|
-
const value = await parseBody(errorBody, context);
|
|
2237
|
-
value.message = value.message ?? value.Message;
|
|
2238
|
-
return value;
|
|
2239
|
-
};
|
|
2240
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2241
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2242
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2243
|
-
let cleanValue = rawValue;
|
|
2244
|
-
if (typeof cleanValue === "number") {
|
|
2245
|
-
cleanValue = cleanValue.toString();
|
|
2246
|
-
}
|
|
2247
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2248
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2249
|
-
}
|
|
2250
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2251
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2252
|
-
}
|
|
2253
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2254
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2255
|
-
}
|
|
2256
|
-
return cleanValue;
|
|
2257
|
-
};
|
|
2258
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2259
|
-
if (headerKey !== undefined) {
|
|
2260
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2261
|
-
}
|
|
2262
|
-
if (data.code !== undefined) {
|
|
2263
|
-
return sanitizeErrorCode(data.code);
|
|
2264
|
-
}
|
|
2265
|
-
if (data["__type"] !== undefined) {
|
|
2266
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2267
|
-
}
|
|
2268
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|