{-# 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.GetRecoveryGroup
(
GetRecoveryGroup (..),
newGetRecoveryGroup,
getRecoveryGroup_recoveryGroupName,
GetRecoveryGroupResponse (..),
newGetRecoveryGroupResponse,
getRecoveryGroupResponse_cells,
getRecoveryGroupResponse_recoveryGroupName,
getRecoveryGroupResponse_recoveryGroupArn,
getRecoveryGroupResponse_tags,
getRecoveryGroupResponse_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 GetRecoveryGroup = GetRecoveryGroup'
{
GetRecoveryGroup -> Text
recoveryGroupName :: Prelude.Text
}
deriving (GetRecoveryGroup -> GetRecoveryGroup -> Bool
(GetRecoveryGroup -> GetRecoveryGroup -> Bool)
-> (GetRecoveryGroup -> GetRecoveryGroup -> Bool)
-> Eq GetRecoveryGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRecoveryGroup -> GetRecoveryGroup -> Bool
$c/= :: GetRecoveryGroup -> GetRecoveryGroup -> Bool
== :: GetRecoveryGroup -> GetRecoveryGroup -> Bool
$c== :: GetRecoveryGroup -> GetRecoveryGroup -> Bool
Prelude.Eq, ReadPrec [GetRecoveryGroup]
ReadPrec GetRecoveryGroup
Int -> ReadS GetRecoveryGroup
ReadS [GetRecoveryGroup]
(Int -> ReadS GetRecoveryGroup)
-> ReadS [GetRecoveryGroup]
-> ReadPrec GetRecoveryGroup
-> ReadPrec [GetRecoveryGroup]
-> Read GetRecoveryGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRecoveryGroup]
$creadListPrec :: ReadPrec [GetRecoveryGroup]
readPrec :: ReadPrec GetRecoveryGroup
$creadPrec :: ReadPrec GetRecoveryGroup
readList :: ReadS [GetRecoveryGroup]
$creadList :: ReadS [GetRecoveryGroup]
readsPrec :: Int -> ReadS GetRecoveryGroup
$creadsPrec :: Int -> ReadS GetRecoveryGroup
Prelude.Read, Int -> GetRecoveryGroup -> ShowS
[GetRecoveryGroup] -> ShowS
GetRecoveryGroup -> String
(Int -> GetRecoveryGroup -> ShowS)
-> (GetRecoveryGroup -> String)
-> ([GetRecoveryGroup] -> ShowS)
-> Show GetRecoveryGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRecoveryGroup] -> ShowS
$cshowList :: [GetRecoveryGroup] -> ShowS
show :: GetRecoveryGroup -> String
$cshow :: GetRecoveryGroup -> String
showsPrec :: Int -> GetRecoveryGroup -> ShowS
$cshowsPrec :: Int -> GetRecoveryGroup -> ShowS
Prelude.Show, (forall x. GetRecoveryGroup -> Rep GetRecoveryGroup x)
-> (forall x. Rep GetRecoveryGroup x -> GetRecoveryGroup)
-> Generic GetRecoveryGroup
forall x. Rep GetRecoveryGroup x -> GetRecoveryGroup
forall x. GetRecoveryGroup -> Rep GetRecoveryGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetRecoveryGroup x -> GetRecoveryGroup
$cfrom :: forall x. GetRecoveryGroup -> Rep GetRecoveryGroup x
Prelude.Generic)
newGetRecoveryGroup ::
Prelude.Text ->
GetRecoveryGroup
newGetRecoveryGroup :: Text -> GetRecoveryGroup
newGetRecoveryGroup Text
pRecoveryGroupName_ =
GetRecoveryGroup' :: Text -> GetRecoveryGroup
GetRecoveryGroup'
{ $sel:recoveryGroupName:GetRecoveryGroup' :: Text
recoveryGroupName =
Text
pRecoveryGroupName_
}
getRecoveryGroup_recoveryGroupName :: Lens.Lens' GetRecoveryGroup Prelude.Text
getRecoveryGroup_recoveryGroupName :: (Text -> f Text) -> GetRecoveryGroup -> f GetRecoveryGroup
getRecoveryGroup_recoveryGroupName = (GetRecoveryGroup -> Text)
-> (GetRecoveryGroup -> Text -> GetRecoveryGroup)
-> Lens GetRecoveryGroup GetRecoveryGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRecoveryGroup' {Text
recoveryGroupName :: Text
$sel:recoveryGroupName:GetRecoveryGroup' :: GetRecoveryGroup -> Text
recoveryGroupName} -> Text
recoveryGroupName) (\s :: GetRecoveryGroup
s@GetRecoveryGroup' {} Text
a -> GetRecoveryGroup
s {$sel:recoveryGroupName:GetRecoveryGroup' :: Text
recoveryGroupName = Text
a} :: GetRecoveryGroup)
instance Core.AWSRequest GetRecoveryGroup where
type
AWSResponse GetRecoveryGroup =
GetRecoveryGroupResponse
request :: GetRecoveryGroup -> Request GetRecoveryGroup
request = Service -> GetRecoveryGroup -> Request GetRecoveryGroup
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetRecoveryGroup
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetRecoveryGroup)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetRecoveryGroup))
-> Logger
-> Service
-> Proxy GetRecoveryGroup
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetRecoveryGroup)))
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
-> GetRecoveryGroupResponse
GetRecoveryGroupResponse'
(Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetRecoveryGroupResponse)
-> Either String (Maybe [Text])
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetRecoveryGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"cells" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetRecoveryGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> GetRecoveryGroupResponse)
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
"recoveryGroupName")
Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> GetRecoveryGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text) -> Int -> GetRecoveryGroupResponse)
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
"recoveryGroupArn")
Either
String
(Maybe (HashMap Text Text) -> Int -> GetRecoveryGroupResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetRecoveryGroupResponse)
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 -> GetRecoveryGroupResponse)
-> Either String Int -> Either String GetRecoveryGroupResponse
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 GetRecoveryGroup
instance Prelude.NFData GetRecoveryGroup
instance Core.ToHeaders GetRecoveryGroup where
toHeaders :: GetRecoveryGroup -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetRecoveryGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath GetRecoveryGroup where
toPath :: GetRecoveryGroup -> ByteString
toPath GetRecoveryGroup' {Text
recoveryGroupName :: Text
$sel:recoveryGroupName:GetRecoveryGroup' :: GetRecoveryGroup -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/recoverygroups/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
recoveryGroupName]
instance Core.ToQuery GetRecoveryGroup where
toQuery :: GetRecoveryGroup -> QueryString
toQuery = QueryString -> GetRecoveryGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetRecoveryGroupResponse = GetRecoveryGroupResponse'
{
GetRecoveryGroupResponse -> Maybe [Text]
cells :: Prelude.Maybe [Prelude.Text],
GetRecoveryGroupResponse -> Maybe Text
recoveryGroupName :: Prelude.Maybe Prelude.Text,
GetRecoveryGroupResponse -> Maybe Text
recoveryGroupArn :: Prelude.Maybe Prelude.Text,
GetRecoveryGroupResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetRecoveryGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetRecoveryGroupResponse -> GetRecoveryGroupResponse -> Bool
(GetRecoveryGroupResponse -> GetRecoveryGroupResponse -> Bool)
-> (GetRecoveryGroupResponse -> GetRecoveryGroupResponse -> Bool)
-> Eq GetRecoveryGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRecoveryGroupResponse -> GetRecoveryGroupResponse -> Bool
$c/= :: GetRecoveryGroupResponse -> GetRecoveryGroupResponse -> Bool
== :: GetRecoveryGroupResponse -> GetRecoveryGroupResponse -> Bool
$c== :: GetRecoveryGroupResponse -> GetRecoveryGroupResponse -> Bool
Prelude.Eq, ReadPrec [GetRecoveryGroupResponse]
ReadPrec GetRecoveryGroupResponse
Int -> ReadS GetRecoveryGroupResponse
ReadS [GetRecoveryGroupResponse]
(Int -> ReadS GetRecoveryGroupResponse)
-> ReadS [GetRecoveryGroupResponse]
-> ReadPrec GetRecoveryGroupResponse
-> ReadPrec [GetRecoveryGroupResponse]
-> Read GetRecoveryGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRecoveryGroupResponse]
$creadListPrec :: ReadPrec [GetRecoveryGroupResponse]
readPrec :: ReadPrec GetRecoveryGroupResponse
$creadPrec :: ReadPrec GetRecoveryGroupResponse
readList :: ReadS [GetRecoveryGroupResponse]
$creadList :: ReadS [GetRecoveryGroupResponse]
readsPrec :: Int -> ReadS GetRecoveryGroupResponse
$creadsPrec :: Int -> ReadS GetRecoveryGroupResponse
Prelude.Read, Int -> GetRecoveryGroupResponse -> ShowS
[GetRecoveryGroupResponse] -> ShowS
GetRecoveryGroupResponse -> String
(Int -> GetRecoveryGroupResponse -> ShowS)
-> (GetRecoveryGroupResponse -> String)
-> ([GetRecoveryGroupResponse] -> ShowS)
-> Show GetRecoveryGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRecoveryGroupResponse] -> ShowS
$cshowList :: [GetRecoveryGroupResponse] -> ShowS
show :: GetRecoveryGroupResponse -> String
$cshow :: GetRecoveryGroupResponse -> String
showsPrec :: Int -> GetRecoveryGroupResponse -> ShowS
$cshowsPrec :: Int -> GetRecoveryGroupResponse -> ShowS
Prelude.Show, (forall x.
GetRecoveryGroupResponse -> Rep GetRecoveryGroupResponse x)
-> (forall x.
Rep GetRecoveryGroupResponse x -> GetRecoveryGroupResponse)
-> Generic GetRecoveryGroupResponse
forall x.
Rep GetRecoveryGroupResponse x -> GetRecoveryGroupResponse
forall x.
GetRecoveryGroupResponse -> Rep GetRecoveryGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetRecoveryGroupResponse x -> GetRecoveryGroupResponse
$cfrom :: forall x.
GetRecoveryGroupResponse -> Rep GetRecoveryGroupResponse x
Prelude.Generic)
newGetRecoveryGroupResponse ::
Prelude.Int ->
GetRecoveryGroupResponse
newGetRecoveryGroupResponse :: Int -> GetRecoveryGroupResponse
newGetRecoveryGroupResponse Int
pHttpStatus_ =
GetRecoveryGroupResponse' :: Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetRecoveryGroupResponse
GetRecoveryGroupResponse'
{ $sel:cells:GetRecoveryGroupResponse' :: Maybe [Text]
cells = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:recoveryGroupName:GetRecoveryGroupResponse' :: Maybe Text
recoveryGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:recoveryGroupArn:GetRecoveryGroupResponse' :: Maybe Text
recoveryGroupArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:GetRecoveryGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetRecoveryGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getRecoveryGroupResponse_cells :: Lens.Lens' GetRecoveryGroupResponse (Prelude.Maybe [Prelude.Text])
getRecoveryGroupResponse_cells :: (Maybe [Text] -> f (Maybe [Text]))
-> GetRecoveryGroupResponse -> f GetRecoveryGroupResponse
getRecoveryGroupResponse_cells = (GetRecoveryGroupResponse -> Maybe [Text])
-> (GetRecoveryGroupResponse
-> Maybe [Text] -> GetRecoveryGroupResponse)
-> Lens
GetRecoveryGroupResponse
GetRecoveryGroupResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRecoveryGroupResponse' {Maybe [Text]
cells :: Maybe [Text]
$sel:cells:GetRecoveryGroupResponse' :: GetRecoveryGroupResponse -> Maybe [Text]
cells} -> Maybe [Text]
cells) (\s :: GetRecoveryGroupResponse
s@GetRecoveryGroupResponse' {} Maybe [Text]
a -> GetRecoveryGroupResponse
s {$sel:cells:GetRecoveryGroupResponse' :: Maybe [Text]
cells = Maybe [Text]
a} :: GetRecoveryGroupResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> GetRecoveryGroupResponse -> f GetRecoveryGroupResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> GetRecoveryGroupResponse
-> f GetRecoveryGroupResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getRecoveryGroupResponse_recoveryGroupName :: Lens.Lens' GetRecoveryGroupResponse (Prelude.Maybe Prelude.Text)
getRecoveryGroupResponse_recoveryGroupName :: (Maybe Text -> f (Maybe Text))
-> GetRecoveryGroupResponse -> f GetRecoveryGroupResponse
getRecoveryGroupResponse_recoveryGroupName = (GetRecoveryGroupResponse -> Maybe Text)
-> (GetRecoveryGroupResponse
-> Maybe Text -> GetRecoveryGroupResponse)
-> Lens
GetRecoveryGroupResponse
GetRecoveryGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRecoveryGroupResponse' {Maybe Text
recoveryGroupName :: Maybe Text
$sel:recoveryGroupName:GetRecoveryGroupResponse' :: GetRecoveryGroupResponse -> Maybe Text
recoveryGroupName} -> Maybe Text
recoveryGroupName) (\s :: GetRecoveryGroupResponse
s@GetRecoveryGroupResponse' {} Maybe Text
a -> GetRecoveryGroupResponse
s {$sel:recoveryGroupName:GetRecoveryGroupResponse' :: Maybe Text
recoveryGroupName = Maybe Text
a} :: GetRecoveryGroupResponse)
getRecoveryGroupResponse_recoveryGroupArn :: Lens.Lens' GetRecoveryGroupResponse (Prelude.Maybe Prelude.Text)
getRecoveryGroupResponse_recoveryGroupArn :: (Maybe Text -> f (Maybe Text))
-> GetRecoveryGroupResponse -> f GetRecoveryGroupResponse
getRecoveryGroupResponse_recoveryGroupArn = (GetRecoveryGroupResponse -> Maybe Text)
-> (GetRecoveryGroupResponse
-> Maybe Text -> GetRecoveryGroupResponse)
-> Lens
GetRecoveryGroupResponse
GetRecoveryGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRecoveryGroupResponse' {Maybe Text
recoveryGroupArn :: Maybe Text
$sel:recoveryGroupArn:GetRecoveryGroupResponse' :: GetRecoveryGroupResponse -> Maybe Text
recoveryGroupArn} -> Maybe Text
recoveryGroupArn) (\s :: GetRecoveryGroupResponse
s@GetRecoveryGroupResponse' {} Maybe Text
a -> GetRecoveryGroupResponse
s {$sel:recoveryGroupArn:GetRecoveryGroupResponse' :: Maybe Text
recoveryGroupArn = Maybe Text
a} :: GetRecoveryGroupResponse)
getRecoveryGroupResponse_tags :: Lens.Lens' GetRecoveryGroupResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getRecoveryGroupResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetRecoveryGroupResponse -> f GetRecoveryGroupResponse
getRecoveryGroupResponse_tags = (GetRecoveryGroupResponse -> Maybe (HashMap Text Text))
-> (GetRecoveryGroupResponse
-> Maybe (HashMap Text Text) -> GetRecoveryGroupResponse)
-> Lens
GetRecoveryGroupResponse
GetRecoveryGroupResponse
(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 (\GetRecoveryGroupResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetRecoveryGroupResponse' :: GetRecoveryGroupResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetRecoveryGroupResponse
s@GetRecoveryGroupResponse' {} Maybe (HashMap Text Text)
a -> GetRecoveryGroupResponse
s {$sel:tags:GetRecoveryGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetRecoveryGroupResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetRecoveryGroupResponse -> f GetRecoveryGroupResponse)
-> ((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)))
-> GetRecoveryGroupResponse
-> f GetRecoveryGroupResponse
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
getRecoveryGroupResponse_httpStatus :: Lens.Lens' GetRecoveryGroupResponse Prelude.Int
getRecoveryGroupResponse_httpStatus :: (Int -> f Int)
-> GetRecoveryGroupResponse -> f GetRecoveryGroupResponse
getRecoveryGroupResponse_httpStatus = (GetRecoveryGroupResponse -> Int)
-> (GetRecoveryGroupResponse -> Int -> GetRecoveryGroupResponse)
-> Lens GetRecoveryGroupResponse GetRecoveryGroupResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRecoveryGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetRecoveryGroupResponse' :: GetRecoveryGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetRecoveryGroupResponse
s@GetRecoveryGroupResponse' {} Int
a -> GetRecoveryGroupResponse
s {$sel:httpStatus:GetRecoveryGroupResponse' :: Int
httpStatus = Int
a} :: GetRecoveryGroupResponse)
instance Prelude.NFData GetRecoveryGroupResponse