| 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 |
Amazonka.CloudDirectory.BatchWrite
Description
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.
Constructors
| BatchWrite' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> BatchWrite |
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:
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.
Constructors
| BatchWriteResponse' | |
Fields
| |
Instances
newBatchWriteResponse Source #
Arguments
| :: Int | |
| -> BatchWriteResponse |
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.