{-# 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 #-}
module Amazonka.Route53RecoveryReadiness.CreateReadinessCheck
(
CreateReadinessCheck (..),
newCreateReadinessCheck,
createReadinessCheck_tags,
createReadinessCheck_resourceSetName,
createReadinessCheck_readinessCheckName,
CreateReadinessCheckResponse (..),
newCreateReadinessCheckResponse,
createReadinessCheckResponse_readinessCheckName,
createReadinessCheckResponse_resourceSet,
createReadinessCheckResponse_readinessCheckArn,
createReadinessCheckResponse_tags,
createReadinessCheckResponse_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
data CreateReadinessCheck = CreateReadinessCheck'
{ CreateReadinessCheck -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateReadinessCheck -> Text
resourceSetName :: Prelude.Text,
CreateReadinessCheck -> Text
readinessCheckName :: Prelude.Text
}
deriving (CreateReadinessCheck -> CreateReadinessCheck -> Bool
(CreateReadinessCheck -> CreateReadinessCheck -> Bool)
-> (CreateReadinessCheck -> CreateReadinessCheck -> Bool)
-> Eq CreateReadinessCheck
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]
(Int -> ReadS CreateReadinessCheck)
-> ReadS [CreateReadinessCheck]
-> ReadPrec CreateReadinessCheck
-> ReadPrec [CreateReadinessCheck]
-> Read 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
(Int -> CreateReadinessCheck -> ShowS)
-> (CreateReadinessCheck -> String)
-> ([CreateReadinessCheck] -> ShowS)
-> Show CreateReadinessCheck
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. CreateReadinessCheck -> Rep CreateReadinessCheck x)
-> (forall x. Rep CreateReadinessCheck x -> CreateReadinessCheck)
-> Generic CreateReadinessCheck
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)
newCreateReadinessCheck ::
Prelude.Text ->
Prelude.Text ->
CreateReadinessCheck
newCreateReadinessCheck :: Text -> Text -> CreateReadinessCheck
newCreateReadinessCheck
Text
pResourceSetName_
Text
pReadinessCheckName_ =
CreateReadinessCheck' :: Maybe (HashMap Text Text) -> Text -> Text -> CreateReadinessCheck
CreateReadinessCheck'
{ $sel:tags:CreateReadinessCheck' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:resourceSetName:CreateReadinessCheck' :: Text
resourceSetName = Text
pResourceSetName_,
$sel:readinessCheckName:CreateReadinessCheck' :: Text
readinessCheckName = Text
pReadinessCheckName_
}
createReadinessCheck_tags :: Lens.Lens' CreateReadinessCheck (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createReadinessCheck_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateReadinessCheck -> f CreateReadinessCheck
createReadinessCheck_tags = (CreateReadinessCheck -> Maybe (HashMap Text Text))
-> (CreateReadinessCheck
-> Maybe (HashMap Text Text) -> CreateReadinessCheck)
-> Lens
CreateReadinessCheck
CreateReadinessCheck
(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 (\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) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateReadinessCheck -> f CreateReadinessCheck)
-> ((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)))
-> CreateReadinessCheck
-> f CreateReadinessCheck
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
createReadinessCheck_resourceSetName :: Lens.Lens' CreateReadinessCheck Prelude.Text
createReadinessCheck_resourceSetName :: (Text -> f Text) -> CreateReadinessCheck -> f CreateReadinessCheck
createReadinessCheck_resourceSetName = (CreateReadinessCheck -> Text)
-> (CreateReadinessCheck -> Text -> CreateReadinessCheck)
-> Lens CreateReadinessCheck CreateReadinessCheck Text Text
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)
createReadinessCheck_readinessCheckName :: Lens.Lens' CreateReadinessCheck Prelude.Text
createReadinessCheck_readinessCheckName :: (Text -> f Text) -> CreateReadinessCheck -> f CreateReadinessCheck
createReadinessCheck_readinessCheckName = (CreateReadinessCheck -> Text)
-> (CreateReadinessCheck -> Text -> CreateReadinessCheck)
-> Lens CreateReadinessCheck CreateReadinessCheck Text Text
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 :: CreateReadinessCheck -> Request CreateReadinessCheck
request = Service -> CreateReadinessCheck -> Request CreateReadinessCheck
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateReadinessCheck
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateReadinessCheck)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateReadinessCheck))
-> Logger
-> Service
-> Proxy CreateReadinessCheck
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateReadinessCheck)))
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
-> CreateReadinessCheckResponse
CreateReadinessCheckResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateReadinessCheckResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateReadinessCheckResponse)
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
-> CreateReadinessCheckResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateReadinessCheckResponse)
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
-> CreateReadinessCheckResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text) -> Int -> CreateReadinessCheckResponse)
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 -> CreateReadinessCheckResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> CreateReadinessCheckResponse)
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 -> CreateReadinessCheckResponse)
-> Either String Int -> Either String CreateReadinessCheckResponse
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 CreateReadinessCheck
instance Prelude.NFData CreateReadinessCheck
instance Core.ToHeaders CreateReadinessCheck where
toHeaders :: CreateReadinessCheck -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateReadinessCheck -> 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 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
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
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),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"readinessCheckName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
readinessCheckName)
]
)
instance Core.ToPath CreateReadinessCheck where
toPath :: CreateReadinessCheck -> ByteString
toPath = ByteString -> CreateReadinessCheck -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/readinesschecks"
instance Core.ToQuery CreateReadinessCheck where
toQuery :: CreateReadinessCheck -> QueryString
toQuery = QueryString -> CreateReadinessCheck -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateReadinessCheckResponse = CreateReadinessCheckResponse'
{
CreateReadinessCheckResponse -> Maybe Text
readinessCheckName :: Prelude.Maybe Prelude.Text,
CreateReadinessCheckResponse -> Maybe Text
resourceSet :: Prelude.Maybe Prelude.Text,
CreateReadinessCheckResponse -> Maybe Text
readinessCheckArn :: Prelude.Maybe Prelude.Text,
CreateReadinessCheckResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateReadinessCheckResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateReadinessCheckResponse
-> CreateReadinessCheckResponse -> Bool
(CreateReadinessCheckResponse
-> CreateReadinessCheckResponse -> Bool)
-> (CreateReadinessCheckResponse
-> CreateReadinessCheckResponse -> Bool)
-> Eq CreateReadinessCheckResponse
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]
(Int -> ReadS CreateReadinessCheckResponse)
-> ReadS [CreateReadinessCheckResponse]
-> ReadPrec CreateReadinessCheckResponse
-> ReadPrec [CreateReadinessCheckResponse]
-> Read 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
(Int -> CreateReadinessCheckResponse -> ShowS)
-> (CreateReadinessCheckResponse -> String)
-> ([CreateReadinessCheckResponse] -> ShowS)
-> Show CreateReadinessCheckResponse
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.
CreateReadinessCheckResponse -> Rep CreateReadinessCheckResponse x)
-> (forall x.
Rep CreateReadinessCheckResponse x -> CreateReadinessCheckResponse)
-> Generic CreateReadinessCheckResponse
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)
newCreateReadinessCheckResponse ::
Prelude.Int ->
CreateReadinessCheckResponse
newCreateReadinessCheckResponse :: Int -> CreateReadinessCheckResponse
newCreateReadinessCheckResponse Int
pHttpStatus_ =
CreateReadinessCheckResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateReadinessCheckResponse
CreateReadinessCheckResponse'
{ $sel:readinessCheckName:CreateReadinessCheckResponse' :: Maybe Text
readinessCheckName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resourceSet:CreateReadinessCheckResponse' :: Maybe Text
resourceSet = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:readinessCheckArn:CreateReadinessCheckResponse' :: Maybe Text
readinessCheckArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateReadinessCheckResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateReadinessCheckResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createReadinessCheckResponse_readinessCheckName :: Lens.Lens' CreateReadinessCheckResponse (Prelude.Maybe Prelude.Text)
createReadinessCheckResponse_readinessCheckName :: (Maybe Text -> f (Maybe Text))
-> CreateReadinessCheckResponse -> f CreateReadinessCheckResponse
createReadinessCheckResponse_readinessCheckName = (CreateReadinessCheckResponse -> Maybe Text)
-> (CreateReadinessCheckResponse
-> Maybe Text -> CreateReadinessCheckResponse)
-> Lens
CreateReadinessCheckResponse
CreateReadinessCheckResponse
(Maybe Text)
(Maybe Text)
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)
createReadinessCheckResponse_resourceSet :: Lens.Lens' CreateReadinessCheckResponse (Prelude.Maybe Prelude.Text)
createReadinessCheckResponse_resourceSet :: (Maybe Text -> f (Maybe Text))
-> CreateReadinessCheckResponse -> f CreateReadinessCheckResponse
createReadinessCheckResponse_resourceSet = (CreateReadinessCheckResponse -> Maybe Text)
-> (CreateReadinessCheckResponse
-> Maybe Text -> CreateReadinessCheckResponse)
-> Lens
CreateReadinessCheckResponse
CreateReadinessCheckResponse
(Maybe Text)
(Maybe Text)
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)
createReadinessCheckResponse_readinessCheckArn :: Lens.Lens' CreateReadinessCheckResponse (Prelude.Maybe Prelude.Text)
createReadinessCheckResponse_readinessCheckArn :: (Maybe Text -> f (Maybe Text))
-> CreateReadinessCheckResponse -> f CreateReadinessCheckResponse
createReadinessCheckResponse_readinessCheckArn = (CreateReadinessCheckResponse -> Maybe Text)
-> (CreateReadinessCheckResponse
-> Maybe Text -> CreateReadinessCheckResponse)
-> Lens
CreateReadinessCheckResponse
CreateReadinessCheckResponse
(Maybe Text)
(Maybe Text)
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)
createReadinessCheckResponse_tags :: Lens.Lens' CreateReadinessCheckResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createReadinessCheckResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateReadinessCheckResponse -> f CreateReadinessCheckResponse
createReadinessCheckResponse_tags = (CreateReadinessCheckResponse -> Maybe (HashMap Text Text))
-> (CreateReadinessCheckResponse
-> Maybe (HashMap Text Text) -> CreateReadinessCheckResponse)
-> Lens
CreateReadinessCheckResponse
CreateReadinessCheckResponse
(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 (\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) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateReadinessCheckResponse -> f CreateReadinessCheckResponse)
-> ((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)))
-> CreateReadinessCheckResponse
-> f CreateReadinessCheckResponse
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
createReadinessCheckResponse_httpStatus :: Lens.Lens' CreateReadinessCheckResponse Prelude.Int
createReadinessCheckResponse_httpStatus :: (Int -> f Int)
-> CreateReadinessCheckResponse -> f CreateReadinessCheckResponse
createReadinessCheckResponse_httpStatus = (CreateReadinessCheckResponse -> Int)
-> (CreateReadinessCheckResponse
-> Int -> CreateReadinessCheckResponse)
-> Lens
CreateReadinessCheckResponse CreateReadinessCheckResponse Int Int
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