@aws-sdk/client-route53-recovery-control-config 3.310.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 +202 -441
- package/dist-es/protocols/Aws_restJson1.js +167 -406
- package/package.json +6 -6
|
@@ -13,11 +13,11 @@ const se_CreateClusterCommand = async (input, context) => {
|
|
|
13
13
|
};
|
|
14
14
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster";
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
ClientToken:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
18
|
+
ClusterName: [],
|
|
19
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
+
}));
|
|
21
21
|
return new protocol_http_1.HttpRequest({
|
|
22
22
|
protocol,
|
|
23
23
|
hostname,
|
|
@@ -36,12 +36,12 @@ const se_CreateControlPanelCommand = async (input, context) => {
|
|
|
36
36
|
};
|
|
37
37
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanel";
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify({
|
|
40
|
-
ClientToken:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
});
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
40
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
41
|
+
ClusterArn: [],
|
|
42
|
+
ControlPanelName: [],
|
|
43
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
44
|
+
}));
|
|
45
45
|
return new protocol_http_1.HttpRequest({
|
|
46
46
|
protocol,
|
|
47
47
|
hostname,
|
|
@@ -60,12 +60,12 @@ const se_CreateRoutingControlCommand = async (input, context) => {
|
|
|
60
60
|
};
|
|
61
61
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routingcontrol";
|
|
62
62
|
let body;
|
|
63
|
-
body = JSON.stringify({
|
|
64
|
-
ClientToken:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
});
|
|
63
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
65
|
+
ClusterArn: [],
|
|
66
|
+
ControlPanelArn: [],
|
|
67
|
+
RoutingControlName: [],
|
|
68
|
+
}));
|
|
69
69
|
return new protocol_http_1.HttpRequest({
|
|
70
70
|
protocol,
|
|
71
71
|
hostname,
|
|
@@ -84,12 +84,12 @@ const se_CreateSafetyRuleCommand = async (input, context) => {
|
|
|
84
84
|
};
|
|
85
85
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/safetyrule";
|
|
86
86
|
let body;
|
|
87
|
-
body = JSON.stringify({
|
|
88
|
-
|
|
89
|
-
ClientToken:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
});
|
|
87
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
88
|
+
AssertionRule: (_) => (0, smithy_client_1._json)(_),
|
|
89
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
90
|
+
GatingRule: (_) => (0, smithy_client_1._json)(_),
|
|
91
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
92
|
+
}));
|
|
93
93
|
return new protocol_http_1.HttpRequest({
|
|
94
94
|
protocol,
|
|
95
95
|
hostname,
|
|
@@ -243,7 +243,7 @@ const se_ListAssociatedRoute53HealthChecksCommand = async (input, context) => {
|
|
|
243
243
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
244
244
|
"/routingcontrol/{RoutingControlArn}/associatedRoute53HealthChecks";
|
|
245
245
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RoutingControlArn", () => input.RoutingControlArn, "{RoutingControlArn}", false);
|
|
246
|
-
const query = map({
|
|
246
|
+
const query = (0, smithy_client_1.map)({
|
|
247
247
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
248
248
|
NextToken: [, input.NextToken],
|
|
249
249
|
});
|
|
@@ -264,7 +264,7 @@ const se_ListClustersCommand = async (input, context) => {
|
|
|
264
264
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
265
265
|
const headers = {};
|
|
266
266
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/cluster";
|
|
267
|
-
const query = map({
|
|
267
|
+
const query = (0, smithy_client_1.map)({
|
|
268
268
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
269
269
|
NextToken: [, input.NextToken],
|
|
270
270
|
});
|
|
@@ -285,7 +285,7 @@ const se_ListControlPanelsCommand = async (input, context) => {
|
|
|
285
285
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
286
286
|
const headers = {};
|
|
287
287
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanels";
|
|
288
|
-
const query = map({
|
|
288
|
+
const query = (0, smithy_client_1.map)({
|
|
289
289
|
ClusterArn: [, input.ClusterArn],
|
|
290
290
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
291
291
|
NextToken: [, input.NextToken],
|
|
@@ -309,7 +309,7 @@ const se_ListRoutingControlsCommand = async (input, context) => {
|
|
|
309
309
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
310
310
|
"/controlpanel/{ControlPanelArn}/routingcontrols";
|
|
311
311
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
|
|
312
|
-
const query = map({
|
|
312
|
+
const query = (0, smithy_client_1.map)({
|
|
313
313
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
314
314
|
NextToken: [, input.NextToken],
|
|
315
315
|
});
|
|
@@ -332,7 +332,7 @@ const se_ListSafetyRulesCommand = async (input, context) => {
|
|
|
332
332
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
333
333
|
"/controlpanel/{ControlPanelArn}/safetyrules";
|
|
334
334
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ControlPanelArn", () => input.ControlPanelArn, "{ControlPanelArn}", false);
|
|
335
|
-
const query = map({
|
|
335
|
+
const query = (0, smithy_client_1.map)({
|
|
336
336
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
337
337
|
NextToken: [, input.NextToken],
|
|
338
338
|
});
|
|
@@ -374,9 +374,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
374
374
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
375
375
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
376
376
|
let body;
|
|
377
|
-
body = JSON.stringify({
|
|
378
|
-
|
|
379
|
-
});
|
|
377
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
378
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
379
|
+
}));
|
|
380
380
|
return new protocol_http_1.HttpRequest({
|
|
381
381
|
protocol,
|
|
382
382
|
hostname,
|
|
@@ -393,7 +393,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
393
393
|
const headers = {};
|
|
394
394
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
395
395
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
396
|
-
const query = map({
|
|
396
|
+
const query = (0, smithy_client_1.map)({
|
|
397
397
|
TagKeys: [
|
|
398
398
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
399
399
|
() => (input.TagKeys || []).map((_entry) => _entry),
|
|
@@ -419,10 +419,10 @@ const se_UpdateControlPanelCommand = async (input, context) => {
|
|
|
419
419
|
};
|
|
420
420
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controlpanel";
|
|
421
421
|
let body;
|
|
422
|
-
body = JSON.stringify({
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
});
|
|
422
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
423
|
+
ControlPanelArn: [],
|
|
424
|
+
ControlPanelName: [],
|
|
425
|
+
}));
|
|
426
426
|
return new protocol_http_1.HttpRequest({
|
|
427
427
|
protocol,
|
|
428
428
|
hostname,
|
|
@@ -441,10 +441,10 @@ const se_UpdateRoutingControlCommand = async (input, context) => {
|
|
|
441
441
|
};
|
|
442
442
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routingcontrol";
|
|
443
443
|
let body;
|
|
444
|
-
body = JSON.stringify({
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
});
|
|
444
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
445
|
+
RoutingControlArn: [],
|
|
446
|
+
RoutingControlName: [],
|
|
447
|
+
}));
|
|
448
448
|
return new protocol_http_1.HttpRequest({
|
|
449
449
|
protocol,
|
|
450
450
|
hostname,
|
|
@@ -463,12 +463,10 @@ const se_UpdateSafetyRuleCommand = async (input, context) => {
|
|
|
463
463
|
};
|
|
464
464
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/safetyrule";
|
|
465
465
|
let body;
|
|
466
|
-
body = JSON.stringify({
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
...(input.GatingRuleUpdate != null && { GatingRuleUpdate: se_GatingRuleUpdate(input.GatingRuleUpdate, context) }),
|
|
471
|
-
});
|
|
466
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
467
|
+
AssertionRuleUpdate: (_) => (0, smithy_client_1._json)(_),
|
|
468
|
+
GatingRuleUpdate: (_) => (0, smithy_client_1._json)(_),
|
|
469
|
+
}));
|
|
472
470
|
return new protocol_http_1.HttpRequest({
|
|
473
471
|
protocol,
|
|
474
472
|
hostname,
|
|
@@ -484,13 +482,14 @@ const de_CreateClusterCommand = async (output, context) => {
|
|
|
484
482
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
485
483
|
return de_CreateClusterCommandError(output, context);
|
|
486
484
|
}
|
|
487
|
-
const contents = map({
|
|
485
|
+
const contents = (0, smithy_client_1.map)({
|
|
488
486
|
$metadata: deserializeMetadata(output),
|
|
489
487
|
});
|
|
490
488
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
}
|
|
489
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
490
|
+
Cluster: smithy_client_1._json,
|
|
491
|
+
});
|
|
492
|
+
Object.assign(contents, doc);
|
|
494
493
|
return contents;
|
|
495
494
|
};
|
|
496
495
|
exports.de_CreateClusterCommand = de_CreateClusterCommand;
|
|
@@ -524,10 +523,9 @@ const de_CreateClusterCommandError = async (output, context) => {
|
|
|
524
523
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
525
524
|
default:
|
|
526
525
|
const parsedBody = parsedOutput.body;
|
|
527
|
-
|
|
526
|
+
return throwDefaultError({
|
|
528
527
|
output,
|
|
529
528
|
parsedBody,
|
|
530
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
531
529
|
errorCode,
|
|
532
530
|
});
|
|
533
531
|
}
|
|
@@ -536,13 +534,14 @@ const de_CreateControlPanelCommand = async (output, context) => {
|
|
|
536
534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
537
535
|
return de_CreateControlPanelCommandError(output, context);
|
|
538
536
|
}
|
|
539
|
-
const contents = map({
|
|
537
|
+
const contents = (0, smithy_client_1.map)({
|
|
540
538
|
$metadata: deserializeMetadata(output),
|
|
541
539
|
});
|
|
542
540
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
}
|
|
541
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
542
|
+
ControlPanel: smithy_client_1._json,
|
|
543
|
+
});
|
|
544
|
+
Object.assign(contents, doc);
|
|
546
545
|
return contents;
|
|
547
546
|
};
|
|
548
547
|
exports.de_CreateControlPanelCommand = de_CreateControlPanelCommand;
|
|
@@ -576,10 +575,9 @@ const de_CreateControlPanelCommandError = async (output, context) => {
|
|
|
576
575
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
577
576
|
default:
|
|
578
577
|
const parsedBody = parsedOutput.body;
|
|
579
|
-
|
|
578
|
+
return throwDefaultError({
|
|
580
579
|
output,
|
|
581
580
|
parsedBody,
|
|
582
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
583
581
|
errorCode,
|
|
584
582
|
});
|
|
585
583
|
}
|
|
@@ -588,13 +586,14 @@ const de_CreateRoutingControlCommand = async (output, context) => {
|
|
|
588
586
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
589
587
|
return de_CreateRoutingControlCommandError(output, context);
|
|
590
588
|
}
|
|
591
|
-
const contents = map({
|
|
589
|
+
const contents = (0, smithy_client_1.map)({
|
|
592
590
|
$metadata: deserializeMetadata(output),
|
|
593
591
|
});
|
|
594
592
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
}
|
|
593
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
594
|
+
RoutingControl: smithy_client_1._json,
|
|
595
|
+
});
|
|
596
|
+
Object.assign(contents, doc);
|
|
598
597
|
return contents;
|
|
599
598
|
};
|
|
600
599
|
exports.de_CreateRoutingControlCommand = de_CreateRoutingControlCommand;
|
|
@@ -628,10 +627,9 @@ const de_CreateRoutingControlCommandError = async (output, context) => {
|
|
|
628
627
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
629
628
|
default:
|
|
630
629
|
const parsedBody = parsedOutput.body;
|
|
631
|
-
|
|
630
|
+
return throwDefaultError({
|
|
632
631
|
output,
|
|
633
632
|
parsedBody,
|
|
634
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
635
633
|
errorCode,
|
|
636
634
|
});
|
|
637
635
|
}
|
|
@@ -640,16 +638,15 @@ const de_CreateSafetyRuleCommand = async (output, context) => {
|
|
|
640
638
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
641
639
|
return de_CreateSafetyRuleCommandError(output, context);
|
|
642
640
|
}
|
|
643
|
-
const contents = map({
|
|
641
|
+
const contents = (0, smithy_client_1.map)({
|
|
644
642
|
$metadata: deserializeMetadata(output),
|
|
645
643
|
});
|
|
646
644
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
}
|
|
645
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
646
|
+
AssertionRule: smithy_client_1._json,
|
|
647
|
+
GatingRule: smithy_client_1._json,
|
|
648
|
+
});
|
|
649
|
+
Object.assign(contents, doc);
|
|
653
650
|
return contents;
|
|
654
651
|
};
|
|
655
652
|
exports.de_CreateSafetyRuleCommand = de_CreateSafetyRuleCommand;
|
|
@@ -668,10 +665,9 @@ const de_CreateSafetyRuleCommandError = async (output, context) => {
|
|
|
668
665
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
669
666
|
default:
|
|
670
667
|
const parsedBody = parsedOutput.body;
|
|
671
|
-
|
|
668
|
+
return throwDefaultError({
|
|
672
669
|
output,
|
|
673
670
|
parsedBody,
|
|
674
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
675
671
|
errorCode,
|
|
676
672
|
});
|
|
677
673
|
}
|
|
@@ -680,7 +676,7 @@ const de_DeleteClusterCommand = async (output, context) => {
|
|
|
680
676
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
681
677
|
return de_DeleteClusterCommandError(output, context);
|
|
682
678
|
}
|
|
683
|
-
const contents = map({
|
|
679
|
+
const contents = (0, smithy_client_1.map)({
|
|
684
680
|
$metadata: deserializeMetadata(output),
|
|
685
681
|
});
|
|
686
682
|
await collectBody(output.body, context);
|
|
@@ -714,10 +710,9 @@ const de_DeleteClusterCommandError = async (output, context) => {
|
|
|
714
710
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
715
711
|
default:
|
|
716
712
|
const parsedBody = parsedOutput.body;
|
|
717
|
-
|
|
713
|
+
return throwDefaultError({
|
|
718
714
|
output,
|
|
719
715
|
parsedBody,
|
|
720
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
721
716
|
errorCode,
|
|
722
717
|
});
|
|
723
718
|
}
|
|
@@ -726,7 +721,7 @@ const de_DeleteControlPanelCommand = async (output, context) => {
|
|
|
726
721
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
727
722
|
return de_DeleteControlPanelCommandError(output, context);
|
|
728
723
|
}
|
|
729
|
-
const contents = map({
|
|
724
|
+
const contents = (0, smithy_client_1.map)({
|
|
730
725
|
$metadata: deserializeMetadata(output),
|
|
731
726
|
});
|
|
732
727
|
await collectBody(output.body, context);
|
|
@@ -760,10 +755,9 @@ const de_DeleteControlPanelCommandError = async (output, context) => {
|
|
|
760
755
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
761
756
|
default:
|
|
762
757
|
const parsedBody = parsedOutput.body;
|
|
763
|
-
|
|
758
|
+
return throwDefaultError({
|
|
764
759
|
output,
|
|
765
760
|
parsedBody,
|
|
766
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
767
761
|
errorCode,
|
|
768
762
|
});
|
|
769
763
|
}
|
|
@@ -772,7 +766,7 @@ const de_DeleteRoutingControlCommand = async (output, context) => {
|
|
|
772
766
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
773
767
|
return de_DeleteRoutingControlCommandError(output, context);
|
|
774
768
|
}
|
|
775
|
-
const contents = map({
|
|
769
|
+
const contents = (0, smithy_client_1.map)({
|
|
776
770
|
$metadata: deserializeMetadata(output),
|
|
777
771
|
});
|
|
778
772
|
await collectBody(output.body, context);
|
|
@@ -806,10 +800,9 @@ const de_DeleteRoutingControlCommandError = async (output, context) => {
|
|
|
806
800
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
807
801
|
default:
|
|
808
802
|
const parsedBody = parsedOutput.body;
|
|
809
|
-
|
|
803
|
+
return throwDefaultError({
|
|
810
804
|
output,
|
|
811
805
|
parsedBody,
|
|
812
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
813
806
|
errorCode,
|
|
814
807
|
});
|
|
815
808
|
}
|
|
@@ -818,7 +811,7 @@ const de_DeleteSafetyRuleCommand = async (output, context) => {
|
|
|
818
811
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
819
812
|
return de_DeleteSafetyRuleCommandError(output, context);
|
|
820
813
|
}
|
|
821
|
-
const contents = map({
|
|
814
|
+
const contents = (0, smithy_client_1.map)({
|
|
822
815
|
$metadata: deserializeMetadata(output),
|
|
823
816
|
});
|
|
824
817
|
await collectBody(output.body, context);
|
|
@@ -843,10 +836,9 @@ const de_DeleteSafetyRuleCommandError = async (output, context) => {
|
|
|
843
836
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
844
837
|
default:
|
|
845
838
|
const parsedBody = parsedOutput.body;
|
|
846
|
-
|
|
839
|
+
return throwDefaultError({
|
|
847
840
|
output,
|
|
848
841
|
parsedBody,
|
|
849
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
850
842
|
errorCode,
|
|
851
843
|
});
|
|
852
844
|
}
|
|
@@ -855,13 +847,14 @@ const de_DescribeClusterCommand = async (output, context) => {
|
|
|
855
847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
856
848
|
return de_DescribeClusterCommandError(output, context);
|
|
857
849
|
}
|
|
858
|
-
const contents = map({
|
|
850
|
+
const contents = (0, smithy_client_1.map)({
|
|
859
851
|
$metadata: deserializeMetadata(output),
|
|
860
852
|
});
|
|
861
853
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
}
|
|
854
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
855
|
+
Cluster: smithy_client_1._json,
|
|
856
|
+
});
|
|
857
|
+
Object.assign(contents, doc);
|
|
865
858
|
return contents;
|
|
866
859
|
};
|
|
867
860
|
exports.de_DescribeClusterCommand = de_DescribeClusterCommand;
|
|
@@ -892,10 +885,9 @@ const de_DescribeClusterCommandError = async (output, context) => {
|
|
|
892
885
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
893
886
|
default:
|
|
894
887
|
const parsedBody = parsedOutput.body;
|
|
895
|
-
|
|
888
|
+
return throwDefaultError({
|
|
896
889
|
output,
|
|
897
890
|
parsedBody,
|
|
898
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
899
891
|
errorCode,
|
|
900
892
|
});
|
|
901
893
|
}
|
|
@@ -904,13 +896,14 @@ const de_DescribeControlPanelCommand = async (output, context) => {
|
|
|
904
896
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
905
897
|
return de_DescribeControlPanelCommandError(output, context);
|
|
906
898
|
}
|
|
907
|
-
const contents = map({
|
|
899
|
+
const contents = (0, smithy_client_1.map)({
|
|
908
900
|
$metadata: deserializeMetadata(output),
|
|
909
901
|
});
|
|
910
902
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
}
|
|
903
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
904
|
+
ControlPanel: smithy_client_1._json,
|
|
905
|
+
});
|
|
906
|
+
Object.assign(contents, doc);
|
|
914
907
|
return contents;
|
|
915
908
|
};
|
|
916
909
|
exports.de_DescribeControlPanelCommand = de_DescribeControlPanelCommand;
|
|
@@ -941,10 +934,9 @@ const de_DescribeControlPanelCommandError = async (output, context) => {
|
|
|
941
934
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
942
935
|
default:
|
|
943
936
|
const parsedBody = parsedOutput.body;
|
|
944
|
-
|
|
937
|
+
return throwDefaultError({
|
|
945
938
|
output,
|
|
946
939
|
parsedBody,
|
|
947
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
948
940
|
errorCode,
|
|
949
941
|
});
|
|
950
942
|
}
|
|
@@ -953,13 +945,14 @@ const de_DescribeRoutingControlCommand = async (output, context) => {
|
|
|
953
945
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
954
946
|
return de_DescribeRoutingControlCommandError(output, context);
|
|
955
947
|
}
|
|
956
|
-
const contents = map({
|
|
948
|
+
const contents = (0, smithy_client_1.map)({
|
|
957
949
|
$metadata: deserializeMetadata(output),
|
|
958
950
|
});
|
|
959
951
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
}
|
|
952
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
953
|
+
RoutingControl: smithy_client_1._json,
|
|
954
|
+
});
|
|
955
|
+
Object.assign(contents, doc);
|
|
963
956
|
return contents;
|
|
964
957
|
};
|
|
965
958
|
exports.de_DescribeRoutingControlCommand = de_DescribeRoutingControlCommand;
|
|
@@ -990,10 +983,9 @@ const de_DescribeRoutingControlCommandError = async (output, context) => {
|
|
|
990
983
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
991
984
|
default:
|
|
992
985
|
const parsedBody = parsedOutput.body;
|
|
993
|
-
|
|
986
|
+
return throwDefaultError({
|
|
994
987
|
output,
|
|
995
988
|
parsedBody,
|
|
996
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
997
989
|
errorCode,
|
|
998
990
|
});
|
|
999
991
|
}
|
|
@@ -1002,16 +994,15 @@ const de_DescribeSafetyRuleCommand = async (output, context) => {
|
|
|
1002
994
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1003
995
|
return de_DescribeSafetyRuleCommandError(output, context);
|
|
1004
996
|
}
|
|
1005
|
-
const contents = map({
|
|
997
|
+
const contents = (0, smithy_client_1.map)({
|
|
1006
998
|
$metadata: deserializeMetadata(output),
|
|
1007
999
|
});
|
|
1008
1000
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
}
|
|
1001
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1002
|
+
AssertionRule: smithy_client_1._json,
|
|
1003
|
+
GatingRule: smithy_client_1._json,
|
|
1004
|
+
});
|
|
1005
|
+
Object.assign(contents, doc);
|
|
1015
1006
|
return contents;
|
|
1016
1007
|
};
|
|
1017
1008
|
exports.de_DescribeSafetyRuleCommand = de_DescribeSafetyRuleCommand;
|
|
@@ -1030,10 +1021,9 @@ const de_DescribeSafetyRuleCommandError = async (output, context) => {
|
|
|
1030
1021
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1031
1022
|
default:
|
|
1032
1023
|
const parsedBody = parsedOutput.body;
|
|
1033
|
-
|
|
1024
|
+
return throwDefaultError({
|
|
1034
1025
|
output,
|
|
1035
1026
|
parsedBody,
|
|
1036
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
1037
1027
|
errorCode,
|
|
1038
1028
|
});
|
|
1039
1029
|
}
|
|
@@ -1042,16 +1032,15 @@ const de_ListAssociatedRoute53HealthChecksCommand = async (output, context) => {
|
|
|
1042
1032
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1043
1033
|
return de_ListAssociatedRoute53HealthChecksCommandError(output, context);
|
|
1044
1034
|
}
|
|
1045
|
-
const contents = map({
|
|
1035
|
+
const contents = (0, smithy_client_1.map)({
|
|
1046
1036
|
$metadata: deserializeMetadata(output),
|
|
1047
1037
|
});
|
|
1048
1038
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
}
|
|
1039
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1040
|
+
HealthCheckIds: smithy_client_1._json,
|
|
1041
|
+
NextToken: smithy_client_1.expectString,
|
|
1042
|
+
});
|
|
1043
|
+
Object.assign(contents, doc);
|
|
1055
1044
|
return contents;
|
|
1056
1045
|
};
|
|
1057
1046
|
exports.de_ListAssociatedRoute53HealthChecksCommand = de_ListAssociatedRoute53HealthChecksCommand;
|
|
@@ -1073,10 +1062,9 @@ const de_ListAssociatedRoute53HealthChecksCommandError = async (output, context)
|
|
|
1073
1062
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1074
1063
|
default:
|
|
1075
1064
|
const parsedBody = parsedOutput.body;
|
|
1076
|
-
|
|
1065
|
+
return throwDefaultError({
|
|
1077
1066
|
output,
|
|
1078
1067
|
parsedBody,
|
|
1079
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
1080
1068
|
errorCode,
|
|
1081
1069
|
});
|
|
1082
1070
|
}
|
|
@@ -1085,16 +1073,15 @@ const de_ListClustersCommand = async (output, context) => {
|
|
|
1085
1073
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1086
1074
|
return de_ListClustersCommandError(output, context);
|
|
1087
1075
|
}
|
|
1088
|
-
const contents = map({
|
|
1076
|
+
const contents = (0, smithy_client_1.map)({
|
|
1089
1077
|
$metadata: deserializeMetadata(output),
|
|
1090
1078
|
});
|
|
1091
1079
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
}
|
|
1080
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1081
|
+
Clusters: smithy_client_1._json,
|
|
1082
|
+
NextToken: smithy_client_1.expectString,
|
|
1083
|
+
});
|
|
1084
|
+
Object.assign(contents, doc);
|
|
1098
1085
|
return contents;
|
|
1099
1086
|
};
|
|
1100
1087
|
exports.de_ListClustersCommand = de_ListClustersCommand;
|
|
@@ -1122,10 +1109,9 @@ const de_ListClustersCommandError = async (output, context) => {
|
|
|
1122
1109
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1123
1110
|
default:
|
|
1124
1111
|
const parsedBody = parsedOutput.body;
|
|
1125
|
-
|
|
1112
|
+
return throwDefaultError({
|
|
1126
1113
|
output,
|
|
1127
1114
|
parsedBody,
|
|
1128
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
1129
1115
|
errorCode,
|
|
1130
1116
|
});
|
|
1131
1117
|
}
|
|
@@ -1134,16 +1120,15 @@ const de_ListControlPanelsCommand = async (output, context) => {
|
|
|
1134
1120
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1135
1121
|
return de_ListControlPanelsCommandError(output, context);
|
|
1136
1122
|
}
|
|
1137
|
-
const contents = map({
|
|
1123
|
+
const contents = (0, smithy_client_1.map)({
|
|
1138
1124
|
$metadata: deserializeMetadata(output),
|
|
1139
1125
|
});
|
|
1140
1126
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
}
|
|
1127
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1128
|
+
ControlPanels: smithy_client_1._json,
|
|
1129
|
+
NextToken: smithy_client_1.expectString,
|
|
1130
|
+
});
|
|
1131
|
+
Object.assign(contents, doc);
|
|
1147
1132
|
return contents;
|
|
1148
1133
|
};
|
|
1149
1134
|
exports.de_ListControlPanelsCommand = de_ListControlPanelsCommand;
|
|
@@ -1171,10 +1156,9 @@ const de_ListControlPanelsCommandError = async (output, context) => {
|
|
|
1171
1156
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1172
1157
|
default:
|
|
1173
1158
|
const parsedBody = parsedOutput.body;
|
|
1174
|
-
|
|
1159
|
+
return throwDefaultError({
|
|
1175
1160
|
output,
|
|
1176
1161
|
parsedBody,
|
|
1177
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
1178
1162
|
errorCode,
|
|
1179
1163
|
});
|
|
1180
1164
|
}
|
|
@@ -1183,16 +1167,15 @@ const de_ListRoutingControlsCommand = async (output, context) => {
|
|
|
1183
1167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1184
1168
|
return de_ListRoutingControlsCommandError(output, context);
|
|
1185
1169
|
}
|
|
1186
|
-
const contents = map({
|
|
1170
|
+
const contents = (0, smithy_client_1.map)({
|
|
1187
1171
|
$metadata: deserializeMetadata(output),
|
|
1188
1172
|
});
|
|
1189
1173
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
}
|
|
1174
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1175
|
+
NextToken: smithy_client_1.expectString,
|
|
1176
|
+
RoutingControls: smithy_client_1._json,
|
|
1177
|
+
});
|
|
1178
|
+
Object.assign(contents, doc);
|
|
1196
1179
|
return contents;
|
|
1197
1180
|
};
|
|
1198
1181
|
exports.de_ListRoutingControlsCommand = de_ListRoutingControlsCommand;
|
|
@@ -1220,10 +1203,9 @@ const de_ListRoutingControlsCommandError = async (output, context) => {
|
|
|
1220
1203
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1221
1204
|
default:
|
|
1222
1205
|
const parsedBody = parsedOutput.body;
|
|
1223
|
-
|
|
1206
|
+
return throwDefaultError({
|
|
1224
1207
|
output,
|
|
1225
1208
|
parsedBody,
|
|
1226
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
1227
1209
|
errorCode,
|
|
1228
1210
|
});
|
|
1229
1211
|
}
|
|
@@ -1232,16 +1214,15 @@ const de_ListSafetyRulesCommand = async (output, context) => {
|
|
|
1232
1214
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1233
1215
|
return de_ListSafetyRulesCommandError(output, context);
|
|
1234
1216
|
}
|
|
1235
|
-
const contents = map({
|
|
1217
|
+
const contents = (0, smithy_client_1.map)({
|
|
1236
1218
|
$metadata: deserializeMetadata(output),
|
|
1237
1219
|
});
|
|
1238
1220
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
}
|
|
1221
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1222
|
+
NextToken: smithy_client_1.expectString,
|
|
1223
|
+
SafetyRules: smithy_client_1._json,
|
|
1224
|
+
});
|
|
1225
|
+
Object.assign(contents, doc);
|
|
1245
1226
|
return contents;
|
|
1246
1227
|
};
|
|
1247
1228
|
exports.de_ListSafetyRulesCommand = de_ListSafetyRulesCommand;
|
|
@@ -1269,10 +1250,9 @@ const de_ListSafetyRulesCommandError = async (output, context) => {
|
|
|
1269
1250
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1270
1251
|
default:
|
|
1271
1252
|
const parsedBody = parsedOutput.body;
|
|
1272
|
-
|
|
1253
|
+
return throwDefaultError({
|
|
1273
1254
|
output,
|
|
1274
1255
|
parsedBody,
|
|
1275
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
1276
1256
|
errorCode,
|
|
1277
1257
|
});
|
|
1278
1258
|
}
|
|
@@ -1281,13 +1261,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1281
1261
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1282
1262
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1283
1263
|
}
|
|
1284
|
-
const contents = map({
|
|
1264
|
+
const contents = (0, smithy_client_1.map)({
|
|
1285
1265
|
$metadata: deserializeMetadata(output),
|
|
1286
1266
|
});
|
|
1287
1267
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
}
|
|
1268
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1269
|
+
Tags: smithy_client_1._json,
|
|
1270
|
+
});
|
|
1271
|
+
Object.assign(contents, doc);
|
|
1291
1272
|
return contents;
|
|
1292
1273
|
};
|
|
1293
1274
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1309,10 +1290,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1309
1290
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1310
1291
|
default:
|
|
1311
1292
|
const parsedBody = parsedOutput.body;
|
|
1312
|
-
|
|
1293
|
+
return throwDefaultError({
|
|
1313
1294
|
output,
|
|
1314
1295
|
parsedBody,
|
|
1315
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
1316
1296
|
errorCode,
|
|
1317
1297
|
});
|
|
1318
1298
|
}
|
|
@@ -1321,7 +1301,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1321
1301
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1322
1302
|
return de_TagResourceCommandError(output, context);
|
|
1323
1303
|
}
|
|
1324
|
-
const contents = map({
|
|
1304
|
+
const contents = (0, smithy_client_1.map)({
|
|
1325
1305
|
$metadata: deserializeMetadata(output),
|
|
1326
1306
|
});
|
|
1327
1307
|
await collectBody(output.body, context);
|
|
@@ -1346,10 +1326,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1346
1326
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1347
1327
|
default:
|
|
1348
1328
|
const parsedBody = parsedOutput.body;
|
|
1349
|
-
|
|
1329
|
+
return throwDefaultError({
|
|
1350
1330
|
output,
|
|
1351
1331
|
parsedBody,
|
|
1352
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
1353
1332
|
errorCode,
|
|
1354
1333
|
});
|
|
1355
1334
|
}
|
|
@@ -1358,7 +1337,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1358
1337
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1359
1338
|
return de_UntagResourceCommandError(output, context);
|
|
1360
1339
|
}
|
|
1361
|
-
const contents = map({
|
|
1340
|
+
const contents = (0, smithy_client_1.map)({
|
|
1362
1341
|
$metadata: deserializeMetadata(output),
|
|
1363
1342
|
});
|
|
1364
1343
|
await collectBody(output.body, context);
|
|
@@ -1383,10 +1362,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1383
1362
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1384
1363
|
default:
|
|
1385
1364
|
const parsedBody = parsedOutput.body;
|
|
1386
|
-
|
|
1365
|
+
return throwDefaultError({
|
|
1387
1366
|
output,
|
|
1388
1367
|
parsedBody,
|
|
1389
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
1390
1368
|
errorCode,
|
|
1391
1369
|
});
|
|
1392
1370
|
}
|
|
@@ -1395,13 +1373,14 @@ const de_UpdateControlPanelCommand = async (output, context) => {
|
|
|
1395
1373
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1396
1374
|
return de_UpdateControlPanelCommandError(output, context);
|
|
1397
1375
|
}
|
|
1398
|
-
const contents = map({
|
|
1376
|
+
const contents = (0, smithy_client_1.map)({
|
|
1399
1377
|
$metadata: deserializeMetadata(output),
|
|
1400
1378
|
});
|
|
1401
1379
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
}
|
|
1380
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1381
|
+
ControlPanel: smithy_client_1._json,
|
|
1382
|
+
});
|
|
1383
|
+
Object.assign(contents, doc);
|
|
1405
1384
|
return contents;
|
|
1406
1385
|
};
|
|
1407
1386
|
exports.de_UpdateControlPanelCommand = de_UpdateControlPanelCommand;
|
|
@@ -1432,10 +1411,9 @@ const de_UpdateControlPanelCommandError = async (output, context) => {
|
|
|
1432
1411
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1433
1412
|
default:
|
|
1434
1413
|
const parsedBody = parsedOutput.body;
|
|
1435
|
-
|
|
1414
|
+
return throwDefaultError({
|
|
1436
1415
|
output,
|
|
1437
1416
|
parsedBody,
|
|
1438
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
1439
1417
|
errorCode,
|
|
1440
1418
|
});
|
|
1441
1419
|
}
|
|
@@ -1444,13 +1422,14 @@ const de_UpdateRoutingControlCommand = async (output, context) => {
|
|
|
1444
1422
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1445
1423
|
return de_UpdateRoutingControlCommandError(output, context);
|
|
1446
1424
|
}
|
|
1447
|
-
const contents = map({
|
|
1425
|
+
const contents = (0, smithy_client_1.map)({
|
|
1448
1426
|
$metadata: deserializeMetadata(output),
|
|
1449
1427
|
});
|
|
1450
1428
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
}
|
|
1429
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1430
|
+
RoutingControl: smithy_client_1._json,
|
|
1431
|
+
});
|
|
1432
|
+
Object.assign(contents, doc);
|
|
1454
1433
|
return contents;
|
|
1455
1434
|
};
|
|
1456
1435
|
exports.de_UpdateRoutingControlCommand = de_UpdateRoutingControlCommand;
|
|
@@ -1481,10 +1460,9 @@ const de_UpdateRoutingControlCommandError = async (output, context) => {
|
|
|
1481
1460
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1482
1461
|
default:
|
|
1483
1462
|
const parsedBody = parsedOutput.body;
|
|
1484
|
-
|
|
1463
|
+
return throwDefaultError({
|
|
1485
1464
|
output,
|
|
1486
1465
|
parsedBody,
|
|
1487
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
1488
1466
|
errorCode,
|
|
1489
1467
|
});
|
|
1490
1468
|
}
|
|
@@ -1493,16 +1471,15 @@ const de_UpdateSafetyRuleCommand = async (output, context) => {
|
|
|
1493
1471
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1494
1472
|
return de_UpdateSafetyRuleCommandError(output, context);
|
|
1495
1473
|
}
|
|
1496
|
-
const contents = map({
|
|
1474
|
+
const contents = (0, smithy_client_1.map)({
|
|
1497
1475
|
$metadata: deserializeMetadata(output),
|
|
1498
1476
|
});
|
|
1499
1477
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
}
|
|
1478
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1479
|
+
AssertionRule: smithy_client_1._json,
|
|
1480
|
+
GatingRule: smithy_client_1._json,
|
|
1481
|
+
});
|
|
1482
|
+
Object.assign(contents, doc);
|
|
1506
1483
|
return contents;
|
|
1507
1484
|
};
|
|
1508
1485
|
exports.de_UpdateSafetyRuleCommand = de_UpdateSafetyRuleCommand;
|
|
@@ -1524,21 +1501,21 @@ const de_UpdateSafetyRuleCommandError = async (output, context) => {
|
|
|
1524
1501
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1525
1502
|
default:
|
|
1526
1503
|
const parsedBody = parsedOutput.body;
|
|
1527
|
-
|
|
1504
|
+
return throwDefaultError({
|
|
1528
1505
|
output,
|
|
1529
1506
|
parsedBody,
|
|
1530
|
-
exceptionCtor: Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException,
|
|
1531
1507
|
errorCode,
|
|
1532
1508
|
});
|
|
1533
1509
|
}
|
|
1534
1510
|
};
|
|
1535
|
-
const
|
|
1511
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(Route53RecoveryControlConfigServiceException_1.Route53RecoveryControlConfigServiceException);
|
|
1536
1512
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1537
|
-
const contents = map({});
|
|
1513
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1538
1514
|
const data = parsedOutput.body;
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
}
|
|
1515
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1516
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1517
|
+
});
|
|
1518
|
+
Object.assign(contents, doc);
|
|
1542
1519
|
const exception = new models_0_1.AccessDeniedException({
|
|
1543
1520
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1544
1521
|
...contents,
|
|
@@ -1546,11 +1523,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1546
1523
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1547
1524
|
};
|
|
1548
1525
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1549
|
-
const contents = map({});
|
|
1526
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1550
1527
|
const data = parsedOutput.body;
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
}
|
|
1528
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1529
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1530
|
+
});
|
|
1531
|
+
Object.assign(contents, doc);
|
|
1554
1532
|
const exception = new models_0_1.ConflictException({
|
|
1555
1533
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1556
1534
|
...contents,
|
|
@@ -1558,11 +1536,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1558
1536
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1559
1537
|
};
|
|
1560
1538
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1561
|
-
const contents = map({});
|
|
1539
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1562
1540
|
const data = parsedOutput.body;
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
}
|
|
1541
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1542
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1543
|
+
});
|
|
1544
|
+
Object.assign(contents, doc);
|
|
1566
1545
|
const exception = new models_0_1.InternalServerException({
|
|
1567
1546
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1568
1547
|
...contents,
|
|
@@ -1570,11 +1549,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1570
1549
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1571
1550
|
};
|
|
1572
1551
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1573
|
-
const contents = map({});
|
|
1552
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1574
1553
|
const data = parsedOutput.body;
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
}
|
|
1554
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1555
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1556
|
+
});
|
|
1557
|
+
Object.assign(contents, doc);
|
|
1578
1558
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1579
1559
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1580
1560
|
...contents,
|
|
@@ -1582,11 +1562,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1582
1562
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1583
1563
|
};
|
|
1584
1564
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1585
|
-
const contents = map({});
|
|
1565
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1586
1566
|
const data = parsedOutput.body;
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
}
|
|
1567
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1568
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1569
|
+
});
|
|
1570
|
+
Object.assign(contents, doc);
|
|
1590
1571
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1591
1572
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1592
1573
|
...contents,
|
|
@@ -1594,11 +1575,12 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1594
1575
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1595
1576
|
};
|
|
1596
1577
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1597
|
-
const contents = map({});
|
|
1578
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1598
1579
|
const data = parsedOutput.body;
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
}
|
|
1580
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1581
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1582
|
+
});
|
|
1583
|
+
Object.assign(contents, doc);
|
|
1602
1584
|
const exception = new models_0_1.ThrottlingException({
|
|
1603
1585
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1604
1586
|
...contents,
|
|
@@ -1606,239 +1588,18 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1606
1588
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1607
1589
|
};
|
|
1608
1590
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1609
|
-
const contents = map({});
|
|
1591
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1610
1592
|
const data = parsedOutput.body;
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
}
|
|
1593
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1594
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1595
|
+
});
|
|
1596
|
+
Object.assign(contents, doc);
|
|
1614
1597
|
const exception = new models_0_1.ValidationException({
|
|
1615
1598
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1616
1599
|
...contents,
|
|
1617
1600
|
});
|
|
1618
1601
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1619
1602
|
};
|
|
1620
|
-
const se___listOf__stringMin1Max256PatternAZaZ09 = (input, context) => {
|
|
1621
|
-
return input
|
|
1622
|
-
.filter((e) => e != null)
|
|
1623
|
-
.map((entry) => {
|
|
1624
|
-
return entry;
|
|
1625
|
-
});
|
|
1626
|
-
};
|
|
1627
|
-
const se___mapOf__stringMin0Max256PatternS = (input, context) => {
|
|
1628
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1629
|
-
if (value === null) {
|
|
1630
|
-
return acc;
|
|
1631
|
-
}
|
|
1632
|
-
acc[key] = value;
|
|
1633
|
-
return acc;
|
|
1634
|
-
}, {});
|
|
1635
|
-
};
|
|
1636
|
-
const se_AssertionRuleUpdate = (input, context) => {
|
|
1637
|
-
return {
|
|
1638
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1639
|
-
...(input.SafetyRuleArn != null && { SafetyRuleArn: input.SafetyRuleArn }),
|
|
1640
|
-
...(input.WaitPeriodMs != null && { WaitPeriodMs: input.WaitPeriodMs }),
|
|
1641
|
-
};
|
|
1642
|
-
};
|
|
1643
|
-
const se_GatingRuleUpdate = (input, context) => {
|
|
1644
|
-
return {
|
|
1645
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1646
|
-
...(input.SafetyRuleArn != null && { SafetyRuleArn: input.SafetyRuleArn }),
|
|
1647
|
-
...(input.WaitPeriodMs != null && { WaitPeriodMs: input.WaitPeriodMs }),
|
|
1648
|
-
};
|
|
1649
|
-
};
|
|
1650
|
-
const se_NewAssertionRule = (input, context) => {
|
|
1651
|
-
return {
|
|
1652
|
-
...(input.AssertedControls != null && {
|
|
1653
|
-
AssertedControls: se___listOf__stringMin1Max256PatternAZaZ09(input.AssertedControls, context),
|
|
1654
|
-
}),
|
|
1655
|
-
...(input.ControlPanelArn != null && { ControlPanelArn: input.ControlPanelArn }),
|
|
1656
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1657
|
-
...(input.RuleConfig != null && { RuleConfig: se_RuleConfig(input.RuleConfig, context) }),
|
|
1658
|
-
...(input.WaitPeriodMs != null && { WaitPeriodMs: input.WaitPeriodMs }),
|
|
1659
|
-
};
|
|
1660
|
-
};
|
|
1661
|
-
const se_NewGatingRule = (input, context) => {
|
|
1662
|
-
return {
|
|
1663
|
-
...(input.ControlPanelArn != null && { ControlPanelArn: input.ControlPanelArn }),
|
|
1664
|
-
...(input.GatingControls != null && {
|
|
1665
|
-
GatingControls: se___listOf__stringMin1Max256PatternAZaZ09(input.GatingControls, context),
|
|
1666
|
-
}),
|
|
1667
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1668
|
-
...(input.RuleConfig != null && { RuleConfig: se_RuleConfig(input.RuleConfig, context) }),
|
|
1669
|
-
...(input.TargetControls != null && {
|
|
1670
|
-
TargetControls: se___listOf__stringMin1Max256PatternAZaZ09(input.TargetControls, context),
|
|
1671
|
-
}),
|
|
1672
|
-
...(input.WaitPeriodMs != null && { WaitPeriodMs: input.WaitPeriodMs }),
|
|
1673
|
-
};
|
|
1674
|
-
};
|
|
1675
|
-
const se_RuleConfig = (input, context) => {
|
|
1676
|
-
return {
|
|
1677
|
-
...(input.Inverted != null && { Inverted: input.Inverted }),
|
|
1678
|
-
...(input.Threshold != null && { Threshold: input.Threshold }),
|
|
1679
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1680
|
-
};
|
|
1681
|
-
};
|
|
1682
|
-
const de___listOf__stringMax36PatternS = (output, context) => {
|
|
1683
|
-
const retVal = (output || [])
|
|
1684
|
-
.filter((e) => e != null)
|
|
1685
|
-
.map((entry) => {
|
|
1686
|
-
if (entry === null) {
|
|
1687
|
-
return null;
|
|
1688
|
-
}
|
|
1689
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1690
|
-
});
|
|
1691
|
-
return retVal;
|
|
1692
|
-
};
|
|
1693
|
-
const de___listOf__stringMin1Max256PatternAZaZ09 = (output, context) => {
|
|
1694
|
-
const retVal = (output || [])
|
|
1695
|
-
.filter((e) => e != null)
|
|
1696
|
-
.map((entry) => {
|
|
1697
|
-
if (entry === null) {
|
|
1698
|
-
return null;
|
|
1699
|
-
}
|
|
1700
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1701
|
-
});
|
|
1702
|
-
return retVal;
|
|
1703
|
-
};
|
|
1704
|
-
const de___listOfCluster = (output, context) => {
|
|
1705
|
-
const retVal = (output || [])
|
|
1706
|
-
.filter((e) => e != null)
|
|
1707
|
-
.map((entry) => {
|
|
1708
|
-
if (entry === null) {
|
|
1709
|
-
return null;
|
|
1710
|
-
}
|
|
1711
|
-
return de_Cluster(entry, context);
|
|
1712
|
-
});
|
|
1713
|
-
return retVal;
|
|
1714
|
-
};
|
|
1715
|
-
const de___listOfClusterEndpoint = (output, context) => {
|
|
1716
|
-
const retVal = (output || [])
|
|
1717
|
-
.filter((e) => e != null)
|
|
1718
|
-
.map((entry) => {
|
|
1719
|
-
if (entry === null) {
|
|
1720
|
-
return null;
|
|
1721
|
-
}
|
|
1722
|
-
return de_ClusterEndpoint(entry, context);
|
|
1723
|
-
});
|
|
1724
|
-
return retVal;
|
|
1725
|
-
};
|
|
1726
|
-
const de___listOfControlPanel = (output, context) => {
|
|
1727
|
-
const retVal = (output || [])
|
|
1728
|
-
.filter((e) => e != null)
|
|
1729
|
-
.map((entry) => {
|
|
1730
|
-
if (entry === null) {
|
|
1731
|
-
return null;
|
|
1732
|
-
}
|
|
1733
|
-
return de_ControlPanel(entry, context);
|
|
1734
|
-
});
|
|
1735
|
-
return retVal;
|
|
1736
|
-
};
|
|
1737
|
-
const de___listOfRoutingControl = (output, context) => {
|
|
1738
|
-
const retVal = (output || [])
|
|
1739
|
-
.filter((e) => e != null)
|
|
1740
|
-
.map((entry) => {
|
|
1741
|
-
if (entry === null) {
|
|
1742
|
-
return null;
|
|
1743
|
-
}
|
|
1744
|
-
return de_RoutingControl(entry, context);
|
|
1745
|
-
});
|
|
1746
|
-
return retVal;
|
|
1747
|
-
};
|
|
1748
|
-
const de___listOfRule = (output, context) => {
|
|
1749
|
-
const retVal = (output || [])
|
|
1750
|
-
.filter((e) => e != null)
|
|
1751
|
-
.map((entry) => {
|
|
1752
|
-
if (entry === null) {
|
|
1753
|
-
return null;
|
|
1754
|
-
}
|
|
1755
|
-
return de_Rule(entry, context);
|
|
1756
|
-
});
|
|
1757
|
-
return retVal;
|
|
1758
|
-
};
|
|
1759
|
-
const de___mapOf__stringMin0Max256PatternS = (output, context) => {
|
|
1760
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1761
|
-
if (value === null) {
|
|
1762
|
-
return acc;
|
|
1763
|
-
}
|
|
1764
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1765
|
-
return acc;
|
|
1766
|
-
}, {});
|
|
1767
|
-
};
|
|
1768
|
-
const de_AssertionRule = (output, context) => {
|
|
1769
|
-
return {
|
|
1770
|
-
AssertedControls: output.AssertedControls != null
|
|
1771
|
-
? de___listOf__stringMin1Max256PatternAZaZ09(output.AssertedControls, context)
|
|
1772
|
-
: undefined,
|
|
1773
|
-
ControlPanelArn: (0, smithy_client_1.expectString)(output.ControlPanelArn),
|
|
1774
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1775
|
-
RuleConfig: output.RuleConfig != null ? de_RuleConfig(output.RuleConfig, context) : undefined,
|
|
1776
|
-
SafetyRuleArn: (0, smithy_client_1.expectString)(output.SafetyRuleArn),
|
|
1777
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1778
|
-
WaitPeriodMs: (0, smithy_client_1.expectInt32)(output.WaitPeriodMs),
|
|
1779
|
-
};
|
|
1780
|
-
};
|
|
1781
|
-
const de_Cluster = (output, context) => {
|
|
1782
|
-
return {
|
|
1783
|
-
ClusterArn: (0, smithy_client_1.expectString)(output.ClusterArn),
|
|
1784
|
-
ClusterEndpoints: output.ClusterEndpoints != null ? de___listOfClusterEndpoint(output.ClusterEndpoints, context) : undefined,
|
|
1785
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1786
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1787
|
-
};
|
|
1788
|
-
};
|
|
1789
|
-
const de_ClusterEndpoint = (output, context) => {
|
|
1790
|
-
return {
|
|
1791
|
-
Endpoint: (0, smithy_client_1.expectString)(output.Endpoint),
|
|
1792
|
-
Region: (0, smithy_client_1.expectString)(output.Region),
|
|
1793
|
-
};
|
|
1794
|
-
};
|
|
1795
|
-
const de_ControlPanel = (output, context) => {
|
|
1796
|
-
return {
|
|
1797
|
-
ClusterArn: (0, smithy_client_1.expectString)(output.ClusterArn),
|
|
1798
|
-
ControlPanelArn: (0, smithy_client_1.expectString)(output.ControlPanelArn),
|
|
1799
|
-
DefaultControlPanel: (0, smithy_client_1.expectBoolean)(output.DefaultControlPanel),
|
|
1800
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1801
|
-
RoutingControlCount: (0, smithy_client_1.expectInt32)(output.RoutingControlCount),
|
|
1802
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1803
|
-
};
|
|
1804
|
-
};
|
|
1805
|
-
const de_GatingRule = (output, context) => {
|
|
1806
|
-
return {
|
|
1807
|
-
ControlPanelArn: (0, smithy_client_1.expectString)(output.ControlPanelArn),
|
|
1808
|
-
GatingControls: output.GatingControls != null
|
|
1809
|
-
? de___listOf__stringMin1Max256PatternAZaZ09(output.GatingControls, context)
|
|
1810
|
-
: undefined,
|
|
1811
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1812
|
-
RuleConfig: output.RuleConfig != null ? de_RuleConfig(output.RuleConfig, context) : undefined,
|
|
1813
|
-
SafetyRuleArn: (0, smithy_client_1.expectString)(output.SafetyRuleArn),
|
|
1814
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1815
|
-
TargetControls: output.TargetControls != null
|
|
1816
|
-
? de___listOf__stringMin1Max256PatternAZaZ09(output.TargetControls, context)
|
|
1817
|
-
: undefined,
|
|
1818
|
-
WaitPeriodMs: (0, smithy_client_1.expectInt32)(output.WaitPeriodMs),
|
|
1819
|
-
};
|
|
1820
|
-
};
|
|
1821
|
-
const de_RoutingControl = (output, context) => {
|
|
1822
|
-
return {
|
|
1823
|
-
ControlPanelArn: (0, smithy_client_1.expectString)(output.ControlPanelArn),
|
|
1824
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1825
|
-
RoutingControlArn: (0, smithy_client_1.expectString)(output.RoutingControlArn),
|
|
1826
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1827
|
-
};
|
|
1828
|
-
};
|
|
1829
|
-
const de_Rule = (output, context) => {
|
|
1830
|
-
return {
|
|
1831
|
-
ASSERTION: output.ASSERTION != null ? de_AssertionRule(output.ASSERTION, context) : undefined,
|
|
1832
|
-
GATING: output.GATING != null ? de_GatingRule(output.GATING, context) : undefined,
|
|
1833
|
-
};
|
|
1834
|
-
};
|
|
1835
|
-
const de_RuleConfig = (output, context) => {
|
|
1836
|
-
return {
|
|
1837
|
-
Inverted: (0, smithy_client_1.expectBoolean)(output.Inverted),
|
|
1838
|
-
Threshold: (0, smithy_client_1.expectInt32)(output.Threshold),
|
|
1839
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1840
|
-
};
|
|
1841
|
-
};
|
|
1842
1603
|
const deserializeMetadata = (output) => ({
|
|
1843
1604
|
httpStatusCode: output.statusCode,
|
|
1844
1605
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|