@aws-sdk/client-route53-recovery-cluster 3.55.0 → 3.61.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +18 -17
  3. package/dist-cjs/Route53RecoveryCluster.js +15 -0
  4. package/dist-cjs/commands/ListRoutingControlsCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +1 -0
  6. package/dist-cjs/index.js +1 -0
  7. package/dist-cjs/models/models_0.js +36 -1
  8. package/dist-cjs/pagination/Interfaces.js +2 -0
  9. package/dist-cjs/pagination/ListRoutingControlsPaginator.js +35 -0
  10. package/dist-cjs/pagination/index.js +5 -0
  11. package/dist-cjs/protocols/Aws_json1_0.js +120 -1
  12. package/dist-es/Route53RecoveryCluster.js +15 -0
  13. package/dist-es/commands/ListRoutingControlsCommand.js +39 -0
  14. package/dist-es/commands/index.js +1 -0
  15. package/dist-es/index.js +1 -0
  16. package/dist-es/models/models_0.js +28 -0
  17. package/dist-es/pagination/Interfaces.js +1 -0
  18. package/dist-es/pagination/ListRoutingControlsPaginator.js +74 -0
  19. package/dist-es/pagination/index.js +2 -0
  20. package/dist-es/protocols/Aws_json1_0.js +145 -9
  21. package/dist-types/Route53RecoveryCluster.d.ts +70 -30
  22. package/dist-types/Route53RecoveryClusterClient.d.ts +21 -19
  23. package/dist-types/commands/GetRoutingControlStateCommand.d.ts +9 -8
  24. package/dist-types/commands/ListRoutingControlsCommand.d.ts +66 -0
  25. package/dist-types/commands/UpdateRoutingControlStateCommand.d.ts +3 -3
  26. package/dist-types/commands/UpdateRoutingControlStatesCommand.d.ts +2 -2
  27. package/dist-types/commands/index.d.ts +1 -0
  28. package/dist-types/index.d.ts +1 -0
  29. package/dist-types/models/models_0.d.ts +109 -8
  30. package/dist-types/pagination/Interfaces.d.ts +6 -0
  31. package/dist-types/pagination/ListRoutingControlsPaginator.d.ts +4 -0
  32. package/dist-types/pagination/index.d.ts +2 -0
  33. package/dist-types/protocols/Aws_json1_0.d.ts +3 -0
  34. package/dist-types/ts3.4/Route53RecoveryCluster.d.ts +5 -0
  35. package/dist-types/ts3.4/Route53RecoveryClusterClient.d.ts +3 -2
  36. package/dist-types/ts3.4/commands/ListRoutingControlsCommand.d.ts +17 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  38. package/dist-types/ts3.4/index.d.ts +1 -0
  39. package/dist-types/ts3.4/models/models_0.d.ts +56 -0
  40. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  41. package/dist-types/ts3.4/pagination/ListRoutingControlsPaginator.d.ts +4 -0
  42. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  43. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +3 -0
  44. package/package.json +18 -18
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListRoutingControlsCommand, } from "../commands/ListRoutingControlsCommand";
3
+ import { Route53RecoveryCluster } from "../Route53RecoveryCluster";
4
+ import { Route53RecoveryClusterClient } from "../Route53RecoveryClusterClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListRoutingControlsCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listRoutingControls.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListRoutingControls(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListRoutingControls_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ input["MaxResults"] = config.pageSize;
50
+ if (!(config.client instanceof Route53RecoveryCluster)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof Route53RecoveryClusterClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected Route53RecoveryCluster | Route53RecoveryClusterClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.NextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListRoutingControlsPaginator";
@@ -1,7 +1,7 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
3
  import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client";
4
- import { AccessDeniedException, ConflictException, EndpointTemporarilyUnavailableException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
4
+ import { AccessDeniedException, ConflictException, EndpointTemporarilyUnavailableException, InternalServerException, ResourceNotFoundException, ServiceLimitExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  import { Route53RecoveryClusterServiceException as __BaseException } from "../models/Route53RecoveryClusterServiceException";
6
6
  export var serializeAws_json1_0GetRoutingControlStateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
7
7
  var headers, body;
@@ -14,6 +14,17 @@ export var serializeAws_json1_0GetRoutingControlStateCommand = function (input,
14
14
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
15
15
  });
16
16
  }); };
17
+ export var serializeAws_json1_0ListRoutingControlsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
18
+ var headers, body;
19
+ return __generator(this, function (_a) {
20
+ headers = {
21
+ "content-type": "application/x-amz-json-1.0",
22
+ "x-amz-target": "ToggleCustomerAPI.ListRoutingControls",
23
+ };
24
+ body = JSON.stringify(serializeAws_json1_0ListRoutingControlsRequest(input, context));
25
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
26
+ });
27
+ }); };
17
28
  export var serializeAws_json1_0UpdateRoutingControlStateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
