amazonka-route53-recovery-cluster-2.0: Amazon Route53 Recovery Cluster SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Route53RecoveryCluster.GetRoutingControlState

Description

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 a routing control state is On, traffic flows to a cell. When the state is Off, traffic does not flow.

Before you can create a routing control, you must first create a cluster, and then host the control in a control panel on the cluster. For more information, see Create routing control structures in the Amazon Route 53 Application Recovery Controller Developer Guide. You access one of the endpoints for the cluster to get or update the routing control state to redirect traffic for your application.

/You must specify Regional endpoints when you work with API cluster operations to get or update routing control states in Route 53 ARC./

To see a code example for getting a routing control state, including accessing Regional cluster endpoints in sequence, see API examples in the Amazon Route 53 Application Recovery Controller Developer Guide.

Learn more about working with routing controls in the following topics in the Amazon Route 53 Application Recovery Controller Developer Guide:

Synopsis

Creating a Request

data GetRoutingControlState Source #

See: newGetRoutingControlState smart constructor.

Constructors

GetRoutingControlState' 

Fields

  • routingControlArn :: Text

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

Instances

Instances details
ToJSON GetRoutingControlState Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

ToHeaders GetRoutingControlState Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

ToPath GetRoutingControlState Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

ToQuery GetRoutingControlState Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

AWSRequest GetRoutingControlState Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

Associated Types

type AWSResponse GetRoutingControlState #

Generic GetRoutingControlState Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

Associated Types

type Rep GetRoutingControlState :: Type -> Type #

Read GetRoutingControlState Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

Show GetRoutingControlState Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

NFData GetRoutingControlState Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

Methods

rnf :: GetRoutingControlState -> () #

Eq GetRoutingControlState Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

Hashable GetRoutingControlState Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

type AWSResponse GetRoutingControlState Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

type Rep GetRoutingControlState Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

type Rep GetRoutingControlState = D1 ('MetaData "GetRoutingControlState" "Amazonka.Route53RecoveryCluster.GetRoutingControlState" "amazonka-route53-recovery-cluster-2.0-DxeQnRCPOPo1FMbWCdEnyv" 'False) (C1 ('MetaCons "GetRoutingControlState'" 'PrefixI 'True) (S1 ('MetaSel ('Just "routingControlArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetRoutingControlState Source #

Create a value of GetRoutingControlState with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

GetRoutingControlState, getRoutingControlState_routingControlArn - The Amazon Resource Name (ARN) for the routing control that you want to get the state for.

Request Lenses

getRoutingControlState_routingControlArn :: Lens' GetRoutingControlState Text Source #

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

Destructuring the Response

data GetRoutingControlStateResponse Source #

See: newGetRoutingControlStateResponse smart constructor.

Constructors

GetRoutingControlStateResponse' 

Fields

Instances

Instances details
Generic GetRoutingControlStateResponse Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

Associated Types

type Rep GetRoutingControlStateResponse :: Type -> Type #

Read GetRoutingControlStateResponse Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

Show GetRoutingControlStateResponse Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

NFData GetRoutingControlStateResponse Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

Eq GetRoutingControlStateResponse Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

type Rep GetRoutingControlStateResponse Source # 
Instance details

Defined in Amazonka.Route53RecoveryCluster.GetRoutingControlState

type Rep GetRoutingControlStateResponse = D1 ('MetaData "GetRoutingControlStateResponse" "Amazonka.Route53RecoveryCluster.GetRoutingControlState" "amazonka-route53-recovery-cluster-2.0-DxeQnRCPOPo1FMbWCdEnyv" 'False) (C1 ('MetaCons "GetRoutingControlStateResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "routingControlName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "routingControlArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "routingControlState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoutingControlState))))

newGetRoutingControlStateResponse Source #

Create a value of GetRoutingControlStateResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

GetRoutingControlStateResponse, getRoutingControlStateResponse_routingControlName - The routing control name.

$sel:httpStatus:GetRoutingControlStateResponse', getRoutingControlStateResponse_httpStatus - The response's http status code.

GetRoutingControlState, getRoutingControlStateResponse_routingControlArn - The Amazon Resource Name (ARN) of the response.

GetRoutingControlStateResponse, getRoutingControlStateResponse_routingControlState - The state of the routing control.

Response Lenses