Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data UpdateRoutingControlState = UpdateRoutingControlState' {}
- newUpdateRoutingControlState :: Text -> RoutingControlState -> UpdateRoutingControlState
- updateRoutingControlState_routingControlArn :: Lens' UpdateRoutingControlState Text
- updateRoutingControlState_routingControlState :: Lens' UpdateRoutingControlState RoutingControlState
- data UpdateRoutingControlStateResponse = UpdateRoutingControlStateResponse' {
- httpStatus :: Int
- newUpdateRoutingControlStateResponse :: Int -> UpdateRoutingControlStateResponse
- updateRoutingControlStateResponse_httpStatus :: Lens' UpdateRoutingControlStateResponse Int
Creating a Request
data UpdateRoutingControlState Source #
See: newUpdateRoutingControlState
smart constructor.
UpdateRoutingControlState' | |
|
Instances
newUpdateRoutingControlState Source #
Create a value of UpdateRoutingControlState
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:
$sel:routingControlArn:UpdateRoutingControlState'
, updateRoutingControlState_routingControlArn
- The Amazon Resource Number (ARN) for the routing control that you want
to update the state for.
$sel:routingControlState:UpdateRoutingControlState'
, updateRoutingControlState_routingControlState
- The state of the routing control. You can set the value to be On or Off.
Request Lenses
updateRoutingControlState_routingControlArn :: Lens' UpdateRoutingControlState Text Source #
The Amazon Resource Number (ARN) for the routing control that you want to update the state for.
updateRoutingControlState_routingControlState :: Lens' UpdateRoutingControlState RoutingControlState Source #
The state of the routing control. You can set the value to be On or Off.
Destructuring the Response
data UpdateRoutingControlStateResponse Source #
See: newUpdateRoutingControlStateResponse
smart constructor.
UpdateRoutingControlStateResponse' | |
|
Instances
Eq UpdateRoutingControlStateResponse Source # | |
Read UpdateRoutingControlStateResponse Source # | |
Show UpdateRoutingControlStateResponse Source # | |
Generic UpdateRoutingControlStateResponse Source # | |
Defined in Amazonka.Route53RecoveryCluster.UpdateRoutingControlState type Rep UpdateRoutingControlStateResponse :: Type -> Type # | |
NFData UpdateRoutingControlStateResponse Source # | |
type Rep UpdateRoutingControlStateResponse Source # | |
Defined in Amazonka.Route53RecoveryCluster.UpdateRoutingControlState type Rep UpdateRoutingControlStateResponse = D1 ('MetaData "UpdateRoutingControlStateResponse" "Amazonka.Route53RecoveryCluster.UpdateRoutingControlState" "libZSservicesZSamazonka-route53-recovery-clusterZSamazonka-route53-recovery-cluster" 'False) (C1 ('MetaCons "UpdateRoutingControlStateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateRoutingControlStateResponse Source #
Create a value of UpdateRoutingControlStateResponse
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:
$sel:httpStatus:UpdateRoutingControlStateResponse'
, updateRoutingControlStateResponse_httpStatus
- The response's http status code.
Response Lenses
updateRoutingControlStateResponse_httpStatus :: Lens' UpdateRoutingControlStateResponse Int Source #
The response's http status code.