| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.CloudDirectory.BatchWrite
Description
Performs all the write operations in a batch. Either all the operations succeed or none.
- batchWrite :: Text -> BatchWrite
- data BatchWrite
- bwDirectoryARN :: Lens' BatchWrite Text
- bwOperations :: Lens' BatchWrite [BatchWriteOperation]
- batchWriteResponse :: Int -> BatchWriteResponse
- data BatchWriteResponse
- bwrsResponses :: Lens' BatchWriteResponse [BatchWriteOperationResponse]
- bwrsResponseStatus :: Lens' BatchWriteResponse Int
Creating a Request
Arguments
| :: Text | |
| -> BatchWrite |
Creates a value of BatchWrite with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bwDirectoryARN- The Amazon Resource Name (ARN) that is associated with theDirectory. For more information, seearns.bwOperations- A list of operations that are part of the batch.
data BatchWrite Source #
See: batchWrite smart constructor.
Instances
Request Lenses
bwDirectoryARN :: Lens' BatchWrite Text Source #
The Amazon Resource Name (ARN) that is associated with the Directory . For more information, see arns .
bwOperations :: Lens' BatchWrite [BatchWriteOperation] Source #
A list of operations that are part of the batch.
Destructuring the Response
Arguments
| :: Int | |
| -> BatchWriteResponse |
Creates a value of BatchWriteResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bwrsResponses- A list of all the responses for each batch write.bwrsResponseStatus- -- | The response status code.
data BatchWriteResponse Source #
See: batchWriteResponse smart constructor.
Response Lenses
bwrsResponses :: Lens' BatchWriteResponse [BatchWriteOperationResponse] Source #
A list of all the responses for each batch write.
bwrsResponseStatus :: Lens' BatchWriteResponse Int Source #
- - | The response status code.