/AWS1/CL_QLS=>SENDCOMMAND()
¶
About SendCommand¶
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.
Method Signature¶
IMPORTING¶
Optional arguments:¶
IV_SESSIONTOKEN
TYPE /AWS1/QLSSESSIONTOKEN
/AWS1/QLSSESSIONTOKEN
¶
Specifies the session token for the current command. A session token is constant throughout the life of the session.
To obtain a session token, run the
StartSession
command. ThisSessionToken
is required for every subsequent command that is issued during the current session.
IO_STARTSESSION
TYPE REF TO /AWS1/CL_QLSSTARTSESSREQUEST
/AWS1/CL_QLSSTARTSESSREQUEST
¶
Command to start a new session. A session token is obtained as part of the response.
IO_STARTTRANSACTION
TYPE REF TO /AWS1/CL_QLSSTARTTRANSACTREQ
/AWS1/CL_QLSSTARTTRANSACTREQ
¶
Command to start a new transaction.
IO_ENDSESSION
TYPE REF TO /AWS1/CL_QLSENDSESSIONREQUEST
/AWS1/CL_QLSENDSESSIONREQUEST
¶
Command to end the current session.
IO_COMMITTRANSACTION
TYPE REF TO /AWS1/CL_QLSCOMMITTRANSACTREQ
/AWS1/CL_QLSCOMMITTRANSACTREQ
¶
Command to commit the specified transaction.
IO_ABORTTRANSACTION
TYPE REF TO /AWS1/CL_QLSABORTTRANSACTREQ
/AWS1/CL_QLSABORTTRANSACTREQ
¶
Command to abort the current transaction.
IO_EXECUTESTATEMENT
TYPE REF TO /AWS1/CL_QLSEXECUTESTMTREQUEST
/AWS1/CL_QLSEXECUTESTMTREQUEST
¶
Command to execute a statement in the specified transaction.
IO_FETCHPAGE
TYPE REF TO /AWS1/CL_QLSFETCHPAGEREQUEST
/AWS1/CL_QLSFETCHPAGEREQUEST
¶
Command to fetch a page.