amazonka-sdb-1.4.5: Amazon SimpleDB SDK.

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

Network.AWS.SDB.DeleteAttributes

Contents

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

deleteAttributes #

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:

  • daAttributes - A list of Attributes. Similar to columns on a spreadsheet, attributes represent categories of data that can be assigned to items.
  • daExpected - 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 - The name of the domain in which to perform the operation.
  • daItemName - The name of the item. Similar to rows on a spreadsheet, items represent individual objects that contain one or more value-attribute pairs.

data DeleteAttributes #

See: deleteAttributes smart constructor.

Instances

Eq DeleteAttributes # 
Data DeleteAttributes # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteAttributes -> c DeleteAttributes #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteAttributes #

toConstr :: DeleteAttributes -> Constr #

dataTypeOf :: DeleteAttributes -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteAttributes) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteAttributes) #

gmapT :: (forall b. Data b => b -> b) -> DeleteAttributes -> DeleteAttributes #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteAttributes -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteAttributes -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteAttributes -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteAttributes -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteAttributes -> m DeleteAttributes #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteAttributes -> m DeleteAttributes #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteAttributes -> m DeleteAttributes #

Read DeleteAttributes # 
Show DeleteAttributes # 
Generic DeleteAttributes # 
Hashable DeleteAttributes # 
NFData DeleteAttributes # 

Methods

rnf :: DeleteAttributes -> () #

AWSRequest DeleteAttributes # 
ToQuery DeleteAttributes # 
ToPath DeleteAttributes # 
ToHeaders DeleteAttributes # 
type Rep DeleteAttributes # 
type Rep DeleteAttributes = D1 (MetaData "DeleteAttributes" "Network.AWS.SDB.DeleteAttributes" "amazonka-sdb-1.4.5-4DwFB7X1OAm5uM9dPezwOu" False) (C1 (MetaCons "DeleteAttributes'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_daAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Attribute]))) (S1 (MetaSel (Just Symbol "_daExpected") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe UpdateCondition)))) ((:*:) (S1 (MetaSel (Just Symbol "_daDomainName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_daItemName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs DeleteAttributes # 

Request Lenses

daAttributes :: Lens' DeleteAttributes [Attribute] #

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) #

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 #

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

daItemName :: Lens' DeleteAttributes Text #

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 #

Creates a value of DeleteAttributesResponse with the minimum fields required to make a request.

data DeleteAttributesResponse #

See: deleteAttributesResponse smart constructor.

Instances

Eq DeleteAttributesResponse # 
Data DeleteAttributesResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteAttributesResponse -> c DeleteAttributesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteAttributesResponse #

toConstr :: DeleteAttributesResponse -> Constr #

dataTypeOf :: DeleteAttributesResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteAttributesResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteAttributesResponse) #

gmapT :: (forall b. Data b => b -> b) -> DeleteAttributesResponse -> DeleteAttributesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteAttributesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteAttributesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteAttributesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteAttributesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteAttributesResponse -> m DeleteAttributesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteAttributesResponse -> m DeleteAttributesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteAttributesResponse -> m DeleteAttributesResponse #

Read DeleteAttributesResponse # 
Show DeleteAttributesResponse # 
Generic DeleteAttributesResponse # 
NFData DeleteAttributesResponse # 
type Rep DeleteAttributesResponse # 
type Rep DeleteAttributesResponse = D1 (MetaData "DeleteAttributesResponse" "Network.AWS.SDB.DeleteAttributes" "amazonka-sdb-1.4.5-4DwFB7X1OAm5uM9dPezwOu" False) (C1 (MetaCons "DeleteAttributesResponse'" PrefixI False) U1)