{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Route53.GetHealthCheckLastFailureReason
-- 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)
--
-- Gets the reason that a specified health check failed most recently.
module Amazonka.Route53.GetHealthCheckLastFailureReason
  ( -- * Creating a Request
    GetHealthCheckLastFailureReason (..),
    newGetHealthCheckLastFailureReason,

    -- * Request Lenses
    getHealthCheckLastFailureReason_healthCheckId,

    -- * Destructuring the Response
    GetHealthCheckLastFailureReasonResponse (..),
    newGetHealthCheckLastFailureReasonResponse,

    -- * Response Lenses
    getHealthCheckLastFailureReasonResponse_httpStatus,
    getHealthCheckLastFailureReasonResponse_healthCheckObservations,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Route53.Types

-- | A request for the reason that a health check failed most recently.
--
-- /See:/ 'newGetHealthCheckLastFailureReason' smart constructor.
data GetHealthCheckLastFailureReason = GetHealthCheckLastFailureReason'
  { -- | 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.
    --
    -- If you want to get the last failure reason for a calculated health
    -- check, you must use the Amazon Route 53 console or the CloudWatch
    -- console. You can\'t use @GetHealthCheckLastFailureReason@ for a
    -- calculated health check.
    GetHealthCheckLastFailureReason -> Text
healthCheckId :: Prelude.Text
  }
  deriving (GetHealthCheckLastFailureReason
-> GetHealthCheckLastFailureReason -> Bool
(GetHealthCheckLastFailureReason
 -> GetHealthCheckLastFailureReason -> Bool)
-> (GetHealthCheckLastFailureReason
    -> GetHealthCheckLastFailureReason -> Bool)
-> Eq GetHealthCheckLastFailureReason
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetHealthCheckLastFailureReason
-> GetHealthCheckLastFailureReason -> Bool
$c/= :: GetHealthCheckLastFailureReason
-> GetHealthCheckLastFailureReason -> Bool
== :: GetHealthCheckLastFailureReason
-> GetHealthCheckLastFailureReason -> Bool
$c== :: GetHealthCheckLastFailureReason
-> GetHealthCheckLastFailureReason -> Bool
Prelude.Eq, ReadPrec [GetHealthCheckLastFailureReason]
ReadPrec GetHealthCheckLastFailureReason
Int -> ReadS GetHealthCheckLastFailureReason
ReadS [GetHealthCheckLastFailureReason]
(Int -> ReadS GetHealthCheckLastFailureReason)
-> ReadS [GetHealthCheckLastFailureReason]
-> ReadPrec GetHealthCheckLastFailureReason
-> ReadPrec [GetHealthCheckLastFailureReason]
-> Read GetHealthCheckLastFailureReason
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetHealthCheckLastFailureReason]
$creadListPrec :: ReadPrec [GetHealthCheckLastFailureReason]
readPrec :: ReadPrec GetHealthCheckLastFailureReason
$creadPrec :: ReadPrec GetHealthCheckLastFailureReason
readList :: ReadS [GetHealthCheckLastFailureReason]
$creadList :: ReadS [GetHealthCheckLastFailureReason]
readsPrec :: Int -> ReadS GetHealthCheckLastFailureReason
$creadsPrec :: Int -> ReadS GetHealthCheckLastFailureReason
Prelude.Read, Int -> GetHealthCheckLastFailureReason -> ShowS
[GetHealthCheckLastFailureReason] -> ShowS
GetHealthCheckLastFailureReason -> String
(Int -> GetHealthCheckLastFailureReason -> ShowS)
-> (GetHealthCheckLastFailureReason -> String)
-> ([GetHealthCheckLastFailureReason] -> ShowS)
-> Show GetHealthCheckLastFailureReason
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetHealthCheckLastFailureReason] -> ShowS
$cshowList :: [GetHealthCheckLastFailureReason] -> ShowS
show :: GetHealthCheckLastFailureReason -> String
$cshow :: GetHealthCheckLastFailureReason -> String
showsPrec :: Int -> GetHealthCheckLastFailureReason -> ShowS
$cshowsPrec :: Int -> GetHealthCheckLastFailureReason -> ShowS
Prelude.Show, (forall x.
 GetHealthCheckLastFailureReason
 -> Rep GetHealthCheckLastFailureReason x)
