{-# 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.QLDB.DescribeLedger
(
DescribeLedger (..),
newDescribeLedger,
describeLedger_name,
DescribeLedgerResponse (..),
newDescribeLedgerResponse,
describeLedgerResponse_state,
describeLedgerResponse_deletionProtection,
describeLedgerResponse_arn,
describeLedgerResponse_encryptionDescription,
describeLedgerResponse_name,
describeLedgerResponse_creationDateTime,
describeLedgerResponse_permissionsMode,
describeLedgerResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.QLDB.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeLedger = DescribeLedger'
{
DescribeLedger -> Text
name :: Prelude.Text
}
deriving (DescribeLedger -> DescribeLedger -> Bool
(DescribeLedger -> DescribeLedger -> Bool)
-> (DescribeLedger -> DescribeLedger -> Bool) -> Eq DescribeLedger
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLedger -> DescribeLedger -> Bool
$c/= :: DescribeLedger -> DescribeLedger -> Bool
== :: DescribeLedger -> DescribeLedger -> Bool
$c== :: DescribeLedger -> DescribeLedger -> Bool
Prelude.Eq, ReadPrec [DescribeLedger]
ReadPrec DescribeLedger
Int -> ReadS DescribeLedger
ReadS [DescribeLedger]
(Int -> ReadS DescribeLedger)
-> ReadS [DescribeLedger]
-> ReadPrec DescribeLedger
-> ReadPrec [DescribeLedger]
-> Read DescribeLedger
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLedger]
$creadListPrec :: ReadPrec [DescribeLedger]
readPrec :: ReadPrec DescribeLedger
$creadPrec :: ReadPrec DescribeLedger
readList :: ReadS [DescribeLedger]
$creadList :: ReadS [DescribeLedger]
readsPrec :: Int -> ReadS DescribeLedger
$creadsPrec :: Int -> ReadS DescribeLedger
Prelude.Read, Int -> DescribeLedger -> ShowS
[DescribeLedger] -> ShowS
DescribeLedger -> String
(Int -> DescribeLedger -> ShowS)
-> (DescribeLedger -> String)
-> ([DescribeLedger] -> ShowS)
-> Show DescribeLedger
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLedger] -> ShowS
$cshowList :: [DescribeLedger] -> ShowS
show :: DescribeLedger -> String
$cshow :: DescribeLedger -> String
showsPrec :: Int -> DescribeLedger -> ShowS
$cshowsPrec :: Int -> DescribeLedger -> ShowS
Prelude.Show, (forall x. DescribeLedger -> Rep DescribeLedger x)
-> (forall x. Rep DescribeLedger x -> DescribeLedger)
-> Generic DescribeLedger
forall x. Rep DescribeLedger x -> DescribeLedger
forall x. DescribeLedger -> Rep DescribeLedger x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeLedger x -> DescribeLedger
$cfrom :: forall x. DescribeLedger -> Rep DescribeLedger x
Prelude.Generic)
newDescribeLedger ::
Prelude.Text ->
DescribeLedger
newDescribeLedger :: Text -> DescribeLedger
newDescribeLedger Text
pName_ =
DescribeLedger' :: Text -> DescribeLedger
DescribeLedger' {$sel:name:DescribeLedger' :: Text
name = Text
pName_}
describeLedger_name :: Lens.Lens' DescribeLedger Prelude.Text
describeLedger_name :: (Text -> f Text) -> DescribeLedger -> f DescribeLedger
describeLedger_name = (DescribeLedger -> Text)
-> (DescribeLedger -> Text -> DescribeLedger)
-> Lens DescribeLedger DescribeLedger Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLedger' {Text
name :: Text
$sel:name:DescribeLedger' :: DescribeLedger -> Text
name} -> Text
name) (\s :: DescribeLedger
s@DescribeLedger' {} Text
a -> DescribeLedger
s {$sel:name:DescribeLedger' :: Text
name = Text
a} :: DescribeLedger)
instance Core.AWSRequest DescribeLedger where
type
AWSResponse DescribeLedger =
DescribeLedgerResponse
request :: DescribeLedger -> Request DescribeLedger
request = Service -> DescribeLedger -> Request DescribeLedger
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeLedger
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeLedger)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeLedger))
-> Logger
-> Service
-> Proxy DescribeLedger
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeLedger)))
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 LedgerState
-> Maybe Bool
-> Maybe Text
-> Maybe LedgerEncryptionDescription
-> Maybe Text
-> Maybe POSIX
-> Maybe PermissionsMode
-> Int
-> DescribeLedgerResponse
DescribeLedgerResponse'
(Maybe LedgerState
-> Maybe Bool
-> Maybe Text
-> Maybe LedgerEncryptionDescription
-> Maybe Text
-> Maybe POSIX
-> Maybe PermissionsMode
-> Int
-> DescribeLedgerResponse)
-> Either String (Maybe LedgerState)
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe LedgerEncryptionDescription
-> Maybe Text
-> Maybe POSIX
-> Maybe PermissionsMode
-> Int
-> DescribeLedgerResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe LedgerState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"State")
Either
String
(Maybe Bool
-> Maybe Text
-> Maybe LedgerEncryptionDescription
-> Maybe Text
-> Maybe POSIX
-> Maybe PermissionsMode
-> Int
-> DescribeLedgerResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe LedgerEncryptionDescription
-> Maybe Text
-> Maybe POSIX
-> Maybe PermissionsMode
-> Int
-> DescribeLedgerResponse)
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
"DeletionProtection")
Either
String
(Maybe Text
-> Maybe LedgerEncryptionDescription
-> Maybe Text
-> Maybe POSIX
-> Maybe PermissionsMode
-> Int
-> DescribeLedgerResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe LedgerEncryptionDescription
-> Maybe Text
-> Maybe POSIX
-> Maybe PermissionsMode
-> Int
-> DescribeLedgerResponse)
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
"Arn")
Either
String
(Maybe LedgerEncryptionDescription
-> Maybe Text
-> Maybe POSIX
-> Maybe PermissionsMode
-> Int
-> DescribeLedgerResponse)
-> Either String (Maybe LedgerEncryptionDescription)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe PermissionsMode
-> Int
-> DescribeLedgerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe LedgerEncryptionDescription)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"EncryptionDescription")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe PermissionsMode
-> Int
-> DescribeLedgerResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe PermissionsMode -> Int -> DescribeLedgerResponse)
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
"Name")
Either
String
(Maybe POSIX
-> Maybe PermissionsMode -> Int -> DescribeLedgerResponse)
-> Either String (Maybe POSIX)
-> Either
String (Maybe PermissionsMode -> Int -> DescribeLedgerResponse)
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
"CreationDateTime")
Either
String (Maybe PermissionsMode -> Int -> DescribeLedgerResponse)
-> Either String (Maybe PermissionsMode)
-> Either String (Int -> DescribeLedgerResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe PermissionsMode)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PermissionsMode")
Either String (Int -> DescribeLedgerResponse)
-> Either String Int -> Either String DescribeLedgerResponse
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 DescribeLedger
instance Prelude.NFData DescribeLedger
instance Core.ToHeaders DescribeLedger where
toHeaders :: DescribeLedger -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeLedger -> 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.0" ::
Prelude.ByteString
)
]
)
instance Core.ToPath DescribeLedger where
toPath :: DescribeLedger -> ByteString
toPath DescribeLedger' {Text
name :: Text
$sel:name:DescribeLedger' :: DescribeLedger -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/ledgers/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
name]
instance Core.ToQuery DescribeLedger where
toQuery :: DescribeLedger -> QueryString
toQuery = QueryString -> DescribeLedger -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeLedgerResponse = DescribeLedgerResponse'
{
DescribeLedgerResponse -> Maybe LedgerState
state :: Prelude.Maybe LedgerState,
DescribeLedgerResponse -> Maybe Bool
deletionProtection :: Prelude.Maybe Prelude.Bool,
DescribeLedgerResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DescribeLedgerResponse -> Maybe LedgerEncryptionDescription
encryptionDescription :: Prelude.Maybe LedgerEncryptionDescription,
DescribeLedgerResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
DescribeLedgerResponse -> Maybe POSIX
creationDateTime :: Prelude.Maybe Core.POSIX,
DescribeLedgerResponse -> Maybe PermissionsMode
permissionsMode :: Prelude.Maybe PermissionsMode,
DescribeLedgerResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeLedgerResponse -> DescribeLedgerResponse -> Bool
(DescribeLedgerResponse -> DescribeLedgerResponse -> Bool)
-> (DescribeLedgerResponse -> DescribeLedgerResponse -> Bool)
-> Eq DescribeLedgerResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLedgerResponse -> DescribeLedgerResponse -> Bool
$c/= :: DescribeLedgerResponse -> DescribeLedgerResponse -> Bool
== :: DescribeLedgerResponse -> DescribeLedgerResponse -> Bool
$c== :: DescribeLedgerResponse -> DescribeLedgerResponse -> Bool
Prelude.Eq, ReadPrec [DescribeLedgerResponse]
ReadPrec DescribeLedgerResponse
Int -> ReadS DescribeLedgerResponse
ReadS [DescribeLedgerResponse]
(Int -> ReadS DescribeLedgerResponse)
-> ReadS [DescribeLedgerResponse]
-> ReadPrec DescribeLedgerResponse
-> ReadPrec [DescribeLedgerResponse]
-> Read DescribeLedgerResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLedgerResponse]
$creadListPrec :: ReadPrec [DescribeLedgerResponse]
readPrec :: ReadPrec DescribeLedgerResponse
$creadPrec :: ReadPrec DescribeLedgerResponse
readList :: ReadS [DescribeLedgerResponse]
$creadList :: ReadS [DescribeLedgerResponse]
readsPrec :: Int -> ReadS DescribeLedgerResponse
$creadsPrec :: Int -> ReadS DescribeLedgerResponse
Prelude.Read, Int -> DescribeLedgerResponse -> ShowS
[DescribeLedgerResponse] -> ShowS
DescribeLedgerResponse -> String
(Int -> DescribeLedgerResponse -> ShowS)
-> (DescribeLedgerResponse -> String)
-> ([DescribeLedgerResponse] -> ShowS)
-> Show DescribeLedgerResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLedgerResponse] -> ShowS
$cshowList :: [DescribeLedgerResponse] -> ShowS
show :: DescribeLedgerResponse -> String
$cshow :: DescribeLedgerResponse -> String
showsPrec :: Int -> DescribeLedgerResponse -> ShowS
$cshowsPrec :: Int -> DescribeLedgerResponse -> ShowS
Prelude.Show, (forall x. DescribeLedgerResponse -> Rep DescribeLedgerResponse x)
-> (forall x.
Rep DescribeLedgerResponse x -> DescribeLedgerResponse)
-> Generic DescribeLedgerResponse
forall x. Rep DescribeLedgerResponse x -> DescribeLedgerResponse
forall x. DescribeLedgerResponse -> Rep DescribeLedgerResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeLedgerResponse x -> DescribeLedgerResponse
$cfrom :: forall x. DescribeLedgerResponse -> Rep DescribeLedgerResponse x
Prelude.Generic)
newDescribeLedgerResponse ::
Prelude.Int ->
DescribeLedgerResponse
newDescribeLedgerResponse :: Int -> DescribeLedgerResponse
newDescribeLedgerResponse Int
pHttpStatus_ =
DescribeLedgerResponse' :: Maybe LedgerState
-> Maybe Bool
-> Maybe Text
-> Maybe LedgerEncryptionDescription
-> Maybe Text
-> Maybe POSIX
-> Maybe PermissionsMode
-> Int
-> DescribeLedgerResponse
DescribeLedgerResponse'
{ $sel:state:DescribeLedgerResponse' :: Maybe LedgerState
state = Maybe LedgerState
forall a. Maybe a
Prelude.Nothing,
$sel:deletionProtection:DescribeLedgerResponse' :: Maybe Bool
deletionProtection = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:arn:DescribeLedgerResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:encryptionDescription:DescribeLedgerResponse' :: Maybe LedgerEncryptionDescription
encryptionDescription = Maybe LedgerEncryptionDescription
forall a. Maybe a
Prelude.Nothing,
$sel:name:DescribeLedgerResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationDateTime:DescribeLedgerResponse' :: Maybe POSIX
creationDateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:permissionsMode:DescribeLedgerResponse' :: Maybe PermissionsMode
permissionsMode = Maybe PermissionsMode
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeLedgerResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeLedgerResponse_state :: Lens.Lens' DescribeLedgerResponse (Prelude.Maybe LedgerState)
describeLedgerResponse_state :: (Maybe LedgerState -> f (Maybe LedgerState))
-> DescribeLedgerResponse -> f DescribeLedgerResponse
describeLedgerResponse_state = (DescribeLedgerResponse -> Maybe LedgerState)
-> (DescribeLedgerResponse
-> Maybe LedgerState -> DescribeLedgerResponse)
-> Lens
DescribeLedgerResponse
DescribeLedgerResponse
(Maybe LedgerState)
(Maybe LedgerState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLedgerResponse' {Maybe LedgerState
state :: Maybe LedgerState
$sel:state:DescribeLedgerResponse' :: DescribeLedgerResponse -> Maybe LedgerState
state} -> Maybe LedgerState
state) (\s :: DescribeLedgerResponse
s@DescribeLedgerResponse' {} Maybe LedgerState
a -> DescribeLedgerResponse
s {$sel:state:DescribeLedgerResponse' :: Maybe LedgerState
state = Maybe LedgerState
a} :: DescribeLedgerResponse)
describeLedgerResponse_deletionProtection :: Lens.Lens' DescribeLedgerResponse (Prelude.Maybe Prelude.Bool)
describeLedgerResponse_deletionProtection :: (Maybe Bool -> f (Maybe Bool))
-> DescribeLedgerResponse -> f DescribeLedgerResponse
describeLedgerResponse_deletionProtection = (DescribeLedgerResponse -> Maybe Bool)
-> (DescribeLedgerResponse -> Maybe Bool -> DescribeLedgerResponse)
-> Lens
DescribeLedgerResponse
DescribeLedgerResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLedgerResponse' {Maybe Bool
deletionProtection :: Maybe Bool
$sel:deletionProtection:DescribeLedgerResponse' :: DescribeLedgerResponse -> Maybe Bool
deletionProtection} -> Maybe Bool
deletionProtection) (\s :: DescribeLedgerResponse
s@DescribeLedgerResponse' {} Maybe Bool
a -> DescribeLedgerResponse
s {$sel:deletionProtection:DescribeLedgerResponse' :: Maybe Bool
deletionProtection = Maybe Bool
a} :: DescribeLedgerResponse)
describeLedgerResponse_arn :: Lens.Lens' DescribeLedgerResponse (Prelude.Maybe Prelude.Text)
describeLedgerResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeLedgerResponse -> f DescribeLedgerResponse
describeLedgerResponse_arn = (DescribeLedgerResponse -> Maybe Text)
-> (DescribeLedgerResponse -> Maybe Text -> DescribeLedgerResponse)
-> Lens
DescribeLedgerResponse
DescribeLedgerResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLedgerResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeLedgerResponse' :: DescribeLedgerResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeLedgerResponse
s@DescribeLedgerResponse' {} Maybe Text
a -> DescribeLedgerResponse
s {$sel:arn:DescribeLedgerResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeLedgerResponse)
describeLedgerResponse_encryptionDescription :: Lens.Lens' DescribeLedgerResponse (Prelude.Maybe LedgerEncryptionDescription)
describeLedgerResponse_encryptionDescription :: (Maybe LedgerEncryptionDescription
-> f (Maybe LedgerEncryptionDescription))
-> DescribeLedgerResponse -> f DescribeLedgerResponse
describeLedgerResponse_encryptionDescription = (DescribeLedgerResponse -> Maybe LedgerEncryptionDescription)
-> (DescribeLedgerResponse
-> Maybe LedgerEncryptionDescription -> DescribeLedgerResponse)
-> Lens
DescribeLedgerResponse
DescribeLedgerResponse
(Maybe LedgerEncryptionDescription)
(Maybe LedgerEncryptionDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLedgerResponse' {Maybe LedgerEncryptionDescription
encryptionDescription :: Maybe LedgerEncryptionDescription
$sel:encryptionDescription:DescribeLedgerResponse' :: DescribeLedgerResponse -> Maybe LedgerEncryptionDescription
encryptionDescription} -> Maybe LedgerEncryptionDescription
encryptionDescription) (\s :: DescribeLedgerResponse
s@DescribeLedgerResponse' {} Maybe LedgerEncryptionDescription
a -> DescribeLedgerResponse
s {$sel:encryptionDescription:DescribeLedgerResponse' :: Maybe LedgerEncryptionDescription
encryptionDescription = Maybe LedgerEncryptionDescription
a} :: DescribeLedgerResponse)
describeLedgerResponse_name :: Lens.Lens' DescribeLedgerResponse (Prelude.Maybe Prelude.Text)
describeLedgerResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeLedgerResponse -> f DescribeLedgerResponse
describeLedgerResponse_name = (DescribeLedgerResponse -> Maybe Text)
-> (DescribeLedgerResponse -> Maybe Text -> DescribeLedgerResponse)
-> Lens
DescribeLedgerResponse
DescribeLedgerResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLedgerResponse' {Maybe Text
name :: Maybe Text
$sel:name:DescribeLedgerResponse' :: DescribeLedgerResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeLedgerResponse
s@DescribeLedgerResponse' {} Maybe Text
a -> DescribeLedgerResponse
s {$sel:name:DescribeLedgerResponse' :: Maybe Text
name = Maybe Text
a} :: DescribeLedgerResponse)
describeLedgerResponse_creationDateTime :: Lens.Lens' DescribeLedgerResponse (Prelude.Maybe Prelude.UTCTime)
describeLedgerResponse_creationDateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeLedgerResponse -> f DescribeLedgerResponse
describeLedgerResponse_creationDateTime = (DescribeLedgerResponse -> Maybe POSIX)
-> (DescribeLedgerResponse
-> Maybe POSIX -> DescribeLedgerResponse)
-> Lens
DescribeLedgerResponse
DescribeLedgerResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLedgerResponse' {Maybe POSIX
creationDateTime :: Maybe POSIX
$sel:creationDateTime:DescribeLedgerResponse' :: DescribeLedgerResponse -> Maybe POSIX
creationDateTime} -> Maybe POSIX
creationDateTime) (\s :: DescribeLedgerResponse
s@DescribeLedgerResponse' {} Maybe POSIX
a -> DescribeLedgerResponse
s {$sel:creationDateTime:DescribeLedgerResponse' :: Maybe POSIX
creationDateTime = Maybe POSIX
a} :: DescribeLedgerResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeLedgerResponse -> f DescribeLedgerResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeLedgerResponse
-> f DescribeLedgerResponse
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
describeLedgerResponse_permissionsMode :: Lens.Lens' DescribeLedgerResponse (Prelude.Maybe PermissionsMode)
describeLedgerResponse_permissionsMode :: (Maybe PermissionsMode -> f (Maybe PermissionsMode))
-> DescribeLedgerResponse -> f DescribeLedgerResponse
describeLedgerResponse_permissionsMode = (DescribeLedgerResponse -> Maybe PermissionsMode)
-> (DescribeLedgerResponse
-> Maybe PermissionsMode -> DescribeLedgerResponse)
-> Lens
DescribeLedgerResponse
DescribeLedgerResponse
(Maybe PermissionsMode)
(Maybe PermissionsMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLedgerResponse' {Maybe PermissionsMode
permissionsMode :: Maybe PermissionsMode
$sel:permissionsMode:DescribeLedgerResponse' :: DescribeLedgerResponse -> Maybe PermissionsMode
permissionsMode} -> Maybe PermissionsMode
permissionsMode) (\s :: DescribeLedgerResponse
s@DescribeLedgerResponse' {} Maybe PermissionsMode
a -> DescribeLedgerResponse
s {$sel:permissionsMode:DescribeLedgerResponse' :: Maybe PermissionsMode
permissionsMode = Maybe PermissionsMode
a} :: DescribeLedgerResponse)
describeLedgerResponse_httpStatus :: Lens.Lens' DescribeLedgerResponse Prelude.Int
describeLedgerResponse_httpStatus :: (Int -> f Int)
-> DescribeLedgerResponse -> f DescribeLedgerResponse
describeLedgerResponse_httpStatus = (DescribeLedgerResponse -> Int)
-> (DescribeLedgerResponse -> Int -> DescribeLedgerResponse)
-> Lens DescribeLedgerResponse DescribeLedgerResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLedgerResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeLedgerResponse' :: DescribeLedgerResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeLedgerResponse
s@DescribeLedgerResponse' {} Int
a -> DescribeLedgerResponse
s {$sel:httpStatus:DescribeLedgerResponse' :: Int
httpStatus = Int
a} :: DescribeLedgerResponse)
instance Prelude.NFData DescribeLedgerResponse