amazonka-route53-1.4.5: 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.GetHealthCheckLastFailureReason

Contents

Description

If you want to learn why a health check is currently failing or why it failed most recently (if at all), you can get the failure reason for the most recent failure. Send a GET request to the /Amazon Route 53 API version healthcheckhealth check ID /lastfailurereason resource.

Synopsis

Creating a Request

getHealthCheckLastFailureReason #

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

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

  • ghclfrHealthCheckId - The ID for the health check for which you want the last failure reason. When you created the health check, CreateHealthCheck returned the ID in the response, in the HealthCheckId element.

data GetHealthCheckLastFailureReason #

This action gets the reason that a specified health check failed most recently.

To get the reason for the last failure of a health check, send a GET request to the 2013-04-01healthcheckhealth check IDlastfailurereason resource.

For information about viewing the last failure reason for a health check using the Amazon Route 53 console, see Viewing Health Check Status and the Reason for Health Check Failures in the Amazon Route 53 Developer Guide .

See: getHealthCheckLastFailureReason smart constructor.

Instances

Eq GetHealthCheckLastFailureReason # 
Data GetHealthCheckLastFailureReason # 

Methods

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

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

toConstr :: GetHealthCheckLastFailureReason -> Constr #

dataTypeOf :: GetHealthCheckLastFailureReason -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetHealthCheckLastFailureReason # 
Show GetHealthCheckLastFailureReason # 
Generic GetHealthCheckLastFailureReason # 
Hashable GetHealthCheckLastFailureReason # 
NFData GetHealthCheckLastFailureReason # 
AWSRequest GetHealthCheckLastFailureReason # 
ToQuery GetHealthCheckLastFailureReason # 
ToPath GetHealthCheckLastFailureReason # 
ToHeaders GetHealthCheckLastFailureReason # 
type Rep GetHealthCheckLastFailureReason # 
type Rep GetHealthCheckLastFailureReason = D1 (MetaData "GetHealthCheckLastFailureReason" "Network.AWS.Route53.GetHealthCheckLastFailureReason" "amazonka-route53-1.4.5-1GBIEWLx4PAkG5NoOOGoJ" True) (C1 (MetaCons "GetHealthCheckLastFailureReason'" PrefixI True) (S1 (MetaSel (Just Symbol "_ghclfrHealthCheckId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetHealthCheckLastFailureReason # 

Request Lenses

ghclfrHealthCheckId :: Lens' GetHealthCheckLastFailureReason Text #

The ID for the health check for which you want the last failure reason. When you created the health check, CreateHealthCheck returned the ID in the response, in the HealthCheckId element.

Destructuring the Response

getHealthCheckLastFailureReasonResponse #

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

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

data GetHealthCheckLastFailureReasonResponse #

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

See: getHealthCheckLastFailureReasonResponse smart constructor.

Instances

Eq GetHealthCheckLastFailureReasonResponse # 
Data GetHealthCheckLastFailureReasonResponse # 

Methods

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

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

toConstr :: GetHealthCheckLastFailureReasonResponse -> Constr #

dataTypeOf :: GetHealthCheckLastFailureReasonResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetHealthCheckLastFailureReasonResponse # 
Show GetHealthCheckLastFailureReasonResponse # 
Generic GetHealthCheckLastFailureReasonResponse # 
NFData GetHealthCheckLastFailureReasonResponse # 
type Rep GetHealthCheckLastFailureReasonResponse # 
type Rep GetHealthCheckLastFailureReasonResponse = D1 (MetaData "GetHealthCheckLastFailureReasonResponse" "Network.AWS.Route53.GetHealthCheckLastFailureReason" "amazonka-route53-1.4.5-1GBIEWLx4PAkG5NoOOGoJ" False) (C1 (MetaCons "GetHealthCheckLastFailureReasonResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ghclfrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_ghclfrrsHealthCheckObservations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [HealthCheckObservation]))))

Response Lenses

ghclfrrsHealthCheckObservations :: Lens' GetHealthCheckLastFailureReasonResponse [HealthCheckObservation] #

A list that contains one Observation element for each Amazon Route 53 health checker that is reporting a last failure reason.