amazonka-dynamodb-2.0: Amazon DynamoDB 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.DynamoDB.ExecuteTransaction

Description

This operation allows you to perform transactional reads or writes on data stored in DynamoDB, using PartiQL.

The entire transaction must consist of either read statements or write statements, you cannot mix both in one transaction. The EXISTS function is an exception and can be used to check the condition of specific attributes of the item in a similar manner to ConditionCheck in the TransactWriteItems API.

Synopsis

Creating a Request

data ExecuteTransaction Source #

See: newExecuteTransaction smart constructor.

Constructors

ExecuteTransaction' 

Fields

Instances

Instances details
ToJSON ExecuteTransaction Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

ToHeaders ExecuteTransaction Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

ToPath ExecuteTransaction Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

ToQuery ExecuteTransaction Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

AWSRequest ExecuteTransaction Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

Associated Types

type AWSResponse ExecuteTransaction #

Generic ExecuteTransaction Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

Associated Types

type Rep ExecuteTransaction :: Type -> Type #

Read ExecuteTransaction Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

Show ExecuteTransaction Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

NFData ExecuteTransaction Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

Methods

rnf :: ExecuteTransaction -> () #

Eq ExecuteTransaction Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

Hashable ExecuteTransaction Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

type AWSResponse ExecuteTransaction Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

type Rep ExecuteTransaction Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

type Rep ExecuteTransaction = D1 ('MetaData "ExecuteTransaction" "Amazonka.DynamoDB.ExecuteTransaction" "amazonka-dynamodb-2.0-GNxlseyeFiu302JKQwQrUS" 'False) (C1 ('MetaCons "ExecuteTransaction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "returnConsumedCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReturnConsumedCapacity)) :*: S1 ('MetaSel ('Just "transactStatements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty ParameterizedStatement)))))

newExecuteTransaction Source #

Create a value of ExecuteTransaction 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:clientRequestToken:ExecuteTransaction', executeTransaction_clientRequestToken - Set this value to get remaining results, if NextToken was returned in the statement response.

$sel:returnConsumedCapacity:ExecuteTransaction', executeTransaction_returnConsumedCapacity - Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response. For more information, see TransactGetItems and TransactWriteItems.

$sel:transactStatements:ExecuteTransaction', executeTransaction_transactStatements - The list of PartiQL statements representing the transaction to run.

Request Lenses

executeTransaction_clientRequestToken :: Lens' ExecuteTransaction (Maybe Text) Source #

Set this value to get remaining results, if NextToken was returned in the statement response.

executeTransaction_returnConsumedCapacity :: Lens' ExecuteTransaction (Maybe ReturnConsumedCapacity) Source #

Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response. For more information, see TransactGetItems and TransactWriteItems.

executeTransaction_transactStatements :: Lens' ExecuteTransaction (NonEmpty ParameterizedStatement) Source #

The list of PartiQL statements representing the transaction to run.

Destructuring the Response

data ExecuteTransactionResponse Source #

See: newExecuteTransactionResponse smart constructor.

Constructors

ExecuteTransactionResponse' 

Fields

Instances

Instances details
Generic ExecuteTransactionResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

Associated Types

type Rep ExecuteTransactionResponse :: Type -> Type #

Read ExecuteTransactionResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

Show ExecuteTransactionResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

NFData ExecuteTransactionResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

Eq ExecuteTransactionResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

type Rep ExecuteTransactionResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ExecuteTransaction

type Rep ExecuteTransactionResponse = D1 ('MetaData "ExecuteTransactionResponse" "Amazonka.DynamoDB.ExecuteTransaction" "amazonka-dynamodb-2.0-GNxlseyeFiu302JKQwQrUS" 'False) (C1 ('MetaCons "ExecuteTransactionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "consumedCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ConsumedCapacity])) :*: (S1 ('MetaSel ('Just "responses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty ItemResponse))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newExecuteTransactionResponse Source #

Create a value of ExecuteTransactionResponse 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:consumedCapacity:ExecuteTransactionResponse', executeTransactionResponse_consumedCapacity - The capacity units consumed by the entire operation. The values of the list are ordered according to the ordering of the statements.

$sel:responses:ExecuteTransactionResponse', executeTransactionResponse_responses - The response to a PartiQL transaction.

$sel:httpStatus:ExecuteTransactionResponse', executeTransactionResponse_httpStatus - The response's http status code.

Response Lenses

executeTransactionResponse_consumedCapacity :: Lens' ExecuteTransactionResponse (Maybe [ConsumedCapacity]) Source #

The capacity units consumed by the entire operation. The values of the list are ordered according to the ordering of the statements.