@Generated(value="software.amazon.awssdk:codegen") public interface QldbSessionClient extends SdkClient
builder() method.
The transactional data APIs for Amazon QLDB
Instead of interacting directly with this API, we recommend that you use the Amazon 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 qldbsession 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 |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static QldbSessionClientBuilder |
builder()
Create a builder that can be used to configure and create a
QldbSessionClient. |
static QldbSessionClient |
create()
Create a
QldbSessionClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default SendCommandResponse |
sendCommand(Consumer<SendCommandRequest.Builder> sendCommandRequest)
Sends a command to an Amazon QLDB ledger.
|
default SendCommandResponse |
sendCommand(SendCommandRequest sendCommandRequest)
Sends a command to an Amazon QLDB ledger.
|
static ServiceMetadata |
serviceMetadata() |
serviceNameclosestatic final String SERVICE_NAME
static QldbSessionClient create()
QldbSessionClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static QldbSessionClientBuilder builder()
QldbSessionClient.default SendCommandResponse sendCommand(SendCommandRequest sendCommandRequest) throws BadRequestException, InvalidSessionException, OccConflictException, RateExceededException, LimitExceededException, AwsServiceException, SdkClientException, QldbSessionException
Sends a command to an Amazon QLDB ledger.
Instead of interacting directly with this API, we recommend that you use the Amazon 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 qldbsession 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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbSessionException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SendCommandResponse sendCommand(Consumer<SendCommandRequest.Builder> sendCommandRequest) throws BadRequestException, InvalidSessionException, OccConflictException, RateExceededException, LimitExceededException, AwsServiceException, SdkClientException, QldbSessionException
Sends a command to an Amazon QLDB ledger.
Instead of interacting directly with this API, we recommend that you use the Amazon 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 qldbsession 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.
This is a convenience which creates an instance of the SendCommandRequest.Builder avoiding the need to
create one manually via SendCommandRequest.builder()
sendCommandRequest - A Consumer that will call methods on SendCommandRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbSessionException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic ServiceMetadata serviceMetadata()
Copyright © 2020. All rights reserved.