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 |
Performs all the write operations in a batch. Either all the operations succeed or none.
Synopsis
- data BatchWrite = BatchWrite' {}
- newBatchWrite :: Text -> BatchWrite
- batchWrite_directoryArn :: Lens' BatchWrite Text
- batchWrite_operations :: Lens' BatchWrite [BatchWriteOperation]
- data BatchWriteResponse = BatchWriteResponse' {}
- newBatchWriteResponse :: Int -> BatchWriteResponse
- batchWriteResponse_responses :: Lens' BatchWriteResponse (Maybe [BatchWriteOperationResponse])
- batchWriteResponse_httpStatus :: Lens' BatchWriteResponse Int
Creating a Request
data BatchWrite Source #
See: newBatchWrite
smart constructor.
BatchWrite' | |
|
Instances
Create a value of BatchWrite
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:directoryArn:BatchWrite'
, batchWrite_directoryArn
- The Amazon Resource Name (ARN) that is associated with the Directory.
For more information, see arns.
$sel:operations:BatchWrite'
, batchWrite_operations
- A list of operations that are part of the batch.
Request Lenses
batchWrite_directoryArn :: Lens' BatchWrite Text Source #
The Amazon Resource Name (ARN) that is associated with the Directory. For more information, see arns.
batchWrite_operations :: Lens' BatchWrite [BatchWriteOperation] Source #
A list of operations that are part of the batch.
Destructuring the Response
data BatchWriteResponse Source #
See: newBatchWriteResponse
smart constructor.
BatchWriteResponse' | |
|
Instances
newBatchWriteResponse Source #
Create a value of BatchWriteResponse
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:BatchWriteResponse'
, batchWriteResponse_responses
- A list of all the responses for each batch write.
$sel:httpStatus:BatchWriteResponse'
, batchWriteResponse_httpStatus
- The response's http status code.
Response Lenses
batchWriteResponse_responses :: Lens' BatchWriteResponse (Maybe [BatchWriteOperationResponse]) Source #
A list of all the responses for each batch write.
batchWriteResponse_httpStatus :: Lens' BatchWriteResponse Int Source #
The response's http status code.