Class: AWS.Route53RecoveryCluster
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.Route53RecoveryCluster
- Identifier:
- route53recoverycluster
- API Version:
- 2019-12-02
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Welcome to the Amazon Route 53 Application Recovery Controller API Reference Guide for Recovery Control Data Plane .
Recovery control in Route 53 Application Recovery Controller includes extremely reliable routing controls that enable you to recover applications by rerouting traffic, for example, across Availability Zones or AWS Regions. Routing controls are simple on/off switches hosted on a cluster. A cluster is a set of five redundant regional endpoints against which you can execute API calls to update or get the state of routing controls. You use routing controls to failover traffic to recover your application across Availability Zones or Regions.
This API guide includes information about how to get and update routing control states in Route 53 Application Recovery Controller.
For more information about Route 53 Application Recovery Controller, see the following:
-
You can create clusters, routing controls, and control panels by using the control plane API for Recovery Control. For more information, see Amazon Route 53 Application Recovery Controller Recovery Control API Reference.
-
Route 53 Application Recovery Controller also provides continuous readiness checks to ensure that your applications are scaled to handle failover traffic. For more information about the related API actions, see Amazon Route 53 Application Recovery Controller Recovery Readiness API Reference.
-
For more information about creating resilient applications and preparing for recovery readiness with Route 53 Application Recovery Controller, see the Amazon Route 53 Application Recovery Controller Developer Guide.
Sending a Request Using Route53RecoveryCluster
var route53recoverycluster = new AWS.Route53RecoveryCluster();
route53recoverycluster.getRoutingControlState(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the Route53RecoveryCluster object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var route53recoverycluster = new AWS.Route53RecoveryCluster({apiVersion: '2019-12-02'});
You can also set the API version globally in AWS.config.apiVersions
using
the route53recoverycluster service identifier:
AWS.config.apiVersions = {
route53recoverycluster: '2019-12-02',
// other service API versions
};
var route53recoverycluster = new AWS.Route53RecoveryCluster();
Constructor Summary collapse
-
new AWS.Route53RecoveryCluster(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
getRoutingControlState(params = {}, callback) ⇒ AWS.Request
Get the state for a routing control.
-
updateRoutingControlState(params = {}, callback) ⇒ AWS.Request
Set the state of the routing control to reroute traffic.
-
updateRoutingControlStates(params = {}, callback) ⇒ AWS.Request
Set multiple routing control states.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.Route53RecoveryCluster(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
getRoutingControlState(params = {}, callback) ⇒ AWS.Request
Get the state for a routing control. A routing control is a simple on/off switch that you can use to route traffic to cells. When the state is On, traffic flows to a cell. When it's off, traffic does not flow.
Before you can create a routing control, you first must create a cluster to host the control. For more information, see CreateCluster. Access one of the endpoints for the cluster to get or update the routing control state to redirect traffic.
For more information about working with routing controls, see Routing control in the Route 53 Application Recovery Controller Developer Guide.
updateRoutingControlState(params = {}, callback) ⇒ AWS.Request
Set the state of the routing control to reroute traffic. You can set the value to be On or Off. When the state is On, traffic flows to a cell. When it's off, traffic does not flow.
For more information about working with routing controls, see Routing control in the Route 53 Application Recovery Controller Developer Guide.
updateRoutingControlStates(params = {}, callback) ⇒ AWS.Request
Set multiple routing control states. You can set the value for each state to be On or Off. When the state is On, traffic flows to a cell. When it's off, traffic does not flow.
For more information about working with routing controls, see Routing control in the Route 53 Application Recovery Controller Developer Guide.