Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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_clientToken :: Lens' CreateRoutingControl (Maybe Text)
- createRoutingControl_controlPanelArn :: 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:clientToken:CreateRoutingControl'
, createRoutingControl_clientToken
- A unique, case-sensitive string of up to 64 ASCII characters. To make an
idempotent API request with an action, specify a client token in the
request.
CreateRoutingControl
, createRoutingControl_controlPanelArn
- The Amazon Resource Name (ARN) of the control panel that includes the
routing control.
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_clientToken :: Lens' CreateRoutingControl (Maybe Text) Source #
A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an action, specify a client token in the request.
createRoutingControl_controlPanelArn :: Lens' CreateRoutingControl (Maybe Text) Source #
The Amazon Resource Name (ARN) of the control panel that includes the routing control.
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
Generic CreateRoutingControlResponse Source # | |
Read CreateRoutingControlResponse Source # | |
Show CreateRoutingControlResponse Source # | |
NFData CreateRoutingControlResponse Source # | |
Defined in Amazonka.Route53RecoveryControlConfig.CreateRoutingControl rnf :: CreateRoutingControlResponse -> () # | |
Eq CreateRoutingControlResponse Source # | |
type Rep CreateRoutingControlResponse Source # | |
Defined in Amazonka.Route53RecoveryControlConfig.CreateRoutingControl type Rep CreateRoutingControlResponse = D1 ('MetaData "CreateRoutingControlResponse" "Amazonka.Route53RecoveryControlConfig.CreateRoutingControl" "amazonka-route53-recovery-control-config-2.0-EdxrPdjlafWED9VxY6nLf4" 'False) (C1 ('MetaCons "CreateRoutingControlResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "routingControl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RoutingControl)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.