{-# 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.CreateReadinessCheck
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Creates a readiness check in an account. A readiness check monitors a
-- resource set in your application, such as a set of Amazon Aurora
-- instances, that Application Recovery Controller is auditing recovery
-- readiness for. The audits run once every minute on every resource
-- that\'s associated with a readiness check.
module Amazonka.Route53RecoveryReadiness.CreateReadinessCheck
  ( -- * Creating a Request
    CreateReadinessCheck (..),
    newCreateReadinessCheck,

    -- * Request Lenses
    createReadinessCheck_tags,
    createReadinessCheck_resourceSetName,
    createReadinessCheck_readinessCheckName,

    -- * Destructuring the Response
    CreateReadinessCheckResponse (..),
    newCreateReadinessCheckResponse,

    -- * Response Lenses
    createReadinessCheckResponse_readinessCheckArn,
    createReadinessCheckResponse_readinessCheckName,
    createReadinessCheckResponse_resourceSet,
    createReadinessCheckResponse_tags,
    createReadinessCheckResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Route53RecoveryReadiness.Types

-- | /See:/ 'newCreateReadinessCheck' smart constructor.
data CreateReadinessCheck = CreateReadinessCheck'
  { CreateReadinessCheck -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The name of the resource set to check.
    CreateReadinessCheck -> Text
resourceSetName :: Prelude.Text,
    -- | The name of the readiness check to create.
    CreateReadinessCheck -> Text
readinessCheckName :: Prelude.Text
  }
  deriving (CreateReadinessCheck -> CreateReadinessCheck -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateReadinessCheck -> CreateReadinessCheck -> Bool
$c/= :: CreateReadinessCheck -> CreateReadinessCheck -> Bool
== :: CreateReadinessCheck -> CreateReadinessCheck -> Bool
$c== :: CreateReadinessCheck -> CreateReadinessCheck -> Bool
Prelude.Eq, ReadPrec [CreateReadinessCheck]
ReadPrec CreateReadinessCheck
Int -> ReadS CreateReadinessCheck
ReadS [CreateReadinessCheck]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateReadinessCheck]
$creadListPrec :: ReadPrec [CreateReadinessCheck]
readPrec :: ReadPrec CreateReadinessCheck
$creadPrec :: ReadPrec CreateReadinessCheck
readList :: ReadS [CreateReadinessCheck]
$creadList :: ReadS [CreateReadinessCheck]
readsPrec :: Int -> ReadS CreateReadinessCheck
$creadsPrec :: Int -> ReadS CreateReadinessCheck
Prelude.Read, Int -> CreateReadinessCheck -> ShowS
[CreateReadinessCheck] -> ShowS
CreateReadinessCheck -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateReadinessCheck] -> ShowS
$cshowList :: [CreateReadinessCheck] -> ShowS
show :: CreateReadinessCheck -> String
$cshow :: CreateReadinessCheck -> String
showsPrec :: Int -> CreateReadinessCheck -> ShowS
$cshowsPrec :: Int -> CreateReadinessCheck -> ShowS
Prelude.Show, forall x. Rep CreateReadinessCheck x -> CreateReadinessCheck
forall x. CreateReadinessCheck -> Rep CreateReadinessCheck x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateReadinessCheck x -> CreateReadinessCheck
$cfrom :: forall x. CreateReadinessCheck -> Rep CreateReadinessCheck x
Prelude.Generic)

-- |
-- Create a value of 'CreateReadinessCheck' 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:
--
-- 'tags', 'createReadinessCheck_tags' - Undocumented member.
--
-- 'resourceSetName', 'createReadinessCheck_resourceSetName' - The name of the resource set to check.
--
-- 'readinessCheckName', 'createReadinessCheck_readinessCheckName' - The name of the readiness check to create.
newCreateReadinessCheck ::
  -- | 'resourceSetName'
  Prelude.Text ->
  -- | 'readinessCheckName'
  Prelude.Text ->
  CreateReadinessCheck
newCreateReadinessCheck :: Text -> Text -> CreateReadinessCheck
newCreateReadinessCheck
  Text
pResourceSetName_
  Text
pReadinessCheckName_ =
    CreateReadinessCheck'
      { $sel:tags:CreateReadinessCheck' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
        $sel:resourceSetName:CreateReadinessCheck' :: Text
resourceSetName = Text
pResourceSetName_,
        $sel:readinessCheckName:CreateReadinessCheck' :: Text
readinessCheckName = Text
pReadinessCheckName_
      }

