Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data ExecuteTransaction = ExecuteTransaction' {}
- newExecuteTransaction :: NonEmpty ParameterizedStatement -> ExecuteTransaction
- executeTransaction_clientRequestToken :: Lens' ExecuteTransaction (Maybe Text)
- executeTransaction_returnConsumedCapacity :: Lens' ExecuteTransaction (Maybe ReturnConsumedCapacity)
- executeTransaction_transactStatements :: Lens' ExecuteTransaction (NonEmpty ParameterizedStatement)
- data ExecuteTransactionResponse = ExecuteTransactionResponse' {}
- newExecuteTransactionResponse :: Int -> ExecuteTransactionResponse
- executeTransactionResponse_consumedCapacity :: Lens' ExecuteTransactionResponse (Maybe [ConsumedCapacity])
- executeTransactionResponse_responses :: Lens' ExecuteTransactionResponse (Maybe (NonEmpty ItemResponse))
- executeTransactionResponse_httpStatus :: Lens' ExecuteTransactionResponse Int
Creating a Request
data ExecuteTransaction Source #
See: newExecuteTransaction
smart constructor.
ExecuteTransaction' | |
|
Instances
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.
ExecuteTransactionResponse' | |
|
Instances
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.
executeTransactionResponse_responses :: Lens' ExecuteTransactionResponse (Maybe (NonEmpty ItemResponse)) Source #
The response to a PartiQL transaction.
executeTransactionResponse_httpStatus :: Lens' ExecuteTransactionResponse Int Source #
The response's http status code.