amazonka-sdb-1.6.1: 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.PutAttributes

Contents

Description

The PutAttributes operation creates or replaces attributes in an item. The client may specify new attributes using a combination of the Attribute.X.Name and Attribute.X.Value parameters. The client specifies the first attribute by the parameters Attribute.0.Name and Attribute.0.Value , the second attribute by the parameters Attribute.1.Name and Attribute.1.Value , and so on.

Attributes are uniquely identified in an item by their name/value combination. For example, a single item can have the attributes { "first_name", "first_value" } and { "first_name", second_value" } . However, it cannot have two attribute instances where both the Attribute.X.Name and Attribute.X.Value are the same.

Optionally, the requestor can supply the Replace parameter for each individual attribute. Setting this value to true causes the new attribute value to replace the existing attribute value(s). For example, if an item has the attributes { a, '1' } , { b, '2'} and { b, '3' } and the requestor calls PutAttributes using the attributes { b, '4' } with the Replace parameter set to true, the final attributes of the item are changed to { a, '1' } and { b, '4' } , which replaces the previous values of the b attribute with the new value.

You cannot specify an empty string as an attribute name.

Because Amazon SimpleDB makes multiple copies of client data and uses an eventual consistency update model, an immediate GetAttributes or Select operation (read) immediately after a PutAttributes or DeleteAttributes operation (write) might not return the updated data.

The following limitations are enforced for this operation: * 256 total attribute name-value pairs per item * One billion attributes per domain * 10 GB of total user data storage per domain

Synopsis

Creating a Request

putAttributes Source #

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

Use one of the following lenses to modify other fields as desired:

  • paExpected - The update condition which, if specified, determines whether the specified attributes will be updated or not. The update condition must be satisfied in order for this request to be processed and the attributes to be updated.
  • paDomainName - The name of the domain in which to perform the operation.
  • paItemName - The name of the item.
  • paAttributes - The list of attributes.

data PutAttributes Source #

See: putAttributes smart constructor.

Instances
Eq PutAttributes Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

Data PutAttributes Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

Methods

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

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

toConstr :: PutAttributes -> Constr #

dataTypeOf :: PutAttributes -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutAttributes Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

Show PutAttributes Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

Generic PutAttributes Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

Associated Types

type Rep PutAttributes :: Type -> Type #

Hashable PutAttributes Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

AWSRequest PutAttributes Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

Associated Types

type Rs PutAttributes :: Type #

ToHeaders PutAttributes Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

ToPath PutAttributes Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

ToQuery PutAttributes Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

NFData PutAttributes Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

Methods

rnf :: PutAttributes -> () #

type Rep PutAttributes Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

type Rep PutAttributes = D1 (MetaData "PutAttributes" "Network.AWS.SDB.PutAttributes" "amazonka-sdb-1.6.1-DqICC6HvLZkBMo1L4m3WLm" False) (C1 (MetaCons "PutAttributes'" PrefixI True) ((S1 (MetaSel (Just "_paExpected") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe UpdateCondition)) :*: S1 (MetaSel (Just "_paDomainName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_paItemName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_paAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [ReplaceableAttribute]))))
type Rs PutAttributes Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

Request Lenses

paExpected :: Lens' PutAttributes (Maybe UpdateCondition) Source #

The update condition which, if specified, determines whether the specified attributes will be updated or not. The update condition must be satisfied in order for this request to be processed and the attributes to be updated.

paDomainName :: Lens' PutAttributes Text Source #

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

paItemName :: Lens' PutAttributes Text Source #

The name of the item.

Destructuring the Response

putAttributesResponse :: PutAttributesResponse Source #

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

data PutAttributesResponse Source #

See: putAttributesResponse smart constructor.

Instances
Eq PutAttributesResponse Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

Data PutAttributesResponse Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

Methods

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

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

toConstr :: PutAttributesResponse -> Constr #

dataTypeOf :: PutAttributesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutAttributesResponse Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

Show PutAttributesResponse Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

Generic PutAttributesResponse Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

Associated Types

type Rep PutAttributesResponse :: Type -> Type #

NFData PutAttributesResponse Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

Methods

rnf :: PutAttributesResponse -> () #

type Rep PutAttributesResponse Source # 
Instance details

Defined in Network.AWS.SDB.PutAttributes

type Rep PutAttributesResponse = D1 (MetaData "PutAttributesResponse" "Network.AWS.SDB.PutAttributes" "amazonka-sdb-1.6.1-DqICC6HvLZkBMo1L4m3WLm" False) (C1 (MetaCons "PutAttributesResponse'" PrefixI False) (U1 :: Type -> Type))