libZSservicesZSamazonka-qldbZSamazonka-qldb
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.QLDB.ExportJournalToS3

Description

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

Creating a Request

data ExportJournalToS3 Source #

See: newExportJournalToS3 smart constructor.

Constructors

ExportJournalToS3' 

Fields

  • name :: Text

    The name of the ledger.

  • inclusiveStartTime :: POSIX

    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.

  • exclusiveEndTime :: POSIX

    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.

  • s3ExportConfiguration :: S3ExportConfiguration

    The configuration settings of the Amazon S3 bucket destination for your export request.

  • roleArn :: Text

    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.

Instances

Instances details
Eq ExportJournalToS3 Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

Read ExportJournalToS3 Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

Show ExportJournalToS3 Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

Generic ExportJournalToS3 Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

Associated Types

type Rep ExportJournalToS3 :: Type -> Type #

NFData ExportJournalToS3 Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

Methods

rnf :: ExportJournalToS3 -> () #

Hashable ExportJournalToS3 Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

ToJSON ExportJournalToS3 Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

AWSRequest ExportJournalToS3 Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

Associated Types

type AWSResponse ExportJournalToS3 #

ToHeaders ExportJournalToS3 Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

ToPath ExportJournalToS3 Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

ToQuery ExportJournalToS3 Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

type Rep ExportJournalToS3 Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

type Rep ExportJournalToS3 = D1 ('MetaData "ExportJournalToS3" "Amazonka.QLDB.ExportJournalToS3" "libZSservicesZSamazonka-qldbZSamazonka-qldb" 'False) (C1 ('MetaCons "ExportJournalToS3'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "inclusiveStartTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX)) :*: (S1 ('MetaSel ('Just "exclusiveEndTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX) :*: (S1 ('MetaSel ('Just "s3ExportConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 S3ExportConfiguration) :*: S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse ExportJournalToS3 Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

newExportJournalToS3 Source #

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_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.

Constructors

ExportJournalToS3Response' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • exportId :: Text

    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.

Instances

Instances details
Eq ExportJournalToS3Response Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

Read ExportJournalToS3Response Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

Show ExportJournalToS3Response Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

Generic ExportJournalToS3Response Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

Associated Types

type Rep ExportJournalToS3Response :: Type -> Type #

NFData ExportJournalToS3Response Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

type Rep ExportJournalToS3Response Source # 
Instance details

Defined in Amazonka.QLDB.ExportJournalToS3

type Rep ExportJournalToS3Response = D1 ('MetaData "ExportJournalToS3Response" "Amazonka.QLDB.ExportJournalToS3" "libZSservicesZSamazonka-qldbZSamazonka-qldb" 'False) (C1 ('MetaCons "ExportJournalToS3Response'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "exportId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newExportJournalToS3Response Source #

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_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.