@aws-sdk/client-route53-recovery-control-config 3.758.0 → 3.773.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/README.md CHANGED
@@ -376,6 +376,14 @@ UntagResource
376
376
 
377
377
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53-recovery-control-config/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53-recovery-control-config/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53-recovery-control-config/Interface/UntagResourceCommandOutput/)
378
378
 
379
+ </details>
380
+ <details>
381
+ <summary>
382
+ UpdateCluster
383
+ </summary>
384
+
385
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53-recovery-control-config/command/UpdateClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53-recovery-control-config/Interface/UpdateClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53-recovery-control-config/Interface/UpdateClusterCommandOutput/)
386
+
379
387
  </details>
380
388
  <details>
381
389
  <summary>
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const t = "required", u = "fn", v = "argv", w = "ref";
5
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [t]: false, "type": "String" }, i = { [t]: true, "default": false, "type": "Boolean" }, j = { [w]: "Endpoint" }, k = { [u]: c, [v]: [{ [w]: "UseFIPS" }, true] }, l = { [u]: c, [v]: [{ [w]: "UseDualStack" }, true] }, m = {}, n = { [w]: "Region" }, o = { [u]: "getAttr", [v]: [{ [w]: g }, "supportsFIPS"] }, p = { [u]: c, [v]: [true, { [u]: "getAttr", [v]: [{ [w]: g }, "supportsDualStack"] }] }, q = [k], r = [l], s = [n];
6
- const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [u]: b, [v]: [j] }], rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [u]: b, [v]: s }], rules: [{ conditions: [{ [u]: "aws.partition", [v]: s, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [u]: c, [v]: [a, o] }, p], rules: [{ endpoint: { url: "https://route53-recovery-control-config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: q, rules: [{ conditions: [{ [u]: c, [v]: [o, a] }], rules: [{ endpoint: { url: "https://route53-recovery-control-config-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: r, rules: [{ conditions: [p], rules: [{ endpoint: { url: "https://route53-recovery-control-config.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { conditions: [{ [u]: "stringEquals", [v]: [n, "aws-global"] }], endpoint: { url: "https://route53-recovery-control-config.us-west-2.amazonaws.com", properties: { authSchemes: [{ name: "sigv4", signingName: "route53-recovery-control-config", signingRegion: "us-west-2" }] }, headers: m }, type: e }, { endpoint: { url: "https://route53-recovery-control-config.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
4
+ const v = "required", w = "fn", x = "argv", y = "ref", z = "authSchemes", A = "signingRegion";
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [v]: true, "default": false, "type": "Boolean" }, i = { [v]: false, "type": "String" }, j = { [y]: "Endpoint" }, k = { [w]: c, [x]: [{ [y]: "UseFIPS" }, true] }, l = { [w]: c, [x]: [{ [y]: "UseDualStack" }, true] }, m = {}, n = { [w]: "stringEquals", [x]: [{ [w]: "getAttr", [x]: [{ [y]: g }, "name"] }, "aws"] }, o = { [w]: c, [x]: [{ [y]: "UseFIPS" }, false] }, p = { [w]: c, [x]: [{ [y]: "UseDualStack" }, false] }, q = { [z]: [{ "name": "sigv4", [A]: "us-west-2" }] }, r = { [w]: "getAttr", [x]: [{ [y]: g }, "supportsFIPS"] }, s = { [w]: c, [x]: [true, { [w]: "getAttr", [x]: [{ [y]: g }, "supportsDualStack"] }] }, t = { [z]: [{ "name": "sigv4", [A]: "{PartitionResult#implicitGlobalRegion}" }] }, u = [{ [y]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { UseDualStack: h, UseFIPS: h, Endpoint: i, Region: i }, rules: [{ conditions: [{ [w]: b, [x]: [j] }], rules: [{ conditions: [k], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: [l], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [w]: b, [x]: u }], rules: [{ conditions: [{ [w]: "aws.partition", [x]: u, assign: g }], rules: [{ conditions: [n, o, p], endpoint: { url: "https://route53-recovery-control-config.us-west-2.amazonaws.com", properties: q, headers: m }, type: e }, { conditions: [n, o, l], endpoint: { url: "https://arc-recovery-control-config.us-west-2.api.aws", properties: q, headers: m }, type: e }, { conditions: [k, l], rules: [{ conditions: [{ [w]: c, [x]: [a, r] }, s], rules: [{ endpoint: { url: "https://route53-recovery-control-config-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", properties: t, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: [k, p], rules: [{ conditions: [{ [w]: c, [x]: [r, a] }], rules: [{ endpoint: { url: "https://route53-recovery-control-config-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}", properties: t, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: [o, l], rules: [{ conditions: [s], rules: [{ endpoint: { url: "https://route53-recovery-control-config.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", properties: t, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://route53-recovery-control-config.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}", properties: t, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
7
7
  exports.ruleSet = _data;
package/dist-cjs/index.js CHANGED
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
24
  AccessDeniedException: () => AccessDeniedException,
25
25
  ConflictException: () => ConflictException,
26
26
  CreateClusterCommand: () => CreateClusterCommand,
@@ -43,6 +43,7 @@ __export(src_exports, {
43
43
  ListRoutingControlsCommand: () => ListRoutingControlsCommand,
44
44
  ListSafetyRulesCommand: () => ListSafetyRulesCommand,
45
45
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
46
+ NetworkType: () => NetworkType,
46
47
  ResourceNotFoundException: () => ResourceNotFoundException,
47
48
  Route53RecoveryControlConfig: () => Route53RecoveryControlConfig,
48
49
  Route53RecoveryControlConfigClient: () => Route53RecoveryControlConfigClient,
@@ -53,6 +54,7 @@ __export(src_exports, {
53
54
  TagResourceCommand: () => TagResourceCommand,
54
55
  ThrottlingException: () => ThrottlingException,
55
56
  UntagResourceCommand: () => UntagResourceCommand,
57
+ UpdateClusterCommand: () => UpdateClusterCommand,
56
58
  UpdateControlPanelCommand: () => UpdateControlPanelCommand,
57
59
  UpdateRoutingControlCommand: () => UpdateRoutingControlCommand,
58
60
  UpdateSafetyRuleCommand: () => UpdateSafetyRuleCommand,
@@ -76,7 +78,7 @@ __export(src_exports, {
76
78
  waitUntilRoutingControlCreated: () => waitUntilRoutingControlCreated,
77
79
  waitUntilRoutingControlDeleted: () => waitUntilRoutingControlDeleted
78
80
  });
79
- module.exports = __toCommonJS(src_exports);
81
+ module.exports = __toCommonJS(index_exports);
80
82
 
81
83
  // src/Route53RecoveryControlConfigClient.ts
82
84
  var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
@@ -203,9 +205,9 @@ var Route53RecoveryControlConfigClient = class extends import_smithy_client.Clie
203
205
  this.middlewareStack.use(
204
206
  (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
205
207
  httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultRoute53RecoveryControlConfigHttpAuthSchemeParametersProvider,
206
- identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
208
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
207
209
  "aws.auth#sigv4": config.credentials
208
- })
210
+ }), "identityProviderConfigProvider")
209
211
  })
210
212
  );
211
213
  this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
@@ -250,6 +252,10 @@ var Route53RecoveryControlConfigServiceException = class _Route53RecoveryControl
250
252
  };
251
253
 
252
254
  // src/models/models_0.ts
255
+ var NetworkType = {
256
+ DUALSTACK: "DUALSTACK",
257
+ IPV4: "IPV4"
258
+ };
253
259
  var Status = {
254
260
  DEPLOYED: "DEPLOYED",
255
261
  PENDING: "PENDING",
@@ -413,7 +419,8 @@ var se_CreateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
413
419
  (0, import_smithy_client.take)(input, {
414
420
  ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
415
421
  ClusterName: [],
416
- Tags: (_) => (0, import_smithy_client._json)(_)
422
+ NetworkType: [],
423
+ Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
417
424
  })
418
425
  );
419
426
  b.m("POST").h(headers).b(body);
@@ -431,7 +438,7 @@ var se_CreateControlPanelCommand = /* @__PURE__ */ __name(async (input, context)
431
438
  ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
432
439
  ClusterArn: [],
433
440
  ControlPanelName: [],
434
- Tags: (_) => (0, import_smithy_client._json)(_)
441
+ Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
435
442
  })
436
443
  );
437
444
  b.m("POST").h(headers).b(body);
@@ -464,10 +471,10 @@ var se_CreateSafetyRuleCommand = /* @__PURE__ */ __name(async (input, context) =
464
471
  let body;
465
472
  body = JSON.stringify(
466
473
  (0, import_smithy_client.take)(input, {
467
- AssertionRule: (_) => (0, import_smithy_client._json)(_),
474
+ AssertionRule: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "AssertionRule"),
468
475
  ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
469
- GatingRule: (_) => (0, import_smithy_client._json)(_),
470
- Tags: (_) => (0, import_smithy_client._json)(_)
476
+ GatingRule: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "GatingRule"),
477
+ Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
471
478
  })
472
479
  );
473
480
  b.m("POST").h(headers).b(body);
@@ -637,7 +644,7 @@ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
637
644
  let body;
638
645
  body = JSON.stringify(
639
646
  (0, import_smithy_client.take)(input, {
640
- Tags: (_) => (0, import_smithy_client._json)(_)
647
+ Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
641
648
  })
642
649
  );
643
650
  b.m("POST").h(headers).b(body);
@@ -655,6 +662,22 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
655
662
  b.m("DELETE").h(headers).q(query).b(body);
656
663
  return b.build();
657
664
  }, "se_UntagResourceCommand");
665
+ var se_UpdateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
666
+ const b = (0, import_core.requestBuilder)(input, context);
667
+ const headers = {
668
+ "content-type": "application/json"
669
+ };
670
+ b.bp("/cluster");
671
+ let body;
672
+ body = JSON.stringify(
673
+ (0, import_smithy_client.take)(input, {
674
+ ClusterArn: [],
675
+ NetworkType: []
676
+ })
677
+ );
678
+ b.m("PUT").h(headers).b(body);
679
+ return b.build();
680
+ }, "se_UpdateClusterCommand");
658
681
  var se_UpdateControlPanelCommand = /* @__PURE__ */ __name(async (input, context) => {
659
682
  const b = (0, import_core.requestBuilder)(input, context);
660
683
  const headers = {
@@ -696,8 +719,8 @@ var se_UpdateSafetyRuleCommand = /* @__PURE__ */ __name(async (input, context) =
696
719
  let body;
697
720
  body = JSON.stringify(
698
721
  (0, import_smithy_client.take)(input, {
699
- AssertionRuleUpdate: (_) => (0, import_smithy_client._json)(_),
700
- GatingRuleUpdate: (_) => (0, import_smithy_client._json)(_)
722
+ AssertionRuleUpdate: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "AssertionRuleUpdate"),
723
+ GatingRuleUpdate: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "GatingRuleUpdate")
701
724
  })
702
725
  );
703
726
  b.m("PUT").h(headers).b(body);
@@ -980,6 +1003,20 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
980
1003
  await (0, import_smithy_client.collectBody)(output.body, context);
981
1004
  return contents;
982
1005
  }, "de_UntagResourceCommand");
1006
+ var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
1007
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1008
+ return de_CommandError(output, context);
1009
+ }
1010
+ const contents = (0, import_smithy_client.map)({
1011
+ $metadata: deserializeMetadata(output)
1012
+ });
1013
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1014
+ const doc = (0, import_smithy_client.take)(data, {
1015
+ Cluster: import_smithy_client._json
1016
+ });
1017
+ Object.assign(contents, doc);
1018
+ return contents;
1019
+ }, "de_UpdateClusterCommand");
983
1020
  var de_UpdateControlPanelCommand = /* @__PURE__ */ __name(async (output, context) => {
984
1021
  if (output.statusCode !== 200 && output.statusCode >= 300) {
985
1022
  return de_CommandError(output, context);
@@ -1475,6 +1512,21 @@ var UntagResourceCommand = class extends import_smithy_client.Command.classBuild
1475
1512
  }
1476
1513
  };
1477
1514
 
1515
+ // src/commands/UpdateClusterCommand.ts
1516
+
1517
+
1518
+
1519
+ var UpdateClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1520
+ return [
1521
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1522
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1523
+ ];
1524
+ }).s("Route53RecoveryControlConfig", "UpdateCluster", {}).n("Route53RecoveryControlConfigClient", "UpdateClusterCommand").f(void 0, void 0).ser(se_UpdateClusterCommand).de(de_UpdateClusterCommand).build() {
1525
+ static {
1526
+ __name(this, "UpdateClusterCommand");
1527
+ }
1528
+ };
1529
+
1478
1530
  // src/commands/UpdateControlPanelCommand.ts
1479
1531
 
1480
1532
 
@@ -1543,6 +1595,7 @@ var commands = {
1543
1595
  ListTagsForResourceCommand,
1544
1596
  TagResourceCommand,
1545
1597
  UntagResourceCommand,
1598
+ UpdateClusterCommand,
1546
1599
  UpdateControlPanelCommand,
1547
1600
  UpdateRoutingControlCommand,
1548
1601
  UpdateSafetyRuleCommand
@@ -1842,6 +1895,7 @@ var waitUntilRoutingControlDeleted = /* @__PURE__ */ __name(async (params, input
1842
1895
  ListTagsForResourceCommand,
1843
1896
  TagResourceCommand,
1844
1897
  UntagResourceCommand,
1898
+ UpdateClusterCommand,
1845
1899
  UpdateControlPanelCommand,
1846
1900
  UpdateRoutingControlCommand,
1847
1901
  UpdateSafetyRuleCommand,
@@ -1862,6 +1916,7 @@ var waitUntilRoutingControlDeleted = /* @__PURE__ */ __name(async (params, input
1862
1916
  waitUntilRoutingControlCreated,
1863
1917
  waitForRoutingControlDeleted,
1864
1918
  waitUntilRoutingControlDeleted,
1919
+ NetworkType,
1865
1920
  Status,
1866
1921
  RuleType,
1867
1922
  AccessDeniedException,
@@ -20,6 +20,7 @@ import { ListSafetyRulesCommand, } from "./commands/ListSafetyRulesCommand";
20
20
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
21
21
  import { TagResourceCommand } from "./commands/TagResourceCommand";
22
22
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
23
+ import { UpdateClusterCommand, } from "./commands/UpdateClusterCommand";
23
24
  import { UpdateControlPanelCommand, } from "./commands/UpdateControlPanelCommand";
24
25
  import { UpdateRoutingControlCommand, } from "./commands/UpdateRoutingControlCommand";
25
26
  import { UpdateSafetyRuleCommand, } from "./commands/UpdateSafetyRuleCommand";
@@ -46,6 +47,7 @@ const commands = {
46
47
  ListTagsForResourceCommand,
47
48
  TagResourceCommand,
48
49
  UntagResourceCommand,
50
+ UpdateClusterCommand,
49
51
  UpdateControlPanelCommand,
50
52
  UpdateRoutingControlCommand,
51
53
  UpdateSafetyRuleCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateClusterCommand, se_UpdateClusterCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateClusterCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Route53RecoveryControlConfig", "UpdateCluster", {})
17
+ .n("Route53RecoveryControlConfigClient", "UpdateClusterCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UpdateClusterCommand)
20
+ .de(de_UpdateClusterCommand)
21
+ .build() {
22
+ }
@@ -19,6 +19,7 @@ export * from "./ListSafetyRulesCommand";
19
19
  export * from "./ListTagsForResourceCommand";
20
20
  export * from "./TagResourceCommand";
21
21
  export * from "./UntagResourceCommand";
22
+ export * from "./UpdateClusterCommand";
22
23
  export * from "./UpdateControlPanelCommand";
23
24
  export * from "./UpdateRoutingControlCommand";
24
25
  export * from "./UpdateSafetyRuleCommand";
@@ -1,4 +1,4 @@
1
- const t = "required", u = "fn", v = "argv", w = "ref";
2
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [t]: false, "type": "String" }, i = { [t]: true, "default": false, "type": "Boolean" }, j = { [w]: "Endpoint" }, k = { [u]: c, [v]: [{ [w]: "UseFIPS" }, true] }, l = { [u]: c, [v]: [{ [w]: "UseDualStack" }, true] }, m = {}, n = { [w]: "Region" }, o = { [u]: "getAttr", [v]: [{ [w]: g }, "supportsFIPS"] }, p = { [u]: c, [v]: [true, { [u]: "getAttr", [v]: [{ [w]: g }, "supportsDualStack"] }] }, q = [k], r = [l], s = [n];
3
- const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [u]: b, [v]: [j] }], rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [u]: b, [v]: s }], rules: [{ conditions: [{ [u]: "aws.partition", [v]: s, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [u]: c, [v]: [a, o] }, p], rules: [{ endpoint: { url: "https://route53-recovery-control-config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: q, rules: [{ conditions: [{ [u]: c, [v]: [o, a] }], rules: [{ endpoint: { url: "https://route53-recovery-control-config-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: r, rules: [{ conditions: [p], rules: [{ endpoint: { url: "https://route53-recovery-control-config.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { conditions: [{ [u]: "stringEquals", [v]: [n, "aws-global"] }], endpoint: { url: "https://route53-recovery-control-config.us-west-2.amazonaws.com", properties: { authSchemes: [{ name: "sigv4", signingName: "route53-recovery-control-config", signingRegion: "us-west-2" }] }, headers: m }, type: e }, { endpoint: { url: "https://route53-recovery-control-config.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
1
+ const v = "required", w = "fn", x = "argv", y = "ref", z = "authSchemes", A = "signingRegion";
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [v]: true, "default": false, "type": "Boolean" }, i = { [v]: false, "type": "String" }, j = { [y]: "Endpoint" }, k = { [w]: c, [x]: [{ [y]: "UseFIPS" }, true] }, l = { [w]: c, [x]: [{ [y]: "UseDualStack" }, true] }, m = {}, n = { [w]: "stringEquals", [x]: [{ [w]: "getAttr", [x]: [{ [y]: g }, "name"] }, "aws"] }, o = { [w]: c, [x]: [{ [y]: "UseFIPS" }, false] }, p = { [w]: c, [x]: [{ [y]: "UseDualStack" }, false] }, q = { [z]: [{ "name": "sigv4", [A]: "us-west-2" }] }, r = { [w]: "getAttr", [x]: [{ [y]: g }, "supportsFIPS"] }, s = { [w]: c, [x]: [true, { [w]: "getAttr", [x]: [{ [y]: g }, "supportsDualStack"] }] }, t = { [z]: [{ "name": "sigv4", [A]: "{PartitionResult#implicitGlobalRegion}" }] }, u = [{ [y]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { UseDualStack: h, UseFIPS: h, Endpoint: i, Region: i }, rules: [{ conditions: [{ [w]: b, [x]: [j] }], rules: [{ conditions: [k], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: [l], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [w]: b, [x]: u }], rules: [{ conditions: [{ [w]: "aws.partition", [x]: u, assign: g }], rules: [{ conditions: [n, o, p], endpoint: { url: "https://route53-recovery-control-config.us-west-2.amazonaws.com", properties: q, headers: m }, type: e }, { conditions: [n, o, l], endpoint: { url: "https://arc-recovery-control-config.us-west-2.api.aws", properties: q, headers: m }, type: e }, { conditions: [k, l], rules: [{ conditions: [{ [w]: c, [x]: [a, r] }, s], rules: [{ endpoint: { url: "https://route53-recovery-control-config-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", properties: t, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: [k, p], rules: [{ conditions: [{ [w]: c, [x]: [r, a] }], rules: [{ endpoint: { url: "https://route53-recovery-control-config-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}", properties: t, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: [o, l], rules: [{ conditions: [s], rules: [{ endpoint: { url: "https://route53-recovery-control-config.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", properties: t, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://route53-recovery-control-config.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}", properties: t, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
4
  export const ruleSet = _data;
@@ -1,4 +1,8 @@
1
1
  import { Route53RecoveryControlConfigServiceException as __BaseException } from "./Route53RecoveryControlConfigServiceException";
2
+ export const NetworkType = {
3
+ DUALSTACK: "DUALSTACK",
4
+ IPV4: "IPV4",
5
+ };
2
6
  export const Status = {
3
7
  DEPLOYED: "DEPLOYED",
4
8
  PENDING: "PENDING",
@@ -14,6 +14,7 @@ export const se_CreateClusterCommand = async (input, context) => {
14
14
  body = JSON.stringify(take(input, {
15
15
  ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
16
16
  ClusterName: [],
17
+ NetworkType: [],
17
18
  Tags: (_) => _json(_),
18
19
  }));
19
20
  b.m("POST").h(headers).b(body);
@@ -247,6 +248,20 @@ export const se_UntagResourceCommand = async (input, context) => {
247
248
  b.m("DELETE").h(headers).q(query).b(body);
248
249
  return b.build();
249
250
  };
251
+ export const se_UpdateClusterCommand = async (input, context) => {
252
+ const b = rb(input, context);
253
+ const headers = {
254
+ "content-type": "application/json",
255
+ };
256
+ b.bp("/cluster");
257
+ let body;
258
+ body = JSON.stringify(take(input, {
259
+ ClusterArn: [],
260
+ NetworkType: [],
261
+ }));
262
+ b.m("PUT").h(headers).b(body);
263
+ return b.build();
264
+ };
250
265
  export const se_UpdateControlPanelCommand = async (input, context) => {
251
266
  const b = rb(input, context);
252
267
  const headers = {
@@ -566,6 +581,20 @@ export const de_UntagResourceCommand = async (output, context) => {
566
581
  await collectBody(output.body, context);
567
582
  return contents;
568
583
  };
584
+ export const de_UpdateClusterCommand = async (output, context) => {
585
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
586
+ return de_CommandError(output, context);
587
+ }
588
+ const contents = map({
589
+ $metadata: deserializeMetadata(output),
590
+ });
591
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
592
+ const doc = take(data, {
593
+ Cluster: _json,
594
+ });
595
+ Object.assign(contents, doc);
596
+ return contents;
597
+ };
569
598
  export const de_UpdateControlPanelCommand = async (output, context) => {
570
599
  if (output.statusCode !== 200 && output.statusCode >= 300) {
571
600
  return de_CommandError(output, context);
@@ -20,6 +20,7 @@ import { ListSafetyRulesCommandInput, ListSafetyRulesCommandOutput } from "./com
20
20
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
21
21
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
22
22
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
23
+ import { UpdateClusterCommandInput, UpdateClusterCommandOutput } from "./commands/UpdateClusterCommand";
23
24
  import { UpdateControlPanelCommandInput, UpdateControlPanelCommandOutput } from "./commands/UpdateControlPanelCommand";
24
25
  import { UpdateRoutingControlCommandInput, UpdateRoutingControlCommandOutput } from "./commands/UpdateRoutingControlCommand";
25
26
  import { UpdateSafetyRuleCommandInput, UpdateSafetyRuleCommandOutput } from "./commands/UpdateSafetyRuleCommand";
@@ -154,6 +155,12 @@ export interface Route53RecoveryControlConfig {
154
155
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
155
156
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
156
157
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
158
+ /**
159
+ * @see {@link UpdateClusterCommand}
160
+ */
161
+ updateCluster(args: UpdateClusterCommandInput, options?: __HttpHandlerOptions): Promise<UpdateClusterCommandOutput>;
162
+ updateCluster(args: UpdateClusterCommandInput, cb: (err: any, data?: UpdateClusterCommandOutput) => void): void;
163
+ updateCluster(args: UpdateClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateClusterCommandOutput) => void): void;
157
164
  /**
158
165
  * @see {@link UpdateControlPanelCommand}
159
166
  */
@@ -28,6 +28,7 @@ import { ListSafetyRulesCommandInput, ListSafetyRulesCommandOutput } from "./com
28
28
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
29
29
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
30
30
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
31
+ import { UpdateClusterCommandInput, UpdateClusterCommandOutput } from "./commands/UpdateClusterCommand";
31
32
  import { UpdateControlPanelCommandInput, UpdateControlPanelCommandOutput } from "./commands/UpdateControlPanelCommand";
32
33
  import { UpdateRoutingControlCommandInput, UpdateRoutingControlCommandOutput } from "./commands/UpdateRoutingControlCommand";
33
34
  import { UpdateSafetyRuleCommandInput, UpdateSafetyRuleCommandOutput } from "./commands/UpdateSafetyRuleCommand";
@@ -37,11 +38,11 @@ export { __Client };
37
38
  /**
38
39
  * @public
39
40
  */
40
- export type ServiceInputTypes = CreateClusterCommandInput | CreateControlPanelCommandInput | CreateRoutingControlCommandInput | CreateSafetyRuleCommandInput | DeleteClusterCommandInput | DeleteControlPanelCommandInput | DeleteRoutingControlCommandInput | DeleteSafetyRuleCommandInput | DescribeClusterCommandInput | DescribeControlPanelCommandInput | DescribeRoutingControlCommandInput | DescribeSafetyRuleCommandInput | GetResourcePolicyCommandInput | ListAssociatedRoute53HealthChecksCommandInput | ListClustersCommandInput | ListControlPanelsCommandInput | ListRoutingControlsCommandInput | ListSafetyRulesCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateControlPanelCommandInput | UpdateRoutingControlCommandInput | UpdateSafetyRuleCommandInput;
41
+ export type ServiceInputTypes = CreateClusterCommandInput | CreateControlPanelCommandInput | CreateRoutingControlCommandInput | CreateSafetyRuleCommandInput | DeleteClusterCommandInput | DeleteControlPanelCommandInput | DeleteRoutingControlCommandInput | DeleteSafetyRuleCommandInput | DescribeClusterCommandInput | DescribeControlPanelCommandInput | DescribeRoutingControlCommandInput | DescribeSafetyRuleCommandInput | GetResourcePolicyCommandInput | ListAssociatedRoute53HealthChecksCommandInput | ListClustersCommandInput | ListControlPanelsCommandInput | ListRoutingControlsCommandInput | ListSafetyRulesCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateClusterCommandInput | UpdateControlPanelCommandInput | UpdateRoutingControlCommandInput | UpdateSafetyRuleCommandInput;
41
42
  /**
42
43
  * @public
43
44
  */
44
- export type ServiceOutputTypes = CreateClusterCommandOutput | CreateControlPanelCommandOutput | CreateRoutingControlCommandOutput | CreateSafetyRuleCommandOutput | DeleteClusterCommandOutput | DeleteControlPanelCommandOutput | DeleteRoutingControlCommandOutput | DeleteSafetyRuleCommandOutput | DescribeClusterCommandOutput | DescribeControlPanelCommandOutput | DescribeRoutingControlCommandOutput | DescribeSafetyRuleCommandOutput | GetResourcePolicyCommandOutput | ListAssociatedRoute53HealthChecksCommandOutput | ListClustersCommandOutput | ListControlPanelsCommandOutput | ListRoutingControlsCommandOutput | ListSafetyRulesCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateControlPanelCommandOutput | UpdateRoutingControlCommandOutput | UpdateSafetyRuleCommandOutput;
45
+ export type ServiceOutputTypes = CreateClusterCommandOutput | CreateControlPanelCommandOutput | CreateRoutingControlCommandOutput | CreateSafetyRuleCommandOutput | DeleteClusterCommandOutput | DeleteControlPanelCommandOutput | DeleteRoutingControlCommandOutput | DeleteSafetyRuleCommandOutput | DescribeClusterCommandOutput | DescribeControlPanelCommandOutput | DescribeRoutingControlCommandOutput | DescribeSafetyRuleCommandOutput | GetResourcePolicyCommandOutput | ListAssociatedRoute53HealthChecksCommandOutput | ListClustersCommandOutput | ListControlPanelsCommandOutput | ListRoutingControlsCommandOutput | ListSafetyRulesCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateClusterCommandOutput | UpdateControlPanelCommandOutput | UpdateRoutingControlCommandOutput | UpdateSafetyRuleCommandOutput;
45
46
  /**
46
47
  * @public
47
48
  */
@@ -40,6 +40,7 @@ declare const CreateClusterCommand_base: {
40
40
  * Tags: { // __mapOf__stringMin0Max256PatternS
41
41
  * "<keys>": "STRING_VALUE",
42
42
  * },
43
+ * NetworkType: "IPV4" || "DUALSTACK",
43
44
  * };
44
45
  * const command = new CreateClusterCommand(input);
45
46
  * const response = await client.send(command);
@@ -55,6 +56,7 @@ declare const CreateClusterCommand_base: {
55
56
  * // Name: "STRING_VALUE",
56
57
  * // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION",
57
58
  * // Owner: "STRING_VALUE",
59
+ * // NetworkType: "IPV4" || "DUALSTACK",
58
60
  * // },
59
61
  * // };
60
62
  *
@@ -51,6 +51,7 @@ declare const DescribeClusterCommand_base: {
51
51
  * // Name: "STRING_VALUE",
52
52
  * // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION",
53
53
  * // Owner: "STRING_VALUE",
54
+ * // NetworkType: "IPV4" || "DUALSTACK",
54
55
  * // },
55
56
  * // };
56
57
  *
@@ -53,6 +53,7 @@ declare const ListClustersCommand_base: {
53
53
  * // Name: "STRING_VALUE",
54
54
  * // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION",
55
55
  * // Owner: "STRING_VALUE",
56
+ * // NetworkType: "IPV4" || "DUALSTACK",
56
57
  * // },
57
58
  * // ],
58
59
  * // NextToken: "STRING_VALUE",
@@ -0,0 +1,102 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { UpdateClusterRequest, UpdateClusterResponse } from "../models/models_0";
4
+ import { Route53RecoveryControlConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53RecoveryControlConfigClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateClusterCommand}.
14
+ */
15
+ export interface UpdateClusterCommandInput extends UpdateClusterRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateClusterCommand}.
21
+ */
22
+ export interface UpdateClusterCommandOutput extends UpdateClusterResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateClusterCommand_base: {
25
+ new (input: UpdateClusterCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateClusterCommandInput, UpdateClusterCommandOutput, Route53RecoveryControlConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdateClusterCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateClusterCommandInput, UpdateClusterCommandOutput, Route53RecoveryControlConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates an existing cluster. You can only update the network type of a cluster.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { Route53RecoveryControlConfigClient, UpdateClusterCommand } from "@aws-sdk/client-route53-recovery-control-config"; // ES Modules import
35
+ * // const { Route53RecoveryControlConfigClient, UpdateClusterCommand } = require("@aws-sdk/client-route53-recovery-control-config"); // CommonJS import
36
+ * const client = new Route53RecoveryControlConfigClient(config);
37
+ * const input = { // UpdateClusterRequest
38
+ * ClusterArn: "STRING_VALUE", // required
39
+ * NetworkType: "IPV4" || "DUALSTACK", // required
40
+ * };
41
+ * const command = new UpdateClusterCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // UpdateClusterResponse
44
+ * // Cluster: { // Cluster
45
+ * // ClusterArn: "STRING_VALUE",
46
+ * // ClusterEndpoints: [ // __listOfClusterEndpoint
47
+ * // { // ClusterEndpoint
48
+ * // Endpoint: "STRING_VALUE",
49
+ * // Region: "STRING_VALUE",
50
+ * // },
51
+ * // ],
52
+ * // Name: "STRING_VALUE",
53
+ * // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION",
54
+ * // Owner: "STRING_VALUE",
55
+ * // NetworkType: "IPV4" || "DUALSTACK",
56
+ * // },
57
+ * // };
58
+ *
59
+ * ```
60
+ *
61
+ * @param UpdateClusterCommandInput - {@link UpdateClusterCommandInput}
62
+ * @returns {@link UpdateClusterCommandOutput}
63
+ * @see {@link UpdateClusterCommandInput} for command's `input` shape.
64
+ * @see {@link UpdateClusterCommandOutput} for command's `response` shape.
65
+ * @see {@link Route53RecoveryControlConfigClientResolvedConfig | config} for Route53RecoveryControlConfigClient's `config` shape.
66
+ *
67
+ * @throws {@link AccessDeniedException} (client fault)
68
+ * <p>403 response - You do not have sufficient access to perform this action.</p>
69
+ *
70
+ * @throws {@link ConflictException} (client fault)
71
+ * <p>409 response - ConflictException. You might be using a predefined variable.</p>
72
+ *
73
+ * @throws {@link InternalServerException} (server fault)
74
+ * <p>500 response - InternalServiceError. Temporary service error. Retry the request.</p>
75
+ *
76
+ * @throws {@link ResourceNotFoundException} (client fault)
77
+ * <p>404 response - MalformedQueryString. The query string contains a syntax error or resource not found.</p>
78
+ *
79
+ * @throws {@link ThrottlingException} (client fault)
80
+ * <p>429 response - LimitExceededException or TooManyRequestsException.</p>
81
+ *
82
+ * @throws {@link ValidationException} (client fault)
83
+ * <p>400 response - Multiple causes. For example, you might have a malformed query string and input parameter might be out of range, or you might have used parameters together incorrectly.</p>
84
+ *
85
+ * @throws {@link Route53RecoveryControlConfigServiceException}
86
+ * <p>Base exception class for all service exceptions from Route53RecoveryControlConfig service.</p>
87
+ *
88
+ * @public
89
+ */
90
+ export declare class UpdateClusterCommand extends UpdateClusterCommand_base {
91
+ /** @internal type navigation helper, not in runtime. */
92
+ protected static __types: {
93
+ api: {
94
+ input: UpdateClusterRequest;
95
+ output: UpdateClusterResponse;
96
+ };
97
+ sdk: {
98
+ input: UpdateClusterCommandInput;
99
+ output: UpdateClusterCommandOutput;
100
+ };
101
+ };
102
+ }
@@ -19,6 +19,7 @@ export * from "./ListSafetyRulesCommand";
19
19
  export * from "./ListTagsForResourceCommand";
20
20
  export * from "./TagResourceCommand";
21
21
  export * from "./UntagResourceCommand";
22
+ export * from "./UpdateClusterCommand";
22
23
  export * from "./UpdateControlPanelCommand";
23
24
  export * from "./UpdateRoutingControlCommand";
24
25
  export * from "./UpdateSafetyRuleCommand";
@@ -3,10 +3,10 @@ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provi
3
3
  * @public
4
4
  */
5
5
  export interface ClientInputEndpointParameters {
6
- region?: string | Provider<string>;
7
6
  useDualstackEndpoint?: boolean | Provider<boolean>;
8
7
  useFipsEndpoint?: boolean | Provider<boolean>;
9
8
  endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
9
+ region?: string | Provider<string>;
10
10
  }
11
11
  export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
12
12
  defaultSigningName: string;
@@ -33,8 +33,8 @@ export declare const commonParams: {
33
33
  };
34
34
  };
35
35
  export interface EndpointParameters extends __EndpointParameters {
36
- Region?: string;
37
36
  UseDualStack?: boolean;
38
37
  UseFIPS?: boolean;
39
38
  Endpoint?: string;
39
+ Region?: string;
40
40
  }
@@ -16,6 +16,18 @@ export interface ClusterEndpoint {
16
16
  */
17
17
  Region?: string | undefined;
18
18
  }
19
+ /**
20
+ * @public
21
+ * @enum
22
+ */
23
+ export declare const NetworkType: {
24
+ readonly DUALSTACK: "DUALSTACK";
25
+ readonly IPV4: "IPV4";
26
+ };
27
+ /**
28
+ * @public
29
+ */
30
+ export type NetworkType = (typeof NetworkType)[keyof typeof NetworkType];
19
31
  /**
20
32
  * @public
21
33
  * @enum
@@ -59,6 +71,11 @@ export interface Cluster {
59
71
  * @public
60
72
  */
61
73
  Owner?: string | undefined;
74
+ /**
75
+ * <p>The network type of the cluster. NetworkType can be one of the following: IPV4, DUALSTACK.</p>
76
+ * @public
77
+ */
78
+ NetworkType?: NetworkType | undefined;
62
79
  }
63
80
  /**
64
81
  * <p>A control panel represents a group of routing controls that can be changed together in a single transaction.</p>
@@ -346,6 +363,11 @@ export interface CreateClusterRequest {
346
363
  * @public
347
364
  */
348
365
  Tags?: Record<string, string> | undefined;
366
+ /**
367
+ * <p>The network type of the cluster. NetworkType can be one of the following: IPV4, DUALSTACK.</p>
368
+ * @public
369
+ */
370
+ NetworkType?: NetworkType | undefined;
349
371
  }
350
372
  /**
351
373
  * @public
@@ -1019,6 +1041,32 @@ export interface UntagResourceRequest {
1019
1041
  */
1020
1042
  export interface UntagResourceResponse {
1021
1043
  }
1044
+ /**
1045
+ * <p>The details of the cluster that you're updating.</p>
1046
+ * @public
1047
+ */
1048
+ export interface UpdateClusterRequest {
1049
+ /**
1050
+ * <p>The Amazon Resource Name (ARN) of the cluster.</p>
1051
+ * @public
1052
+ */
1053
+ ClusterArn: string | undefined;
1054
+ /**
1055
+ * <p>The network type of the cluster. NetworkType can be one of the following: IPV4, DUALSTACK.</p>
1056
+ * @public
1057
+ */
1058
+ NetworkType: NetworkType | undefined;
1059
+ }
1060
+ /**
1061
+ * @public
1062
+ */
1063
+ export interface UpdateClusterResponse {
1064
+ /**
1065
+ * <p>The cluster that was updated.</p>
1066
+ * @public
1067
+ */
1068
+ Cluster?: Cluster | undefined;
1069
+ }
1022
1070
  /**
1023
1071
  * <p>The details of the control panel that you're updating.</p>
1024
1072
  * @public
@@ -21,6 +21,7 @@ import { ListSafetyRulesCommandInput, ListSafetyRulesCommandOutput } from "../co
21
21
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
22
22
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
23
23
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
24
+ import { UpdateClusterCommandInput, UpdateClusterCommandOutput } from "../commands/UpdateClusterCommand";
24
25
  import { UpdateControlPanelCommandInput, UpdateControlPanelCommandOutput } from "../commands/UpdateControlPanelCommand";
25
26
  import { UpdateRoutingControlCommandInput, UpdateRoutingControlCommandOutput } from "../commands/UpdateRoutingControlCommand";
26
27
  import { UpdateSafetyRuleCommandInput, UpdateSafetyRuleCommandOutput } from "../commands/UpdateSafetyRuleCommand";
@@ -108,6 +109,10 @@ export declare const se_TagResourceCommand: (input: TagResourceCommandInput, con
108
109
  * serializeAws_restJson1UntagResourceCommand
109
110
  */
110
111
  export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
112
+ /**
113
+ * serializeAws_restJson1UpdateClusterCommand
114
+ */
115
+ export declare const se_UpdateClusterCommand: (input: UpdateClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
111
116
  /**
112
117
  * serializeAws_restJson1UpdateControlPanelCommand
113
118
  */
@@ -204,6 +209,10 @@ export declare const de_TagResourceCommand: (output: __HttpResponse, context: __
204
209
  * deserializeAws_restJson1UntagResourceCommand
205
210
  */
206
211
  export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
212
+ /**
213
+ * deserializeAws_restJson1UpdateClusterCommand
214
+ */
215
+ export declare const de_UpdateClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateClusterCommandOutput>;
207
216
  /**
208
217
  * deserializeAws_restJson1UpdateControlPanelCommand
209
218
  */
@@ -83,6 +83,10 @@ import {
83
83
  UntagResourceCommandInput,
84
84
  UntagResourceCommandOutput,
85
85
  } from "./commands/UntagResourceCommand";
86
+ import {
87
+ UpdateClusterCommandInput,
88
+ UpdateClusterCommandOutput,
89
+ } from "./commands/UpdateClusterCommand";
86
90
  import {
87
91
  UpdateControlPanelCommandInput,
88
92
  UpdateControlPanelCommandOutput,
@@ -379,6 +383,19 @@ export interface Route53RecoveryControlConfig {
379
383
  options: __HttpHandlerOptions,
380
384
  cb: (err: any, data?: UntagResourceCommandOutput) => void
381
385
  ): void;
386
+ updateCluster(
387
+ args: UpdateClusterCommandInput,
388
+ options?: __HttpHandlerOptions
389
+ ): Promise<UpdateClusterCommandOutput>;
390
+ updateCluster(
391
+ args: UpdateClusterCommandInput,
392
+ cb: (err: any, data?: UpdateClusterCommandOutput) => void
393
+ ): void;
394
+ updateCluster(
395
+ args: UpdateClusterCommandInput,
396
+ options: __HttpHandlerOptions,
397
+ cb: (err: any, data?: UpdateClusterCommandOutput) => void
398
+ ): void;
382
399
  updateControlPanel(
383
400
  args: UpdateControlPanelCommandInput,
384
401
  options?: __HttpHandlerOptions
@@ -129,6 +129,10 @@ import {
129
129
  UntagResourceCommandInput,
130
130
  UntagResourceCommandOutput,
131
131
  } from "./commands/UntagResourceCommand";
132
+ import {
133
+ UpdateClusterCommandInput,
134
+ UpdateClusterCommandOutput,
135
+ } from "./commands/UpdateClusterCommand";
132
136
  import {
133
137
  UpdateControlPanelCommandInput,
134
138
  UpdateControlPanelCommandOutput,
@@ -170,6 +174,7 @@ export type ServiceInputTypes =
170
174
  | ListTagsForResourceCommandInput
171
175
  | TagResourceCommandInput
172
176
  | UntagResourceCommandInput
177
+ | UpdateClusterCommandInput
173
178
  | UpdateControlPanelCommandInput
174
179
  | UpdateRoutingControlCommandInput
175
180
  | UpdateSafetyRuleCommandInput;
@@ -195,6 +200,7 @@ export type ServiceOutputTypes =
195
200
  | ListTagsForResourceCommandOutput
196
201
  | TagResourceCommandOutput
197
202
  | UntagResourceCommandOutput
203
+ | UpdateClusterCommandOutput
198
204
  | UpdateControlPanelCommandOutput
199
205
  | UpdateRoutingControlCommandOutput
200
206
  | UpdateSafetyRuleCommandOutput;
@@ -0,0 +1,50 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ UpdateClusterRequest,
5
+ UpdateClusterResponse,
6
+ } from "../models/models_0";
7
+ import {
8
+ Route53RecoveryControlConfigClientResolvedConfig,
9
+ ServiceInputTypes,
10
+ ServiceOutputTypes,
11
+ } from "../Route53RecoveryControlConfigClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface UpdateClusterCommandInput extends UpdateClusterRequest {}
15
+ export interface UpdateClusterCommandOutput
16
+ extends UpdateClusterResponse,
17
+ __MetadataBearer {}
18
+ declare const UpdateClusterCommand_base: {
19
+ new (
20
+ input: UpdateClusterCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ UpdateClusterCommandInput,
23
+ UpdateClusterCommandOutput,
24
+ Route53RecoveryControlConfigClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ __0_0: UpdateClusterCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ UpdateClusterCommandInput,
32
+ UpdateClusterCommandOutput,
33
+ Route53RecoveryControlConfigClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class UpdateClusterCommand extends UpdateClusterCommand_base {
40
+ protected static __types: {
41
+ api: {
42
+ input: UpdateClusterRequest;
43
+ output: UpdateClusterResponse;
44
+ };
45
+ sdk: {
46
+ input: UpdateClusterCommandInput;
47
+ output: UpdateClusterCommandOutput;
48
+ };
49
+ };
50
+ }
@@ -19,6 +19,7 @@ export * from "./ListSafetyRulesCommand";
19
19
  export * from "./ListTagsForResourceCommand";
20
20
  export * from "./TagResourceCommand";
21
21
  export * from "./UntagResourceCommand";
22
+ export * from "./UpdateClusterCommand";
22
23
  export * from "./UpdateControlPanelCommand";
23
24
  export * from "./UpdateRoutingControlCommand";
24
25
  export * from "./UpdateSafetyRuleCommand";
@@ -5,7 +5,6 @@ import {
5
5
  Provider,
6
6
  } from "@smithy/types";
7
7
  export interface ClientInputEndpointParameters {
8
- region?: string | Provider<string>;
9
8
  useDualstackEndpoint?: boolean | Provider<boolean>;
10
9
  useFipsEndpoint?: boolean | Provider<boolean>;
11
10
  endpoint?:
@@ -15,6 +14,7 @@ export interface ClientInputEndpointParameters {
15
14
  | Provider<Endpoint>
16
15
  | EndpointV2
17
16
  | Provider<EndpointV2>;
17
+ region?: string | Provider<string>;
18
18
  }
19
19
  export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
20
20
  defaultSigningName: string;
@@ -44,8 +44,8 @@ export declare const commonParams: {
44
44
  };
45
45
  };
46
46
  export interface EndpointParameters extends __EndpointParameters {
47
- Region?: string;
48
47
  UseDualStack?: boolean;
49
48
  UseFIPS?: boolean;
50
49
  Endpoint?: string;
50
+ Region?: string;
51
51
  }
@@ -4,6 +4,11 @@ export interface ClusterEndpoint {
4
4
  Endpoint?: string | undefined;
5
5
  Region?: string | undefined;
6
6
  }
7
+ export declare const NetworkType: {
8
+ readonly DUALSTACK: "DUALSTACK";
9
+ readonly IPV4: "IPV4";
10
+ };
11
+ export type NetworkType = (typeof NetworkType)[keyof typeof NetworkType];
7
12
  export declare const Status: {
8
13
  readonly DEPLOYED: "DEPLOYED";
9
14
  readonly PENDING: "PENDING";
@@ -16,6 +21,7 @@ export interface Cluster {
16
21
  Name?: string | undefined;
17
22
  Status?: Status | undefined;
18
23
  Owner?: string | undefined;
24
+ NetworkType?: NetworkType | undefined;
19
25
  }
20
26
  export interface ControlPanel {
21
27
  ClusterArn?: string | undefined;
@@ -92,6 +98,7 @@ export interface CreateClusterRequest {
92
98
  ClientToken?: string | undefined;
93
99
  ClusterName: string | undefined;
94
100
  Tags?: Record<string, string> | undefined;
101
+ NetworkType?: NetworkType | undefined;
95
102
  }
96
103
  export interface CreateClusterResponse {
97
104
  Cluster?: Cluster | undefined;
@@ -291,6 +298,13 @@ export interface UntagResourceRequest {
291
298
  TagKeys: string[] | undefined;
292
299
  }
293
300
  export interface UntagResourceResponse {}
301
+ export interface UpdateClusterRequest {
302
+ ClusterArn: string | undefined;
303
+ NetworkType: NetworkType | undefined;
304
+ }
305
+ export interface UpdateClusterResponse {
306
+ Cluster?: Cluster | undefined;
307
+ }
294
308
  export interface UpdateControlPanelRequest {
295
309
  ControlPanelArn: string | undefined;
296
310
  ControlPanelName: string | undefined;
@@ -87,6 +87,10 @@ import {
87
87
  UntagResourceCommandInput,
88
88
  UntagResourceCommandOutput,
89
89
  } from "../commands/UntagResourceCommand";
90
+ import {
91
+ UpdateClusterCommandInput,
92
+ UpdateClusterCommandOutput,
93
+ } from "../commands/UpdateClusterCommand";
90
94
  import {
91
95
  UpdateControlPanelCommandInput,
92
96
  UpdateControlPanelCommandOutput,
@@ -183,6 +187,10 @@ export declare const se_UntagResourceCommand: (
183
187
  input: UntagResourceCommandInput,
184
188
  context: __SerdeContext
185
189
  ) => Promise<__HttpRequest>;
190
+ export declare const se_UpdateClusterCommand: (
191
+ input: UpdateClusterCommandInput,
192
+ context: __SerdeContext
193
+ ) => Promise<__HttpRequest>;
186
194
  export declare const se_UpdateControlPanelCommand: (
187
195
  input: UpdateControlPanelCommandInput,
188
196
  context: __SerdeContext
@@ -279,6 +287,10 @@ export declare const de_UntagResourceCommand: (
279
287
  output: __HttpResponse,
280
288
  context: __SerdeContext
281
289
  ) => Promise<UntagResourceCommandOutput>;
290
+ export declare const de_UpdateClusterCommand: (
291
+ output: __HttpResponse,
292
+ context: __SerdeContext
293
+ ) => Promise<UpdateClusterCommandOutput>;
282
294
  export declare const de_UpdateControlPanelCommand: (
283
295
  output: __HttpResponse,
284
296
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-route53-recovery-control-config",
3
3
  "description": "AWS SDK for JavaScript Route53 Recovery Control Config Client for Node.js, Browser and React Native",
4
- "version": "3.758.0",
4
+ "version": "3.773.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-route53-recovery-control-config",
@@ -21,10 +21,10 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.758.0",
24
- "@aws-sdk/credential-provider-node": "3.758.0",
24
+ "@aws-sdk/credential-provider-node": "3.772.0",
25
25
  "@aws-sdk/middleware-host-header": "3.734.0",
26
26
  "@aws-sdk/middleware-logger": "3.734.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.734.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.772.0",
28
28
  "@aws-sdk/middleware-user-agent": "3.758.0",
29
29
  "@aws-sdk/region-config-resolver": "3.734.0",
30
30
  "@aws-sdk/types": "3.734.0",