{-# 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.Route53RecoveryReadiness.GetReadinessCheck
-- 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)
--
-- Returns information about a ReadinessCheck.
module Amazonka.Route53RecoveryReadiness.GetReadinessCheck
  ( -- * Creating a Request
    GetReadinessCheck (..),
    newGetReadinessCheck,

    -- * Request Lenses
    getReadinessCheck_readinessCheckName,

    -- * Destructuring the Response
    GetReadinessCheckResponse (..),
    newGetReadinessCheckResponse,

    -- * Response Lenses
    getReadinessCheckResponse_readinessCheckName,
    getReadinessCheckResponse_resourceSet,
    getReadinessCheckResponse_readinessCheckArn,
    getReadinessCheckResponse_tags,
    getReadinessCheckResponse_httpStatus,
  )
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.Route53RecoveryReadiness.Types

-- | /See:/ 'newGetReadinessCheck' smart constructor.
data GetReadinessCheck = GetReadinessCheck'
  { -- | The ReadinessCheck to get
    GetReadinessCheck -> Text
readinessCheckName :: Prelude.Text
  }
  deriving (GetReadinessCheck -> GetReadinessCheck -> Bool
(GetReadinessCheck -> GetReadinessCheck -> Bool)
-> (GetReadinessCheck -> GetReadinessCheck -> Bool)
-> Eq GetReadinessCheck
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetReadinessCheck -> GetReadinessCheck -> Bool
$c/= :: GetReadinessCheck -> GetReadinessCheck -> Bool
== :: GetReadinessCheck -> GetReadinessCheck -> Bool
$c== :: GetReadinessCheck -> GetReadinessCheck -> Bool
Prelude.Eq, ReadPrec [GetReadinessCheck]
ReadPrec GetReadinessCheck
Int -> ReadS GetReadinessCheck
ReadS [GetReadinessCheck]
(Int -> ReadS GetReadinessCheck)
-> ReadS [GetReadinessCheck]
-> ReadPrec GetReadinessCheck
-> ReadPrec [GetReadinessCheck]
-> Read GetReadinessCheck
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetReadinessCheck]
$creadListPrec :: ReadPrec [GetReadinessCheck]
readPrec :: ReadPrec GetReadinessCheck
$creadPrec :: ReadPrec GetReadinessCheck
readList :: ReadS [GetReadinessCheck]
$creadList :: ReadS [GetReadinessCheck]
readsPrec :: Int -> ReadS GetReadinessCheck
$creadsPrec :: Int -> ReadS GetReadinessCheck
Prelude.Read, Int -> GetReadinessCheck -> ShowS
[GetReadinessCheck] -> ShowS
GetReadinessCheck -> String
(Int -> GetReadinessCheck -> ShowS)
-> (GetReadinessCheck -> String)
-> ([GetReadinessCheck] -> ShowS)
-> Show GetReadinessCheck
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetReadinessCheck] -> ShowS
$cshowList :: [GetReadinessCheck] -> ShowS
show :: GetReadinessCheck -> String
$cshow :: GetReadinessCheck -> String
showsPrec :: Int -> GetReadinessCheck -> ShowS
$cshowsPrec :: Int -> GetReadinessCheck -> ShowS
Prelude.Show, (forall x. GetReadinessCheck -> Rep GetReadinessCheck x)
-> (forall x. Rep GetReadinessCheck x -> GetReadinessCheck)
-> Generic GetReadinessCheck
forall x. Rep GetReadinessCheck x -> GetReadinessCheck
forall x. GetReadinessCheck -> Rep GetReadinessCheck x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetReadinessCheck x -> GetReadinessCheck
$cfrom :: forall x. GetReadinessCheck -> Rep GetReadinessCheck x
Prelude.Generic)

-- |
-- Create a value of 'GetReadinessCheck' 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:
--
-- 'readinessCheckName', 'getReadinessCheck_readinessCheckName' - The ReadinessCheck to get
newGetReadinessCheck ::
  -- | 'readinessCheckName'
  Prelude.Text ->
  GetReadinessCheck
newGetReadinessCheck :: Text -> GetReadinessCheck
newGetReadinessCheck Text
pReadinessCheckName_ =
  GetReadinessCheck' :: Text -> GetReadinessCheck
