AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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
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.
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.
For .NET Core this operation is only available in asynchronous form. Please refer to SendCommandAsync.
Namespace: Amazon.QLDBSession
Assembly: AWSSDK.QLDBSession.dll
Version: 3.x.y.z
public abstract SendCommandResponse SendCommand( SendCommandRequest request )
Container for the necessary parameters to execute the SendCommand service method.
Exception | Condition |
---|---|
BadRequestException | Returned if the request is malformed or contains an error such as an invalid parameter value or a missing required parameter. |
CapacityExceededException | Returned when the request exceeds the processing capacity of the ledger. |
InvalidSessionException | Returned if the session doesn't exist anymore because it timed out or expired. |
LimitExceededException | Returned if a resource limit such as number of active sessions is exceeded. |
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. |
.NET Framework:
Supported in: 4.5 and newer, 3.5