| 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 |
Amazonka.Route53RecoveryCluster.UpdateRoutingControlState
Description
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.
Constructors
| UpdateRoutingControlState' | |
Fields
| |
Instances
newUpdateRoutingControlState Source #
Arguments
| :: Text | |
| -> RoutingControlState | |
| -> UpdateRoutingControlState |
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.
Constructors
| UpdateRoutingControlStateResponse' | |
Fields
| |
Instances
newUpdateRoutingControlStateResponse Source #
Arguments
| :: Int | |
| -> UpdateRoutingControlStateResponse |
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.