{-# 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.Backup.GetRecoveryPointRestoreMetadata
(
GetRecoveryPointRestoreMetadata (..),
newGetRecoveryPointRestoreMetadata,
getRecoveryPointRestoreMetadata_backupVaultName,
getRecoveryPointRestoreMetadata_recoveryPointArn,
GetRecoveryPointRestoreMetadataResponse (..),
newGetRecoveryPointRestoreMetadataResponse,
getRecoveryPointRestoreMetadataResponse_backupVaultArn,
getRecoveryPointRestoreMetadataResponse_recoveryPointArn,
getRecoveryPointRestoreMetadataResponse_restoreMetadata,
getRecoveryPointRestoreMetadataResponse_httpStatus,
)
where
import Amazonka.Backup.Types
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
data GetRecoveryPointRestoreMetadata = GetRecoveryPointRestoreMetadata'
{
GetRecoveryPointRestoreMetadata -> Text
backupVaultName :: Prelude.Text,
GetRecoveryPointRestoreMetadata -> Text
recoveryPointArn :: Prelude.Text
}
deriving (GetRecoveryPointRestoreMetadata
-> GetRecoveryPointRestoreMetadata -> Bool
(GetRecoveryPointRestoreMetadata
-> GetRecoveryPointRestoreMetadata -> Bool)
-> (GetRecoveryPointRestoreMetadata
-> GetRecoveryPointRestoreMetadata -> Bool)
-> Eq GetRecoveryPointRestoreMetadata
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRecoveryPointRestoreMetadata
-> GetRecoveryPointRestoreMetadata -> Bool
$c/= :: GetRecoveryPointRestoreMetadata
-> GetRecoveryPointRestoreMetadata -> Bool
== :: GetRecoveryPointRestoreMetadata
-> GetRecoveryPointRestoreMetadata -> Bool
$c== :: GetRecoveryPointRestoreMetadata
-> GetRecoveryPointRestoreMetadata -> Bool
Prelude.Eq, ReadPrec [GetRecoveryPointRestoreMetadata]
ReadPrec GetRecoveryPointRestoreMetadata
Int -> ReadS GetRecoveryPointRestoreMetadata
ReadS [GetRecoveryPointRestoreMetadata]
(Int -> ReadS GetRecoveryPointRestoreMetadata)
-> ReadS [GetRecoveryPointRestoreMetadata]
-> ReadPrec GetRecoveryPointRestoreMetadata
-> ReadPrec [GetRecoveryPointRestoreMetadata]
-> Read GetRecoveryPointRestoreMetadata
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRecoveryPointRestoreMetadata]
$creadListPrec :: ReadPrec [GetRecoveryPointRestoreMetadata]
readPrec :: ReadPrec GetRecoveryPointRestoreMetadata
$creadPrec :: ReadPrec GetRecoveryPointRestoreMetadata
readList :: ReadS [GetRecoveryPointRestoreMetadata]
$creadList :: ReadS [GetRecoveryPointRestoreMetadata]
readsPrec :: Int -> ReadS GetRecoveryPointRestoreMetadata
$creadsPrec :: Int -> ReadS GetRecoveryPointRestoreMetadata
Prelude.Read, Int -> GetRecoveryPointRestoreMetadata -> ShowS
[GetRecoveryPointRestoreMetadata] -> ShowS
GetRecoveryPointRestoreMetadata -> String
(Int -> GetRecoveryPointRestoreMetadata -> ShowS)
-> (GetRecoveryPointRestoreMetadata -> String)
-> ([GetRecoveryPointRestoreMetadata] -> ShowS)
-> Show GetRecoveryPointRestoreMetadata
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRecoveryPointRestoreMetadata] -> ShowS
$cshowList :: [GetRecoveryPointRestoreMetadata] -> ShowS
show :: GetRecoveryPointRestoreMetadata -> String
$cshow :: GetRecoveryPointRestoreMetadata -> String
showsPrec :: Int -> GetRecoveryPointRestoreMetadata -> ShowS
$cshowsPrec :: Int -> GetRecoveryPointRestoreMetadata -> ShowS
Prelude.Show, (forall x.
GetRecoveryPointRestoreMetadata
-> Rep GetRecoveryPointRestoreMetadata x)
-> (forall x.
Rep GetRecoveryPointRestoreMetadata x
-> GetRecoveryPointRestoreMetadata)
-> Generic GetRecoveryPointRestoreMetadata
forall x.
Rep GetRecoveryPointRestoreMetadata x
-> GetRecoveryPointRestoreMetadata
forall x.
GetRecoveryPointRestoreMetadata
-> Rep GetRecoveryPointRestoreMetadata x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetRecoveryPointRestoreMetadata x
-> GetRecoveryPointRestoreMetadata
$cfrom :: forall x.
GetRecoveryPointRestoreMetadata
-> Rep GetRecoveryPointRestoreMetadata x
Prelude.Generic)
newGetRecoveryPointRestoreMetadata ::
Prelude.Text ->
Prelude.Text ->
GetRecoveryPointRestoreMetadata
newGetRecoveryPointRestoreMetadata :: Text -> Text -> GetRecoveryPointRestoreMetadata
newGetRecoveryPointRestoreMetadata
Text
pBackupVaultName_
Text
pRecoveryPointArn_ =
GetRecoveryPointRestoreMetadata' :: Text -> Text -> GetRecoveryPointRestoreMetadata
GetRecoveryPointRestoreMetadata'
{ $sel:backupVaultName:GetRecoveryPointRestoreMetadata' :: Text
backupVaultName =
Text
pBackupVaultName_,
$sel:recoveryPointArn:GetRecoveryPointRestoreMetadata' :: Text
recoveryPointArn = Text
pRecoveryPointArn_
}
getRecoveryPointRestoreMetadata_backupVaultName :: Lens.Lens' GetRecoveryPointRestoreMetadata Prelude.Text
getRecoveryPointRestoreMetadata_backupVaultName :: (Text -> f Text)
-> GetRecoveryPointRestoreMetadata
-> f GetRecoveryPointRestoreMetadata
getRecoveryPointRestoreMetadata_backupVaultName = (GetRecoveryPointRestoreMetadata -> Text)
-> (GetRecoveryPointRestoreMetadata
-> Text -> GetRecoveryPointRestoreMetadata)
-> Lens
GetRecoveryPointRestoreMetadata
GetRecoveryPointRestoreMetadata
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRecoveryPointRestoreMetadata' {Text
backupVaultName :: Text
$sel:backupVaultName:GetRecoveryPointRestoreMetadata' :: GetRecoveryPointRestoreMetadata -> Text
backupVaultName} -> Text
backupVaultName) (\s :: GetRecoveryPointRestoreMetadata
s@GetRecoveryPointRestoreMetadata' {} Text
a -> GetRecoveryPointRestoreMetadata
s {$sel:backupVaultName:GetRecoveryPointRestoreMetadata' :: Text
backupVaultName = Text
a} :: GetRecoveryPointRestoreMetadata)
getRecoveryPointRestoreMetadata_recoveryPointArn :: Lens.Lens' GetRecoveryPointRestoreMetadata Prelude.Text
getRecoveryPointRestoreMetadata_recoveryPointArn :: (Text -> f Text)
-> GetRecoveryPointRestoreMetadata
-> f GetRecoveryPointRestoreMetadata
getRecoveryPointRestoreMetadata_recoveryPointArn = (GetRecoveryPointRestoreMetadata -> Text)
-> (GetRecoveryPointRestoreMetadata
-> Text -> GetRecoveryPointRestoreMetadata)
-> Lens
GetRecoveryPointRestoreMetadata
GetRecoveryPointRestoreMetadata
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRecoveryPointRestoreMetadata' {Text
recoveryPointArn :: Text
$sel:recoveryPointArn:GetRecoveryPointRestoreMetadata' :: GetRecoveryPointRestoreMetadata -> Text
recoveryPointArn} -> Text
recoveryPointArn) (\s :: GetRecoveryPointRestoreMetadata
s@GetRecoveryPointRestoreMetadata' {} Text
a -> GetRecoveryPointRestoreMetadata
s {$sel:recoveryPointArn:GetRecoveryPointRestoreMetadata' :: Text
recoveryPointArn = Text
a} :: GetRecoveryPointRestoreMetadata)
instance
Core.AWSRequest
GetRecoveryPointRestoreMetadata
where
type
AWSResponse GetRecoveryPointRestoreMetadata =
GetRecoveryPointRestoreMetadataResponse
request :: GetRecoveryPointRestoreMetadata
-> Request GetRecoveryPointRestoreMetadata
request = Service
-> GetRecoveryPointRestoreMetadata
-> Request GetRecoveryPointRestoreMetadata
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetRecoveryPointRestoreMetadata
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GetRecoveryPointRestoreMetadata)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetRecoveryPointRestoreMetadata))
-> Logger
-> Service
-> Proxy GetRecoveryPointRestoreMetadata
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GetRecoveryPointRestoreMetadata)))
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 (Sensitive (HashMap Text Text))
-> Int
-> GetRecoveryPointRestoreMetadataResponse
GetRecoveryPointRestoreMetadataResponse'
(Maybe Text
-> Maybe Text
-> Maybe (Sensitive (HashMap Text Text))
-> Int
-> GetRecoveryPointRestoreMetadataResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (Sensitive (HashMap Text Text))
-> Int
-> GetRecoveryPointRestoreMetadataResponse)
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
"BackupVaultArn")
Either
String
(Maybe Text
-> Maybe (Sensitive (HashMap Text Text))
-> Int
-> GetRecoveryPointRestoreMetadataResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (Sensitive (HashMap Text Text))
-> Int -> GetRecoveryPointRestoreMetadataResponse)
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
"RecoveryPointArn")
Either
String
(Maybe (Sensitive (HashMap Text Text))
-> Int -> GetRecoveryPointRestoreMetadataResponse)
-> Either String (Maybe (Sensitive (HashMap Text Text)))
-> Either String (Int -> GetRecoveryPointRestoreMetadataResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe (Sensitive (HashMap Text Text))))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RestoreMetadata"
Either String (Maybe (Maybe (Sensitive (HashMap Text Text))))
-> Maybe (Sensitive (HashMap Text Text))
-> Either String (Maybe (Sensitive (HashMap Text Text)))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (Sensitive (HashMap Text Text))
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> GetRecoveryPointRestoreMetadataResponse)
-> Either String Int
-> Either String GetRecoveryPointRestoreMetadataResponse
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
GetRecoveryPointRestoreMetadata
instance
Prelude.NFData
GetRecoveryPointRestoreMetadata
instance
Core.ToHeaders
GetRecoveryPointRestoreMetadata
where
toHeaders :: GetRecoveryPointRestoreMetadata -> ResponseHeaders
toHeaders =
ResponseHeaders
-> GetRecoveryPointRestoreMetadata -> 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 GetRecoveryPointRestoreMetadata where
toPath :: GetRecoveryPointRestoreMetadata -> ByteString
toPath GetRecoveryPointRestoreMetadata' {Text
recoveryPointArn :: Text
backupVaultName :: Text
$sel:recoveryPointArn:GetRecoveryPointRestoreMetadata' :: GetRecoveryPointRestoreMetadata -> Text
$sel:backupVaultName:GetRecoveryPointRestoreMetadata' :: GetRecoveryPointRestoreMetadata -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/backup-vaults/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
backupVaultName,
ByteString
"/recovery-points/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
recoveryPointArn,
ByteString
"/restore-metadata"
]
instance Core.ToQuery GetRecoveryPointRestoreMetadata where
toQuery :: GetRecoveryPointRestoreMetadata -> QueryString
toQuery = QueryString -> GetRecoveryPointRestoreMetadata -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetRecoveryPointRestoreMetadataResponse = GetRecoveryPointRestoreMetadataResponse'
{
GetRecoveryPointRestoreMetadataResponse -> Maybe Text
backupVaultArn :: Prelude.Maybe Prelude.Text,
GetRecoveryPointRestoreMetadataResponse -> Maybe Text
recoveryPointArn :: Prelude.Maybe Prelude.Text,
GetRecoveryPointRestoreMetadataResponse
-> Maybe (Sensitive (HashMap Text Text))
restoreMetadata :: Prelude.Maybe (Core.Sensitive (Prelude.HashMap Prelude.Text Prelude.Text)),
GetRecoveryPointRestoreMetadataResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetRecoveryPointRestoreMetadataResponse
-> GetRecoveryPointRestoreMetadataResponse -> Bool
(GetRecoveryPointRestoreMetadataResponse
-> GetRecoveryPointRestoreMetadataResponse -> Bool)
-> (GetRecoveryPointRestoreMetadataResponse
-> GetRecoveryPointRestoreMetadataResponse -> Bool)
-> Eq GetRecoveryPointRestoreMetadataResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRecoveryPointRestoreMetadataResponse
-> GetRecoveryPointRestoreMetadataResponse -> Bool
$c/= :: GetRecoveryPointRestoreMetadataResponse
-> GetRecoveryPointRestoreMetadataResponse -> Bool
== :: GetRecoveryPointRestoreMetadataResponse
-> GetRecoveryPointRestoreMetadataResponse -> Bool
$c== :: GetRecoveryPointRestoreMetadataResponse
-> GetRecoveryPointRestoreMetadataResponse -> Bool
Prelude.Eq, Int -> GetRecoveryPointRestoreMetadataResponse -> ShowS
[GetRecoveryPointRestoreMetadataResponse] -> ShowS
GetRecoveryPointRestoreMetadataResponse -> String
(Int -> GetRecoveryPointRestoreMetadataResponse -> ShowS)
-> (GetRecoveryPointRestoreMetadataResponse -> String)
-> ([GetRecoveryPointRestoreMetadataResponse] -> ShowS)
-> Show GetRecoveryPointRestoreMetadataResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRecoveryPointRestoreMetadataResponse] -> ShowS
$cshowList :: [GetRecoveryPointRestoreMetadataResponse] -> ShowS
show :: GetRecoveryPointRestoreMetadataResponse -> String
$cshow :: GetRecoveryPointRestoreMetadataResponse -> String
showsPrec :: Int -> GetRecoveryPointRestoreMetadataResponse -> ShowS
$cshowsPrec :: Int -> GetRecoveryPointRestoreMetadataResponse -> ShowS
Prelude.Show, (forall x.
GetRecoveryPointRestoreMetadataResponse
-> Rep GetRecoveryPointRestoreMetadataResponse x)
-> (forall x.
Rep GetRecoveryPointRestoreMetadataResponse x
-> GetRecoveryPointRestoreMetadataResponse)
-> Generic GetRecoveryPointRestoreMetadataResponse
forall x.
Rep GetRecoveryPointRestoreMetadataResponse x
-> GetRecoveryPointRestoreMetadataResponse
forall x.
GetRecoveryPointRestoreMetadataResponse
-> Rep GetRecoveryPointRestoreMetadataResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetRecoveryPointRestoreMetadataResponse x
-> GetRecoveryPointRestoreMetadataResponse
$cfrom :: forall x.
GetRecoveryPointRestoreMetadataResponse
-> Rep GetRecoveryPointRestoreMetadataResponse x
Prelude.Generic)
newGetRecoveryPointRestoreMetadataResponse ::
Prelude.Int ->
GetRecoveryPointRestoreMetadataResponse
newGetRecoveryPointRestoreMetadataResponse :: Int -> GetRecoveryPointRestoreMetadataResponse
newGetRecoveryPointRestoreMetadataResponse
Int
pHttpStatus_ =
GetRecoveryPointRestoreMetadataResponse' :: Maybe Text
-> Maybe Text
-> Maybe (Sensitive (HashMap Text Text))
-> Int
-> GetRecoveryPointRestoreMetadataResponse
GetRecoveryPointRestoreMetadataResponse'
{ $sel:backupVaultArn:GetRecoveryPointRestoreMetadataResponse' :: Maybe Text
backupVaultArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:recoveryPointArn:GetRecoveryPointRestoreMetadataResponse' :: Maybe Text
recoveryPointArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:restoreMetadata:GetRecoveryPointRestoreMetadataResponse' :: Maybe (Sensitive (HashMap Text Text))
restoreMetadata = Maybe (Sensitive (HashMap Text Text))
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetRecoveryPointRestoreMetadataResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getRecoveryPointRestoreMetadataResponse_backupVaultArn :: Lens.Lens' GetRecoveryPointRestoreMetadataResponse (Prelude.Maybe Prelude.Text)
getRecoveryPointRestoreMetadataResponse_backupVaultArn :: (Maybe Text -> f (Maybe Text))
-> GetRecoveryPointRestoreMetadataResponse
-> f GetRecoveryPointRestoreMetadataResponse
getRecoveryPointRestoreMetadataResponse_backupVaultArn = (GetRecoveryPointRestoreMetadataResponse -> Maybe Text)
-> (GetRecoveryPointRestoreMetadataResponse
-> Maybe Text -> GetRecoveryPointRestoreMetadataResponse)
-> Lens
GetRecoveryPointRestoreMetadataResponse
GetRecoveryPointRestoreMetadataResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRecoveryPointRestoreMetadataResponse' {Maybe Text
backupVaultArn :: Maybe Text
$sel:backupVaultArn:GetRecoveryPointRestoreMetadataResponse' :: GetRecoveryPointRestoreMetadataResponse -> Maybe Text
backupVaultArn} -> Maybe Text
backupVaultArn) (\s :: GetRecoveryPointRestoreMetadataResponse
s@GetRecoveryPointRestoreMetadataResponse' {} Maybe Text
a -> GetRecoveryPointRestoreMetadataResponse
s {$sel:backupVaultArn:GetRecoveryPointRestoreMetadataResponse' :: Maybe Text
backupVaultArn = Maybe Text
a} :: GetRecoveryPointRestoreMetadataResponse)
getRecoveryPointRestoreMetadataResponse_recoveryPointArn :: Lens.Lens' GetRecoveryPointRestoreMetadataResponse (Prelude.Maybe Prelude.Text)
getRecoveryPointRestoreMetadataResponse_recoveryPointArn :: (Maybe Text -> f (Maybe Text))
-> GetRecoveryPointRestoreMetadataResponse
-> f GetRecoveryPointRestoreMetadataResponse
getRecoveryPointRestoreMetadataResponse_recoveryPointArn = (GetRecoveryPointRestoreMetadataResponse -> Maybe Text)
-> (GetRecoveryPointRestoreMetadataResponse
-> Maybe Text -> GetRecoveryPointRestoreMetadataResponse)
-> Lens
GetRecoveryPointRestoreMetadataResponse
GetRecoveryPointRestoreMetadataResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRecoveryPointRestoreMetadataResponse' {Maybe Text
recoveryPointArn :: Maybe Text
$sel:recoveryPointArn:GetRecoveryPointRestoreMetadataResponse' :: GetRecoveryPointRestoreMetadataResponse -> Maybe Text
recoveryPointArn} -> Maybe Text
recoveryPointArn) (\s :: GetRecoveryPointRestoreMetadataResponse
s@GetRecoveryPointRestoreMetadataResponse' {} Maybe Text
a -> GetRecoveryPointRestoreMetadataResponse
s {$sel:recoveryPointArn:GetRecoveryPointRestoreMetadataResponse' :: Maybe Text
recoveryPointArn = Maybe Text
a} :: GetRecoveryPointRestoreMetadataResponse)
getRecoveryPointRestoreMetadataResponse_restoreMetadata :: Lens.Lens' GetRecoveryPointRestoreMetadataResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getRecoveryPointRestoreMetadataResponse_restoreMetadata :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetRecoveryPointRestoreMetadataResponse
-> f GetRecoveryPointRestoreMetadataResponse
getRecoveryPointRestoreMetadataResponse_restoreMetadata = (GetRecoveryPointRestoreMetadataResponse
-> Maybe (Sensitive (HashMap Text Text)))
-> (GetRecoveryPointRestoreMetadataResponse
-> Maybe (Sensitive (HashMap Text Text))
-> GetRecoveryPointRestoreMetadataResponse)
-> Lens
GetRecoveryPointRestoreMetadataResponse
GetRecoveryPointRestoreMetadataResponse
(Maybe (Sensitive (HashMap Text Text)))
(Maybe (Sensitive (HashMap Text Text)))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRecoveryPointRestoreMetadataResponse' {Maybe (Sensitive (HashMap Text Text))
restoreMetadata :: Maybe (Sensitive (HashMap Text Text))
$sel:restoreMetadata:GetRecoveryPointRestoreMetadataResponse' :: GetRecoveryPointRestoreMetadataResponse
-> Maybe (Sensitive (HashMap Text Text))
restoreMetadata} -> Maybe (Sensitive (HashMap Text Text))
restoreMetadata) (\s :: GetRecoveryPointRestoreMetadataResponse
s@GetRecoveryPointRestoreMetadataResponse' {} Maybe (Sensitive (HashMap Text Text))
a -> GetRecoveryPointRestoreMetadataResponse
s {$sel:restoreMetadata:GetRecoveryPointRestoreMetadataResponse' :: Maybe (Sensitive (HashMap Text Text))
restoreMetadata = Maybe (Sensitive (HashMap Text Text))
a} :: GetRecoveryPointRestoreMetadataResponse) ((Maybe (Sensitive (HashMap Text Text))
-> f (Maybe (Sensitive (HashMap Text Text))))
-> GetRecoveryPointRestoreMetadataResponse
-> f GetRecoveryPointRestoreMetadataResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (Sensitive (HashMap Text Text))
-> f (Maybe (Sensitive (HashMap Text Text))))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetRecoveryPointRestoreMetadataResponse
-> f GetRecoveryPointRestoreMetadataResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(Sensitive (HashMap Text Text))
(Sensitive (HashMap Text Text))
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (Sensitive (HashMap Text Text)))
(Maybe (Sensitive (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
(Sensitive (HashMap Text Text))
(Sensitive (HashMap Text Text))
(HashMap Text Text)
(HashMap Text Text)
forall a. Iso' (Sensitive a) a
Core._Sensitive AnIso
(Sensitive (HashMap Text Text))
(Sensitive (HashMap Text Text))
(HashMap Text Text)
(HashMap Text Text)
-> (Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text))
-> Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text)))
-> AnIso
(Sensitive (HashMap Text Text))
(Sensitive (HashMap Text Text))
(HashMap Text Text)
(HashMap Text Text)
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text))
-> Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced)
getRecoveryPointRestoreMetadataResponse_httpStatus :: Lens.Lens' GetRecoveryPointRestoreMetadataResponse Prelude.Int
getRecoveryPointRestoreMetadataResponse_httpStatus :: (Int -> f Int)
-> GetRecoveryPointRestoreMetadataResponse
-> f GetRecoveryPointRestoreMetadataResponse
getRecoveryPointRestoreMetadataResponse_httpStatus = (GetRecoveryPointRestoreMetadataResponse -> Int)
-> (GetRecoveryPointRestoreMetadataResponse
-> Int -> GetRecoveryPointRestoreMetadataResponse)
-> Lens
GetRecoveryPointRestoreMetadataResponse
GetRecoveryPointRestoreMetadataResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRecoveryPointRestoreMetadataResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetRecoveryPointRestoreMetadataResponse' :: GetRecoveryPointRestoreMetadataResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetRecoveryPointRestoreMetadataResponse
s@GetRecoveryPointRestoreMetadataResponse' {} Int
a -> GetRecoveryPointRestoreMetadataResponse
s {$sel:httpStatus:GetRecoveryPointRestoreMetadataResponse' :: Int
httpStatus = Int
a} :: GetRecoveryPointRestoreMetadataResponse)
instance
Prelude.NFData
GetRecoveryPointRestoreMetadataResponse