18
29
  var headers, body;
19
30
  return __generator(this, function (_a) {
@@ -106,6 +117,76 @@ var deserializeAws_json1_0GetRoutingControlStateCommandError = function (output,
106
117
  }
107
118
  });
108
119
  }); };
120
+ export var deserializeAws_json1_0ListRoutingControlsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
121
+ var data, contents, response;
122
+ return __generator(this, function (_a) {
123
+ switch (_a.label) {
124
+ case 0:
125
+ if (output.statusCode >= 300) {
126
+ return [2, deserializeAws_json1_0ListRoutingControlsCommandError(output, context)];
127
+ }
128
+ return [4, parseBody(output.body, context)];
129
+ case 1:
130
+ data = _a.sent();
131
+ contents = {};
132
+ contents = deserializeAws_json1_0ListRoutingControlsResponse(data, context);
133
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
134
+ return [2, Promise.resolve(response)];
135
+ }
136
+ });
137
+ }); };
138
+ var deserializeAws_json1_0ListRoutingControlsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
139
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
140
+ var _c;
141
+ return __generator(this, function (_d) {
142
+ switch (_d.label) {
143
+ case 0:
144
+ _a = [__assign({}, output)];
145
+ _c = {};
146
+ return [4, parseBody(output.body, context)];
147
+ case 1:
148
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
149
+ errorCode = "UnknownError";
150
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
151
+ _b = errorCode;
152
+ switch (_b) {
153
+ case "AccessDeniedException": return [3, 2];
154
+ case "com.amazonaws.route53recoverycluster#AccessDeniedException": return [3, 2];
155
+ case "EndpointTemporarilyUnavailableException": return [3, 4];
156
+ case "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException": return [3, 4];
157
+ case "InternalServerException": return [3, 6];
158
+ case "com.amazonaws.route53recoverycluster#InternalServerException": return [3, 6];
159
+ case "ResourceNotFoundException": return [3, 8];
160
+ case "com.amazonaws.route53recoverycluster#ResourceNotFoundException": return [3, 8];
161
+ case "ThrottlingException": return [3, 10];
162
+ case "com.amazonaws.route53recoverycluster#ThrottlingException": return [3, 10];
163
+ case "ValidationException": return [3, 12];
164
+ case "com.amazonaws.route53recoverycluster#ValidationException": return [3, 12];
165
+ }
166
+ return [3, 14];
167
+ case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
168
+ case 3: throw _d.sent();
169
+ case 4: return [4, deserializeAws_json1_0EndpointTemporarilyUnavailableExceptionResponse(parsedOutput, context)];
170
+ case 5: throw _d.sent();
171
+ case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
172
+ case 7: throw _d.sent();
173
+ case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
174
+ case 9: throw _d.sent();
175
+ case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
176
+ case 11: throw _d.sent();
177
+ case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
178
+ case 13: throw _d.sent();
179
+ case 14:
180
+ parsedBody = parsedOutput.body;
181
+ response = new __BaseException({
182
+ name: parsedBody.code || parsedBody.Code || errorCode,
183
+ $fault: "client",
184
+ $metadata: deserializeMetadata(output),
185
+ });
186
+ throw __decorateServiceException(response, parsedBody);
187
+ }
188
+ });
189
+ }); };
109
190
  export var deserializeAws_json1_0UpdateRoutingControlStateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
110
191
  var data, contents, response;