-> (forall x.
    Rep GetHealthCheckLastFailureReason x
    -> GetHealthCheckLastFailureReason)
-> Generic GetHealthCheckLastFailureReason
forall x.
Rep GetHealthCheckLastFailureReason x
-> GetHealthCheckLastFailureReason
forall x.
GetHealthCheckLastFailureReason
-> Rep GetHealthCheckLastFailureReason x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetHealthCheckLastFailureReason x
-> GetHealthCheckLastFailureReason
$cfrom :: forall x.
GetHealthCheckLastFailureReason
-> Rep GetHealthCheckLastFailureReason x
Prelude.Generic)

-- |
-- Create a value of 'GetHealthCheckLastFailureReason' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'healthCheckId', 'getHealthCheckLastFailureReason_healthCheckId' - 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.
--
-- If you want to get the last failure reason for a calculated health
-- check, you must use the Amazon Route 53 console or the CloudWatch
-- console. You can\'t use @GetHealthCheckLastFailureReason@ for a
-- calculated health check.
newGetHealthCheckLastFailureReason ::
  -- | 'healthCheckId'
  Prelude.Text ->
  GetHealthCheckLastFailureReason
newGetHealthCheckLastFailureReason :: Text -> GetHealthCheckLastFailureReason
newGetHealthCheckLastFailureReason Text
pHealthCheckId_ =
  GetHealthCheckLastFailureReason' :: Text -> GetHealthCheckLastFailureReason
GetHealthCheckLastFailureReason'
    { $sel:healthCheckId:GetHealthCheckLastFailureReason' :: Text
healthCheckId =
        Text
pHealthCheckId_
    }

-- | 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.
--
-- If you want to get the last failure reason for a calculated health
-- check, you must use the Amazon Route 53 console or the CloudWatch
-- console. You can\'t use @GetHealthCheckLastFailureReason@ for a
-- calculated health check.
getHealthCheckLastFailureReason_healthCheckId :: Lens.Lens' GetHealthCheckLastFailureReason Prelude.Text
getHealthCheckLastFailureReason_healthCheckId :: (Text -> f Text)
-> GetHealthCheckLastFailureReason
-> f GetHealthCheckLastFailureReason
getHealthCheckLastFailureReason_healthCheckId = (GetHealthCheckLastFailureReason -> Text)
-> (GetHealthCheckLastFailureReason
    -> Text -> GetHealthCheckLastFailureReason)
-> Lens
     GetHealthCheckLastFailureReason
     GetHealthCheckLastFailureReason
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetHealthCheckLastFailureReason' {Text
healthCheckId :: Text
$sel:healthCheckId:GetHealthCheckLastFailureReason' :: GetHealthCheckLastFailureReason -> Text
healthCheckId} -> Text
healthCheckId) (\s :: GetHealthCheckLastFailureReason
s@GetHealthCheckLastFailureReason' {} Text
a -> GetHealthCheckLastFailureReason
s {$sel:healthCheckId:GetHealthCheckLastFailureReason' :: Text
healthCheckId = Text
a} :: GetHealthCheckLastFailureReason)

instance
  Core.AWSRequest
    GetHealthCheckLastFailureReason
  where
  type
    AWSResponse GetHealthCheckLastFailureReason =
      GetHealthCheckLastFailureReasonResponse
  request :: GetHealthCheckLastFailureReason
-> Request GetHealthCheckLastFailureReason
request = Service
-> GetHealthCheckLastFailureReason
-> Request GetHealthCheckLastFailureReason
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetHealthCheckLastFailureReason
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetHealthCheckLastFailureReason)))
response =
    (Int
 -> ResponseHeaders
 -> [Node]
 -> Either String (AWSResponse GetHealthCheckLastFailureReason))
