AWS SDK Version 3 for .NET
API Reference

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.

Note:

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

Syntax

C#
public abstract SendCommandResponse SendCommand(
         SendCommandRequest request
)

Parameters

request
Type: Amazon.QLDBSession.Model.SendCommandRequest

Container for the necessary parameters to execute the SendCommand service method.

Return Value


The response from the SendCommand service method, as returned by QLDBSession.

Exceptions

ExceptionCondition
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.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also