v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1413918.5 KB

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.

post/#X-Amz-Target=QLDBSession.SendCommand

Headers

X-Amz-Target'QLDBSession.SendCommand' required

Request body

SessionTokenstring
<p>Specifies the session token for the current command. A session token is constant throughout the life of the session.</p> <p>To obtain a session token, run the <code>StartSession</code> command. This <code>SessionToken</code> is required for every subsequent command that is issued during the current session.</p>
StartTransactionobject

Command to start a new transaction.

EndSessionobject

Command to end the current session.

AbortTransactionobject

Command to abort the current transaction.

Response

Success

All 1 operations