libZSservicesZSamazonka-qldb-sessionZSamazonka-qldb-session
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Read SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Show SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Generic SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Associated Types

type Rep SendCommand :: Type -> Type #

NFData SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Methods

rnf :: SendCommand -> () #

Hashable SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

ToJSON SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

AWSRequest SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Associated Types

type AWSResponse 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

type Rep SendCommand Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

type AWSResponse 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:

$sel:fetchPage:SendCommand', sendCommand_fetchPage - Command to fetch a page.

$sel:sessionToken: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.

$sel:abortTransaction:SendCommand', sendCommand_abortTransaction - Command to abort the current transaction.

$sel:endSession:SendCommand', sendCommand_endSession - Command to end the current session.

$sel:startTransaction:SendCommand', sendCommand_startTransaction - Command to start a new transaction.

$sel:executeStatement:SendCommand', sendCommand_executeStatement - Command to execute a statement in the specified transaction.

$sel:commitTransaction:SendCommand', sendCommand_commitTransaction - Command to commit the specified transaction.

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

Request Lenses

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_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_commitTransaction :: Lens' SendCommand (Maybe CommitTransactionRequest) Source #

Command to commit the specified transaction.

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
Eq SendCommandResponse Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Read SendCommandResponse Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Show SendCommandResponse Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Generic SendCommandResponse Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Associated Types

type Rep SendCommandResponse :: Type -> Type #

NFData SendCommandResponse Source # 
Instance details

Defined in Amazonka.QLDBSession.SendCommand

Methods

rnf :: SendCommandResponse -> () #

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:

$sel:fetchPage:SendCommand', sendCommandResponse_fetchPage - Contains the details of the fetched page.

$sel:abortTransaction:SendCommand', sendCommandResponse_abortTransaction - Contains the details of the aborted transaction.

$sel:endSession:SendCommand', sendCommandResponse_endSession - Contains the details of the ended session.

$sel:startTransaction:SendCommand', sendCommandResponse_startTransaction - Contains the details of the started transaction.

$sel:executeStatement:SendCommand', sendCommandResponse_executeStatement - Contains the details of the executed statement.

$sel:commitTransaction:SendCommand', sendCommandResponse_commitTransaction - Contains the details of the committed transaction.

$sel:startSession: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.

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