@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AmazonQLDBSession
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAmazonQLDBSession
instead.
The transactional data APIs for Amazon QLDB
Instead of interacting directly with this API, we recommend using the QLDB driver or the QLDB shell to execute data transactions on a ledger.
If you are working with an AWS SDK, use the QLDB driver. The driver provides a high-level abstraction layer above
this QLDB Session data plane and manages SendCommand
API calls for you. For information and a
list of supported programming languages, see Getting started with the
driver in the Amazon QLDB Developer Guide.
If you are working with the AWS Command Line Interface (AWS CLI), use the QLDB shell. The shell is a command line interface that uses the QLDB driver to interact with a ledger. For information, see Accessing Amazon QLDB using the QLDB shell.
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 |
---|---|
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.
|
SendCommandResult |
sendCommand(SendCommandRequest sendCommandRequest)
Sends a command to an Amazon QLDB ledger.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
static final String ENDPOINT_PREFIX
SendCommandResult sendCommand(SendCommandRequest sendCommandRequest)
Sends a command to an Amazon QLDB ledger.
Instead of interacting directly with this API, we recommend using the QLDB driver or the QLDB shell to execute data transactions on a ledger.
If you are working with an AWS SDK, use the QLDB driver. The driver provides a high-level abstraction layer above
this QLDB Session data plane and manages SendCommand
API calls for you. For information and a
list of supported programming languages, see Getting started with
the driver in the Amazon QLDB Developer Guide.
If you are working with the AWS Command Line Interface (AWS CLI), use the QLDB shell. The shell is a command line interface that uses the QLDB driver to interact with a ledger. For information, see Accessing Amazon QLDB using the QLDB shell.
sendCommandRequest
- BadRequestException
- Returned if the request is malformed or contains an error such as an invalid parameter value or a missing
required parameter.InvalidSessionException
- Returned if the session doesn't exist anymore because it timed out or expired.OccConflictException
- Returned when a transaction cannot be written to the journal due to a failure in the verification phase
of optimistic concurrency control (OCC).RateExceededException
- Returned when the rate of requests exceeds the allowed throughput.LimitExceededException
- Returned if a resource limit such as number of active sessions is exceeded.CapacityExceededException
- Returned when the request exceeds the processing capacity of the ledger.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.