{-# 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.DescribeBackupVault
(
DescribeBackupVault (..),
newDescribeBackupVault,
describeBackupVault_backupVaultName,
DescribeBackupVaultResponse (..),
newDescribeBackupVaultResponse,
describeBackupVaultResponse_lockDate,
describeBackupVaultResponse_maxRetentionDays,
describeBackupVaultResponse_locked,
describeBackupVaultResponse_creatorRequestId,
describeBackupVaultResponse_numberOfRecoveryPoints,
describeBackupVaultResponse_backupVaultArn,
describeBackupVaultResponse_encryptionKeyArn,
describeBackupVaultResponse_creationDate,
describeBackupVaultResponse_backupVaultName,
describeBackupVaultResponse_minRetentionDays,
describeBackupVaultResponse_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 DescribeBackupVault = DescribeBackupVault'
{
DescribeBackupVault -> Text
backupVaultName :: Prelude.Text
}
deriving (DescribeBackupVault -> DescribeBackupVault -> Bool
(DescribeBackupVault -> DescribeBackupVault -> Bool)
-> (DescribeBackupVault -> DescribeBackupVault -> Bool)
-> Eq DescribeBackupVault
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeBackupVault -> DescribeBackupVault -> Bool
$c/= :: DescribeBackupVault -> DescribeBackupVault -> Bool
== :: DescribeBackupVault -> DescribeBackupVault -> Bool
$c== :: DescribeBackupVault -> DescribeBackupVault -> Bool
Prelude.Eq, ReadPrec [DescribeBackupVault]
ReadPrec DescribeBackupVault
Int -> ReadS DescribeBackupVault
ReadS [DescribeBackupVault]
(Int -> ReadS DescribeBackupVault)
-> ReadS [DescribeBackupVault]
-> ReadPrec DescribeBackupVault
-> ReadPrec [DescribeBackupVault]
-> Read DescribeBackupVault
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeBackupVault]
$creadListPrec :: ReadPrec [DescribeBackupVault]
readPrec :: ReadPrec DescribeBackupVault
$creadPrec :: ReadPrec DescribeBackupVault
readList :: ReadS [DescribeBackupVault]
$creadList :: ReadS [DescribeBackupVault]
readsPrec :: Int -> ReadS DescribeBackupVault
$creadsPrec :: Int -> ReadS DescribeBackupVault
Prelude.Read, Int -> DescribeBackupVault -> ShowS
[DescribeBackupVault] -> ShowS
DescribeBackupVault -> String
(Int -> DescribeBackupVault -> ShowS)
-> (DescribeBackupVault -> String)
-> ([DescribeBackupVault] -> ShowS)
-> Show DescribeBackupVault
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeBackupVault] -> ShowS
$cshowList :: [DescribeBackupVault] -> ShowS
show :: DescribeBackupVault -> String
$cshow :: DescribeBackupVault -> String
showsPrec :: Int -> DescribeBackupVault -> ShowS
$cshowsPrec :: Int -> DescribeBackupVault -> ShowS
Prelude.Show, (forall x. DescribeBackupVault -> Rep DescribeBackupVault x)
-> (forall x. Rep DescribeBackupVault x -> DescribeBackupVault)
-> Generic DescribeBackupVault
forall x. Rep DescribeBackupVault x -> DescribeBackupVault
forall x. DescribeBackupVault -> Rep DescribeBackupVault x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeBackupVault x -> DescribeBackupVault
$cfrom :: forall x. DescribeBackupVault -> Rep DescribeBackupVault x
Prelude.Generic)
newDescribeBackupVault ::
Prelude.Text ->
DescribeBackupVault
newDescribeBackupVault :: Text -> DescribeBackupVault
newDescribeBackupVault Text
pBackupVaultName_ =
DescribeBackupVault' :: Text -> DescribeBackupVault
DescribeBackupVault'
{ $sel:backupVaultName:DescribeBackupVault' :: Text
backupVaultName =
Text
pBackupVaultName_
}
describeBackupVault_backupVaultName :: Lens.Lens' DescribeBackupVault Prelude.Text
describeBackupVault_backupVaultName :: (Text -> f Text) -> DescribeBackupVault -> f DescribeBackupVault
describeBackupVault_backupVaultName = (DescribeBackupVault -> Text)
-> (DescribeBackupVault -> Text -> DescribeBackupVault)
-> Lens DescribeBackupVault DescribeBackupVault Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBackupVault' {Text
backupVaultName :: Text
$sel:backupVaultName:DescribeBackupVault' :: DescribeBackupVault -> Text
backupVaultName} -> Text
backupVaultName) (\s :: DescribeBackupVault
s@DescribeBackupVault' {} Text
a -> DescribeBackupVault
s {$sel:backupVaultName:DescribeBackupVault' :: Text
backupVaultName = Text
a} :: DescribeBackupVault)
instance Core.AWSRequest DescribeBackupVault where
type
AWSResponse DescribeBackupVault =
DescribeBackupVaultResponse
request :: DescribeBackupVault -> Request DescribeBackupVault
request = Service -> DescribeBackupVault -> Request DescribeBackupVault
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeBackupVault
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeBackupVault)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeBackupVault))
-> Logger
-> Service
-> Proxy DescribeBackupVault
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeBackupVault)))
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 POSIX
-> Maybe Integer
-> Maybe Bool
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Integer
-> Int
-> DescribeBackupVaultResponse
DescribeBackupVaultResponse'
(Maybe POSIX
-> Maybe Integer
-> Maybe Bool
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Integer
-> Int
-> DescribeBackupVaultResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Integer
-> Maybe Bool
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Integer
-> Int
-> DescribeBackupVaultResponse)
forall (f :: * -> *) a b. Functor 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
"LockDate")
Either
String
(Maybe Integer
-> Maybe Bool
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Integer
-> Int
-> DescribeBackupVaultResponse)
-> Either String (Maybe Integer)
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Integer
-> Int
-> DescribeBackupVaultResponse)
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
"MaxRetentionDays")
Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Integer
-> Int
-> DescribeBackupVaultResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Integer
-> Int
-> DescribeBackupVaultResponse)
forall (f :: * -> *) a b. Applicative f => 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
"Locked")
Either
String
(Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Integer
-> Int
-> DescribeBackupVaultResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Integer
-> Int
-> DescribeBackupVaultResponse)
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
"CreatorRequestId")
Either
String
(Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Integer
-> Int
-> DescribeBackupVaultResponse)
-> Either String (Maybe Integer)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Integer
-> Int
-> DescribeBackupVaultResponse)
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
"NumberOfRecoveryPoints")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Integer
-> Int
-> DescribeBackupVaultResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Integer
-> Int
-> DescribeBackupVaultResponse)
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 Integer
-> Int
-> DescribeBackupVaultResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Integer
-> Int
-> DescribeBackupVaultResponse)
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 POSIX
-> Maybe Text
-> Maybe Integer
-> Int
-> DescribeBackupVaultResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text -> Maybe Integer -> Int -> DescribeBackupVaultResponse)
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 Text -> Maybe Integer -> Int -> DescribeBackupVaultResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Integer -> Int -> DescribeBackupVaultResponse)
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 (Maybe Integer -> Int -> DescribeBackupVaultResponse)
-> Either String (Maybe Integer)
-> Either String (Int -> DescribeBackupVaultResponse)
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
"MinRetentionDays")
Either String (Int -> DescribeBackupVaultResponse)
-> Either String Int -> Either String DescribeBackupVaultResponse
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 DescribeBackupVault
instance Prelude.NFData DescribeBackupVault
instance Core.ToHeaders DescribeBackupVault where
toHeaders :: DescribeBackupVault -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeBackupVault -> 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 DescribeBackupVault where
toPath :: DescribeBackupVault -> ByteString
toPath DescribeBackupVault' {Text
backupVaultName :: Text
$sel:backupVaultName:DescribeBackupVault' :: DescribeBackupVault -> 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]
instance Core.ToQuery DescribeBackupVault where
toQuery :: DescribeBackupVault -> QueryString
toQuery = QueryString -> DescribeBackupVault -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeBackupVaultResponse = DescribeBackupVaultResponse'
{
DescribeBackupVaultResponse -> Maybe POSIX
lockDate :: Prelude.Maybe Core.POSIX,
DescribeBackupVaultResponse -> Maybe Integer
maxRetentionDays :: Prelude.Maybe Prelude.Integer,
DescribeBackupVaultResponse -> Maybe Bool
locked :: Prelude.Maybe Prelude.Bool,
DescribeBackupVaultResponse -> Maybe Text
creatorRequestId :: Prelude.Maybe Prelude.Text,
DescribeBackupVaultResponse -> Maybe Integer
numberOfRecoveryPoints :: Prelude.Maybe Prelude.Integer,
DescribeBackupVaultResponse -> Maybe Text
backupVaultArn :: Prelude.Maybe Prelude.Text,
DescribeBackupVaultResponse -> Maybe Text
encryptionKeyArn :: Prelude.Maybe Prelude.Text,
DescribeBackupVaultResponse -> Maybe POSIX
creationDate :: Prelude.Maybe Core.POSIX,
DescribeBackupVaultResponse -> Maybe Text
backupVaultName :: Prelude.Maybe Prelude.Text,
DescribeBackupVaultResponse -> Maybe Integer
minRetentionDays :: Prelude.Maybe Prelude.Integer,
DescribeBackupVaultResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeBackupVaultResponse -> DescribeBackupVaultResponse -> Bool
(DescribeBackupVaultResponse
-> DescribeBackupVaultResponse -> Bool)
-> (DescribeBackupVaultResponse
-> DescribeBackupVaultResponse -> Bool)
-> Eq DescribeBackupVaultResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeBackupVaultResponse -> DescribeBackupVaultResponse -> Bool
$c/= :: DescribeBackupVaultResponse -> DescribeBackupVaultResponse -> Bool
== :: DescribeBackupVaultResponse -> DescribeBackupVaultResponse -> Bool
$c== :: DescribeBackupVaultResponse -> DescribeBackupVaultResponse -> Bool
Prelude.Eq, ReadPrec [DescribeBackupVaultResponse]
ReadPrec DescribeBackupVaultResponse
Int -> ReadS DescribeBackupVaultResponse
ReadS [DescribeBackupVaultResponse]
(Int -> ReadS DescribeBackupVaultResponse)
-> ReadS [DescribeBackupVaultResponse]
-> ReadPrec DescribeBackupVaultResponse
-> ReadPrec [DescribeBackupVaultResponse]
-> Read DescribeBackupVaultResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeBackupVaultResponse]
$creadListPrec :: ReadPrec [DescribeBackupVaultResponse]
readPrec :: ReadPrec DescribeBackupVaultResponse
$creadPrec :: ReadPrec DescribeBackupVaultResponse
readList :: ReadS [DescribeBackupVaultResponse]
$creadList :: ReadS [DescribeBackupVaultResponse]
readsPrec :: Int -> ReadS DescribeBackupVaultResponse
$creadsPrec :: Int -> ReadS DescribeBackupVaultResponse
Prelude.Read, Int -> DescribeBackupVaultResponse -> ShowS
[DescribeBackupVaultResponse] -> ShowS
DescribeBackupVaultResponse -> String
(Int -> DescribeBackupVaultResponse -> ShowS)
-> (DescribeBackupVaultResponse -> String)
-> ([DescribeBackupVaultResponse] -> ShowS)
-> Show DescribeBackupVaultResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeBackupVaultResponse] -> ShowS
$cshowList :: [DescribeBackupVaultResponse] -> ShowS
show :: DescribeBackupVaultResponse -> String
$cshow :: DescribeBackupVaultResponse -> String
showsPrec :: Int -> DescribeBackupVaultResponse -> ShowS
$cshowsPrec :: Int -> DescribeBackupVaultResponse -> ShowS
Prelude.Show, (forall x.
DescribeBackupVaultResponse -> Rep DescribeBackupVaultResponse x)
-> (forall x.
Rep DescribeBackupVaultResponse x -> DescribeBackupVaultResponse)
-> Generic DescribeBackupVaultResponse
forall x.
Rep DescribeBackupVaultResponse x -> DescribeBackupVaultResponse
forall x.
DescribeBackupVaultResponse -> Rep DescribeBackupVaultResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeBackupVaultResponse x -> DescribeBackupVaultResponse
$cfrom :: forall x.
DescribeBackupVaultResponse -> Rep DescribeBackupVaultResponse x
Prelude.Generic)
newDescribeBackupVaultResponse ::
Prelude.Int ->
DescribeBackupVaultResponse
newDescribeBackupVaultResponse :: Int -> DescribeBackupVaultResponse
newDescribeBackupVaultResponse Int
pHttpStatus_ =
DescribeBackupVaultResponse' :: Maybe POSIX
-> Maybe Integer
-> Maybe Bool
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Integer
-> Int
-> DescribeBackupVaultResponse
DescribeBackupVaultResponse'
{ $sel:lockDate:DescribeBackupVaultResponse' :: Maybe POSIX
lockDate =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:maxRetentionDays:DescribeBackupVaultResponse' :: Maybe Integer
maxRetentionDays = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:locked:DescribeBackupVaultResponse' :: Maybe Bool
locked = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:creatorRequestId:DescribeBackupVaultResponse' :: Maybe Text
creatorRequestId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:numberOfRecoveryPoints:DescribeBackupVaultResponse' :: Maybe Integer
numberOfRecoveryPoints = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:backupVaultArn:DescribeBackupVaultResponse' :: Maybe Text
backupVaultArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:encryptionKeyArn:DescribeBackupVaultResponse' :: Maybe Text
encryptionKeyArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationDate:DescribeBackupVaultResponse' :: Maybe POSIX
creationDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:backupVaultName:DescribeBackupVaultResponse' :: Maybe Text
backupVaultName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:minRetentionDays:DescribeBackupVaultResponse' :: Maybe Integer
minRetentionDays = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeBackupVaultResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeBackupVaultResponse_lockDate :: Lens.Lens' DescribeBackupVaultResponse (Prelude.Maybe Prelude.UTCTime)
describeBackupVaultResponse_lockDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeBackupVaultResponse -> f DescribeBackupVaultResponse
describeBackupVaultResponse_lockDate = (DescribeBackupVaultResponse -> Maybe POSIX)
-> (DescribeBackupVaultResponse
-> Maybe POSIX -> DescribeBackupVaultResponse)
-> Lens
DescribeBackupVaultResponse
DescribeBackupVaultResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBackupVaultResponse' {Maybe POSIX
lockDate :: Maybe POSIX
$sel:lockDate:DescribeBackupVaultResponse' :: DescribeBackupVaultResponse -> Maybe POSIX
lockDate} -> Maybe POSIX
lockDate) (\s :: DescribeBackupVaultResponse
s@DescribeBackupVaultResponse' {} Maybe POSIX
a -> DescribeBackupVaultResponse
s {$sel:lockDate:DescribeBackupVaultResponse' :: Maybe POSIX
lockDate = Maybe POSIX
a} :: DescribeBackupVaultResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeBackupVaultResponse -> f DescribeBackupVaultResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeBackupVaultResponse
-> f DescribeBackupVaultResponse
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
describeBackupVaultResponse_maxRetentionDays :: Lens.Lens' DescribeBackupVaultResponse (Prelude.Maybe Prelude.Integer)
describeBackupVaultResponse_maxRetentionDays :: (Maybe Integer -> f (Maybe Integer))
-> DescribeBackupVaultResponse -> f DescribeBackupVaultResponse
describeBackupVaultResponse_maxRetentionDays = (DescribeBackupVaultResponse -> Maybe Integer)
-> (DescribeBackupVaultResponse
-> Maybe Integer -> DescribeBackupVaultResponse)
-> Lens
DescribeBackupVaultResponse
DescribeBackupVaultResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBackupVaultResponse' {Maybe Integer
maxRetentionDays :: Maybe Integer
$sel:maxRetentionDays:DescribeBackupVaultResponse' :: DescribeBackupVaultResponse -> Maybe Integer
maxRetentionDays} -> Maybe Integer
maxRetentionDays) (\s :: DescribeBackupVaultResponse
s@DescribeBackupVaultResponse' {} Maybe Integer
a -> DescribeBackupVaultResponse
s {$sel:maxRetentionDays:DescribeBackupVaultResponse' :: Maybe Integer
maxRetentionDays = Maybe Integer
a} :: DescribeBackupVaultResponse)
describeBackupVaultResponse_locked :: Lens.Lens' DescribeBackupVaultResponse (Prelude.Maybe Prelude.Bool)
describeBackupVaultResponse_locked :: (Maybe Bool -> f (Maybe Bool))
-> DescribeBackupVaultResponse -> f DescribeBackupVaultResponse
describeBackupVaultResponse_locked = (DescribeBackupVaultResponse -> Maybe Bool)
-> (DescribeBackupVaultResponse
-> Maybe Bool -> DescribeBackupVaultResponse)
-> Lens
DescribeBackupVaultResponse
DescribeBackupVaultResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBackupVaultResponse' {Maybe Bool
locked :: Maybe Bool
$sel:locked:DescribeBackupVaultResponse' :: DescribeBackupVaultResponse -> Maybe Bool
locked} -> Maybe Bool
locked) (\s :: DescribeBackupVaultResponse
s@DescribeBackupVaultResponse' {} Maybe Bool
a -> DescribeBackupVaultResponse
s {$sel:locked:DescribeBackupVaultResponse' :: Maybe Bool
locked = Maybe Bool
a} :: DescribeBackupVaultResponse)
describeBackupVaultResponse_creatorRequestId :: Lens.Lens' DescribeBackupVaultResponse (Prelude.Maybe Prelude.Text)
describeBackupVaultResponse_creatorRequestId :: (Maybe Text -> f (Maybe Text))
-> DescribeBackupVaultResponse -> f DescribeBackupVaultResponse
describeBackupVaultResponse_creatorRequestId = (DescribeBackupVaultResponse -> Maybe Text)
-> (DescribeBackupVaultResponse
-> Maybe Text -> DescribeBackupVaultResponse)
-> Lens
DescribeBackupVaultResponse
DescribeBackupVaultResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBackupVaultResponse' {Maybe Text
creatorRequestId :: Maybe Text
$sel:creatorRequestId:DescribeBackupVaultResponse' :: DescribeBackupVaultResponse -> Maybe Text
creatorRequestId} -> Maybe Text
creatorRequestId) (\s :: DescribeBackupVaultResponse
s@DescribeBackupVaultResponse' {} Maybe Text
a -> DescribeBackupVaultResponse
s {$sel:creatorRequestId:DescribeBackupVaultResponse' :: Maybe Text
creatorRequestId = Maybe Text
a} :: DescribeBackupVaultResponse)
describeBackupVaultResponse_numberOfRecoveryPoints :: Lens.Lens' DescribeBackupVaultResponse (Prelude.Maybe Prelude.Integer)
describeBackupVaultResponse_numberOfRecoveryPoints :: (Maybe Integer -> f (Maybe Integer))
-> DescribeBackupVaultResponse -> f DescribeBackupVaultResponse
describeBackupVaultResponse_numberOfRecoveryPoints = (DescribeBackupVaultResponse -> Maybe Integer)
-> (DescribeBackupVaultResponse
-> Maybe Integer -> DescribeBackupVaultResponse)
-> Lens
DescribeBackupVaultResponse
DescribeBackupVaultResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBackupVaultResponse' {Maybe Integer
numberOfRecoveryPoints :: Maybe Integer
$sel:numberOfRecoveryPoints:DescribeBackupVaultResponse' :: DescribeBackupVaultResponse -> Maybe Integer
numberOfRecoveryPoints} -> Maybe Integer
numberOfRecoveryPoints) (\s :: DescribeBackupVaultResponse
s@DescribeBackupVaultResponse' {} Maybe Integer
a -> DescribeBackupVaultResponse
s {$sel:numberOfRecoveryPoints:DescribeBackupVaultResponse' :: Maybe Integer
numberOfRecoveryPoints = Maybe Integer
a} :: DescribeBackupVaultResponse)
describeBackupVaultResponse_backupVaultArn :: Lens.Lens' DescribeBackupVaultResponse (Prelude.Maybe Prelude.Text)
describeBackupVaultResponse_backupVaultArn :: (Maybe Text -> f (Maybe Text))
-> DescribeBackupVaultResponse -> f DescribeBackupVaultResponse
describeBackupVaultResponse_backupVaultArn = (DescribeBackupVaultResponse -> Maybe Text)
-> (DescribeBackupVaultResponse
-> Maybe Text -> DescribeBackupVaultResponse)
-> Lens
DescribeBackupVaultResponse
DescribeBackupVaultResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBackupVaultResponse' {Maybe Text
backupVaultArn :: Maybe Text
$sel:backupVaultArn:DescribeBackupVaultResponse' :: DescribeBackupVaultResponse -> Maybe Text
backupVaultArn} -> Maybe Text
backupVaultArn) (\s :: DescribeBackupVaultResponse
s@DescribeBackupVaultResponse' {} Maybe Text
a -> DescribeBackupVaultResponse
s {$sel:backupVaultArn:DescribeBackupVaultResponse' :: Maybe Text
backupVaultArn = Maybe Text
a} :: DescribeBackupVaultResponse)
describeBackupVaultResponse_encryptionKeyArn :: Lens.Lens' DescribeBackupVaultResponse (Prelude.Maybe Prelude.Text)
describeBackupVaultResponse_encryptionKeyArn :: (Maybe Text -> f (Maybe Text))
-> DescribeBackupVaultResponse -> f DescribeBackupVaultResponse
describeBackupVaultResponse_encryptionKeyArn = (DescribeBackupVaultResponse -> Maybe Text)
-> (DescribeBackupVaultResponse
-> Maybe Text -> DescribeBackupVaultResponse)
-> Lens
DescribeBackupVaultResponse
DescribeBackupVaultResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBackupVaultResponse' {Maybe Text
encryptionKeyArn :: Maybe Text
$sel:encryptionKeyArn:DescribeBackupVaultResponse' :: DescribeBackupVaultResponse -> Maybe Text
encryptionKeyArn} -> Maybe Text
encryptionKeyArn) (\s :: DescribeBackupVaultResponse
s@DescribeBackupVaultResponse' {} Maybe Text
a -> DescribeBackupVaultResponse
s {$sel:encryptionKeyArn:DescribeBackupVaultResponse' :: Maybe Text
encryptionKeyArn = Maybe Text
a} :: DescribeBackupVaultResponse)
describeBackupVaultResponse_creationDate :: Lens.Lens' DescribeBackupVaultResponse (Prelude.Maybe Prelude.UTCTime)
describeBackupVaultResponse_creationDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeBackupVaultResponse -> f DescribeBackupVaultResponse
describeBackupVaultResponse_creationDate = (DescribeBackupVaultResponse -> Maybe POSIX)
-> (DescribeBackupVaultResponse
-> Maybe POSIX -> DescribeBackupVaultResponse)
-> Lens
DescribeBackupVaultResponse
DescribeBackupVaultResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBackupVaultResponse' {Maybe POSIX
creationDate :: Maybe POSIX
$sel:creationDate:DescribeBackupVaultResponse' :: DescribeBackupVaultResponse -> Maybe POSIX
creationDate} -> Maybe POSIX
creationDate) (\s :: DescribeBackupVaultResponse
s@DescribeBackupVaultResponse' {} Maybe POSIX
a -> DescribeBackupVaultResponse
s {$sel:creationDate:DescribeBackupVaultResponse' :: Maybe POSIX
creationDate = Maybe POSIX
a} :: DescribeBackupVaultResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeBackupVaultResponse -> f DescribeBackupVaultResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeBackupVaultResponse
-> f DescribeBackupVaultResponse
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
describeBackupVaultResponse_backupVaultName :: Lens.Lens' DescribeBackupVaultResponse (Prelude.Maybe Prelude.Text)
describeBackupVaultResponse_backupVaultName :: (Maybe Text -> f (Maybe Text))
-> DescribeBackupVaultResponse -> f DescribeBackupVaultResponse
describeBackupVaultResponse_backupVaultName = (DescribeBackupVaultResponse -> Maybe Text)
-> (DescribeBackupVaultResponse
-> Maybe Text -> DescribeBackupVaultResponse)
-> Lens
DescribeBackupVaultResponse
DescribeBackupVaultResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBackupVaultResponse' {Maybe Text
backupVaultName :: Maybe Text
$sel:backupVaultName:DescribeBackupVaultResponse' :: DescribeBackupVaultResponse -> Maybe Text
backupVaultName} -> Maybe Text
backupVaultName) (\s :: DescribeBackupVaultResponse
s@DescribeBackupVaultResponse' {} Maybe Text
a -> DescribeBackupVaultResponse
s {$sel:backupVaultName:DescribeBackupVaultResponse' :: Maybe Text
backupVaultName = Maybe Text
a} :: DescribeBackupVaultResponse)
describeBackupVaultResponse_minRetentionDays :: Lens.Lens' DescribeBackupVaultResponse (Prelude.Maybe Prelude.Integer)
describeBackupVaultResponse_minRetentionDays :: (Maybe Integer -> f (Maybe Integer))
-> DescribeBackupVaultResponse -> f DescribeBackupVaultResponse
describeBackupVaultResponse_minRetentionDays = (DescribeBackupVaultResponse -> Maybe Integer)
-> (DescribeBackupVaultResponse
-> Maybe Integer -> DescribeBackupVaultResponse)
-> Lens
DescribeBackupVaultResponse
DescribeBackupVaultResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBackupVaultResponse' {Maybe Integer
minRetentionDays :: Maybe Integer
$sel:minRetentionDays:DescribeBackupVaultResponse' :: DescribeBackupVaultResponse -> Maybe Integer
minRetentionDays} -> Maybe Integer
minRetentionDays) (\s :: DescribeBackupVaultResponse
s@DescribeBackupVaultResponse' {} Maybe Integer
a -> DescribeBackupVaultResponse
s {$sel:minRetentionDays:DescribeBackupVaultResponse' :: Maybe Integer
minRetentionDays = Maybe Integer
a} :: DescribeBackupVaultResponse)
describeBackupVaultResponse_httpStatus :: Lens.Lens' DescribeBackupVaultResponse Prelude.Int
describeBackupVaultResponse_httpStatus :: (Int -> f Int)
-> DescribeBackupVaultResponse -> f DescribeBackupVaultResponse
describeBackupVaultResponse_httpStatus = (DescribeBackupVaultResponse -> Int)
-> (DescribeBackupVaultResponse
-> Int -> DescribeBackupVaultResponse)
-> Lens
DescribeBackupVaultResponse DescribeBackupVaultResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBackupVaultResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeBackupVaultResponse' :: DescribeBackupVaultResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeBackupVaultResponse
s@DescribeBackupVaultResponse' {} Int
a -> DescribeBackupVaultResponse
s {$sel:httpStatus:DescribeBackupVaultResponse' :: Int
httpStatus = Int
a} :: DescribeBackupVaultResponse)
instance Prelude.NFData DescribeBackupVaultResponse