111
192
  return __generator(this, function (_a) {
@@ -223,12 +304,14 @@ var deserializeAws_json1_0UpdateRoutingControlStatesCommandError = function (out
223
304
  case "com.amazonaws.route53recoverycluster#InternalServerException": return [3, 8];
224
305
  case "ResourceNotFoundException": return [3, 10];
225
306
  case "com.amazonaws.route53recoverycluster#ResourceNotFoundException": return [3, 10];
226
- case "ThrottlingException": return [3, 12];
227
- case "com.amazonaws.route53recoverycluster#ThrottlingException": return [3, 12];
228
- case "ValidationException": return [3, 14];
229
- case "com.amazonaws.route53recoverycluster#ValidationException": return [3, 14];
307
+ case "ServiceLimitExceededException": return [3, 12];
308
+ case "com.amazonaws.route53recoverycluster#ServiceLimitExceededException": return [3, 12];
309
+ case "ThrottlingException": return [3, 14];
310
+ case "com.amazonaws.route53recoverycluster#ThrottlingException": return [3, 14];
311
+ case "ValidationException": return [3, 16];
312
+ case "com.amazonaws.route53recoverycluster#ValidationException": return [3, 16];
230
313
  }
231
- return [3, 16];
314
+ return [3, 18];
232
315
  case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
233
316
  case 3: throw _d.sent();
234
317
  case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
@@ -239,11 +322,13 @@ var deserializeAws_json1_0UpdateRoutingControlStatesCommandError = function (out
239
322
  case 9: throw _d.sent();
240
323
  case 10: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
241
324
  case 11: throw _d.sent();
242
- case 12: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
325
+ case 12: return [4, deserializeAws_json1_0ServiceLimitExceededExceptionResponse(parsedOutput, context)];
243
326
  case 13: throw _d.sent();
244
- case 14: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
327
+ case 14: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
245
328
  case 15: throw _d.sent();
246
- case 16:
329
+ case 16: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
330
+ case 17: throw _d.sent();
331
+ case 18:
247
332
  parsedBody = parsedOutput.body;
248
333
  response = new __BaseException({
249
334
  name: parsedBody.code || parsedBody.Code || errorCode,
@@ -299,6 +384,15 @@ var deserializeAws_json1_0ResourceNotFoundExceptionResponse = function (parsedOu
299
384
  return [2, __decorateServiceException(exception, body)];
300
385
  });
301
386
  }); };
387
+ var deserializeAws_json1_0ServiceLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
388
+ var body, deserialized, exception;
389
+ return __generator(this, function (_a) {
390
+ body = parsedOutput.body;
391
+ deserialized = deserializeAws_json1_0ServiceLimitExceededException(body, context);
392
+ exception = new ServiceLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
393
+ return [2, __decorateServiceException(exception, body)];
394
+ });
395
+ }); };
302
396
  var deserializeAws_json1_0ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
303
397
  var body, deserialized, exception;
