Route53 Recovery Cluster

2021/07/27 - Route53 Recovery Cluster - 3 new api methods

Changes  Amazon Route 53 Application Recovery Controller's routing control - Routing Control Data Plane APIs help you update the state (On/Off) of the routing controls to reroute traffic across application replicas in a 100% available manner.

UpdateRoutingControlState (new) Link ¶

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

client.update_routing_control_state(
    RoutingControlArn='string',
    RoutingControlState='On'|'Off'
)
type RoutingControlArn:

string

param RoutingControlArn:

[REQUIRED]

The Amazon Resource Number (ARN) for the routing control that you want to update the state for.

type RoutingControlState:

string

param RoutingControlState:

[REQUIRED]

The state of the routing control. You can set the value to be On or Off.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

UpdateRoutingControlStates (new) Link ¶

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

client.update_routing_control_states(
    UpdateRoutingControlStateEntries=[
        {
            'RoutingControlArn': 'string',
            'RoutingControlState': 'On'|'Off'
        },
    ]
)
type UpdateRoutingControlStateEntries:

list

param UpdateRoutingControlStateEntries:

[REQUIRED]

A set of routing control entries that you want to update.

  • (dict) --

    A routing control state.

    • RoutingControlArn (string) -- [REQUIRED]

      The Amazon Resource Number (ARN) for the routing control state entry.

    • RoutingControlState (string) -- [REQUIRED]

      The routing control state in a set of routing control state entries.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

GetRoutingControlState (new) Link ¶

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

client.get_routing_control_state(
    RoutingControlArn='string'
)
type RoutingControlArn:

string

param RoutingControlArn:

[REQUIRED]

The Amazon Resource Number (ARN) for the routing control that you want to get the state for.

rtype:

dict

returns:

Response Syntax

{
    'RoutingControlArn': 'string',
    'RoutingControlState': 'On'|'Off'
}

Response Structure

  • (dict) --

    • RoutingControlArn (string) --

      The Amazon Resource Number (ARN) of the response.

    • RoutingControlState (string) --

      The state of the routing control.