@aws-sdk/client-route53-recovery-readiness 3.303.0 → 3.309.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/commands/CreateCellCommand.js +2 -2
- package/dist-cjs/commands/CreateCrossAccountAuthorizationCommand.js +2 -2
- package/dist-cjs/commands/CreateReadinessCheckCommand.js +2 -2
- package/dist-cjs/commands/CreateRecoveryGroupCommand.js +2 -2
- package/dist-cjs/commands/CreateResourceSetCommand.js +2 -2
- package/dist-cjs/commands/DeleteCellCommand.js +2 -2
- package/dist-cjs/commands/DeleteCrossAccountAuthorizationCommand.js +2 -2
- package/dist-cjs/commands/DeleteReadinessCheckCommand.js +2 -2
- package/dist-cjs/commands/DeleteRecoveryGroupCommand.js +2 -2
- package/dist-cjs/commands/DeleteResourceSetCommand.js +2 -2
- package/dist-cjs/commands/GetArchitectureRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/GetCellCommand.js +2 -2
- package/dist-cjs/commands/GetCellReadinessSummaryCommand.js +2 -2
- package/dist-cjs/commands/GetReadinessCheckCommand.js +2 -2
- package/dist-cjs/commands/GetReadinessCheckResourceStatusCommand.js +2 -2
- package/dist-cjs/commands/GetReadinessCheckStatusCommand.js +2 -2
- package/dist-cjs/commands/GetRecoveryGroupCommand.js +2 -2
- package/dist-cjs/commands/GetRecoveryGroupReadinessSummaryCommand.js +2 -2
- package/dist-cjs/commands/GetResourceSetCommand.js +2 -2
- package/dist-cjs/commands/ListCellsCommand.js +2 -2
- package/dist-cjs/commands/ListCrossAccountAuthorizationsCommand.js +2 -2
- package/dist-cjs/commands/ListReadinessChecksCommand.js +2 -2
- package/dist-cjs/commands/ListRecoveryGroupsCommand.js +2 -2
- package/dist-cjs/commands/ListResourceSetsCommand.js +2 -2
- package/dist-cjs/commands/ListRulesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourcesCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateCellCommand.js +2 -2
- package/dist-cjs/commands/UpdateReadinessCheckCommand.js +2 -2
- package/dist-cjs/commands/UpdateRecoveryGroupCommand.js +2 -2
- package/dist-cjs/commands/UpdateResourceSetCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +463 -477
- package/dist-es/commands/CreateCellCommand.js +3 -3
- package/dist-es/commands/CreateCrossAccountAuthorizationCommand.js +3 -3
- package/dist-es/commands/CreateReadinessCheckCommand.js +3 -3
- package/dist-es/commands/CreateRecoveryGroupCommand.js +3 -3
- package/dist-es/commands/CreateResourceSetCommand.js +3 -3
- package/dist-es/commands/DeleteCellCommand.js +3 -3
- package/dist-es/commands/DeleteCrossAccountAuthorizationCommand.js +3 -3
- package/dist-es/commands/DeleteReadinessCheckCommand.js +3 -3
- package/dist-es/commands/DeleteRecoveryGroupCommand.js +3 -3
- package/dist-es/commands/DeleteResourceSetCommand.js +3 -3
- package/dist-es/commands/GetArchitectureRecommendationsCommand.js +3 -3
- package/dist-es/commands/GetCellCommand.js +3 -3
- package/dist-es/commands/GetCellReadinessSummaryCommand.js +3 -3
- package/dist-es/commands/GetReadinessCheckCommand.js +3 -3
- package/dist-es/commands/GetReadinessCheckResourceStatusCommand.js +3 -3
- package/dist-es/commands/GetReadinessCheckStatusCommand.js +3 -3
- package/dist-es/commands/GetRecoveryGroupCommand.js +3 -3
- package/dist-es/commands/GetRecoveryGroupReadinessSummaryCommand.js +3 -3
- package/dist-es/commands/GetResourceSetCommand.js +3 -3
- package/dist-es/commands/ListCellsCommand.js +3 -3
- package/dist-es/commands/ListCrossAccountAuthorizationsCommand.js +3 -3
- package/dist-es/commands/ListReadinessChecksCommand.js +3 -3
- package/dist-es/commands/ListRecoveryGroupsCommand.js +3 -3
- package/dist-es/commands/ListResourceSetsCommand.js +3 -3
- package/dist-es/commands/ListRulesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourcesCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateCellCommand.js +3 -3
- package/dist-es/commands/UpdateReadinessCheckCommand.js +3 -3
- package/dist-es/commands/UpdateRecoveryGroupCommand.js +3 -3
- package/dist-es/commands/UpdateResourceSetCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +397 -411
- package/dist-types/protocols/Aws_restJson1.d.ts +256 -64
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +64 -64
- package/package.json +29 -29
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
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
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Route53RecoveryReadinessServiceException_1 = require("../models/Route53RecoveryReadinessServiceException");
|
|
9
|
-
const
|
|
9
|
+
const se_CreateCellCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
@@ -15,8 +15,8 @@ const serializeAws_restJson1CreateCellCommand = async (input, context) => {
|
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
17
|
...(input.CellName != null && { cellName: input.CellName }),
|
|
18
|
-
...(input.Cells != null && { cells:
|
|
19
|
-
...(input.Tags != null && { tags:
|
|
18
|
+
...(input.Cells != null && { cells: se___listOf__string(input.Cells, context) }),
|
|
19
|
+
...(input.Tags != null && { tags: se_Tags(input.Tags, context) }),
|
|
20
20
|
});
|
|
21
21
|
return new protocol_http_1.HttpRequest({
|
|
22
22
|
protocol,
|
|
@@ -28,8 +28,8 @@ const serializeAws_restJson1CreateCellCommand = async (input, context) => {
|
|
|
28
28
|
body,
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
exports.
|
|
32
|
-
const
|
|
31
|
+
exports.se_CreateCellCommand = se_CreateCellCommand;
|
|
32
|
+
const se_CreateCrossAccountAuthorizationCommand = async (input, context) => {
|
|
33
33
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
34
34
|
const headers = {
|
|
35
35
|
"content-type": "application/json",
|
|
@@ -49,8 +49,8 @@ const serializeAws_restJson1CreateCrossAccountAuthorizationCommand = async (inpu
|
|
|
49
49
|
body,
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
|
-
exports.
|
|
53
|
-
const
|
|
52
|
+
exports.se_CreateCrossAccountAuthorizationCommand = se_CreateCrossAccountAuthorizationCommand;
|
|
53
|
+
const se_CreateReadinessCheckCommand = async (input, context) => {
|
|
54
54
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
55
55
|
const headers = {
|
|
56
56
|
"content-type": "application/json",
|
|
@@ -60,7 +60,7 @@ const serializeAws_restJson1CreateReadinessCheckCommand = async (input, context)
|
|
|
60
60
|
body = JSON.stringify({
|
|
61
61
|
...(input.ReadinessCheckName != null && { readinessCheckName: input.ReadinessCheckName }),
|
|
62
62
|
...(input.ResourceSetName != null && { resourceSetName: input.ResourceSetName }),
|
|
63
|
-
...(input.Tags != null && { tags:
|
|
63
|
+
...(input.Tags != null && { tags: se_Tags(input.Tags, context) }),
|
|
64
64
|
});
|
|
65
65
|
return new protocol_http_1.HttpRequest({
|
|
66
66
|
protocol,
|
|
@@ -72,8 +72,8 @@ const serializeAws_restJson1CreateReadinessCheckCommand = async (input, context)
|
|
|
72
72
|
body,
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
|
-
exports.
|
|
76
|
-
const
|
|
75
|
+
exports.se_CreateReadinessCheckCommand = se_CreateReadinessCheckCommand;
|
|
76
|
+
const se_CreateRecoveryGroupCommand = async (input, context) => {
|
|
77
77
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
78
78
|
const headers = {
|
|
79
79
|
"content-type": "application/json",
|
|
@@ -81,9 +81,9 @@ const serializeAws_restJson1CreateRecoveryGroupCommand = async (input, context)
|
|
|
81
81
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recoverygroups";
|
|
82
82
|
let body;
|
|
83
83
|
body = JSON.stringify({
|
|
84
|
-
...(input.Cells != null && { cells:
|
|
84
|
+
...(input.Cells != null && { cells: se___listOf__string(input.Cells, context) }),
|
|
85
85
|
...(input.RecoveryGroupName != null && { recoveryGroupName: input.RecoveryGroupName }),
|
|
86
|
-
...(input.Tags != null && { tags:
|
|
86
|
+
...(input.Tags != null && { tags: se_Tags(input.Tags, context) }),
|
|
87
87
|
});
|
|
88
88
|
return new protocol_http_1.HttpRequest({
|
|
89
89
|
protocol,
|
|
@@ -95,8 +95,8 @@ const serializeAws_restJson1CreateRecoveryGroupCommand = async (input, context)
|
|
|
95
95
|
body,
|
|
96
96
|
});
|
|
97
97
|
};
|
|
98
|
-
exports.
|
|
99
|
-
const
|
|
98
|
+
exports.se_CreateRecoveryGroupCommand = se_CreateRecoveryGroupCommand;
|
|
99
|
+
const se_CreateResourceSetCommand = async (input, context) => {
|
|
100
100
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
101
101
|
const headers = {
|
|
102
102
|
"content-type": "application/json",
|
|
@@ -106,8 +106,8 @@ const serializeAws_restJson1CreateResourceSetCommand = async (input, context) =>
|
|
|
106
106
|
body = JSON.stringify({
|
|
107
107
|
...(input.ResourceSetName != null && { resourceSetName: input.ResourceSetName }),
|
|
108
108
|
...(input.ResourceSetType != null && { resourceSetType: input.ResourceSetType }),
|
|
109
|
-
...(input.Resources != null && { resources:
|
|
110
|
-
...(input.Tags != null && { tags:
|
|
109
|
+
...(input.Resources != null && { resources: se___listOfResource(input.Resources, context) }),
|
|
110
|
+
...(input.Tags != null && { tags: se_Tags(input.Tags, context) }),
|
|
111
111
|
});
|
|
112
112
|
return new protocol_http_1.HttpRequest({
|
|
113
113
|
protocol,
|
|
@@ -119,8 +119,8 @@ const serializeAws_restJson1CreateResourceSetCommand = async (input, context) =>
|
|
|
119
119
|
body,
|
|
120
120
|
});
|
|
121
121
|
};
|
|
122
|
-
exports.
|
|
123
|
-
const
|
|
122
|
+
exports.se_CreateResourceSetCommand = se_CreateResourceSetCommand;
|
|
123
|
+
const se_DeleteCellCommand = async (input, context) => {
|
|
124
124
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
125
125
|
const headers = {};
|
|
126
126
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cells/{CellName}";
|
|
@@ -136,8 +136,8 @@ const serializeAws_restJson1DeleteCellCommand = async (input, context) => {
|
|
|
136
136
|
body,
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
|
-
exports.
|
|
140
|
-
const
|
|
139
|
+
exports.se_DeleteCellCommand = se_DeleteCellCommand;
|
|
140
|
+
const se_DeleteCrossAccountAuthorizationCommand = async (input, context) => {
|
|
141
141
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
142
142
|
const headers = {};
|
|
143
143
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -154,8 +154,8 @@ const serializeAws_restJson1DeleteCrossAccountAuthorizationCommand = async (inpu
|
|
|
154
154
|
body,
|
|
155
155
|
});
|
|
156
156
|
};
|
|
157
|
-
exports.
|
|
158
|
-
const
|
|
157
|
+
exports.se_DeleteCrossAccountAuthorizationCommand = se_DeleteCrossAccountAuthorizationCommand;
|
|
158
|
+
const se_DeleteReadinessCheckCommand = async (input, context) => {
|
|
159
159
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
160
160
|
const headers = {};
|
|
161
161
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/readinesschecks/{ReadinessCheckName}";
|
|
@@ -171,8 +171,8 @@ const serializeAws_restJson1DeleteReadinessCheckCommand = async (input, context)
|
|
|
171
171
|
body,
|
|
172
172
|
});
|
|
173
173
|
};
|
|
174
|
-
exports.
|
|
175
|
-
const
|
|
174
|
+
exports.se_DeleteReadinessCheckCommand = se_DeleteReadinessCheckCommand;
|
|
175
|
+
const se_DeleteRecoveryGroupCommand = async (input, context) => {
|
|
176
176
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
177
177
|
const headers = {};
|
|
178
178
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recoverygroups/{RecoveryGroupName}";
|
|
@@ -188,8 +188,8 @@ const serializeAws_restJson1DeleteRecoveryGroupCommand = async (input, context)
|
|
|
188
188
|
body,
|
|
189
189
|
});
|
|
190
190
|
};
|
|
191
|
-
exports.
|
|
192
|
-
const
|
|
191
|
+
exports.se_DeleteRecoveryGroupCommand = se_DeleteRecoveryGroupCommand;
|
|
192
|
+
const se_DeleteResourceSetCommand = async (input, context) => {
|
|
193
193
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
194
194
|
const headers = {};
|
|
195
195
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcesets/{ResourceSetName}";
|
|
@@ -205,8 +205,8 @@ const serializeAws_restJson1DeleteResourceSetCommand = async (input, context) =>
|
|
|
205
205
|
body,
|
|
206
206
|
});
|
|
207
207
|
};
|
|
208
|
-
exports.
|
|
209
|
-
const
|
|
208
|
+
exports.se_DeleteResourceSetCommand = se_DeleteResourceSetCommand;
|
|
209
|
+
const se_GetArchitectureRecommendationsCommand = async (input, context) => {
|
|
210
210
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
211
211
|
const headers = {};
|
|
212
212
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -228,8 +228,8 @@ const serializeAws_restJson1GetArchitectureRecommendationsCommand = async (input
|
|
|
228
228
|
body,
|
|
229
229
|
});
|
|
230
230
|
};
|
|
231
|
-
exports.
|
|
232
|
-
const
|
|
231
|
+
exports.se_GetArchitectureRecommendationsCommand = se_GetArchitectureRecommendationsCommand;
|
|
232
|
+
const se_GetCellCommand = async (input, context) => {
|
|
233
233
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
234
234
|
const headers = {};
|
|
235
235
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cells/{CellName}";
|
|
@@ -245,8 +245,8 @@ const serializeAws_restJson1GetCellCommand = async (input, context) => {
|
|
|
245
245
|
body,
|
|
246
246
|
});
|
|
247
247
|
};
|
|
248
|
-
exports.
|
|
249
|
-
const
|
|
248
|
+
exports.se_GetCellCommand = se_GetCellCommand;
|
|
249
|
+
const se_GetCellReadinessSummaryCommand = async (input, context) => {
|
|
250
250
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
251
251
|
const headers = {};
|
|
252
252
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cellreadiness/{CellName}";
|
|
@@ -267,8 +267,8 @@ const serializeAws_restJson1GetCellReadinessSummaryCommand = async (input, conte
|
|
|
267
267
|
body,
|
|
268
268
|
});
|
|
269
269
|
};
|
|
270
|
-
exports.
|
|
271
|
-
const
|
|
270
|
+
exports.se_GetCellReadinessSummaryCommand = se_GetCellReadinessSummaryCommand;
|
|
271
|
+
const se_GetReadinessCheckCommand = async (input, context) => {
|
|
272
272
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
273
273
|
const headers = {};
|
|
274
274
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/readinesschecks/{ReadinessCheckName}";
|
|
@@ -284,8 +284,8 @@ const serializeAws_restJson1GetReadinessCheckCommand = async (input, context) =>
|
|
|
284
284
|
body,
|
|
285
285
|
});
|
|
286
286
|
};
|
|
287
|
-
exports.
|
|
288
|
-
const
|
|
287
|
+
exports.se_GetReadinessCheckCommand = se_GetReadinessCheckCommand;
|
|
288
|
+
const se_GetReadinessCheckResourceStatusCommand = async (input, context) => {
|
|
289
289
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
290
290
|
const headers = {};
|
|
291
291
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -308,8 +308,8 @@ const serializeAws_restJson1GetReadinessCheckResourceStatusCommand = async (inpu
|
|
|
308
308
|
body,
|
|
309
309
|
});
|
|
310
310
|
};
|
|
311
|
-
exports.
|
|
312
|
-
const
|
|
311
|
+
exports.se_GetReadinessCheckResourceStatusCommand = se_GetReadinessCheckResourceStatusCommand;
|
|
312
|
+
const se_GetReadinessCheckStatusCommand = async (input, context) => {
|
|
313
313
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
314
314
|
const headers = {};
|
|
315
315
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -331,8 +331,8 @@ const serializeAws_restJson1GetReadinessCheckStatusCommand = async (input, conte
|
|
|
331
331
|
body,
|
|
332
332
|
});
|
|
333
333
|
};
|
|
334
|
-
exports.
|
|
335
|
-
const
|
|
334
|
+
exports.se_GetReadinessCheckStatusCommand = se_GetReadinessCheckStatusCommand;
|
|
335
|
+
const se_GetRecoveryGroupCommand = async (input, context) => {
|
|
336
336
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
337
337
|
const headers = {};
|
|
338
338
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recoverygroups/{RecoveryGroupName}";
|
|
@@ -348,8 +348,8 @@ const serializeAws_restJson1GetRecoveryGroupCommand = async (input, context) =>
|
|
|
348
348
|
body,
|
|
349
349
|
});
|
|
350
350
|
};
|
|
351
|
-
exports.
|
|
352
|
-
const
|
|
351
|
+
exports.se_GetRecoveryGroupCommand = se_GetRecoveryGroupCommand;
|
|
352
|
+
const se_GetRecoveryGroupReadinessSummaryCommand = async (input, context) => {
|
|
353
353
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
354
354
|
const headers = {};
|
|
355
355
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -371,8 +371,8 @@ const serializeAws_restJson1GetRecoveryGroupReadinessSummaryCommand = async (inp
|
|
|
371
371
|
body,
|
|
372
372
|
});
|
|
373
373
|
};
|
|
374
|
-
exports.
|
|
375
|
-
const
|
|
374
|
+
exports.se_GetRecoveryGroupReadinessSummaryCommand = se_GetRecoveryGroupReadinessSummaryCommand;
|
|
375
|
+
const se_GetResourceSetCommand = async (input, context) => {
|
|
376
376
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
377
377
|
const headers = {};
|
|
378
378
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcesets/{ResourceSetName}";
|
|
@@ -388,8 +388,8 @@ const serializeAws_restJson1GetResourceSetCommand = async (input, context) => {
|
|
|
388
388
|
body,
|
|
389
389
|
});
|
|
390
390
|
};
|
|
391
|
-
exports.
|
|
392
|
-
const
|
|
391
|
+
exports.se_GetResourceSetCommand = se_GetResourceSetCommand;
|
|
392
|
+
const se_ListCellsCommand = async (input, context) => {
|
|
393
393
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
394
394
|
const headers = {};
|
|
395
395
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cells";
|
|
@@ -409,8 +409,8 @@ const serializeAws_restJson1ListCellsCommand = async (input, context) => {
|
|
|
409
409
|
body,
|
|
410
410
|
});
|
|
411
411
|
};
|
|
412
|
-
exports.
|
|
413
|
-
const
|
|
412
|
+
exports.se_ListCellsCommand = se_ListCellsCommand;
|
|
413
|
+
const se_ListCrossAccountAuthorizationsCommand = async (input, context) => {
|
|
414
414
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
415
415
|
const headers = {};
|
|
416
416
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crossaccountauthorizations";
|
|
@@ -430,8 +430,8 @@ const serializeAws_restJson1ListCrossAccountAuthorizationsCommand = async (input
|
|
|
430
430
|
body,
|
|
431
431
|
});
|
|
432
432
|
};
|
|
433
|
-
exports.
|
|
434
|
-
const
|
|
433
|
+
exports.se_ListCrossAccountAuthorizationsCommand = se_ListCrossAccountAuthorizationsCommand;
|
|
434
|
+
const se_ListReadinessChecksCommand = async (input, context) => {
|
|
435
435
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
436
436
|
const headers = {};
|
|
437
437
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/readinesschecks";
|
|
@@ -451,8 +451,8 @@ const serializeAws_restJson1ListReadinessChecksCommand = async (input, context)
|
|
|
451
451
|
body,
|
|
452
452
|
});
|
|
453
453
|
};
|
|
454
|
-
exports.
|
|
455
|
-
const
|
|
454
|
+
exports.se_ListReadinessChecksCommand = se_ListReadinessChecksCommand;
|
|
455
|
+
const se_ListRecoveryGroupsCommand = async (input, context) => {
|
|
456
456
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
457
457
|
const headers = {};
|
|
458
458
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recoverygroups";
|
|
@@ -472,8 +472,8 @@ const serializeAws_restJson1ListRecoveryGroupsCommand = async (input, context) =
|
|
|
472
472
|
body,
|
|
473
473
|
});
|
|
474
474
|
};
|
|
475
|
-
exports.
|
|
476
|
-
const
|
|
475
|
+
exports.se_ListRecoveryGroupsCommand = se_ListRecoveryGroupsCommand;
|
|
476
|
+
const se_ListResourceSetsCommand = async (input, context) => {
|
|
477
477
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
478
478
|
const headers = {};
|
|
479
479
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcesets";
|
|
@@ -493,8 +493,8 @@ const serializeAws_restJson1ListResourceSetsCommand = async (input, context) =>
|
|
|
493
493
|
body,
|
|
494
494
|
});
|
|
495
495
|
};
|
|
496
|
-
exports.
|
|
497
|
-
const
|
|
496
|
+
exports.se_ListResourceSetsCommand = se_ListResourceSetsCommand;
|
|
497
|
+
const se_ListRulesCommand = async (input, context) => {
|
|
498
498
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
499
499
|
const headers = {};
|
|
500
500
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules";
|
|
@@ -515,8 +515,8 @@ const serializeAws_restJson1ListRulesCommand = async (input, context) => {
|
|
|
515
515
|
body,
|
|
516
516
|
});
|
|
517
517
|
};
|
|
518
|
-
exports.
|
|
519
|
-
const
|
|
518
|
+
exports.se_ListRulesCommand = se_ListRulesCommand;
|
|
519
|
+
const se_ListTagsForResourcesCommand = async (input, context) => {
|
|
520
520
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
521
521
|
const headers = {};
|
|
522
522
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -532,8 +532,8 @@ const serializeAws_restJson1ListTagsForResourcesCommand = async (input, context)
|
|
|
532
532
|
body,
|
|
533
533
|
});
|
|
534
534
|
};
|
|
535
|
-
exports.
|
|
536
|
-
const
|
|
535
|
+
exports.se_ListTagsForResourcesCommand = se_ListTagsForResourcesCommand;
|
|
536
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
537
537
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
538
538
|
const headers = {
|
|
539
539
|
"content-type": "application/json",
|
|
@@ -542,7 +542,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
542
542
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
543
543
|
let body;
|
|
544
544
|
body = JSON.stringify({
|
|
545
|
-
...(input.Tags != null && { tags:
|
|
545
|
+
...(input.Tags != null && { tags: se_Tags(input.Tags, context) }),
|
|
546
546
|
});
|
|
547
547
|
return new protocol_http_1.HttpRequest({
|
|
548
548
|
protocol,
|
|
@@ -554,8 +554,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
554
554
|
body,
|
|
555
555
|
});
|
|
556
556
|
};
|
|
557
|
-
exports.
|
|
558
|
-
const
|
|
557
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
558
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
559
559
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
560
560
|
const headers = {};
|
|
561
561
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -578,8 +578,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
578
578
|
body,
|
|
579
579
|
});
|
|
580
580
|
};
|
|
581
|
-
exports.
|
|
582
|
-
const
|
|
581
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
582
|
+
const se_UpdateCellCommand = async (input, context) => {
|
|
583
583
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
584
584
|
const headers = {
|
|
585
585
|
"content-type": "application/json",
|
|
@@ -588,7 +588,7 @@ const serializeAws_restJson1UpdateCellCommand = async (input, context) => {
|
|
|
588
588
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CellName", () => input.CellName, "{CellName}", false);
|
|
589
589
|
let body;
|
|
590
590
|
body = JSON.stringify({
|
|
591
|
-
...(input.Cells != null && { cells:
|
|
591
|
+
...(input.Cells != null && { cells: se___listOf__string(input.Cells, context) }),
|
|
592
592
|
});
|
|
593
593
|
return new protocol_http_1.HttpRequest({
|
|
594
594
|
protocol,
|
|
@@ -600,8 +600,8 @@ const serializeAws_restJson1UpdateCellCommand = async (input, context) => {
|
|
|
600
600
|
body,
|
|
601
601
|
});
|
|
602
602
|
};
|
|
603
|
-
exports.
|
|
604
|
-
const
|
|
603
|
+
exports.se_UpdateCellCommand = se_UpdateCellCommand;
|
|
604
|
+
const se_UpdateReadinessCheckCommand = async (input, context) => {
|
|
605
605
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
606
606
|
const headers = {
|
|
607
607
|
"content-type": "application/json",
|
|
@@ -622,8 +622,8 @@ const serializeAws_restJson1UpdateReadinessCheckCommand = async (input, context)
|
|
|
622
622
|
body,
|
|
623
623
|
});
|
|
624
624
|
};
|
|
625
|
-
exports.
|
|
626
|
-
const
|
|
625
|
+
exports.se_UpdateReadinessCheckCommand = se_UpdateReadinessCheckCommand;
|
|
626
|
+
const se_UpdateRecoveryGroupCommand = async (input, context) => {
|
|
627
627
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
628
628
|
const headers = {
|
|
629
629
|
"content-type": "application/json",
|
|
@@ -632,7 +632,7 @@ const serializeAws_restJson1UpdateRecoveryGroupCommand = async (input, context)
|
|
|
632
632
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
633
633
|
let body;
|
|
634
634
|
body = JSON.stringify({
|
|
635
|
-
...(input.Cells != null && { cells:
|
|
635
|
+
...(input.Cells != null && { cells: se___listOf__string(input.Cells, context) }),
|
|
636
636
|
});
|
|
637
637
|
return new protocol_http_1.HttpRequest({
|
|
638
638
|
protocol,
|
|
@@ -644,8 +644,8 @@ const serializeAws_restJson1UpdateRecoveryGroupCommand = async (input, context)
|
|
|
644
644
|
body,
|
|
645
645
|
});
|
|
646
646
|
};
|
|
647
|
-
exports.
|
|
648
|
-
const
|
|
647
|
+
exports.se_UpdateRecoveryGroupCommand = se_UpdateRecoveryGroupCommand;
|
|
648
|
+
const se_UpdateResourceSetCommand = async (input, context) => {
|
|
649
649
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
650
650
|
const headers = {
|
|
651
651
|
"content-type": "application/json",
|
|
@@ -655,7 +655,7 @@ const serializeAws_restJson1UpdateResourceSetCommand = async (input, context) =>
|
|
|
655
655
|
let body;
|
|
656
656
|
body = JSON.stringify({
|
|
657
657
|
...(input.ResourceSetType != null && { resourceSetType: input.ResourceSetType }),
|
|
658
|
-
...(input.Resources != null && { resources:
|
|
658
|
+
...(input.Resources != null && { resources: se___listOfResource(input.Resources, context) }),
|
|
659
659
|
});
|
|
660
660
|
return new protocol_http_1.HttpRequest({
|
|
661
661
|
protocol,
|
|
@@ -667,10 +667,10 @@ const serializeAws_restJson1UpdateResourceSetCommand = async (input, context) =>
|
|
|
667
667
|
body,
|
|
668
668
|
});
|
|
669
669
|
};
|
|
670
|
-
exports.
|
|
671
|
-
const
|
|
670
|
+
exports.se_UpdateResourceSetCommand = se_UpdateResourceSetCommand;
|
|
671
|
+
const de_CreateCellCommand = async (output, context) => {
|
|
672
672
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
673
|
-
return
|
|
673
|
+
return de_CreateCellCommandError(output, context);
|
|
674
674
|
}
|
|
675
675
|
const contents = map({
|
|
676
676
|
$metadata: deserializeMetadata(output),
|
|
@@ -683,18 +683,18 @@ const deserializeAws_restJson1CreateCellCommand = async (output, context) => {
|
|
|
683
683
|
contents.CellName = (0, smithy_client_1.expectString)(data.cellName);
|
|
684
684
|
}
|
|
685
685
|
if (data.cells != null) {
|
|
686
|
-
contents.Cells =
|
|
686
|
+
contents.Cells = de___listOf__string(data.cells, context);
|
|
687
687
|
}
|
|
688
688
|
if (data.parentReadinessScopes != null) {
|
|
689
|
-
contents.ParentReadinessScopes =
|
|
689
|
+
contents.ParentReadinessScopes = de___listOf__string(data.parentReadinessScopes, context);
|
|
690
690
|
}
|
|
691
691
|
if (data.tags != null) {
|
|
692
|
-
contents.Tags =
|
|
692
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
693
693
|
}
|
|
694
694
|
return contents;
|
|
695
695
|
};
|
|
696
|
-
exports.
|
|
697
|
-
const
|
|
696
|
+
exports.de_CreateCellCommand = de_CreateCellCommand;
|
|
697
|
+
const de_CreateCellCommandError = async (output, context) => {
|
|
698
698
|
const parsedOutput = {
|
|
699
699
|
...output,
|
|
700
700
|
body: await parseErrorBody(output.body, context),
|
|
@@ -703,19 +703,19 @@ const deserializeAws_restJson1CreateCellCommandError = async (output, context) =
|
|
|
703
703
|
switch (errorCode) {
|
|
704
704
|
case "AccessDeniedException":
|
|
705
705
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
706
|
-
throw await
|
|
706
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
707
707
|
case "ConflictException":
|
|
708
708
|
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
709
|
-
throw await
|
|
709
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
710
710
|
case "InternalServerException":
|
|
711
711
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
712
|
-
throw await
|
|
712
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
713
713
|
case "ThrottlingException":
|
|
714
714
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
715
|
-
throw await
|
|
715
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
716
716
|
case "ValidationException":
|
|
717
717
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
718
|
-
throw await
|
|
718
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
719
719
|
default:
|
|
720
720
|
const parsedBody = parsedOutput.body;
|
|
721
721
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -726,9 +726,9 @@ const deserializeAws_restJson1CreateCellCommandError = async (output, context) =
|
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
728
|
};
|
|
729
|
-
const
|
|
729
|
+
const de_CreateCrossAccountAuthorizationCommand = async (output, context) => {
|
|
730
730
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
731
|
-
return
|
|
731
|
+
return de_CreateCrossAccountAuthorizationCommandError(output, context);
|
|
732
732
|
}
|
|
733
733
|
const contents = map({
|
|
734
734
|
$metadata: deserializeMetadata(output),
|
|
@@ -739,8 +739,8 @@ const deserializeAws_restJson1CreateCrossAccountAuthorizationCommand = async (ou
|
|
|
739
739
|
}
|
|
740
740
|
return contents;
|
|
741
741
|
};
|
|
742
|
-
exports.
|
|
743
|
-
const
|
|
742
|
+
exports.de_CreateCrossAccountAuthorizationCommand = de_CreateCrossAccountAuthorizationCommand;
|
|
743
|
+
const de_CreateCrossAccountAuthorizationCommandError = async (output, context) => {
|
|
744
744
|
const parsedOutput = {
|
|
745
745
|
...output,
|
|
746
746
|
body: await parseErrorBody(output.body, context),
|
|
@@ -749,19 +749,19 @@ const deserializeAws_restJson1CreateCrossAccountAuthorizationCommandError = asyn
|
|
|
749
749
|
switch (errorCode) {
|
|
750
750
|
case "AccessDeniedException":
|
|
751
751
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
752
|
-
throw await
|
|
752
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
753
753
|
case "ConflictException":
|
|
754
754
|
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
755
|
-
throw await
|
|
755
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
756
756
|
case "InternalServerException":
|
|
757
757
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
758
|
-
throw await
|
|
758
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
759
759
|
case "ThrottlingException":
|
|
760
760
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
761
|
-
throw await
|
|
761
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
762
762
|
case "ValidationException":
|
|
763
763
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
764
|
-
throw await
|
|
764
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
765
765
|
default:
|
|
766
766
|
const parsedBody = parsedOutput.body;
|
|
767
767
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -772,9 +772,9 @@ const deserializeAws_restJson1CreateCrossAccountAuthorizationCommandError = asyn
|
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
774
|
};
|
|
775
|
-
const
|
|
775
|
+
const de_CreateReadinessCheckCommand = async (output, context) => {
|
|
776
776
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
777
|
-
return
|
|
777
|
+
return de_CreateReadinessCheckCommandError(output, context);
|
|
778
778
|
}
|
|
779
779
|
const contents = map({
|
|
780
780
|
$metadata: deserializeMetadata(output),
|
|
@@ -790,12 +790,12 @@ const deserializeAws_restJson1CreateReadinessCheckCommand = async (output, conte
|
|
|
790
790
|
contents.ResourceSet = (0, smithy_client_1.expectString)(data.resourceSet);
|
|
791
791
|
}
|
|
792
792
|
if (data.tags != null) {
|
|
793
|
-
contents.Tags =
|
|
793
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
794
794
|
}
|
|
795
795
|
return contents;
|
|
796
796
|
};
|
|
797
|
-
exports.
|
|
798
|
-
const
|
|
797
|
+
exports.de_CreateReadinessCheckCommand = de_CreateReadinessCheckCommand;
|
|
798
|
+
const de_CreateReadinessCheckCommandError = async (output, context) => {
|
|
799
799
|
const parsedOutput = {
|
|
800
800
|
...output,
|
|
801
801
|
body: await parseErrorBody(output.body, context),
|
|
@@ -804,19 +804,19 @@ const deserializeAws_restJson1CreateReadinessCheckCommandError = async (output,
|
|
|
804
804
|
switch (errorCode) {
|
|
805
805
|
case "AccessDeniedException":
|
|
806
806
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
807
|
-
throw await
|
|
807
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
808
808
|
case "ConflictException":
|
|
809
809
|
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
810
|
-
throw await
|
|
810
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
811
811
|
case "InternalServerException":
|
|
812
812
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
813
|
-
throw await
|
|
813
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
814
814
|
case "ThrottlingException":
|
|
815
815
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
816
|
-
throw await
|
|
816
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
817
817
|
case "ValidationException":
|
|
818
818
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
819
|
-
throw await
|
|
819
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
820
820
|
default:
|
|
821
821
|
const parsedBody = parsedOutput.body;
|
|
822
822
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -827,16 +827,16 @@ const deserializeAws_restJson1CreateReadinessCheckCommandError = async (output,
|
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
829
|
};
|
|
830
|
-
const
|
|
830
|
+
const de_CreateRecoveryGroupCommand = async (output, context) => {
|
|
831
831
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
832
|
-
return
|
|
832
|
+
return de_CreateRecoveryGroupCommandError(output, context);
|
|
833
833
|
}
|
|
834
834
|
const contents = map({
|
|
835
835
|
$metadata: deserializeMetadata(output),
|
|
836
836
|
});
|
|
837
837
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
838
838
|
if (data.cells != null) {
|
|
839
|
-
contents.Cells =
|
|
839
|
+
contents.Cells = de___listOf__string(data.cells, context);
|
|
840
840
|
}
|
|
841
841
|
if (data.recoveryGroupArn != null) {
|
|
842
842
|
contents.RecoveryGroupArn = (0, smithy_client_1.expectString)(data.recoveryGroupArn);
|
|
@@ -845,12 +845,12 @@ const deserializeAws_restJson1CreateRecoveryGroupCommand = async (output, contex
|
|
|
845
845
|
contents.RecoveryGroupName = (0, smithy_client_1.expectString)(data.recoveryGroupName);
|
|
846
846
|
}
|
|
847
847
|
if (data.tags != null) {
|
|
848
|
-
contents.Tags =
|
|
848
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
849
849
|
}
|
|
850
850
|
return contents;
|
|
851
851
|
};
|
|
852
|
-
exports.
|
|
853
|
-
const
|
|
852
|
+
exports.de_CreateRecoveryGroupCommand = de_CreateRecoveryGroupCommand;
|
|
853
|
+
const de_CreateRecoveryGroupCommandError = async (output, context) => {
|
|
854
854
|
const parsedOutput = {
|
|
855
855
|
...output,
|
|
856
856
|
body: await parseErrorBody(output.body, context),
|
|
@@ -859,19 +859,19 @@ const deserializeAws_restJson1CreateRecoveryGroupCommandError = async (output, c
|
|
|
859
859
|
switch (errorCode) {
|
|
860
860
|
case "AccessDeniedException":
|
|
861
861
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
862
|
-
throw await
|
|
862
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
863
863
|
case "ConflictException":
|
|
864
864
|
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
865
|
-
throw await
|
|
865
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
866
866
|
case "InternalServerException":
|
|
867
867
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
868
|
-
throw await
|
|
868
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
869
869
|
case "ThrottlingException":
|
|
870
870
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
871
|
-
throw await
|
|
871
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
872
872
|
case "ValidationException":
|
|
873
873
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
874
|
-
throw await
|
|
874
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
875
875
|
default:
|
|
876
876
|
const parsedBody = parsedOutput.body;
|
|
877
877
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -882,9 +882,9 @@ const deserializeAws_restJson1CreateRecoveryGroupCommandError = async (output, c
|
|
|
882
882
|
});
|
|
883
883
|
}
|
|
884
884
|
};
|
|
885
|
-
const
|
|
885
|
+
const de_CreateResourceSetCommand = async (output, context) => {
|
|
886
886
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
|
-
return
|
|
887
|
+
return de_CreateResourceSetCommandError(output, context);
|
|
888
888
|
}
|
|
889
889
|
const contents = map({
|
|
890
890
|
$metadata: deserializeMetadata(output),
|
|
@@ -900,15 +900,15 @@ const deserializeAws_restJson1CreateResourceSetCommand = async (output, context)
|
|
|
900
900
|
contents.ResourceSetType = (0, smithy_client_1.expectString)(data.resourceSetType);
|
|
901
901
|
}
|
|
902
902
|
if (data.resources != null) {
|
|
903
|
-
contents.Resources =
|
|
903
|
+
contents.Resources = de___listOfResource(data.resources, context);
|
|
904
904
|
}
|
|
905
905
|
if (data.tags != null) {
|
|
906
|
-
contents.Tags =
|
|
906
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
907
907
|
}
|
|
908
908
|
return contents;
|
|
909
909
|
};
|
|
910
|
-
exports.
|
|
911
|
-
const
|
|
910
|
+
exports.de_CreateResourceSetCommand = de_CreateResourceSetCommand;
|
|
911
|
+
const de_CreateResourceSetCommandError = async (output, context) => {
|
|
912
912
|
const parsedOutput = {
|
|
913
913
|
...output,
|
|
914
914
|
body: await parseErrorBody(output.body, context),
|
|
@@ -917,19 +917,19 @@ const deserializeAws_restJson1CreateResourceSetCommandError = async (output, con
|
|
|
917
917
|
switch (errorCode) {
|
|
918
918
|
case "AccessDeniedException":
|
|
919
919
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
920
|
-
throw await
|
|
920
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
921
921
|
case "ConflictException":
|
|
922
922
|
case "com.amazonaws.route53recoveryreadiness#ConflictException":
|
|
923
|
-
throw await
|
|
923
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
924
924
|
case "InternalServerException":
|
|
925
925
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
926
|
-
throw await
|
|
926
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
927
927
|
case "ThrottlingException":
|
|
928
928
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
929
|
-
throw await
|
|
929
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
930
930
|
case "ValidationException":
|
|
931
931
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
932
|
-
throw await
|
|
932
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
933
933
|
default:
|
|
934
934
|
const parsedBody = parsedOutput.body;
|
|
935
935
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -940,9 +940,9 @@ const deserializeAws_restJson1CreateResourceSetCommandError = async (output, con
|
|
|
940
940
|
});
|
|
941
941
|
}
|
|
942
942
|
};
|
|
943
|
-
const
|
|
943
|
+
const de_DeleteCellCommand = async (output, context) => {
|
|
944
944
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
945
|
-
return
|
|
945
|
+
return de_DeleteCellCommandError(output, context);
|
|
946
946
|
}
|
|
947
947
|
const contents = map({
|
|
948
948
|
$metadata: deserializeMetadata(output),
|
|
@@ -950,8 +950,8 @@ const deserializeAws_restJson1DeleteCellCommand = async (output, context) => {
|
|
|
950
950
|
await collectBody(output.body, context);
|
|
951
951
|
return contents;
|
|
952
952
|
};
|
|
953
|
-
exports.
|
|
954
|
-
const
|
|
953
|
+
exports.de_DeleteCellCommand = de_DeleteCellCommand;
|
|
954
|
+
const de_DeleteCellCommandError = async (output, context) => {
|
|
955
955
|
const parsedOutput = {
|
|
956
956
|
...output,
|
|
957
957
|
body: await parseErrorBody(output.body, context),
|
|
@@ -960,19 +960,19 @@ const deserializeAws_restJson1DeleteCellCommandError = async (output, context) =
|
|
|
960
960
|
switch (errorCode) {
|
|
961
961
|
case "AccessDeniedException":
|
|
962
962
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
963
|
-
throw await
|
|
963
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
964
964
|
case "InternalServerException":
|
|
965
965
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
966
|
-
throw await
|
|
966
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
967
967
|
case "ResourceNotFoundException":
|
|
968
968
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
969
|
-
throw await
|
|
969
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
970
970
|
case "ThrottlingException":
|
|
971
971
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
972
|
-
throw await
|
|
972
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
973
973
|
case "ValidationException":
|
|
974
974
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
975
|
-
throw await
|
|
975
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
976
976
|
default:
|
|
977
977
|
const parsedBody = parsedOutput.body;
|
|
978
978
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -983,9 +983,9 @@ const deserializeAws_restJson1DeleteCellCommandError = async (output, context) =
|
|
|
983
983
|
});
|
|
984
984
|
}
|
|
985
985
|
};
|
|
986
|
-
const
|
|
986
|
+
const de_DeleteCrossAccountAuthorizationCommand = async (output, context) => {
|
|
987
987
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
988
|
-
return
|
|
988
|
+
return de_DeleteCrossAccountAuthorizationCommandError(output, context);
|
|
989
989
|
}
|
|
990
990
|
const contents = map({
|
|
991
991
|
$metadata: deserializeMetadata(output),
|
|
@@ -993,8 +993,8 @@ const deserializeAws_restJson1DeleteCrossAccountAuthorizationCommand = async (ou
|
|
|
993
993
|
await collectBody(output.body, context);
|
|
994
994
|
return contents;
|
|
995
995
|
};
|
|
996
|
-
exports.
|
|
997
|
-
const
|
|
996
|
+
exports.de_DeleteCrossAccountAuthorizationCommand = de_DeleteCrossAccountAuthorizationCommand;
|
|
997
|
+
const de_DeleteCrossAccountAuthorizationCommandError = async (output, context) => {
|
|
998
998
|
const parsedOutput = {
|
|
999
999
|
...output,
|
|
1000
1000
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1003,16 +1003,16 @@ const deserializeAws_restJson1DeleteCrossAccountAuthorizationCommandError = asyn
|
|
|
1003
1003
|
switch (errorCode) {
|
|
1004
1004
|
case "AccessDeniedException":
|
|
1005
1005
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1006
|
-
throw await
|
|
1006
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1007
1007
|
case "InternalServerException":
|
|
1008
1008
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1009
|
-
throw await
|
|
1009
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1010
1010
|
case "ThrottlingException":
|
|
1011
1011
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1012
|
-
throw await
|
|
1012
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1013
1013
|
case "ValidationException":
|
|
1014
1014
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1015
|
-
throw await
|
|
1015
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1016
1016
|
default:
|
|
1017
1017
|
const parsedBody = parsedOutput.body;
|
|
1018
1018
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1023,9 +1023,9 @@ const deserializeAws_restJson1DeleteCrossAccountAuthorizationCommandError = asyn
|
|
|
1023
1023
|
});
|
|
1024
1024
|
}
|
|
1025
1025
|
};
|
|
1026
|
-
const
|
|
1026
|
+
const de_DeleteReadinessCheckCommand = async (output, context) => {
|
|
1027
1027
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1028
|
-
return
|
|
1028
|
+
return de_DeleteReadinessCheckCommandError(output, context);
|
|
1029
1029
|
}
|
|
1030
1030
|
const contents = map({
|
|
1031
1031
|
$metadata: deserializeMetadata(output),
|
|
@@ -1033,8 +1033,8 @@ const deserializeAws_restJson1DeleteReadinessCheckCommand = async (output, conte
|
|
|
1033
1033
|
await collectBody(output.body, context);
|
|
1034
1034
|
return contents;
|
|
1035
1035
|
};
|
|
1036
|
-
exports.
|
|
1037
|
-
const
|
|
1036
|
+
exports.de_DeleteReadinessCheckCommand = de_DeleteReadinessCheckCommand;
|
|
1037
|
+
const de_DeleteReadinessCheckCommandError = async (output, context) => {
|
|
1038
1038
|
const parsedOutput = {
|
|
1039
1039
|
...output,
|
|
1040
1040
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1043,19 +1043,19 @@ const deserializeAws_restJson1DeleteReadinessCheckCommandError = async (output,
|
|
|
1043
1043
|
switch (errorCode) {
|
|
1044
1044
|
case "AccessDeniedException":
|
|
1045
1045
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1046
|
-
throw await
|
|
1046
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1047
1047
|
case "InternalServerException":
|
|
1048
1048
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1049
|
-
throw await
|
|
1049
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1050
1050
|
case "ResourceNotFoundException":
|
|
1051
1051
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1052
|
-
throw await
|
|
1052
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1053
1053
|
case "ThrottlingException":
|
|
1054
1054
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1055
|
-
throw await
|
|
1055
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1056
1056
|
case "ValidationException":
|
|
1057
1057
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1058
|
-
throw await
|
|
1058
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1059
1059
|
default:
|
|
1060
1060
|
const parsedBody = parsedOutput.body;
|
|
1061
1061
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1066,9 +1066,9 @@ const deserializeAws_restJson1DeleteReadinessCheckCommandError = async (output,
|
|
|
1066
1066
|
});
|
|
1067
1067
|
}
|
|
1068
1068
|
};
|
|
1069
|
-
const
|
|
1069
|
+
const de_DeleteRecoveryGroupCommand = async (output, context) => {
|
|
1070
1070
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1071
|
-
return
|
|
1071
|
+
return de_DeleteRecoveryGroupCommandError(output, context);
|
|
1072
1072
|
}
|
|
1073
1073
|
const contents = map({
|
|
1074
1074
|
$metadata: deserializeMetadata(output),
|
|
@@ -1076,8 +1076,8 @@ const deserializeAws_restJson1DeleteRecoveryGroupCommand = async (output, contex
|
|
|
1076
1076
|
await collectBody(output.body, context);
|
|
1077
1077
|
return contents;
|
|
1078
1078
|
};
|
|
1079
|
-
exports.
|
|
1080
|
-
const
|
|
1079
|
+
exports.de_DeleteRecoveryGroupCommand = de_DeleteRecoveryGroupCommand;
|
|
1080
|
+
const de_DeleteRecoveryGroupCommandError = async (output, context) => {
|
|
1081
1081
|
const parsedOutput = {
|
|
1082
1082
|
...output,
|
|
1083
1083
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1086,19 +1086,19 @@ const deserializeAws_restJson1DeleteRecoveryGroupCommandError = async (output, c
|
|
|
1086
1086
|
switch (errorCode) {
|
|
1087
1087
|
case "AccessDeniedException":
|
|
1088
1088
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1089
|
-
throw await
|
|
1089
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1090
1090
|
case "InternalServerException":
|
|
1091
1091
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1092
|
-
throw await
|
|
1092
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1093
1093
|
case "ResourceNotFoundException":
|
|
1094
1094
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1095
|
-
throw await
|
|
1095
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1096
1096
|
case "ThrottlingException":
|
|
1097
1097
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1098
|
-
throw await
|
|
1098
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1099
1099
|
case "ValidationException":
|
|
1100
1100
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1101
|
-
throw await
|
|
1101
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1102
1102
|
default:
|
|
1103
1103
|
const parsedBody = parsedOutput.body;
|
|
1104
1104
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1109,9 +1109,9 @@ const deserializeAws_restJson1DeleteRecoveryGroupCommandError = async (output, c
|
|
|
1109
1109
|
});
|
|
1110
1110
|
}
|
|
1111
1111
|
};
|
|
1112
|
-
const
|
|
1112
|
+
const de_DeleteResourceSetCommand = async (output, context) => {
|
|
1113
1113
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1114
|
-
return
|
|
1114
|
+
return de_DeleteResourceSetCommandError(output, context);
|
|
1115
1115
|
}
|
|
1116
1116
|
const contents = map({
|
|
1117
1117
|
$metadata: deserializeMetadata(output),
|
|
@@ -1119,8 +1119,8 @@ const deserializeAws_restJson1DeleteResourceSetCommand = async (output, context)
|
|
|
1119
1119
|
await collectBody(output.body, context);
|
|
1120
1120
|
return contents;
|
|
1121
1121
|
};
|
|
1122
|
-
exports.
|
|
1123
|
-
const
|
|
1122
|
+
exports.de_DeleteResourceSetCommand = de_DeleteResourceSetCommand;
|
|
1123
|
+
const de_DeleteResourceSetCommandError = async (output, context) => {
|
|
1124
1124
|
const parsedOutput = {
|
|
1125
1125
|
...output,
|
|
1126
1126
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1129,19 +1129,19 @@ const deserializeAws_restJson1DeleteResourceSetCommandError = async (output, con
|
|
|
1129
1129
|
switch (errorCode) {
|
|
1130
1130
|
case "AccessDeniedException":
|
|
1131
1131
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1132
|
-
throw await
|
|
1132
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1133
1133
|
case "InternalServerException":
|
|
1134
1134
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1135
|
-
throw await
|
|
1135
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1136
1136
|
case "ResourceNotFoundException":
|
|
1137
1137
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1138
|
-
throw await
|
|
1138
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1139
1139
|
case "ThrottlingException":
|
|
1140
1140
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1141
|
-
throw await
|
|
1141
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1142
1142
|
case "ValidationException":
|
|
1143
1143
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1144
|
-
throw await
|
|
1144
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1145
1145
|
default:
|
|
1146
1146
|
const parsedBody = parsedOutput.body;
|
|
1147
1147
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1152,9 +1152,9 @@ const deserializeAws_restJson1DeleteResourceSetCommandError = async (output, con
|
|
|
1152
1152
|
});
|
|
1153
1153
|
}
|
|
1154
1154
|
};
|
|
1155
|
-
const
|
|
1155
|
+
const de_GetArchitectureRecommendationsCommand = async (output, context) => {
|
|
1156
1156
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1157
|
-
return
|
|
1157
|
+
return de_GetArchitectureRecommendationsCommandError(output, context);
|
|
1158
1158
|
}
|
|
1159
1159
|
const contents = map({
|
|
1160
1160
|
$metadata: deserializeMetadata(output),
|
|
@@ -1167,12 +1167,12 @@ const deserializeAws_restJson1GetArchitectureRecommendationsCommand = async (out
|
|
|
1167
1167
|
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1168
1168
|
}
|
|
1169
1169
|
if (data.recommendations != null) {
|
|
1170
|
-
contents.Recommendations =
|
|
1170
|
+
contents.Recommendations = de___listOfRecommendation(data.recommendations, context);
|
|
1171
1171
|
}
|
|
1172
1172
|
return contents;
|
|
1173
1173
|
};
|
|
1174
|
-
exports.
|
|
1175
|
-
const
|
|
1174
|
+
exports.de_GetArchitectureRecommendationsCommand = de_GetArchitectureRecommendationsCommand;
|
|
1175
|
+
const de_GetArchitectureRecommendationsCommandError = async (output, context) => {
|
|
1176
1176
|
const parsedOutput = {
|
|
1177
1177
|
...output,
|
|
1178
1178
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1181,19 +1181,19 @@ const deserializeAws_restJson1GetArchitectureRecommendationsCommandError = async
|
|
|
1181
1181
|
switch (errorCode) {
|
|
1182
1182
|
case "AccessDeniedException":
|
|
1183
1183
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1184
|
-
throw await
|
|
1184
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1185
1185
|
case "InternalServerException":
|
|
1186
1186
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1187
|
-
throw await
|
|
1187
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1188
1188
|
case "ResourceNotFoundException":
|
|
1189
1189
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1190
|
-
throw await
|
|
1190
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1191
1191
|
case "ThrottlingException":
|
|
1192
1192
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1193
|
-
throw await
|
|
1193
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1194
1194
|
case "ValidationException":
|
|
1195
1195
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1196
|
-
throw await
|
|
1196
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1197
1197
|
default:
|
|
1198
1198
|
const parsedBody = parsedOutput.body;
|
|
1199
1199
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1204,9 +1204,9 @@ const deserializeAws_restJson1GetArchitectureRecommendationsCommandError = async
|
|
|
1204
1204
|
});
|
|
1205
1205
|
}
|
|
1206
1206
|
};
|
|
1207
|
-
const
|
|
1207
|
+
const de_GetCellCommand = async (output, context) => {
|
|
1208
1208
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1209
|
-
return
|
|
1209
|
+
return de_GetCellCommandError(output, context);
|
|
1210
1210
|
}
|
|
1211
1211
|
const contents = map({
|
|
1212
1212
|
$metadata: deserializeMetadata(output),
|
|
@@ -1219,18 +1219,18 @@ const deserializeAws_restJson1GetCellCommand = async (output, context) => {
|
|
|
1219
1219
|
contents.CellName = (0, smithy_client_1.expectString)(data.cellName);
|
|
1220
1220
|
}
|
|
1221
1221
|
if (data.cells != null) {
|
|
1222
|
-
contents.Cells =
|
|
1222
|
+
contents.Cells = de___listOf__string(data.cells, context);
|
|
1223
1223
|
}
|
|
1224
1224
|
if (data.parentReadinessScopes != null) {
|
|
1225
|
-
contents.ParentReadinessScopes =
|
|
1225
|
+
contents.ParentReadinessScopes = de___listOf__string(data.parentReadinessScopes, context);
|
|
1226
1226
|
}
|
|
1227
1227
|
if (data.tags != null) {
|
|
1228
|
-
contents.Tags =
|
|
1228
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
1229
1229
|
}
|
|
1230
1230
|
return contents;
|
|
1231
1231
|
};
|
|
1232
|
-
exports.
|
|
1233
|
-
const
|
|
1232
|
+
exports.de_GetCellCommand = de_GetCellCommand;
|
|
1233
|
+
const de_GetCellCommandError = async (output, context) => {
|
|
1234
1234
|
const parsedOutput = {
|
|
1235
1235
|
...output,
|
|
1236
1236
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1239,19 +1239,19 @@ const deserializeAws_restJson1GetCellCommandError = async (output, context) => {
|
|
|
1239
1239
|
switch (errorCode) {
|
|
1240
1240
|
case "AccessDeniedException":
|
|
1241
1241
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1242
|
-
throw await
|
|
1242
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1243
1243
|
case "InternalServerException":
|
|
1244
1244
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1245
|
-
throw await
|
|
1245
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1246
1246
|
case "ResourceNotFoundException":
|
|
1247
1247
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1248
|
-
throw await
|
|
1248
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1249
1249
|
case "ThrottlingException":
|
|
1250
1250
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1251
|
-
throw await
|
|
1251
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1252
1252
|
case "ValidationException":
|
|
1253
1253
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1254
|
-
throw await
|
|
1254
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1255
1255
|
default:
|
|
1256
1256
|
const parsedBody = parsedOutput.body;
|
|
1257
1257
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1262,9 +1262,9 @@ const deserializeAws_restJson1GetCellCommandError = async (output, context) => {
|
|
|
1262
1262
|
});
|
|
1263
1263
|
}
|
|
1264
1264
|
};
|
|
1265
|
-
const
|
|
1265
|
+
const de_GetCellReadinessSummaryCommand = async (output, context) => {
|
|
1266
1266
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1267
|
-
return
|
|
1267
|
+
return de_GetCellReadinessSummaryCommandError(output, context);
|
|
1268
1268
|
}
|
|
1269
1269
|
const contents = map({
|
|
1270
1270
|
$metadata: deserializeMetadata(output),
|
|
@@ -1277,12 +1277,12 @@ const deserializeAws_restJson1GetCellReadinessSummaryCommand = async (output, co
|
|
|
1277
1277
|
contents.Readiness = (0, smithy_client_1.expectString)(data.readiness);
|
|
1278
1278
|
}
|
|
1279
1279
|
if (data.readinessChecks != null) {
|
|
1280
|
-
contents.ReadinessChecks =
|
|
1280
|
+
contents.ReadinessChecks = de___listOfReadinessCheckSummary(data.readinessChecks, context);
|
|
1281
1281
|
}
|
|
1282
1282
|
return contents;
|
|
1283
1283
|
};
|
|
1284
|
-
exports.
|
|
1285
|
-
const
|
|
1284
|
+
exports.de_GetCellReadinessSummaryCommand = de_GetCellReadinessSummaryCommand;
|
|
1285
|
+
const de_GetCellReadinessSummaryCommandError = async (output, context) => {
|
|
1286
1286
|
const parsedOutput = {
|
|
1287
1287
|
...output,
|
|
1288
1288
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1291,19 +1291,19 @@ const deserializeAws_restJson1GetCellReadinessSummaryCommandError = async (outpu
|
|
|
1291
1291
|
switch (errorCode) {
|
|
1292
1292
|
case "AccessDeniedException":
|
|
1293
1293
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1294
|
-
throw await
|
|
1294
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1295
1295
|
case "InternalServerException":
|
|
1296
1296
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1297
|
-
throw await
|
|
1297
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1298
1298
|
case "ResourceNotFoundException":
|
|
1299
1299
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1300
|
-
throw await
|
|
1300
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1301
1301
|
case "ThrottlingException":
|
|
1302
1302
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1303
|
-
throw await
|
|
1303
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1304
1304
|
case "ValidationException":
|
|
1305
1305
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1306
|
-
throw await
|
|
1306
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1307
1307
|
default:
|
|
1308
1308
|
const parsedBody = parsedOutput.body;
|
|
1309
1309
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1314,9 +1314,9 @@ const deserializeAws_restJson1GetCellReadinessSummaryCommandError = async (outpu
|
|
|
1314
1314
|
});
|
|
1315
1315
|
}
|
|
1316
1316
|
};
|
|
1317
|
-
const
|
|
1317
|
+
const de_GetReadinessCheckCommand = async (output, context) => {
|
|
1318
1318
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1319
|
-
return
|
|
1319
|
+
return de_GetReadinessCheckCommandError(output, context);
|
|
1320
1320
|
}
|
|
1321
1321
|
const contents = map({
|
|
1322
1322
|
$metadata: deserializeMetadata(output),
|
|
@@ -1332,12 +1332,12 @@ const deserializeAws_restJson1GetReadinessCheckCommand = async (output, context)
|
|
|
1332
1332
|
contents.ResourceSet = (0, smithy_client_1.expectString)(data.resourceSet);
|
|
1333
1333
|
}
|
|
1334
1334
|
if (data.tags != null) {
|
|
1335
|
-
contents.Tags =
|
|
1335
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
1336
1336
|
}
|
|
1337
1337
|
return contents;
|
|
1338
1338
|
};
|
|
1339
|
-
exports.
|
|
1340
|
-
const
|
|
1339
|
+
exports.de_GetReadinessCheckCommand = de_GetReadinessCheckCommand;
|
|
1340
|
+
const de_GetReadinessCheckCommandError = async (output, context) => {
|
|
1341
1341
|
const parsedOutput = {
|
|
1342
1342
|
...output,
|
|
1343
1343
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1346,19 +1346,19 @@ const deserializeAws_restJson1GetReadinessCheckCommandError = async (output, con
|
|
|
1346
1346
|
switch (errorCode) {
|
|
1347
1347
|
case "AccessDeniedException":
|
|
1348
1348
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1349
|
-
throw await
|
|
1349
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1350
1350
|
case "InternalServerException":
|
|
1351
1351
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1352
|
-
throw await
|
|
1352
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1353
1353
|
case "ResourceNotFoundException":
|
|
1354
1354
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1355
|
-
throw await
|
|
1355
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1356
1356
|
case "ThrottlingException":
|
|
1357
1357
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1358
|
-
throw await
|
|
1358
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1359
1359
|
case "ValidationException":
|
|
1360
1360
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1361
|
-
throw await
|
|
1361
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1362
1362
|
default:
|
|
1363
1363
|
const parsedBody = parsedOutput.body;
|
|
1364
1364
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1369,9 +1369,9 @@ const deserializeAws_restJson1GetReadinessCheckCommandError = async (output, con
|
|
|
1369
1369
|
});
|
|
1370
1370
|
}
|
|
1371
1371
|
};
|
|
1372
|
-
const
|
|
1372
|
+
const de_GetReadinessCheckResourceStatusCommand = async (output, context) => {
|
|
1373
1373
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1374
|
-
return
|
|
1374
|
+
return de_GetReadinessCheckResourceStatusCommandError(output, context);
|
|
1375
1375
|
}
|
|
1376
1376
|
const contents = map({
|
|
1377
1377
|
$metadata: deserializeMetadata(output),
|
|
@@ -1384,12 +1384,12 @@ const deserializeAws_restJson1GetReadinessCheckResourceStatusCommand = async (ou
|
|
|
1384
1384
|
contents.Readiness = (0, smithy_client_1.expectString)(data.readiness);
|
|
1385
1385
|
}
|
|
1386
1386
|
if (data.rules != null) {
|
|
1387
|
-
contents.Rules =
|
|
1387
|
+
contents.Rules = de___listOfRuleResult(data.rules, context);
|
|
1388
1388
|
}
|
|
1389
1389
|
return contents;
|
|
1390
1390
|
};
|
|
1391
|
-
exports.
|
|
1392
|
-
const
|
|
1391
|
+
exports.de_GetReadinessCheckResourceStatusCommand = de_GetReadinessCheckResourceStatusCommand;
|
|
1392
|
+
const de_GetReadinessCheckResourceStatusCommandError = async (output, context) => {
|
|
1393
1393
|
const parsedOutput = {
|
|
1394
1394
|
...output,
|
|
1395
1395
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1398,19 +1398,19 @@ const deserializeAws_restJson1GetReadinessCheckResourceStatusCommandError = asyn
|
|
|
1398
1398
|
switch (errorCode) {
|
|
1399
1399
|
case "AccessDeniedException":
|
|
1400
1400
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1401
|
-
throw await
|
|
1401
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1402
1402
|
case "InternalServerException":
|
|
1403
1403
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1404
|
-
throw await
|
|
1404
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1405
1405
|
case "ResourceNotFoundException":
|
|
1406
1406
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1407
|
-
throw await
|
|
1407
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1408
1408
|
case "ThrottlingException":
|
|
1409
1409
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1410
|
-
throw await
|
|
1410
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1411
1411
|
case "ValidationException":
|
|
1412
1412
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1413
|
-
throw await
|
|
1413
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1414
1414
|
default:
|
|
1415
1415
|
const parsedBody = parsedOutput.body;
|
|
1416
1416
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1421,16 +1421,16 @@ const deserializeAws_restJson1GetReadinessCheckResourceStatusCommandError = asyn
|
|
|
1421
1421
|
});
|
|
1422
1422
|
}
|
|
1423
1423
|
};
|
|
1424
|
-
const
|
|
1424
|
+
const de_GetReadinessCheckStatusCommand = async (output, context) => {
|
|
1425
1425
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1426
|
-
return
|
|
1426
|
+
return de_GetReadinessCheckStatusCommandError(output, context);
|
|
1427
1427
|
}
|
|
1428
1428
|
const contents = map({
|
|
1429
1429
|
$metadata: deserializeMetadata(output),
|
|
1430
1430
|
});
|
|
1431
1431
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1432
1432
|
if (data.messages != null) {
|
|
1433
|
-
contents.Messages =
|
|
1433
|
+
contents.Messages = de___listOfMessage(data.messages, context);
|
|
1434
1434
|
}
|
|
1435
1435
|
if (data.nextToken != null) {
|
|
1436
1436
|
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
@@ -1439,12 +1439,12 @@ const deserializeAws_restJson1GetReadinessCheckStatusCommand = async (output, co
|
|
|
1439
1439
|
contents.Readiness = (0, smithy_client_1.expectString)(data.readiness);
|
|
1440
1440
|
}
|
|
1441
1441
|
if (data.resources != null) {
|
|
1442
|
-
contents.Resources =
|
|
1442
|
+
contents.Resources = de___listOfResourceResult(data.resources, context);
|
|
1443
1443
|
}
|
|
1444
1444
|
return contents;
|
|
1445
1445
|
};
|
|
1446
|
-
exports.
|
|
1447
|
-
const
|
|
1446
|
+
exports.de_GetReadinessCheckStatusCommand = de_GetReadinessCheckStatusCommand;
|
|
1447
|
+
const de_GetReadinessCheckStatusCommandError = async (output, context) => {
|
|
1448
1448
|
const parsedOutput = {
|
|
1449
1449
|
...output,
|
|
1450
1450
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1453,19 +1453,19 @@ const deserializeAws_restJson1GetReadinessCheckStatusCommandError = async (outpu
|
|
|
1453
1453
|
switch (errorCode) {
|
|
1454
1454
|
case "AccessDeniedException":
|
|
1455
1455
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1456
|
-
throw await
|
|
1456
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1457
1457
|
case "InternalServerException":
|
|
1458
1458
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1459
|
-
throw await
|
|
1459
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1460
1460
|
case "ResourceNotFoundException":
|
|
1461
1461
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1462
|
-
throw await
|
|
1462
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1463
1463
|
case "ThrottlingException":
|
|
1464
1464
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1465
|
-
throw await
|
|
1465
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1466
1466
|
case "ValidationException":
|
|
1467
1467
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1468
|
-
throw await
|
|
1468
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1469
1469
|
default:
|
|
1470
1470
|
const parsedBody = parsedOutput.body;
|
|
1471
1471
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1476,16 +1476,16 @@ const deserializeAws_restJson1GetReadinessCheckStatusCommandError = async (outpu
|
|
|
1476
1476
|
});
|
|
1477
1477
|
}
|
|
1478
1478
|
};
|
|
1479
|
-
const
|
|
1479
|
+
const de_GetRecoveryGroupCommand = async (output, context) => {
|
|
1480
1480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1481
|
-
return
|
|
1481
|
+
return de_GetRecoveryGroupCommandError(output, context);
|
|
1482
1482
|
}
|
|
1483
1483
|
const contents = map({
|
|
1484
1484
|
$metadata: deserializeMetadata(output),
|
|
1485
1485
|
});
|
|
1486
1486
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1487
1487
|
if (data.cells != null) {
|
|
1488
|
-
contents.Cells =
|
|
1488
|
+
contents.Cells = de___listOf__string(data.cells, context);
|
|
1489
1489
|
}
|
|
1490
1490
|
if (data.recoveryGroupArn != null) {
|
|
1491
1491
|
contents.RecoveryGroupArn = (0, smithy_client_1.expectString)(data.recoveryGroupArn);
|
|
@@ -1494,12 +1494,12 @@ const deserializeAws_restJson1GetRecoveryGroupCommand = async (output, context)
|
|
|
1494
1494
|
contents.RecoveryGroupName = (0, smithy_client_1.expectString)(data.recoveryGroupName);
|
|
1495
1495
|
}
|
|
1496
1496
|
if (data.tags != null) {
|
|
1497
|
-
contents.Tags =
|
|
1497
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
1498
1498
|
}
|
|
1499
1499
|
return contents;
|
|
1500
1500
|
};
|
|
1501
|
-
exports.
|
|
1502
|
-
const
|
|
1501
|
+
exports.de_GetRecoveryGroupCommand = de_GetRecoveryGroupCommand;
|
|
1502
|
+
const de_GetRecoveryGroupCommandError = async (output, context) => {
|
|
1503
1503
|
const parsedOutput = {
|
|
1504
1504
|
...output,
|
|
1505
1505
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1508,19 +1508,19 @@ const deserializeAws_restJson1GetRecoveryGroupCommandError = async (output, cont
|
|
|
1508
1508
|
switch (errorCode) {
|
|
1509
1509
|
case "AccessDeniedException":
|
|
1510
1510
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1511
|
-
throw await
|
|
1511
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1512
1512
|
case "InternalServerException":
|
|
1513
1513
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1514
|
-
throw await
|
|
1514
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1515
1515
|
case "ResourceNotFoundException":
|
|
1516
1516
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1517
|
-
throw await
|
|
1517
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1518
1518
|
case "ThrottlingException":
|
|
1519
1519
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1520
|
-
throw await
|
|
1520
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1521
1521
|
case "ValidationException":
|
|
1522
1522
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1523
|
-
throw await
|
|
1523
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1524
1524
|
default:
|
|
1525
1525
|
const parsedBody = parsedOutput.body;
|
|
1526
1526
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1531,9 +1531,9 @@ const deserializeAws_restJson1GetRecoveryGroupCommandError = async (output, cont
|
|
|
1531
1531
|
});
|
|
1532
1532
|
}
|
|
1533
1533
|
};
|
|
1534
|
-
const
|
|
1534
|
+
const de_GetRecoveryGroupReadinessSummaryCommand = async (output, context) => {
|
|
1535
1535
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1536
|
-
return
|
|
1536
|
+
return de_GetRecoveryGroupReadinessSummaryCommandError(output, context);
|
|
1537
1537
|
}
|
|
1538
1538
|
const contents = map({
|
|
1539
1539
|
$metadata: deserializeMetadata(output),
|
|
@@ -1546,12 +1546,12 @@ const deserializeAws_restJson1GetRecoveryGroupReadinessSummaryCommand = async (o
|
|
|
1546
1546
|
contents.Readiness = (0, smithy_client_1.expectString)(data.readiness);
|
|
1547
1547
|
}
|
|
1548
1548
|
if (data.readinessChecks != null) {
|
|
1549
|
-
contents.ReadinessChecks =
|
|
1549
|
+
contents.ReadinessChecks = de___listOfReadinessCheckSummary(data.readinessChecks, context);
|
|
1550
1550
|
}
|
|
1551
1551
|
return contents;
|
|
1552
1552
|
};
|
|
1553
|
-
exports.
|
|
1554
|
-
const
|
|
1553
|
+
exports.de_GetRecoveryGroupReadinessSummaryCommand = de_GetRecoveryGroupReadinessSummaryCommand;
|
|
1554
|
+
const de_GetRecoveryGroupReadinessSummaryCommandError = async (output, context) => {
|
|
1555
1555
|
const parsedOutput = {
|
|
1556
1556
|
...output,
|
|
1557
1557
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1560,19 +1560,19 @@ const deserializeAws_restJson1GetRecoveryGroupReadinessSummaryCommandError = asy
|
|
|
1560
1560
|
switch (errorCode) {
|
|
1561
1561
|
case "AccessDeniedException":
|
|
1562
1562
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1563
|
-
throw await
|
|
1563
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1564
1564
|
case "InternalServerException":
|
|
1565
1565
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1566
|
-
throw await
|
|
1566
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1567
1567
|
case "ResourceNotFoundException":
|
|
1568
1568
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1569
|
-
throw await
|
|
1569
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1570
1570
|
case "ThrottlingException":
|
|
1571
1571
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1572
|
-
throw await
|
|
1572
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1573
1573
|
case "ValidationException":
|
|
1574
1574
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1575
|
-
throw await
|
|
1575
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1576
1576
|
default:
|
|
1577
1577
|
const parsedBody = parsedOutput.body;
|
|
1578
1578
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1583,9 +1583,9 @@ const deserializeAws_restJson1GetRecoveryGroupReadinessSummaryCommandError = asy
|
|
|
1583
1583
|
});
|
|
1584
1584
|
}
|
|
1585
1585
|
};
|
|
1586
|
-
const
|
|
1586
|
+
const de_GetResourceSetCommand = async (output, context) => {
|
|
1587
1587
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1588
|
-
return
|
|
1588
|
+
return de_GetResourceSetCommandError(output, context);
|
|
1589
1589
|
}
|
|
1590
1590
|
const contents = map({
|
|
1591
1591
|
$metadata: deserializeMetadata(output),
|
|
@@ -1601,15 +1601,15 @@ const deserializeAws_restJson1GetResourceSetCommand = async (output, context) =>
|
|
|
1601
1601
|
contents.ResourceSetType = (0, smithy_client_1.expectString)(data.resourceSetType);
|
|
1602
1602
|
}
|
|
1603
1603
|
if (data.resources != null) {
|
|
1604
|
-
contents.Resources =
|
|
1604
|
+
contents.Resources = de___listOfResource(data.resources, context);
|
|
1605
1605
|
}
|
|
1606
1606
|
if (data.tags != null) {
|
|
1607
|
-
contents.Tags =
|
|
1607
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
1608
1608
|
}
|
|
1609
1609
|
return contents;
|
|
1610
1610
|
};
|
|
1611
|
-
exports.
|
|
1612
|
-
const
|
|
1611
|
+
exports.de_GetResourceSetCommand = de_GetResourceSetCommand;
|
|
1612
|
+
const de_GetResourceSetCommandError = async (output, context) => {
|
|
1613
1613
|
const parsedOutput = {
|
|
1614
1614
|
...output,
|
|
1615
1615
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1618,19 +1618,19 @@ const deserializeAws_restJson1GetResourceSetCommandError = async (output, contex
|
|
|
1618
1618
|
switch (errorCode) {
|
|
1619
1619
|
case "AccessDeniedException":
|
|
1620
1620
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1621
|
-
throw await
|
|
1621
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1622
1622
|
case "InternalServerException":
|
|
1623
1623
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1624
|
-
throw await
|
|
1624
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1625
1625
|
case "ResourceNotFoundException":
|
|
1626
1626
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1627
|
-
throw await
|
|
1627
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1628
1628
|
case "ThrottlingException":
|
|
1629
1629
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1630
|
-
throw await
|
|
1630
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1631
1631
|
case "ValidationException":
|
|
1632
1632
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1633
|
-
throw await
|
|
1633
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1634
1634
|
default:
|
|
1635
1635
|
const parsedBody = parsedOutput.body;
|
|
1636
1636
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1641,24 +1641,24 @@ const deserializeAws_restJson1GetResourceSetCommandError = async (output, contex
|
|
|
1641
1641
|
});
|
|
1642
1642
|
}
|
|
1643
1643
|
};
|
|
1644
|
-
const
|
|
1644
|
+
const de_ListCellsCommand = async (output, context) => {
|
|
1645
1645
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1646
|
-
return
|
|
1646
|
+
return de_ListCellsCommandError(output, context);
|
|
1647
1647
|
}
|
|
1648
1648
|
const contents = map({
|
|
1649
1649
|
$metadata: deserializeMetadata(output),
|
|
1650
1650
|
});
|
|
1651
1651
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1652
1652
|
if (data.cells != null) {
|
|
1653
|
-
contents.Cells =
|
|
1653
|
+
contents.Cells = de___listOfCellOutput(data.cells, context);
|
|
1654
1654
|
}
|
|
1655
1655
|
if (data.nextToken != null) {
|
|
1656
1656
|
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1657
1657
|
}
|
|
1658
1658
|
return contents;
|
|
1659
1659
|
};
|
|
1660
|
-
exports.
|
|
1661
|
-
const
|
|
1660
|
+
exports.de_ListCellsCommand = de_ListCellsCommand;
|
|
1661
|
+
const de_ListCellsCommandError = async (output, context) => {
|
|
1662
1662
|
const parsedOutput = {
|
|
1663
1663
|
...output,
|
|
1664
1664
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1667,16 +1667,16 @@ const deserializeAws_restJson1ListCellsCommandError = async (output, context) =>
|
|
|
1667
1667
|
switch (errorCode) {
|
|
1668
1668
|
case "AccessDeniedException":
|
|
1669
1669
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1670
|
-
throw await
|
|
1670
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1671
1671
|
case "InternalServerException":
|
|
1672
1672
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1673
|
-
throw await
|
|
1673
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1674
1674
|
case "ThrottlingException":
|
|
1675
1675
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1676
|
-
throw await
|
|
1676
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1677
1677
|
case "ValidationException":
|
|
1678
1678
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1679
|
-
throw await
|
|
1679
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1680
1680
|
default:
|
|
1681
1681
|
const parsedBody = parsedOutput.body;
|
|
1682
1682
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1687,24 +1687,24 @@ const deserializeAws_restJson1ListCellsCommandError = async (output, context) =>
|
|
|
1687
1687
|
});
|
|
1688
1688
|
}
|
|
1689
1689
|
};
|
|
1690
|
-
const
|
|
1690
|
+
const de_ListCrossAccountAuthorizationsCommand = async (output, context) => {
|
|
1691
1691
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1692
|
-
return
|
|
1692
|
+
return de_ListCrossAccountAuthorizationsCommandError(output, context);
|
|
1693
1693
|
}
|
|
1694
1694
|
const contents = map({
|
|
1695
1695
|
$metadata: deserializeMetadata(output),
|
|
1696
1696
|
});
|
|
1697
1697
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1698
1698
|
if (data.crossAccountAuthorizations != null) {
|
|
1699
|
-
contents.CrossAccountAuthorizations =
|
|
1699
|
+
contents.CrossAccountAuthorizations = de___listOfCrossAccountAuthorization(data.crossAccountAuthorizations, context);
|
|
1700
1700
|
}
|
|
1701
1701
|
if (data.nextToken != null) {
|
|
1702
1702
|
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1703
1703
|
}
|
|
1704
1704
|
return contents;
|
|
1705
1705
|
};
|
|
1706
|
-
exports.
|
|
1707
|
-
const
|
|
1706
|
+
exports.de_ListCrossAccountAuthorizationsCommand = de_ListCrossAccountAuthorizationsCommand;
|
|
1707
|
+
const de_ListCrossAccountAuthorizationsCommandError = async (output, context) => {
|
|
1708
1708
|
const parsedOutput = {
|
|
1709
1709
|
...output,
|
|
1710
1710
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1713,16 +1713,16 @@ const deserializeAws_restJson1ListCrossAccountAuthorizationsCommandError = async
|
|
|
1713
1713
|
switch (errorCode) {
|
|
1714
1714
|
case "AccessDeniedException":
|
|
1715
1715
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1716
|
-
throw await
|
|
1716
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1717
1717
|
case "InternalServerException":
|
|
1718
1718
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1719
|
-
throw await
|
|
1719
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1720
1720
|
case "ThrottlingException":
|
|
1721
1721
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1722
|
-
throw await
|
|
1722
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1723
1723
|
case "ValidationException":
|
|
1724
1724
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1725
|
-
throw await
|
|
1725
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1726
1726
|
default:
|
|
1727
1727
|
const parsedBody = parsedOutput.body;
|
|
1728
1728
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1733,9 +1733,9 @@ const deserializeAws_restJson1ListCrossAccountAuthorizationsCommandError = async
|
|
|
1733
1733
|
});
|
|
1734
1734
|
}
|
|
1735
1735
|
};
|
|
1736
|
-
const
|
|
1736
|
+
const de_ListReadinessChecksCommand = async (output, context) => {
|
|
1737
1737
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1738
|
-
return
|
|
1738
|
+
return de_ListReadinessChecksCommandError(output, context);
|
|
1739
1739
|
}
|
|
1740
1740
|
const contents = map({
|
|
1741
1741
|
$metadata: deserializeMetadata(output),
|
|
@@ -1745,12 +1745,12 @@ const deserializeAws_restJson1ListReadinessChecksCommand = async (output, contex
|
|
|
1745
1745
|
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1746
1746
|
}
|
|
1747
1747
|
if (data.readinessChecks != null) {
|
|
1748
|
-
contents.ReadinessChecks =
|
|
1748
|
+
contents.ReadinessChecks = de___listOfReadinessCheckOutput(data.readinessChecks, context);
|
|
1749
1749
|
}
|
|
1750
1750
|
return contents;
|
|
1751
1751
|
};
|
|
1752
|
-
exports.
|
|
1753
|
-
const
|
|
1752
|
+
exports.de_ListReadinessChecksCommand = de_ListReadinessChecksCommand;
|
|
1753
|
+
const de_ListReadinessChecksCommandError = async (output, context) => {
|
|
1754
1754
|
const parsedOutput = {
|
|
1755
1755
|
...output,
|
|
1756
1756
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1759,16 +1759,16 @@ const deserializeAws_restJson1ListReadinessChecksCommandError = async (output, c
|
|
|
1759
1759
|
switch (errorCode) {
|
|
1760
1760
|
case "AccessDeniedException":
|
|
1761
1761
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1762
|
-
throw await
|
|
1762
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1763
1763
|
case "InternalServerException":
|
|
1764
1764
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1765
|
-
throw await
|
|
1765
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1766
1766
|
case "ThrottlingException":
|
|
1767
1767
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1768
|
-
throw await
|
|
1768
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1769
1769
|
case "ValidationException":
|
|
1770
1770
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1771
|
-
throw await
|
|
1771
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1772
1772
|
default:
|
|
1773
1773
|
const parsedBody = parsedOutput.body;
|
|
1774
1774
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1779,9 +1779,9 @@ const deserializeAws_restJson1ListReadinessChecksCommandError = async (output, c
|
|
|
1779
1779
|
});
|
|
1780
1780
|
}
|
|
1781
1781
|
};
|
|
1782
|
-
const
|
|
1782
|
+
const de_ListRecoveryGroupsCommand = async (output, context) => {
|
|
1783
1783
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1784
|
-
return
|
|
1784
|
+
return de_ListRecoveryGroupsCommandError(output, context);
|
|
1785
1785
|
}
|
|
1786
1786
|
const contents = map({
|
|
1787
1787
|
$metadata: deserializeMetadata(output),
|
|
@@ -1791,12 +1791,12 @@ const deserializeAws_restJson1ListRecoveryGroupsCommand = async (output, context
|
|
|
1791
1791
|
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1792
1792
|
}
|
|
1793
1793
|
if (data.recoveryGroups != null) {
|
|
1794
|
-
contents.RecoveryGroups =
|
|
1794
|
+
contents.RecoveryGroups = de___listOfRecoveryGroupOutput(data.recoveryGroups, context);
|
|
1795
1795
|
}
|
|
1796
1796
|
return contents;
|
|
1797
1797
|
};
|
|
1798
|
-
exports.
|
|
1799
|
-
const
|
|
1798
|
+
exports.de_ListRecoveryGroupsCommand = de_ListRecoveryGroupsCommand;
|
|
1799
|
+
const de_ListRecoveryGroupsCommandError = async (output, context) => {
|
|
1800
1800
|
const parsedOutput = {
|
|
1801
1801
|
...output,
|
|
1802
1802
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1805,16 +1805,16 @@ const deserializeAws_restJson1ListRecoveryGroupsCommandError = async (output, co
|
|
|
1805
1805
|
switch (errorCode) {
|
|
1806
1806
|
case "AccessDeniedException":
|
|
1807
1807
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1808
|
-
throw await
|
|
1808
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1809
1809
|
case "InternalServerException":
|
|
1810
1810
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1811
|
-
throw await
|
|
1811
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1812
1812
|
case "ThrottlingException":
|
|
1813
1813
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1814
|
-
throw await
|
|
1814
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1815
1815
|
case "ValidationException":
|
|
1816
1816
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1817
|
-
throw await
|
|
1817
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1818
1818
|
default:
|
|
1819
1819
|
const parsedBody = parsedOutput.body;
|
|
1820
1820
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1825,9 +1825,9 @@ const deserializeAws_restJson1ListRecoveryGroupsCommandError = async (output, co
|
|
|
1825
1825
|
});
|
|
1826
1826
|
}
|
|
1827
1827
|
};
|
|
1828
|
-
const
|
|
1828
|
+
const de_ListResourceSetsCommand = async (output, context) => {
|
|
1829
1829
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1830
|
-
return
|
|
1830
|
+
return de_ListResourceSetsCommandError(output, context);
|
|
1831
1831
|
}
|
|
1832
1832
|
const contents = map({
|
|
1833
1833
|
$metadata: deserializeMetadata(output),
|
|
@@ -1837,12 +1837,12 @@ const deserializeAws_restJson1ListResourceSetsCommand = async (output, context)
|
|
|
1837
1837
|
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1838
1838
|
}
|
|
1839
1839
|
if (data.resourceSets != null) {
|
|
1840
|
-
contents.ResourceSets =
|
|
1840
|
+
contents.ResourceSets = de___listOfResourceSetOutput(data.resourceSets, context);
|
|
1841
1841
|
}
|
|
1842
1842
|
return contents;
|
|
1843
1843
|
};
|
|
1844
|
-
exports.
|
|
1845
|
-
const
|
|
1844
|
+
exports.de_ListResourceSetsCommand = de_ListResourceSetsCommand;
|
|
1845
|
+
const de_ListResourceSetsCommandError = async (output, context) => {
|
|
1846
1846
|
const parsedOutput = {
|
|
1847
1847
|
...output,
|
|
1848
1848
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1851,16 +1851,16 @@ const deserializeAws_restJson1ListResourceSetsCommandError = async (output, cont
|
|
|
1851
1851
|
switch (errorCode) {
|
|
1852
1852
|
case "AccessDeniedException":
|
|
1853
1853
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1854
|
-
throw await
|
|
1854
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1855
1855
|
case "InternalServerException":
|
|
1856
1856
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1857
|
-
throw await
|
|
1857
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1858
1858
|
case "ThrottlingException":
|
|
1859
1859
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1860
|
-
throw await
|
|
1860
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1861
1861
|
case "ValidationException":
|
|
1862
1862
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1863
|
-
throw await
|
|
1863
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1864
1864
|
default:
|
|
1865
1865
|
const parsedBody = parsedOutput.body;
|
|
1866
1866
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1871,9 +1871,9 @@ const deserializeAws_restJson1ListResourceSetsCommandError = async (output, cont
|
|
|
1871
1871
|
});
|
|
1872
1872
|
}
|
|
1873
1873
|
};
|
|
1874
|
-
const
|
|
1874
|
+
const de_ListRulesCommand = async (output, context) => {
|
|
1875
1875
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1876
|
-
return
|
|
1876
|
+
return de_ListRulesCommandError(output, context);
|
|
1877
1877
|
}
|
|
1878
1878
|
const contents = map({
|
|
1879
1879
|
$metadata: deserializeMetadata(output),
|
|
@@ -1883,12 +1883,12 @@ const deserializeAws_restJson1ListRulesCommand = async (output, context) => {
|
|
|
1883
1883
|
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1884
1884
|
}
|
|
1885
1885
|
if (data.rules != null) {
|
|
1886
|
-
contents.Rules =
|
|
1886
|
+
contents.Rules = de___listOfListRulesOutput(data.rules, context);
|
|
1887
1887
|
}
|
|
1888
1888
|
return contents;
|
|
1889
1889
|
};
|
|
1890
|
-
exports.
|
|
1891
|
-
const
|
|
1890
|
+
exports.de_ListRulesCommand = de_ListRulesCommand;
|
|
1891
|
+
const de_ListRulesCommandError = async (output, context) => {
|
|
1892
1892
|
const parsedOutput = {
|
|
1893
1893
|
...output,
|
|
1894
1894
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1897,16 +1897,16 @@ const deserializeAws_restJson1ListRulesCommandError = async (output, context) =>
|
|
|
1897
1897
|
switch (errorCode) {
|
|
1898
1898
|
case "AccessDeniedException":
|
|
1899
1899
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
1900
|
-
throw await
|
|
1900
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1901
1901
|
case "InternalServerException":
|
|
1902
1902
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1903
|
-
throw await
|
|
1903
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1904
1904
|
case "ThrottlingException":
|
|
1905
1905
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
1906
|
-
throw await
|
|
1906
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1907
1907
|
case "ValidationException":
|
|
1908
1908
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1909
|
-
throw await
|
|
1909
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1910
1910
|
default:
|
|
1911
1911
|
const parsedBody = parsedOutput.body;
|
|
1912
1912
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1917,21 +1917,21 @@ const deserializeAws_restJson1ListRulesCommandError = async (output, context) =>
|
|
|
1917
1917
|
});
|
|
1918
1918
|
}
|
|
1919
1919
|
};
|
|
1920
|
-
const
|
|
1920
|
+
const de_ListTagsForResourcesCommand = async (output, context) => {
|
|
1921
1921
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1922
|
-
return
|
|
1922
|
+
return de_ListTagsForResourcesCommandError(output, context);
|
|
1923
1923
|
}
|
|
1924
1924
|
const contents = map({
|
|
1925
1925
|
$metadata: deserializeMetadata(output),
|
|
1926
1926
|
});
|
|
1927
1927
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1928
1928
|
if (data.tags != null) {
|
|
1929
|
-
contents.Tags =
|
|
1929
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
1930
1930
|
}
|
|
1931
1931
|
return contents;
|
|
1932
1932
|
};
|
|
1933
|
-
exports.
|
|
1934
|
-
const
|
|
1933
|
+
exports.de_ListTagsForResourcesCommand = de_ListTagsForResourcesCommand;
|
|
1934
|
+
const de_ListTagsForResourcesCommandError = async (output, context) => {
|
|
1935
1935
|
const parsedOutput = {
|
|
1936
1936
|
...output,
|
|
1937
1937
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1940,13 +1940,13 @@ const deserializeAws_restJson1ListTagsForResourcesCommandError = async (output,
|
|
|
1940
1940
|
switch (errorCode) {
|
|
1941
1941
|
case "InternalServerException":
|
|
1942
1942
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1943
|
-
throw await
|
|
1943
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1944
1944
|
case "ResourceNotFoundException":
|
|
1945
1945
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1946
|
-
throw await
|
|
1946
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1947
1947
|
case "ValidationException":
|
|
1948
1948
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1949
|
-
throw await
|
|
1949
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1950
1950
|
default:
|
|
1951
1951
|
const parsedBody = parsedOutput.body;
|
|
1952
1952
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1957,9 +1957,9 @@ const deserializeAws_restJson1ListTagsForResourcesCommandError = async (output,
|
|
|
1957
1957
|
});
|
|
1958
1958
|
}
|
|
1959
1959
|
};
|
|
1960
|
-
const
|
|
1960
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1961
1961
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1962
|
-
return
|
|
1962
|
+
return de_TagResourceCommandError(output, context);
|
|
1963
1963
|
}
|
|
1964
1964
|
const contents = map({
|
|
1965
1965
|
$metadata: deserializeMetadata(output),
|
|
@@ -1967,8 +1967,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
1967
1967
|
await collectBody(output.body, context);
|
|
1968
1968
|
return contents;
|
|
1969
1969
|
};
|
|
1970
|
-
exports.
|
|
1971
|
-
const
|
|
1970
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1971
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1972
1972
|
const parsedOutput = {
|
|
1973
1973
|
...output,
|
|
1974
1974
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1977,13 +1977,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1977
1977
|
switch (errorCode) {
|
|
1978
1978
|
case "InternalServerException":
|
|
1979
1979
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
1980
|
-
throw await
|
|
1980
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1981
1981
|
case "ResourceNotFoundException":
|
|
1982
1982
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
1983
|
-
throw await
|
|
1983
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1984
1984
|
case "ValidationException":
|
|
1985
1985
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
1986
|
-
throw await
|
|
1986
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1987
1987
|
default:
|
|
1988
1988
|
const parsedBody = parsedOutput.body;
|
|
1989
1989
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1994,9 +1994,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1994
1994
|
});
|
|
1995
1995
|
}
|
|
1996
1996
|
};
|
|
1997
|
-
const
|
|
1997
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1998
1998
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1999
|
-
return
|
|
1999
|
+
return de_UntagResourceCommandError(output, context);
|
|
2000
2000
|
}
|
|
2001
2001
|
const contents = map({
|
|
2002
2002
|
$metadata: deserializeMetadata(output),
|
|
@@ -2004,8 +2004,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
2004
2004
|
await collectBody(output.body, context);
|
|
2005
2005
|
return contents;
|
|
2006
2006
|
};
|
|
2007
|
-
exports.
|
|
2008
|
-
const
|
|
2007
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2008
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2009
2009
|
const parsedOutput = {
|
|
2010
2010
|
...output,
|
|
2011
2011
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2014,13 +2014,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2014
2014
|
switch (errorCode) {
|
|
2015
2015
|
case "InternalServerException":
|
|
2016
2016
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2017
|
-
throw await
|
|
2017
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2018
2018
|
case "ResourceNotFoundException":
|
|
2019
2019
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
2020
|
-
throw await
|
|
2020
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2021
2021
|
case "ValidationException":
|
|
2022
2022
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2023
|
-
throw await
|
|
2023
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2024
2024
|
default:
|
|
2025
2025
|
const parsedBody = parsedOutput.body;
|
|
2026
2026
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2031,9 +2031,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2031
2031
|
});
|
|
2032
2032
|
}
|
|
2033
2033
|
};
|
|
2034
|
-
const
|
|
2034
|
+
const de_UpdateCellCommand = async (output, context) => {
|
|
2035
2035
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2036
|
-
return
|
|
2036
|
+
return de_UpdateCellCommandError(output, context);
|
|
2037
2037
|
}
|
|
2038
2038
|
const contents = map({
|
|
2039
2039
|
$metadata: deserializeMetadata(output),
|
|
@@ -2046,18 +2046,18 @@ const deserializeAws_restJson1UpdateCellCommand = async (output, context) => {
|
|
|
2046
2046
|
contents.CellName = (0, smithy_client_1.expectString)(data.cellName);
|
|
2047
2047
|
}
|
|
2048
2048
|
if (data.cells != null) {
|
|
2049
|
-
contents.Cells =
|
|
2049
|
+
contents.Cells = de___listOf__string(data.cells, context);
|
|
2050
2050
|
}
|
|
2051
2051
|
if (data.parentReadinessScopes != null) {
|
|
2052
|
-
contents.ParentReadinessScopes =
|
|
2052
|
+
contents.ParentReadinessScopes = de___listOf__string(data.parentReadinessScopes, context);
|
|
2053
2053
|
}
|
|
2054
2054
|
if (data.tags != null) {
|
|
2055
|
-
contents.Tags =
|
|
2055
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
2056
2056
|
}
|
|
2057
2057
|
return contents;
|
|
2058
2058
|
};
|
|
2059
|
-
exports.
|
|
2060
|
-
const
|
|
2059
|
+
exports.de_UpdateCellCommand = de_UpdateCellCommand;
|
|
2060
|
+
const de_UpdateCellCommandError = async (output, context) => {
|
|
2061
2061
|
const parsedOutput = {
|
|
2062
2062
|
...output,
|
|
2063
2063
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2066,19 +2066,19 @@ const deserializeAws_restJson1UpdateCellCommandError = async (output, context) =
|
|
|
2066
2066
|
switch (errorCode) {
|
|
2067
2067
|
case "AccessDeniedException":
|
|
2068
2068
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
2069
|
-
throw await
|
|
2069
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2070
2070
|
case "InternalServerException":
|
|
2071
2071
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2072
|
-
throw await
|
|
2072
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2073
2073
|
case "ResourceNotFoundException":
|
|
2074
2074
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
2075
|
-
throw await
|
|
2075
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2076
2076
|
case "ThrottlingException":
|
|
2077
2077
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
2078
|
-
throw await
|
|
2078
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2079
2079
|
case "ValidationException":
|
|
2080
2080
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2081
|
-
throw await
|
|
2081
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2082
2082
|
default:
|
|
2083
2083
|
const parsedBody = parsedOutput.body;
|
|
2084
2084
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2089,9 +2089,9 @@ const deserializeAws_restJson1UpdateCellCommandError = async (output, context) =
|
|
|
2089
2089
|
});
|
|
2090
2090
|
}
|
|
2091
2091
|
};
|
|
2092
|
-
const
|
|
2092
|
+
const de_UpdateReadinessCheckCommand = async (output, context) => {
|
|
2093
2093
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2094
|
-
return
|
|
2094
|
+
return de_UpdateReadinessCheckCommandError(output, context);
|
|
2095
2095
|
}
|
|
2096
2096
|
const contents = map({
|
|
2097
2097
|
$metadata: deserializeMetadata(output),
|
|
@@ -2107,12 +2107,12 @@ const deserializeAws_restJson1UpdateReadinessCheckCommand = async (output, conte
|
|
|
2107
2107
|
contents.ResourceSet = (0, smithy_client_1.expectString)(data.resourceSet);
|
|
2108
2108
|
}
|
|
2109
2109
|
if (data.tags != null) {
|
|
2110
|
-
contents.Tags =
|
|
2110
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
2111
2111
|
}
|
|
2112
2112
|
return contents;
|
|
2113
2113
|
};
|
|
2114
|
-
exports.
|
|
2115
|
-
const
|
|
2114
|
+
exports.de_UpdateReadinessCheckCommand = de_UpdateReadinessCheckCommand;
|
|
2115
|
+
const de_UpdateReadinessCheckCommandError = async (output, context) => {
|
|
2116
2116
|
const parsedOutput = {
|
|
2117
2117
|
...output,
|
|
2118
2118
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2121,19 +2121,19 @@ const deserializeAws_restJson1UpdateReadinessCheckCommandError = async (output,
|
|
|
2121
2121
|
switch (errorCode) {
|
|
2122
2122
|
case "AccessDeniedException":
|
|
2123
2123
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
2124
|
-
throw await
|
|
2124
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2125
2125
|
case "InternalServerException":
|
|
2126
2126
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2127
|
-
throw await
|
|
2127
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2128
2128
|
case "ResourceNotFoundException":
|
|
2129
2129
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
2130
|
-
throw await
|
|
2130
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2131
2131
|
case "ThrottlingException":
|
|
2132
2132
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
2133
|
-
throw await
|
|
2133
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2134
2134
|
case "ValidationException":
|
|
2135
2135
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2136
|
-
throw await
|
|
2136
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2137
2137
|
default:
|
|
2138
2138
|
const parsedBody = parsedOutput.body;
|
|
2139
2139
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2144,16 +2144,16 @@ const deserializeAws_restJson1UpdateReadinessCheckCommandError = async (output,
|
|
|
2144
2144
|
});
|
|
2145
2145
|
}
|
|
2146
2146
|
};
|
|
2147
|
-
const
|
|
2147
|
+
const de_UpdateRecoveryGroupCommand = async (output, context) => {
|
|
2148
2148
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2149
|
-
return
|
|
2149
|
+
return de_UpdateRecoveryGroupCommandError(output, context);
|
|
2150
2150
|
}
|
|
2151
2151
|
const contents = map({
|
|
2152
2152
|
$metadata: deserializeMetadata(output),
|
|
2153
2153
|
});
|
|
2154
2154
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2155
2155
|
if (data.cells != null) {
|
|
2156
|
-
contents.Cells =
|
|
2156
|
+
contents.Cells = de___listOf__string(data.cells, context);
|
|
2157
2157
|
}
|
|
2158
2158
|
if (data.recoveryGroupArn != null) {
|
|
2159
2159
|
contents.RecoveryGroupArn = (0, smithy_client_1.expectString)(data.recoveryGroupArn);
|
|
@@ -2162,12 +2162,12 @@ const deserializeAws_restJson1UpdateRecoveryGroupCommand = async (output, contex
|
|
|
2162
2162
|
contents.RecoveryGroupName = (0, smithy_client_1.expectString)(data.recoveryGroupName);
|
|
2163
2163
|
}
|
|
2164
2164
|
if (data.tags != null) {
|
|
2165
|
-
contents.Tags =
|
|
2165
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
2166
2166
|
}
|
|
2167
2167
|
return contents;
|
|
2168
2168
|
};
|
|
2169
|
-
exports.
|
|
2170
|
-
const
|
|
2169
|
+
exports.de_UpdateRecoveryGroupCommand = de_UpdateRecoveryGroupCommand;
|
|
2170
|
+
const de_UpdateRecoveryGroupCommandError = async (output, context) => {
|
|
2171
2171
|
const parsedOutput = {
|
|
2172
2172
|
...output,
|
|
2173
2173
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2176,19 +2176,19 @@ const deserializeAws_restJson1UpdateRecoveryGroupCommandError = async (output, c
|
|
|
2176
2176
|
switch (errorCode) {
|
|
2177
2177
|
case "AccessDeniedException":
|
|
2178
2178
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
2179
|
-
throw await
|
|
2179
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2180
2180
|
case "InternalServerException":
|
|
2181
2181
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2182
|
-
throw await
|
|
2182
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2183
2183
|
case "ResourceNotFoundException":
|
|
2184
2184
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
2185
|
-
throw await
|
|
2185
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2186
2186
|
case "ThrottlingException":
|
|
2187
2187
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
2188
|
-
throw await
|
|
2188
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2189
2189
|
case "ValidationException":
|
|
2190
2190
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2191
|
-
throw await
|
|
2191
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2192
2192
|
default:
|
|
2193
2193
|
const parsedBody = parsedOutput.body;
|
|
2194
2194
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2199,9 +2199,9 @@ const deserializeAws_restJson1UpdateRecoveryGroupCommandError = async (output, c
|
|
|
2199
2199
|
});
|
|
2200
2200
|
}
|
|
2201
2201
|
};
|
|
2202
|
-
const
|
|
2202
|
+
const de_UpdateResourceSetCommand = async (output, context) => {
|
|
2203
2203
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2204
|
-
return
|
|
2204
|
+
return de_UpdateResourceSetCommandError(output, context);
|
|
2205
2205
|
}
|
|
2206
2206
|
const contents = map({
|
|
2207
2207
|
$metadata: deserializeMetadata(output),
|
|
@@ -2217,15 +2217,15 @@ const deserializeAws_restJson1UpdateResourceSetCommand = async (output, context)
|
|
|
2217
2217
|
contents.ResourceSetType = (0, smithy_client_1.expectString)(data.resourceSetType);
|
|
2218
2218
|
}
|
|
2219
2219
|
if (data.resources != null) {
|
|
2220
|
-
contents.Resources =
|
|
2220
|
+
contents.Resources = de___listOfResource(data.resources, context);
|
|
2221
2221
|
}
|
|
2222
2222
|
if (data.tags != null) {
|
|
2223
|
-
contents.Tags =
|
|
2223
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
2224
2224
|
}
|
|
2225
2225
|
return contents;
|
|
2226
2226
|
};
|
|
2227
|
-
exports.
|
|
2228
|
-
const
|
|
2227
|
+
exports.de_UpdateResourceSetCommand = de_UpdateResourceSetCommand;
|
|
2228
|
+
const de_UpdateResourceSetCommandError = async (output, context) => {
|
|
2229
2229
|
const parsedOutput = {
|
|
2230
2230
|
...output,
|
|
2231
2231
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2234,19 +2234,19 @@ const deserializeAws_restJson1UpdateResourceSetCommandError = async (output, con
|
|
|
2234
2234
|
switch (errorCode) {
|
|
2235
2235
|
case "AccessDeniedException":
|
|
2236
2236
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
2237
|
-
throw await
|
|
2237
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2238
2238
|
case "InternalServerException":
|
|
2239
2239
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
2240
|
-
throw await
|
|
2240
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2241
2241
|
case "ResourceNotFoundException":
|
|
2242
2242
|
case "com.amazonaws.route53recoveryreadiness#ResourceNotFoundException":
|
|
2243
|
-
throw await
|
|
2243
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2244
2244
|
case "ThrottlingException":
|
|
2245
2245
|
case "com.amazonaws.route53recoveryreadiness#ThrottlingException":
|
|
2246
|
-
throw await
|
|
2246
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2247
2247
|
case "ValidationException":
|
|
2248
2248
|
case "com.amazonaws.route53recoveryreadiness#ValidationException":
|
|
2249
|
-
throw await
|
|
2249
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2250
2250
|
default:
|
|
2251
2251
|
const parsedBody = parsedOutput.body;
|
|
2252
2252
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2258,7 +2258,7 @@ const deserializeAws_restJson1UpdateResourceSetCommandError = async (output, con
|
|
|
2258
2258
|
}
|
|
2259
2259
|
};
|
|
2260
2260
|
const map = smithy_client_1.map;
|
|
2261
|
-
const
|
|
2261
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2262
2262
|
const contents = map({});
|
|
2263
2263
|
const data = parsedOutput.body;
|
|
2264
2264
|
if (data.message != null) {
|
|
@@ -2270,7 +2270,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
2270
2270
|
});
|
|
2271
2271
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2272
2272
|
};
|
|
2273
|
-
const
|
|
2273
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2274
2274
|
const contents = map({});
|
|
2275
2275
|
const data = parsedOutput.body;
|
|
2276
2276
|
if (data.message != null) {
|
|
@@ -2282,7 +2282,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2282
2282
|
});
|
|
2283
2283
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2284
2284
|
};
|
|
2285
|
-
const
|
|
2285
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2286
2286
|
const contents = map({});
|
|
2287
2287
|
const data = parsedOutput.body;
|
|
2288
2288
|
if (data.message != null) {
|
|
@@ -2294,7 +2294,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2294
2294
|
});
|
|
2295
2295
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2296
2296
|
};
|
|
2297
|
-
const
|
|
2297
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2298
2298
|
const contents = map({});
|
|
2299
2299
|
const data = parsedOutput.body;
|
|
2300
2300
|
if (data.message != null) {
|
|
@@ -2306,7 +2306,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2306
2306
|
});
|
|
2307
2307
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2308
2308
|
};
|
|
2309
|
-
const
|
|
2309
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2310
2310
|
const contents = map({});
|
|
2311
2311
|
const data = parsedOutput.body;
|
|
2312
2312
|
if (data.message != null) {
|
|
@@ -2318,7 +2318,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2318
2318
|
});
|
|
2319
2319
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2320
2320
|
};
|
|
2321
|
-
const
|
|
2321
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2322
2322
|
const contents = map({});
|
|
2323
2323
|
const data = parsedOutput.body;
|
|
2324
2324
|
if (data.message != null) {
|
|
@@ -2330,55 +2330,51 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2330
2330
|
});
|
|
2331
2331
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2332
2332
|
};
|
|
2333
|
-
const
|
|
2333
|
+
const se___listOf__string = (input, context) => {
|
|
2334
2334
|
return input
|
|
2335
2335
|
.filter((e) => e != null)
|
|
2336
2336
|
.map((entry) => {
|
|
2337
2337
|
return entry;
|
|
2338
2338
|
});
|
|
2339
2339
|
};
|
|
2340
|
-
const
|
|
2340
|
+
const se___listOfResource = (input, context) => {
|
|
2341
2341
|
return input
|
|
2342
2342
|
.filter((e) => e != null)
|
|
2343
2343
|
.map((entry) => {
|
|
2344
|
-
return
|
|
2344
|
+
return se_Resource(entry, context);
|
|
2345
2345
|
});
|
|
2346
2346
|
};
|
|
2347
|
-
const
|
|
2347
|
+
const se_DNSTargetResource = (input, context) => {
|
|
2348
2348
|
return {
|
|
2349
2349
|
...(input.DomainName != null && { domainName: input.DomainName }),
|
|
2350
2350
|
...(input.HostedZoneArn != null && { hostedZoneArn: input.HostedZoneArn }),
|
|
2351
2351
|
...(input.RecordSetId != null && { recordSetId: input.RecordSetId }),
|
|
2352
2352
|
...(input.RecordType != null && { recordType: input.RecordType }),
|
|
2353
|
-
...(input.TargetResource != null && {
|
|
2354
|
-
targetResource: serializeAws_restJson1TargetResource(input.TargetResource, context),
|
|
2355
|
-
}),
|
|
2353
|
+
...(input.TargetResource != null && { targetResource: se_TargetResource(input.TargetResource, context) }),
|
|
2356
2354
|
};
|
|
2357
2355
|
};
|
|
2358
|
-
const
|
|
2356
|
+
const se_NLBResource = (input, context) => {
|
|
2359
2357
|
return {
|
|
2360
2358
|
...(input.Arn != null && { arn: input.Arn }),
|
|
2361
2359
|
};
|
|
2362
2360
|
};
|
|
2363
|
-
const
|
|
2361
|
+
const se_R53ResourceRecord = (input, context) => {
|
|
2364
2362
|
return {
|
|
2365
2363
|
...(input.DomainName != null && { domainName: input.DomainName }),
|
|
2366
2364
|
...(input.RecordSetId != null && { recordSetId: input.RecordSetId }),
|
|
2367
2365
|
};
|
|
2368
2366
|
};
|
|
2369
|
-
const
|
|
2367
|
+
const se_Resource = (input, context) => {
|
|
2370
2368
|
return {
|
|
2371
2369
|
...(input.ComponentId != null && { componentId: input.ComponentId }),
|
|
2372
2370
|
...(input.DnsTargetResource != null && {
|
|
2373
|
-
dnsTargetResource:
|
|
2374
|
-
}),
|
|
2375
|
-
...(input.ReadinessScopes != null && {
|
|
2376
|
-
readinessScopes: serializeAws_restJson1__listOf__string(input.ReadinessScopes, context),
|
|
2371
|
+
dnsTargetResource: se_DNSTargetResource(input.DnsTargetResource, context),
|
|
2377
2372
|
}),
|
|
2373
|
+
...(input.ReadinessScopes != null && { readinessScopes: se___listOf__string(input.ReadinessScopes, context) }),
|
|
2378
2374
|
...(input.ResourceArn != null && { resourceArn: input.ResourceArn }),
|
|
2379
2375
|
};
|
|
2380
2376
|
};
|
|
2381
|
-
const
|
|
2377
|
+
const se_Tags = (input, context) => {
|
|
2382
2378
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2383
2379
|
if (value === null) {
|
|
2384
2380
|
return acc;
|
|
@@ -2387,15 +2383,13 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
2387
2383
|
return acc;
|
|
2388
2384
|
}, {});
|
|
2389
2385
|
};
|
|
2390
|
-
const
|
|
2386
|
+
const se_TargetResource = (input, context) => {
|
|
2391
2387
|
return {
|
|
2392
|
-
...(input.NLBResource != null && { nLBResource:
|
|
2393
|
-
...(input.R53Resource != null && {
|
|
2394
|
-
r53Resource: serializeAws_restJson1R53ResourceRecord(input.R53Resource, context),
|
|
2395
|
-
}),
|
|
2388
|
+
...(input.NLBResource != null && { nLBResource: se_NLBResource(input.NLBResource, context) }),
|
|
2389
|
+
...(input.R53Resource != null && { r53Resource: se_R53ResourceRecord(input.R53Resource, context) }),
|
|
2396
2390
|
};
|
|
2397
2391
|
};
|
|
2398
|
-
const
|
|
2392
|
+
const de___listOf__string = (output, context) => {
|
|
2399
2393
|
const retVal = (output || [])
|
|
2400
2394
|
.filter((e) => e != null)
|
|
2401
2395
|
.map((entry) => {
|
|
@@ -2406,18 +2400,18 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
2406
2400
|
});
|
|
2407
2401
|
return retVal;
|
|
2408
2402
|
};
|
|
2409
|
-
const
|
|
2403
|
+
const de___listOfCellOutput = (output, context) => {
|
|
2410
2404
|
const retVal = (output || [])
|
|
2411
2405
|
.filter((e) => e != null)
|
|
2412
2406
|
.map((entry) => {
|
|
2413
2407
|
if (entry === null) {
|
|
2414
2408
|
return null;
|
|
2415
2409
|
}
|
|
2416
|
-
return
|
|
2410
|
+
return de_CellOutput(entry, context);
|
|
2417
2411
|
});
|
|
2418
2412
|
return retVal;
|
|
2419
2413
|
};
|
|
2420
|
-
const
|
|
2414
|
+
const de___listOfCrossAccountAuthorization = (output, context) => {
|
|
2421
2415
|
const retVal = (output || [])
|
|
2422
2416
|
.filter((e) => e != null)
|
|
2423
2417
|
.map((entry) => {
|
|
@@ -2428,201 +2422,193 @@ const deserializeAws_restJson1__listOfCrossAccountAuthorization = (output, conte
|
|
|
2428
2422
|
});
|
|
2429
2423
|
return retVal;
|
|
2430
2424
|
};
|
|
2431
|
-
const
|
|
2425
|
+
const de___listOfListRulesOutput = (output, context) => {
|
|
2432
2426
|
const retVal = (output || [])
|
|
2433
2427
|
.filter((e) => e != null)
|
|
2434
2428
|
.map((entry) => {
|
|
2435
2429
|
if (entry === null) {
|
|
2436
2430
|
return null;
|
|
2437
2431
|
}
|
|
2438
|
-
return
|
|
2432
|
+
return de_ListRulesOutput(entry, context);
|
|
2439
2433
|
});
|
|
2440
2434
|
return retVal;
|
|
2441
2435
|
};
|
|
2442
|
-
const
|
|
2436
|
+
const de___listOfMessage = (output, context) => {
|
|
2443
2437
|
const retVal = (output || [])
|
|
2444
2438
|
.filter((e) => e != null)
|
|
2445
2439
|
.map((entry) => {
|
|
2446
2440
|
if (entry === null) {
|
|
2447
2441
|
return null;
|
|
2448
2442
|
}
|
|
2449
|
-
return
|
|
2443
|
+
return de_Message(entry, context);
|
|
2450
2444
|
});
|
|
2451
2445
|
return retVal;
|
|
2452
2446
|
};
|
|
2453
|
-
const
|
|
2447
|
+
const de___listOfReadinessCheckOutput = (output, context) => {
|
|
2454
2448
|
const retVal = (output || [])
|
|
2455
2449
|
.filter((e) => e != null)
|
|
2456
2450
|
.map((entry) => {
|
|
2457
2451
|
if (entry === null) {
|
|
2458
2452
|
return null;
|
|
2459
2453
|
}
|
|
2460
|
-
return
|
|
2454
|
+
return de_ReadinessCheckOutput(entry, context);
|
|
2461
2455
|
});
|
|
2462
2456
|
return retVal;
|
|
2463
2457
|
};
|
|
2464
|
-
const
|
|
2458
|
+
const de___listOfReadinessCheckSummary = (output, context) => {
|
|
2465
2459
|
const retVal = (output || [])
|
|
2466
2460
|
.filter((e) => e != null)
|
|
2467
2461
|
.map((entry) => {
|
|
2468
2462
|
if (entry === null) {
|
|
2469
2463
|
return null;
|
|
2470
2464
|
}
|
|
2471
|
-
return
|
|
2465
|
+
return de_ReadinessCheckSummary(entry, context);
|
|
2472
2466
|
});
|
|
2473
2467
|
return retVal;
|
|
2474
2468
|
};
|
|
2475
|
-
const
|
|
2469
|
+
const de___listOfRecommendation = (output, context) => {
|
|
2476
2470
|
const retVal = (output || [])
|
|
2477
2471
|
.filter((e) => e != null)
|
|
2478
2472
|
.map((entry) => {
|
|
2479
2473
|
if (entry === null) {
|
|
2480
2474
|
return null;
|
|
2481
2475
|
}
|
|
2482
|
-
return
|
|
2476
|
+
return de_Recommendation(entry, context);
|
|
2483
2477
|
});
|
|
2484
2478
|
return retVal;
|
|
2485
2479
|
};
|
|
2486
|
-
const
|
|
2480
|
+
const de___listOfRecoveryGroupOutput = (output, context) => {
|
|
2487
2481
|
const retVal = (output || [])
|
|
2488
2482
|
.filter((e) => e != null)
|
|
2489
2483
|
.map((entry) => {
|
|
2490
2484
|
if (entry === null) {
|
|
2491
2485
|
return null;
|
|
2492
2486
|
}
|
|
2493
|
-
return
|
|
2487
|
+
return de_RecoveryGroupOutput(entry, context);
|
|
2494
2488
|
});
|
|
2495
2489
|
return retVal;
|
|
2496
2490
|
};
|
|
2497
|
-
const
|
|
2491
|
+
const de___listOfResource = (output, context) => {
|
|
2498
2492
|
const retVal = (output || [])
|
|
2499
2493
|
.filter((e) => e != null)
|
|
2500
2494
|
.map((entry) => {
|
|
2501
2495
|
if (entry === null) {
|
|
2502
2496
|
return null;
|
|
2503
2497
|
}
|
|
2504
|
-
return
|
|
2498
|
+
return de_Resource(entry, context);
|
|
2505
2499
|
});
|
|
2506
2500
|
return retVal;
|
|
2507
2501
|
};
|
|
2508
|
-
const
|
|
2502
|
+
const de___listOfResourceResult = (output, context) => {
|
|
2509
2503
|
const retVal = (output || [])
|
|
2510
2504
|
.filter((e) => e != null)
|
|
2511
2505
|
.map((entry) => {
|
|
2512
2506
|
if (entry === null) {
|
|
2513
2507
|
return null;
|
|
2514
2508
|
}
|
|
2515
|
-
return
|
|
2509
|
+
return de_ResourceResult(entry, context);
|
|
2516
2510
|
});
|
|
2517
2511
|
return retVal;
|
|
2518
2512
|
};
|
|
2519
|
-
const
|
|
2513
|
+
const de___listOfResourceSetOutput = (output, context) => {
|
|
2520
2514
|
const retVal = (output || [])
|
|
2521
2515
|
.filter((e) => e != null)
|
|
2522
2516
|
.map((entry) => {
|
|
2523
2517
|
if (entry === null) {
|
|
2524
2518
|
return null;
|
|
2525
2519
|
}
|
|
2526
|
-
return
|
|
2520
|
+
return de_ResourceSetOutput(entry, context);
|
|
2527
2521
|
});
|
|
2528
2522
|
return retVal;
|
|
2529
2523
|
};
|
|
2530
|
-
const
|
|
2524
|
+
const de___listOfRuleResult = (output, context) => {
|
|
2531
2525
|
const retVal = (output || [])
|
|
2532
2526
|
.filter((e) => e != null)
|
|
2533
2527
|
.map((entry) => {
|
|
2534
2528
|
if (entry === null) {
|
|
2535
2529
|
return null;
|
|
2536
2530
|
}
|
|
2537
|
-
return
|
|
2531
|
+
return de_RuleResult(entry, context);
|
|
2538
2532
|
});
|
|
2539
2533
|
return retVal;
|
|
2540
2534
|
};
|
|
2541
|
-
const
|
|
2535
|
+
const de_CellOutput = (output, context) => {
|
|
2542
2536
|
return {
|
|
2543
2537
|
CellArn: (0, smithy_client_1.expectString)(output.cellArn),
|
|
2544
2538
|
CellName: (0, smithy_client_1.expectString)(output.cellName),
|
|
2545
|
-
Cells: output.cells != null ?
|
|
2546
|
-
ParentReadinessScopes: output.parentReadinessScopes != null
|
|
2547
|
-
|
|
2548
|
-
: undefined,
|
|
2549
|
-
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2539
|
+
Cells: output.cells != null ? de___listOf__string(output.cells, context) : undefined,
|
|
2540
|
+
ParentReadinessScopes: output.parentReadinessScopes != null ? de___listOf__string(output.parentReadinessScopes, context) : undefined,
|
|
2541
|
+
Tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2550
2542
|
};
|
|
2551
2543
|
};
|
|
2552
|
-
const
|
|
2544
|
+
const de_DNSTargetResource = (output, context) => {
|
|
2553
2545
|
return {
|
|
2554
2546
|
DomainName: (0, smithy_client_1.expectString)(output.domainName),
|
|
2555
2547
|
HostedZoneArn: (0, smithy_client_1.expectString)(output.hostedZoneArn),
|
|
2556
2548
|
RecordSetId: (0, smithy_client_1.expectString)(output.recordSetId),
|
|
2557
2549
|
RecordType: (0, smithy_client_1.expectString)(output.recordType),
|
|
2558
|
-
TargetResource: output.targetResource != null
|
|
2559
|
-
? deserializeAws_restJson1TargetResource(output.targetResource, context)
|
|
2560
|
-
: undefined,
|
|
2550
|
+
TargetResource: output.targetResource != null ? de_TargetResource(output.targetResource, context) : undefined,
|
|
2561
2551
|
};
|
|
2562
2552
|
};
|
|
2563
|
-
const
|
|
2553
|
+
const de_ListRulesOutput = (output, context) => {
|
|
2564
2554
|
return {
|
|
2565
2555
|
ResourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2566
2556
|
RuleDescription: (0, smithy_client_1.expectString)(output.ruleDescription),
|
|
2567
2557
|
RuleId: (0, smithy_client_1.expectString)(output.ruleId),
|
|
2568
2558
|
};
|
|
2569
2559
|
};
|
|
2570
|
-
const
|
|
2560
|
+
const de_Message = (output, context) => {
|
|
2571
2561
|
return {
|
|
2572
2562
|
MessageText: (0, smithy_client_1.expectString)(output.messageText),
|
|
2573
2563
|
};
|
|
2574
2564
|
};
|
|
2575
|
-
const
|
|
2565
|
+
const de_NLBResource = (output, context) => {
|
|
2576
2566
|
return {
|
|
2577
2567
|
Arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2578
2568
|
};
|
|
2579
2569
|
};
|
|
2580
|
-
const
|
|
2570
|
+
const de_R53ResourceRecord = (output, context) => {
|
|
2581
2571
|
return {
|
|
2582
2572
|
DomainName: (0, smithy_client_1.expectString)(output.domainName),
|
|
2583
2573
|
RecordSetId: (0, smithy_client_1.expectString)(output.recordSetId),
|
|
2584
2574
|
};
|
|
2585
2575
|
};
|
|
2586
|
-
const
|
|
2576
|
+
const de_ReadinessCheckOutput = (output, context) => {
|
|
2587
2577
|
return {
|
|
2588
2578
|
ReadinessCheckArn: (0, smithy_client_1.expectString)(output.readinessCheckArn),
|
|
2589
2579
|
ReadinessCheckName: (0, smithy_client_1.expectString)(output.readinessCheckName),
|
|
2590
2580
|
ResourceSet: (0, smithy_client_1.expectString)(output.resourceSet),
|
|
2591
|
-
Tags: output.tags != null ?
|
|
2581
|
+
Tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2592
2582
|
};
|
|
2593
2583
|
};
|
|
2594
|
-
const
|
|
2584
|
+
const de_ReadinessCheckSummary = (output, context) => {
|
|
2595
2585
|
return {
|
|
2596
2586
|
Readiness: (0, smithy_client_1.expectString)(output.readiness),
|
|
2597
2587
|
ReadinessCheckName: (0, smithy_client_1.expectString)(output.readinessCheckName),
|
|
2598
2588
|
};
|
|
2599
2589
|
};
|
|
2600
|
-
const
|
|
2590
|
+
const de_Recommendation = (output, context) => {
|
|
2601
2591
|
return {
|
|
2602
2592
|
RecommendationText: (0, smithy_client_1.expectString)(output.recommendationText),
|
|
2603
2593
|
};
|
|
2604
2594
|
};
|
|
2605
|
-
const
|
|
2595
|
+
const de_RecoveryGroupOutput = (output, context) => {
|
|
2606
2596
|
return {
|
|
2607
|
-
Cells: output.cells != null ?
|
|
2597
|
+
Cells: output.cells != null ? de___listOf__string(output.cells, context) : undefined,
|
|
2608
2598
|
RecoveryGroupArn: (0, smithy_client_1.expectString)(output.recoveryGroupArn),
|
|
2609
2599
|
RecoveryGroupName: (0, smithy_client_1.expectString)(output.recoveryGroupName),
|
|
2610
|
-
Tags: output.tags != null ?
|
|
2600
|
+
Tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2611
2601
|
};
|
|
2612
2602
|
};
|
|
2613
|
-
const
|
|
2603
|
+
const de_Resource = (output, context) => {
|
|
2614
2604
|
return {
|
|
2615
2605
|
ComponentId: (0, smithy_client_1.expectString)(output.componentId),
|
|
2616
|
-
DnsTargetResource: output.dnsTargetResource != null
|
|
2617
|
-
|
|
2618
|
-
: undefined,
|
|
2619
|
-
ReadinessScopes: output.readinessScopes != null
|
|
2620
|
-
? deserializeAws_restJson1__listOf__string(output.readinessScopes, context)
|
|
2621
|
-
: undefined,
|
|
2606
|
+
DnsTargetResource: output.dnsTargetResource != null ? de_DNSTargetResource(output.dnsTargetResource, context) : undefined,
|
|
2607
|
+
ReadinessScopes: output.readinessScopes != null ? de___listOf__string(output.readinessScopes, context) : undefined,
|
|
2622
2608
|
ResourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
2623
2609
|
};
|
|
2624
2610
|
};
|
|
2625
|
-
const
|
|
2611
|
+
const de_ResourceResult = (output, context) => {
|
|
2626
2612
|
return {
|
|
2627
2613
|
ComponentId: (0, smithy_client_1.expectString)(output.componentId),
|
|
2628
2614
|
LastCheckedTimestamp: output.lastCheckedTimestamp != null
|
|
@@ -2632,26 +2618,26 @@ const deserializeAws_restJson1ResourceResult = (output, context) => {
|
|
|
2632
2618
|
ResourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
2633
2619
|
};
|
|
2634
2620
|
};
|
|
2635
|
-
const
|
|
2621
|
+
const de_ResourceSetOutput = (output, context) => {
|
|
2636
2622
|
return {
|
|
2637
2623
|
ResourceSetArn: (0, smithy_client_1.expectString)(output.resourceSetArn),
|
|
2638
2624
|
ResourceSetName: (0, smithy_client_1.expectString)(output.resourceSetName),
|
|
2639
2625
|
ResourceSetType: (0, smithy_client_1.expectString)(output.resourceSetType),
|
|
2640
|
-
Resources: output.resources != null ?
|
|
2641
|
-
Tags: output.tags != null ?
|
|
2626
|
+
Resources: output.resources != null ? de___listOfResource(output.resources, context) : undefined,
|
|
2627
|
+
Tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2642
2628
|
};
|
|
2643
2629
|
};
|
|
2644
|
-
const
|
|
2630
|
+
const de_RuleResult = (output, context) => {
|
|
2645
2631
|
return {
|
|
2646
2632
|
LastCheckedTimestamp: output.lastCheckedTimestamp != null
|
|
2647
2633
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.lastCheckedTimestamp))
|
|
2648
2634
|
: undefined,
|
|
2649
|
-
Messages: output.messages != null ?
|
|
2635
|
+
Messages: output.messages != null ? de___listOfMessage(output.messages, context) : undefined,
|
|
2650
2636
|
Readiness: (0, smithy_client_1.expectString)(output.readiness),
|
|
2651
2637
|
RuleId: (0, smithy_client_1.expectString)(output.ruleId),
|
|
2652
2638
|
};
|
|
2653
2639
|
};
|
|
2654
|
-
const
|
|
2640
|
+
const de_Tags = (output, context) => {
|
|
2655
2641
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2656
2642
|
if (value === null) {
|
|
2657
2643
|
return acc;
|
|
@@ -2660,10 +2646,10 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
2660
2646
|
return acc;
|
|
2661
2647
|
}, {});
|
|
2662
2648
|
};
|
|
2663
|
-
const
|
|
2649
|
+
const de_TargetResource = (output, context) => {
|
|
2664
2650
|
return {
|
|
2665
|
-
NLBResource: output.nLBResource != null ?
|
|
2666
|
-
R53Resource: output.r53Resource != null ?
|
|
2651
|
+
NLBResource: output.nLBResource != null ? de_NLBResource(output.nLBResource, context) : undefined,
|
|
2652
|
+
R53Resource: output.r53Resource != null ? de_R53ResourceRecord(output.r53Resource, context) : undefined,
|
|
2667
2653
|
};
|
|
2668
2654
|
};
|
|
2669
2655
|
const deserializeMetadata = (output) => ({
|