@aws-sdk/client-route53-recovery-readiness 3.312.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +406 -611
- package/dist-es/protocols/Aws_restJson1.js +357 -562
- package/package.json +6 -6
|
@@ -13,11 +13,11 @@ const se_CreateCellCommand = async (input, context) => {
|
|
|
13
13
|
};
|
|
14
14
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cells";
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
cellName: [, , `CellName`],
|
|
18
|
+
cells: [, (_) => (0, smithy_client_1._json)(_), `Cells`],
|
|
19
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
20
|
+
}));
|
|
21
21
|
return new protocol_http_1.HttpRequest({
|
|
22
22
|
protocol,
|
|
23
23
|
hostname,
|
|
@@ -36,9 +36,9 @@ const se_CreateCrossAccountAuthorizationCommand = async (input, context) => {
|
|
|
36
36
|
};
|
|
37
37
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crossaccountauthorizations";
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify({
|
|
40
|
-
|
|
41
|
-
});
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
40
|
+
crossAccountAuthorization: [, , `CrossAccountAuthorization`],
|
|
41
|
+
}));
|
|
42
42
|
return new protocol_http_1.HttpRequest({
|
|
43
43
|
protocol,
|
|
44
44
|
hostname,
|
|
@@ -57,11 +57,11 @@ const se_CreateReadinessCheckCommand = async (input, context) => {
|
|
|
57
57
|
};
|
|
58
58
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/readinesschecks";
|
|
59
59
|
let body;
|
|
60
|
-
body = JSON.stringify({
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
});
|
|
60
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
61
|
+
readinessCheckName: [, , `ReadinessCheckName`],
|
|
62
|
+
resourceSetName: [, , `ResourceSetName`],
|
|
63
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
64
|
+
}));
|
|
65
65
|
return new protocol_http_1.HttpRequest({
|
|
66
66
|
protocol,
|
|
67
67
|
hostname,
|
|
@@ -80,11 +80,11 @@ const se_CreateRecoveryGroupCommand = async (input, context) => {
|
|
|
80
80
|
};
|
|
81
81
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recoverygroups";
|
|
82
82
|
let body;
|
|
83
|
-
body = JSON.stringify({
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
});
|
|
83
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
84
|
+
cells: [, (_) => (0, smithy_client_1._json)(_), `Cells`],
|
|
85
|
+
recoveryGroupName: [, , `RecoveryGroupName`],
|
|
86
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
87
|
+
}));
|
|
88
88
|
return new protocol_http_1.HttpRequest({
|
|
89
89
|
protocol,
|
|
90
90
|
hostname,
|
|
@@ -103,12 +103,12 @@ const se_CreateResourceSetCommand = async (input, context) => {
|
|
|
103
103
|
};
|
|
104
104
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcesets";
|
|
105
105
|
let body;
|
|
106
|
-
body = JSON.stringify({
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
});
|
|
106
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
107
|
+
resourceSetName: [, , `ResourceSetName`],
|
|
108
|
+
resourceSetType: [, , `ResourceSetType`],
|
|
109
|
+
resources: [, (_) => se___listOfResource(_, context), `Resources`],
|
|
110
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
111
|
+
}));
|
|
112
112
|
return new protocol_http_1.HttpRequest({
|
|
113
113
|
protocol,
|
|
114
114
|
hostname,
|
|
@@ -212,7 +212,7 @@ const se_GetArchitectureRecommendationsCommand = async (input, context) => {
|
|
|
212
212
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
213
213
|
"/recoverygroups/{RecoveryGroupName}/architectureRecommendations";
|
|
214
214
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
215
|
-
const query = map({
|
|
215
|
+
const query = (0, smithy_client_1.map)({
|
|
216
216
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
217
217
|
nextToken: [, input.NextToken],
|
|
218
218
|
});
|
|
@@ -251,7 +251,7 @@ const se_GetCellReadinessSummaryCommand = async (input, context) => {
|
|
|
251
251
|
const headers = {};
|
|
252
252
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cellreadiness/{CellName}";
|
|
253
253
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CellName", () => input.CellName, "{CellName}", false);
|
|
254
|
-
const query = map({
|
|
254
|
+
const query = (0, smithy_client_1.map)({
|
|
255
255
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
256
256
|
nextToken: [, input.NextToken],
|
|
257
257
|
});
|
|
@@ -292,7 +292,7 @@ const se_GetReadinessCheckResourceStatusCommand = async (input, context) => {
|
|
|
292
292
|
"/readinesschecks/{ReadinessCheckName}/resource/{ResourceIdentifier}/status";
|
|
293
293
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
294
294
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
|
|
295
|
-
const query = map({
|
|
295
|
+
const query = (0, smithy_client_1.map)({
|
|
296
296
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
297
297
|
nextToken: [, input.NextToken],
|
|
298
298
|
});
|
|
@@ -315,7 +315,7 @@ const se_GetReadinessCheckStatusCommand = async (input, context) => {
|
|
|
315
315
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
316
316
|
"/readinesschecks/{ReadinessCheckName}/status";
|
|
317
317
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
318
|
-
const query = map({
|
|
318
|
+
const query = (0, smithy_client_1.map)({
|
|
319
319
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
320
320
|
nextToken: [, input.NextToken],
|
|
321
321
|
});
|
|
@@ -355,7 +355,7 @@ const se_GetRecoveryGroupReadinessSummaryCommand = async (input, context) => {
|
|
|
355
355
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
356
356
|
"/recoverygroupreadiness/{RecoveryGroupName}";
|
|
357
357
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
358
|
-
const query = map({
|
|
358
|
+
const query = (0, smithy_client_1.map)({
|
|
359
359
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
360
360
|
nextToken: [, input.NextToken],
|
|
361
361
|
});
|
|
@@ -393,7 +393,7 @@ 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";
|
|
396
|
-
const query = map({
|
|
396
|
+
const query = (0, smithy_client_1.map)({
|
|
397
397
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
398
398
|
nextToken: [, input.NextToken],
|
|
399
399
|
});
|
|
@@ -414,7 +414,7 @@ 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";
|
|
417
|
-
const query = map({
|
|
417
|
+
const query = (0, smithy_client_1.map)({
|
|
418
418
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
419
419
|
nextToken: [, input.NextToken],
|
|
420
420
|
});
|
|
@@ -435,7 +435,7 @@ 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";
|
|
438
|
-
const query = map({
|
|
438
|
+
const query = (0, smithy_client_1.map)({
|
|
439
439
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
440
440
|
nextToken: [, input.NextToken],
|
|
441
441
|
});
|
|
@@ -456,7 +456,7 @@ 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";
|
|
459
|
-
const query = map({
|
|
459
|
+
const query = (0, smithy_client_1.map)({
|
|
460
460
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
461
461
|
nextToken: [, input.NextToken],
|
|
462
462
|
});
|
|
@@ -477,7 +477,7 @@ 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";
|
|
480
|
-
const query = map({
|
|
480
|
+
const query = (0, smithy_client_1.map)({
|
|
481
481
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
482
482
|
nextToken: [, input.NextToken],
|
|
483
483
|
});
|
|
@@ -498,7 +498,7 @@ 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";
|
|
501
|
-
const query = map({
|
|
501
|
+
const query = (0, smithy_client_1.map)({
|
|
502
502
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
503
503
|
nextToken: [, input.NextToken],
|
|
504
504
|
resourceType: [, input.ResourceType],
|
|
@@ -541,9 +541,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
541
541
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
542
542
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
543
543
|
let body;
|
|
544
|
-
body = JSON.stringify({
|
|
545
|
-
|
|
546
|
-
});
|
|
544
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
545
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
546
|
+
}));
|
|
547
547
|
return new protocol_http_1.HttpRequest({
|
|
548
548
|
protocol,
|
|
549
549
|
hostname,
|
|
@@ -560,7 +560,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
560
560
|
const headers = {};
|
|
561
561
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
562
562
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
563
|
-
const query = map({
|
|
563
|
+
const query = (0, smithy_client_1.map)({
|
|
564
564
|
tagKeys: [
|
|
565
565
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
566
566
|
() => (input.TagKeys || []).map((_entry) => _entry),
|
|
@@ -587,9 +587,9 @@ const se_UpdateCellCommand = async (input, context) => {
|
|
|
587
587
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cells/{CellName}";
|
|
588
588
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CellName", () => input.CellName, "{CellName}", false);
|
|
589
589
|
let body;
|
|
590
|
-
body = JSON.stringify({
|
|
591
|
-
|
|
592
|
-
});
|
|
590
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
591
|
+
cells: [, (_) => (0, smithy_client_1._json)(_), `Cells`],
|
|
592
|
+
}));
|
|
593
593
|
return new protocol_http_1.HttpRequest({
|
|
594
594
|
protocol,
|
|
595
595
|
hostname,
|
|
@@ -609,9 +609,9 @@ const se_UpdateReadinessCheckCommand = async (input, context) => {
|
|
|
609
609
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/readinesschecks/{ReadinessCheckName}";
|
|
610
610
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReadinessCheckName", () => input.ReadinessCheckName, "{ReadinessCheckName}", false);
|
|
611
611
|
let body;
|
|
612
|
-
body = JSON.stringify({
|
|
613
|
-
|
|
614
|
-
});
|
|
612
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
613
|
+
resourceSetName: [, , `ResourceSetName`],
|
|
614
|
+
}));
|
|
615
615
|
return new protocol_http_1.HttpRequest({
|
|
616
616
|
protocol,
|
|
617
617
|
hostname,
|
|
@@ -631,9 +631,9 @@ const se_UpdateRecoveryGroupCommand = async (input, context) => {
|
|
|
631
631
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/recoverygroups/{RecoveryGroupName}";
|
|
632
632
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecoveryGroupName", () => input.RecoveryGroupName, "{RecoveryGroupName}", false);
|
|
633
633
|
let body;
|
|
634
|
-
body = JSON.stringify({
|
|
635
|
-
|
|
636
|
-
});
|
|
634
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
635
|
+
cells: [, (_) => (0, smithy_client_1._json)(_), `Cells`],
|
|
636
|
+
}));
|
|
637
637
|
return new protocol_http_1.HttpRequest({
|
|
638
638
|
protocol,
|
|
639
639
|
hostname,
|
|
@@ -653,10 +653,10 @@ const se_UpdateResourceSetCommand = async (input, context) => {
|
|
|
653
653
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcesets/{ResourceSetName}";
|
|
654
654
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceSetName", () => input.ResourceSetName, "{ResourceSetName}", false);
|
|
655
655
|
let body;
|
|
656
|
-
body = JSON.stringify({
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
});
|
|
656
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
657
|
+
resourceSetType: [, , `ResourceSetType`],
|
|
658
|
+
resources: [, (_) => se___listOfResource(_, context), `Resources`],
|
|
659
|
+
}));
|
|
660
660
|
return new protocol_http_1.HttpRequest({
|
|
661
661
|
protocol,
|
|
662
662
|
hostname,
|
|
@@ -672,25 +672,18 @@ const de_CreateCellCommand = async (output, context) => {
|
|
|
672
672
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
673
673
|
return de_CreateCellCommandError(output, context);
|
|
674
674
|
}
|
|
675
|
-
const contents = map({
|
|
675
|
+
const contents = (0, smithy_client_1.map)({
|
|
676
676
|
$metadata: deserializeMetadata(output),
|
|
677
677
|
});
|
|
678
678
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
}
|
|
688
|
-
if (data.parentReadinessScopes != null) {
|
|
689
|
-
contents.ParentReadinessScopes = de___listOf__string(data.parentReadinessScopes, context);
|
|
690
|
-
}
|
|
691
|
-
if (data.tags != null) {
|
|
692
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
693
|
-
}
|
|
679
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
680
|
+
CellArn: [, smithy_client_1.expectString, `cellArn`],
|
|
681
|
+
CellName: [, smithy_client_1.expectString, `cellName`],
|
|
682
|
+
Cells: [, smithy_client_1._json, `cells`],
|
|
683
|
+
ParentReadinessScopes: [, smithy_client_1._json, `parentReadinessScopes`],
|
|
684
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
685
|
+
});
|
|
686
|
+
Object.assign(contents, doc);
|
|
694
687
|
return contents;
|
|
695
688
|
};
|
|
696
689
|
exports.de_CreateCellCommand = de_CreateCellCommand;
|
|
@@ -718,10 +711,9 @@ const de_CreateCellCommandError = async (output, context) => {
|
|
|
718
711
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
719
712
|
default:
|
|
720
713
|
const parsedBody = parsedOutput.body;
|
|
721
|
-
|
|
714
|
+
return throwDefaultError({
|
|
722
715
|
output,
|
|
723
716
|
parsedBody,
|
|
724
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
725
717
|
errorCode,
|
|
726
718
|
});
|
|
727
719
|
}
|
|
@@ -730,13 +722,14 @@ const de_CreateCrossAccountAuthorizationCommand = async (output, context) => {
|
|
|
730
722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
731
723
|
return de_CreateCrossAccountAuthorizationCommandError(output, context);
|
|
732
724
|
}
|
|
733
|
-
const contents = map({
|
|
725
|
+
const contents = (0, smithy_client_1.map)({
|
|
734
726
|
$metadata: deserializeMetadata(output),
|
|
735
727
|
});
|
|
736
728
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
}
|
|
729
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
730
|
+
CrossAccountAuthorization: [, smithy_client_1.expectString, `crossAccountAuthorization`],
|
|
731
|
+
});
|
|
732
|
+
Object.assign(contents, doc);
|
|
740
733
|
return contents;
|
|
741
734
|
};
|
|
742
735
|
exports.de_CreateCrossAccountAuthorizationCommand = de_CreateCrossAccountAuthorizationCommand;
|
|
@@ -764,10 +757,9 @@ const de_CreateCrossAccountAuthorizationCommandError = async (output, context) =
|
|
|
764
757
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
765
758
|
default:
|
|
766
759
|
const parsedBody = parsedOutput.body;
|
|
767
|
-
|
|
760
|
+
return throwDefaultError({
|
|
768
761
|
output,
|
|
769
762
|
parsedBody,
|
|
770
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
771
763
|
errorCode,
|
|
772
764
|
});
|
|
773
765
|
}
|
|
@@ -776,22 +768,17 @@ const de_CreateReadinessCheckCommand = async (output, context) => {
|
|
|
776
768
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
777
769
|
return de_CreateReadinessCheckCommandError(output, context);
|
|
778
770
|
}
|
|
779
|
-
const contents = map({
|
|
771
|
+
const contents = (0, smithy_client_1.map)({
|
|
780
772
|
$metadata: deserializeMetadata(output),
|
|
781
773
|
});
|
|
782
774
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
contents.ResourceSet = (0, smithy_client_1.expectString)(data.resourceSet);
|
|
791
|
-
}
|
|
792
|
-
if (data.tags != null) {
|
|
793
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
794
|
-
}
|
|
775
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
776
|
+
ReadinessCheckArn: [, smithy_client_1.expectString, `readinessCheckArn`],
|
|
777
|
+
ReadinessCheckName: [, smithy_client_1.expectString, `readinessCheckName`],
|
|
778
|
+
ResourceSet: [, smithy_client_1.expectString, `resourceSet`],
|
|
779
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
780
|
+
});
|
|
781
|
+
Object.assign(contents, doc);
|
|
795
782
|
return contents;
|
|
796
783
|
};
|
|
797
784
|
exports.de_CreateReadinessCheckCommand = de_CreateReadinessCheckCommand;
|
|
@@ -819,10 +806,9 @@ const de_CreateReadinessCheckCommandError = async (output, context) => {
|
|
|
819
806
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
820
807
|
default:
|
|
821
808
|
const parsedBody = parsedOutput.body;
|
|
822
|
-
|
|
809
|
+
return throwDefaultError({
|
|
823
810
|
output,
|
|
824
811
|
parsedBody,
|
|
825
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
826
812
|
errorCode,
|
|
827
813
|
});
|
|
828
814
|
}
|
|
@@ -831,22 +817,17 @@ const de_CreateRecoveryGroupCommand = async (output, context) => {
|
|
|
831
817
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
832
818
|
return de_CreateRecoveryGroupCommandError(output, context);
|
|
833
819
|
}
|
|
834
|
-
const contents = map({
|
|
820
|
+
const contents = (0, smithy_client_1.map)({
|
|
835
821
|
$metadata: deserializeMetadata(output),
|
|
836
822
|
});
|
|
837
823
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
contents.RecoveryGroupName = (0, smithy_client_1.expectString)(data.recoveryGroupName);
|
|
846
|
-
}
|
|
847
|
-
if (data.tags != null) {
|
|
848
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
849
|
-
}
|
|
824
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
825
|
+
Cells: [, smithy_client_1._json, `cells`],
|
|
826
|
+
RecoveryGroupArn: [, smithy_client_1.expectString, `recoveryGroupArn`],
|
|
827
|
+
RecoveryGroupName: [, smithy_client_1.expectString, `recoveryGroupName`],
|
|
828
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
829
|
+
});
|
|
830
|
+
Object.assign(contents, doc);
|
|
850
831
|
return contents;
|
|
851
832
|
};
|
|
852
833
|
exports.de_CreateRecoveryGroupCommand = de_CreateRecoveryGroupCommand;
|
|
@@ -874,10 +855,9 @@ const de_CreateRecoveryGroupCommandError = async (output, context) => {
|
|
|
874
855
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
875
856
|
default:
|
|
876
857
|
const parsedBody = parsedOutput.body;
|
|
877
|
-
|
|
858
|
+
return throwDefaultError({
|
|
878
859
|
output,
|
|
879
860
|
parsedBody,
|
|
880
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
881
861
|
errorCode,
|
|
882
862
|
});
|
|
883
863
|
}
|
|
@@ -886,25 +866,18 @@ const de_CreateResourceSetCommand = async (output, context) => {
|
|
|
886
866
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
867
|
return de_CreateResourceSetCommandError(output, context);
|
|
888
868
|
}
|
|
889
|
-
const contents = map({
|
|
869
|
+
const contents = (0, smithy_client_1.map)({
|
|
890
870
|
$metadata: deserializeMetadata(output),
|
|
891
871
|
});
|
|
892
872
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
}
|
|
902
|
-
if (data.resources != null) {
|
|
903
|
-
contents.Resources = de___listOfResource(data.resources, context);
|
|
904
|
-
}
|
|
905
|
-
if (data.tags != null) {
|
|
906
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
907
|
-
}
|
|
873
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
874
|
+
ResourceSetArn: [, smithy_client_1.expectString, `resourceSetArn`],
|
|
875
|
+
ResourceSetName: [, smithy_client_1.expectString, `resourceSetName`],
|
|
876
|
+
ResourceSetType: [, smithy_client_1.expectString, `resourceSetType`],
|
|
877
|
+
Resources: [, (_) => de___listOfResource(_, context), `resources`],
|
|
878
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
879
|
+
});
|
|
880
|
+
Object.assign(contents, doc);
|
|
908
881
|
return contents;
|
|
909
882
|
};
|
|
910
883
|
exports.de_CreateResourceSetCommand = de_CreateResourceSetCommand;
|
|
@@ -932,10 +905,9 @@ const de_CreateResourceSetCommandError = async (output, context) => {
|
|
|
932
905
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
933
906
|
default:
|
|
934
907
|
const parsedBody = parsedOutput.body;
|
|
935
|
-
|
|
908
|
+
return throwDefaultError({
|
|
936
909
|
output,
|
|
937
910
|
parsedBody,
|
|
938
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
939
911
|
errorCode,
|
|
940
912
|
});
|
|
941
913
|
}
|
|
@@ -944,7 +916,7 @@ const de_DeleteCellCommand = async (output, context) => {
|
|
|
944
916
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
945
917
|
return de_DeleteCellCommandError(output, context);
|
|
946
918
|
}
|
|
947
|
-
const contents = map({
|
|
919
|
+
const contents = (0, smithy_client_1.map)({
|
|
948
920
|
$metadata: deserializeMetadata(output),
|
|
949
921
|
});
|
|
950
922
|
await collectBody(output.body, context);
|
|
@@ -975,10 +947,9 @@ const de_DeleteCellCommandError = async (output, context) => {
|
|
|
975
947
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
976
948
|
default:
|
|
977
949
|
const parsedBody = parsedOutput.body;
|
|
978
|
-
|
|
950
|
+
return throwDefaultError({
|
|
979
951
|
output,
|
|
980
952
|
parsedBody,
|
|
981
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
982
953
|
errorCode,
|
|
983
954
|
});
|
|
984
955
|
}
|
|
@@ -987,7 +958,7 @@ const de_DeleteCrossAccountAuthorizationCommand = async (output, context) => {
|
|
|
987
958
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
988
959
|
return de_DeleteCrossAccountAuthorizationCommandError(output, context);
|
|
989
960
|
}
|
|
990
|
-
const contents = map({
|
|
961
|
+
const contents = (0, smithy_client_1.map)({
|
|
991
962
|
$metadata: deserializeMetadata(output),
|
|
992
963
|
});
|
|
993
964
|
await collectBody(output.body, context);
|
|
@@ -1015,10 +986,9 @@ const de_DeleteCrossAccountAuthorizationCommandError = async (output, context) =
|
|
|
1015
986
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1016
987
|
default:
|
|
1017
988
|
const parsedBody = parsedOutput.body;
|
|
1018
|
-
|
|
989
|
+
return throwDefaultError({
|
|
1019
990
|
output,
|
|
1020
991
|
parsedBody,
|
|
1021
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1022
992
|
errorCode,
|
|
1023
993
|
});
|
|
1024
994
|
}
|
|
@@ -1027,7 +997,7 @@ const de_DeleteReadinessCheckCommand = async (output, context) => {
|
|
|
1027
997
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1028
998
|
return de_DeleteReadinessCheckCommandError(output, context);
|
|
1029
999
|
}
|
|
1030
|
-
const contents = map({
|
|
1000
|
+
const contents = (0, smithy_client_1.map)({
|
|
1031
1001
|
$metadata: deserializeMetadata(output),
|
|
1032
1002
|
});
|
|
1033
1003
|
await collectBody(output.body, context);
|
|
@@ -1058,10 +1028,9 @@ const de_DeleteReadinessCheckCommandError = async (output, context) => {
|
|
|
1058
1028
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1059
1029
|
default:
|
|
1060
1030
|
const parsedBody = parsedOutput.body;
|
|
1061
|
-
|
|
1031
|
+
return throwDefaultError({
|
|
1062
1032
|
output,
|
|
1063
1033
|
parsedBody,
|
|
1064
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1065
1034
|
errorCode,
|
|
1066
1035
|
});
|
|
1067
1036
|
}
|
|
@@ -1070,7 +1039,7 @@ const de_DeleteRecoveryGroupCommand = async (output, context) => {
|
|
|
1070
1039
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1071
1040
|
return de_DeleteRecoveryGroupCommandError(output, context);
|
|
1072
1041
|
}
|
|
1073
|
-
const contents = map({
|
|
1042
|
+
const contents = (0, smithy_client_1.map)({
|
|
1074
1043
|
$metadata: deserializeMetadata(output),
|
|
1075
1044
|
});
|
|
1076
1045
|
await collectBody(output.body, context);
|
|
@@ -1101,10 +1070,9 @@ const de_DeleteRecoveryGroupCommandError = async (output, context) => {
|
|
|
1101
1070
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1102
1071
|
default:
|
|
1103
1072
|
const parsedBody = parsedOutput.body;
|
|
1104
|
-
|
|
1073
|
+
return throwDefaultError({
|
|
1105
1074
|
output,
|
|
1106
1075
|
parsedBody,
|
|
1107
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1108
1076
|
errorCode,
|
|
1109
1077
|
});
|
|
1110
1078
|
}
|
|
@@ -1113,7 +1081,7 @@ const de_DeleteResourceSetCommand = async (output, context) => {
|
|
|
1113
1081
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1114
1082
|
return de_DeleteResourceSetCommandError(output, context);
|
|
1115
1083
|
}
|
|
1116
|
-
const contents = map({
|
|
1084
|
+
const contents = (0, smithy_client_1.map)({
|
|
1117
1085
|
$metadata: deserializeMetadata(output),
|
|
1118
1086
|
});
|
|
1119
1087
|
await collectBody(output.body, context);
|
|
@@ -1144,10 +1112,9 @@ const de_DeleteResourceSetCommandError = async (output, context) => {
|
|
|
1144
1112
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1145
1113
|
default:
|
|
1146
1114
|
const parsedBody = parsedOutput.body;
|
|
1147
|
-
|
|
1115
|
+
return throwDefaultError({
|
|
1148
1116
|
output,
|
|
1149
1117
|
parsedBody,
|
|
1150
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1151
1118
|
errorCode,
|
|
1152
1119
|
});
|
|
1153
1120
|
}
|
|
@@ -1156,19 +1123,16 @@ const de_GetArchitectureRecommendationsCommand = async (output, context) => {
|
|
|
1156
1123
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1157
1124
|
return de_GetArchitectureRecommendationsCommandError(output, context);
|
|
1158
1125
|
}
|
|
1159
|
-
const contents = map({
|
|
1126
|
+
const contents = (0, smithy_client_1.map)({
|
|
1160
1127
|
$metadata: deserializeMetadata(output),
|
|
1161
1128
|
});
|
|
1162
1129
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
if (data.recommendations != null) {
|
|
1170
|
-
contents.Recommendations = de___listOfRecommendation(data.recommendations, context);
|
|
1171
|
-
}
|
|
1130
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1131
|
+
LastAuditTimestamp: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `lastAuditTimestamp`],
|
|
1132
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1133
|
+
Recommendations: [, (_) => de___listOfRecommendation(_, context), `recommendations`],
|
|
1134
|
+
});
|
|
1135
|
+
Object.assign(contents, doc);
|
|
1172
1136
|
return contents;
|
|
1173
1137
|
};
|
|
1174
1138
|
exports.de_GetArchitectureRecommendationsCommand = de_GetArchitectureRecommendationsCommand;
|
|
@@ -1196,10 +1160,9 @@ const de_GetArchitectureRecommendationsCommandError = async (output, context) =>
|
|
|
1196
1160
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1197
1161
|
default:
|
|
1198
1162
|
const parsedBody = parsedOutput.body;
|
|
1199
|
-
|
|
1163
|
+
return throwDefaultError({
|
|
1200
1164
|
output,
|
|
1201
1165
|
parsedBody,
|
|
1202
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1203
1166
|
errorCode,
|
|
1204
1167
|
});
|
|
1205
1168
|
}
|
|
@@ -1208,25 +1171,18 @@ const de_GetCellCommand = async (output, context) => {
|
|
|
1208
1171
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1209
1172
|
return de_GetCellCommandError(output, context);
|
|
1210
1173
|
}
|
|
1211
|
-
const contents = map({
|
|
1174
|
+
const contents = (0, smithy_client_1.map)({
|
|
1212
1175
|
$metadata: deserializeMetadata(output),
|
|
1213
1176
|
});
|
|
1214
1177
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
}
|
|
1224
|
-
if (data.parentReadinessScopes != null) {
|
|
1225
|
-
contents.ParentReadinessScopes = de___listOf__string(data.parentReadinessScopes, context);
|
|
1226
|
-
}
|
|
1227
|
-
if (data.tags != null) {
|
|
1228
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1229
|
-
}
|
|
1178
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1179
|
+
CellArn: [, smithy_client_1.expectString, `cellArn`],
|
|
1180
|
+
CellName: [, smithy_client_1.expectString, `cellName`],
|
|
1181
|
+
Cells: [, smithy_client_1._json, `cells`],
|
|
1182
|
+
ParentReadinessScopes: [, smithy_client_1._json, `parentReadinessScopes`],
|
|
1183
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1184
|
+
});
|
|
1185
|
+
Object.assign(contents, doc);
|
|
1230
1186
|
return contents;
|
|
1231
1187
|
};
|
|
1232
1188
|
exports.de_GetCellCommand = de_GetCellCommand;
|
|
@@ -1254,10 +1210,9 @@ const de_GetCellCommandError = async (output, context) => {
|
|
|
1254
1210
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1255
1211
|
default:
|
|
1256
1212
|
const parsedBody = parsedOutput.body;
|
|
1257
|
-
|
|
1213
|
+
return throwDefaultError({
|
|
1258
1214
|
output,
|
|
1259
1215
|
parsedBody,
|
|
1260
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1261
1216
|
errorCode,
|
|
1262
1217
|
});
|
|
1263
1218
|
}
|
|
@@ -1266,19 +1221,16 @@ const de_GetCellReadinessSummaryCommand = async (output, context) => {
|
|
|
1266
1221
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1267
1222
|
return de_GetCellReadinessSummaryCommandError(output, context);
|
|
1268
1223
|
}
|
|
1269
|
-
const contents = map({
|
|
1224
|
+
const contents = (0, smithy_client_1.map)({
|
|
1270
1225
|
$metadata: deserializeMetadata(output),
|
|
1271
1226
|
});
|
|
1272
1227
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
if (data.readinessChecks != null) {
|
|
1280
|
-
contents.ReadinessChecks = de___listOfReadinessCheckSummary(data.readinessChecks, context);
|
|
1281
|
-
}
|
|
1228
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1229
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1230
|
+
Readiness: [, smithy_client_1.expectString, `readiness`],
|
|
1231
|
+
ReadinessChecks: [, (_) => de___listOfReadinessCheckSummary(_, context), `readinessChecks`],
|
|
1232
|
+
});
|
|
1233
|
+
Object.assign(contents, doc);
|
|
1282
1234
|
return contents;
|
|
1283
1235
|
};
|
|
1284
1236
|
exports.de_GetCellReadinessSummaryCommand = de_GetCellReadinessSummaryCommand;
|
|
@@ -1306,10 +1258,9 @@ const de_GetCellReadinessSummaryCommandError = async (output, context) => {
|
|
|
1306
1258
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1307
1259
|
default:
|
|
1308
1260
|
const parsedBody = parsedOutput.body;
|
|
1309
|
-
|
|
1261
|
+
return throwDefaultError({
|
|
1310
1262
|
output,
|
|
1311
1263
|
parsedBody,
|
|
1312
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1313
1264
|
errorCode,
|
|
1314
1265
|
});
|
|
1315
1266
|
}
|
|
@@ -1318,22 +1269,17 @@ const de_GetReadinessCheckCommand = async (output, context) => {
|
|
|
1318
1269
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1319
1270
|
return de_GetReadinessCheckCommandError(output, context);
|
|
1320
1271
|
}
|
|
1321
|
-
const contents = map({
|
|
1272
|
+
const contents = (0, smithy_client_1.map)({
|
|
1322
1273
|
$metadata: deserializeMetadata(output),
|
|
1323
1274
|
});
|
|
1324
1275
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
contents.ResourceSet = (0, smithy_client_1.expectString)(data.resourceSet);
|
|
1333
|
-
}
|
|
1334
|
-
if (data.tags != null) {
|
|
1335
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1336
|
-
}
|
|
1276
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1277
|
+
ReadinessCheckArn: [, smithy_client_1.expectString, `readinessCheckArn`],
|
|
1278
|
+
ReadinessCheckName: [, smithy_client_1.expectString, `readinessCheckName`],
|
|
1279
|
+
ResourceSet: [, smithy_client_1.expectString, `resourceSet`],
|
|
1280
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1281
|
+
});
|
|
1282
|
+
Object.assign(contents, doc);
|
|
1337
1283
|
return contents;
|
|
1338
1284
|
};
|
|
1339
1285
|
exports.de_GetReadinessCheckCommand = de_GetReadinessCheckCommand;
|
|
@@ -1361,10 +1307,9 @@ const de_GetReadinessCheckCommandError = async (output, context) => {
|
|
|
1361
1307
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1362
1308
|
default:
|
|
1363
1309
|
const parsedBody = parsedOutput.body;
|
|
1364
|
-
|
|
1310
|
+
return throwDefaultError({
|
|
1365
1311
|
output,
|
|
1366
1312
|
parsedBody,
|
|
1367
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1368
1313
|
errorCode,
|
|
1369
1314
|
});
|
|
1370
1315
|
}
|
|
@@ -1373,19 +1318,16 @@ const de_GetReadinessCheckResourceStatusCommand = async (output, context) => {
|
|
|
1373
1318
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1374
1319
|
return de_GetReadinessCheckResourceStatusCommandError(output, context);
|
|
1375
1320
|
}
|
|
1376
|
-
const contents = map({
|
|
1321
|
+
const contents = (0, smithy_client_1.map)({
|
|
1377
1322
|
$metadata: deserializeMetadata(output),
|
|
1378
1323
|
});
|
|
1379
1324
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
if (data.rules != null) {
|
|
1387
|
-
contents.Rules = de___listOfRuleResult(data.rules, context);
|
|
1388
|
-
}
|
|
1325
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1326
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1327
|
+
Readiness: [, smithy_client_1.expectString, `readiness`],
|
|
1328
|
+
Rules: [, (_) => de___listOfRuleResult(_, context), `rules`],
|
|
1329
|
+
});
|
|
1330
|
+
Object.assign(contents, doc);
|
|
1389
1331
|
return contents;
|
|
1390
1332
|
};
|
|
1391
1333
|
exports.de_GetReadinessCheckResourceStatusCommand = de_GetReadinessCheckResourceStatusCommand;
|
|
@@ -1413,10 +1355,9 @@ const de_GetReadinessCheckResourceStatusCommandError = async (output, context) =
|
|
|
1413
1355
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1414
1356
|
default:
|
|
1415
1357
|
const parsedBody = parsedOutput.body;
|
|
1416
|
-
|
|
1358
|
+
return throwDefaultError({
|
|
1417
1359
|
output,
|
|
1418
1360
|
parsedBody,
|
|
1419
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1420
1361
|
errorCode,
|
|
1421
1362
|
});
|
|
1422
1363
|
}
|
|
@@ -1425,22 +1366,17 @@ const de_GetReadinessCheckStatusCommand = async (output, context) => {
|
|
|
1425
1366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1426
1367
|
return de_GetReadinessCheckStatusCommandError(output, context);
|
|
1427
1368
|
}
|
|
1428
|
-
const contents = map({
|
|
1369
|
+
const contents = (0, smithy_client_1.map)({
|
|
1429
1370
|
$metadata: deserializeMetadata(output),
|
|
1430
1371
|
});
|
|
1431
1372
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
contents.Readiness = (0, smithy_client_1.expectString)(data.readiness);
|
|
1440
|
-
}
|
|
1441
|
-
if (data.resources != null) {
|
|
1442
|
-
contents.Resources = de___listOfResourceResult(data.resources, context);
|
|
1443
|
-
}
|
|
1373
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1374
|
+
Messages: [, (_) => de___listOfMessage(_, context), `messages`],
|
|
1375
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1376
|
+
Readiness: [, smithy_client_1.expectString, `readiness`],
|
|
1377
|
+
Resources: [, (_) => de___listOfResourceResult(_, context), `resources`],
|
|
1378
|
+
});
|
|
1379
|
+
Object.assign(contents, doc);
|
|
1444
1380
|
return contents;
|
|
1445
1381
|
};
|
|
1446
1382
|
exports.de_GetReadinessCheckStatusCommand = de_GetReadinessCheckStatusCommand;
|
|
@@ -1468,10 +1404,9 @@ const de_GetReadinessCheckStatusCommandError = async (output, context) => {
|
|
|
1468
1404
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1469
1405
|
default:
|
|
1470
1406
|
const parsedBody = parsedOutput.body;
|
|
1471
|
-
|
|
1407
|
+
return throwDefaultError({
|
|
1472
1408
|
output,
|
|
1473
1409
|
parsedBody,
|
|
1474
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1475
1410
|
errorCode,
|
|
1476
1411
|
});
|
|
1477
1412
|
}
|
|
@@ -1480,22 +1415,17 @@ const de_GetRecoveryGroupCommand = async (output, context) => {
|
|
|
1480
1415
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1481
1416
|
return de_GetRecoveryGroupCommandError(output, context);
|
|
1482
1417
|
}
|
|
1483
|
-
const contents = map({
|
|
1418
|
+
const contents = (0, smithy_client_1.map)({
|
|
1484
1419
|
$metadata: deserializeMetadata(output),
|
|
1485
1420
|
});
|
|
1486
1421
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
contents.RecoveryGroupName = (0, smithy_client_1.expectString)(data.recoveryGroupName);
|
|
1495
|
-
}
|
|
1496
|
-
if (data.tags != null) {
|
|
1497
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1498
|
-
}
|
|
1422
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1423
|
+
Cells: [, smithy_client_1._json, `cells`],
|
|
1424
|
+
RecoveryGroupArn: [, smithy_client_1.expectString, `recoveryGroupArn`],
|
|
1425
|
+
RecoveryGroupName: [, smithy_client_1.expectString, `recoveryGroupName`],
|
|
1426
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1427
|
+
});
|
|
1428
|
+
Object.assign(contents, doc);
|
|
1499
1429
|
return contents;
|
|
1500
1430
|
};
|
|
1501
1431
|
exports.de_GetRecoveryGroupCommand = de_GetRecoveryGroupCommand;
|
|
@@ -1523,10 +1453,9 @@ const de_GetRecoveryGroupCommandError = async (output, context) => {
|
|
|
1523
1453
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1524
1454
|
default:
|
|
1525
1455
|
const parsedBody = parsedOutput.body;
|
|
1526
|
-
|
|
1456
|
+
return throwDefaultError({
|
|
1527
1457
|
output,
|
|
1528
1458
|
parsedBody,
|
|
1529
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1530
1459
|
errorCode,
|
|
1531
1460
|
});
|
|
1532
1461
|
}
|
|
@@ -1535,19 +1464,16 @@ const de_GetRecoveryGroupReadinessSummaryCommand = async (output, context) => {
|
|
|
1535
1464
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1536
1465
|
return de_GetRecoveryGroupReadinessSummaryCommandError(output, context);
|
|
1537
1466
|
}
|
|
1538
|
-
const contents = map({
|
|
1467
|
+
const contents = (0, smithy_client_1.map)({
|
|
1539
1468
|
$metadata: deserializeMetadata(output),
|
|
1540
1469
|
});
|
|
1541
1470
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
if (data.readinessChecks != null) {
|
|
1549
|
-
contents.ReadinessChecks = de___listOfReadinessCheckSummary(data.readinessChecks, context);
|
|
1550
|
-
}
|
|
1471
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1472
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1473
|
+
Readiness: [, smithy_client_1.expectString, `readiness`],
|
|
1474
|
+
ReadinessChecks: [, (_) => de___listOfReadinessCheckSummary(_, context), `readinessChecks`],
|
|
1475
|
+
});
|
|
1476
|
+
Object.assign(contents, doc);
|
|
1551
1477
|
return contents;
|
|
1552
1478
|
};
|
|
1553
1479
|
exports.de_GetRecoveryGroupReadinessSummaryCommand = de_GetRecoveryGroupReadinessSummaryCommand;
|
|
@@ -1575,10 +1501,9 @@ const de_GetRecoveryGroupReadinessSummaryCommandError = async (output, context)
|
|
|
1575
1501
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1576
1502
|
default:
|
|
1577
1503
|
const parsedBody = parsedOutput.body;
|
|
1578
|
-
|
|
1504
|
+
return throwDefaultError({
|
|
1579
1505
|
output,
|
|
1580
1506
|
parsedBody,
|
|
1581
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1582
1507
|
errorCode,
|
|
1583
1508
|
});
|
|
1584
1509
|
}
|
|
@@ -1587,25 +1512,18 @@ const de_GetResourceSetCommand = async (output, context) => {
|
|
|
1587
1512
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1588
1513
|
return de_GetResourceSetCommandError(output, context);
|
|
1589
1514
|
}
|
|
1590
|
-
const contents = map({
|
|
1515
|
+
const contents = (0, smithy_client_1.map)({
|
|
1591
1516
|
$metadata: deserializeMetadata(output),
|
|
1592
1517
|
});
|
|
1593
1518
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
}
|
|
1603
|
-
if (data.resources != null) {
|
|
1604
|
-
contents.Resources = de___listOfResource(data.resources, context);
|
|
1605
|
-
}
|
|
1606
|
-
if (data.tags != null) {
|
|
1607
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1608
|
-
}
|
|
1519
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1520
|
+
ResourceSetArn: [, smithy_client_1.expectString, `resourceSetArn`],
|
|
1521
|
+
ResourceSetName: [, smithy_client_1.expectString, `resourceSetName`],
|
|
1522
|
+
ResourceSetType: [, smithy_client_1.expectString, `resourceSetType`],
|
|
1523
|
+
Resources: [, (_) => de___listOfResource(_, context), `resources`],
|
|
1524
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1525
|
+
});
|
|
1526
|
+
Object.assign(contents, doc);
|
|
1609
1527
|
return contents;
|
|
1610
1528
|
};
|
|
1611
1529
|
exports.de_GetResourceSetCommand = de_GetResourceSetCommand;
|
|
@@ -1633,10 +1551,9 @@ const de_GetResourceSetCommandError = async (output, context) => {
|
|
|
1633
1551
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1634
1552
|
default:
|
|
1635
1553
|
const parsedBody = parsedOutput.body;
|
|
1636
|
-
|
|
1554
|
+
return throwDefaultError({
|
|
1637
1555
|
output,
|
|
1638
1556
|
parsedBody,
|
|
1639
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1640
1557
|
errorCode,
|
|
1641
1558
|
});
|
|
1642
1559
|
}
|
|
@@ -1645,16 +1562,15 @@ const de_ListCellsCommand = async (output, context) => {
|
|
|
1645
1562
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1646
1563
|
return de_ListCellsCommandError(output, context);
|
|
1647
1564
|
}
|
|
1648
|
-
const contents = map({
|
|
1565
|
+
const contents = (0, smithy_client_1.map)({
|
|
1649
1566
|
$metadata: deserializeMetadata(output),
|
|
1650
1567
|
});
|
|
1651
1568
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
}
|
|
1569
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1570
|
+
Cells: [, (_) => de___listOfCellOutput(_, context), `cells`],
|
|
1571
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1572
|
+
});
|
|
1573
|
+
Object.assign(contents, doc);
|
|
1658
1574
|
return contents;
|
|
1659
1575
|
};
|
|
1660
1576
|
exports.de_ListCellsCommand = de_ListCellsCommand;
|
|
@@ -1679,10 +1595,9 @@ const de_ListCellsCommandError = async (output, context) => {
|
|
|
1679
1595
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1680
1596
|
default:
|
|
1681
1597
|
const parsedBody = parsedOutput.body;
|
|
1682
|
-
|
|
1598
|
+
return throwDefaultError({
|
|
1683
1599
|
output,
|
|
1684
1600
|
parsedBody,
|
|
1685
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1686
1601
|
errorCode,
|
|
1687
1602
|
});
|
|
1688
1603
|
}
|
|
@@ -1691,16 +1606,15 @@ const de_ListCrossAccountAuthorizationsCommand = async (output, context) => {
|
|
|
1691
1606
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1692
1607
|
return de_ListCrossAccountAuthorizationsCommandError(output, context);
|
|
1693
1608
|
}
|
|
1694
|
-
const contents = map({
|
|
1609
|
+
const contents = (0, smithy_client_1.map)({
|
|
1695
1610
|
$metadata: deserializeMetadata(output),
|
|
1696
1611
|
});
|
|
1697
1612
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
}
|
|
1613
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1614
|
+
CrossAccountAuthorizations: [, smithy_client_1._json, `crossAccountAuthorizations`],
|
|
1615
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1616
|
+
});
|
|
1617
|
+
Object.assign(contents, doc);
|
|
1704
1618
|
return contents;
|
|
1705
1619
|
};
|
|
1706
1620
|
exports.de_ListCrossAccountAuthorizationsCommand = de_ListCrossAccountAuthorizationsCommand;
|
|
@@ -1725,10 +1639,9 @@ const de_ListCrossAccountAuthorizationsCommandError = async (output, context) =>
|
|
|
1725
1639
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1726
1640
|
default:
|
|
1727
1641
|
const parsedBody = parsedOutput.body;
|
|
1728
|
-
|
|
1642
|
+
return throwDefaultError({
|
|
1729
1643
|
output,
|
|
1730
1644
|
parsedBody,
|
|
1731
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1732
1645
|
errorCode,
|
|
1733
1646
|
});
|
|
1734
1647
|
}
|
|
@@ -1737,16 +1650,15 @@ const de_ListReadinessChecksCommand = async (output, context) => {
|
|
|
1737
1650
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1738
1651
|
return de_ListReadinessChecksCommandError(output, context);
|
|
1739
1652
|
}
|
|
1740
|
-
const contents = map({
|
|
1653
|
+
const contents = (0, smithy_client_1.map)({
|
|
1741
1654
|
$metadata: deserializeMetadata(output),
|
|
1742
1655
|
});
|
|
1743
1656
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
}
|
|
1657
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1658
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1659
|
+
ReadinessChecks: [, (_) => de___listOfReadinessCheckOutput(_, context), `readinessChecks`],
|
|
1660
|
+
});
|
|
1661
|
+
Object.assign(contents, doc);
|
|
1750
1662
|
return contents;
|
|
1751
1663
|
};
|
|
1752
1664
|
exports.de_ListReadinessChecksCommand = de_ListReadinessChecksCommand;
|
|
@@ -1771,10 +1683,9 @@ const de_ListReadinessChecksCommandError = async (output, context) => {
|
|
|
1771
1683
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1772
1684
|
default:
|
|
1773
1685
|
const parsedBody = parsedOutput.body;
|
|
1774
|
-
|
|
1686
|
+
return throwDefaultError({
|
|
1775
1687
|
output,
|
|
1776
1688
|
parsedBody,
|
|
1777
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1778
1689
|
errorCode,
|
|
1779
1690
|
});
|
|
1780
1691
|
}
|
|
@@ -1783,16 +1694,15 @@ const de_ListRecoveryGroupsCommand = async (output, context) => {
|
|
|
1783
1694
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1784
1695
|
return de_ListRecoveryGroupsCommandError(output, context);
|
|
1785
1696
|
}
|
|
1786
|
-
const contents = map({
|
|
1697
|
+
const contents = (0, smithy_client_1.map)({
|
|
1787
1698
|
$metadata: deserializeMetadata(output),
|
|
1788
1699
|
});
|
|
1789
1700
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
}
|
|
1701
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1702
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1703
|
+
RecoveryGroups: [, (_) => de___listOfRecoveryGroupOutput(_, context), `recoveryGroups`],
|
|
1704
|
+
});
|
|
1705
|
+
Object.assign(contents, doc);
|
|
1796
1706
|
return contents;
|
|
1797
1707
|
};
|
|
1798
1708
|
exports.de_ListRecoveryGroupsCommand = de_ListRecoveryGroupsCommand;
|
|
@@ -1817,10 +1727,9 @@ const de_ListRecoveryGroupsCommandError = async (output, context) => {
|
|
|
1817
1727
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1818
1728
|
default:
|
|
1819
1729
|
const parsedBody = parsedOutput.body;
|
|
1820
|
-
|
|
1730
|
+
return throwDefaultError({
|
|
1821
1731
|
output,
|
|
1822
1732
|
parsedBody,
|
|
1823
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1824
1733
|
errorCode,
|
|
1825
1734
|
});
|
|
1826
1735
|
}
|
|
@@ -1829,16 +1738,15 @@ const de_ListResourceSetsCommand = async (output, context) => {
|
|
|
1829
1738
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1830
1739
|
return de_ListResourceSetsCommandError(output, context);
|
|
1831
1740
|
}
|
|
1832
|
-
const contents = map({
|
|
1741
|
+
const contents = (0, smithy_client_1.map)({
|
|
1833
1742
|
$metadata: deserializeMetadata(output),
|
|
1834
1743
|
});
|
|
1835
1744
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
}
|
|
1745
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1746
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1747
|
+
ResourceSets: [, (_) => de___listOfResourceSetOutput(_, context), `resourceSets`],
|
|
1748
|
+
});
|
|
1749
|
+
Object.assign(contents, doc);
|
|
1842
1750
|
return contents;
|
|
1843
1751
|
};
|
|
1844
1752
|
exports.de_ListResourceSetsCommand = de_ListResourceSetsCommand;
|
|
@@ -1863,10 +1771,9 @@ const de_ListResourceSetsCommandError = async (output, context) => {
|
|
|
1863
1771
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1864
1772
|
default:
|
|
1865
1773
|
const parsedBody = parsedOutput.body;
|
|
1866
|
-
|
|
1774
|
+
return throwDefaultError({
|
|
1867
1775
|
output,
|
|
1868
1776
|
parsedBody,
|
|
1869
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1870
1777
|
errorCode,
|
|
1871
1778
|
});
|
|
1872
1779
|
}
|
|
@@ -1875,16 +1782,15 @@ const de_ListRulesCommand = async (output, context) => {
|
|
|
1875
1782
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1876
1783
|
return de_ListRulesCommandError(output, context);
|
|
1877
1784
|
}
|
|
1878
|
-
const contents = map({
|
|
1785
|
+
const contents = (0, smithy_client_1.map)({
|
|
1879
1786
|
$metadata: deserializeMetadata(output),
|
|
1880
1787
|
});
|
|
1881
1788
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
}
|
|
1789
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1790
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1791
|
+
Rules: [, (_) => de___listOfListRulesOutput(_, context), `rules`],
|
|
1792
|
+
});
|
|
1793
|
+
Object.assign(contents, doc);
|
|
1888
1794
|
return contents;
|
|
1889
1795
|
};
|
|
1890
1796
|
exports.de_ListRulesCommand = de_ListRulesCommand;
|
|
@@ -1909,10 +1815,9 @@ const de_ListRulesCommandError = async (output, context) => {
|
|
|
1909
1815
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1910
1816
|
default:
|
|
1911
1817
|
const parsedBody = parsedOutput.body;
|
|
1912
|
-
|
|
1818
|
+
return throwDefaultError({
|
|
1913
1819
|
output,
|
|
1914
1820
|
parsedBody,
|
|
1915
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1916
1821
|
errorCode,
|
|
1917
1822
|
});
|
|
1918
1823
|
}
|
|
@@ -1921,13 +1826,14 @@ const de_ListTagsForResourcesCommand = async (output, context) => {
|
|
|
1921
1826
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1922
1827
|
return de_ListTagsForResourcesCommandError(output, context);
|
|
1923
1828
|
}
|
|
1924
|
-
const contents = map({
|
|
1829
|
+
const contents = (0, smithy_client_1.map)({
|
|
1925
1830
|
$metadata: deserializeMetadata(output),
|
|
1926
1831
|
});
|
|
1927
1832
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
}
|
|
1833
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1834
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1835
|
+
});
|
|
1836
|
+
Object.assign(contents, doc);
|
|
1931
1837
|
return contents;
|
|
1932
1838
|
};
|
|
1933
1839
|
exports.de_ListTagsForResourcesCommand = de_ListTagsForResourcesCommand;
|
|
@@ -1949,10 +1855,9 @@ const de_ListTagsForResourcesCommandError = async (output, context) => {
|
|
|
1949
1855
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1950
1856
|
default:
|
|
1951
1857
|
const parsedBody = parsedOutput.body;
|
|
1952
|
-
|
|
1858
|
+
return throwDefaultError({
|
|
1953
1859
|
output,
|
|
1954
1860
|
parsedBody,
|
|
1955
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1956
1861
|
errorCode,
|
|
1957
1862
|
});
|
|
1958
1863
|
}
|
|
@@ -1961,7 +1866,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1961
1866
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1962
1867
|
return de_TagResourceCommandError(output, context);
|
|
1963
1868
|
}
|
|
1964
|
-
const contents = map({
|
|
1869
|
+
const contents = (0, smithy_client_1.map)({
|
|
1965
1870
|
$metadata: deserializeMetadata(output),
|
|
1966
1871
|
});
|
|
1967
1872
|
await collectBody(output.body, context);
|
|
@@ -1986,10 +1891,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1986
1891
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1987
1892
|
default:
|
|
1988
1893
|
const parsedBody = parsedOutput.body;
|
|
1989
|
-
|
|
1894
|
+
return throwDefaultError({
|
|
1990
1895
|
output,
|
|
1991
1896
|
parsedBody,
|
|
1992
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
1993
1897
|
errorCode,
|
|
1994
1898
|
});
|
|
1995
1899
|
}
|
|
@@ -1998,7 +1902,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1998
1902
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1999
1903
|
return de_UntagResourceCommandError(output, context);
|
|
2000
1904
|
}
|
|
2001
|
-
const contents = map({
|
|
1905
|
+
const contents = (0, smithy_client_1.map)({
|
|
2002
1906
|
$metadata: deserializeMetadata(output),
|
|
2003
1907
|
});
|
|
2004
1908
|
await collectBody(output.body, context);
|
|
@@ -2023,10 +1927,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2023
1927
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2024
1928
|
default:
|
|
2025
1929
|
const parsedBody = parsedOutput.body;
|
|
2026
|
-
|
|
1930
|
+
return throwDefaultError({
|
|
2027
1931
|
output,
|
|
2028
1932
|
parsedBody,
|
|
2029
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
2030
1933
|
errorCode,
|
|
2031
1934
|
});
|
|
2032
1935
|
}
|
|
@@ -2035,25 +1938,18 @@ const de_UpdateCellCommand = async (output, context) => {
|
|
|
2035
1938
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2036
1939
|
return de_UpdateCellCommandError(output, context);
|
|
2037
1940
|
}
|
|
2038
|
-
const contents = map({
|
|
1941
|
+
const contents = (0, smithy_client_1.map)({
|
|
2039
1942
|
$metadata: deserializeMetadata(output),
|
|
2040
1943
|
});
|
|
2041
1944
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
}
|
|
2051
|
-
if (data.parentReadinessScopes != null) {
|
|
2052
|
-
contents.ParentReadinessScopes = de___listOf__string(data.parentReadinessScopes, context);
|
|
2053
|
-
}
|
|
2054
|
-
if (data.tags != null) {
|
|
2055
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
2056
|
-
}
|
|
1945
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1946
|
+
CellArn: [, smithy_client_1.expectString, `cellArn`],
|
|
1947
|
+
CellName: [, smithy_client_1.expectString, `cellName`],
|
|
1948
|
+
Cells: [, smithy_client_1._json, `cells`],
|
|
1949
|
+
ParentReadinessScopes: [, smithy_client_1._json, `parentReadinessScopes`],
|
|
1950
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1951
|
+
});
|
|
1952
|
+
Object.assign(contents, doc);
|
|
2057
1953
|
return contents;
|
|
2058
1954
|
};
|
|
2059
1955
|
exports.de_UpdateCellCommand = de_UpdateCellCommand;
|
|
@@ -2081,10 +1977,9 @@ const de_UpdateCellCommandError = async (output, context) => {
|
|
|
2081
1977
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2082
1978
|
default:
|
|
2083
1979
|
const parsedBody = parsedOutput.body;
|
|
2084
|
-
|
|
1980
|
+
return throwDefaultError({
|
|
2085
1981
|
output,
|
|
2086
1982
|
parsedBody,
|
|
2087
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
2088
1983
|
errorCode,
|
|
2089
1984
|
});
|
|
2090
1985
|
}
|
|
@@ -2093,22 +1988,17 @@ const de_UpdateReadinessCheckCommand = async (output, context) => {
|
|
|
2093
1988
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2094
1989
|
return de_UpdateReadinessCheckCommandError(output, context);
|
|
2095
1990
|
}
|
|
2096
|
-
const contents = map({
|
|
1991
|
+
const contents = (0, smithy_client_1.map)({
|
|
2097
1992
|
$metadata: deserializeMetadata(output),
|
|
2098
1993
|
});
|
|
2099
1994
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
}
|
|
2106
|
-
|
|
2107
|
-
contents.ResourceSet = (0, smithy_client_1.expectString)(data.resourceSet);
|
|
2108
|
-
}
|
|
2109
|
-
if (data.tags != null) {
|
|
2110
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
2111
|
-
}
|
|
1995
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1996
|
+
ReadinessCheckArn: [, smithy_client_1.expectString, `readinessCheckArn`],
|
|
1997
|
+
ReadinessCheckName: [, smithy_client_1.expectString, `readinessCheckName`],
|
|
1998
|
+
ResourceSet: [, smithy_client_1.expectString, `resourceSet`],
|
|
1999
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
2000
|
+
});
|
|
2001
|
+
Object.assign(contents, doc);
|
|
2112
2002
|
return contents;
|
|
2113
2003
|
};
|
|
2114
2004
|
exports.de_UpdateReadinessCheckCommand = de_UpdateReadinessCheckCommand;
|
|
@@ -2136,10 +2026,9 @@ const de_UpdateReadinessCheckCommandError = async (output, context) => {
|
|
|
2136
2026
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2137
2027
|
default:
|
|
2138
2028
|
const parsedBody = parsedOutput.body;
|
|
2139
|
-
|
|
2029
|
+
return throwDefaultError({
|
|
2140
2030
|
output,
|
|
2141
2031
|
parsedBody,
|
|
2142
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
2143
2032
|
errorCode,
|
|
2144
2033
|
});
|
|
2145
2034
|
}
|
|
@@ -2148,22 +2037,17 @@ const de_UpdateRecoveryGroupCommand = async (output, context) => {
|
|
|
2148
2037
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2149
2038
|
return de_UpdateRecoveryGroupCommandError(output, context);
|
|
2150
2039
|
}
|
|
2151
|
-
const contents = map({
|
|
2040
|
+
const contents = (0, smithy_client_1.map)({
|
|
2152
2041
|
$metadata: deserializeMetadata(output),
|
|
2153
2042
|
});
|
|
2154
2043
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
}
|
|
2161
|
-
|
|
2162
|
-
contents.RecoveryGroupName = (0, smithy_client_1.expectString)(data.recoveryGroupName);
|
|
2163
|
-
}
|
|
2164
|
-
if (data.tags != null) {
|
|
2165
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
2166
|
-
}
|
|
2044
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2045
|
+
Cells: [, smithy_client_1._json, `cells`],
|
|
2046
|
+
RecoveryGroupArn: [, smithy_client_1.expectString, `recoveryGroupArn`],
|
|
2047
|
+
RecoveryGroupName: [, smithy_client_1.expectString, `recoveryGroupName`],
|
|
2048
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
2049
|
+
});
|
|
2050
|
+
Object.assign(contents, doc);
|
|
2167
2051
|
return contents;
|
|
2168
2052
|
};
|
|
2169
2053
|
exports.de_UpdateRecoveryGroupCommand = de_UpdateRecoveryGroupCommand;
|
|
@@ -2191,10 +2075,9 @@ const de_UpdateRecoveryGroupCommandError = async (output, context) => {
|
|
|
2191
2075
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2192
2076
|
default:
|
|
2193
2077
|
const parsedBody = parsedOutput.body;
|
|
2194
|
-
|
|
2078
|
+
return throwDefaultError({
|
|
2195
2079
|
output,
|
|
2196
2080
|
parsedBody,
|
|
2197
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
2198
2081
|
errorCode,
|
|
2199
2082
|
});
|
|
2200
2083
|
}
|
|
@@ -2203,25 +2086,18 @@ const de_UpdateResourceSetCommand = async (output, context) => {
|
|
|
2203
2086
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2204
2087
|
return de_UpdateResourceSetCommandError(output, context);
|
|
2205
2088
|
}
|
|
2206
|
-
const contents = map({
|
|
2089
|
+
const contents = (0, smithy_client_1.map)({
|
|
2207
2090
|
$metadata: deserializeMetadata(output),
|
|
2208
2091
|
});
|
|
2209
2092
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
}
|
|
2219
|
-
if (data.resources != null) {
|
|
2220
|
-
contents.Resources = de___listOfResource(data.resources, context);
|
|
2221
|
-
}
|
|
2222
|
-
if (data.tags != null) {
|
|
2223
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
2224
|
-
}
|
|
2093
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2094
|
+
ResourceSetArn: [, smithy_client_1.expectString, `resourceSetArn`],
|
|
2095
|
+
ResourceSetName: [, smithy_client_1.expectString, `resourceSetName`],
|
|
2096
|
+
ResourceSetType: [, smithy_client_1.expectString, `resourceSetType`],
|
|
2097
|
+
Resources: [, (_) => de___listOfResource(_, context), `resources`],
|
|
2098
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
2099
|
+
});
|
|
2100
|
+
Object.assign(contents, doc);
|
|
2225
2101
|
return contents;
|
|
2226
2102
|
};
|
|
2227
2103
|
exports.de_UpdateResourceSetCommand = de_UpdateResourceSetCommand;
|
|
@@ -2249,21 +2125,21 @@ const de_UpdateResourceSetCommandError = async (output, context) => {
|
|
|
2249
2125
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2250
2126
|
default:
|
|
2251
2127
|
const parsedBody = parsedOutput.body;
|
|
2252
|
-
|
|
2128
|
+
return throwDefaultError({
|
|
2253
2129
|
output,
|
|
2254
2130
|
parsedBody,
|
|
2255
|
-
exceptionCtor: Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException,
|
|
2256
2131
|
errorCode,
|
|
2257
2132
|
});
|
|
2258
2133
|
}
|
|
2259
2134
|
};
|
|
2260
|
-
const
|
|
2135
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException);
|
|
2261
2136
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2262
|
-
const contents = map({});
|
|
2137
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2263
2138
|
const data = parsedOutput.body;
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
}
|
|
2139
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2140
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
2141
|
+
});
|
|
2142
|
+
Object.assign(contents, doc);
|
|
2267
2143
|
const exception = new models_0_1.AccessDeniedException({
|
|
2268
2144
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2269
2145
|
...contents,
|
|
@@ -2271,11 +2147,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2271
2147
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2272
2148
|
};
|
|
2273
2149
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2274
|
-
const contents = map({});
|
|
2150
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2275
2151
|
const data = parsedOutput.body;
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
}
|
|
2152
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2153
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
2154
|
+
});
|
|
2155
|
+
Object.assign(contents, doc);
|
|
2279
2156
|
const exception = new models_0_1.ConflictException({
|
|
2280
2157
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2281
2158
|
...contents,
|
|
@@ -2283,11 +2160,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2283
2160
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2284
2161
|
};
|
|
2285
2162
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2286
|
-
const contents = map({});
|
|
2163
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2287
2164
|
const data = parsedOutput.body;
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
}
|
|
2165
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2166
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
2167
|
+
});
|
|
2168
|
+
Object.assign(contents, doc);
|
|
2291
2169
|
const exception = new models_0_1.InternalServerException({
|
|
2292
2170
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2293
2171
|
...contents,
|
|
@@ -2295,11 +2173,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2295
2173
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2296
2174
|
};
|
|
2297
2175
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2298
|
-
const contents = map({});
|
|
2176
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2299
2177
|
const data = parsedOutput.body;
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
}
|
|
2178
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2179
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
2180
|
+
});
|
|
2181
|
+
Object.assign(contents, doc);
|
|
2303
2182
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2304
2183
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2305
2184
|
...contents,
|
|
@@ -2307,11 +2186,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2307
2186
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2308
2187
|
};
|
|
2309
2188
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2310
|
-
const contents = map({});
|
|
2189
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2311
2190
|
const data = parsedOutput.body;
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
}
|
|
2191
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2192
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
2193
|
+
});
|
|
2194
|
+
Object.assign(contents, doc);
|
|
2315
2195
|
const exception = new models_0_1.ThrottlingException({
|
|
2316
2196
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2317
2197
|
...contents,
|
|
@@ -2319,24 +2199,18 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2319
2199
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2320
2200
|
};
|
|
2321
2201
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2322
|
-
const contents = map({});
|
|
2202
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2323
2203
|
const data = parsedOutput.body;
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
}
|
|
2204
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2205
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
2206
|
+
});
|
|
2207
|
+
Object.assign(contents, doc);
|
|
2327
2208
|
const exception = new models_0_1.ValidationException({
|
|
2328
2209
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2329
2210
|
...contents,
|
|
2330
2211
|
});
|
|
2331
2212
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2332
2213
|
};
|
|
2333
|
-
const se___listOf__string = (input, context) => {
|
|
2334
|
-
return input
|
|
2335
|
-
.filter((e) => e != null)
|
|
2336
|
-
.map((entry) => {
|
|
2337
|
-
return entry;
|
|
2338
|
-
});
|
|
2339
|
-
};
|
|
2340
2214
|
const se___listOfResource = (input, context) => {
|
|
2341
2215
|
return input
|
|
2342
2216
|
.filter((e) => e != null)
|
|
@@ -2345,90 +2219,51 @@ const se___listOfResource = (input, context) => {
|
|
|
2345
2219
|
});
|
|
2346
2220
|
};
|
|
2347
2221
|
const se_DNSTargetResource = (input, context) => {
|
|
2348
|
-
return {
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
};
|
|
2222
|
+
return (0, smithy_client_1.take)(input, {
|
|
2223
|
+
domainName: [, , `DomainName`],
|
|
2224
|
+
hostedZoneArn: [, , `HostedZoneArn`],
|
|
2225
|
+
recordSetId: [, , `RecordSetId`],
|
|
2226
|
+
recordType: [, , `RecordType`],
|
|
2227
|
+
targetResource: [, (_) => se_TargetResource(_, context), `TargetResource`],
|
|
2228
|
+
});
|
|
2355
2229
|
};
|
|
2356
2230
|
const se_NLBResource = (input, context) => {
|
|
2357
|
-
return {
|
|
2358
|
-
|
|
2359
|
-
};
|
|
2231
|
+
return (0, smithy_client_1.take)(input, {
|
|
2232
|
+
arn: [, , `Arn`],
|
|
2233
|
+
});
|
|
2360
2234
|
};
|
|
2361
2235
|
const se_R53ResourceRecord = (input, context) => {
|
|
2362
|
-
return {
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
};
|
|
2236
|
+
return (0, smithy_client_1.take)(input, {
|
|
2237
|
+
domainName: [, , `DomainName`],
|
|
2238
|
+
recordSetId: [, , `RecordSetId`],
|
|
2239
|
+
});
|
|
2366
2240
|
};
|
|
2367
2241
|
const se_Resource = (input, context) => {
|
|
2368
|
-
return {
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
...(input.ResourceArn != null && { resourceArn: input.ResourceArn }),
|
|
2375
|
-
};
|
|
2376
|
-
};
|
|
2377
|
-
const se_Tags = (input, context) => {
|
|
2378
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2379
|
-
if (value === null) {
|
|
2380
|
-
return acc;
|
|
2381
|
-
}
|
|
2382
|
-
acc[key] = value;
|
|
2383
|
-
return acc;
|
|
2384
|
-
}, {});
|
|
2242
|
+
return (0, smithy_client_1.take)(input, {
|
|
2243
|
+
componentId: [, , `ComponentId`],
|
|
2244
|
+
dnsTargetResource: [, (_) => se_DNSTargetResource(_, context), `DnsTargetResource`],
|
|
2245
|
+
readinessScopes: [, smithy_client_1._json, `ReadinessScopes`],
|
|
2246
|
+
resourceArn: [, , `ResourceArn`],
|
|
2247
|
+
});
|
|
2385
2248
|
};
|
|
2386
2249
|
const se_TargetResource = (input, context) => {
|
|
2387
|
-
return {
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
};
|
|
2391
|
-
};
|
|
2392
|
-
const de___listOf__string = (output, context) => {
|
|
2393
|
-
const retVal = (output || [])
|
|
2394
|
-
.filter((e) => e != null)
|
|
2395
|
-
.map((entry) => {
|
|
2396
|
-
if (entry === null) {
|
|
2397
|
-
return null;
|
|
2398
|
-
}
|
|
2399
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2250
|
+
return (0, smithy_client_1.take)(input, {
|
|
2251
|
+
nLBResource: [, (_) => se_NLBResource(_, context), `NLBResource`],
|
|
2252
|
+
r53Resource: [, (_) => se_R53ResourceRecord(_, context), `R53Resource`],
|
|
2400
2253
|
});
|
|
2401
|
-
return retVal;
|
|
2402
2254
|
};
|
|
2403
2255
|
const de___listOfCellOutput = (output, context) => {
|
|
2404
2256
|
const retVal = (output || [])
|
|
2405
2257
|
.filter((e) => e != null)
|
|
2406
2258
|
.map((entry) => {
|
|
2407
|
-
if (entry === null) {
|
|
2408
|
-
return null;
|
|
2409
|
-
}
|
|
2410
2259
|
return de_CellOutput(entry, context);
|
|
2411
2260
|
});
|
|
2412
2261
|
return retVal;
|
|
2413
2262
|
};
|
|
2414
|
-
const de___listOfCrossAccountAuthorization = (output, context) => {
|
|
2415
|
-
const retVal = (output || [])
|
|
2416
|
-
.filter((e) => e != null)
|
|
2417
|
-
.map((entry) => {
|
|
2418
|
-
if (entry === null) {
|
|
2419
|
-
return null;
|
|
2420
|
-
}
|
|
2421
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2422
|
-
});
|
|
2423
|
-
return retVal;
|
|
2424
|
-
};
|
|
2425
2263
|
const de___listOfListRulesOutput = (output, context) => {
|
|
2426
2264
|
const retVal = (output || [])
|
|
2427
2265
|
.filter((e) => e != null)
|
|
2428
2266
|
.map((entry) => {
|
|
2429
|
-
if (entry === null) {
|
|
2430
|
-
return null;
|
|
2431
|
-
}
|
|
2432
2267
|
return de_ListRulesOutput(entry, context);
|
|
2433
2268
|
});
|
|
2434
2269
|
return retVal;
|
|
@@ -2437,9 +2272,6 @@ const de___listOfMessage = (output, context) => {
|
|
|
2437
2272
|
const retVal = (output || [])
|
|
2438
2273
|
.filter((e) => e != null)
|
|
2439
2274
|
.map((entry) => {
|
|
2440
|
-
if (entry === null) {
|
|
2441
|
-
return null;
|
|
2442
|
-
}
|
|
2443
2275
|
return de_Message(entry, context);
|
|
2444
2276
|
});
|
|
2445
2277
|
return retVal;
|
|
@@ -2448,9 +2280,6 @@ const de___listOfReadinessCheckOutput = (output, context) => {
|
|
|
2448
2280
|
const retVal = (output || [])
|
|
2449
2281
|
.filter((e) => e != null)
|
|
2450
2282
|
.map((entry) => {
|
|
2451
|
-
if (entry === null) {
|
|
2452
|
-
return null;
|
|
2453
|
-
}
|
|
2454
2283
|
return de_ReadinessCheckOutput(entry, context);
|
|
2455
2284
|
});
|
|
2456
2285
|
return retVal;
|
|
@@ -2459,9 +2288,6 @@ const de___listOfReadinessCheckSummary = (output, context) => {
|
|
|
2459
2288
|
const retVal = (output || [])
|
|
2460
2289
|
.filter((e) => e != null)
|
|
2461
2290
|
.map((entry) => {
|
|
2462
|
-
if (entry === null) {
|
|
2463
|
-
return null;
|
|
2464
|
-
}
|
|
2465
2291
|
return de_ReadinessCheckSummary(entry, context);
|
|
2466
2292
|
});
|
|
2467
2293
|
return retVal;
|
|
@@ -2470,9 +2296,6 @@ const de___listOfRecommendation = (output, context) => {
|
|
|
2470
2296
|
const retVal = (output || [])
|
|
2471
2297
|
.filter((e) => e != null)
|
|
2472
2298
|
.map((entry) => {
|
|
2473
|
-
if (entry === null) {
|
|
2474
|
-
return null;
|
|
2475
|
-
}
|
|
2476
2299
|
return de_Recommendation(entry, context);
|
|
2477
2300
|
});
|
|
2478
2301
|
return retVal;
|
|
@@ -2481,9 +2304,6 @@ const de___listOfRecoveryGroupOutput = (output, context) => {
|
|
|
2481
2304
|
const retVal = (output || [])
|
|
2482
2305
|
.filter((e) => e != null)
|
|
2483
2306
|
.map((entry) => {
|
|
2484
|
-
if (entry === null) {
|
|
2485
|
-
return null;
|
|
2486
|
-
}
|
|
2487
2307
|
return de_RecoveryGroupOutput(entry, context);
|
|
2488
2308
|
});
|
|
2489
2309
|
return retVal;
|
|
@@ -2492,9 +2312,6 @@ const de___listOfResource = (output, context) => {
|
|
|
2492
2312
|
const retVal = (output || [])
|
|
2493
2313
|
.filter((e) => e != null)
|
|
2494
2314
|
.map((entry) => {
|
|
2495
|
-
if (entry === null) {
|
|
2496
|
-
return null;
|
|
2497
|
-
}
|
|
2498
2315
|
return de_Resource(entry, context);
|
|
2499
2316
|
});
|
|
2500
2317
|
return retVal;
|
|
@@ -2503,9 +2320,6 @@ const de___listOfResourceResult = (output, context) => {
|
|
|
2503
2320
|
const retVal = (output || [])
|
|
2504
2321
|
.filter((e) => e != null)
|
|
2505
2322
|
.map((entry) => {
|
|
2506
|
-
if (entry === null) {
|
|
2507
|
-
return null;
|
|
2508
|
-
}
|
|
2509
2323
|
return de_ResourceResult(entry, context);
|
|
2510
2324
|
});
|
|
2511
2325
|
return retVal;
|
|
@@ -2514,9 +2328,6 @@ const de___listOfResourceSetOutput = (output, context) => {
|
|
|
2514
2328
|
const retVal = (output || [])
|
|
2515
2329
|
.filter((e) => e != null)
|
|
2516
2330
|
.map((entry) => {
|
|
2517
|
-
if (entry === null) {
|
|
2518
|
-
return null;
|
|
2519
|
-
}
|
|
2520
2331
|
return de_ResourceSetOutput(entry, context);
|
|
2521
2332
|
});
|
|
2522
2333
|
return retVal;
|
|
@@ -2525,132 +2336,116 @@ const de___listOfRuleResult = (output, context) => {
|
|
|
2525
2336
|
const retVal = (output || [])
|
|
2526
2337
|
.filter((e) => e != null)
|
|
2527
2338
|
.map((entry) => {
|
|
2528
|
-
if (entry === null) {
|
|
2529
|
-
return null;
|
|
2530
|
-
}
|
|
2531
2339
|
return de_RuleResult(entry, context);
|
|
2532
2340
|
});
|
|
2533
2341
|
return retVal;
|
|
2534
2342
|
};
|
|
2535
2343
|
const de_CellOutput = (output, context) => {
|
|
2536
|
-
return {
|
|
2537
|
-
CellArn:
|
|
2538
|
-
CellName:
|
|
2539
|
-
Cells:
|
|
2540
|
-
ParentReadinessScopes:
|
|
2541
|
-
Tags:
|
|
2542
|
-
};
|
|
2344
|
+
return (0, smithy_client_1.take)(output, {
|
|
2345
|
+
CellArn: [, smithy_client_1.expectString, `cellArn`],
|
|
2346
|
+
CellName: [, smithy_client_1.expectString, `cellName`],
|
|
2347
|
+
Cells: [, smithy_client_1._json, `cells`],
|
|
2348
|
+
ParentReadinessScopes: [, smithy_client_1._json, `parentReadinessScopes`],
|
|
2349
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
2350
|
+
});
|
|
2543
2351
|
};
|
|
2544
2352
|
const de_DNSTargetResource = (output, context) => {
|
|
2545
|
-
return {
|
|
2546
|
-
DomainName:
|
|
2547
|
-
HostedZoneArn:
|
|
2548
|
-
RecordSetId:
|
|
2549
|
-
RecordType:
|
|
2550
|
-
TargetResource:
|
|
2551
|
-
};
|
|
2353
|
+
return (0, smithy_client_1.take)(output, {
|
|
2354
|
+
DomainName: [, smithy_client_1.expectString, `domainName`],
|
|
2355
|
+
HostedZoneArn: [, smithy_client_1.expectString, `hostedZoneArn`],
|
|
2356
|
+
RecordSetId: [, smithy_client_1.expectString, `recordSetId`],
|
|
2357
|
+
RecordType: [, smithy_client_1.expectString, `recordType`],
|
|
2358
|
+
TargetResource: (_) => [, de_TargetResource(_, context), `targetResource`],
|
|
2359
|
+
});
|
|
2552
2360
|
};
|
|
2553
2361
|
const de_ListRulesOutput = (output, context) => {
|
|
2554
|
-
return {
|
|
2555
|
-
ResourceType:
|
|
2556
|
-
RuleDescription:
|
|
2557
|
-
RuleId:
|
|
2558
|
-
};
|
|
2362
|
+
return (0, smithy_client_1.take)(output, {
|
|
2363
|
+
ResourceType: [, smithy_client_1.expectString, `resourceType`],
|
|
2364
|
+
RuleDescription: [, smithy_client_1.expectString, `ruleDescription`],
|
|
2365
|
+
RuleId: [, smithy_client_1.expectString, `ruleId`],
|
|
2366
|
+
});
|
|
2559
2367
|
};
|
|
2560
2368
|
const de_Message = (output, context) => {
|
|
2561
|
-
return {
|
|
2562
|
-
MessageText:
|
|
2563
|
-
};
|
|
2369
|
+
return (0, smithy_client_1.take)(output, {
|
|
2370
|
+
MessageText: [, smithy_client_1.expectString, `messageText`],
|
|
2371
|
+
});
|
|
2564
2372
|
};
|
|
2565
2373
|
const de_NLBResource = (output, context) => {
|
|
2566
|
-
return {
|
|
2567
|
-
Arn:
|
|
2568
|
-
};
|
|
2374
|
+
return (0, smithy_client_1.take)(output, {
|
|
2375
|
+
Arn: [, smithy_client_1.expectString, `arn`],
|
|
2376
|
+
});
|
|
2569
2377
|
};
|
|
2570
2378
|
const de_R53ResourceRecord = (output, context) => {
|
|
2571
|
-
return {
|
|
2572
|
-
DomainName:
|
|
2573
|
-
RecordSetId:
|
|
2574
|
-
};
|
|
2379
|
+
return (0, smithy_client_1.take)(output, {
|
|
2380
|
+
DomainName: [, smithy_client_1.expectString, `domainName`],
|
|
2381
|
+
RecordSetId: [, smithy_client_1.expectString, `recordSetId`],
|
|
2382
|
+
});
|
|
2575
2383
|
};
|
|
2576
2384
|
const de_ReadinessCheckOutput = (output, context) => {
|
|
2577
|
-
return {
|
|
2578
|
-
ReadinessCheckArn:
|
|
2579
|
-
ReadinessCheckName:
|
|
2580
|
-
ResourceSet:
|
|
2581
|
-
Tags:
|
|
2582
|
-
};
|
|
2385
|
+
return (0, smithy_client_1.take)(output, {
|
|
2386
|
+
ReadinessCheckArn: [, smithy_client_1.expectString, `readinessCheckArn`],
|
|
2387
|
+
ReadinessCheckName: [, smithy_client_1.expectString, `readinessCheckName`],
|
|
2388
|
+
ResourceSet: [, smithy_client_1.expectString, `resourceSet`],
|
|
2389
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
2390
|
+
});
|
|
2583
2391
|
};
|
|
2584
2392
|
const de_ReadinessCheckSummary = (output, context) => {
|
|
2585
|
-
return {
|
|
2586
|
-
Readiness:
|
|
2587
|
-
ReadinessCheckName:
|
|
2588
|
-
};
|
|
2393
|
+
return (0, smithy_client_1.take)(output, {
|
|
2394
|
+
Readiness: [, smithy_client_1.expectString, `readiness`],
|
|
2395
|
+
ReadinessCheckName: [, smithy_client_1.expectString, `readinessCheckName`],
|
|
2396
|
+
});
|
|
2589
2397
|
};
|
|
2590
2398
|
const de_Recommendation = (output, context) => {
|
|
2591
|
-
return {
|
|
2592
|
-
RecommendationText:
|
|
2593
|
-
};
|
|
2399
|
+
return (0, smithy_client_1.take)(output, {
|
|
2400
|
+
RecommendationText: [, smithy_client_1.expectString, `recommendationText`],
|
|
2401
|
+
});
|
|
2594
2402
|
};
|
|
2595
2403
|
const de_RecoveryGroupOutput = (output, context) => {
|
|
2596
|
-
return {
|
|
2597
|
-
Cells:
|
|
2598
|
-
RecoveryGroupArn:
|
|
2599
|
-
RecoveryGroupName:
|
|
2600
|
-
Tags:
|
|
2601
|
-
};
|
|
2404
|
+
return (0, smithy_client_1.take)(output, {
|
|
2405
|
+
Cells: [, smithy_client_1._json, `cells`],
|
|
2406
|
+
RecoveryGroupArn: [, smithy_client_1.expectString, `recoveryGroupArn`],
|
|
2407
|
+
RecoveryGroupName: [, smithy_client_1.expectString, `recoveryGroupName`],
|
|
2408
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
2409
|
+
});
|
|
2602
2410
|
};
|
|
2603
2411
|
const de_Resource = (output, context) => {
|
|
2604
|
-
return {
|
|
2605
|
-
ComponentId:
|
|
2606
|
-
DnsTargetResource:
|
|
2607
|
-
ReadinessScopes:
|
|
2608
|
-
ResourceArn:
|
|
2609
|
-
};
|
|
2412
|
+
return (0, smithy_client_1.take)(output, {
|
|
2413
|
+
ComponentId: [, smithy_client_1.expectString, `componentId`],
|
|
2414
|
+
DnsTargetResource: (_) => [, de_DNSTargetResource(_, context), `dnsTargetResource`],
|
|
2415
|
+
ReadinessScopes: [, smithy_client_1._json, `readinessScopes`],
|
|
2416
|
+
ResourceArn: [, smithy_client_1.expectString, `resourceArn`],
|
|
2417
|
+
});
|
|
2610
2418
|
};
|
|
2611
2419
|
const de_ResourceResult = (output, context) => {
|
|
2612
|
-
return {
|
|
2613
|
-
ComponentId:
|
|
2614
|
-
LastCheckedTimestamp:
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
ResourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
2619
|
-
};
|
|
2420
|
+
return (0, smithy_client_1.take)(output, {
|
|
2421
|
+
ComponentId: [, smithy_client_1.expectString, `componentId`],
|
|
2422
|
+
LastCheckedTimestamp: (_) => [, (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `lastCheckedTimestamp`],
|
|
2423
|
+
Readiness: [, smithy_client_1.expectString, `readiness`],
|
|
2424
|
+
ResourceArn: [, smithy_client_1.expectString, `resourceArn`],
|
|
2425
|
+
});
|
|
2620
2426
|
};
|
|
2621
2427
|
const de_ResourceSetOutput = (output, context) => {
|
|
2622
|
-
return {
|
|
2623
|
-
ResourceSetArn:
|
|
2624
|
-
ResourceSetName:
|
|
2625
|
-
ResourceSetType:
|
|
2626
|
-
Resources:
|
|
2627
|
-
Tags:
|
|
2628
|
-
};
|
|
2428
|
+
return (0, smithy_client_1.take)(output, {
|
|
2429
|
+
ResourceSetArn: [, smithy_client_1.expectString, `resourceSetArn`],
|
|
2430
|
+
ResourceSetName: [, smithy_client_1.expectString, `resourceSetName`],
|
|
2431
|
+
ResourceSetType: [, smithy_client_1.expectString, `resourceSetType`],
|
|
2432
|
+
Resources: (_) => [, de___listOfResource(_, context), `resources`],
|
|
2433
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
2434
|
+
});
|
|
2629
2435
|
};
|
|
2630
2436
|
const de_RuleResult = (output, context) => {
|
|
2631
|
-
return {
|
|
2632
|
-
LastCheckedTimestamp:
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
RuleId: (0, smithy_client_1.expectString)(output.ruleId),
|
|
2638
|
-
};
|
|
2639
|
-
};
|
|
2640
|
-
const de_Tags = (output, context) => {
|
|
2641
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2642
|
-
if (value === null) {
|
|
2643
|
-
return acc;
|
|
2644
|
-
}
|
|
2645
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2646
|
-
return acc;
|
|
2647
|
-
}, {});
|
|
2437
|
+
return (0, smithy_client_1.take)(output, {
|
|
2438
|
+
LastCheckedTimestamp: (_) => [, (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `lastCheckedTimestamp`],
|
|
2439
|
+
Messages: (_) => [, de___listOfMessage(_, context), `messages`],
|
|
2440
|
+
Readiness: [, smithy_client_1.expectString, `readiness`],
|
|
2441
|
+
RuleId: [, smithy_client_1.expectString, `ruleId`],
|
|
2442
|
+
});
|
|
2648
2443
|
};
|
|
2649
2444
|
const de_TargetResource = (output, context) => {
|
|
2650
|
-
return {
|
|
2651
|
-
NLBResource:
|
|
2652
|
-
R53Resource:
|
|
2653
|
-
};
|
|
2445
|
+
return (0, smithy_client_1.take)(output, {
|
|
2446
|
+
NLBResource: (_) => [, de_NLBResource(_, context), `nLBResource`],
|
|
2447
|
+
R53Resource: (_) => [, de_R53ResourceRecord(_, context), `r53Resource`],
|
|
2448
|
+
});
|
|
2654
2449
|
};
|
|
2655
2450
|
const deserializeMetadata = (output) => ({
|
|
2656
2451
|
httpStatusCode: output.statusCode,
|