{-# 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.ExportJournalToS3
(
ExportJournalToS3 (..),
newExportJournalToS3,
exportJournalToS3_name,
exportJournalToS3_inclusiveStartTime,
exportJournalToS3_exclusiveEndTime,
exportJournalToS3_s3ExportConfiguration,
exportJournalToS3_roleArn,
ExportJournalToS3Response (..),
newExportJournalToS3Response,
exportJournalToS3Response_httpStatus,
exportJournalToS3Response_exportId,
)
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 ExportJournalToS3 = ExportJournalToS3'
{
ExportJournalToS3 -> Text
name :: Prelude.Text,
ExportJournalToS3 -> POSIX
inclusiveStartTime :: Core.POSIX,
ExportJournalToS3 -> POSIX
exclusiveEndTime :: Core.POSIX,
ExportJournalToS3 -> S3ExportConfiguration
s3ExportConfiguration :: S3ExportConfiguration,
ExportJournalToS3 -> Text
roleArn :: Prelude.Text
}
deriving (ExportJournalToS3 -> ExportJournalToS3 -> Bool
(ExportJournalToS3 -> ExportJournalToS3 -> Bool)
-> (ExportJournalToS3 -> ExportJournalToS3 -> Bool)
-> Eq ExportJournalToS3
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExportJournalToS3 -> ExportJournalToS3 -> Bool
$c/= :: ExportJournalToS3 -> ExportJournalToS3 -> Bool
== :: ExportJournalToS3 -> ExportJournalToS3 -> Bool
$c== :: ExportJournalToS3 -> ExportJournalToS3 -> Bool
Prelude.Eq, ReadPrec [ExportJournalToS3]
ReadPrec ExportJournalToS3
Int -> ReadS ExportJournalToS3
ReadS [ExportJournalToS3]
(Int -> ReadS ExportJournalToS3)
-> ReadS [ExportJournalToS3]
-> ReadPrec ExportJournalToS3
-> ReadPrec [ExportJournalToS3]
-> Read ExportJournalToS3
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExportJournalToS3]
$creadListPrec :: ReadPrec [ExportJournalToS3]
readPrec :: ReadPrec ExportJournalToS3
$creadPrec :: ReadPrec ExportJournalToS3
readList :: ReadS [ExportJournalToS3]
$creadList :: ReadS [ExportJournalToS3]
readsPrec :: Int -> ReadS ExportJournalToS3
$creadsPrec :: Int -> ReadS ExportJournalToS3
Prelude.Read, Int -> ExportJournalToS3 -> ShowS
[ExportJournalToS3] -> ShowS
ExportJournalToS3 -> String
(Int -> ExportJournalToS3 -> ShowS)
-> (ExportJournalToS3 -> String)
-> ([ExportJournalToS3] -> ShowS)
-> Show ExportJournalToS3
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExportJournalToS3] -> ShowS
$cshowList :: [ExportJournalToS3] -> ShowS
show :: ExportJournalToS3 -> String
$cshow :: ExportJournalToS3 -> String
showsPrec :: Int -> ExportJournalToS3 -> ShowS
$cshowsPrec :: Int -> ExportJournalToS3 -> ShowS
Prelude.Show, (forall x. ExportJournalToS3 -> Rep ExportJournalToS3 x)
-> (forall x. Rep ExportJournalToS3 x -> ExportJournalToS3)
-> Generic ExportJournalToS3
forall x. Rep ExportJournalToS3 x -> ExportJournalToS3
forall x. ExportJournalToS3 -> Rep ExportJournalToS3 x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ExportJournalToS3 x -> ExportJournalToS3
$cfrom :: forall x. ExportJournalToS3 -> Rep ExportJournalToS3 x
Prelude.Generic)
newExportJournalToS3 ::
Prelude.Text ->
Prelude.UTCTime ->
Prelude.UTCTime ->
S3ExportConfiguration ->
Prelude.Text ->
ExportJournalToS3
newExportJournalToS3 :: Text
-> UTCTime
-> UTCTime
-> S3ExportConfiguration
-> Text
-> ExportJournalToS3
newExportJournalToS3
Text
pName_
UTCTime
pInclusiveStartTime_
UTCTime
pExclusiveEndTime_
S3ExportConfiguration
pS3ExportConfiguration_
Text
pRoleArn_ =
ExportJournalToS3' :: Text
-> POSIX
-> POSIX
-> S3ExportConfiguration
-> Text
-> ExportJournalToS3
ExportJournalToS3'
{ $sel:name:ExportJournalToS3' :: Text
name = Text
pName_,
$sel:inclusiveStartTime:ExportJournalToS3' :: POSIX
inclusiveStartTime =
Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pInclusiveStartTime_,
$sel:exclusiveEndTime:ExportJournalToS3' :: POSIX
exclusiveEndTime =
Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pExclusiveEndTime_,
$sel:s3ExportConfiguration:ExportJournalToS3' :: S3ExportConfiguration
s3ExportConfiguration = S3ExportConfiguration
pS3ExportConfiguration_,
$sel:roleArn:ExportJournalToS3' :: Text
roleArn = Text
pRoleArn_
}
exportJournalToS3_name :: Lens.Lens' ExportJournalToS3 Prelude.Text
exportJournalToS3_name :: (Text -> f Text) -> ExportJournalToS3 -> f ExportJournalToS3
exportJournalToS3_name = (ExportJournalToS3 -> Text)
-> (ExportJournalToS3 -> Text -> ExportJournalToS3)
-> Lens ExportJournalToS3 ExportJournalToS3 Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportJournalToS3' {Text
name :: Text
$sel:name:ExportJournalToS3' :: ExportJournalToS3 -> Text
name} -> Text
name) (\s :: ExportJournalToS3
s@ExportJournalToS3' {} Text
a -> ExportJournalToS3
s {$sel:name:ExportJournalToS3' :: Text
name = Text
a} :: ExportJournalToS3)
exportJournalToS3_inclusiveStartTime :: Lens.Lens' ExportJournalToS3 Prelude.UTCTime
exportJournalToS3_inclusiveStartTime :: (UTCTime -> f UTCTime) -> ExportJournalToS3 -> f ExportJournalToS3
exportJournalToS3_inclusiveStartTime = (ExportJournalToS3 -> POSIX)
-> (ExportJournalToS3 -> POSIX -> ExportJournalToS3)
-> Lens ExportJournalToS3 ExportJournalToS3 POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportJournalToS3' {POSIX
inclusiveStartTime :: POSIX
$sel:inclusiveStartTime:ExportJournalToS3' :: ExportJournalToS3 -> POSIX
inclusiveStartTime} -> POSIX
inclusiveStartTime) (\s :: ExportJournalToS3
s@ExportJournalToS3' {} POSIX
a -> ExportJournalToS3
s {$sel:inclusiveStartTime:ExportJournalToS3' :: POSIX
inclusiveStartTime = POSIX
a} :: ExportJournalToS3) ((POSIX -> f POSIX) -> ExportJournalToS3 -> f ExportJournalToS3)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ExportJournalToS3
-> f ExportJournalToS3
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
exportJournalToS3_exclusiveEndTime :: Lens.Lens' ExportJournalToS3 Prelude.UTCTime
exportJournalToS3_exclusiveEndTime :: (UTCTime -> f UTCTime) -> ExportJournalToS3 -> f ExportJournalToS3
exportJournalToS3_exclusiveEndTime = (ExportJournalToS3 -> POSIX)
-> (ExportJournalToS3 -> POSIX -> ExportJournalToS3)
-> Lens ExportJournalToS3 ExportJournalToS3 POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportJournalToS3' {POSIX
exclusiveEndTime :: POSIX
$sel:exclusiveEndTime:ExportJournalToS3' :: ExportJournalToS3 -> POSIX
exclusiveEndTime} -> POSIX
exclusiveEndTime) (\s :: ExportJournalToS3
s@ExportJournalToS3' {} POSIX
a -> ExportJournalToS3
s {$sel:exclusiveEndTime:ExportJournalToS3' :: POSIX
exclusiveEndTime = POSIX
a} :: ExportJournalToS3) ((POSIX -> f POSIX) -> ExportJournalToS3 -> f ExportJournalToS3)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ExportJournalToS3
-> f ExportJournalToS3
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
exportJournalToS3_s3ExportConfiguration :: Lens.Lens' ExportJournalToS3 S3ExportConfiguration
exportJournalToS3_s3ExportConfiguration :: (S3ExportConfiguration -> f S3ExportConfiguration)
-> ExportJournalToS3 -> f ExportJournalToS3
exportJournalToS3_s3ExportConfiguration = (ExportJournalToS3 -> S3ExportConfiguration)
-> (ExportJournalToS3
-> S3ExportConfiguration -> ExportJournalToS3)
-> Lens
ExportJournalToS3
ExportJournalToS3
S3ExportConfiguration
S3ExportConfiguration
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportJournalToS3' {S3ExportConfiguration
s3ExportConfiguration :: S3ExportConfiguration
$sel:s3ExportConfiguration:ExportJournalToS3' :: ExportJournalToS3 -> S3ExportConfiguration
s3ExportConfiguration} -> S3ExportConfiguration
s3ExportConfiguration) (\s :: ExportJournalToS3
s@ExportJournalToS3' {} S3ExportConfiguration
a -> ExportJournalToS3
s {$sel:s3ExportConfiguration:ExportJournalToS3' :: S3ExportConfiguration
s3ExportConfiguration = S3ExportConfiguration
a} :: ExportJournalToS3)
exportJournalToS3_roleArn :: Lens.Lens' ExportJournalToS3 Prelude.Text
exportJournalToS3_roleArn :: (Text -> f Text) -> ExportJournalToS3 -> f ExportJournalToS3
exportJournalToS3_roleArn = (ExportJournalToS3 -> Text)
-> (ExportJournalToS3 -> Text -> ExportJournalToS3)
-> Lens ExportJournalToS3 ExportJournalToS3 Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportJournalToS3' {Text
roleArn :: Text
$sel:roleArn:ExportJournalToS3' :: ExportJournalToS3 -> Text
roleArn} -> Text
roleArn) (\s :: ExportJournalToS3
s@ExportJournalToS3' {} Text
a -> ExportJournalToS3
s {$sel:roleArn:ExportJournalToS3' :: Text
roleArn = Text
a} :: ExportJournalToS3)
instance Core.AWSRequest ExportJournalToS3 where
type
AWSResponse ExportJournalToS3 =
ExportJournalToS3Response
request :: ExportJournalToS3 -> Request ExportJournalToS3
request = Service -> ExportJournalToS3 -> Request ExportJournalToS3
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ExportJournalToS3
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ExportJournalToS3)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ExportJournalToS3))
-> Logger
-> Service
-> Proxy ExportJournalToS3
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ExportJournalToS3)))
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 ->
Int -> Text -> ExportJournalToS3Response
ExportJournalToS3Response'
(Int -> Text -> ExportJournalToS3Response)
-> Either String Int
-> Either String (Text -> ExportJournalToS3Response)
forall (f :: * -> *) a b. Functor 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))
Either String (Text -> ExportJournalToS3Response)
-> Either String Text -> Either String ExportJournalToS3Response
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ExportId")
)
instance Prelude.Hashable ExportJournalToS3
instance Prelude.NFData ExportJournalToS3
instance Core.ToHeaders ExportJournalToS3 where
toHeaders :: ExportJournalToS3 -> ResponseHeaders
toHeaders =
ResponseHeaders -> ExportJournalToS3 -> 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 ExportJournalToS3 where
toJSON :: ExportJournalToS3 -> Value
toJSON ExportJournalToS3' {Text
POSIX
S3ExportConfiguration
roleArn :: Text
s3ExportConfiguration :: S3ExportConfiguration
exclusiveEndTime :: POSIX
inclusiveStartTime :: POSIX
name :: Text
$sel:roleArn:ExportJournalToS3' :: ExportJournalToS3 -> Text
$sel:s3ExportConfiguration:ExportJournalToS3' :: ExportJournalToS3 -> S3ExportConfiguration
$sel:exclusiveEndTime:ExportJournalToS3' :: ExportJournalToS3 -> POSIX
$sel:inclusiveStartTime:ExportJournalToS3' :: ExportJournalToS3 -> POSIX
$sel:name:ExportJournalToS3' :: ExportJournalToS3 -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"InclusiveStartTime" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= POSIX
inclusiveStartTime),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"ExclusiveEndTime" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= POSIX
exclusiveEndTime),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"S3ExportConfiguration"
Text -> S3ExportConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= S3ExportConfiguration
s3ExportConfiguration
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"RoleArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
roleArn)
]
)
instance Core.ToPath ExportJournalToS3 where
toPath :: ExportJournalToS3 -> ByteString
toPath ExportJournalToS3' {Text
POSIX
S3ExportConfiguration
roleArn :: Text
s3ExportConfiguration :: S3ExportConfiguration
exclusiveEndTime :: POSIX
inclusiveStartTime :: POSIX
name :: Text
$sel:roleArn:ExportJournalToS3' :: ExportJournalToS3 -> Text
$sel:s3ExportConfiguration:ExportJournalToS3' :: ExportJournalToS3 -> S3ExportConfiguration
$sel:exclusiveEndTime:ExportJournalToS3' :: ExportJournalToS3 -> POSIX
$sel:inclusiveStartTime:ExportJournalToS3' :: ExportJournalToS3 -> POSIX
$sel:name:ExportJournalToS3' :: ExportJournalToS3 -> 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, ByteString
"/journal-s3-exports"]
instance Core.ToQuery ExportJournalToS3 where
toQuery :: ExportJournalToS3 -> QueryString
toQuery = QueryString -> ExportJournalToS3 -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ExportJournalToS3Response = ExportJournalToS3Response'
{
ExportJournalToS3Response -> Int
httpStatus :: Prelude.Int,
ExportJournalToS3Response -> Text
exportId :: Prelude.Text
}
deriving (ExportJournalToS3Response -> ExportJournalToS3Response -> Bool
(ExportJournalToS3Response -> ExportJournalToS3Response -> Bool)
-> (ExportJournalToS3Response -> ExportJournalToS3Response -> Bool)
-> Eq ExportJournalToS3Response
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExportJournalToS3Response -> ExportJournalToS3Response -> Bool
$c/= :: ExportJournalToS3Response -> ExportJournalToS3Response -> Bool
== :: ExportJournalToS3Response -> ExportJournalToS3Response -> Bool
$c== :: ExportJournalToS3Response -> ExportJournalToS3Response -> Bool
Prelude.Eq, ReadPrec [ExportJournalToS3Response]
ReadPrec ExportJournalToS3Response
Int -> ReadS ExportJournalToS3Response
ReadS [ExportJournalToS3Response]
(Int -> ReadS ExportJournalToS3Response)
-> ReadS [ExportJournalToS3Response]
-> ReadPrec ExportJournalToS3Response
-> ReadPrec [ExportJournalToS3Response]
-> Read ExportJournalToS3Response
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExportJournalToS3Response]
$creadListPrec :: ReadPrec [ExportJournalToS3Response]
readPrec :: ReadPrec ExportJournalToS3Response
$creadPrec :: ReadPrec ExportJournalToS3Response
readList :: ReadS [ExportJournalToS3Response]
$creadList :: ReadS [ExportJournalToS3Response]
readsPrec :: Int -> ReadS ExportJournalToS3Response
$creadsPrec :: Int -> ReadS ExportJournalToS3Response
Prelude.Read, Int -> ExportJournalToS3Response -> ShowS
[ExportJournalToS3Response] -> ShowS
ExportJournalToS3Response -> String
(Int -> ExportJournalToS3Response -> ShowS)
-> (ExportJournalToS3Response -> String)
-> ([ExportJournalToS3Response] -> ShowS)
-> Show ExportJournalToS3Response
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExportJournalToS3Response] -> ShowS
$cshowList :: [ExportJournalToS3Response] -> ShowS
show :: ExportJournalToS3Response -> String
$cshow :: ExportJournalToS3Response -> String
showsPrec :: Int -> ExportJournalToS3Response -> ShowS
$cshowsPrec :: Int -> ExportJournalToS3Response -> ShowS
Prelude.Show, (forall x.
ExportJournalToS3Response -> Rep ExportJournalToS3Response x)
-> (forall x.
Rep ExportJournalToS3Response x -> ExportJournalToS3Response)
-> Generic ExportJournalToS3Response
forall x.
Rep ExportJournalToS3Response x -> ExportJournalToS3Response
forall x.
ExportJournalToS3Response -> Rep ExportJournalToS3Response x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ExportJournalToS3Response x -> ExportJournalToS3Response
$cfrom :: forall x.
ExportJournalToS3Response -> Rep ExportJournalToS3Response x
Prelude.Generic)
newExportJournalToS3Response ::
Prelude.Int ->
Prelude.Text ->
ExportJournalToS3Response
newExportJournalToS3Response :: Int -> Text -> ExportJournalToS3Response
newExportJournalToS3Response Int
pHttpStatus_ Text
pExportId_ =
ExportJournalToS3Response' :: Int -> Text -> ExportJournalToS3Response
ExportJournalToS3Response'
{ $sel:httpStatus:ExportJournalToS3Response' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:exportId:ExportJournalToS3Response' :: Text
exportId = Text
pExportId_
}
exportJournalToS3Response_httpStatus :: Lens.Lens' ExportJournalToS3Response Prelude.Int
exportJournalToS3Response_httpStatus :: (Int -> f Int)
-> ExportJournalToS3Response -> f ExportJournalToS3Response
exportJournalToS3Response_httpStatus = (ExportJournalToS3Response -> Int)
-> (ExportJournalToS3Response -> Int -> ExportJournalToS3Response)
-> Lens ExportJournalToS3Response ExportJournalToS3Response Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportJournalToS3Response' {Int
httpStatus :: Int
$sel:httpStatus:ExportJournalToS3Response' :: ExportJournalToS3Response -> Int
httpStatus} -> Int
httpStatus) (\s :: ExportJournalToS3Response
s@ExportJournalToS3Response' {} Int
a -> ExportJournalToS3Response
s {$sel:httpStatus:ExportJournalToS3Response' :: Int
httpStatus = Int
a} :: ExportJournalToS3Response)
exportJournalToS3Response_exportId :: Lens.Lens' ExportJournalToS3Response Prelude.Text
exportJournalToS3Response_exportId :: (Text -> f Text)
-> ExportJournalToS3Response -> f ExportJournalToS3Response
exportJournalToS3Response_exportId = (ExportJournalToS3Response -> Text)
-> (ExportJournalToS3Response -> Text -> ExportJournalToS3Response)
-> Lens
ExportJournalToS3Response ExportJournalToS3Response Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportJournalToS3Response' {Text
exportId :: Text
$sel:exportId:ExportJournalToS3Response' :: ExportJournalToS3Response -> Text
exportId} -> Text
exportId) (\s :: ExportJournalToS3Response
s@ExportJournalToS3Response' {} Text
a -> ExportJournalToS3Response
s {$sel:exportId:ExportJournalToS3Response' :: Text
exportId = Text
a} :: ExportJournalToS3Response)
instance Prelude.NFData ExportJournalToS3Response