-- | Undocumented member.
createReadinessCheck_tags :: Lens.Lens' CreateReadinessCheck (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createReadinessCheck_tags :: Lens' CreateReadinessCheck (Maybe (HashMap Text Text))
createReadinessCheck_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReadinessCheck' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateReadinessCheck' :: CreateReadinessCheck -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateReadinessCheck
s@CreateReadinessCheck' {} Maybe (HashMap Text Text)
a -> CreateReadinessCheck
s {$sel:tags:CreateReadinessCheck' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateReadinessCheck) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the resource set to check.
createReadinessCheck_resourceSetName :: Lens.Lens' CreateReadinessCheck Prelude.Text
createReadinessCheck_resourceSetName :: Lens' CreateReadinessCheck Text
createReadinessCheck_resourceSetName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReadinessCheck' {Text
resourceSetName :: Text
$sel:resourceSetName:CreateReadinessCheck' :: CreateReadinessCheck -> Text
resourceSetName} -> Text
resourceSetName) (\s :: CreateReadinessCheck
s@CreateReadinessCheck' {} Text
a -> CreateReadinessCheck
s {$sel:resourceSetName:CreateReadinessCheck' :: Text
resourceSetName = Text
a} :: CreateReadinessCheck)

-- | The name of the readiness check to create.
createReadinessCheck_readinessCheckName :: Lens.Lens' CreateReadinessCheck Prelude.Text
createReadinessCheck_readinessCheckName :: Lens' CreateReadinessCheck Text
createReadinessCheck_readinessCheckName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReadinessCheck' {Text
readinessCheckName :: Text
$sel:readinessCheckName:CreateReadinessCheck' :: CreateReadinessCheck -> Text
readinessCheckName} -> Text
readinessCheckName) (\s :: CreateReadinessCheck
s@CreateReadinessCheck' {} Text
a -> CreateReadinessCheck
s {$sel:readinessCheckName:CreateReadinessCheck' :: Text
readinessCheckName = Text
a} :: CreateReadinessCheck)

instance Core.AWSRequest CreateReadinessCheck where
  type
    AWSResponse CreateReadinessCheck =
      CreateReadinessCheckResponse
  request :: (Service -> Service)
-> CreateReadinessCheck -> Request CreateReadinessCheck
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy CreateReadinessCheck
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateReadinessCheck)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> 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
-> CreateReadinessCheckResponse
CreateReadinessCheckResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"readinessCheckArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"readinessCheckName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"resourceSet")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"tags" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable CreateReadinessCheck where
  hashWithSalt :: Int -> CreateReadinessCheck -> Int
hashWithSalt Int
_salt CreateReadinessCheck' {Maybe (HashMap Text Text)
Text
readinessCheckName :: Text
resourceSetName :: Text
tags :: Maybe (HashMap Text Text)
$sel:readinessCheckName:CreateReadinessCheck' :: CreateReadinessCheck -> Text
$sel:resourceSetName:CreateReadinessCheck' :: CreateReadinessCheck -> Text
$sel:tags:CreateReadinessCheck' :: CreateReadinessCheck -> Maybe (HashMap Text Text)
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
resourceSetName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
readinessCheckName

instance Prelude.NFData CreateReadinessCheck where
  rnf :: CreateReadinessCheck -> ()
rnf CreateReadinessCheck' {Maybe (HashMap Text Text)
Text
readinessCheckName :: Text
resourceSetName :: Text
tags :: Maybe (HashMap Text Text)
$sel:readinessCheckName:CreateReadinessCheck' :: CreateReadinessCheck -> Text
$sel:resourceSetName:CreateReadinessCheck' :: CreateReadinessCheck -> Text
$sel:tags:CreateReadinessCheck' :: CreateReadinessCheck -> Maybe (HashMap Text Text)
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
resourceSetName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
readinessCheckName

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

instance Data.ToJSON CreateReadinessCheck where
  toJSON :: CreateReadinessCheck -> Value
toJSON CreateReadinessCheck' {Maybe (HashMap Text Text)
Text
readinessCheckName :: Text
resourceSetName :: Text
tags :: Maybe (HashMap Text Text)
$sel:readinessCheckName:CreateReadinessCheck' :: CreateReadinessCheck -> Text
$sel:resourceSetName:CreateReadinessCheck' :: CreateReadinessCheck -> Text
$sel:tags:CreateReadinessCheck' :: CreateReadinessCheck -> Maybe (HashMap Text Text)
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"tags" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
            forall a. a -> Maybe a
Prelude.Just
              (Key
"resourceSetName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
resourceSetName),
            forall a. a -> Maybe a
Prelude.Just
              (Key
"readinessCheckName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
readinessCheckName)
          ]
      )

instance Data.ToPath CreateReadinessCheck where
  toPath :: CreateReadinessCheck -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/readinesschecks"

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

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