GetReadinessCheck'
    { $sel:readinessCheckName:GetReadinessCheck' :: Text
readinessCheckName =
        Text
pReadinessCheckName_
    }

-- | The ReadinessCheck to get
getReadinessCheck_readinessCheckName :: Lens.Lens' GetReadinessCheck Prelude.Text
getReadinessCheck_readinessCheckName :: (Text -> f Text) -> GetReadinessCheck -> f GetReadinessCheck
getReadinessCheck_readinessCheckName = (GetReadinessCheck -> Text)
-> (GetReadinessCheck -> Text -> GetReadinessCheck)
-> Lens GetReadinessCheck GetReadinessCheck Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadinessCheck' {Text
readinessCheckName :: Text
$sel:readinessCheckName:GetReadinessCheck' :: GetReadinessCheck -> Text
readinessCheckName} -> Text
readinessCheckName) (\s :: GetReadinessCheck
s@GetReadinessCheck' {} Text
a -> GetReadinessCheck
s {$sel:readinessCheckName:GetReadinessCheck' :: Text
readinessCheckName = Text
a} :: GetReadinessCheck)

instance Core.AWSRequest GetReadinessCheck where
  type
    AWSResponse GetReadinessCheck =
      GetReadinessCheckResponse
  request :: GetReadinessCheck -> Request GetReadinessCheck
request = Service -> GetReadinessCheck -> Request GetReadinessCheck
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetReadinessCheck
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetReadinessCheck)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetReadinessCheck))
-> Logger
-> Service
-> Proxy GetReadinessCheck
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetReadinessCheck)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetReadinessCheckResponse
GetReadinessCheckResponse'
            (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Int
 -> GetReadinessCheckResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetReadinessCheckResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"readinessCheckName")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetReadinessCheckResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text) -> Int -> GetReadinessCheckResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"resourceSet")
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text Text) -> Int -> GetReadinessCheckResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text Text) -> Int -> GetReadinessCheckResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"readinessCheckArn")
            Either
  String
  (Maybe (HashMap Text Text) -> Int -> GetReadinessCheckResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetReadinessCheckResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> GetReadinessCheckResponse)
-> Either String Int -> Either String GetReadinessCheckResponse
forall (f :: * -> *) a b. Applicative f => 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))
      )

instance Prelude.Hashable GetReadinessCheck

instance Prelude.NFData GetReadinessCheck

instance Core.ToHeaders GetReadinessCheck where
  toHeaders :: GetReadinessCheck -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetReadinessCheck -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToPath GetReadinessCheck where
  toPath :: GetReadinessCheck -> ByteString
toPath GetReadinessCheck' {Text
readinessCheckName :: Text
$sel:readinessCheckName:GetReadinessCheck' :: GetReadinessCheck -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/readinesschecks/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
readinessCheckName]

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