304
398
  return __generator(this, function (_a) {
@@ -331,6 +425,10 @@ var serializeAws_json1_0GetRoutingControlStateRequest = function (input, context
331
425
  return __assign({}, (input.RoutingControlArn !== undefined &&
332
426
  input.RoutingControlArn !== null && { RoutingControlArn: input.RoutingControlArn }));
333
427
  };
428
+ var serializeAws_json1_0ListRoutingControlsRequest = function (input, context) {
429
+ return __assign(__assign(__assign({}, (input.ControlPanelArn !== undefined &&
430
+ input.ControlPanelArn !== null && { ControlPanelArn: input.ControlPanelArn })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
431
+ };
334
432
  var serializeAws_json1_0UpdateRoutingControlStateEntries = function (input, context) {
335
433
  return input
336
434
  .filter(function (e) { return e != null; })
@@ -383,6 +481,7 @@ var deserializeAws_json1_0EndpointTemporarilyUnavailableException = function (ou
383
481
  var deserializeAws_json1_0GetRoutingControlStateResponse = function (output, context) {
384
482
  return {
385
483
  RoutingControlArn: __expectString(output.RoutingControlArn),
484
+ RoutingControlName: __expectString(output.RoutingControlName),
386
485
  RoutingControlState: __expectString(output.RoutingControlState),
387
486
  };
388
487
  };
@@ -392,6 +491,14 @@ var deserializeAws_json1_0InternalServerException = function (output, context) {
392
491
  retryAfterSeconds: __expectInt32(output.retryAfterSeconds),
393
492
  };
394
493
  };
494
+ var deserializeAws_json1_0ListRoutingControlsResponse = function (output, context) {
495
+ return {
496
+ NextToken: __expectString(output.NextToken),
497
+ RoutingControls: output.RoutingControls !== undefined && output.RoutingControls !== null
498
+ ? deserializeAws_json1_0RoutingControls(output.RoutingControls, context)
499
+ : undefined,
500
+ };
501
+ };
395
502
  var deserializeAws_json1_0ResourceNotFoundException = function (output, context) {
396
503
  return {
397
504
  message: __expectString(output.message),
@@ -399,6 +506,35 @@ var deserializeAws_json1_0ResourceNotFoundException = function (output, context)
399
506
  resourceType: __expectString(output.resourceType),
400
507
  };
401
508
  };
509
+ var deserializeAws_json1_0RoutingControl = function (output, context) {
510
+ return {
511
+ ControlPanelArn: __expectString(output.ControlPanelArn),
512
+ ControlPanelName: __expectString(output.ControlPanelName),
513
+ RoutingControlArn: __expectString(output.RoutingControlArn),
514
+ RoutingControlName: __expectString(output.RoutingControlName),
515
+ RoutingControlState: __expectString(output.RoutingControlState),
516
+ };
517
+ };
518
+ var deserializeAws_json1_0RoutingControls = function (output, context) {
519
+ var retVal = (output || [])
520
+ .filter(function (e) { return e != null; })
521
+ .map(function (entry) {
522
+ if (entry === null) {
523
+ return null;
524
+ }
525
+ return deserializeAws_json1_0RoutingControl(entry, context);
526
+ });
527
+ return retVal;
528
+ };
529
+ var deserializeAws_json1_0ServiceLimitExceededException = function (output, context) {
530
+ return {
531
+ limitCode: __expectString(output.limitCode),
532
+ message: __expectString(output.message),
533
+ resourceId: __expectString(output.resourceId),
534
+ resourceType: __expectString(output.resourceType),
535
+ serviceCode: __expectString(output.serviceCode),
536
+ };
537
+ };
402
538
  var deserializeAws_json1_0ThrottlingException = function (output, context) {
403
539
  return {
404
540
  message: __expectString(output.message),
@@ -1,62 +1,64 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { GetRoutingControlStateCommandInput, GetRoutingControlStateCommandOutput } from "./commands/GetRoutingControlStateCommand";
3
+ import { ListRoutingControlsCommandInput, ListRoutingControlsCommandOutput } from "./commands/ListRoutingControlsCommand";
3
4
  import { UpdateRoutingControlStateCommandInput, UpdateRoutingControlStateCommandOutput } from "./commands/UpdateRoutingControlStateCommand";
4
5
  import { UpdateRoutingControlStatesCommandInput, UpdateRoutingControlStatesCommandOutput } from "./commands/UpdateRoutingControlStatesCommand";
5
6
  import { Route53RecoveryClusterClient } from "./Route53RecoveryClusterClient";
6
7
  /**
7
8
  * <p>Welcome to the Routing Control (Recovery Cluster) API Reference Guide for Amazon Route 53 Application Recovery Controller.</p>
8
- * <p>With Amazon Route 53 Application Recovery Controller, you can use routing control with extreme reliability to
9
+ * <p>With Route 53 ARC, you can use routing control with extreme reliability to
9
10
  * recover applications by rerouting traffic across
10
- * Availability Zones or AWS Regions. Routing controls are simple on/off switches hosted
11
- * on a highly available cluster in Application Recovery Controller. A cluster provides a set of five redundant Regional endpoints against which you
11
+ * Availability Zones or Amazon Web Services Regions. Routing controls are simple on/off switches hosted
12
+ * on a highly available cluster in Route 53 ARC. A cluster provides a set of five redundant Regional endpoints against which you
12
13
  * can run API calls to get or update the state of routing controls. To implement failover, you set
13
- * one routing control on and another one off, to reroute traffic from one Availability Zone or Amazon Web Services Region
14
+ * one routing control On and another one Off, to reroute traffic from one Availability Zone or Amazon Web Services Region
14
15
  * to another. </p>
15
16
  * <p>
16
- * <i>Be aware that you must specify the Regional endpoints for a cluster when you work with API cluster operations
17
- * to get or update routing control states in Application Recovery Controller.</i> In addition, you must specify the US West (Oregon) Region
18
- * for Application Recovery Controller API calls. For example, use the parameter <code>region us-west-2</code> with AWS CLI commands.
17
+ * <i>Be aware that you must specify a Regional endpoint for a cluster when you work with API cluster operations
18
+ * to get or update routing control states in Route 53 ARC.</i> In addition, you must specify the US West (Oregon) Region
19
+ * for Route 53 ARC API calls. For example, use the parameter <code>--region us-west-2</code> with AWS CLI commands.
19
20
  * For more information, see
20
21
  * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.update.api.html">
21
22
  * Get and update routing control states using the API</a> in the Amazon Route 53 Application Recovery Controller Developer Guide.</p>
22
23
  * <p>This API guide includes information about the API operations for how to get and update routing control states
23
- * in Application Recovery Controller. You also must set up the structures to support routing controls: clusters and control panels.</p>
24
- * <p>For more information about working with routing control in Application Recovery Controller, see the following:</p>
24
+ * in Route 53 ARC. To work with routing control in Route 53 ARC, you must first create the required components (clusters, control
25
+ * panels, and routing controls) using the recovery cluster configuration API.</p>
26
+ * <p>For more information about working with routing control in Route 53 ARC, see the following:</p>
25
27
  * <ul>
26
28
  * <li>
27
- * <p>To create clusters, routing controls, and control panels by using the control plane API
28
- * for routing control, see the <a href="https://docs.aws.amazon.com/recovery-cluster/latest/api/">Recovery Control Configuration API Reference Guide for Amazon Route 53 Application Recovery Controller</a>.</p>
29
+ * <p>Create clusters, control panels, and routing controls by using API operations. For more information,
30
+ * see the <a href="https://docs.aws.amazon.com/recovery-cluster/latest/api/">Recovery Control Configuration API Reference Guide for Amazon Route 53 Application Recovery Controller</a>.</p>
29
31
  * </li>
30
32
  * <li>
31
- * <p>Learn about the components in recovery control configuration, including clusters,
32
- * routing controls, and control panels. For more information, see
33
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/introduction-components.html#introduction-components-routing">
33
+ * <p>Learn about the components in recovery control, including clusters,
34
+ * routing controls, and control panels, and how to work with Route 53 ARC in the Amazon Web Services console. For more
35
+ * information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/introduction-components.html#introduction-components-routing">
34
36
  * Recovery control components</a> in the Amazon Route 53 Application Recovery Controller Developer Guide.</p>
35
37
  * </li>
36
38
  * <li>
37
- * <p>Application Recovery Controller also provides readiness checks that run continually to help make sure that your
39
+ * <p>Route 53 ARC also provides readiness checks that continually audit resources to help make sure that your
38
40
  * applications are scaled and ready to handle failover traffic. For more information about
39
- * the related API actions, see the <a href="https://docs.aws.amazon.com/recovery-readiness/latest/api/">Recovery Readiness API Reference Guide for Amazon Route 53 Application Recovery Controller</a>.</p>
41
+ * the related API operations, see the <a href="https://docs.aws.amazon.com/recovery-readiness/latest/api/">Recovery Readiness API Reference Guide for Amazon Route 53 Application Recovery Controller</a>.</p>
40
42
  * </li>
41
43
  * <li>
42
44
  * <p>For more information about creating resilient applications and preparing for
43
- * recovery readiness with Application Recovery Controller, see the <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/">Amazon Route 53 Application Recovery Controller Developer Guide</a>.</p>
45
+ * recovery readiness with Route 53 ARC, see the <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/">Amazon Route 53 Application Recovery Controller Developer Guide</a>.</p>
44
46
  * </li>
45
47
  * </ul>
46
48
  */
47
49
  export declare class Route53RecoveryCluster extends Route53RecoveryClusterClient {
48
50
  /**
49
51
  * <p>Get the state for a routing control. A routing control is a simple on/off switch that you
50
- * can use to route traffic to cells. When the state is On, traffic flows to a cell. When
51
- * it's Off, traffic does not flow. </p>
52
- * <p>Before you can create a routing control, you must first create a cluster to host the control
53
- * in a control panel. For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.create.html">
52
+ * can use to route traffic to cells. When a routing control state is On, traffic flows to a cell. When
53
+ * the state is Off, traffic does not flow. </p>
54
+ * <p>Before you can create a routing control, you must first create a cluster, and then host the control
55
+ * in a control panel on the cluster. For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.create.html">
54
56
  * Create routing control structures</a> in the Amazon Route 53 Application Recovery Controller Developer Guide.
55
- * Then you access one of the endpoints for the cluster to get or update the routing control state to
56
- * redirect traffic. </p>
57
+ * You access one of the endpoints for the cluster to get or update the routing control state to
58
+ * redirect traffic for your application. </p>
57
59
  * <p>
58
60
  * <i>You must specify Regional endpoints when you work with API cluster operations
59
- * to get or update routing control states in Application Recovery Controller.</i>
61
+ * to get or update routing control states in Route 53 ARC.</i>
60
62
  * </p>
61
63
  * <p>To see a code example for getting a routing control state, including accessing Regional cluster endpoints
62
64
  * in sequence, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/service_code_examples_actions.html">API examples</a>
@@ -72,7 +74,8 @@ export declare class Route53RecoveryCluster extends Route53RecoveryClusterClient
72
74
  * </li>
73
75
  * <li>
74
76
  * <p>
75
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Working with routing controls overall</a>
77
+ * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Working with
78
+ * routing controls in Route 53 ARC</a>
76
79
  * </p>
77
80
  * </li>
78
81
  * </ul>
@@ -80,11 +83,48 @@ export declare class Route53RecoveryCluster extends Route53RecoveryClusterClient
80
83
  getRoutingControlState(args: GetRoutingControlStateCommandInput, options?: __HttpHandlerOptions): Promise<GetRoutingControlStateCommandOutput>;
81
84
  getRoutingControlState(args: GetRoutingControlStateCommandInput, cb: (err: any, data?: GetRoutingControlStateCommandOutput) => void): void;
82
85
  getRoutingControlState(args: GetRoutingControlStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRoutingControlStateCommandOutput) => void): void;
86
+ /**
87
+ * <p>List routing control names and Amazon Resource Names (ARNs), as well as the routing control
88
+ * state for each routing control, along with the control panel name and control panel ARN for the routing controls.
89
+ * If you specify a control panel ARN, this call lists the routing controls in the control panel. Otherwise, it lists
90
+ * all the routing controls in the cluster.</p>
91
+ * <p>A routing control is a simple on/off switch in Route 53 ARC that you
92
+ * can use to route traffic to cells. When a routing control state is On, traffic flows to a cell. When
93
+ * the state is Off, traffic does not flow.</p>
94
+ * <p>Before you can create a routing control, you must first create a cluster, and then host the control
95
+ * in a control panel on the cluster. For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.create.html">
96
+ * Create routing control structures</a> in the Amazon Route 53 Application Recovery Controller Developer Guide.
97
+ * You access one of the endpoints for the cluster to get or update the routing control state to
98
+ * redirect traffic for your application. </p>
99
+ * <p>
100
+ * <i>You must specify Regional endpoints when you work with API cluster operations
101
+ * to use this API operation to list routing controls in Route 53 ARC.</i>
102
+ * </p>
103
+ * <p>Learn more about working with routing controls in the following topics in the
104
+ * Amazon Route 53 Application Recovery Controller Developer Guide:</p>
105
+ * <ul>
106
+ * <li>
107
+ * <p>
108
+ * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.update.html">
109
+ * Viewing and updating routing control states</a>
110
+ * </p>
111
+ * </li>
112
+ * <li>
113
+ * <p>
114
+ * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Working with
115
+ * routing controls in Route 53 ARC</a>
116
+ * </p>
117
+ * </li>
118
+ * </ul>
119
+ */
120
+ listRoutingControls(args: ListRoutingControlsCommandInput, options?: __HttpHandlerOptions): Promise<ListRoutingControlsCommandOutput>;
121
+ listRoutingControls(args: ListRoutingControlsCommandInput, cb: (err: any, data?: ListRoutingControlsCommandOutput) => void): void;
122
+ listRoutingControls(args: ListRoutingControlsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRoutingControlsCommandOutput) => void): void;
83
123
  /**
84
124
  * <p>Set the state of the routing control to reroute traffic. You can set the value to be On or
85
- * Off. When the state is On, traffic flows to a cell. When it's Off, traffic does not
125
+ * Off. When the state is On, traffic flows to a cell. When the state is Off, traffic does not
86
126
  * flow.</p>
87
- * <p>With Application Recovery Controller, you can add safety rules for routing controls, which are safeguards for routing
127
+ * <p>With Route 53 ARC, you can add safety rules for routing controls, which are safeguards for routing
88
128
  * control state updates that help prevent unexpected outcomes, like fail open traffic routing. However,
89
129
  * there are scenarios when you might want to bypass the routing control safeguards that are enforced with
90
130
  * safety rules that you've configured. For example, you might want to fail over quickly for disaster recovery,
@@ -97,7 +137,7 @@ export declare class Route53RecoveryCluster extends Route53RecoveryClusterClient
97
137
  * Override safety rules to reroute traffic</a> in the Amazon Route 53 Application Recovery Controller Developer Guide.</p>
98
138
  * <p>
99
139
  * <i>You must specify Regional endpoints when you work with API cluster operations
100
- * to get or update routing control states in Application Recovery Controller.</i>
140
+ * to get or update routing control states in Route 53 ARC.</i>
101
141
  * </p>
102
142
  * <p>To see a code example for getting a routing control state, including accessing Regional cluster endpoints
103
143
  * in sequence, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/service_code_examples_actions.html">API examples</a>
@@ -123,7 +163,7 @@ export declare class Route53RecoveryCluster extends Route53RecoveryClusterClient
123
163
  * <p>Set multiple routing control states. You can set the value for each state to be On or Off.
124
164
  * When the state is On, traffic flows to a cell. When it's Off, traffic does not
125
165
  * flow.</p>
126
- * <p>With Application Recovery Controller, you can add safety rules for routing controls, which are safeguards for routing
166
+ * <p>With Route 53 ARC, you can add safety rules for routing controls, which are safeguards for routing
127
167
  * control state updates that help prevent unexpected outcomes, like fail open traffic routing. However,
128
168
  * there are scenarios when you might want to bypass the routing control safeguards that are enforced with
129
169
  * safety rules that you've configured. For example, you might want to fail over quickly for disaster recovery,
@@ -136,7 +176,7 @@ export declare class Route53RecoveryCluster extends Route53RecoveryClusterClient
136
176
  * Override safety rules to reroute traffic</a> in the Amazon Route 53 Application Recovery Controller Developer Guide.</p>
137
177
  * <p>
138
178
  * <i>You must specify Regional endpoints when you work with API cluster operations
139
- * to get or update routing control states in Application Recovery Controller.</i>
179
+ * to get or update routing control states in Route 53 ARC.</i>
140
180
  * </p>
141
181
  * <p>To see a code example for getting a routing control state, including accessing Regional cluster endpoints
142
182
  * in sequence, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/service_code_examples_actions.html">API examples</a>
@@ -7,10 +7,11 @@ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { GetRoutingControlStateCommandInput, GetRoutingControlStateCommandOutput } from "./commands/GetRoutingControlStateCommand";
10
+ import { ListRoutingControlsCommandInput, ListRoutingControlsCommandOutput } from "./commands/ListRoutingControlsCommand";
10
11
  import { UpdateRoutingControlStateCommandInput, UpdateRoutingControlStateCommandOutput } from "./commands/UpdateRoutingControlStateCommand";
11
12
  import { UpdateRoutingControlStatesCommandInput, UpdateRoutingControlStatesCommandOutput } from "./commands/UpdateRoutingControlStatesCommand";
12
- export declare type ServiceInputTypes = GetRoutingControlStateCommandInput | UpdateRoutingControlStateCommandInput | UpdateRoutingControlStatesCommandInput;
13
- export declare type ServiceOutputTypes = GetRoutingControlStateCommandOutput | UpdateRoutingControlStateCommandOutput | UpdateRoutingControlStatesCommandOutput;
13
+ export declare type ServiceInputTypes = GetRoutingControlStateCommandInput | ListRoutingControlsCommandInput | UpdateRoutingControlStateCommandInput | UpdateRoutingControlStatesCommandInput;
14
+ export declare type ServiceOutputTypes = GetRoutingControlStateCommandOutput | ListRoutingControlsCommandOutput | UpdateRoutingControlStateCommandOutput | UpdateRoutingControlStatesCommandOutput;
14
15
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
15
16
  /**
16
17
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -130,42 +131,43 @@ export interface Route53RecoveryClusterClientResolvedConfig extends Route53Recov
130
131
  }
131
132
  /**
132
133
  * <p>Welcome to the Routing Control (Recovery Cluster) API Reference Guide for Amazon Route 53 Application Recovery Controller.</p>
133
- * <p>With Amazon Route 53 Application Recovery Controller, you can use routing control with extreme reliability to
134
+ * <p>With Route 53 ARC, you can use routing control with extreme reliability to
134
135
  * recover applications by rerouting traffic across
135
- * Availability Zones or AWS Regions. Routing controls are simple on/off switches hosted
136
- * on a highly available cluster in Application Recovery Controller. A cluster provides a set of five redundant Regional endpoints against which you
136
+ * Availability Zones or Amazon Web Services Regions. Routing controls are simple on/off switches hosted
137
+ * on a highly available cluster in Route 53 ARC. A cluster provides a set of five redundant Regional endpoints against which you
137
138
  * can run API calls to get or update the state of routing controls. To implement failover, you set
138
- * one routing control on and another one off, to reroute traffic from one Availability Zone or Amazon Web Services Region
139
+ * one routing control On and another one Off, to reroute traffic from one Availability Zone or Amazon Web Services Region
139
140
  * to another. </p>
140
141
  * <p>
141
- * <i>Be aware that you must specify the Regional endpoints for a cluster when you work with API cluster operations
142
- * to get or update routing control states in Application Recovery Controller.</i> In addition, you must specify the US West (Oregon) Region
143
- * for Application Recovery Controller API calls. For example, use the parameter <code>region us-west-2</code> with AWS CLI commands.
142
+ * <i>Be aware that you must specify a Regional endpoint for a cluster when you work with API cluster operations
143
+ * to get or update routing control states in Route 53 ARC.</i> In addition, you must specify the US West (Oregon) Region
144
+ * for Route 53 ARC API calls. For example, use the parameter <code>--region us-west-2</code> with AWS CLI commands.
144
145
  * For more information, see
145
146
  * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.update.api.html">
146
147
  * Get and update routing control states using the API</a> in the Amazon Route 53 Application Recovery Controller Developer Guide.</p>
147
148
  * <p>This API guide includes information about the API operations for how to get and update routing control states
148
- * in Application Recovery Controller. You also must set up the structures to support routing controls: clusters and control panels.</p>
149
- * <p>For more information about working with routing control in Application Recovery Controller, see the following:</p>
149
+ * in Route 53 ARC. To work with routing control in Route 53 ARC, you must first create the required components (clusters, control
150
+ * panels, and routing controls) using the recovery cluster configuration API.</p>
151
+ * <p>For more information about working with routing control in Route 53 ARC, see the following:</p>
150
152
  * <ul>
151
153
  * <li>
152
- * <p>To create clusters, routing controls, and control panels by using the control plane API
153
- * for routing control, see the <a href="https://docs.aws.amazon.com/recovery-cluster/latest/api/">Recovery Control Configuration API Reference Guide for Amazon Route 53 Application Recovery Controller</a>.</p>
154
+ * <p>Create clusters, control panels, and routing controls by using API operations. For more information,
155
+ * see the <a href="https://docs.aws.amazon.com/recovery-cluster/latest/api/">Recovery Control Configuration API Reference Guide for Amazon Route 53 Application Recovery Controller</a>.</p>
154
156
  * </li>
155
157
  * <li>
156
- * <p>Learn about the components in recovery control configuration, including clusters,
157
- * routing controls, and control panels. For more information, see
158
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/introduction-components.html#introduction-components-routing">
158
+ * <p>Learn about the components in recovery control, including clusters,
159
+ * routing controls, and control panels, and how to work with Route 53 ARC in the Amazon Web Services console. For more
160
+ * information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/introduction-components.html#introduction-components-routing">
159
161
  * Recovery control components</a> in the Amazon Route 53 Application Recovery Controller Developer Guide.</p>
160
162
  * </li>
161
163
  * <li>
162
- * <p>Application Recovery Controller also provides readiness checks that run continually to help make sure that your
164
+ * <p>Route 53 ARC also provides readiness checks that continually audit resources to help make sure that your
163
165
  * applications are scaled and ready to handle failover traffic. For more information about
164
- * the related API actions, see the <a href="https://docs.aws.amazon.com/recovery-readiness/latest/api/">Recovery Readiness API Reference Guide for Amazon Route 53 Application Recovery Controller</a>.</p>
166
+ * the related API operations, see the <a href="https://docs.aws.amazon.com/recovery-readiness/latest/api/">Recovery Readiness API Reference Guide for Amazon Route 53 Application Recovery Controller</a>.</p>
165
167
  * </li>
166
168
  * <li>
167
169
  * <p>For more information about creating resilient applications and preparing for
168
- * recovery readiness with Application Recovery Controller, see the <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/">Amazon Route 53 Application Recovery Controller Developer Guide</a>.</p>
170
+ * recovery readiness with Route 53 ARC, see the <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/">Amazon Route 53 Application Recovery Controller Developer Guide</a>.</p>
169
171
  * </li>
170
172
  * </ul>
171
173
  */
@@ -8,16 +8,16 @@ export interface GetRoutingControlStateCommandOutput extends GetRoutingControlSt
8
8
  }
9
9
  /**
10
10
  * <p>Get the state for a routing control. A routing control is a simple on/off switch that you
11
- * can use to route traffic to cells. When the state is On, traffic flows to a cell. When
12
- * it's Off, traffic does not flow. </p>
13
- * <p>Before you can create a routing control, you must first create a cluster to host the control
14
- * in a control panel. For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.create.html">
11
+ * can use to route traffic to cells. When a routing control state is On, traffic flows to a cell. When
12
+ * the state is Off, traffic does not flow. </p>
13
+ * <p>Before you can create a routing control, you must first create a cluster, and then host the control
14
+ * in a control panel on the cluster. For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.create.html">
15
15
  * Create routing control structures</a> in the Amazon Route 53 Application Recovery Controller Developer Guide.
16
- * Then you access one of the endpoints for the cluster to get or update the routing control state to
17
- * redirect traffic. </p>
16
+ * You access one of the endpoints for the cluster to get or update the routing control state to
17
+ * redirect traffic for your application. </p>
18
18
  * <p>
19
19
  * <i>You must specify Regional endpoints when you work with API cluster operations
20
- * to get or update routing control states in Application Recovery Controller.</i>
20
+ * to get or update routing control states in Route 53 ARC.</i>
21
21
  * </p>
22
22
  * <p>To see a code example for getting a routing control state, including accessing Regional cluster endpoints
23
23
  * in sequence, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/service_code_examples_actions.html">API examples</a>
@@ -33,7 +33,8 @@ export interface GetRoutingControlStateCommandOutput extends GetRoutingControlSt
33
33
  * </li>
34
34
  * <li>
35
35
  * <p>
36
- * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Working with routing controls overall</a>
36
+ * <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html">Working with
37
+ * routing controls in Route 53 ARC</a>
37
38
  * </p>
38
39
  * </li>
39
40
  * </ul>