Skip to main content

routing_controls

Creates, updates, deletes, gets or lists a routing_controls resource.

Overview

Namerouting_controls
TypeResource
Idaws.route53_recovery_control_config.routing_controls

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
control_panel_arnstringThe Amazon Resource Name (ARN) of the control panel that includes the routing control. (pattern: <code>^[A-Za-z0-9:/_-]*$</code>)
namestringThe name of the routing control. (pattern: <code>^\S+$</code>)
ownerstringThe Amazon Web Services account ID of the routing control owner. (pattern: <code>^\d{12}$</code>)
routing_control_arnstringThe Amazon Resource Name (ARN) of the routing control. (pattern: <code>^[A-Za-z0-9:/_-]*$</code>)
statusstringThe deployment status of a routing control. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION. (PENDING, DEPLOYED, PENDING_DELETION)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_routing_controlselectrouting_control_arn, regionDisplays details about a routing control. A routing control has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control routing. To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.
list_routing_controlsselectcontrol_panel_arn, regionMaxResults, NextTokenReturns an array of routing controls for a control panel. A routing control is an Amazon Route 53 Application Recovery Controller construct that has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control routing.
create_routing_controlinsertregion, ClusterArn, RoutingControlNameCreates a new routing control. A routing control has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control traffic routing. To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.
update_routing_controlupdateregion, RoutingControlArn, RoutingControlNameUpdates a routing control. You can only update the name of the routing control. To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.
delete_routing_controldeleterouting_control_arn, regionDeletes a routing control.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
control_panel_arnstringThe Amazon Resource Name (ARN) of the control panel.
regionstringAWS region (default: us-east-1)
routing_control_arnstringThe Amazon Resource Name (ARN) of the routing control that you're deleting.
MaxResultsintegerThe number of objects that you want to return with this call.
NextTokenstringThe token that identifies which batch of results you want to see.

SELECT examples

Displays details about a routing control. A routing control has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control routing. To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.

SELECT
control_panel_arn,
name,
owner,
routing_control_arn,
status
FROM aws.route53_recovery_control_config.routing_controls
WHERE routing_control_arn = '{{ routing_control_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new routing control. A routing control has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control traffic routing. To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.

INSERT INTO aws.route53_recovery_control_config.routing_controls (
ClientToken,
ClusterArn,
ControlPanelArn,
RoutingControlName,
region
)
SELECT
'{{ ClientToken }}',
'{{ ClusterArn }}' /* required */,
'{{ ControlPanelArn }}',
'{{ RoutingControlName }}' /* required */,
'{{ region }}'
RETURNING
routing_control
;

UPDATE examples

Updates a routing control. You can only update the name of the routing control. To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.

UPDATE aws.route53_recovery_control_config.routing_controls
SET
RoutingControlArn = '{{ RoutingControlArn }}',
RoutingControlName = '{{ RoutingControlName }}'
WHERE
region = '{{ region }}' --required
AND RoutingControlArn = '{{ RoutingControlArn }}' --required
AND RoutingControlName = '{{ RoutingControlName }}' --required
RETURNING
routing_control;

DELETE examples

Deletes a routing control.

DELETE FROM aws.route53_recovery_control_config.routing_controls
WHERE routing_control_arn = '{{ routing_control_arn }}' --required
AND region = '{{ region }}' --required
;