-> Logger
-> Service
-> Proxy GetHealthCheckLastFailureReason
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetHealthCheckLastFailureReason)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Int
-> [HealthCheckObservation]
-> GetHealthCheckLastFailureReasonResponse
GetHealthCheckLastFailureReasonResponse'
            (Int
 -> [HealthCheckObservation]
 -> GetHealthCheckLastFailureReasonResponse)
-> Either String Int
-> Either
     String
     ([HealthCheckObservation]
      -> GetHealthCheckLastFailureReasonResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            Either
  String
  ([HealthCheckObservation]
   -> GetHealthCheckLastFailureReasonResponse)
-> Either String [HealthCheckObservation]
-> Either String GetHealthCheckLastFailureReasonResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"HealthCheckObservations"
                            Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
                            Either String [Node]
-> ([Node] -> Either String [HealthCheckObservation])
-> Either String [HealthCheckObservation]
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= Text -> [Node] -> Either String [HealthCheckObservation]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"HealthCheckObservation"
                        )
      )

instance
  Prelude.Hashable
    GetHealthCheckLastFailureReason

instance
  Prelude.NFData
    GetHealthCheckLastFailureReason

instance
  Core.ToHeaders
    GetHealthCheckLastFailureReason
  where
  toHeaders :: GetHealthCheckLastFailureReason -> ResponseHeaders
toHeaders = ResponseHeaders
-> GetHealthCheckLastFailureReason -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToPath GetHealthCheckLastFailureReason where
  toPath :: GetHealthCheckLastFailureReason -> ByteString
toPath GetHealthCheckLastFailureReason' {Text
healthCheckId :: Text
$sel:healthCheckId:GetHealthCheckLastFailureReason' :: GetHealthCheckLastFailureReason -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/2013-04-01/healthcheck/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
healthCheckId,
        ByteString
"/lastfailurereason"
      ]

instance Core.ToQuery GetHealthCheckLastFailureReason where
  toQuery :: GetHealthCheckLastFailureReason -> QueryString
