@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AmazonQLDB
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAmazonQLDB
instead.
The control plane for Amazon QLDB
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
CreateLedgerResult |
createLedger(CreateLedgerRequest createLedgerRequest)
Creates a new ledger in your AWS account.
|
DeleteLedgerResult |
deleteLedger(DeleteLedgerRequest deleteLedgerRequest)
Deletes a ledger and all of its contents.
|
DescribeJournalS3ExportResult |
describeJournalS3Export(DescribeJournalS3ExportRequest describeJournalS3ExportRequest)
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.
|
DescribeLedgerResult |
describeLedger(DescribeLedgerRequest describeLedgerRequest)
Returns information about a ledger, including its state and when it was created.
|
ExportJournalToS3Result |
exportJournalToS3(ExportJournalToS3Request exportJournalToS3Request)
Exports journal contents within a date and time range from a ledger into a specified Amazon Simple Storage
Service (Amazon S3) bucket.
|
GetBlockResult |
getBlock(GetBlockRequest getBlockRequest)
Returns a journal block object at a specified address in a ledger.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
GetDigestResult |
getDigest(GetDigestRequest getDigestRequest)
Returns the digest of a ledger at the latest committed block in the journal.
|
GetRevisionResult |
getRevision(GetRevisionRequest getRevisionRequest)
Returns a revision data object for a specified document ID and block address.
|
ListJournalS3ExportsResult |
listJournalS3Exports(ListJournalS3ExportsRequest listJournalS3ExportsRequest)
Returns an array of journal export job descriptions for all ledgers that are associated with the current AWS
account and Region.
|
ListJournalS3ExportsForLedgerResult |
listJournalS3ExportsForLedger(ListJournalS3ExportsForLedgerRequest listJournalS3ExportsForLedgerRequest)
Returns an array of journal export job descriptions for a specified ledger.
|
ListLedgersResult |
listLedgers(ListLedgersRequest listLedgersRequest)
Returns an array of ledger summaries that are associated with the current AWS account and Region.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns all tags for a specified Amazon QLDB resource.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
TagResourceResult |
tagResource(TagResourceRequest tagResourceRequest)
Adds one or more tags to a specified Amazon QLDB resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest untagResourceRequest)
Removes one or more tags from a specified Amazon QLDB resource.
|
UpdateLedgerResult |
updateLedger(UpdateLedgerRequest updateLedgerRequest)
Updates properties on a ledger.
|
static final String ENDPOINT_PREFIX
CreateLedgerResult createLedger(CreateLedgerRequest createLedgerRequest)
Creates a new ledger in your AWS account.
createLedgerRequest
- InvalidParameterException
- One or more parameters in the request aren't valid.ResourceAlreadyExistsException
- The specified resource already exists.LimitExceededException
- You have reached the limit on the maximum number of resources allowed.ResourceInUseException
- The specified resource can't be modified at this time.DeleteLedgerResult deleteLedger(DeleteLedgerRequest deleteLedgerRequest)
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.
deleteLedgerRequest
- InvalidParameterException
- One or more parameters in the request aren't valid.ResourceNotFoundException
- The specified resource doesn't exist.ResourceInUseException
- The specified resource can't be modified at this time.ResourcePreconditionNotMetException
- The operation failed because a condition wasn't satisfied in advance.DescribeJournalS3ExportResult describeJournalS3Export(DescribeJournalS3ExportRequest describeJournalS3ExportRequest)
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
.
describeJournalS3ExportRequest
- ResourceNotFoundException
- The specified resource doesn't exist.DescribeLedgerResult describeLedger(DescribeLedgerRequest describeLedgerRequest)
Returns information about a ledger, including its state and when it was created.
describeLedgerRequest
- InvalidParameterException
- One or more parameters in the request aren't valid.ResourceNotFoundException
- The specified resource doesn't exist.ExportJournalToS3Result exportJournalToS3(ExportJournalToS3Request exportJournalToS3Request)
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
.
exportJournalToS3Request
- ResourceNotFoundException
- The specified resource doesn't exist.ResourcePreconditionNotMetException
- The operation failed because a condition wasn't satisfied in advance.GetBlockResult getBlock(GetBlockRequest getBlockRequest)
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
.
getBlockRequest
- InvalidParameterException
- One or more parameters in the request aren't valid.ResourceNotFoundException
- The specified resource doesn't exist.ResourcePreconditionNotMetException
- The operation failed because a condition wasn't satisfied in advance.GetDigestResult getDigest(GetDigestRequest getDigestRequest)
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.
getDigestRequest
- InvalidParameterException
- One or more parameters in the request aren't valid.ResourceNotFoundException
- The specified resource doesn't exist.ResourcePreconditionNotMetException
- The operation failed because a condition wasn't satisfied in advance.GetRevisionResult getRevision(GetRevisionRequest getRevisionRequest)
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.
getRevisionRequest
- InvalidParameterException
- One or more parameters in the request aren't valid.ResourceNotFoundException
- The specified resource doesn't exist.ResourcePreconditionNotMetException
- The operation failed because a condition wasn't satisfied in advance.ListJournalS3ExportsResult listJournalS3Exports(ListJournalS3ExportsRequest listJournalS3ExportsRequest)
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.
listJournalS3ExportsRequest
- ListJournalS3ExportsForLedgerResult listJournalS3ExportsForLedger(ListJournalS3ExportsForLedgerRequest listJournalS3ExportsForLedgerRequest)
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.
listJournalS3ExportsForLedgerRequest
- ListLedgersResult listLedgers(ListLedgersRequest listLedgersRequest)
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.
listLedgersRequest
- ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns all tags for a specified Amazon QLDB resource.
listTagsForResourceRequest
- InvalidParameterException
- One or more parameters in the request aren't valid.ResourceNotFoundException
- The specified resource doesn't exist.TagResourceResult tagResource(TagResourceRequest tagResourceRequest)
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.
tagResourceRequest
- InvalidParameterException
- One or more parameters in the request aren't valid.ResourceNotFoundException
- The specified resource doesn't exist.UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest)
Removes one or more tags from a specified Amazon QLDB resource. You can specify up to 50 tag keys to remove.
untagResourceRequest
- InvalidParameterException
- One or more parameters in the request aren't valid.ResourceNotFoundException
- The specified resource doesn't exist.UpdateLedgerResult updateLedger(UpdateLedgerRequest updateLedgerRequest)
Updates properties on a ledger.
updateLedgerRequest
- InvalidParameterException
- One or more parameters in the request aren't valid.ResourceNotFoundException
- The specified resource doesn't exist.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.