Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Exports journal contents within a date and time range from a ledger into a specified Amazon Simple Storage Service (Amazon S3) bucket. The data is written as files in Amazon Ion format.
If the ledger with the given Name
doesn't exist, then throws
ResourceNotFoundException
.
If the ledger with the given Name
is in CREATING
status, then throws
ResourcePreconditionNotMetException
.
You can initiate up to two concurrent journal export requests for each
ledger. Beyond this limit, journal export requests throw
LimitExceededException
.
Synopsis
- data ExportJournalToS3 = ExportJournalToS3' {}
- newExportJournalToS3 :: Text -> UTCTime -> UTCTime -> S3ExportConfiguration -> Text -> ExportJournalToS3
- exportJournalToS3_name :: Lens' ExportJournalToS3 Text
- exportJournalToS3_inclusiveStartTime :: Lens' ExportJournalToS3 UTCTime
- exportJournalToS3_exclusiveEndTime :: Lens' ExportJournalToS3 UTCTime
- exportJournalToS3_s3ExportConfiguration :: Lens' ExportJournalToS3 S3ExportConfiguration
- exportJournalToS3_roleArn :: Lens' ExportJournalToS3 Text
- data ExportJournalToS3Response = ExportJournalToS3Response' {
- httpStatus :: Int
- exportId :: Text
- newExportJournalToS3Response :: Int -> Text -> ExportJournalToS3Response
- exportJournalToS3Response_httpStatus :: Lens' ExportJournalToS3Response Int
- exportJournalToS3Response_exportId :: Lens' ExportJournalToS3Response Text
Creating a Request
data ExportJournalToS3 Source #
See: newExportJournalToS3
smart constructor.
ExportJournalToS3' | |
|
Instances
:: Text | |
-> UTCTime | |
-> UTCTime | |
-> S3ExportConfiguration | |
-> Text | |
-> ExportJournalToS3 |
Create a value of ExportJournalToS3
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:name:ExportJournalToS3'
, exportJournalToS3_name
- The name of the ledger.
$sel:inclusiveStartTime:ExportJournalToS3'
, exportJournalToS3_inclusiveStartTime
- The inclusive start date and time for the range of journal contents to
export.
The InclusiveStartTime
must be in ISO 8601
date and time format and
in Universal Coordinated Time (UTC). For example:
2019-06-13T21:36:34Z
.
The InclusiveStartTime
must be before ExclusiveEndTime
.
If you provide an InclusiveStartTime
that is before the ledger's
CreationDateTime
, Amazon QLDB defaults it to the ledger's
CreationDateTime
.
$sel:exclusiveEndTime:ExportJournalToS3'
, exportJournalToS3_exclusiveEndTime
- The exclusive end date and time for the range of journal contents to
export.
The ExclusiveEndTime
must be in ISO 8601
date and time format and in
Universal Coordinated Time (UTC). For example: 2019-06-13T21:36:34Z
.
The ExclusiveEndTime
must be less than or equal to the current UTC
date and time.
$sel:s3ExportConfiguration:ExportJournalToS3'
, exportJournalToS3_s3ExportConfiguration
- The configuration settings of the Amazon S3 bucket destination for your
export request.
$sel:roleArn:ExportJournalToS3'
, exportJournalToS3_roleArn
- The Amazon Resource Name (ARN) of the IAM role that grants QLDB
permissions for a journal export job to do the following:
- Write objects into your Amazon Simple Storage Service (Amazon S3) bucket.
- (Optional) Use your customer master key (CMK) in Key Management Service (KMS) for server-side encryption of your exported data.
Request Lenses
exportJournalToS3_name :: Lens' ExportJournalToS3 Text Source #
The name of the ledger.
exportJournalToS3_inclusiveStartTime :: Lens' ExportJournalToS3 UTCTime Source #
The inclusive start date and time for the range of journal contents to export.
The InclusiveStartTime
must be in ISO 8601
date and time format and
in Universal Coordinated Time (UTC). For example:
2019-06-13T21:36:34Z
.
The InclusiveStartTime
must be before ExclusiveEndTime
.
If you provide an InclusiveStartTime
that is before the ledger's
CreationDateTime
, Amazon QLDB defaults it to the ledger's
CreationDateTime
.
exportJournalToS3_exclusiveEndTime :: Lens' ExportJournalToS3 UTCTime Source #
The exclusive end date and time for the range of journal contents to export.
The ExclusiveEndTime
must be in ISO 8601
date and time format and in
Universal Coordinated Time (UTC). For example: 2019-06-13T21:36:34Z
.
The ExclusiveEndTime
must be less than or equal to the current UTC
date and time.
exportJournalToS3_s3ExportConfiguration :: Lens' ExportJournalToS3 S3ExportConfiguration Source #
The configuration settings of the Amazon S3 bucket destination for your export request.
exportJournalToS3_roleArn :: Lens' ExportJournalToS3 Text Source #
The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal export job to do the following:
- Write objects into your Amazon Simple Storage Service (Amazon S3) bucket.
- (Optional) Use your customer master key (CMK) in Key Management Service (KMS) for server-side encryption of your exported data.
Destructuring the Response
data ExportJournalToS3Response Source #
See: newExportJournalToS3Response
smart constructor.
ExportJournalToS3Response' | |
|
Instances
newExportJournalToS3Response Source #
:: Int | |
-> Text | |
-> ExportJournalToS3Response |
Create a value of ExportJournalToS3Response
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:ExportJournalToS3Response'
, exportJournalToS3Response_httpStatus
- The response's http status code.
$sel:exportId:ExportJournalToS3Response'
, exportJournalToS3Response_exportId
- The UUID (represented in Base62-encoded text) that QLDB assigns to each
journal export job.
To describe your export request and check the status of the job, you can
use ExportId
to call DescribeJournalS3Export
.
Response Lenses
exportJournalToS3Response_httpStatus :: Lens' ExportJournalToS3Response Int Source #
The response's http status code.
exportJournalToS3Response_exportId :: Lens' ExportJournalToS3Response Text Source #
The UUID (represented in Base62-encoded text) that QLDB assigns to each journal export job.
To describe your export request and check the status of the job, you can
use ExportId
to call DescribeJournalS3Export
.