@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonQLDBClient extends AmazonWebServiceClient implements AmazonQLDB
The control plane for Amazon QLDB
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonQLDBClientBuilder |
builder() |
CancelJournalKinesisStreamResult |
cancelJournalKinesisStream(CancelJournalKinesisStreamRequest request)
Ends a given Amazon QLDB journal stream.
|
CreateLedgerResult |
createLedger(CreateLedgerRequest request)
Creates a new ledger in your AWS account.
|
DeleteLedgerResult |
deleteLedger(DeleteLedgerRequest request)
Deletes a ledger and all of its contents.
|
DescribeJournalKinesisStreamResult |
describeJournalKinesisStream(DescribeJournalKinesisStreamRequest request)
Returns detailed information about a given Amazon QLDB journal stream.
|
DescribeJournalS3ExportResult |
describeJournalS3Export(DescribeJournalS3ExportRequest request)
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 request)
Returns information about a ledger, including its state and when it was created.
|
ExportJournalToS3Result |
exportJournalToS3(ExportJournalToS3Request request)
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 request)
Returns a block object at a specified address in a journal.
|
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 request)
Returns the digest of a ledger at the latest committed block in the journal.
|
GetRevisionResult |
getRevision(GetRevisionRequest request)
Returns a revision data object for a specified document ID and block address.
|
ListJournalKinesisStreamsForLedgerResult |
listJournalKinesisStreamsForLedger(ListJournalKinesisStreamsForLedgerRequest request)
Returns an array of all Amazon QLDB journal stream descriptors for a given ledger.
|
ListJournalS3ExportsResult |
listJournalS3Exports(ListJournalS3ExportsRequest request)
Returns an array of journal export job descriptions for all ledgers that are associated with the current AWS
account and Region.
|
ListJournalS3ExportsForLedgerResult |
listJournalS3ExportsForLedger(ListJournalS3ExportsForLedgerRequest request)
Returns an array of journal export job descriptions for a specified ledger.
|
ListLedgersResult |
listLedgers(ListLedgersRequest request)
Returns an array of ledger summaries that are associated with the current AWS account and Region.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
Returns all tags for a specified Amazon QLDB resource.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
StreamJournalToKinesisResult |
streamJournalToKinesis(StreamJournalToKinesisRequest request)
Creates a journal stream for a given Amazon QLDB ledger.
|
TagResourceResult |
tagResource(TagResourceRequest request)
Adds one or more tags to a specified Amazon QLDB resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Removes one or more tags from a specified Amazon QLDB resource.
|
UpdateLedgerResult |
updateLedger(UpdateLedgerRequest request)
Updates properties on a ledger.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AmazonQLDBClientBuilder builder()
public CancelJournalKinesisStreamResult cancelJournalKinesisStream(CancelJournalKinesisStreamRequest request)
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.
cancelJournalKinesisStream
in interface AmazonQLDB
cancelJournalKinesisStreamRequest
- 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.public CreateLedgerResult createLedger(CreateLedgerRequest request)
Creates a new ledger in your AWS account.
createLedger
in interface AmazonQLDB
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.public DeleteLedgerResult deleteLedger(DeleteLedgerRequest request)
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.
deleteLedger
in interface AmazonQLDB
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.public DescribeJournalKinesisStreamResult describeJournalKinesisStream(DescribeJournalKinesisStreamRequest request)
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 your original stream creation request.
describeJournalKinesisStream
in interface AmazonQLDB
describeJournalKinesisStreamRequest
- 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.public DescribeJournalS3ExportResult describeJournalS3Export(DescribeJournalS3ExportRequest request)
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.
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
.
describeJournalS3Export
in interface AmazonQLDB
describeJournalS3ExportRequest
- ResourceNotFoundException
- The specified resource doesn't exist.public DescribeLedgerResult describeLedger(DescribeLedgerRequest request)
Returns information about a ledger, including its state and when it was created.
describeLedger
in interface AmazonQLDB
describeLedgerRequest
- InvalidParameterException
- One or more parameters in the request aren't valid.ResourceNotFoundException
- The specified resource doesn't exist.public ExportJournalToS3Result exportJournalToS3(ExportJournalToS3Request request)
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
.
exportJournalToS3
in interface AmazonQLDB
exportJournalToS3Request
- ResourceNotFoundException
- The specified resource doesn't exist.ResourcePreconditionNotMetException
- The operation failed because a condition wasn't satisfied in advance.public GetBlockResult getBlock(GetBlockRequest request)
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
.
getBlock
in interface AmazonQLDB
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.public GetDigestResult getDigest(GetDigestRequest request)
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.
getDigest
in interface AmazonQLDB
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.public GetRevisionResult getRevision(GetRevisionRequest request)
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.
getRevision
in interface AmazonQLDB
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.public ListJournalKinesisStreamsForLedgerResult listJournalKinesisStreamsForLedger(ListJournalKinesisStreamsForLedgerRequest request)
Returns an array of all Amazon QLDB journal stream descriptors for a given ledger. The output of each stream
descriptor includes the same details that are returned by DescribeJournalKinesisStream
.
This action returns a maximum of MaxResults
items. It is paginated so that you can retrieve all the
items by calling ListJournalKinesisStreamsForLedger
multiple times.
listJournalKinesisStreamsForLedger
in interface AmazonQLDB
listJournalKinesisStreamsForLedgerRequest
- 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.public ListJournalS3ExportsResult listJournalS3Exports(ListJournalS3ExportsRequest request)
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.
This action does not return any expired export jobs. For more information, see Export Job Expiration in the Amazon QLDB Developer Guide.
listJournalS3Exports
in interface AmazonQLDB
listJournalS3ExportsRequest
- public ListJournalS3ExportsForLedgerResult listJournalS3ExportsForLedger(ListJournalS3ExportsForLedgerRequest request)
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.
This action does not return any expired export jobs. For more information, see Export Job Expiration in the Amazon QLDB Developer Guide.
listJournalS3ExportsForLedger
in interface AmazonQLDB
listJournalS3ExportsForLedgerRequest
- public ListLedgersResult listLedgers(ListLedgersRequest request)
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.
listLedgers
in interface AmazonQLDB
listLedgersRequest
- public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Returns all tags for a specified Amazon QLDB resource.
listTagsForResource
in interface AmazonQLDB
listTagsForResourceRequest
- InvalidParameterException
- One or more parameters in the request aren't valid.ResourceNotFoundException
- The specified resource doesn't exist.public StreamJournalToKinesisResult streamJournalToKinesis(StreamJournalToKinesisRequest request)
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.
streamJournalToKinesis
in interface AmazonQLDB
streamJournalToKinesisRequest
- 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.public TagResourceResult tagResource(TagResourceRequest request)
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.
tagResource
in interface AmazonQLDB
tagResourceRequest
- InvalidParameterException
- One or more parameters in the request aren't valid.ResourceNotFoundException
- The specified resource doesn't exist.public UntagResourceResult untagResource(UntagResourceRequest request)
Removes one or more tags from a specified Amazon QLDB resource. You can specify up to 50 tag keys to remove.
untagResource
in interface AmazonQLDB
untagResourceRequest
- InvalidParameterException
- One or more parameters in the request aren't valid.ResourceNotFoundException
- The specified resource doesn't exist.public UpdateLedgerResult updateLedger(UpdateLedgerRequest request)
Updates properties on a ledger.
updateLedger
in interface AmazonQLDB
updateLedgerRequest
- InvalidParameterException
- One or more parameters in the request aren't valid.ResourceNotFoundException
- The specified resource doesn't exist.public 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 the request.
getCachedResponseMetadata
in interface AmazonQLDB
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AmazonQLDB
shutdown
in class AmazonWebServiceClient