amazonka-sdb-1.6.0: Amazon SimpleDB SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

Data DeleteAttributes # 
Instance details

Defined in Network.AWS.SDB.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 # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

Show DeleteAttributes # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

Generic DeleteAttributes # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

Associated Types

type Rep DeleteAttributes :: * -> * #

Hashable DeleteAttributes # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

AWSRequest DeleteAttributes # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

Associated Types

type Rs DeleteAttributes :: * #

ToHeaders DeleteAttributes # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

ToPath DeleteAttributes # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

ToQuery DeleteAttributes # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

NFData DeleteAttributes # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

Methods

rnf :: DeleteAttributes -> () #

type Rep DeleteAttributes # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

type Rep DeleteAttributes = D1 (MetaData "DeleteAttributes" "Network.AWS.SDB.DeleteAttributes" "amazonka-sdb-1.6.0-GFMW1qDiM3KBRcqbKnU7Mn" False) (C1 (MetaCons "DeleteAttributes'" PrefixI True) ((S1 (MetaSel (Just "_daAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Attribute])) :*: S1 (MetaSel (Just "_daExpected") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe UpdateCondition))) :*: (S1 (MetaSel (Just "_daDomainName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_daItemName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DeleteAttributes # 
Instance details

Defined in Network.AWS.SDB.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 # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

Data DeleteAttributesResponse # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

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 # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

Show DeleteAttributesResponse # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

Generic DeleteAttributesResponse # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

Associated Types

type Rep DeleteAttributesResponse :: * -> * #

NFData DeleteAttributesResponse # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

type Rep DeleteAttributesResponse # 
Instance details

Defined in Network.AWS.SDB.DeleteAttributes

type Rep DeleteAttributesResponse = D1 (MetaData "DeleteAttributesResponse" "Network.AWS.SDB.DeleteAttributes" "amazonka-sdb-1.6.0-GFMW1qDiM3KBRcqbKnU7Mn" False) (C1 (MetaCons "DeleteAttributesResponse'" PrefixI False) (U1 :: * -> *))