{-# 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.DescribeRecoveryPoint
(
DescribeRecoveryPoint (..),
newDescribeRecoveryPoint,
describeRecoveryPoint_backupVaultName,
describeRecoveryPoint_recoveryPointArn,
DescribeRecoveryPointResponse (..),
newDescribeRecoveryPointResponse,
describeRecoveryPointResponse_isEncrypted,
describeRecoveryPointResponse_status,
describeRecoveryPointResponse_iamRoleArn,
describeRecoveryPointResponse_resourceType,
describeRecoveryPointResponse_createdBy,
describeRecoveryPointResponse_calculatedLifecycle,
describeRecoveryPointResponse_lifecycle,
describeRecoveryPointResponse_backupVaultArn,
describeRecoveryPointResponse_sourceBackupVaultArn,
describeRecoveryPointResponse_lastRestoreTime,
describeRecoveryPointResponse_resourceArn,
describeRecoveryPointResponse_statusMessage,
describeRecoveryPointResponse_storageClass,
describeRecoveryPointResponse_recoveryPointArn,
describeRecoveryPointResponse_encryptionKeyArn,
describeRecoveryPointResponse_backupSizeInBytes,
describeRecoveryPointResponse_creationDate,
describeRecoveryPointResponse_completionDate,
describeRecoveryPointResponse_backupVaultName,
describeRecoveryPointResponse_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 DescribeRecoveryPoint = DescribeRecoveryPoint'
{
DescribeRecoveryPoint -> Text
backupVaultName :: Prelude.Text,
DescribeRecoveryPoint -> Text
recoveryPointArn :: Prelude.Text
}
deriving (DescribeRecoveryPoint -> DescribeRecoveryPoint -> Bool
(DescribeRecoveryPoint -> DescribeRecoveryPoint -> Bool)
-> (DescribeRecoveryPoint -> DescribeRecoveryPoint -> Bool)
-> Eq DescribeRecoveryPoint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRecoveryPoint -> DescribeRecoveryPoint -> Bool
$c/= :: DescribeRecoveryPoint -> DescribeRecoveryPoint -> Bool
== :: DescribeRecoveryPoint -> DescribeRecoveryPoint -> Bool
$c== :: DescribeRecoveryPoint -> DescribeRecoveryPoint -> Bool
Prelude.Eq, ReadPrec [DescribeRecoveryPoint]
ReadPrec DescribeRecoveryPoint
Int -> ReadS DescribeRecoveryPoint
ReadS [DescribeRecoveryPoint]
(Int -> ReadS DescribeRecoveryPoint)
-> ReadS [DescribeRecoveryPoint]
-> ReadPrec DescribeRecoveryPoint
-> ReadPrec [DescribeRecoveryPoint]
-> Read DescribeRecoveryPoint
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRecoveryPoint]
$creadListPrec :: ReadPrec [DescribeRecoveryPoint]
readPrec :: ReadPrec DescribeRecoveryPoint
$creadPrec :: ReadPrec DescribeRecoveryPoint
readList :: ReadS [DescribeRecoveryPoint]
$creadList :: ReadS [DescribeRecoveryPoint]
readsPrec :: Int -> ReadS DescribeRecoveryPoint
$creadsPrec :: Int -> ReadS DescribeRecoveryPoint
Prelude.Read, Int -> DescribeRecoveryPoint -> ShowS
[DescribeRecoveryPoint] -> ShowS
DescribeRecoveryPoint -> String
(Int -> DescribeRecoveryPoint -> ShowS)
-> (DescribeRecoveryPoint -> String)
-> ([DescribeRecoveryPoint] -> ShowS)
-> Show DescribeRecoveryPoint
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRecoveryPoint] -> ShowS
$cshowList :: [DescribeRecoveryPoint] -> ShowS
show :: DescribeRecoveryPoint -> String
$cshow :: DescribeRecoveryPoint -> String
showsPrec :: Int -> DescribeRecoveryPoint -> ShowS
$cshowsPrec :: Int -> DescribeRecoveryPoint -> ShowS
Prelude.Show, (forall x. DescribeRecoveryPoint -> Rep DescribeRecoveryPoint x)
-> (forall x. Rep DescribeRecoveryPoint x -> DescribeRecoveryPoint)
-> Generic DescribeRecoveryPoint
forall x. Rep DescribeRecoveryPoint x -> DescribeRecoveryPoint
forall x. DescribeRecoveryPoint -> Rep DescribeRecoveryPoint x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeRecoveryPoint x -> DescribeRecoveryPoint
$cfrom :: forall x. DescribeRecoveryPoint -> Rep DescribeRecoveryPoint x
Prelude.Generic)
newDescribeRecoveryPoint ::
Prelude.Text ->
Prelude.Text ->
DescribeRecoveryPoint
newDescribeRecoveryPoint :: Text -> Text -> DescribeRecoveryPoint
newDescribeRecoveryPoint
Text
pBackupVaultName_
Text
pRecoveryPointArn_ =
DescribeRecoveryPoint' :: Text -> Text -> DescribeRecoveryPoint
DescribeRecoveryPoint'
{ $sel:backupVaultName:DescribeRecoveryPoint' :: Text
backupVaultName =
Text
pBackupVaultName_,
$sel:recoveryPointArn:DescribeRecoveryPoint' :: Text
recoveryPointArn = Text
pRecoveryPointArn_
}
describeRecoveryPoint_backupVaultName :: Lens.Lens' DescribeRecoveryPoint Prelude.Text
describeRecoveryPoint_backupVaultName :: (Text -> f Text)
-> DescribeRecoveryPoint -> f DescribeRecoveryPoint
describeRecoveryPoint_backupVaultName = (DescribeRecoveryPoint -> Text)
-> (DescribeRecoveryPoint -> Text -> DescribeRecoveryPoint)
-> Lens DescribeRecoveryPoint DescribeRecoveryPoint Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPoint' {Text
backupVaultName :: Text
$sel:backupVaultName:DescribeRecoveryPoint' :: DescribeRecoveryPoint -> Text
backupVaultName} -> Text
backupVaultName) (\s :: DescribeRecoveryPoint
s@DescribeRecoveryPoint' {} Text
a -> DescribeRecoveryPoint
s {$sel:backupVaultName:DescribeRecoveryPoint' :: Text
backupVaultName = Text
a} :: DescribeRecoveryPoint)
describeRecoveryPoint_recoveryPointArn :: Lens.Lens' DescribeRecoveryPoint Prelude.Text
describeRecoveryPoint_recoveryPointArn :: (Text -> f Text)
-> DescribeRecoveryPoint -> f DescribeRecoveryPoint
describeRecoveryPoint_recoveryPointArn = (DescribeRecoveryPoint -> Text)
-> (DescribeRecoveryPoint -> Text -> DescribeRecoveryPoint)
-> Lens DescribeRecoveryPoint DescribeRecoveryPoint Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPoint' {Text
recoveryPointArn :: Text
$sel:recoveryPointArn:DescribeRecoveryPoint' :: DescribeRecoveryPoint -> Text
recoveryPointArn} -> Text
recoveryPointArn) (\s :: DescribeRecoveryPoint
s@DescribeRecoveryPoint' {} Text
a -> DescribeRecoveryPoint
s {$sel:recoveryPointArn:DescribeRecoveryPoint' :: Text
recoveryPointArn = Text
a} :: DescribeRecoveryPoint)
instance Core.AWSRequest DescribeRecoveryPoint where
type
AWSResponse DescribeRecoveryPoint =
DescribeRecoveryPointResponse
request :: DescribeRecoveryPoint -> Request DescribeRecoveryPoint
request = Service -> DescribeRecoveryPoint -> Request DescribeRecoveryPoint
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeRecoveryPoint
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeRecoveryPoint)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeRecoveryPoint))
-> Logger
-> Service
-> Proxy DescribeRecoveryPoint
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeRecoveryPoint)))
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 Bool
-> Maybe RecoveryPointStatus
-> Maybe Text
-> Maybe Text
-> Maybe RecoveryPointCreator
-> Maybe CalculatedLifecycle
-> Maybe Lifecycle
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse
DescribeRecoveryPointResponse'
(Maybe Bool
-> Maybe RecoveryPointStatus
-> Maybe Text
-> Maybe Text
-> Maybe RecoveryPointCreator
-> Maybe CalculatedLifecycle
-> Maybe Lifecycle
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe RecoveryPointStatus
-> Maybe Text
-> Maybe Text
-> Maybe RecoveryPointCreator
-> Maybe CalculatedLifecycle
-> Maybe Lifecycle
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"IsEncrypted")
Either
String
(Maybe RecoveryPointStatus
-> Maybe Text
-> Maybe Text
-> Maybe RecoveryPointCreator
-> Maybe CalculatedLifecycle
-> Maybe Lifecycle
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe RecoveryPointStatus)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe RecoveryPointCreator
-> Maybe CalculatedLifecycle
-> Maybe Lifecycle
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe RecoveryPointStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Status")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe RecoveryPointCreator
-> Maybe CalculatedLifecycle
-> Maybe Lifecycle
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe RecoveryPointCreator
-> Maybe CalculatedLifecycle
-> Maybe Lifecycle
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
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
"IamRoleArn")
Either
String
(Maybe Text
-> Maybe RecoveryPointCreator
-> Maybe CalculatedLifecycle
-> Maybe Lifecycle
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe RecoveryPointCreator
-> Maybe CalculatedLifecycle
-> Maybe Lifecycle
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
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
"ResourceType")
Either
String
(Maybe RecoveryPointCreator
-> Maybe CalculatedLifecycle
-> Maybe Lifecycle
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe RecoveryPointCreator)
-> Either
String
(Maybe CalculatedLifecycle
-> Maybe Lifecycle
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe RecoveryPointCreator)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreatedBy")
Either
String
(Maybe CalculatedLifecycle
-> Maybe Lifecycle
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe CalculatedLifecycle)
-> Either
String
(Maybe Lifecycle
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe CalculatedLifecycle)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CalculatedLifecycle")
Either
String
(Maybe Lifecycle
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe Lifecycle)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Lifecycle)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Lifecycle")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
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
"BackupVaultArn")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
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
"SourceBackupVaultArn")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastRestoreTime")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
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
"ResourceArn")
Either
String
(Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
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
"StatusMessage")
Either
String
(Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe StorageClass)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe StorageClass)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"StorageClass")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
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 Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
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
"EncryptionKeyArn")
Either
String
(Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe Integer)
-> Either
String
(Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"BackupSizeInBytes")
Either
String
(Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe POSIX -> Maybe Text -> Int -> DescribeRecoveryPointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreationDate")
Either
String
(Maybe POSIX -> Maybe Text -> Int -> DescribeRecoveryPointResponse)
-> Either String (Maybe POSIX)
-> Either
String (Maybe Text -> Int -> DescribeRecoveryPointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CompletionDate")
Either String (Maybe Text -> Int -> DescribeRecoveryPointResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeRecoveryPointResponse)
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
"BackupVaultName")
Either String (Int -> DescribeRecoveryPointResponse)
-> Either String Int -> Either String DescribeRecoveryPointResponse
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 DescribeRecoveryPoint
instance Prelude.NFData DescribeRecoveryPoint
instance Core.ToHeaders DescribeRecoveryPoint where
toHeaders :: DescribeRecoveryPoint -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeRecoveryPoint -> 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 DescribeRecoveryPoint where
toPath :: DescribeRecoveryPoint -> ByteString
toPath DescribeRecoveryPoint' {Text
recoveryPointArn :: Text
backupVaultName :: Text
$sel:recoveryPointArn:DescribeRecoveryPoint' :: DescribeRecoveryPoint -> Text
$sel:backupVaultName:DescribeRecoveryPoint' :: DescribeRecoveryPoint -> 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
]
instance Core.ToQuery DescribeRecoveryPoint where
toQuery :: DescribeRecoveryPoint -> QueryString
toQuery = QueryString -> DescribeRecoveryPoint -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeRecoveryPointResponse = DescribeRecoveryPointResponse'
{
DescribeRecoveryPointResponse -> Maybe Bool
isEncrypted :: Prelude.Maybe Prelude.Bool,
DescribeRecoveryPointResponse -> Maybe RecoveryPointStatus
status :: Prelude.Maybe RecoveryPointStatus,
DescribeRecoveryPointResponse -> Maybe Text
iamRoleArn :: Prelude.Maybe Prelude.Text,
DescribeRecoveryPointResponse -> Maybe Text
resourceType :: Prelude.Maybe Prelude.Text,
DescribeRecoveryPointResponse -> Maybe RecoveryPointCreator
createdBy :: Prelude.Maybe RecoveryPointCreator,
DescribeRecoveryPointResponse -> Maybe CalculatedLifecycle
calculatedLifecycle :: Prelude.Maybe CalculatedLifecycle,
DescribeRecoveryPointResponse -> Maybe Lifecycle
lifecycle :: Prelude.Maybe Lifecycle,
DescribeRecoveryPointResponse -> Maybe Text
backupVaultArn :: Prelude.Maybe Prelude.Text,
DescribeRecoveryPointResponse -> Maybe Text
sourceBackupVaultArn :: Prelude.Maybe Prelude.Text,
DescribeRecoveryPointResponse -> Maybe POSIX
lastRestoreTime :: Prelude.Maybe Core.POSIX,
DescribeRecoveryPointResponse -> Maybe Text
resourceArn :: Prelude.Maybe Prelude.Text,
DescribeRecoveryPointResponse -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
DescribeRecoveryPointResponse -> Maybe StorageClass
storageClass :: Prelude.Maybe StorageClass,
DescribeRecoveryPointResponse -> Maybe Text
recoveryPointArn :: Prelude.Maybe Prelude.Text,
DescribeRecoveryPointResponse -> Maybe Text
encryptionKeyArn :: Prelude.Maybe Prelude.Text,
DescribeRecoveryPointResponse -> Maybe Integer
backupSizeInBytes :: Prelude.Maybe Prelude.Integer,
DescribeRecoveryPointResponse -> Maybe POSIX
creationDate :: Prelude.Maybe Core.POSIX,
DescribeRecoveryPointResponse -> Maybe POSIX
completionDate :: Prelude.Maybe Core.POSIX,
DescribeRecoveryPointResponse -> Maybe Text
backupVaultName :: Prelude.Maybe Prelude.Text,
DescribeRecoveryPointResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeRecoveryPointResponse
-> DescribeRecoveryPointResponse -> Bool
(DescribeRecoveryPointResponse
-> DescribeRecoveryPointResponse -> Bool)
-> (DescribeRecoveryPointResponse
-> DescribeRecoveryPointResponse -> Bool)
-> Eq DescribeRecoveryPointResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRecoveryPointResponse
-> DescribeRecoveryPointResponse -> Bool
$c/= :: DescribeRecoveryPointResponse
-> DescribeRecoveryPointResponse -> Bool
== :: DescribeRecoveryPointResponse
-> DescribeRecoveryPointResponse -> Bool
$c== :: DescribeRecoveryPointResponse
-> DescribeRecoveryPointResponse -> Bool
Prelude.Eq, ReadPrec [DescribeRecoveryPointResponse]
ReadPrec DescribeRecoveryPointResponse
Int -> ReadS DescribeRecoveryPointResponse
ReadS [DescribeRecoveryPointResponse]
(Int -> ReadS DescribeRecoveryPointResponse)
-> ReadS [DescribeRecoveryPointResponse]
-> ReadPrec DescribeRecoveryPointResponse
-> ReadPrec [DescribeRecoveryPointResponse]
-> Read DescribeRecoveryPointResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRecoveryPointResponse]
$creadListPrec :: ReadPrec [DescribeRecoveryPointResponse]
readPrec :: ReadPrec DescribeRecoveryPointResponse
$creadPrec :: ReadPrec DescribeRecoveryPointResponse
readList :: ReadS [DescribeRecoveryPointResponse]
$creadList :: ReadS [DescribeRecoveryPointResponse]
readsPrec :: Int -> ReadS DescribeRecoveryPointResponse
$creadsPrec :: Int -> ReadS DescribeRecoveryPointResponse
Prelude.Read, Int -> DescribeRecoveryPointResponse -> ShowS
[DescribeRecoveryPointResponse] -> ShowS
DescribeRecoveryPointResponse -> String
(Int -> DescribeRecoveryPointResponse -> ShowS)
-> (DescribeRecoveryPointResponse -> String)
-> ([DescribeRecoveryPointResponse] -> ShowS)
-> Show DescribeRecoveryPointResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRecoveryPointResponse] -> ShowS
$cshowList :: [DescribeRecoveryPointResponse] -> ShowS
show :: DescribeRecoveryPointResponse -> String
$cshow :: DescribeRecoveryPointResponse -> String
showsPrec :: Int -> DescribeRecoveryPointResponse -> ShowS
$cshowsPrec :: Int -> DescribeRecoveryPointResponse -> ShowS
Prelude.Show, (forall x.
DescribeRecoveryPointResponse
-> Rep DescribeRecoveryPointResponse x)
-> (forall x.
Rep DescribeRecoveryPointResponse x
-> DescribeRecoveryPointResponse)
-> Generic DescribeRecoveryPointResponse
forall x.
Rep DescribeRecoveryPointResponse x
-> DescribeRecoveryPointResponse
forall x.
DescribeRecoveryPointResponse
-> Rep DescribeRecoveryPointResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeRecoveryPointResponse x
-> DescribeRecoveryPointResponse
$cfrom :: forall x.
DescribeRecoveryPointResponse
-> Rep DescribeRecoveryPointResponse x
Prelude.Generic)
newDescribeRecoveryPointResponse ::
Prelude.Int ->
DescribeRecoveryPointResponse
newDescribeRecoveryPointResponse :: Int -> DescribeRecoveryPointResponse
newDescribeRecoveryPointResponse Int
pHttpStatus_ =
DescribeRecoveryPointResponse' :: Maybe Bool
-> Maybe RecoveryPointStatus
-> Maybe Text
-> Maybe Text
-> Maybe RecoveryPointCreator
-> Maybe CalculatedLifecycle
-> Maybe Lifecycle
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeRecoveryPointResponse
DescribeRecoveryPointResponse'
{ $sel:isEncrypted:DescribeRecoveryPointResponse' :: Maybe Bool
isEncrypted =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:status:DescribeRecoveryPointResponse' :: Maybe RecoveryPointStatus
status = Maybe RecoveryPointStatus
forall a. Maybe a
Prelude.Nothing,
$sel:iamRoleArn:DescribeRecoveryPointResponse' :: Maybe Text
iamRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resourceType:DescribeRecoveryPointResponse' :: Maybe Text
resourceType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdBy:DescribeRecoveryPointResponse' :: Maybe RecoveryPointCreator
createdBy = Maybe RecoveryPointCreator
forall a. Maybe a
Prelude.Nothing,
$sel:calculatedLifecycle:DescribeRecoveryPointResponse' :: Maybe CalculatedLifecycle
calculatedLifecycle = Maybe CalculatedLifecycle
forall a. Maybe a
Prelude.Nothing,
$sel:lifecycle:DescribeRecoveryPointResponse' :: Maybe Lifecycle
lifecycle = Maybe Lifecycle
forall a. Maybe a
Prelude.Nothing,
$sel:backupVaultArn:DescribeRecoveryPointResponse' :: Maybe Text
backupVaultArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sourceBackupVaultArn:DescribeRecoveryPointResponse' :: Maybe Text
sourceBackupVaultArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastRestoreTime:DescribeRecoveryPointResponse' :: Maybe POSIX
lastRestoreTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:resourceArn:DescribeRecoveryPointResponse' :: Maybe Text
resourceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:statusMessage:DescribeRecoveryPointResponse' :: Maybe Text
statusMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:storageClass:DescribeRecoveryPointResponse' :: Maybe StorageClass
storageClass = Maybe StorageClass
forall a. Maybe a
Prelude.Nothing,
$sel:recoveryPointArn:DescribeRecoveryPointResponse' :: Maybe Text
recoveryPointArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:encryptionKeyArn:DescribeRecoveryPointResponse' :: Maybe Text
encryptionKeyArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:backupSizeInBytes:DescribeRecoveryPointResponse' :: Maybe Integer
backupSizeInBytes = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:creationDate:DescribeRecoveryPointResponse' :: Maybe POSIX
creationDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:completionDate:DescribeRecoveryPointResponse' :: Maybe POSIX
completionDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:backupVaultName:DescribeRecoveryPointResponse' :: Maybe Text
backupVaultName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeRecoveryPointResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeRecoveryPointResponse_isEncrypted :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe Prelude.Bool)
describeRecoveryPointResponse_isEncrypted :: (Maybe Bool -> f (Maybe Bool))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_isEncrypted = (DescribeRecoveryPointResponse -> Maybe Bool)
-> (DescribeRecoveryPointResponse
-> Maybe Bool -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe Bool
isEncrypted :: Maybe Bool
$sel:isEncrypted:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe Bool
isEncrypted} -> Maybe Bool
isEncrypted) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe Bool
a -> DescribeRecoveryPointResponse
s {$sel:isEncrypted:DescribeRecoveryPointResponse' :: Maybe Bool
isEncrypted = Maybe Bool
a} :: DescribeRecoveryPointResponse)
describeRecoveryPointResponse_status :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe RecoveryPointStatus)
describeRecoveryPointResponse_status :: (Maybe RecoveryPointStatus -> f (Maybe RecoveryPointStatus))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_status = (DescribeRecoveryPointResponse -> Maybe RecoveryPointStatus)
-> (DescribeRecoveryPointResponse
-> Maybe RecoveryPointStatus -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe RecoveryPointStatus)
(Maybe RecoveryPointStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe RecoveryPointStatus
status :: Maybe RecoveryPointStatus
$sel:status:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe RecoveryPointStatus
status} -> Maybe RecoveryPointStatus
status) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe RecoveryPointStatus
a -> DescribeRecoveryPointResponse
s {$sel:status:DescribeRecoveryPointResponse' :: Maybe RecoveryPointStatus
status = Maybe RecoveryPointStatus
a} :: DescribeRecoveryPointResponse)
describeRecoveryPointResponse_iamRoleArn :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe Prelude.Text)
describeRecoveryPointResponse_iamRoleArn :: (Maybe Text -> f (Maybe Text))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_iamRoleArn = (DescribeRecoveryPointResponse -> Maybe Text)
-> (DescribeRecoveryPointResponse
-> Maybe Text -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe Text
iamRoleArn :: Maybe Text
$sel:iamRoleArn:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe Text
iamRoleArn} -> Maybe Text
iamRoleArn) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe Text
a -> DescribeRecoveryPointResponse
s {$sel:iamRoleArn:DescribeRecoveryPointResponse' :: Maybe Text
iamRoleArn = Maybe Text
a} :: DescribeRecoveryPointResponse)
describeRecoveryPointResponse_resourceType :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe Prelude.Text)
describeRecoveryPointResponse_resourceType :: (Maybe Text -> f (Maybe Text))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_resourceType = (DescribeRecoveryPointResponse -> Maybe Text)
-> (DescribeRecoveryPointResponse
-> Maybe Text -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe Text
resourceType :: Maybe Text
$sel:resourceType:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe Text
resourceType} -> Maybe Text
resourceType) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe Text
a -> DescribeRecoveryPointResponse
s {$sel:resourceType:DescribeRecoveryPointResponse' :: Maybe Text
resourceType = Maybe Text
a} :: DescribeRecoveryPointResponse)
describeRecoveryPointResponse_createdBy :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe RecoveryPointCreator)
describeRecoveryPointResponse_createdBy :: (Maybe RecoveryPointCreator -> f (Maybe RecoveryPointCreator))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_createdBy = (DescribeRecoveryPointResponse -> Maybe RecoveryPointCreator)
-> (DescribeRecoveryPointResponse
-> Maybe RecoveryPointCreator -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe RecoveryPointCreator)
(Maybe RecoveryPointCreator)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe RecoveryPointCreator
createdBy :: Maybe RecoveryPointCreator
$sel:createdBy:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe RecoveryPointCreator
createdBy} -> Maybe RecoveryPointCreator
createdBy) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe RecoveryPointCreator
a -> DescribeRecoveryPointResponse
s {$sel:createdBy:DescribeRecoveryPointResponse' :: Maybe RecoveryPointCreator
createdBy = Maybe RecoveryPointCreator
a} :: DescribeRecoveryPointResponse)
describeRecoveryPointResponse_calculatedLifecycle :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe CalculatedLifecycle)
describeRecoveryPointResponse_calculatedLifecycle :: (Maybe CalculatedLifecycle -> f (Maybe CalculatedLifecycle))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_calculatedLifecycle = (DescribeRecoveryPointResponse -> Maybe CalculatedLifecycle)
-> (DescribeRecoveryPointResponse
-> Maybe CalculatedLifecycle -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe CalculatedLifecycle)
(Maybe CalculatedLifecycle)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe CalculatedLifecycle
calculatedLifecycle :: Maybe CalculatedLifecycle
$sel:calculatedLifecycle:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe CalculatedLifecycle
calculatedLifecycle} -> Maybe CalculatedLifecycle
calculatedLifecycle) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe CalculatedLifecycle
a -> DescribeRecoveryPointResponse
s {$sel:calculatedLifecycle:DescribeRecoveryPointResponse' :: Maybe CalculatedLifecycle
calculatedLifecycle = Maybe CalculatedLifecycle
a} :: DescribeRecoveryPointResponse)
describeRecoveryPointResponse_lifecycle :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe Lifecycle)
describeRecoveryPointResponse_lifecycle :: (Maybe Lifecycle -> f (Maybe Lifecycle))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_lifecycle = (DescribeRecoveryPointResponse -> Maybe Lifecycle)
-> (DescribeRecoveryPointResponse
-> Maybe Lifecycle -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe Lifecycle)
(Maybe Lifecycle)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe Lifecycle
lifecycle :: Maybe Lifecycle
$sel:lifecycle:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe Lifecycle
lifecycle} -> Maybe Lifecycle
lifecycle) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe Lifecycle
a -> DescribeRecoveryPointResponse
s {$sel:lifecycle:DescribeRecoveryPointResponse' :: Maybe Lifecycle
lifecycle = Maybe Lifecycle
a} :: DescribeRecoveryPointResponse)
describeRecoveryPointResponse_backupVaultArn :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe Prelude.Text)
describeRecoveryPointResponse_backupVaultArn :: (Maybe Text -> f (Maybe Text))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_backupVaultArn = (DescribeRecoveryPointResponse -> Maybe Text)
-> (DescribeRecoveryPointResponse
-> Maybe Text -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe Text
backupVaultArn :: Maybe Text
$sel:backupVaultArn:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe Text
backupVaultArn} -> Maybe Text
backupVaultArn) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe Text
a -> DescribeRecoveryPointResponse
s {$sel:backupVaultArn:DescribeRecoveryPointResponse' :: Maybe Text
backupVaultArn = Maybe Text
a} :: DescribeRecoveryPointResponse)
describeRecoveryPointResponse_sourceBackupVaultArn :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe Prelude.Text)
describeRecoveryPointResponse_sourceBackupVaultArn :: (Maybe Text -> f (Maybe Text))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_sourceBackupVaultArn = (DescribeRecoveryPointResponse -> Maybe Text)
-> (DescribeRecoveryPointResponse
-> Maybe Text -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe Text
sourceBackupVaultArn :: Maybe Text
$sel:sourceBackupVaultArn:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe Text
sourceBackupVaultArn} -> Maybe Text
sourceBackupVaultArn) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe Text
a -> DescribeRecoveryPointResponse
s {$sel:sourceBackupVaultArn:DescribeRecoveryPointResponse' :: Maybe Text
sourceBackupVaultArn = Maybe Text
a} :: DescribeRecoveryPointResponse)
describeRecoveryPointResponse_lastRestoreTime :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe Prelude.UTCTime)
describeRecoveryPointResponse_lastRestoreTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_lastRestoreTime = (DescribeRecoveryPointResponse -> Maybe POSIX)
-> (DescribeRecoveryPointResponse
-> Maybe POSIX -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe POSIX
lastRestoreTime :: Maybe POSIX
$sel:lastRestoreTime:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe POSIX
lastRestoreTime} -> Maybe POSIX
lastRestoreTime) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe POSIX
a -> DescribeRecoveryPointResponse
s {$sel:lastRestoreTime:DescribeRecoveryPointResponse' :: Maybe POSIX
lastRestoreTime = Maybe POSIX
a} :: DescribeRecoveryPointResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeRecoveryPointResponse
-> f DescribeRecoveryPointResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeRecoveryPointResponse
-> f DescribeRecoveryPointResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeRecoveryPointResponse_resourceArn :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe Prelude.Text)
describeRecoveryPointResponse_resourceArn :: (Maybe Text -> f (Maybe Text))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_resourceArn = (DescribeRecoveryPointResponse -> Maybe Text)
-> (DescribeRecoveryPointResponse
-> Maybe Text -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe Text
resourceArn :: Maybe Text
$sel:resourceArn:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe Text
resourceArn} -> Maybe Text
resourceArn) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe Text
a -> DescribeRecoveryPointResponse
s {$sel:resourceArn:DescribeRecoveryPointResponse' :: Maybe Text
resourceArn = Maybe Text
a} :: DescribeRecoveryPointResponse)
describeRecoveryPointResponse_statusMessage :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe Prelude.Text)
describeRecoveryPointResponse_statusMessage :: (Maybe Text -> f (Maybe Text))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_statusMessage = (DescribeRecoveryPointResponse -> Maybe Text)
-> (DescribeRecoveryPointResponse
-> Maybe Text -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe Text
a -> DescribeRecoveryPointResponse
s {$sel:statusMessage:DescribeRecoveryPointResponse' :: Maybe Text
statusMessage = Maybe Text
a} :: DescribeRecoveryPointResponse)
describeRecoveryPointResponse_storageClass :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe StorageClass)
describeRecoveryPointResponse_storageClass :: (Maybe StorageClass -> f (Maybe StorageClass))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_storageClass = (DescribeRecoveryPointResponse -> Maybe StorageClass)
-> (DescribeRecoveryPointResponse
-> Maybe StorageClass -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe StorageClass)
(Maybe StorageClass)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe StorageClass
storageClass :: Maybe StorageClass
$sel:storageClass:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe StorageClass
storageClass} -> Maybe StorageClass
storageClass) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe StorageClass
a -> DescribeRecoveryPointResponse
s {$sel:storageClass:DescribeRecoveryPointResponse' :: Maybe StorageClass
storageClass = Maybe StorageClass
a} :: DescribeRecoveryPointResponse)
describeRecoveryPointResponse_recoveryPointArn :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe Prelude.Text)
describeRecoveryPointResponse_recoveryPointArn :: (Maybe Text -> f (Maybe Text))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_recoveryPointArn = (DescribeRecoveryPointResponse -> Maybe Text)
-> (DescribeRecoveryPointResponse
-> Maybe Text -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe Text
recoveryPointArn :: Maybe Text
$sel:recoveryPointArn:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe Text
recoveryPointArn} -> Maybe Text
recoveryPointArn) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe Text
a -> DescribeRecoveryPointResponse
s {$sel:recoveryPointArn:DescribeRecoveryPointResponse' :: Maybe Text
recoveryPointArn = Maybe Text
a} :: DescribeRecoveryPointResponse)
describeRecoveryPointResponse_encryptionKeyArn :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe Prelude.Text)
describeRecoveryPointResponse_encryptionKeyArn :: (Maybe Text -> f (Maybe Text))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_encryptionKeyArn = (DescribeRecoveryPointResponse -> Maybe Text)
-> (DescribeRecoveryPointResponse
-> Maybe Text -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe Text
encryptionKeyArn :: Maybe Text
$sel:encryptionKeyArn:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe Text
encryptionKeyArn} -> Maybe Text
encryptionKeyArn) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe Text
a -> DescribeRecoveryPointResponse
s {$sel:encryptionKeyArn:DescribeRecoveryPointResponse' :: Maybe Text
encryptionKeyArn = Maybe Text
a} :: DescribeRecoveryPointResponse)
describeRecoveryPointResponse_backupSizeInBytes :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe Prelude.Integer)
describeRecoveryPointResponse_backupSizeInBytes :: (Maybe Integer -> f (Maybe Integer))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_backupSizeInBytes = (DescribeRecoveryPointResponse -> Maybe Integer)
-> (DescribeRecoveryPointResponse
-> Maybe Integer -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe Integer
backupSizeInBytes :: Maybe Integer
$sel:backupSizeInBytes:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe Integer
backupSizeInBytes} -> Maybe Integer
backupSizeInBytes) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe Integer
a -> DescribeRecoveryPointResponse
s {$sel:backupSizeInBytes:DescribeRecoveryPointResponse' :: Maybe Integer
backupSizeInBytes = Maybe Integer
a} :: DescribeRecoveryPointResponse)
describeRecoveryPointResponse_creationDate :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe Prelude.UTCTime)
describeRecoveryPointResponse_creationDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_creationDate = (DescribeRecoveryPointResponse -> Maybe POSIX)
-> (DescribeRecoveryPointResponse
-> Maybe POSIX -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe POSIX
creationDate :: Maybe POSIX
$sel:creationDate:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe POSIX
creationDate} -> Maybe POSIX
creationDate) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe POSIX
a -> DescribeRecoveryPointResponse
s {$sel:creationDate:DescribeRecoveryPointResponse' :: Maybe POSIX
creationDate = Maybe POSIX
a} :: DescribeRecoveryPointResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeRecoveryPointResponse
-> f DescribeRecoveryPointResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeRecoveryPointResponse
-> f DescribeRecoveryPointResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeRecoveryPointResponse_completionDate :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe Prelude.UTCTime)
describeRecoveryPointResponse_completionDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_completionDate = (DescribeRecoveryPointResponse -> Maybe POSIX)
-> (DescribeRecoveryPointResponse
-> Maybe POSIX -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe POSIX
completionDate :: Maybe POSIX
$sel:completionDate:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe POSIX
completionDate} -> Maybe POSIX
completionDate) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe POSIX
a -> DescribeRecoveryPointResponse
s {$sel:completionDate:DescribeRecoveryPointResponse' :: Maybe POSIX
completionDate = Maybe POSIX
a} :: DescribeRecoveryPointResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeRecoveryPointResponse
-> f DescribeRecoveryPointResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeRecoveryPointResponse
-> f DescribeRecoveryPointResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeRecoveryPointResponse_backupVaultName :: Lens.Lens' DescribeRecoveryPointResponse (Prelude.Maybe Prelude.Text)
describeRecoveryPointResponse_backupVaultName :: (Maybe Text -> f (Maybe Text))
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_backupVaultName = (DescribeRecoveryPointResponse -> Maybe Text)
-> (DescribeRecoveryPointResponse
-> Maybe Text -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse
DescribeRecoveryPointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Maybe Text
backupVaultName :: Maybe Text
$sel:backupVaultName:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Maybe Text
backupVaultName} -> Maybe Text
backupVaultName) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Maybe Text
a -> DescribeRecoveryPointResponse
s {$sel:backupVaultName:DescribeRecoveryPointResponse' :: Maybe Text
backupVaultName = Maybe Text
a} :: DescribeRecoveryPointResponse)
describeRecoveryPointResponse_httpStatus :: Lens.Lens' DescribeRecoveryPointResponse Prelude.Int
describeRecoveryPointResponse_httpStatus :: (Int -> f Int)
-> DescribeRecoveryPointResponse -> f DescribeRecoveryPointResponse
describeRecoveryPointResponse_httpStatus = (DescribeRecoveryPointResponse -> Int)
-> (DescribeRecoveryPointResponse
-> Int -> DescribeRecoveryPointResponse)
-> Lens
DescribeRecoveryPointResponse DescribeRecoveryPointResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecoveryPointResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeRecoveryPointResponse' :: DescribeRecoveryPointResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeRecoveryPointResponse
s@DescribeRecoveryPointResponse' {} Int
a -> DescribeRecoveryPointResponse
s {$sel:httpStatus:DescribeRecoveryPointResponse' :: Int
httpStatus = Int
a} :: DescribeRecoveryPointResponse)
instance Prelude.NFData DescribeRecoveryPointResponse