amazonka-route53-1.4.4: Amazon Route 53 SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Route53.GetHealthCheckStatus

Contents

Description

Gets status of a specified health check. Send a GET request to the '/2013-04-01/healthcheck/health check ID/status' resource. You can use this call to get a health check's current status.

Synopsis

Creating a Request

getHealthCheckStatus Source #

Creates a value of GetHealthCheckStatus with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetHealthCheckStatus Source #

A complex type that contains information about the request to get health check status for a health check.

See: getHealthCheckStatus smart constructor.

Instances

Eq GetHealthCheckStatus Source # 
Data GetHealthCheckStatus Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetHealthCheckStatus -> c GetHealthCheckStatus #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetHealthCheckStatus #

toConstr :: GetHealthCheckStatus -> Constr #

dataTypeOf :: GetHealthCheckStatus -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetHealthCheckStatus) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetHealthCheckStatus) #

gmapT :: (forall b. Data b => b -> b) -> GetHealthCheckStatus -> GetHealthCheckStatus #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetHealthCheckStatus -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetHealthCheckStatus -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetHealthCheckStatus -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetHealthCheckStatus -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetHealthCheckStatus -> m GetHealthCheckStatus #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetHealthCheckStatus -> m GetHealthCheckStatus #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetHealthCheckStatus -> m GetHealthCheckStatus #

Read GetHealthCheckStatus Source # 
Show GetHealthCheckStatus Source # 
Generic GetHealthCheckStatus Source # 
Hashable GetHealthCheckStatus Source # 
NFData GetHealthCheckStatus Source # 

Methods

rnf :: GetHealthCheckStatus -> () #

AWSRequest GetHealthCheckStatus Source # 
ToPath GetHealthCheckStatus Source # 
ToHeaders GetHealthCheckStatus Source # 
ToQuery GetHealthCheckStatus Source # 
type Rep GetHealthCheckStatus Source # 
type Rep GetHealthCheckStatus = D1 (MetaData "GetHealthCheckStatus" "Network.AWS.Route53.GetHealthCheckStatus" "amazonka-route53-1.4.4-KBIXDpJOcpkWbDD9G5tXJ" True) (C1 (MetaCons "GetHealthCheckStatus'" PrefixI True) (S1 (MetaSel (Just Symbol "_ghcsHealthCheckId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetHealthCheckStatus Source # 

Request Lenses

ghcsHealthCheckId :: Lens' GetHealthCheckStatus Text Source #

If you want Amazon Route 53 to return this resource record set in response to a DNS query only when a health check is passing, include the HealthCheckId element and specify the ID of the applicable health check.

Amazon Route 53 determines whether a resource record set is healthy by periodically sending a request to the endpoint that is specified in the health check. If that endpoint returns an HTTP status code of 2xx or 3xx, the endpoint is healthy. If the endpoint returns an HTTP status code of 400 or greater, or if the endpoint doesn't respond for a certain amount of time, Amazon Route 53 considers the endpoint unhealthy and also considers the resource record set unhealthy.

The HealthCheckId element is only useful when Amazon Route 53 is choosing between two or more resource record sets to respond to a DNS query, and you want Amazon Route 53 to base the choice in part on the status of a health check. Configuring health checks only makes sense in the following configurations:

  • You're checking the health of the resource record sets in a weighted, latency, geolocation, or failover resource record set, and you specify health check IDs for all of the resource record sets. If the health check for one resource record set specifies an endpoint that is not healthy, Amazon Route 53 stops responding to queries using the value for that resource record set.
  • You set EvaluateTargetHealth to true for the resource record sets in an alias, weighted alias, latency alias, geolocation alias, or failover alias resource record set, and you specify health check IDs for all of the resource record sets that are referenced by the alias resource record sets. For more information about this configuration, see EvaluateTargetHealth.

    Amazon Route 53 doesn't check the health of the endpoint specified in the resource record set, for example, the endpoint specified by the IP address in the Value element. When you add a HealthCheckId element to a resource record set, Amazon Route 53 checks the health of the endpoint that you specified in the health check.

For geolocation resource record sets, if an endpoint is unhealthy, Amazon Route 53 looks for a resource record set for the larger, associated geographic region. For example, suppose you have resource record sets for a state in the United States, for the United States, for North America, and for all locations. If the endpoint for the state resource record set is unhealthy, Amazon Route 53 checks the resource record sets for the United States, for North America, and for all locations (a resource record set for which the value of CountryCode is *), in that order, until it finds a resource record set for which the endpoint is healthy.

If your health checks specify the endpoint only by domain name, we recommend that you create a separate health check for each endpoint. For example, create a health check for each HTTP server that is serving content for www.example.com. For the value of FullyQualifiedDomainName, specify the domain name of the server (such as 'us-east-1-www.example.com'), not the name of the resource record sets (example.com).

In this configuration, if you create a health check for which the value of FullyQualifiedDomainName matches the name of the resource record sets and then associate the health check with those resource record sets, health check results will be unpredictable.

Destructuring the Response

getHealthCheckStatusResponse Source #

Creates a value of GetHealthCheckStatusResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetHealthCheckStatusResponse Source #

A complex type that contains the response to a GetHealthCheck request.

See: getHealthCheckStatusResponse smart constructor.

Instances

Eq GetHealthCheckStatusResponse Source # 
Data GetHealthCheckStatusResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetHealthCheckStatusResponse -> c GetHealthCheckStatusResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetHealthCheckStatusResponse #

toConstr :: GetHealthCheckStatusResponse -> Constr #

dataTypeOf :: GetHealthCheckStatusResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetHealthCheckStatusResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetHealthCheckStatusResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetHealthCheckStatusResponse -> GetHealthCheckStatusResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetHealthCheckStatusResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetHealthCheckStatusResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetHealthCheckStatusResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetHealthCheckStatusResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetHealthCheckStatusResponse -> m GetHealthCheckStatusResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetHealthCheckStatusResponse -> m GetHealthCheckStatusResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetHealthCheckStatusResponse -> m GetHealthCheckStatusResponse #

Read GetHealthCheckStatusResponse Source # 
Show GetHealthCheckStatusResponse Source # 
Generic GetHealthCheckStatusResponse Source # 
NFData GetHealthCheckStatusResponse Source # 
type Rep GetHealthCheckStatusResponse Source # 
type Rep GetHealthCheckStatusResponse = D1 (MetaData "GetHealthCheckStatusResponse" "Network.AWS.Route53.GetHealthCheckStatus" "amazonka-route53-1.4.4-KBIXDpJOcpkWbDD9G5tXJ" False) (C1 (MetaCons "GetHealthCheckStatusResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ghcsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_ghcsrsHealthCheckObservations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [HealthCheckObservation]))))

Response Lenses

ghcsrsHealthCheckObservations :: Lens' GetHealthCheckStatusResponse [HealthCheckObservation] Source #

A list that contains one HealthCheckObservation element for each Amazon Route 53 health checker that is reporting a status about the health check endpoint.