-- | /See:/ 'newGetReadinessCheckResponse' smart constructor.
data GetReadinessCheckResponse = GetReadinessCheckResponse'
  { -- | Name for a ReadinessCheck
    GetReadinessCheckResponse -> Maybe Text
readinessCheckName :: Prelude.Maybe Prelude.Text,
    -- | Name of the ResourceSet to be checked
    GetReadinessCheckResponse -> Maybe Text
resourceSet :: Prelude.Maybe Prelude.Text,
    -- | Arn associated with ReadinessCheck
    GetReadinessCheckResponse -> Maybe Text
readinessCheckArn :: Prelude.Maybe Prelude.Text,
    GetReadinessCheckResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    GetReadinessCheckResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetReadinessCheckResponse -> GetReadinessCheckResponse -> Bool
(GetReadinessCheckResponse -> GetReadinessCheckResponse -> Bool)
-> (GetReadinessCheckResponse -> GetReadinessCheckResponse -> Bool)
-> Eq GetReadinessCheckResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetReadinessCheckResponse -> GetReadinessCheckResponse -> Bool
$c/= :: GetReadinessCheckResponse -> GetReadinessCheckResponse -> Bool
== :: GetReadinessCheckResponse -> GetReadinessCheckResponse -> Bool
$c== :: GetReadinessCheckResponse -> GetReadinessCheckResponse -> Bool
Prelude.Eq, ReadPrec [GetReadinessCheckResponse]
ReadPrec GetReadinessCheckResponse
Int -> ReadS GetReadinessCheckResponse
ReadS [GetReadinessCheckResponse]
(Int -> ReadS GetReadinessCheckResponse)
-> ReadS [GetReadinessCheckResponse]
-> ReadPrec GetReadinessCheckResponse
-> ReadPrec [GetReadinessCheckResponse]
-> Read GetReadinessCheckResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetReadinessCheckResponse]
$creadListPrec :: ReadPrec [GetReadinessCheckResponse]
readPrec :: ReadPrec GetReadinessCheckResponse
$creadPrec :: ReadPrec GetReadinessCheckResponse
readList :: ReadS [GetReadinessCheckResponse]
$creadList :: ReadS [GetReadinessCheckResponse]
readsPrec :: Int -> ReadS GetReadinessCheckResponse
$creadsPrec :: Int -> ReadS GetReadinessCheckResponse
Prelude.Read, Int -> GetReadinessCheckResponse -> ShowS
[GetReadinessCheckResponse] -> ShowS
GetReadinessCheckResponse -> String
(Int -> GetReadinessCheckResponse -> ShowS)
-> (GetReadinessCheckResponse -> String)
-> ([GetReadinessCheckResponse] -> ShowS)
-> Show GetReadinessCheckResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetReadinessCheckResponse] -> ShowS
$cshowList :: [GetReadinessCheckResponse] -> ShowS
show :: GetReadinessCheckResponse -> String
$cshow :: GetReadinessCheckResponse -> String
showsPrec :: Int -> GetReadinessCheckResponse -> ShowS
$cshowsPrec :: Int -> GetReadinessCheckResponse -> ShowS
Prelude.Show, (forall x.
 GetReadinessCheckResponse -> Rep GetReadinessCheckResponse x)
-> (forall x.
    Rep GetReadinessCheckResponse x -> GetReadinessCheckResponse)
-> Generic GetReadinessCheckResponse
forall x.
Rep GetReadinessCheckResponse x -> GetReadinessCheckResponse
forall x.
GetReadinessCheckResponse -> Rep GetReadinessCheckResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetReadinessCheckResponse x -> GetReadinessCheckResponse
$cfrom :: forall x.
GetReadinessCheckResponse -> Rep GetReadinessCheckResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetReadinessCheckResponse' 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:
--
-- 'readinessCheckName', 'getReadinessCheckResponse_readinessCheckName' - Name for a ReadinessCheck
--
-- 'resourceSet', 'getReadinessCheckResponse_resourceSet' - Name of the ResourceSet to be checked
--
-- 'readinessCheckArn', 'getReadinessCheckResponse_readinessCheckArn' - Arn associated with ReadinessCheck
--
-- 'tags', 'getReadinessCheckResponse_tags' - Undocumented member.
--
-- 'httpStatus', 'getReadinessCheckResponse_httpStatus' - The response's http status code.
newGetReadinessCheckResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetReadinessCheckResponse
newGetReadinessCheckResponse :: Int -> GetReadinessCheckResponse
newGetReadinessCheckResponse Int
pHttpStatus_ =
  GetReadinessCheckResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetReadinessCheckResponse
GetReadinessCheckResponse'
    { $sel:readinessCheckName:GetReadinessCheckResponse' :: Maybe Text
readinessCheckName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:resourceSet:GetReadinessCheckResponse' :: Maybe Text
resourceSet = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:readinessCheckArn:GetReadinessCheckResponse' :: Maybe Text
readinessCheckArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:GetReadinessCheckResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetReadinessCheckResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Name for a ReadinessCheck
getReadinessCheckResponse_readinessCheckName :: Lens.Lens' GetReadinessCheckResponse (Prelude.Maybe Prelude.Text)
getReadinessCheckResponse_readinessCheckName :: (Maybe Text -> f (Maybe Text))
-> GetReadinessCheckResponse -> f GetReadinessCheckResponse
getReadinessCheckResponse_readinessCheckName = (GetReadinessCheckResponse -> Maybe Text)
-> (GetReadinessCheckResponse
    -> Maybe Text -> GetReadinessCheckResponse)
-> Lens
     GetReadinessCheckResponse
     GetReadinessCheckResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadinessCheckResponse' {Maybe Text
readinessCheckName :: Maybe Text
$sel:readinessCheckName:GetReadinessCheckResponse' :: GetReadinessCheckResponse -> Maybe Text
readinessCheckName} -> Maybe Text
readinessCheckName) (\s :: GetReadinessCheckResponse
s@GetReadinessCheckResponse' {} Maybe Text
a -> GetReadinessCheckResponse
s {$sel:readinessCheckName:GetReadinessCheckResponse' :: Maybe Text
readinessCheckName = Maybe Text
a} :: GetReadinessCheckResponse)

