Table of Contents
A low-level client representing Route53 Recovery Cluster
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:
import boto3
client = boto3.client('route53-recovery-cluster')
These are the available methods:
Check if an operation can be paginated.
Create a paginator for an operation.
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.
See also: AWS API Documentation
Request Syntax
response = client.get_routing_control_state(
RoutingControlArn='string'
)
[REQUIRED]
The Amazon Resource Number (ARN) for the routing control that you want to get the state for.
{
'RoutingControlArn': 'string',
'RoutingControlState': 'On'|'Off'
}
Response Structure
The Amazon Resource Number (ARN) of the response.
The state of the routing control.
Exceptions
Returns an object that can wait for some condition.
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.
See also: AWS API Documentation
Request Syntax
response = client.update_routing_control_state(
RoutingControlArn='string',
RoutingControlState='On'|'Off'
)
[REQUIRED]
The Amazon Resource Number (ARN) for the routing control that you want to update the state for.
[REQUIRED]
The state of the routing control. You can set the value to be On or Off.
dict
Response Syntax
{}
Response Structure
Exceptions
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.
See also: AWS API Documentation
Request Syntax
response = client.update_routing_control_states(
UpdateRoutingControlStateEntries=[
{
'RoutingControlArn': 'string',
'RoutingControlState': 'On'|'Off'
},
]
)
[REQUIRED]
A set of routing control entries that you want to update.
A routing control state.
The Amazon Resource Number (ARN) for the routing control state entry.
The routing control state in a set of routing control state entries.
{}
Response Structure
Exceptions
The available paginators are: