{-# 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.UpdateReadinessCheck
-- 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)
--
-- Updates an exisiting Readiness Check.
module Amazonka.Route53RecoveryReadiness.UpdateReadinessCheck
  ( -- * Creating a Request
    UpdateReadinessCheck (..),
    newUpdateReadinessCheck,

    -- * Request Lenses
    updateReadinessCheck_readinessCheckName,
    updateReadinessCheck_resourceSetName,

    -- * Destructuring the Response
    UpdateReadinessCheckResponse (..),
    newUpdateReadinessCheckResponse,

    -- * Response Lenses
    updateReadinessCheckResponse_readinessCheckName,
    updateReadinessCheckResponse_resourceSet,
    updateReadinessCheckResponse_readinessCheckArn,
    updateReadinessCheckResponse_tags,
    updateReadinessCheckResponse_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

-- | The new Readiness Check values
--
-- /See:/ 'newUpdateReadinessCheck' smart constructor.
data UpdateReadinessCheck = UpdateReadinessCheck'
  { -- | The ReadinessCheck to update
    UpdateReadinessCheck -> Text
readinessCheckName :: Prelude.Text,
    -- | The name of the ResourceSet to check
    UpdateReadinessCheck -> Text
resourceSetName :: Prelude.Text
  }
  deriving (UpdateReadinessCheck -> UpdateReadinessCheck -> Bool
(UpdateReadinessCheck -> UpdateReadinessCheck -> Bool)
-> (UpdateReadinessCheck -> UpdateReadinessCheck -> Bool)
-> Eq UpdateReadinessCheck
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateReadinessCheck -> UpdateReadinessCheck -> Bool
$c/= :: UpdateReadinessCheck -> UpdateReadinessCheck -> Bool
== :: UpdateReadinessCheck -> UpdateReadinessCheck -> Bool
$c== :: UpdateReadinessCheck -> UpdateReadinessCheck -> Bool
Prelude.Eq, ReadPrec [UpdateReadinessCheck]
ReadPrec UpdateReadinessCheck
Int -> ReadS UpdateReadinessCheck
ReadS [UpdateReadinessCheck]
(Int -> ReadS UpdateReadinessCheck)
-> ReadS [UpdateReadinessCheck]
-> ReadPrec UpdateReadinessCheck
-> ReadPrec [UpdateReadinessCheck]
-> Read UpdateReadinessCheck
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateReadinessCheck]
$creadListPrec :: ReadPrec [UpdateReadinessCheck]
readPrec :: ReadPrec UpdateReadinessCheck
$creadPrec :: ReadPrec UpdateReadinessCheck
readList :: ReadS [UpdateReadinessCheck]
$creadList :: ReadS [UpdateReadinessCheck]
readsPrec :: Int -> ReadS UpdateReadinessCheck
$creadsPrec :: Int -> ReadS UpdateReadinessCheck
Prelude.Read, Int -> UpdateReadinessCheck -> ShowS
[UpdateReadinessCheck] -> ShowS
UpdateReadinessCheck -> String
(Int -> UpdateReadinessCheck -> ShowS)
-> (UpdateReadinessCheck -> String)
-> ([UpdateReadinessCheck] -> ShowS)
-> Show UpdateReadinessCheck
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateReadinessCheck] -> ShowS
$cshowList :: [UpdateReadinessCheck] -> ShowS
show :: UpdateReadinessCheck -> String
$cshow :: UpdateReadinessCheck -> String
showsPrec :: Int -> UpdateReadinessCheck -> ShowS
$cshowsPrec :: Int -> UpdateReadinessCheck -> ShowS
Prelude.Show, (forall x. UpdateReadinessCheck -> Rep UpdateReadinessCheck x)
-> (forall x. Rep UpdateReadinessCheck x -> UpdateReadinessCheck)
-> Generic UpdateReadinessCheck
forall x. Rep UpdateReadinessCheck x -> UpdateReadinessCheck
forall x. UpdateReadinessCheck -> Rep UpdateReadinessCheck x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateReadinessCheck x -> UpdateReadinessCheck
$cfrom :: forall x. UpdateReadinessCheck -> Rep UpdateReadinessCheck x
Prelude.Generic)

