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 |
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.
Synopsis
- data DeleteAttributes = DeleteAttributes' {
- attributes :: Maybe [Attribute]
- expected :: Maybe UpdateCondition
- domainName :: Text
- itemName :: Text
- newDeleteAttributes :: Text -> Text -> DeleteAttributes
- deleteAttributes_attributes :: Lens' DeleteAttributes (Maybe [Attribute])
- deleteAttributes_expected :: Lens' DeleteAttributes (Maybe UpdateCondition)
- deleteAttributes_domainName :: Lens' DeleteAttributes Text
- deleteAttributes_itemName :: Lens' DeleteAttributes Text
- data DeleteAttributesResponse = DeleteAttributesResponse' {
- newDeleteAttributesResponse :: DeleteAttributesResponse
Creating a Request
data DeleteAttributes Source #
See: newDeleteAttributes
smart constructor.
DeleteAttributes' | |
|
Instances
Create a value of DeleteAttributes
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:attributes:DeleteAttributes'
, deleteAttributes_attributes
- A list of Attributes. Similar to columns on a spreadsheet, attributes
represent categories of data that can be assigned to items.
$sel:expected:DeleteAttributes'
, deleteAttributes_expected
- 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.
$sel:domainName:DeleteAttributes'
, deleteAttributes_domainName
- The name of the domain in which to perform the operation.
$sel:itemName:DeleteAttributes'
, deleteAttributes_itemName
- The name of the item. Similar to rows on a spreadsheet, items represent
individual objects that contain one or more value-attribute pairs.
Request Lenses
deleteAttributes_attributes :: Lens' DeleteAttributes (Maybe [Attribute]) Source #
A list of Attributes. Similar to columns on a spreadsheet, attributes represent categories of data that can be assigned to items.
deleteAttributes_expected :: 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.
deleteAttributes_domainName :: Lens' DeleteAttributes Text Source #
The name of the domain in which to perform the operation.
deleteAttributes_itemName :: 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
data DeleteAttributesResponse Source #
See: newDeleteAttributesResponse
smart constructor.
Instances
Eq DeleteAttributesResponse Source # | |
Defined in Amazonka.SDB.DeleteAttributes | |
Read DeleteAttributesResponse Source # | |
Show DeleteAttributesResponse Source # | |
Defined in Amazonka.SDB.DeleteAttributes showsPrec :: Int -> DeleteAttributesResponse -> ShowS # show :: DeleteAttributesResponse -> String # showList :: [DeleteAttributesResponse] -> ShowS # | |
Generic DeleteAttributesResponse Source # | |
Defined in Amazonka.SDB.DeleteAttributes type Rep DeleteAttributesResponse :: Type -> Type # | |
NFData DeleteAttributesResponse Source # | |
Defined in Amazonka.SDB.DeleteAttributes rnf :: DeleteAttributesResponse -> () # | |
type Rep DeleteAttributesResponse Source # | |
newDeleteAttributesResponse :: DeleteAttributesResponse Source #
Create a value of DeleteAttributesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.