@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonQLDBAsync extends AbstractAmazonQLDB implements AmazonQLDBAsync
AmazonQLDBAsync
. Convenient method forms pass through to the corresponding
overload that takes a request object and an AsyncHandler
, which throws an
UnsupportedOperationException
.ENDPOINT_PREFIX
cancelJournalKinesisStream, createLedger, deleteLedger, describeJournalKinesisStream, describeJournalS3Export, describeLedger, exportJournalToS3, getBlock, getCachedResponseMetadata, getDigest, getRevision, listJournalKinesisStreamsForLedger, listJournalS3Exports, listJournalS3ExportsForLedger, listLedgers, listTagsForResource, shutdown, streamJournalToKinesis, tagResource, untagResource, updateLedger, updateLedgerPermissionsMode
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancelJournalKinesisStream, createLedger, deleteLedger, describeJournalKinesisStream, describeJournalS3Export, describeLedger, exportJournalToS3, getBlock, getCachedResponseMetadata, getDigest, getRevision, listJournalKinesisStreamsForLedger, listJournalS3Exports, listJournalS3ExportsForLedger, listLedgers, listTagsForResource, shutdown, streamJournalToKinesis, tagResource, untagResource, updateLedger, updateLedgerPermissionsMode
public Future<CancelJournalKinesisStreamResult> cancelJournalKinesisStreamAsync(CancelJournalKinesisStreamRequest request)
AmazonQLDBAsync
Ends a given Amazon QLDB journal stream. Before a stream can be canceled, its current status must be
ACTIVE
.
You can't restart a stream after you cancel it. Canceled QLDB stream resources are subject to a 7-day retention period, so they are automatically deleted after this limit expires.
cancelJournalKinesisStreamAsync
in interface AmazonQLDBAsync
public Future<CancelJournalKinesisStreamResult> cancelJournalKinesisStreamAsync(CancelJournalKinesisStreamRequest request, AsyncHandler<CancelJournalKinesisStreamRequest,CancelJournalKinesisStreamResult> asyncHandler)
AmazonQLDBAsync
Ends a given Amazon QLDB journal stream. Before a stream can be canceled, its current status must be
ACTIVE
.
You can't restart a stream after you cancel it. Canceled QLDB stream resources are subject to a 7-day retention period, so they are automatically deleted after this limit expires.
cancelJournalKinesisStreamAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateLedgerResult> createLedgerAsync(CreateLedgerRequest request)
AmazonQLDBAsync
Creates a new ledger in your Amazon Web Services account in the current Region.
createLedgerAsync
in interface AmazonQLDBAsync
public Future<CreateLedgerResult> createLedgerAsync(CreateLedgerRequest request, AsyncHandler<CreateLedgerRequest,CreateLedgerResult> asyncHandler)
AmazonQLDBAsync
Creates a new ledger in your Amazon Web Services account in the current Region.
createLedgerAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteLedgerResult> deleteLedgerAsync(DeleteLedgerRequest request)
AmazonQLDBAsync
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. You can disable it
by calling the UpdateLedger
operation to set this parameter to false
.
deleteLedgerAsync
in interface AmazonQLDBAsync
public Future<DeleteLedgerResult> deleteLedgerAsync(DeleteLedgerRequest request, AsyncHandler<DeleteLedgerRequest,DeleteLedgerResult> asyncHandler)
AmazonQLDBAsync
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. You can disable it
by calling the UpdateLedger
operation to set this parameter to false
.
deleteLedgerAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeJournalKinesisStreamResult> describeJournalKinesisStreamAsync(DescribeJournalKinesisStreamRequest request)
AmazonQLDBAsync
Returns detailed information about a given Amazon QLDB journal stream. The output includes the Amazon Resource Name (ARN), stream name, current status, creation time, and the parameters of the original stream creation request.
This action does not return any expired journal streams. For more information, see Expiration for terminal streams in the Amazon QLDB Developer Guide.
describeJournalKinesisStreamAsync
in interface AmazonQLDBAsync
public Future<DescribeJournalKinesisStreamResult> describeJournalKinesisStreamAsync(DescribeJournalKinesisStreamRequest request, AsyncHandler<DescribeJournalKinesisStreamRequest,DescribeJournalKinesisStreamResult> asyncHandler)
AmazonQLDBAsync
Returns detailed information about a given Amazon QLDB journal stream. The output includes the Amazon Resource Name (ARN), stream name, current status, creation time, and the parameters of the original stream creation request.
This action does not return any expired journal streams. For more information, see Expiration for terminal streams in the Amazon QLDB Developer Guide.
describeJournalKinesisStreamAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeJournalS3ExportResult> describeJournalS3ExportAsync(DescribeJournalS3ExportRequest request)
AmazonQLDBAsync
Returns information about a journal export job, including the ledger name, export ID, creation time, current status, and the parameters of the original export creation request.
This action does not return any expired export jobs. For more information, see Export job expiration in the Amazon QLDB Developer Guide.
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
.
describeJournalS3ExportAsync
in interface AmazonQLDBAsync
public Future<DescribeJournalS3ExportResult> describeJournalS3ExportAsync(DescribeJournalS3ExportRequest request, AsyncHandler<DescribeJournalS3ExportRequest,DescribeJournalS3ExportResult> asyncHandler)
AmazonQLDBAsync
Returns information about a journal export job, including the ledger name, export ID, creation time, current status, and the parameters of the original export creation request.
This action does not return any expired export jobs. For more information, see Export job expiration in the Amazon QLDB Developer Guide.
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
.
describeJournalS3ExportAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeLedgerResult> describeLedgerAsync(DescribeLedgerRequest request)
AmazonQLDBAsync
Returns information about a ledger, including its state, permissions mode, encryption at rest settings, and when it was created.
describeLedgerAsync
in interface AmazonQLDBAsync
public Future<DescribeLedgerResult> describeLedgerAsync(DescribeLedgerRequest request, AsyncHandler<DescribeLedgerRequest,DescribeLedgerResult> asyncHandler)
AmazonQLDBAsync
Returns information about a ledger, including its state, permissions mode, encryption at rest settings, and when it was created.
describeLedgerAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ExportJournalToS3Result> exportJournalToS3Async(ExportJournalToS3Request request)
AmazonQLDBAsync
Exports journal contents within a date and time range from a ledger into a specified Amazon Simple Storage Service (Amazon S3) bucket. A journal export job can write the data objects in either the text or binary representation of Amazon Ion format, or in JSON Lines text 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
.
exportJournalToS3Async
in interface AmazonQLDBAsync
public Future<ExportJournalToS3Result> exportJournalToS3Async(ExportJournalToS3Request request, AsyncHandler<ExportJournalToS3Request,ExportJournalToS3Result> asyncHandler)
AmazonQLDBAsync
Exports journal contents within a date and time range from a ledger into a specified Amazon Simple Storage Service (Amazon S3) bucket. A journal export job can write the data objects in either the text or binary representation of Amazon Ion format, or in JSON Lines text 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
.
exportJournalToS3Async
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetBlockResult> getBlockAsync(GetBlockRequest request)
AmazonQLDBAsync
Returns a block object at a specified address in a journal. Also returns a proof of the specified block for
verification if DigestTipAddress
is provided.
For information about the data contents in a block, see Journal contents in the Amazon QLDB Developer Guide.
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
.
getBlockAsync
in interface AmazonQLDBAsync
public Future<GetBlockResult> getBlockAsync(GetBlockRequest request, AsyncHandler<GetBlockRequest,GetBlockResult> asyncHandler)
AmazonQLDBAsync
Returns a block object at a specified address in a journal. Also returns a proof of the specified block for
verification if DigestTipAddress
is provided.
For information about the data contents in a block, see Journal contents in the Amazon QLDB Developer Guide.
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
.
getBlockAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetDigestResult> getDigestAsync(GetDigestRequest request)
AmazonQLDBAsync
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.
getDigestAsync
in interface AmazonQLDBAsync
public Future<GetDigestResult> getDigestAsync(GetDigestRequest request, AsyncHandler<GetDigestRequest,GetDigestResult> asyncHandler)
AmazonQLDBAsync
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.
getDigestAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetRevisionResult> getRevisionAsync(GetRevisionRequest request)
AmazonQLDBAsync
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.
getRevisionAsync
in interface AmazonQLDBAsync
public Future<GetRevisionResult> getRevisionAsync(GetRevisionRequest request, AsyncHandler<GetRevisionRequest,GetRevisionResult> asyncHandler)
AmazonQLDBAsync
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.
getRevisionAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListJournalKinesisStreamsForLedgerResult> listJournalKinesisStreamsForLedgerAsync(ListJournalKinesisStreamsForLedgerRequest request)
AmazonQLDBAsync
Returns all Amazon QLDB journal streams for a given ledger.
This action does not return any expired journal streams. For more information, see Expiration for terminal streams in the Amazon QLDB Developer Guide.
This action returns a maximum of MaxResults
items. It is paginated so that you can retrieve all the
items by calling ListJournalKinesisStreamsForLedger
multiple times.
listJournalKinesisStreamsForLedgerAsync
in interface AmazonQLDBAsync
public Future<ListJournalKinesisStreamsForLedgerResult> listJournalKinesisStreamsForLedgerAsync(ListJournalKinesisStreamsForLedgerRequest request, AsyncHandler<ListJournalKinesisStreamsForLedgerRequest,ListJournalKinesisStreamsForLedgerResult> asyncHandler)
AmazonQLDBAsync
Returns all Amazon QLDB journal streams for a given ledger.
This action does not return any expired journal streams. For more information, see Expiration for terminal streams in the Amazon QLDB Developer Guide.
This action returns a maximum of MaxResults
items. It is paginated so that you can retrieve all the
items by calling ListJournalKinesisStreamsForLedger
multiple times.
listJournalKinesisStreamsForLedgerAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListJournalS3ExportsResult> listJournalS3ExportsAsync(ListJournalS3ExportsRequest request)
AmazonQLDBAsync
Returns all journal export jobs for all ledgers that are associated with the current Amazon Web Services 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.
This action does not return any expired export jobs. For more information, see Export job expiration in the Amazon QLDB Developer Guide.
listJournalS3ExportsAsync
in interface AmazonQLDBAsync
public Future<ListJournalS3ExportsResult> listJournalS3ExportsAsync(ListJournalS3ExportsRequest request, AsyncHandler<ListJournalS3ExportsRequest,ListJournalS3ExportsResult> asyncHandler)
AmazonQLDBAsync
Returns all journal export jobs for all ledgers that are associated with the current Amazon Web Services 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.
This action does not return any expired export jobs. For more information, see Export job expiration in the Amazon QLDB Developer Guide.
listJournalS3ExportsAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListJournalS3ExportsForLedgerResult> listJournalS3ExportsForLedgerAsync(ListJournalS3ExportsForLedgerRequest request)
AmazonQLDBAsync
Returns all journal export jobs 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.
This action does not return any expired export jobs. For more information, see Export job expiration in the Amazon QLDB Developer Guide.
listJournalS3ExportsForLedgerAsync
in interface AmazonQLDBAsync
public Future<ListJournalS3ExportsForLedgerResult> listJournalS3ExportsForLedgerAsync(ListJournalS3ExportsForLedgerRequest request, AsyncHandler<ListJournalS3ExportsForLedgerRequest,ListJournalS3ExportsForLedgerResult> asyncHandler)
AmazonQLDBAsync
Returns all journal export jobs 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.
This action does not return any expired export jobs. For more information, see Export job expiration in the Amazon QLDB Developer Guide.
listJournalS3ExportsForLedgerAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListLedgersResult> listLedgersAsync(ListLedgersRequest request)
AmazonQLDBAsync
Returns all ledgers that are associated with the current Amazon Web Services account and Region.
This action returns a maximum of MaxResults
items and is paginated so that you can retrieve all the
items by calling ListLedgers
multiple times.
listLedgersAsync
in interface AmazonQLDBAsync
public Future<ListLedgersResult> listLedgersAsync(ListLedgersRequest request, AsyncHandler<ListLedgersRequest,ListLedgersResult> asyncHandler)
AmazonQLDBAsync
Returns all ledgers that are associated with the current Amazon Web Services account and Region.
This action returns a maximum of MaxResults
items and is paginated so that you can retrieve all the
items by calling ListLedgers
multiple times.
listLedgersAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AmazonQLDBAsync
Returns all tags for a specified Amazon QLDB resource.
listTagsForResourceAsync
in interface AmazonQLDBAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonQLDBAsync
Returns all tags for a specified Amazon QLDB resource.
listTagsForResourceAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StreamJournalToKinesisResult> streamJournalToKinesisAsync(StreamJournalToKinesisRequest request)
AmazonQLDBAsync
Creates a journal stream for a given Amazon QLDB ledger. The stream captures every document revision that is committed to the ledger's journal and delivers the data to a specified Amazon Kinesis Data Streams resource.
streamJournalToKinesisAsync
in interface AmazonQLDBAsync
public Future<StreamJournalToKinesisResult> streamJournalToKinesisAsync(StreamJournalToKinesisRequest request, AsyncHandler<StreamJournalToKinesisRequest,StreamJournalToKinesisResult> asyncHandler)
AmazonQLDBAsync
Creates a journal stream for a given Amazon QLDB ledger. The stream captures every document revision that is committed to the ledger's journal and delivers the data to a specified Amazon Kinesis Data Streams resource.
streamJournalToKinesisAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AmazonQLDBAsync
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.
tagResourceAsync
in interface AmazonQLDBAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonQLDBAsync
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.
tagResourceAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AmazonQLDBAsync
Removes one or more tags from a specified Amazon QLDB resource. You can specify up to 50 tag keys to remove.
untagResourceAsync
in interface AmazonQLDBAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonQLDBAsync
Removes one or more tags from a specified Amazon QLDB resource. You can specify up to 50 tag keys to remove.
untagResourceAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateLedgerResult> updateLedgerAsync(UpdateLedgerRequest request)
AmazonQLDBAsync
Updates properties on a ledger.
updateLedgerAsync
in interface AmazonQLDBAsync
public Future<UpdateLedgerResult> updateLedgerAsync(UpdateLedgerRequest request, AsyncHandler<UpdateLedgerRequest,UpdateLedgerResult> asyncHandler)
AmazonQLDBAsync
Updates properties on a ledger.
updateLedgerAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateLedgerPermissionsModeResult> updateLedgerPermissionsModeAsync(UpdateLedgerPermissionsModeRequest request)
AmazonQLDBAsync
Updates the permissions mode of a ledger.
Before you switch to the STANDARD
permissions mode, you must first create all required IAM policies
and table tags to avoid disruption to your users. To learn more, see Migrating to the standard permissions mode in the Amazon QLDB Developer Guide.
updateLedgerPermissionsModeAsync
in interface AmazonQLDBAsync
public Future<UpdateLedgerPermissionsModeResult> updateLedgerPermissionsModeAsync(UpdateLedgerPermissionsModeRequest request, AsyncHandler<UpdateLedgerPermissionsModeRequest,UpdateLedgerPermissionsModeResult> asyncHandler)
AmazonQLDBAsync
Updates the permissions mode of a ledger.
Before you switch to the STANDARD
permissions mode, you must first create all required IAM policies
and table tags to avoid disruption to your users. To learn more, see Migrating to the standard permissions mode in the Amazon QLDB Developer Guide.
updateLedgerPermissionsModeAsync
in interface AmazonQLDBAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.