-- | Name of the ResourceSet to be checked
getReadinessCheckResponse_resourceSet :: Lens.Lens' GetReadinessCheckResponse (Prelude.Maybe Prelude.Text)
getReadinessCheckResponse_resourceSet :: (Maybe Text -> f (Maybe Text))
-> GetReadinessCheckResponse -> f GetReadinessCheckResponse
getReadinessCheckResponse_resourceSet = (GetReadinessCheckResponse -> Maybe Text)
-> (GetReadinessCheckResponse
    -> Maybe Text -> GetReadinessCheckResponse)
-> Lens
     GetReadinessCheckResponse
     GetReadinessCheckResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadinessCheckResponse' {Maybe Text
resourceSet :: Maybe Text
$sel:resourceSet:GetReadinessCheckResponse' :: GetReadinessCheckResponse -> Maybe Text
resourceSet} -> Maybe Text
resourceSet) (\s :: GetReadinessCheckResponse
s@GetReadinessCheckResponse' {} Maybe Text
a -> GetReadinessCheckResponse
s {$sel:resourceSet:GetReadinessCheckResponse' :: Maybe Text
resourceSet = Maybe Text
a} :: GetReadinessCheckResponse)

-- | Arn associated with ReadinessCheck
getReadinessCheckResponse_readinessCheckArn :: Lens.Lens' GetReadinessCheckResponse (Prelude.Maybe Prelude.Text)
getReadinessCheckResponse_readinessCheckArn :: (Maybe Text -> f (Maybe Text))
-> GetReadinessCheckResponse -> f GetReadinessCheckResponse
getReadinessCheckResponse_readinessCheckArn = (GetReadinessCheckResponse -> Maybe Text)
-> (GetReadinessCheckResponse
    -> Maybe Text -> GetReadinessCheckResponse)
-> Lens
     GetReadinessCheckResponse
     GetReadinessCheckResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadinessCheckResponse' {Maybe Text
readinessCheckArn :: Maybe Text
$sel:readinessCheckArn:GetReadinessCheckResponse' :: GetReadinessCheckResponse -> Maybe Text
readinessCheckArn} -> Maybe Text
readinessCheckArn) (\s :: GetReadinessCheckResponse
s@GetReadinessCheckResponse' {} Maybe Text
a -> GetReadinessCheckResponse
s {$sel:readinessCheckArn:GetReadinessCheckResponse' :: Maybe Text
readinessCheckArn = Maybe Text
a} :: GetReadinessCheckResponse)

-- | Undocumented member.
getReadinessCheckResponse_tags :: Lens.Lens' GetReadinessCheckResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getReadinessCheckResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetReadinessCheckResponse -> f GetReadinessCheckResponse
getReadinessCheckResponse_tags = (GetReadinessCheckResponse -> Maybe (HashMap Text Text))
-> (GetReadinessCheckResponse
    -> Maybe (HashMap Text Text) -> GetReadinessCheckResponse)
-> Lens
     GetReadinessCheckResponse
     GetReadinessCheckResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadinessCheckResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetReadinessCheckResponse' :: GetReadinessCheckResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetReadinessCheckResponse
s@GetReadinessCheckResponse' {} Maybe (HashMap Text Text)
a -> GetReadinessCheckResponse
s {$sel:tags:GetReadinessCheckResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetReadinessCheckResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> GetReadinessCheckResponse -> f GetReadinessCheckResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetReadinessCheckResponse
-> f GetReadinessCheckResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData GetReadinessCheckResponse