libZSservicesZSamazonka-sdbZSamazonka-sdb
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SDB.DeleteAttributes

Description

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

Creating a Request

data DeleteAttributes Source #

See: newDeleteAttributes smart constructor.

Constructors

DeleteAttributes' 

Fields

  • attributes :: Maybe [Attribute]

    A list of Attributes. Similar to columns on a spreadsheet, attributes represent categories of data that can be assigned to items.

  • expected :: Maybe UpdateCondition

    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.

  • domainName :: Text

    The name of the domain in which to perform the operation.

  • itemName :: Text

    The name of the item. Similar to rows on a spreadsheet, items represent individual objects that contain one or more value-attribute pairs.

Instances

Instances details
Eq DeleteAttributes Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

Read DeleteAttributes Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

Show DeleteAttributes Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

Generic DeleteAttributes Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

Associated Types

type Rep DeleteAttributes :: Type -> Type #

NFData DeleteAttributes Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

Methods

rnf :: DeleteAttributes -> () #

Hashable DeleteAttributes Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

AWSRequest DeleteAttributes Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

Associated Types

type AWSResponse DeleteAttributes #

ToHeaders DeleteAttributes Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

ToPath DeleteAttributes Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

ToQuery DeleteAttributes Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

type Rep DeleteAttributes Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

type Rep DeleteAttributes = D1 ('MetaData "DeleteAttributes" "Amazonka.SDB.DeleteAttributes" "libZSservicesZSamazonka-sdbZSamazonka-sdb" 'False) (C1 ('MetaCons "DeleteAttributes'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Attribute])) :*: S1 ('MetaSel ('Just "expected") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UpdateCondition))) :*: (S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "itemName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse DeleteAttributes Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

newDeleteAttributes Source #

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

Instances details
Eq DeleteAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

Read DeleteAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

Show DeleteAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

Generic DeleteAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

Associated Types

type Rep DeleteAttributesResponse :: Type -> Type #

NFData DeleteAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

type Rep DeleteAttributesResponse Source # 
Instance details

Defined in Amazonka.SDB.DeleteAttributes

type Rep DeleteAttributesResponse = D1 ('MetaData "DeleteAttributesResponse" "Amazonka.SDB.DeleteAttributes" "libZSservicesZSamazonka-sdbZSamazonka-sdb" 'False) (C1 ('MetaCons "DeleteAttributesResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteAttributesResponse :: DeleteAttributesResponse Source #

Create a value of DeleteAttributesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.