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 |
Derived from API version 2019-12-02
of the AWS service descriptions, licensed under Apache 2.0.
Welcome to the Amazon Route 53 Application Recovery Controller API Reference Guide for Recovery Control Data Plane .
Recovery control in Route 53 Application Recovery Controller includes extremely reliable routing controls that enable you to recover applications by rerouting traffic, for example, across Availability Zones or AWS Regions. Routing controls are simple on/off switches hosted on a cluster. A cluster is a set of five redundant regional endpoints against which you can execute API calls to update or get the state of routing controls. You use routing controls to failover traffic to recover your application across Availability Zones or Regions.
This API guide includes information about how to get and update routing control states in Route 53 Application Recovery Controller.
For more information about Route 53 Application Recovery Controller, see the following:
- You can create clusters, routing controls, and control panels by using the control plane API for Recovery Control. For more information, see Amazon Route 53 Application Recovery Controller Recovery Control API Reference.
- Route 53 Application Recovery Controller also provides continuous readiness checks to ensure that your applications are scaled to handle failover traffic. For more information about the related API actions, see Amazon Route 53 Application Recovery Controller Recovery Readiness API Reference.
- For more information about creating resilient applications and preparing for recovery readiness with Route 53 Application Recovery Controller, see the Amazon Route 53 Application Recovery Controller Developer Guide.
Synopsis
- defaultService :: Service
- _ValidationException :: AsError a => Getting (First ServiceError) a ServiceError
- _AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError
- _ConflictException :: AsError a => Getting (First ServiceError) a ServiceError
- _ThrottlingException :: AsError a => Getting (First ServiceError) a ServiceError
- _InternalServerException :: AsError a => Getting (First ServiceError) a ServiceError
- _EndpointTemporarilyUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- data UpdateRoutingControlState = UpdateRoutingControlState' Text RoutingControlState
- newUpdateRoutingControlState :: Text -> RoutingControlState -> UpdateRoutingControlState
- data UpdateRoutingControlStateResponse = UpdateRoutingControlStateResponse' Int
- newUpdateRoutingControlStateResponse :: Int -> UpdateRoutingControlStateResponse
- data GetRoutingControlState = GetRoutingControlState' Text
- newGetRoutingControlState :: Text -> GetRoutingControlState
- data GetRoutingControlStateResponse = GetRoutingControlStateResponse' Int Text RoutingControlState
- newGetRoutingControlStateResponse :: Int -> Text -> RoutingControlState -> GetRoutingControlStateResponse
- data UpdateRoutingControlStates = UpdateRoutingControlStates' [UpdateRoutingControlStateEntry]
- newUpdateRoutingControlStates :: UpdateRoutingControlStates
- data UpdateRoutingControlStatesResponse = UpdateRoutingControlStatesResponse' Int
- newUpdateRoutingControlStatesResponse :: Int -> UpdateRoutingControlStatesResponse
- newtype RoutingControlState where
- RoutingControlState' { }
- pattern RoutingControlState_Off :: RoutingControlState
- pattern RoutingControlState_On :: RoutingControlState
- data UpdateRoutingControlStateEntry = UpdateRoutingControlStateEntry' Text RoutingControlState
- newUpdateRoutingControlStateEntry :: Text -> RoutingControlState -> UpdateRoutingControlStateEntry
Service Configuration
defaultService :: Service Source #
API version 2019-12-02
of the Amazon Route53 Recovery Cluster SDK configuration.
Errors
Error matchers are designed for use with the functions provided by
Control.Exception.Lens.
This allows catching (and rethrowing) service specific errors returned
by Route53RecoveryCluster
.
ValidationException
_ValidationException :: AsError a => Getting (First ServiceError) a ServiceError Source #
There was a validation error on the request.
AccessDeniedException
_AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
You don't have sufficient permissions to query the routing control state.
ConflictException
_ConflictException :: AsError a => Getting (First ServiceError) a ServiceError Source #
There was a conflict with this request. Try again.
ThrottlingException
_ThrottlingException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The request was denied because of request throttling.
InternalServerException
_InternalServerException :: AsError a => Getting (First ServiceError) a ServiceError Source #
There was an unexpected error during processing of the request.
EndpointTemporarilyUnavailableException
_EndpointTemporarilyUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The cluster endpoint isn't available. Try another cluster endpoint.
ResourceNotFoundException
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The request references a routing control that was not found.
Waiters
Waiters poll by repeatedly sending a request until some remote success condition
configured by the Wait
specification is fulfilled. The Wait
specification
determines how many attempts should be made, in addition to delay and retry strategies.
Operations
Some AWS operations return results that are incomplete and require subsequent
requests in order to obtain the entire result set. The process of sending
subsequent requests to continue where a previous request left off is called
pagination. For example, the ListObjects
operation of Amazon S3 returns up to
1000 objects at a time, and you must send subsequent requests with the
appropriate Marker in order to retrieve the next page of results.
Operations that have an AWSPager
instance can transparently perform subsequent
requests, correctly setting Markers and other request facets to iterate through
the entire result set of a truncated API operation. Operations which support
this have an additional note in the documentation.
Many operations have the ability to filter results on the server side. See the individual operation parameters for details.
UpdateRoutingControlState
data UpdateRoutingControlState Source #
See: newUpdateRoutingControlState
smart constructor.
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.
data UpdateRoutingControlStateResponse Source #
See: newUpdateRoutingControlStateResponse
smart constructor.
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.
GetRoutingControlState
data GetRoutingControlState Source #
See: newGetRoutingControlState
smart constructor.
Instances
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:
$sel:routingControlArn:GetRoutingControlState'
, getRoutingControlState_routingControlArn
- The Amazon Resource Number (ARN) for the routing control that you want
to get the state for.
data GetRoutingControlStateResponse Source #
See: newGetRoutingControlStateResponse
smart constructor.
Instances
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:
$sel:httpStatus:GetRoutingControlStateResponse'
, getRoutingControlStateResponse_httpStatus
- The response's http status code.
$sel:routingControlArn:GetRoutingControlState'
, getRoutingControlStateResponse_routingControlArn
- The Amazon Resource Number (ARN) of the response.
$sel:routingControlState:GetRoutingControlStateResponse'
, getRoutingControlStateResponse_routingControlState
- The state of the routing control.
UpdateRoutingControlStates
data UpdateRoutingControlStates Source #
See: newUpdateRoutingControlStates
smart constructor.
Instances
newUpdateRoutingControlStates :: UpdateRoutingControlStates Source #
Create a value of UpdateRoutingControlStates
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:updateRoutingControlStateEntries:UpdateRoutingControlStates'
, updateRoutingControlStates_updateRoutingControlStateEntries
- A set of routing control entries that you want to update.
data UpdateRoutingControlStatesResponse Source #
See: newUpdateRoutingControlStatesResponse
smart constructor.
Instances
Eq UpdateRoutingControlStatesResponse Source # | |
Read UpdateRoutingControlStatesResponse Source # | |
Show UpdateRoutingControlStatesResponse Source # | |
Generic UpdateRoutingControlStatesResponse Source # | |
Defined in Amazonka.Route53RecoveryCluster.UpdateRoutingControlStates type Rep UpdateRoutingControlStatesResponse :: Type -> Type # | |
NFData UpdateRoutingControlStatesResponse Source # | |
type Rep UpdateRoutingControlStatesResponse Source # | |
Defined in Amazonka.Route53RecoveryCluster.UpdateRoutingControlStates type Rep UpdateRoutingControlStatesResponse = D1 ('MetaData "UpdateRoutingControlStatesResponse" "Amazonka.Route53RecoveryCluster.UpdateRoutingControlStates" "libZSservicesZSamazonka-route53-recovery-clusterZSamazonka-route53-recovery-cluster" 'False) (C1 ('MetaCons "UpdateRoutingControlStatesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateRoutingControlStatesResponse Source #
Create a value of UpdateRoutingControlStatesResponse
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:UpdateRoutingControlStatesResponse'
, updateRoutingControlStatesResponse_httpStatus
- The response's http status code.
Types
RoutingControlState
newtype RoutingControlState Source #
pattern RoutingControlState_Off :: RoutingControlState | |
pattern RoutingControlState_On :: RoutingControlState |
Instances
UpdateRoutingControlStateEntry
data UpdateRoutingControlStateEntry Source #
A routing control state.
See: newUpdateRoutingControlStateEntry
smart constructor.
Instances
newUpdateRoutingControlStateEntry Source #
Create a value of UpdateRoutingControlStateEntry
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:UpdateRoutingControlStateEntry'
, updateRoutingControlStateEntry_routingControlArn
- The Amazon Resource Number (ARN) for the routing control state entry.
$sel:routingControlState:UpdateRoutingControlStateEntry'
, updateRoutingControlStateEntry_routingControlState
- The routing control state in a set of routing control state entries.