{-# 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.CreateRecoveryGroup
(
CreateRecoveryGroup (..),
newCreateRecoveryGroup,
createRecoveryGroup_cells,
createRecoveryGroup_tags,
createRecoveryGroup_recoveryGroupName,
CreateRecoveryGroupResponse (..),
newCreateRecoveryGroupResponse,
createRecoveryGroupResponse_cells,
createRecoveryGroupResponse_recoveryGroupArn,
createRecoveryGroupResponse_recoveryGroupName,
createRecoveryGroupResponse_tags,
createRecoveryGroupResponse_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
data CreateRecoveryGroup = CreateRecoveryGroup'
{
CreateRecoveryGroup -> Maybe [Text]
cells :: Prelude.Maybe [Prelude.Text],
CreateRecoveryGroup -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateRecoveryGroup -> Text
recoveryGroupName :: Prelude.Text
}
deriving (CreateRecoveryGroup -> CreateRecoveryGroup -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateRecoveryGroup -> CreateRecoveryGroup -> Bool
$c/= :: CreateRecoveryGroup -> CreateRecoveryGroup -> Bool
== :: CreateRecoveryGroup -> CreateRecoveryGroup -> Bool
$c== :: CreateRecoveryGroup -> CreateRecoveryGroup -> Bool
Prelude.Eq, ReadPrec [CreateRecoveryGroup]
ReadPrec CreateRecoveryGroup
Int -> ReadS CreateRecoveryGroup
ReadS [CreateRecoveryGroup]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateRecoveryGroup]
$creadListPrec :: ReadPrec [CreateRecoveryGroup]
readPrec :: ReadPrec CreateRecoveryGroup
$creadPrec :: ReadPrec CreateRecoveryGroup
readList :: ReadS [CreateRecoveryGroup]
$creadList :: ReadS [CreateRecoveryGroup]
readsPrec :: Int -> ReadS CreateRecoveryGroup
$creadsPrec :: Int -> ReadS CreateRecoveryGroup
Prelude.Read, Int -> CreateRecoveryGroup -> ShowS
[CreateRecoveryGroup] -> ShowS
CreateRecoveryGroup -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateRecoveryGroup] -> ShowS
$cshowList :: [CreateRecoveryGroup] -> ShowS
show :: CreateRecoveryGroup -> String
$cshow :: CreateRecoveryGroup -> String
showsPrec :: Int -> CreateRecoveryGroup -> ShowS
$cshowsPrec :: Int -> CreateRecoveryGroup -> ShowS
Prelude.Show, forall x. Rep CreateRecoveryGroup x -> CreateRecoveryGroup
forall x. CreateRecoveryGroup -> Rep CreateRecoveryGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateRecoveryGroup x -> CreateRecoveryGroup
$cfrom :: forall x. CreateRecoveryGroup -> Rep CreateRecoveryGroup x
Prelude.Generic)
newCreateRecoveryGroup ::
Prelude.Text ->
CreateRecoveryGroup
newCreateRecoveryGroup :: Text -> CreateRecoveryGroup
newCreateRecoveryGroup Text
pRecoveryGroupName_ =
CreateRecoveryGroup'
{ $sel:cells:CreateRecoveryGroup' :: Maybe [Text]
cells = forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateRecoveryGroup' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:recoveryGroupName:CreateRecoveryGroup' :: Text
recoveryGroupName = Text
pRecoveryGroupName_
}
createRecoveryGroup_cells :: Lens.Lens' CreateRecoveryGroup (Prelude.Maybe [Prelude.Text])
createRecoveryGroup_cells :: Lens' CreateRecoveryGroup (Maybe [Text])
createRecoveryGroup_cells = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRecoveryGroup' {Maybe [Text]
cells :: Maybe [Text]
$sel:cells:CreateRecoveryGroup' :: CreateRecoveryGroup -> Maybe [Text]
cells} -> Maybe [Text]
cells) (\s :: CreateRecoveryGroup
s@CreateRecoveryGroup' {} Maybe [Text]
a -> CreateRecoveryGroup
s {$sel:cells:CreateRecoveryGroup' :: Maybe [Text]
cells = Maybe [Text]
a} :: CreateRecoveryGroup) 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
createRecoveryGroup_tags :: Lens.Lens' CreateRecoveryGroup (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createRecoveryGroup_tags :: Lens' CreateRecoveryGroup (Maybe (HashMap Text Text))
createRecoveryGroup_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRecoveryGroup' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateRecoveryGroup' :: CreateRecoveryGroup -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateRecoveryGroup
s@CreateRecoveryGroup' {} Maybe (HashMap Text Text)
a -> CreateRecoveryGroup
s {$sel:tags:CreateRecoveryGroup' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateRecoveryGroup) 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
createRecoveryGroup_recoveryGroupName :: Lens.Lens' CreateRecoveryGroup Prelude.Text
createRecoveryGroup_recoveryGroupName :: Lens' CreateRecoveryGroup Text
createRecoveryGroup_recoveryGroupName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRecoveryGroup' {Text
recoveryGroupName :: Text
$sel:recoveryGroupName:CreateRecoveryGroup' :: CreateRecoveryGroup -> Text
recoveryGroupName} -> Text
recoveryGroupName) (\s :: CreateRecoveryGroup
s@CreateRecoveryGroup' {} Text
a -> CreateRecoveryGroup
s {$sel:recoveryGroupName:CreateRecoveryGroup' :: Text
recoveryGroupName = Text
a} :: CreateRecoveryGroup)
instance Core.AWSRequest CreateRecoveryGroup where
type
AWSResponse CreateRecoveryGroup =
CreateRecoveryGroupResponse
request :: (Service -> Service)
-> CreateRecoveryGroup -> Request CreateRecoveryGroup
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 CreateRecoveryGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateRecoveryGroup)))
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
-> CreateRecoveryGroupResponse
CreateRecoveryGroupResponse'
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
"cells" 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.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"recoveryGroupArn")
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
"recoveryGroupName")
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 CreateRecoveryGroup where
hashWithSalt :: Int -> CreateRecoveryGroup -> Int
hashWithSalt Int
_salt CreateRecoveryGroup' {Maybe [Text]
Maybe (HashMap Text Text)
Text
recoveryGroupName :: Text
tags :: Maybe (HashMap Text Text)
cells :: Maybe [Text]
$sel:recoveryGroupName:CreateRecoveryGroup' :: CreateRecoveryGroup -> Text
$sel:tags:CreateRecoveryGroup' :: CreateRecoveryGroup -> Maybe (HashMap Text Text)
$sel:cells:CreateRecoveryGroup' :: CreateRecoveryGroup -> Maybe [Text]
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
cells
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
recoveryGroupName
instance Prelude.NFData CreateRecoveryGroup where
rnf :: CreateRecoveryGroup -> ()
rnf CreateRecoveryGroup' {Maybe [Text]
Maybe (HashMap Text Text)
Text
recoveryGroupName :: Text
tags :: Maybe (HashMap Text Text)
cells :: Maybe [Text]
$sel:recoveryGroupName:CreateRecoveryGroup' :: CreateRecoveryGroup -> Text
$sel:tags:CreateRecoveryGroup' :: CreateRecoveryGroup -> Maybe (HashMap Text Text)
$sel:cells:CreateRecoveryGroup' :: CreateRecoveryGroup -> Maybe [Text]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
cells
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 Text
recoveryGroupName
instance Data.ToHeaders CreateRecoveryGroup where
toHeaders :: CreateRecoveryGroup -> 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 CreateRecoveryGroup where
toJSON :: CreateRecoveryGroup -> Value
toJSON CreateRecoveryGroup' {Maybe [Text]
Maybe (HashMap Text Text)
Text
recoveryGroupName :: Text
tags :: Maybe (HashMap Text Text)
cells :: Maybe [Text]
$sel:recoveryGroupName:CreateRecoveryGroup' :: CreateRecoveryGroup -> Text
$sel:tags:CreateRecoveryGroup' :: CreateRecoveryGroup -> Maybe (HashMap Text Text)
$sel:cells:CreateRecoveryGroup' :: CreateRecoveryGroup -> Maybe [Text]
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"cells" 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 [Text]
cells,
(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
"recoveryGroupName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
recoveryGroupName)
]
)
instance Data.ToPath CreateRecoveryGroup where
toPath :: CreateRecoveryGroup -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/recoverygroups"
instance Data.ToQuery CreateRecoveryGroup where
toQuery :: CreateRecoveryGroup -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data CreateRecoveryGroupResponse = CreateRecoveryGroupResponse'
{
CreateRecoveryGroupResponse -> Maybe [Text]
cells :: Prelude.Maybe [Prelude.Text],
CreateRecoveryGroupResponse -> Maybe Text
recoveryGroupArn :: Prelude.Maybe Prelude.Text,
CreateRecoveryGroupResponse -> Maybe Text
recoveryGroupName :: Prelude.Maybe Prelude.Text,
CreateRecoveryGroupResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateRecoveryGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateRecoveryGroupResponse -> CreateRecoveryGroupResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateRecoveryGroupResponse -> CreateRecoveryGroupResponse -> Bool
$c/= :: CreateRecoveryGroupResponse -> CreateRecoveryGroupResponse -> Bool
== :: CreateRecoveryGroupResponse -> CreateRecoveryGroupResponse -> Bool
$c== :: CreateRecoveryGroupResponse -> CreateRecoveryGroupResponse -> Bool
Prelude.Eq, ReadPrec [CreateRecoveryGroupResponse]
ReadPrec CreateRecoveryGroupResponse
Int -> ReadS CreateRecoveryGroupResponse
ReadS [CreateRecoveryGroupResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateRecoveryGroupResponse]
$creadListPrec :: ReadPrec [CreateRecoveryGroupResponse]
readPrec :: ReadPrec CreateRecoveryGroupResponse
$creadPrec :: ReadPrec CreateRecoveryGroupResponse
readList :: ReadS [CreateRecoveryGroupResponse]
$creadList :: ReadS [CreateRecoveryGroupResponse]
readsPrec :: Int -> ReadS CreateRecoveryGroupResponse
$creadsPrec :: Int -> ReadS CreateRecoveryGroupResponse
Prelude.Read, Int -> CreateRecoveryGroupResponse -> ShowS
[CreateRecoveryGroupResponse] -> ShowS
CreateRecoveryGroupResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateRecoveryGroupResponse] -> ShowS
$cshowList :: [CreateRecoveryGroupResponse] -> ShowS
show :: CreateRecoveryGroupResponse -> String
$cshow :: CreateRecoveryGroupResponse -> String
showsPrec :: Int -> CreateRecoveryGroupResponse -> ShowS
$cshowsPrec :: Int -> CreateRecoveryGroupResponse -> ShowS
Prelude.Show, forall x.
Rep CreateRecoveryGroupResponse x -> CreateRecoveryGroupResponse
forall x.
CreateRecoveryGroupResponse -> Rep CreateRecoveryGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateRecoveryGroupResponse x -> CreateRecoveryGroupResponse
$cfrom :: forall x.
CreateRecoveryGroupResponse -> Rep CreateRecoveryGroupResponse x
Prelude.Generic)
newCreateRecoveryGroupResponse ::
Prelude.Int ->
CreateRecoveryGroupResponse
newCreateRecoveryGroupResponse :: Int -> CreateRecoveryGroupResponse
newCreateRecoveryGroupResponse Int
pHttpStatus_ =
CreateRecoveryGroupResponse'
{ $sel:cells:CreateRecoveryGroupResponse' :: Maybe [Text]
cells =
forall a. Maybe a
Prelude.Nothing,
$sel:recoveryGroupArn:CreateRecoveryGroupResponse' :: Maybe Text
recoveryGroupArn = forall a. Maybe a
Prelude.Nothing,
$sel:recoveryGroupName:CreateRecoveryGroupResponse' :: Maybe Text
recoveryGroupName = forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateRecoveryGroupResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateRecoveryGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createRecoveryGroupResponse_cells :: Lens.Lens' CreateRecoveryGroupResponse (Prelude.Maybe [Prelude.Text])
createRecoveryGroupResponse_cells :: Lens' CreateRecoveryGroupResponse (Maybe [Text])
createRecoveryGroupResponse_cells = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRecoveryGroupResponse' {Maybe [Text]
cells :: Maybe [Text]
$sel:cells:CreateRecoveryGroupResponse' :: CreateRecoveryGroupResponse -> Maybe [Text]
cells} -> Maybe [Text]
cells) (\s :: CreateRecoveryGroupResponse
s@CreateRecoveryGroupResponse' {} Maybe [Text]
a -> CreateRecoveryGroupResponse
s {$sel:cells:CreateRecoveryGroupResponse' :: Maybe [Text]
cells = Maybe [Text]
a} :: CreateRecoveryGroupResponse) 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
createRecoveryGroupResponse_recoveryGroupArn :: Lens.Lens' CreateRecoveryGroupResponse (Prelude.Maybe Prelude.Text)
createRecoveryGroupResponse_recoveryGroupArn :: Lens' CreateRecoveryGroupResponse (Maybe Text)
createRecoveryGroupResponse_recoveryGroupArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRecoveryGroupResponse' {Maybe Text
recoveryGroupArn :: Maybe Text
$sel:recoveryGroupArn:CreateRecoveryGroupResponse' :: CreateRecoveryGroupResponse -> Maybe Text
recoveryGroupArn} -> Maybe Text
recoveryGroupArn) (\s :: CreateRecoveryGroupResponse
s@CreateRecoveryGroupResponse' {} Maybe Text
a -> CreateRecoveryGroupResponse
s {$sel:recoveryGroupArn:CreateRecoveryGroupResponse' :: Maybe Text
recoveryGroupArn = Maybe Text
a} :: CreateRecoveryGroupResponse)
createRecoveryGroupResponse_recoveryGroupName :: Lens.Lens' CreateRecoveryGroupResponse (Prelude.Maybe Prelude.Text)
createRecoveryGroupResponse_recoveryGroupName :: Lens' CreateRecoveryGroupResponse (Maybe Text)
createRecoveryGroupResponse_recoveryGroupName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRecoveryGroupResponse' {Maybe Text
recoveryGroupName :: Maybe Text
$sel:recoveryGroupName:CreateRecoveryGroupResponse' :: CreateRecoveryGroupResponse -> Maybe Text
recoveryGroupName} -> Maybe Text
recoveryGroupName) (\s :: CreateRecoveryGroupResponse
s@CreateRecoveryGroupResponse' {} Maybe Text
a -> CreateRecoveryGroupResponse
s {$sel:recoveryGroupName:CreateRecoveryGroupResponse' :: Maybe Text
recoveryGroupName = Maybe Text
a} :: CreateRecoveryGroupResponse)
createRecoveryGroupResponse_tags :: Lens.Lens' CreateRecoveryGroupResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createRecoveryGroupResponse_tags :: Lens' CreateRecoveryGroupResponse (Maybe (HashMap Text Text))
createRecoveryGroupResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRecoveryGroupResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateRecoveryGroupResponse' :: CreateRecoveryGroupResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateRecoveryGroupResponse
s@CreateRecoveryGroupResponse' {} Maybe (HashMap Text Text)
a -> CreateRecoveryGroupResponse
s {$sel:tags:CreateRecoveryGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateRecoveryGroupResponse) 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
createRecoveryGroupResponse_httpStatus :: Lens.Lens' CreateRecoveryGroupResponse Prelude.Int
createRecoveryGroupResponse_httpStatus :: Lens' CreateRecoveryGroupResponse Int
createRecoveryGroupResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRecoveryGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateRecoveryGroupResponse' :: CreateRecoveryGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateRecoveryGroupResponse
s@CreateRecoveryGroupResponse' {} Int
a -> CreateRecoveryGroupResponse
s {$sel:httpStatus:CreateRecoveryGroupResponse' :: Int
httpStatus = Int
a} :: CreateRecoveryGroupResponse)
instance Prelude.NFData CreateRecoveryGroupResponse where
rnf :: CreateRecoveryGroupResponse -> ()
rnf CreateRecoveryGroupResponse' {Int
Maybe [Text]
Maybe Text
Maybe (HashMap Text Text)
httpStatus :: Int
tags :: Maybe (HashMap Text Text)
recoveryGroupName :: Maybe Text
recoveryGroupArn :: Maybe Text
cells :: Maybe [Text]
$sel:httpStatus:CreateRecoveryGroupResponse' :: CreateRecoveryGroupResponse -> Int
$sel:tags:CreateRecoveryGroupResponse' :: CreateRecoveryGroupResponse -> Maybe (HashMap Text Text)
$sel:recoveryGroupName:CreateRecoveryGroupResponse' :: CreateRecoveryGroupResponse -> Maybe Text
$sel:recoveryGroupArn:CreateRecoveryGroupResponse' :: CreateRecoveryGroupResponse -> Maybe Text
$sel:cells:CreateRecoveryGroupResponse' :: CreateRecoveryGroupResponse -> Maybe [Text]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
cells
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
recoveryGroupArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
recoveryGroupName
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