2019/09/09 - Amazon QLDB - 15 new api methods
Changes (New Service) Amazon QLDB is a fully managed ledger database that provides a transparent, immutable, and cryptographically verifiable transaction log owned by a central trusted authority. Amazon QLDB is a new class of serverless database that eliminates the need to engage in the complex development effort of building your own ledger-like applications and it automatically scales to support the demands of your application. Introduces Amazon QLDB API operations needed for managing Amazon QLDB ledgers. This includes the ability to manage Amazon QLDB ledgers, cryptographically verify documents, and export the journal in a ledger.
Removes one or more tags from a specified Amazon QLDB resource. You can specify up to 50 tag keys to remove.
See also: AWS API Documentation
Request Syntax
client.untag_resource( ResourceArn='string', TagKeys=[ 'string', ] )
string
[REQUIRED]
The Amazon Resource Name (ARN) from which you want to remove the tags. For example:
arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger
list
[REQUIRED]
The list of tag keys that you want to remove.
(string) --
dict
Response Syntax
{}
Response Structure
(dict) --
Returns the digest of a ledger at the latest committed block in the journal. The response includes a 256-bit hash value and a block address.
See also: AWS API Documentation
Request Syntax
client.get_digest( Name='string' )
string
[REQUIRED]
The name of the ledger.
dict
Response Syntax
{ 'Digest': b'bytes', 'DigestTipAddress': { 'IonText': 'string' } }
Response Structure
(dict) --
Digest (bytes) --
The 256-bit hash value representing the digest returned by a GetDigest request.
DigestTipAddress (dict) --
The latest block location covered by the digest that you requested. An address is an Amazon Ion structure that has two fields: strandId and sequenceNo .
IonText (string) --
An Amazon Ion plaintext value contained in a ValueHolder structure.
Deletes a ledger and all of its contents. This action is irreversible.
If deletion protection is enabled, you must first disable it before you can delete the ledger using the QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger operation to set the flag to false . The QLDB console disables deletion protection for you when you use it to delete a ledger.
See also: AWS API Documentation
Request Syntax
client.delete_ledger( Name='string' )
string
[REQUIRED]
The name of the ledger that you want to delete.
None
Returns an array of ledger summaries that are associated with the current AWS account and Region.
This action returns a maximum of 100 items and is paginated so that you can retrieve all the items by calling ListLedgers multiple times.
See also: AWS API Documentation
Request Syntax
client.list_ledgers( MaxResults=123, NextToken='string' )
integer
The maximum number of results to return in a single ListLedgers request. (The actual number of results returned might be fewer.)
string
A pagination token, indicating that you want to retrieve the next page of results. If you received a value for NextToken in the response from a previous ListLedgers call, then you should use that value as input here.
dict
Response Syntax
{ 'Ledgers': [ { 'Name': 'string', 'State': 'CREATING'|'ACTIVE'|'DELETING'|'DELETED', 'CreationDateTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' }
Response Structure
(dict) --
Ledgers (list) --
The array of ledger summaries that are associated with the current AWS account and Region.
(dict) --
Information about a ledger, including its name, state, and when it was created.
Name (string) --
The name of the ledger.
State (string) --
The current status of the ledger.
CreationDateTime (datetime) --
The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)
NextToken (string) --
A pagination token, indicating whether there are more results available:
If NextToken is empty, then the last page of results has been processed and there are no more results to be retrieved.
If NextToken is not empty, then there are more results available. To retrieve the next page of results, use the value of NextToken in a subsequent ListLedgers call.
Returns an array of journal export job descriptions for a specified ledger.
This action returns a maximum of MaxResults items, and is paginated so that you can retrieve all the items by calling ListJournalS3ExportsForLedger multiple times.
See also: AWS API Documentation
Request Syntax
client.list_journal_s3_exports_for_ledger( Name='string', MaxResults=123, NextToken='string' )
string
[REQUIRED]
The name of the ledger.
integer
The maximum number of results to return in a single ListJournalS3ExportsForLedger request. (The actual number of results returned might be fewer.)
string
A pagination token, indicating that you want to retrieve the next page of results. If you received a value for NextToken in the response from a previous ListJournalS3ExportsForLedger call, then you should use that value as input here.
dict
Response Syntax
{ 'JournalS3Exports': [ { 'LedgerName': 'string', 'ExportId': 'string', 'ExportCreationTime': datetime(2015, 1, 1), 'Status': 'IN_PROGRESS'|'COMPLETED'|'CANCELLED', 'InclusiveStartTime': datetime(2015, 1, 1), 'ExclusiveEndTime': datetime(2015, 1, 1), 'S3ExportConfiguration': { 'Bucket': 'string', 'Prefix': 'string', 'EncryptionConfiguration': { 'ObjectEncryptionType': 'SSE_KMS'|'SSE_S3'|'NO_ENCRYPTION', 'KmsKeyArn': 'string' } }, 'RoleArn': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) --
JournalS3Exports (list) --
The array of journal export job descriptions that are associated with the specified ledger.
(dict) --
The information about a journal export job, including the ledger name, export ID, when it was created, current status, and its start and end time export parameters.
LedgerName (string) --
The name of the ledger.
ExportId (string) --
The unique ID of the journal export job.
ExportCreationTime (datetime) --
The date and time, in epoch time format, when the export job was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)
Status (string) --
The current state of the journal export job.
InclusiveStartTime (datetime) --
The inclusive start date and time for the range of journal contents that are specified in the original export request.
ExclusiveEndTime (datetime) --
The exclusive end date and time for the range of journal contents that are specified in the original export request.
S3ExportConfiguration (dict) --
The Amazon Simple Storage Service (Amazon S3) bucket location in which a journal export job writes the journal contents.
Bucket (string) --
The Amazon S3 bucket name in which a journal export job writes the journal contents.
The bucket name must comply with the Amazon S3 bucket naming conventions. For more information, see Bucket Restrictions and Limitations in the Amazon S3 Developer Guide .
Prefix (string) --
The prefix for the Amazon S3 bucket in which a journal export job writes the journal contents.
The prefix must comply with Amazon S3 key naming rules and restrictions. For more information, see Object Key and Metadata in the Amazon S3 Developer Guide .
The following are examples of valid Prefix values:
JournalExports-ForMyLedger/Testing/
JournalExports
My:Tests/
EncryptionConfiguration (dict) --
The encryption settings that are used by a journal export job to write data in an Amazon S3 bucket.
ObjectEncryptionType (string) --
The Amazon S3 object encryption type.
To learn more about server-side encryption options in Amazon S3, see Protecting Data Using Server-Side Encryption in the Amazon S3 Developer Guide .
KmsKeyArn (string) --
The Amazon Resource Name (ARN) for a customer master key (CMK) in AWS Key Management Service (AWS KMS).
You must provide a KmsKeyArn if you specify SSE_KMS as the ObjectEncryptionType .
KmsKeyArn is not required if you specify SSE_S3 as the ObjectEncryptionType .
RoleArn (string) --
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 AWS Key Management Service (AWS KMS) for server-side encryption of your exported data.
NextToken (string) --
If NextToken is empty, then the last page of results has been processed and there are no more results to be retrieved.
If NextToken is not empty, then there are more results available. To retrieve the next page of results, use the value of NextToken in a subsequent ListJournalS3ExportsForLedger call.
Creates a new ledger in your AWS account.
See also: AWS API Documentation
Request Syntax
client.create_ledger( Name='string', Tags={ 'string': 'string' }, PermissionsMode='ALLOW_ALL', DeletionProtection=True|False )
string
[REQUIRED]
The name of the ledger that you want to create. The name must be unique among all of your ledgers in the current AWS Region.
dict
The key-value pairs to add as tags to the ledger that you want to create. Tag keys are case sensitive. Tag values are case sensitive and can be null.
(string) --
(string) --
string
[REQUIRED]
The permissions mode to assign to the ledger that you want to create.
boolean
The flag that prevents a ledger from being deleted by any user. If not provided on ledger creation, this feature is enabled (true ) by default.
If deletion protection is enabled, you must first disable it before you can delete the ledger using the QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger operation to set the flag to false . The QLDB console disables deletion protection for you when you use it to delete a ledger.
dict
Response Syntax
{ 'Name': 'string', 'Arn': 'string', 'State': 'CREATING'|'ACTIVE'|'DELETING'|'DELETED', 'CreationDateTime': datetime(2015, 1, 1), 'DeletionProtection': True|False }
Response Structure
(dict) --
Name (string) --
The name of the ledger.
Arn (string) --
The Amazon Resource Name (ARN) for the ledger.
State (string) --
The current status of the ledger.
CreationDateTime (datetime) --
The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)
DeletionProtection (boolean) --
The flag that prevents a ledger from being deleted by any user. If not provided on ledger creation, this feature is enabled (true ) by default.
If deletion protection is enabled, you must first disable it before you can delete the ledger using the QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger operation to set the flag to false . The QLDB console disables deletion protection for you when you use it to delete a ledger.
Returns a journal block object at a specified address in a ledger. Also returns a proof of the specified block for verification if DigestTipAddress is provided.
If the specified ledger doesn't exist or is in DELETING status, then throws ResourceNotFoundException .
If the specified ledger is in CREATING status, then throws ResourcePreconditionNotMetException .
If no block exists with the specified address, then throws InvalidParameterException .
See also: AWS API Documentation
Request Syntax
client.get_block( Name='string', BlockAddress={ 'IonText': 'string' }, DigestTipAddress={ 'IonText': 'string' } )
string
[REQUIRED]
The name of the ledger.
dict
[REQUIRED]
The location of the block that you want to request. An address is an Amazon Ion structure that has two fields: strandId and sequenceNo .
For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:14}
IonText (string) --
An Amazon Ion plaintext value contained in a ValueHolder structure.
dict
The latest block location covered by the digest for which to request a proof. An address is an Amazon Ion structure that has two fields: strandId and sequenceNo .
For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:49}
IonText (string) --
An Amazon Ion plaintext value contained in a ValueHolder structure.
dict
Response Syntax
{ 'Block': { 'IonText': 'string' }, 'Proof': { 'IonText': 'string' } }
Response Structure
(dict) --
Block (dict) --
The block data object in Amazon Ion format.
IonText (string) --
An Amazon Ion plaintext value contained in a ValueHolder structure.
Proof (dict) --
The proof object in Amazon Ion format returned by a GetBlock request. A proof contains the list of hash values required to recalculate the specified digest using a Merkle tree, starting with the specified block.
IonText (string) --
An Amazon Ion plaintext value contained in a ValueHolder structure.
Returns an array of journal export job descriptions for all ledgers that are associated with the current AWS account and Region.
This action returns a maximum of MaxResults items, and is paginated so that you can retrieve all the items by calling ListJournalS3Exports multiple times.
See also: AWS API Documentation
Request Syntax
client.list_journal_s3_exports( MaxResults=123, NextToken='string' )
integer
The maximum number of results to return in a single ListJournalS3Exports request. (The actual number of results returned might be fewer.)
string
A pagination token, indicating that you want to retrieve the next page of results. If you received a value for NextToken in the response from a previous ListJournalS3Exports call, then you should use that value as input here.
dict
Response Syntax
{ 'JournalS3Exports': [ { 'LedgerName': 'string', 'ExportId': 'string', 'ExportCreationTime': datetime(2015, 1, 1), 'Status': 'IN_PROGRESS'|'COMPLETED'|'CANCELLED', 'InclusiveStartTime': datetime(2015, 1, 1), 'ExclusiveEndTime': datetime(2015, 1, 1), 'S3ExportConfiguration': { 'Bucket': 'string', 'Prefix': 'string', 'EncryptionConfiguration': { 'ObjectEncryptionType': 'SSE_KMS'|'SSE_S3'|'NO_ENCRYPTION', 'KmsKeyArn': 'string' } }, 'RoleArn': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) --
JournalS3Exports (list) --
The array of journal export job descriptions for all ledgers that are associated with the current AWS account and Region.
(dict) --
The information about a journal export job, including the ledger name, export ID, when it was created, current status, and its start and end time export parameters.
LedgerName (string) --
The name of the ledger.
ExportId (string) --
The unique ID of the journal export job.
ExportCreationTime (datetime) --
The date and time, in epoch time format, when the export job was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)
Status (string) --
The current state of the journal export job.
InclusiveStartTime (datetime) --
The inclusive start date and time for the range of journal contents that are specified in the original export request.
ExclusiveEndTime (datetime) --
The exclusive end date and time for the range of journal contents that are specified in the original export request.
S3ExportConfiguration (dict) --
The Amazon Simple Storage Service (Amazon S3) bucket location in which a journal export job writes the journal contents.
Bucket (string) --
The Amazon S3 bucket name in which a journal export job writes the journal contents.
The bucket name must comply with the Amazon S3 bucket naming conventions. For more information, see Bucket Restrictions and Limitations in the Amazon S3 Developer Guide .
Prefix (string) --
The prefix for the Amazon S3 bucket in which a journal export job writes the journal contents.
The prefix must comply with Amazon S3 key naming rules and restrictions. For more information, see Object Key and Metadata in the Amazon S3 Developer Guide .
The following are examples of valid Prefix values:
JournalExports-ForMyLedger/Testing/
JournalExports
My:Tests/
EncryptionConfiguration (dict) --
The encryption settings that are used by a journal export job to write data in an Amazon S3 bucket.
ObjectEncryptionType (string) --
The Amazon S3 object encryption type.
To learn more about server-side encryption options in Amazon S3, see Protecting Data Using Server-Side Encryption in the Amazon S3 Developer Guide .
KmsKeyArn (string) --
The Amazon Resource Name (ARN) for a customer master key (CMK) in AWS Key Management Service (AWS KMS).
You must provide a KmsKeyArn if you specify SSE_KMS as the ObjectEncryptionType .
KmsKeyArn is not required if you specify SSE_S3 as the ObjectEncryptionType .
RoleArn (string) --
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 AWS Key Management Service (AWS KMS) for server-side encryption of your exported data.
NextToken (string) --
If NextToken is empty, then the last page of results has been processed and there are no more results to be retrieved.
If NextToken is not empty, then there are more results available. To retrieve the next page of results, use the value of NextToken in a subsequent ListJournalS3Exports call.
Adds one or more tags to a specified Amazon QLDB resource.
A resource can have up to 50 tags. If you try to create more than 50 tags for a resource, your request fails and returns an error.
See also: AWS API Documentation
Request Syntax
client.tag_resource( ResourceArn='string', Tags={ 'string': 'string' } )
string
[REQUIRED]
The Amazon Resource Name (ARN) to which you want to add the tags. For example:
arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger
dict
[REQUIRED]
The key-value pairs to add as tags to the specified QLDB resource. Tag keys are case sensitive. If you specify a key that already exists for the resource, your request fails and returns an error. Tag values are case sensitive and can be null.
(string) --
(string) --
dict
Response Syntax
{}
Response Structure
(dict) --
Returns a revision data object for a specified document ID and block address. Also returns a proof of the specified revision for verification if DigestTipAddress is provided.
See also: AWS API Documentation
Request Syntax
client.get_revision( Name='string', BlockAddress={ 'IonText': 'string' }, DocumentId='string', DigestTipAddress={ 'IonText': 'string' } )
string
[REQUIRED]
The name of the ledger.
dict
[REQUIRED]
The block location of the document revision to be verified. An address is an Amazon Ion structure that has two fields: strandId and sequenceNo .
For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:14}
IonText (string) --
An Amazon Ion plaintext value contained in a ValueHolder structure.
string
[REQUIRED]
The unique ID of the document to be verified.
dict
The latest block location covered by the digest for which to request a proof. An address is an Amazon Ion structure that has two fields: strandId and sequenceNo .
For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:49}
IonText (string) --
An Amazon Ion plaintext value contained in a ValueHolder structure.
dict
Response Syntax
{ 'Proof': { 'IonText': 'string' }, 'Revision': { 'IonText': 'string' } }
Response Structure
(dict) --
Proof (dict) --
The proof object in Amazon Ion format returned by a GetRevision request. A proof contains the list of hash values that are required to recalculate the specified digest using a Merkle tree, starting with the specified document revision.
IonText (string) --
An Amazon Ion plaintext value contained in a ValueHolder structure.
Revision (dict) --
The document revision data object in Amazon Ion format.
IonText (string) --
An Amazon Ion plaintext value contained in a ValueHolder structure.
Returns information about a ledger, including its state and when it was created.
See also: AWS API Documentation
Request Syntax
client.describe_ledger( Name='string' )
string
[REQUIRED]
The name of the ledger that you want to describe.
dict
Response Syntax
{ 'Name': 'string', 'Arn': 'string', 'State': 'CREATING'|'ACTIVE'|'DELETING'|'DELETED', 'CreationDateTime': datetime(2015, 1, 1), 'DeletionProtection': True|False }
Response Structure
(dict) --
Name (string) --
The name of the ledger.
Arn (string) --
The Amazon Resource Name (ARN) for the ledger.
State (string) --
The current status of the ledger.
CreationDateTime (datetime) --
The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)
DeletionProtection (boolean) --
The flag that prevents a ledger from being deleted by any user. If not provided on ledger creation, this feature is enabled (true ) by default.
If deletion protection is enabled, you must first disable it before you can delete the ledger using the QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger operation to set the flag to false . The QLDB console disables deletion protection for you when you use it to delete a ledger.
Updates properties on a ledger.
See also: AWS API Documentation
Request Syntax
client.update_ledger( Name='string', DeletionProtection=True|False )
string
[REQUIRED]
The name of the ledger.
boolean
The flag that prevents a ledger from being deleted by any user. If not provided on ledger creation, this feature is enabled (true ) by default.
If deletion protection is enabled, you must first disable it before you can delete the ledger using the QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger operation to set the flag to false . The QLDB console disables deletion protection for you when you use it to delete a ledger.
dict
Response Syntax
{ 'Name': 'string', 'Arn': 'string', 'State': 'CREATING'|'ACTIVE'|'DELETING'|'DELETED', 'CreationDateTime': datetime(2015, 1, 1), 'DeletionProtection': True|False }
Response Structure
(dict) --
Name (string) --
The name of the ledger.
Arn (string) --
The Amazon Resource Name (ARN) for the ledger.
State (string) --
The current status of the ledger.
CreationDateTime (datetime) --
The date and time, in epoch time format, when the ledger was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)
DeletionProtection (boolean) --
The flag that prevents a ledger from being deleted by any user. If not provided on ledger creation, this feature is enabled (true ) by default.
If deletion protection is enabled, you must first disable it before you can delete the ledger using the QLDB API or the AWS Command Line Interface (AWS CLI). You can disable it by calling the UpdateLedger operation to set the flag to false . The QLDB console disables deletion protection for you when you use it to delete a ledger.
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 .
See also: AWS API Documentation
Request Syntax
client.export_journal_to_s3( Name='string', InclusiveStartTime=datetime(2015, 1, 1), ExclusiveEndTime=datetime(2015, 1, 1), S3ExportConfiguration={ 'Bucket': 'string', 'Prefix': 'string', 'EncryptionConfiguration': { 'ObjectEncryptionType': 'SSE_KMS'|'SSE_S3'|'NO_ENCRYPTION', 'KmsKeyArn': 'string' } }, RoleArn='string' )
string
[REQUIRED]
The name of the ledger.
datetime
[REQUIRED]
The inclusive start date and time for the range of journal contents that you want 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 .
datetime
[REQUIRED]
The exclusive end date and time for the range of journal contents that you want 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.
dict
[REQUIRED]
The configuration settings of the Amazon S3 bucket destination for your export request.
Bucket (string) -- [REQUIRED]
The Amazon S3 bucket name in which a journal export job writes the journal contents.
The bucket name must comply with the Amazon S3 bucket naming conventions. For more information, see Bucket Restrictions and Limitations in the Amazon S3 Developer Guide .
Prefix (string) -- [REQUIRED]
The prefix for the Amazon S3 bucket in which a journal export job writes the journal contents.
The prefix must comply with Amazon S3 key naming rules and restrictions. For more information, see Object Key and Metadata in the Amazon S3 Developer Guide .
The following are examples of valid Prefix values:
JournalExports-ForMyLedger/Testing/
JournalExports
My:Tests/
EncryptionConfiguration (dict) -- [REQUIRED]
The encryption settings that are used by a journal export job to write data in an Amazon S3 bucket.
ObjectEncryptionType (string) -- [REQUIRED]
The Amazon S3 object encryption type.
To learn more about server-side encryption options in Amazon S3, see Protecting Data Using Server-Side Encryption in the Amazon S3 Developer Guide .
KmsKeyArn (string) --
The Amazon Resource Name (ARN) for a customer master key (CMK) in AWS Key Management Service (AWS KMS).
You must provide a KmsKeyArn if you specify SSE_KMS as the ObjectEncryptionType .
KmsKeyArn is not required if you specify SSE_S3 as the ObjectEncryptionType .
string
[REQUIRED]
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 AWS Key Management Service (AWS KMS) for server-side encryption of your exported data.
dict
Response Syntax
{ 'ExportId': 'string' }
Response Structure
(dict) --
ExportId (string) --
The unique ID 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 .
Returns information about a journal export job, including the ledger name, export ID, when it was created, current status, and its start and end time export parameters.
If the export job with the given ExportId doesn't exist, then throws ResourceNotFoundException .
If the ledger with the given Name doesn't exist, then throws ResourceNotFoundException .
See also: AWS API Documentation
Request Syntax
client.describe_journal_s3_export( Name='string', ExportId='string' )
string
[REQUIRED]
The name of the ledger.
string
[REQUIRED]
The unique ID of the journal export job that you want to describe.
dict
Response Syntax
{ 'ExportDescription': { 'LedgerName': 'string', 'ExportId': 'string', 'ExportCreationTime': datetime(2015, 1, 1), 'Status': 'IN_PROGRESS'|'COMPLETED'|'CANCELLED', 'InclusiveStartTime': datetime(2015, 1, 1), 'ExclusiveEndTime': datetime(2015, 1, 1), 'S3ExportConfiguration': { 'Bucket': 'string', 'Prefix': 'string', 'EncryptionConfiguration': { 'ObjectEncryptionType': 'SSE_KMS'|'SSE_S3'|'NO_ENCRYPTION', 'KmsKeyArn': 'string' } }, 'RoleArn': 'string' } }
Response Structure
(dict) --
ExportDescription (dict) --
Information about the journal export job returned by a DescribeJournalS3Export request.
LedgerName (string) --
The name of the ledger.
ExportId (string) --
The unique ID of the journal export job.
ExportCreationTime (datetime) --
The date and time, in epoch time format, when the export job was created. (Epoch time format is the number of seconds elapsed since 12:00:00 AM January 1, 1970 UTC.)
Status (string) --
The current state of the journal export job.
InclusiveStartTime (datetime) --
The inclusive start date and time for the range of journal contents that are specified in the original export request.
ExclusiveEndTime (datetime) --
The exclusive end date and time for the range of journal contents that are specified in the original export request.
S3ExportConfiguration (dict) --
The Amazon Simple Storage Service (Amazon S3) bucket location in which a journal export job writes the journal contents.
Bucket (string) --
The Amazon S3 bucket name in which a journal export job writes the journal contents.
The bucket name must comply with the Amazon S3 bucket naming conventions. For more information, see Bucket Restrictions and Limitations in the Amazon S3 Developer Guide .
Prefix (string) --
The prefix for the Amazon S3 bucket in which a journal export job writes the journal contents.
The prefix must comply with Amazon S3 key naming rules and restrictions. For more information, see Object Key and Metadata in the Amazon S3 Developer Guide .
The following are examples of valid Prefix values:
JournalExports-ForMyLedger/Testing/
JournalExports
My:Tests/
EncryptionConfiguration (dict) --
The encryption settings that are used by a journal export job to write data in an Amazon S3 bucket.
ObjectEncryptionType (string) --
The Amazon S3 object encryption type.
To learn more about server-side encryption options in Amazon S3, see Protecting Data Using Server-Side Encryption in the Amazon S3 Developer Guide .
KmsKeyArn (string) --
The Amazon Resource Name (ARN) for a customer master key (CMK) in AWS Key Management Service (AWS KMS).
You must provide a KmsKeyArn if you specify SSE_KMS as the ObjectEncryptionType .
KmsKeyArn is not required if you specify SSE_S3 as the ObjectEncryptionType .
RoleArn (string) --
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 AWS Key Management Service (AWS KMS) for server-side encryption of your exported data.
Returns all tags for a specified Amazon QLDB resource.
See also: AWS API Documentation
Request Syntax
client.list_tags_for_resource( ResourceArn='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) for which you want to list the tags. For example:
arn:aws:qldb:us-east-1:123456789012:ledger/exampleLedger
dict
Response Syntax
{ 'Tags': { 'string': 'string' } }
Response Structure
(dict) --
Tags (dict) --
The tags that are currently associated with the specified Amazon QLDB resource.
(string) --
(string) --