amazonka-qldb-session-2.0: Amazon QLDB Session SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.QLDBSession.SendCommand

Description

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

Creating a Request

data SendCommand Source #

See: newSendCommand smart constructor.

Constructors

SendCommand' 

Fields

Instances

Instances details
ToJSON SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

ToHeaders SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Methods

toHeaders :: SendCommand -> [Header] #

ToPath SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

ToQuery SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

AWSRequest SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Associated Types

type AWSResponse SendCommand #

Generic SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Associated Types

type Rep SendCommand :: Type -> Type #

Read SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Show SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

NFData SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Methods

rnf :: SendCommand -> () #

Eq SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Hashable SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

type AWSResponse SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

type Rep SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

newSendCommand :: SendCommand Source #

Create a value of SendCommand with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

SendCommand, sendCommand_abortTransaction - Command to abort the current transaction.

SendCommand, sendCommand_commitTransaction - Command to commit the specified transaction.

SendCommand, sendCommand_endSession - Command to end the current session.

SendCommand, sendCommand_executeStatement - Command to execute a statement in the specified transaction.

SendCommand, sendCommand_fetchPage - Command to fetch a page.

SendCommand, sendCommand_sessionToken - 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. This SessionToken is required for every subsequent command that is issued during the current session.

SendCommand, sendCommand_startSession - Command to start a new session. A session token is obtained as part of the response.

SendCommand, sendCommand_startTransaction - Command to start a new transaction.

Request Lenses

sendCommand_commitTransaction :: Lens' SendCommand (Maybe CommitTransactionRequest) Source #

Command to commit the specified transaction.

sendCommand_endSession :: Lens' SendCommand (Maybe EndSessionRequest) Source #

Command to end the current session.

sendCommand_executeStatement :: Lens' SendCommand (Maybe ExecuteStatementRequest) Source #

Command to execute a statement in the specified transaction.

sendCommand_sessionToken :: Lens' SendCommand (Maybe Text) Source #

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. This SessionToken is required for every subsequent command that is issued during the current session.

sendCommand_startSession :: Lens' SendCommand (Maybe StartSessionRequest) Source #

Command to start a new session. A session token is obtained as part of the response.

Destructuring the Response

data SendCommandResponse Source #

See: newSendCommandResponse smart constructor.

Constructors

SendCommandResponse' 

Fields

Instances

Instances details
Generic SendCommandResponse Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Associated Types

type Rep SendCommandResponse :: Type -> Type #

Read SendCommandResponse Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Show SendCommandResponse Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

NFData SendCommandResponse Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Methods

rnf :: SendCommandResponse -> () #

Eq SendCommandResponse Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

type Rep SendCommandResponse Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

newSendCommandResponse Source #

Create a value of SendCommandResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

SendCommand, sendCommandResponse_abortTransaction - Contains the details of the aborted transaction.

SendCommand, sendCommandResponse_commitTransaction - Contains the details of the committed transaction.

SendCommand, sendCommandResponse_endSession - Contains the details of the ended session.

SendCommand, sendCommandResponse_executeStatement - Contains the details of the executed statement.

SendCommand, sendCommandResponse_fetchPage - Contains the details of the fetched page.

SendCommand, sendCommandResponse_startSession - Contains the details of the started session that includes a session token. This SessionToken is required for every subsequent command that is issued during the current session.

SendCommand, sendCommandResponse_startTransaction - Contains the details of the started transaction.

$sel:httpStatus:SendCommandResponse', sendCommandResponse_httpStatus - The response's http status code.

Response Lenses

sendCommandResponse_startSession :: Lens' SendCommandResponse (Maybe StartSessionResult) Source #

Contains the details of the started session that includes a session token. This SessionToken is required for every subsequent command that is issued during the current session.