Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Deletes one or more attributes associated with an item. If all attributes of the item are deleted, the item is deleted.
DeleteAttributes
is an idempotent operation; running it multiple times
on the same item or attribute does not result in an error response.
Because Amazon SimpleDB makes multiple copies of item data and uses an
eventual consistency update model, performing a GetAttributes or Select
operation (read) immediately after a DeleteAttributes
or PutAttributes
operation (write) might not return updated item data.
See: AWS API Reference for DeleteAttributes.
- deleteAttributes :: Text -> Text -> DeleteAttributes
- data DeleteAttributes
- daAttributes :: Lens' DeleteAttributes [Attribute]
- daExpected :: Lens' DeleteAttributes (Maybe UpdateCondition)
- daDomainName :: Lens' DeleteAttributes Text
- daItemName :: Lens' DeleteAttributes Text
- deleteAttributesResponse :: DeleteAttributesResponse
- data DeleteAttributesResponse
Creating a Request
Creates a value of DeleteAttributes
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DeleteAttributes Source
See: deleteAttributes
smart constructor.
Request Lenses
daAttributes :: Lens' DeleteAttributes [Attribute] Source
A list of Attributes. Similar to columns on a spreadsheet, attributes represent categories of data that can be assigned to items.
daExpected :: Lens' DeleteAttributes (Maybe UpdateCondition) Source
The update condition which, if specified, determines whether the specified attributes will be deleted or not. The update condition must be satisfied in order for this request to be processed and the attributes to be deleted.
daDomainName :: Lens' DeleteAttributes Text Source
The name of the domain in which to perform the operation.
daItemName :: Lens' DeleteAttributes Text Source
The name of the item. Similar to rows on a spreadsheet, items represent individual objects that contain one or more value-attribute pairs.
Destructuring the Response
deleteAttributesResponse :: DeleteAttributesResponse Source
Creates a value of DeleteAttributesResponse
with the minimum fields required to make a request.
data DeleteAttributesResponse Source
See: deleteAttributesResponse
smart constructor.