-- |
-- Create a value of 'UpdateReadinessCheck' 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', 'updateReadinessCheck_readinessCheckName' - The ReadinessCheck to update
--
-- 'resourceSetName', 'updateReadinessCheck_resourceSetName' - The name of the ResourceSet to check
newUpdateReadinessCheck ::
  -- | 'readinessCheckName'
  Prelude.Text ->
  -- | 'resourceSetName'
  Prelude.Text ->
  UpdateReadinessCheck
newUpdateReadinessCheck :: Text -> Text -> UpdateReadinessCheck
newUpdateReadinessCheck
  Text
pReadinessCheckName_
  Text
pResourceSetName_ =
    UpdateReadinessCheck' :: Text -> Text -> UpdateReadinessCheck
UpdateReadinessCheck'
      { $sel:readinessCheckName:UpdateReadinessCheck' :: Text
readinessCheckName =
          Text
pReadinessCheckName_,
        $sel:resourceSetName:UpdateReadinessCheck' :: Text
resourceSetName = Text
pResourceSetName_
      }

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

-- | The name of the ResourceSet to check
updateReadinessCheck_resourceSetName :: Lens.Lens' UpdateReadinessCheck Prelude.Text
updateReadinessCheck_resourceSetName :: (Text -> f Text) -> UpdateReadinessCheck -> f UpdateReadinessCheck
updateReadinessCheck_resourceSetName = (UpdateReadinessCheck -> Text)
-> (UpdateReadinessCheck -> Text -> UpdateReadinessCheck)
-> Lens UpdateReadinessCheck UpdateReadinessCheck Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReadinessCheck' {Text
resourceSetName :: Text
$sel:resourceSetName:UpdateReadinessCheck' :: UpdateReadinessCheck -> Text
resourceSetName} -> Text
resourceSetName) (\s :: UpdateReadinessCheck
s@UpdateReadinessCheck' {} Text
a -> UpdateReadinessCheck
s {$sel:resourceSetName:UpdateReadinessCheck' :: Text
resourceSetName = Text
a} :: UpdateReadinessCheck)

instance Core.AWSRequest UpdateReadinessCheck where
  type
    AWSResponse UpdateReadinessCheck =
      UpdateReadinessCheckResponse
  request :: UpdateReadinessCheck -> Request UpdateReadinessCheck
request = Service -> UpdateReadinessCheck -> Request UpdateReadinessCheck
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateReadinessCheck
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateReadinessCheck)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdateReadinessCheck))
-> Logger
-> Service
-> Proxy UpdateReadinessCheck
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateReadinessCheck)))
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
-> UpdateReadinessCheckResponse
UpdateReadinessCheckResponse'
            (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Int
 -> UpdateReadinessCheckResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> UpdateReadinessCheckResponse)
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
   -> UpdateReadinessCheckResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> UpdateReadinessCheckResponse)
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
   -> UpdateReadinessCheckResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text Text) -> Int -> UpdateReadinessCheckResponse)
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 -> UpdateReadinessCheckResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> UpdateReadinessCheckResponse)
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 -> UpdateReadinessCheckResponse)
-> Either String Int -> Either String UpdateReadinessCheckResponse
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 UpdateReadinessCheck

instance Prelude.NFData UpdateReadinessCheck

instance Core.ToHeaders UpdateReadinessCheck where
  toHeaders :: UpdateReadinessCheck -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateReadinessCheck -> 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.ToJSON UpdateReadinessCheck where
  toJSON :: UpdateReadinessCheck -> Value
toJSON UpdateReadinessCheck' {Text
resourceSetName :: Text
readinessCheckName :: Text
$sel:resourceSetName:UpdateReadinessCheck' :: UpdateReadinessCheck -> Text
$sel:readinessCheckName:UpdateReadinessCheck' :: UpdateReadinessCheck -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"resourceSetName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resourceSetName)
          ]
      )

instance Core.ToPath UpdateReadinessCheck where
  toPath :: UpdateReadinessCheck -> ByteString
toPath UpdateReadinessCheck' {Text
resourceSetName :: Text
readinessCheckName :: Text
$sel:resourceSetName:UpdateReadinessCheck' :: UpdateReadinessCheck -> Text
$sel:readinessCheckName:UpdateReadinessCheck' :: UpdateReadinessCheck -> 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 UpdateReadinessCheck where
  toQuery :: UpdateReadinessCheck -> QueryString
toQuery = QueryString -> UpdateReadinessCheck -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

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

-- |
-- Create a value of 'UpdateReadinessCheckResponse' 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', 'updateReadinessCheckResponse_readinessCheckName' - Name for a ReadinessCheck
--
-- 'resourceSet', 'updateReadinessCheckResponse_resourceSet' - Name of the ResourceSet to be checked
--
-- 'readinessCheckArn', 'updateReadinessCheckResponse_readinessCheckArn' - Arn associated with ReadinessCheck
--
-- 'tags', 'updateReadinessCheckResponse_tags' - Undocumented member.
--
-- 'httpStatus', 'updateReadinessCheckResponse_httpStatus' - The response's http status code.
newUpdateReadinessCheckResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateReadinessCheckResponse
newUpdateReadinessCheckResponse :: Int -> UpdateReadinessCheckResponse
newUpdateReadinessCheckResponse Int
pHttpStatus_ =
  UpdateReadinessCheckResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> UpdateReadinessCheckResponse
UpdateReadinessCheckResponse'
    { $sel:readinessCheckName:UpdateReadinessCheckResponse' :: Maybe Text
readinessCheckName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:resourceSet:UpdateReadinessCheckResponse' :: Maybe Text
resourceSet = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:readinessCheckArn:UpdateReadinessCheckResponse' :: Maybe Text
readinessCheckArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:UpdateReadinessCheckResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateReadinessCheckResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

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

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

-- | Undocumented member.
updateReadinessCheckResponse_tags :: Lens.Lens' UpdateReadinessCheckResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updateReadinessCheckResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateReadinessCheckResponse -> f UpdateReadinessCheckResponse
updateReadinessCheckResponse_tags = (UpdateReadinessCheckResponse -> Maybe (HashMap Text Text))
-> (UpdateReadinessCheckResponse
    -> Maybe (HashMap Text Text) -> UpdateReadinessCheckResponse)
-> Lens
     UpdateReadinessCheckResponse
     UpdateReadinessCheckResponse
     (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 (\UpdateReadinessCheckResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:UpdateReadinessCheckResponse' :: UpdateReadinessCheckResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: UpdateReadinessCheckResponse
s@UpdateReadinessCheckResponse' {} Maybe (HashMap Text Text)
a -> UpdateReadinessCheckResponse
s {$sel:tags:UpdateReadinessCheckResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: UpdateReadinessCheckResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> UpdateReadinessCheckResponse -> f UpdateReadinessCheckResponse)
-> ((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)))
-> UpdateReadinessCheckResponse
-> f UpdateReadinessCheckResponse
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.
updateReadinessCheckResponse_httpStatus :: Lens.Lens' UpdateReadinessCheckResponse Prelude.Int
updateReadinessCheckResponse_httpStatus :: (Int -> f Int)
-> UpdateReadinessCheckResponse -> f UpdateReadinessCheckResponse
updateReadinessCheckResponse_httpStatus = (UpdateReadinessCheckResponse -> Int)
-> (UpdateReadinessCheckResponse
    -> Int -> UpdateReadinessCheckResponse)
-> Lens
     UpdateReadinessCheckResponse UpdateReadinessCheckResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReadinessCheckResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateReadinessCheckResponse' :: UpdateReadinessCheckResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateReadinessCheckResponse
s@UpdateReadinessCheckResponse' {} Int
a -> UpdateReadinessCheckResponse
s {$sel:httpStatus:UpdateReadinessCheckResponse' :: Int
httpStatus = Int
a} :: UpdateReadinessCheckResponse)

instance Prelude.NFData UpdateReadinessCheckResponse