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 batch reads and writes on data stored in DynamoDB, using PartiQL.
Synopsis
- data BatchExecuteStatement = BatchExecuteStatement' {}
- newBatchExecuteStatement :: NonEmpty BatchStatementRequest -> BatchExecuteStatement
- batchExecuteStatement_statements :: Lens' BatchExecuteStatement (NonEmpty BatchStatementRequest)
- data BatchExecuteStatementResponse = BatchExecuteStatementResponse' {}
- newBatchExecuteStatementResponse :: Int -> BatchExecuteStatementResponse
- batchExecuteStatementResponse_responses :: Lens' BatchExecuteStatementResponse (Maybe [BatchStatementResponse])
- batchExecuteStatementResponse_httpStatus :: Lens' BatchExecuteStatementResponse Int
Creating a Request
data BatchExecuteStatement Source #
See: newBatchExecuteStatement
smart constructor.
BatchExecuteStatement' | |
|
Instances
newBatchExecuteStatement Source #
Create a value of BatchExecuteStatement
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:statements:BatchExecuteStatement'
, batchExecuteStatement_statements
- The list of PartiQL statements representing the batch to run.
Request Lenses
batchExecuteStatement_statements :: Lens' BatchExecuteStatement (NonEmpty BatchStatementRequest) Source #
The list of PartiQL statements representing the batch to run.
Destructuring the Response
data BatchExecuteStatementResponse Source #
See: newBatchExecuteStatementResponse
smart constructor.
BatchExecuteStatementResponse' | |
|
Instances
newBatchExecuteStatementResponse Source #
Create a value of BatchExecuteStatementResponse
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:BatchExecuteStatementResponse'
, batchExecuteStatementResponse_responses
- The response to each PartiQL statement in the batch.
$sel:httpStatus:BatchExecuteStatementResponse'
, batchExecuteStatementResponse_httpStatus
- The response's http status code.
Response Lenses
batchExecuteStatementResponse_responses :: Lens' BatchExecuteStatementResponse (Maybe [BatchStatementResponse]) Source #
The response to each PartiQL statement in the batch.
batchExecuteStatementResponse_httpStatus :: Lens' BatchExecuteStatementResponse Int Source #
The response's http status code.