-- |
-- Create a value of 'CreateReadinessCheckResponse' 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:
--
-- 'readinessCheckArn', 'createReadinessCheckResponse_readinessCheckArn' - The Amazon Resource Name (ARN) associated with a readiness check.
--
-- 'readinessCheckName', 'createReadinessCheckResponse_readinessCheckName' - Name of a readiness check.
--
-- 'resourceSet', 'createReadinessCheckResponse_resourceSet' - Name of the resource set to be checked.
--
-- 'tags', 'createReadinessCheckResponse_tags' - Undocumented member.
--
-- 'httpStatus', 'createReadinessCheckResponse_httpStatus' - The response's http status code.
newCreateReadinessCheckResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateReadinessCheckResponse
newCreateReadinessCheckResponse :: Int -> CreateReadinessCheckResponse
newCreateReadinessCheckResponse Int
pHttpStatus_ =
  CreateReadinessCheckResponse'
    { $sel:readinessCheckArn:CreateReadinessCheckResponse' :: Maybe Text
readinessCheckArn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:readinessCheckName:CreateReadinessCheckResponse' :: Maybe Text
readinessCheckName = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceSet:CreateReadinessCheckResponse' :: Maybe Text
resourceSet = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:CreateReadinessCheckResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CreateReadinessCheckResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The Amazon Resource Name (ARN) associated with a readiness check.
createReadinessCheckResponse_readinessCheckArn :: Lens.Lens' CreateReadinessCheckResponse (Prelude.Maybe Prelude.Text)
createReadinessCheckResponse_readinessCheckArn :: Lens' CreateReadinessCheckResponse (Maybe Text)
createReadinessCheckResponse_readinessCheckArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReadinessCheckResponse' {Maybe Text
readinessCheckArn :: Maybe Text
$sel:readinessCheckArn:CreateReadinessCheckResponse' :: CreateReadinessCheckResponse -> Maybe Text
readinessCheckArn} -> Maybe Text
readinessCheckArn) (\s :: CreateReadinessCheckResponse
s@CreateReadinessCheckResponse' {} Maybe Text
a -> CreateReadinessCheckResponse
s {$sel:readinessCheckArn:CreateReadinessCheckResponse' :: Maybe Text
readinessCheckArn = Maybe Text
a} :: CreateReadinessCheckResponse)

-- | Name of a readiness check.
createReadinessCheckResponse_readinessCheckName :: Lens.Lens' CreateReadinessCheckResponse (Prelude.Maybe Prelude.Text)
createReadinessCheckResponse_readinessCheckName :: Lens' CreateReadinessCheckResponse (Maybe Text)
createReadinessCheckResponse_readinessCheckName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReadinessCheckResponse' {Maybe Text
readinessCheckName :: Maybe Text
$sel:readinessCheckName:CreateReadinessCheckResponse' :: CreateReadinessCheckResponse -> Maybe Text
readinessCheckName} -> Maybe Text
readinessCheckName) (\s :: CreateReadinessCheckResponse
s@CreateReadinessCheckResponse' {} Maybe Text
a -> CreateReadinessCheckResponse
s {$sel:readinessCheckName:CreateReadinessCheckResponse' :: Maybe Text
readinessCheckName = Maybe Text
a} :: CreateReadinessCheckResponse)

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

-- | Undocumented member.
createReadinessCheckResponse_tags :: Lens.Lens' CreateReadinessCheckResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createReadinessCheckResponse_tags :: Lens' CreateReadinessCheckResponse (Maybe (HashMap Text Text))
createReadinessCheckResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReadinessCheckResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateReadinessCheckResponse' :: CreateReadinessCheckResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateReadinessCheckResponse
s@CreateReadinessCheckResponse' {} Maybe (HashMap Text Text)
a -> CreateReadinessCheckResponse
s {$sel:tags:CreateReadinessCheckResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateReadinessCheckResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData CreateReadinessCheckResponse where
  rnf :: CreateReadinessCheckResponse -> ()
rnf CreateReadinessCheckResponse' {Int
Maybe Text
Maybe (HashMap Text Text)
httpStatus :: Int
tags :: Maybe (HashMap Text Text)
resourceSet :: Maybe Text
readinessCheckName :: Maybe Text
readinessCheckArn :: Maybe Text
$sel:httpStatus:CreateReadinessCheckResponse' :: CreateReadinessCheckResponse -> Int
$sel:tags:CreateReadinessCheckResponse' :: CreateReadinessCheckResponse -> Maybe (HashMap Text Text)
$sel:resourceSet:CreateReadinessCheckResponse' :: CreateReadinessCheckResponse -> Maybe Text
$sel:readinessCheckName:CreateReadinessCheckResponse' :: CreateReadinessCheckResponse -> Maybe Text
$sel:readinessCheckArn:CreateReadinessCheckResponse' :: CreateReadinessCheckResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
readinessCheckArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
readinessCheckName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourceSet
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus