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 |
Documentation
data WriteRequest Source #
Represents an operation to perform - either DeleteItem
or PutItem
.
You can only request one of these operations, not both, in a single
WriteRequest
. If you do need to perform both of these operations, you
need to provide two separate WriteRequest
objects.
See: newWriteRequest
smart constructor.
WriteRequest' | |
|
Instances
newWriteRequest :: WriteRequest Source #
Create a value of WriteRequest
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:deleteRequest:WriteRequest'
, writeRequest_deleteRequest
- A request to perform a DeleteItem
operation.
$sel:putRequest:WriteRequest'
, writeRequest_putRequest
- A request to perform a PutItem
operation.
writeRequest_deleteRequest :: Lens' WriteRequest (Maybe DeleteRequest) Source #
A request to perform a DeleteItem
operation.
writeRequest_putRequest :: Lens' WriteRequest (Maybe PutRequest) Source #
A request to perform a PutItem
operation.