Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
This operation allows you to perform transactional reads or writes on data stored in DynamoDB, using PartiQL.
Synopsis
- data ExecuteTransaction = ExecuteTransaction' {}
- newExecuteTransaction :: NonEmpty ParameterizedStatement -> ExecuteTransaction
- executeTransaction_clientRequestToken :: Lens' ExecuteTransaction (Maybe Text)
- executeTransaction_transactStatements :: Lens' ExecuteTransaction (NonEmpty ParameterizedStatement)
- data ExecuteTransactionResponse = ExecuteTransactionResponse' {
- responses :: Maybe (NonEmpty ItemResponse)
- httpStatus :: Int
- newExecuteTransactionResponse :: Int -> ExecuteTransactionResponse
- 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: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_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:responses:ExecuteTransactionResponse'
, executeTransactionResponse_responses
- The response to a PartiQL transaction.
$sel:httpStatus:ExecuteTransactionResponse'
, executeTransactionResponse_httpStatus
- The response's http status code.
Response Lenses
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.