toQuery = QueryString -> GetHealthCheckLastFailureReason -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | A complex type that contains the response to a
-- @GetHealthCheckLastFailureReason@ request.
--
-- /See:/ 'newGetHealthCheckLastFailureReasonResponse' smart constructor.
data GetHealthCheckLastFailureReasonResponse = GetHealthCheckLastFailureReasonResponse'
  { -- | The response's http status code.
    GetHealthCheckLastFailureReasonResponse -> Int
httpStatus :: Prelude.Int,
    -- | A list that contains one @Observation@ element for each Amazon Route 53
    -- health checker that is reporting a last failure reason.
    GetHealthCheckLastFailureReasonResponse -> [HealthCheckObservation]
healthCheckObservations :: [HealthCheckObservation]
  }
  deriving (GetHealthCheckLastFailureReasonResponse
-> GetHealthCheckLastFailureReasonResponse -> Bool
(GetHealthCheckLastFailureReasonResponse
 -> GetHealthCheckLastFailureReasonResponse -> Bool)
-> (GetHealthCheckLastFailureReasonResponse
    -> GetHealthCheckLastFailureReasonResponse -> Bool)
-> Eq GetHealthCheckLastFailureReasonResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetHealthCheckLastFailureReasonResponse
-> GetHealthCheckLastFailureReasonResponse -> Bool
$c/= :: GetHealthCheckLastFailureReasonResponse
-> GetHealthCheckLastFailureReasonResponse -> Bool
== :: GetHealthCheckLastFailureReasonResponse
-> GetHealthCheckLastFailureReasonResponse -> Bool
$c== :: GetHealthCheckLastFailureReasonResponse
-> GetHealthCheckLastFailureReasonResponse -> Bool
Prelude.Eq, ReadPrec [GetHealthCheckLastFailureReasonResponse]
ReadPrec GetHealthCheckLastFailureReasonResponse
Int -> ReadS GetHealthCheckLastFailureReasonResponse
ReadS [GetHealthCheckLastFailureReasonResponse]
(Int -> ReadS GetHealthCheckLastFailureReasonResponse)
-> ReadS [GetHealthCheckLastFailureReasonResponse]
-> ReadPrec GetHealthCheckLastFailureReasonResponse
-> ReadPrec [GetHealthCheckLastFailureReasonResponse]
-> Read GetHealthCheckLastFailureReasonResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetHealthCheckLastFailureReasonResponse]
$creadListPrec :: ReadPrec [GetHealthCheckLastFailureReasonResponse]
readPrec :: ReadPrec GetHealthCheckLastFailureReasonResponse
$creadPrec :: ReadPrec GetHealthCheckLastFailureReasonResponse
readList :: ReadS [GetHealthCheckLastFailureReasonResponse]
$creadList :: ReadS [GetHealthCheckLastFailureReasonResponse]
readsPrec :: Int -> ReadS GetHealthCheckLastFailureReasonResponse
$creadsPrec :: Int -> ReadS GetHealthCheckLastFailureReasonResponse
Prelude.Read, Int -> GetHealthCheckLastFailureReasonResponse -> ShowS
[GetHealthCheckLastFailureReasonResponse] -> ShowS
GetHealthCheckLastFailureReasonResponse -> String
(Int -> GetHealthCheckLastFailureReasonResponse -> ShowS)
-> (GetHealthCheckLastFailureReasonResponse -> String)
-> ([GetHealthCheckLastFailureReasonResponse] -> ShowS)
-> Show GetHealthCheckLastFailureReasonResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetHealthCheckLastFailureReasonResponse] -> ShowS
$cshowList :: [GetHealthCheckLastFailureReasonResponse] -> ShowS
show :: GetHealthCheckLastFailureReasonResponse -> String
$cshow :: GetHealthCheckLastFailureReasonResponse -> String
showsPrec :: Int -> GetHealthCheckLastFailureReasonResponse -> ShowS
$cshowsPrec :: Int -> GetHealthCheckLastFailureReasonResponse -> ShowS
Prelude.Show, (forall x.
 GetHealthCheckLastFailureReasonResponse
 -> Rep GetHealthCheckLastFailureReasonResponse x)
-> (forall x.
    Rep GetHealthCheckLastFailureReasonResponse x
    -> GetHealthCheckLastFailureReasonResponse)
-> Generic GetHealthCheckLastFailureReasonResponse
forall x.
Rep GetHealthCheckLastFailureReasonResponse x
-> GetHealthCheckLastFailureReasonResponse
forall x.
GetHealthCheckLastFailureReasonResponse
-> Rep GetHealthCheckLastFailureReasonResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetHealthCheckLastFailureReasonResponse x
-> GetHealthCheckLastFailureReasonResponse
$cfrom :: forall x.
GetHealthCheckLastFailureReasonResponse
-> Rep GetHealthCheckLastFailureReasonResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetHealthCheckLastFailureReasonResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'httpStatus', 'getHealthCheckLastFailureReasonResponse_httpStatus' - The response's http status code.
--
-- 'healthCheckObservations', 'getHealthCheckLastFailureReasonResponse_healthCheckObservations' - A list that contains one @Observation@ element for each Amazon Route 53
-- health checker that is reporting a last failure reason.
newGetHealthCheckLastFailureReasonResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetHealthCheckLastFailureReasonResponse
newGetHealthCheckLastFailureReasonResponse :: Int -> GetHealthCheckLastFailureReasonResponse
newGetHealthCheckLastFailureReasonResponse
  Int
pHttpStatus_ =
    GetHealthCheckLastFailureReasonResponse' :: Int
-> [HealthCheckObservation]
-> GetHealthCheckLastFailureReasonResponse
GetHealthCheckLastFailureReasonResponse'
      { $sel:httpStatus:GetHealthCheckLastFailureReasonResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:healthCheckObservations:GetHealthCheckLastFailureReasonResponse' :: [HealthCheckObservation]
healthCheckObservations =
          [HealthCheckObservation]
forall a. Monoid a => a
Prelude.mempty
      }

