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 |
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.
Synopsis
- data CreateRoutingControl = CreateRoutingControl' {}
- newCreateRoutingControl :: Text -> Text -> CreateRoutingControl
- createRoutingControl_controlPanelArn :: Lens' CreateRoutingControl (Maybe Text)
- createRoutingControl_clientToken :: Lens' CreateRoutingControl (Maybe Text)
- createRoutingControl_clusterArn :: Lens' CreateRoutingControl Text
- createRoutingControl_routingControlName :: Lens' CreateRoutingControl Text
- data CreateRoutingControlResponse = CreateRoutingControlResponse' {}
- newCreateRoutingControlResponse :: Int -> CreateRoutingControlResponse
- createRoutingControlResponse_routingControl :: Lens' CreateRoutingControlResponse (Maybe RoutingControl)
- createRoutingControlResponse_httpStatus :: Lens' CreateRoutingControlResponse Int
Creating a Request
data CreateRoutingControl Source #
The details of the routing control that you're creating.
See: newCreateRoutingControl
smart constructor.
CreateRoutingControl' | |
|
Instances
newCreateRoutingControl Source #
:: Text | |
-> Text | |
-> CreateRoutingControl |
Create a value of CreateRoutingControl
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:controlPanelArn:CreateRoutingControl'
, createRoutingControl_controlPanelArn
- The Amazon Resource Name (ARN) of the control panel that includes the
routing control.
$sel:clientToken:CreateRoutingControl'
, createRoutingControl_clientToken
- Unique client idempotency token.
$sel:clusterArn:CreateRoutingControl'
, createRoutingControl_clusterArn
- The Amazon Resource Name (ARN) of the cluster that includes the routing
control.
$sel:routingControlName:CreateRoutingControl'
, createRoutingControl_routingControlName
- The name of the routing control.
Request Lenses
createRoutingControl_controlPanelArn :: Lens' CreateRoutingControl (Maybe Text) Source #
The Amazon Resource Name (ARN) of the control panel that includes the routing control.
createRoutingControl_clientToken :: Lens' CreateRoutingControl (Maybe Text) Source #
Unique client idempotency token.
createRoutingControl_clusterArn :: Lens' CreateRoutingControl Text Source #
The Amazon Resource Name (ARN) of the cluster that includes the routing control.
createRoutingControl_routingControlName :: Lens' CreateRoutingControl Text Source #
The name of the routing control.
Destructuring the Response
data CreateRoutingControlResponse Source #
See: newCreateRoutingControlResponse
smart constructor.
CreateRoutingControlResponse' | |
|
Instances
newCreateRoutingControlResponse Source #
Create a value of CreateRoutingControlResponse
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:routingControl:CreateRoutingControlResponse'
, createRoutingControlResponse_routingControl
- The routing control that is created.
$sel:httpStatus:CreateRoutingControlResponse'
, createRoutingControlResponse_httpStatus
- The response's http status code.
Response Lenses
createRoutingControlResponse_routingControl :: Lens' CreateRoutingControlResponse (Maybe RoutingControl) Source #
The routing control that is created.
createRoutingControlResponse_httpStatus :: Lens' CreateRoutingControlResponse Int Source #
The response's http status code.