{-# 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.UpdateLedger
(
UpdateLedger (..),
newUpdateLedger,
updateLedger_deletionProtection,
updateLedger_kmsKey,
updateLedger_name,
UpdateLedgerResponse (..),
newUpdateLedgerResponse,
updateLedgerResponse_state,
updateLedgerResponse_deletionProtection,
updateLedgerResponse_arn,
updateLedgerResponse_encryptionDescription,
updateLedgerResponse_name,
updateLedgerResponse_creationDateTime,
updateLedgerResponse_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 UpdateLedger = UpdateLedger'
{
UpdateLedger -> Maybe Bool
deletionProtection :: Prelude.Maybe Prelude.Bool,
UpdateLedger -> Maybe Text
kmsKey :: Prelude.Maybe Prelude.Text,
UpdateLedger -> Text
name :: Prelude.Text
}
deriving (UpdateLedger -> UpdateLedger -> Bool
(UpdateLedger -> UpdateLedger -> Bool)
-> (UpdateLedger -> UpdateLedger -> Bool) -> Eq UpdateLedger
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateLedger -> UpdateLedger -> Bool
$c/= :: UpdateLedger -> UpdateLedger -> Bool
== :: UpdateLedger -> UpdateLedger -> Bool
$c== :: UpdateLedger -> UpdateLedger -> Bool
Prelude.Eq, ReadPrec [UpdateLedger]
ReadPrec UpdateLedger
Int -> ReadS UpdateLedger
ReadS [UpdateLedger]
(Int -> ReadS UpdateLedger)
-> ReadS [UpdateLedger]
-> ReadPrec UpdateLedger
-> ReadPrec [UpdateLedger]
-> Read UpdateLedger
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateLedger]
$creadListPrec :: ReadPrec [UpdateLedger]
readPrec :: ReadPrec UpdateLedger
$creadPrec :: ReadPrec UpdateLedger
readList :: ReadS [UpdateLedger]
$creadList :: ReadS [UpdateLedger]
readsPrec :: Int -> ReadS UpdateLedger
$creadsPrec :: Int -> ReadS UpdateLedger
Prelude.Read, Int -> UpdateLedger -> ShowS
[UpdateLedger] -> ShowS
UpdateLedger -> String
(Int -> UpdateLedger -> ShowS)
-> (UpdateLedger -> String)
-> ([UpdateLedger] -> ShowS)
-> Show UpdateLedger
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateLedger] -> ShowS
$cshowList :: [UpdateLedger] -> ShowS
show :: UpdateLedger -> String
$cshow :: UpdateLedger -> String
showsPrec :: Int -> UpdateLedger -> ShowS
$cshowsPrec :: Int -> UpdateLedger -> ShowS
Prelude.Show, (forall x. UpdateLedger -> Rep UpdateLedger x)
-> (forall x. Rep UpdateLedger x -> UpdateLedger)
-> Generic UpdateLedger
forall x. Rep UpdateLedger x -> UpdateLedger
forall x. UpdateLedger -> Rep UpdateLedger x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateLedger x -> UpdateLedger
$cfrom :: forall x. UpdateLedger -> Rep UpdateLedger x
Prelude.Generic)
newUpdateLedger ::
Prelude.Text ->
UpdateLedger
newUpdateLedger :: Text -> UpdateLedger
newUpdateLedger Text
pName_ =
UpdateLedger' :: Maybe Bool -> Maybe Text -> Text -> UpdateLedger
UpdateLedger'
{ $sel:deletionProtection:UpdateLedger' :: Maybe Bool
deletionProtection = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKey:UpdateLedger' :: Maybe Text
kmsKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateLedger' :: Text
name = Text
pName_
}
updateLedger_deletionProtection :: Lens.Lens' UpdateLedger (Prelude.Maybe Prelude.Bool)
updateLedger_deletionProtection :: (Maybe Bool -> f (Maybe Bool)) -> UpdateLedger -> f UpdateLedger
updateLedger_deletionProtection = (UpdateLedger -> Maybe Bool)
-> (UpdateLedger -> Maybe Bool -> UpdateLedger)
-> Lens UpdateLedger UpdateLedger (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLedger' {Maybe Bool
deletionProtection :: Maybe Bool
$sel:deletionProtection:UpdateLedger' :: UpdateLedger -> Maybe Bool
deletionProtection} -> Maybe Bool
deletionProtection) (\s :: UpdateLedger
s@UpdateLedger' {} Maybe Bool
a -> UpdateLedger
s {$sel:deletionProtection:UpdateLedger' :: Maybe Bool
deletionProtection = Maybe Bool
a} :: UpdateLedger)
updateLedger_kmsKey :: Lens.Lens' UpdateLedger (Prelude.Maybe Prelude.Text)
updateLedger_kmsKey :: (Maybe Text -> f (Maybe Text)) -> UpdateLedger -> f UpdateLedger
updateLedger_kmsKey = (UpdateLedger -> Maybe Text)
-> (UpdateLedger -> Maybe Text -> UpdateLedger)
-> Lens UpdateLedger UpdateLedger (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLedger' {Maybe Text
kmsKey :: Maybe Text
$sel:kmsKey:UpdateLedger' :: UpdateLedger -> Maybe Text
kmsKey} -> Maybe Text
kmsKey) (\s :: UpdateLedger
s@UpdateLedger' {} Maybe Text
a -> UpdateLedger
s {$sel:kmsKey:UpdateLedger' :: Maybe Text
kmsKey = Maybe Text
a} :: UpdateLedger)
updateLedger_name :: Lens.Lens' UpdateLedger Prelude.Text
updateLedger_name :: (Text -> f Text) -> UpdateLedger -> f UpdateLedger
updateLedger_name = (UpdateLedger -> Text)
-> (UpdateLedger -> Text -> UpdateLedger)
-> Lens UpdateLedger UpdateLedger Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLedger' {Text
name :: Text
$sel:name:UpdateLedger' :: UpdateLedger -> Text
name} -> Text
name) (\s :: UpdateLedger
s@UpdateLedger' {} Text
a -> UpdateLedger
s {$sel:name:UpdateLedger' :: Text
name = Text
a} :: UpdateLedger)
instance Core.AWSRequest UpdateLedger where
type AWSResponse UpdateLedger = UpdateLedgerResponse
request :: UpdateLedger -> Request UpdateLedger
request = Service -> UpdateLedger -> Request UpdateLedger
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.patchJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateLedger
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateLedger)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateLedger))
-> Logger
-> Service
-> Proxy UpdateLedger
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateLedger)))
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
-> Int
-> UpdateLedgerResponse
UpdateLedgerResponse'
(Maybe LedgerState
-> Maybe Bool
-> Maybe Text
-> Maybe LedgerEncryptionDescription
-> Maybe Text
-> Maybe POSIX
-> Int
-> UpdateLedgerResponse)
-> Either String (Maybe LedgerState)
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe LedgerEncryptionDescription
-> Maybe Text
-> Maybe POSIX
-> Int
-> UpdateLedgerResponse)
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
-> Int
-> UpdateLedgerResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe LedgerEncryptionDescription
-> Maybe Text
-> Maybe POSIX
-> Int
-> UpdateLedgerResponse)
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
-> Int
-> UpdateLedgerResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe LedgerEncryptionDescription
-> Maybe Text -> Maybe POSIX -> Int -> UpdateLedgerResponse)
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 -> Int -> UpdateLedgerResponse)
-> Either String (Maybe LedgerEncryptionDescription)
-> Either
String (Maybe Text -> Maybe POSIX -> Int -> UpdateLedgerResponse)
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 -> Int -> UpdateLedgerResponse)
-> Either String (Maybe Text)
-> Either String (Maybe POSIX -> Int -> UpdateLedgerResponse)
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 -> Int -> UpdateLedgerResponse)
-> Either String (Maybe POSIX)
-> Either String (Int -> UpdateLedgerResponse)
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 (Int -> UpdateLedgerResponse)
-> Either String Int -> Either String UpdateLedgerResponse
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 UpdateLedger
instance Prelude.NFData UpdateLedger
instance Core.ToHeaders UpdateLedger where
toHeaders :: UpdateLedger -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateLedger -> 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.ToJSON UpdateLedger where
toJSON :: UpdateLedger -> Value
toJSON UpdateLedger' {Maybe Bool
Maybe Text
Text
name :: Text
kmsKey :: Maybe Text
deletionProtection :: Maybe Bool
$sel:name:UpdateLedger' :: UpdateLedger -> Text
$sel:kmsKey:UpdateLedger' :: UpdateLedger -> Maybe Text
$sel:deletionProtection:UpdateLedger' :: UpdateLedger -> Maybe Bool
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"DeletionProtection" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
deletionProtection,
(Text
"KmsKey" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
kmsKey
]
)
instance Core.ToPath UpdateLedger where
toPath :: UpdateLedger -> ByteString
toPath UpdateLedger' {Maybe Bool
Maybe Text
Text
name :: Text
kmsKey :: Maybe Text
deletionProtection :: Maybe Bool
$sel:name:UpdateLedger' :: UpdateLedger -> Text
$sel:kmsKey:UpdateLedger' :: UpdateLedger -> Maybe Text
$sel:deletionProtection:UpdateLedger' :: UpdateLedger -> Maybe Bool
..} =
[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 UpdateLedger where
toQuery :: UpdateLedger -> QueryString
toQuery = QueryString -> UpdateLedger -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateLedgerResponse = UpdateLedgerResponse'
{
UpdateLedgerResponse -> Maybe LedgerState
state :: Prelude.Maybe LedgerState,
UpdateLedgerResponse -> Maybe Bool
deletionProtection :: Prelude.Maybe Prelude.Bool,
UpdateLedgerResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
UpdateLedgerResponse -> Maybe LedgerEncryptionDescription
encryptionDescription :: Prelude.Maybe LedgerEncryptionDescription,
UpdateLedgerResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateLedgerResponse -> Maybe POSIX
creationDateTime :: Prelude.Maybe Core.POSIX,
UpdateLedgerResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateLedgerResponse -> UpdateLedgerResponse -> Bool
(UpdateLedgerResponse -> UpdateLedgerResponse -> Bool)
-> (UpdateLedgerResponse -> UpdateLedgerResponse -> Bool)
-> Eq UpdateLedgerResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateLedgerResponse -> UpdateLedgerResponse -> Bool
$c/= :: UpdateLedgerResponse -> UpdateLedgerResponse -> Bool
== :: UpdateLedgerResponse -> UpdateLedgerResponse -> Bool
$c== :: UpdateLedgerResponse -> UpdateLedgerResponse -> Bool
Prelude.Eq, ReadPrec [UpdateLedgerResponse]
ReadPrec UpdateLedgerResponse
Int -> ReadS UpdateLedgerResponse
ReadS [UpdateLedgerResponse]
(Int -> ReadS UpdateLedgerResponse)
-> ReadS [UpdateLedgerResponse]
-> ReadPrec UpdateLedgerResponse
-> ReadPrec [UpdateLedgerResponse]
-> Read UpdateLedgerResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateLedgerResponse]
$creadListPrec :: ReadPrec [UpdateLedgerResponse]
readPrec :: ReadPrec UpdateLedgerResponse
$creadPrec :: ReadPrec UpdateLedgerResponse
readList :: ReadS [UpdateLedgerResponse]
$creadList :: ReadS [UpdateLedgerResponse]
readsPrec :: Int -> ReadS UpdateLedgerResponse
$creadsPrec :: Int -> ReadS UpdateLedgerResponse
Prelude.Read, Int -> UpdateLedgerResponse -> ShowS
[UpdateLedgerResponse] -> ShowS
UpdateLedgerResponse -> String
(Int -> UpdateLedgerResponse -> ShowS)
-> (UpdateLedgerResponse -> String)
-> ([UpdateLedgerResponse] -> ShowS)
-> Show UpdateLedgerResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateLedgerResponse] -> ShowS
$cshowList :: [UpdateLedgerResponse] -> ShowS
show :: UpdateLedgerResponse -> String
$cshow :: UpdateLedgerResponse -> String
showsPrec :: Int -> UpdateLedgerResponse -> ShowS
$cshowsPrec :: Int -> UpdateLedgerResponse -> ShowS
Prelude.Show, (forall x. UpdateLedgerResponse -> Rep UpdateLedgerResponse x)
-> (forall x. Rep UpdateLedgerResponse x -> UpdateLedgerResponse)
-> Generic UpdateLedgerResponse
forall x. Rep UpdateLedgerResponse x -> UpdateLedgerResponse
forall x. UpdateLedgerResponse -> Rep UpdateLedgerResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateLedgerResponse x -> UpdateLedgerResponse
$cfrom :: forall x. UpdateLedgerResponse -> Rep UpdateLedgerResponse x
Prelude.Generic)
newUpdateLedgerResponse ::
Prelude.Int ->
UpdateLedgerResponse
newUpdateLedgerResponse :: Int -> UpdateLedgerResponse
newUpdateLedgerResponse Int
pHttpStatus_ =
UpdateLedgerResponse' :: Maybe LedgerState
-> Maybe Bool
-> Maybe Text
-> Maybe LedgerEncryptionDescription
-> Maybe Text
-> Maybe POSIX
-> Int
-> UpdateLedgerResponse
UpdateLedgerResponse'
{ $sel:state:UpdateLedgerResponse' :: Maybe LedgerState
state = Maybe LedgerState
forall a. Maybe a
Prelude.Nothing,
$sel:deletionProtection:UpdateLedgerResponse' :: Maybe Bool
deletionProtection = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:arn:UpdateLedgerResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:encryptionDescription:UpdateLedgerResponse' :: Maybe LedgerEncryptionDescription
encryptionDescription = Maybe LedgerEncryptionDescription
forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateLedgerResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationDateTime:UpdateLedgerResponse' :: Maybe POSIX
creationDateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateLedgerResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateLedgerResponse_state :: Lens.Lens' UpdateLedgerResponse (Prelude.Maybe LedgerState)
updateLedgerResponse_state :: (Maybe LedgerState -> f (Maybe LedgerState))
-> UpdateLedgerResponse -> f UpdateLedgerResponse
updateLedgerResponse_state = (UpdateLedgerResponse -> Maybe LedgerState)
-> (UpdateLedgerResponse
-> Maybe LedgerState -> UpdateLedgerResponse)
-> Lens
UpdateLedgerResponse
UpdateLedgerResponse
(Maybe LedgerState)
(Maybe LedgerState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLedgerResponse' {Maybe LedgerState
state :: Maybe LedgerState
$sel:state:UpdateLedgerResponse' :: UpdateLedgerResponse -> Maybe LedgerState
state} -> Maybe LedgerState
state) (\s :: UpdateLedgerResponse
s@UpdateLedgerResponse' {} Maybe LedgerState
a -> UpdateLedgerResponse
s {$sel:state:UpdateLedgerResponse' :: Maybe LedgerState
state = Maybe LedgerState
a} :: UpdateLedgerResponse)
updateLedgerResponse_deletionProtection :: Lens.Lens' UpdateLedgerResponse (Prelude.Maybe Prelude.Bool)
updateLedgerResponse_deletionProtection :: (Maybe Bool -> f (Maybe Bool))
-> UpdateLedgerResponse -> f UpdateLedgerResponse
updateLedgerResponse_deletionProtection = (UpdateLedgerResponse -> Maybe Bool)
-> (UpdateLedgerResponse -> Maybe Bool -> UpdateLedgerResponse)
-> Lens
UpdateLedgerResponse UpdateLedgerResponse (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLedgerResponse' {Maybe Bool
deletionProtection :: Maybe Bool
$sel:deletionProtection:UpdateLedgerResponse' :: UpdateLedgerResponse -> Maybe Bool
deletionProtection} -> Maybe Bool
deletionProtection) (\s :: UpdateLedgerResponse
s@UpdateLedgerResponse' {} Maybe Bool
a -> UpdateLedgerResponse
s {$sel:deletionProtection:UpdateLedgerResponse' :: Maybe Bool
deletionProtection = Maybe Bool
a} :: UpdateLedgerResponse)
updateLedgerResponse_arn :: Lens.Lens' UpdateLedgerResponse (Prelude.Maybe Prelude.Text)
updateLedgerResponse_arn :: (Maybe Text -> f (Maybe Text))
-> UpdateLedgerResponse -> f UpdateLedgerResponse
updateLedgerResponse_arn = (UpdateLedgerResponse -> Maybe Text)
-> (UpdateLedgerResponse -> Maybe Text -> UpdateLedgerResponse)
-> Lens
UpdateLedgerResponse UpdateLedgerResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLedgerResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:UpdateLedgerResponse' :: UpdateLedgerResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: UpdateLedgerResponse
s@UpdateLedgerResponse' {} Maybe Text
a -> UpdateLedgerResponse
s {$sel:arn:UpdateLedgerResponse' :: Maybe Text
arn = Maybe Text
a} :: UpdateLedgerResponse)
updateLedgerResponse_encryptionDescription :: Lens.Lens' UpdateLedgerResponse (Prelude.Maybe LedgerEncryptionDescription)
updateLedgerResponse_encryptionDescription :: (Maybe LedgerEncryptionDescription
-> f (Maybe LedgerEncryptionDescription))
-> UpdateLedgerResponse -> f UpdateLedgerResponse
updateLedgerResponse_encryptionDescription = (UpdateLedgerResponse -> Maybe LedgerEncryptionDescription)
-> (UpdateLedgerResponse
-> Maybe LedgerEncryptionDescription -> UpdateLedgerResponse)
-> Lens
UpdateLedgerResponse
UpdateLedgerResponse
(Maybe LedgerEncryptionDescription)
(Maybe LedgerEncryptionDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLedgerResponse' {Maybe LedgerEncryptionDescription
encryptionDescription :: Maybe LedgerEncryptionDescription
$sel:encryptionDescription:UpdateLedgerResponse' :: UpdateLedgerResponse -> Maybe LedgerEncryptionDescription
encryptionDescription} -> Maybe LedgerEncryptionDescription
encryptionDescription) (\s :: UpdateLedgerResponse
s@UpdateLedgerResponse' {} Maybe LedgerEncryptionDescription
a -> UpdateLedgerResponse
s {$sel:encryptionDescription:UpdateLedgerResponse' :: Maybe LedgerEncryptionDescription
encryptionDescription = Maybe LedgerEncryptionDescription
a} :: UpdateLedgerResponse)
updateLedgerResponse_name :: Lens.Lens' UpdateLedgerResponse (Prelude.Maybe Prelude.Text)
updateLedgerResponse_name :: (Maybe Text -> f (Maybe Text))
-> UpdateLedgerResponse -> f UpdateLedgerResponse
updateLedgerResponse_name = (UpdateLedgerResponse -> Maybe Text)
-> (UpdateLedgerResponse -> Maybe Text -> UpdateLedgerResponse)
-> Lens
UpdateLedgerResponse UpdateLedgerResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLedgerResponse' {Maybe Text
name :: Maybe Text
$sel:name:UpdateLedgerResponse' :: UpdateLedgerResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateLedgerResponse
s@UpdateLedgerResponse' {} Maybe Text
a -> UpdateLedgerResponse
s {$sel:name:UpdateLedgerResponse' :: Maybe Text
name = Maybe Text
a} :: UpdateLedgerResponse)
updateLedgerResponse_creationDateTime :: Lens.Lens' UpdateLedgerResponse (Prelude.Maybe Prelude.UTCTime)
updateLedgerResponse_creationDateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateLedgerResponse -> f UpdateLedgerResponse
updateLedgerResponse_creationDateTime = (UpdateLedgerResponse -> Maybe POSIX)
-> (UpdateLedgerResponse -> Maybe POSIX -> UpdateLedgerResponse)
-> Lens
UpdateLedgerResponse
UpdateLedgerResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLedgerResponse' {Maybe POSIX
creationDateTime :: Maybe POSIX
$sel:creationDateTime:UpdateLedgerResponse' :: UpdateLedgerResponse -> Maybe POSIX
creationDateTime} -> Maybe POSIX
creationDateTime) (\s :: UpdateLedgerResponse
s@UpdateLedgerResponse' {} Maybe POSIX
a -> UpdateLedgerResponse
s {$sel:creationDateTime:UpdateLedgerResponse' :: Maybe POSIX
creationDateTime = Maybe POSIX
a} :: UpdateLedgerResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> UpdateLedgerResponse -> f UpdateLedgerResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateLedgerResponse
-> f UpdateLedgerResponse
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
updateLedgerResponse_httpStatus :: Lens.Lens' UpdateLedgerResponse Prelude.Int
updateLedgerResponse_httpStatus :: (Int -> f Int) -> UpdateLedgerResponse -> f UpdateLedgerResponse
updateLedgerResponse_httpStatus = (UpdateLedgerResponse -> Int)
-> (UpdateLedgerResponse -> Int -> UpdateLedgerResponse)
-> Lens UpdateLedgerResponse UpdateLedgerResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLedgerResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateLedgerResponse' :: UpdateLedgerResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateLedgerResponse
s@UpdateLedgerResponse' {} Int
a -> UpdateLedgerResponse
s {$sel:httpStatus:UpdateLedgerResponse' :: Int
httpStatus = Int
a} :: UpdateLedgerResponse)
instance Prelude.NFData UpdateLedgerResponse