-- | The response's http status code.
getHealthCheckLastFailureReasonResponse_httpStatus :: Lens.Lens' GetHealthCheckLastFailureReasonResponse Prelude.Int
getHealthCheckLastFailureReasonResponse_httpStatus :: (Int -> f Int)
-> GetHealthCheckLastFailureReasonResponse
-> f GetHealthCheckLastFailureReasonResponse
getHealthCheckLastFailureReasonResponse_httpStatus = (GetHealthCheckLastFailureReasonResponse -> Int)
-> (GetHealthCheckLastFailureReasonResponse
    -> Int -> GetHealthCheckLastFailureReasonResponse)
-> Lens
     GetHealthCheckLastFailureReasonResponse
     GetHealthCheckLastFailureReasonResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetHealthCheckLastFailureReasonResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetHealthCheckLastFailureReasonResponse' :: GetHealthCheckLastFailureReasonResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetHealthCheckLastFailureReasonResponse
s@GetHealthCheckLastFailureReasonResponse' {} Int
a -> GetHealthCheckLastFailureReasonResponse
s {$sel:httpStatus:GetHealthCheckLastFailureReasonResponse' :: Int
httpStatus = Int
a} :: GetHealthCheckLastFailureReasonResponse)

-- | A list that contains one @Observation@ element for each Amazon Route 53
-- health checker that is reporting a last failure reason.
getHealthCheckLastFailureReasonResponse_healthCheckObservations :: Lens.Lens' GetHealthCheckLastFailureReasonResponse [HealthCheckObservation]
getHealthCheckLastFailureReasonResponse_healthCheckObservations :: ([HealthCheckObservation] -> f [HealthCheckObservation])
-> GetHealthCheckLastFailureReasonResponse
-> f GetHealthCheckLastFailureReasonResponse
getHealthCheckLastFailureReasonResponse_healthCheckObservations = (GetHealthCheckLastFailureReasonResponse
 -> [HealthCheckObservation])
-> (GetHealthCheckLastFailureReasonResponse
    -> [HealthCheckObservation]
    -> GetHealthCheckLastFailureReasonResponse)
-> Lens
     GetHealthCheckLastFailureReasonResponse
     GetHealthCheckLastFailureReasonResponse
     [HealthCheckObservation]
     [HealthCheckObservation]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetHealthCheckLastFailureReasonResponse' {[HealthCheckObservation]
healthCheckObservations :: [HealthCheckObservation]
$sel:healthCheckObservations:GetHealthCheckLastFailureReasonResponse' :: GetHealthCheckLastFailureReasonResponse -> [HealthCheckObservation]
healthCheckObservations} -> [HealthCheckObservation]
healthCheckObservations) (\s :: GetHealthCheckLastFailureReasonResponse
s@GetHealthCheckLastFailureReasonResponse' {} [HealthCheckObservation]
a -> GetHealthCheckLastFailureReasonResponse
s {$sel:healthCheckObservations:GetHealthCheckLastFailureReasonResponse' :: [HealthCheckObservation]
healthCheckObservations = [HealthCheckObservation]
a} :: GetHealthCheckLastFailureReasonResponse) (([HealthCheckObservation] -> f [HealthCheckObservation])
 -> GetHealthCheckLastFailureReasonResponse
 -> f GetHealthCheckLastFailureReasonResponse)
-> (([HealthCheckObservation] -> f [HealthCheckObservation])
    -> [HealthCheckObservation] -> f [HealthCheckObservation])
-> ([HealthCheckObservation] -> f [HealthCheckObservation])
-> GetHealthCheckLastFailureReasonResponse
-> f GetHealthCheckLastFailureReasonResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([HealthCheckObservation] -> f [HealthCheckObservation])
-> [HealthCheckObservation] -> f [HealthCheckObservation]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    GetHealthCheckLastFailureReasonResponse