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

Contents

Description

Amazon SimpleDB is a web service providing the core database functions of data indexing and querying in the cloud. By offloading the time and effort associated with building and operating a web-scale database, SimpleDB provides developers the freedom to focus on application development. A traditional, clustered relational database requires a sizable upfront capital outlay, is complex to design, and often requires extensive and repetitive database administration. Amazon SimpleDB is dramatically simpler, requiring no schema, automatically indexing your data and providing a simple API for storage and access. This approach eliminates the administrative burden of data modeling, index maintenance, and performance tuning. Developers gain access to this functionality within Amazon's proven computing environment, are able to scale instantly, and pay only for what they use.

Visit http://aws.amazon.com/simpledb/ for more information.

Synopsis

Service Configuration

sdb :: Service #

API version 2009-04-15 of the Amazon SimpleDB SDK configuration.

Errors

Error matchers are designed for use with the functions provided by Control.Exception.Lens. This allows catching (and rethrowing) service specific errors returned by SDB.

InvalidNumberValueTests

_InvalidNumberValueTests :: AsError a => Getting (First ServiceError) a ServiceError #

Too many predicates exist in the query expression.

NoSuchDomain

_NoSuchDomain :: AsError a => Getting (First ServiceError) a ServiceError #

The specified domain does not exist.

NumberSubmittedItemsExceeded

_NumberSubmittedItemsExceeded :: AsError a => Getting (First ServiceError) a ServiceError #

Too many items exist in a single call.

AttributeDoesNotExist

_AttributeDoesNotExist :: AsError a => Getting (First ServiceError) a ServiceError #

The specified attribute does not exist.

NumberDomainAttributesExceeded

_NumberDomainAttributesExceeded :: AsError a => Getting (First ServiceError) a ServiceError #

Too many attributes in this domain.

DuplicateItemName

_DuplicateItemName :: AsError a => Getting (First ServiceError) a ServiceError #

The item name was specified more than once.

MissingParameter

_MissingParameter :: AsError a => Getting (First ServiceError) a ServiceError #

The request must contain the specified missing parameter.

InvalidNextToken

_InvalidNextToken :: AsError a => Getting (First ServiceError) a ServiceError #

The specified NextToken is not valid.

InvalidParameterValue

_InvalidParameterValue :: AsError a => Getting (First ServiceError) a ServiceError #

The value for a parameter is invalid.

NumberItemAttributesExceeded

_NumberItemAttributesExceeded :: AsError a => Getting (First ServiceError) a ServiceError #

Too many attributes in this item.

RequestTimeout

_RequestTimeout :: AsError a => Getting (First ServiceError) a ServiceError #

A timeout occurred when attempting to query the specified domain with specified query expression.

TooManyRequestedAttributes

_TooManyRequestedAttributes :: AsError a => Getting (First ServiceError) a ServiceError #

Too many attributes requested.

InvalidNumberPredicates

_InvalidNumberPredicates :: AsError a => Getting (First ServiceError) a ServiceError #

Too many predicates exist in the query expression.

NumberDomainsExceeded

_NumberDomainsExceeded :: AsError a => Getting (First ServiceError) a ServiceError #

Too many domains exist per this account.

NumberSubmittedAttributesExceeded

_NumberSubmittedAttributesExceeded :: AsError a => Getting (First ServiceError) a ServiceError #

Too many attributes exist in a single call.

NumberDomainBytesExceeded

_NumberDomainBytesExceeded :: AsError a => Getting (First ServiceError) a ServiceError #

Too many bytes in this domain.

InvalidQueryExpression

_InvalidQueryExpression :: AsError a => Getting (First ServiceError) a ServiceError #

The specified query expression syntax is not valid.

Waiters

Waiters poll by repeatedly sending a request until some remote success condition configured by the Wait specification is fulfilled. The Wait specification determines how many attempts should be made, in addition to delay and retry strategies.

Operations

Some AWS operations return results that are incomplete and require subsequent requests in order to obtain the entire result set. The process of sending subsequent requests to continue where a previous request left off is called pagination. For example, the ListObjects operation of Amazon S3 returns up to 1000 objects at a time, and you must send subsequent requests with the appropriate Marker in order to retrieve the next page of results.

Operations that have an AWSPager instance can transparently perform subsequent requests, correctly setting Markers and other request facets to iterate through the entire result set of a truncated API operation. Operations which support this have an additional note in the documentation.

Many operations have the ability to filter results on the server side. See the individual operation parameters for details.

BatchDeleteAttributes

BatchPutAttributes

GetAttributes

CreateDomain

DomainMetadata

Select (Paginated)

DeleteAttributes

PutAttributes

DeleteDomain

ListDomains (Paginated)

Types

Attribute

data Attribute #

See: attribute smart constructor.

Instances

Eq Attribute # 
Data Attribute # 

Methods

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

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

toConstr :: Attribute -> Constr #

dataTypeOf :: Attribute -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Attribute # 
Show Attribute # 
Generic Attribute # 

Associated Types

type Rep Attribute :: * -> * #

Hashable Attribute # 
NFData Attribute # 

Methods

rnf :: Attribute -> () #

FromXML Attribute # 
ToQuery Attribute # 
type Rep Attribute # 
type Rep Attribute = D1 (MetaData "Attribute" "Network.AWS.SDB.Types.Product" "amazonka-sdb-1.4.5-4DwFB7X1OAm5uM9dPezwOu" False) (C1 (MetaCons "Attribute'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_aAlternateValueEncoding") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_aAlternateNameEncoding") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_aName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_aValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))

attribute #

Arguments

:: Text

aName

-> Text

aValue

-> Attribute 

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

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

aName :: Lens' Attribute Text #

The name of the attribute.

aValue :: Lens' Attribute Text #

The value of the attribute.

DeletableItem

data DeletableItem #

See: deletableItem smart constructor.

Instances

Eq DeletableItem # 
Data DeletableItem # 

Methods

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

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

toConstr :: DeletableItem -> Constr #

dataTypeOf :: DeletableItem -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeletableItem # 
Show DeletableItem # 
Generic DeletableItem # 

Associated Types

type Rep DeletableItem :: * -> * #

Hashable DeletableItem # 
NFData DeletableItem # 

Methods

rnf :: DeletableItem -> () #

ToQuery DeletableItem # 
type Rep DeletableItem # 
type Rep DeletableItem = D1 (MetaData "DeletableItem" "Network.AWS.SDB.Types.Product" "amazonka-sdb-1.4.5-4DwFB7X1OAm5uM9dPezwOu" False) (C1 (MetaCons "DeletableItem'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_diAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Attribute]))) (S1 (MetaSel (Just Symbol "_diName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))

deletableItem #

Arguments

:: Text

diName

-> DeletableItem 

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

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

diAttributes :: Lens' DeletableItem [Attribute] #

Undocumented member.

diName :: Lens' DeletableItem Text #

Undocumented member.

Item

data Item #

See: item smart constructor.

Instances

Eq Item # 

Methods

(==) :: Item -> Item -> Bool #

(/=) :: Item -> Item -> Bool #

Data Item # 

Methods

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

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

toConstr :: Item -> Constr #

dataTypeOf :: Item -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Item # 
Show Item # 

Methods

showsPrec :: Int -> Item -> ShowS #

show :: Item -> String #

showList :: [Item] -> ShowS #

Generic Item # 

Associated Types

type Rep Item :: * -> * #

Methods

from :: Item -> Rep Item x #

to :: Rep Item x -> Item #

Hashable Item # 

Methods

hashWithSalt :: Int -> Item -> Int #

hash :: Item -> Int #

NFData Item # 

Methods

rnf :: Item -> () #

FromXML Item # 

Methods

parseXML :: [Node] -> Either String Item #

type Rep Item # 
type Rep Item = D1 (MetaData "Item" "Network.AWS.SDB.Types.Product" "amazonka-sdb-1.4.5-4DwFB7X1OAm5uM9dPezwOu" False) (C1 (MetaCons "Item'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_iAlternateNameEncoding") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_iName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_iAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Attribute])))))

item #

Arguments

:: Text

iName

-> Item 

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

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

iName :: Lens' Item Text #

The name of the item.

iAttributes :: Lens' Item [Attribute] #

A list of attributes.

ReplaceableAttribute

data ReplaceableAttribute #

See: replaceableAttribute smart constructor.

Instances

Eq ReplaceableAttribute # 
Data ReplaceableAttribute # 

Methods

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

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

toConstr :: ReplaceableAttribute -> Constr #

dataTypeOf :: ReplaceableAttribute -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ReplaceableAttribute # 
Show ReplaceableAttribute # 
Generic ReplaceableAttribute # 
Hashable ReplaceableAttribute # 
NFData ReplaceableAttribute # 

Methods

rnf :: ReplaceableAttribute -> () #

ToQuery ReplaceableAttribute # 
type Rep ReplaceableAttribute # 
type Rep ReplaceableAttribute = D1 (MetaData "ReplaceableAttribute" "Network.AWS.SDB.Types.Product" "amazonka-sdb-1.4.5-4DwFB7X1OAm5uM9dPezwOu" False) (C1 (MetaCons "ReplaceableAttribute'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_raReplace") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_raName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_raValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))

replaceableAttribute #

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

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

  • raReplace - false
  • raName - The name of the replaceable attribute.
  • raValue - The value of the replaceable attribute.

raName :: Lens' ReplaceableAttribute Text #

The name of the replaceable attribute.

raValue :: Lens' ReplaceableAttribute Text #

The value of the replaceable attribute.

ReplaceableItem

data ReplaceableItem #

See: replaceableItem smart constructor.

Instances

Eq ReplaceableItem # 
Data ReplaceableItem # 

Methods

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

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

toConstr :: ReplaceableItem -> Constr #

dataTypeOf :: ReplaceableItem -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ReplaceableItem # 
Show ReplaceableItem # 
Generic ReplaceableItem # 
Hashable ReplaceableItem # 
NFData ReplaceableItem # 

Methods

rnf :: ReplaceableItem -> () #

ToQuery ReplaceableItem # 
type Rep ReplaceableItem # 
type Rep ReplaceableItem = D1 (MetaData "ReplaceableItem" "Network.AWS.SDB.Types.Product" "amazonka-sdb-1.4.5-4DwFB7X1OAm5uM9dPezwOu" False) (C1 (MetaCons "ReplaceableItem'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_riName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_riAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [ReplaceableAttribute]))))

replaceableItem #

Arguments

:: Text

riName

-> ReplaceableItem 

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

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

  • riName - The name of the replaceable item.
  • riAttributes - The list of attributes for a replaceable item.

riName :: Lens' ReplaceableItem Text #

The name of the replaceable item.

riAttributes :: Lens' ReplaceableItem [ReplaceableAttribute] #

The list of attributes for a replaceable item.

UpdateCondition

data UpdateCondition #

Specifies the conditions under which data should be updated. If an update condition is specified for a request, the data will only be updated if the condition is satisfied. For example, if an attribute with a specific name and value exists, or if a specific attribute doesn't exist.

See: updateCondition smart constructor.

Instances

Eq UpdateCondition # 
Data UpdateCondition # 

Methods

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

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

toConstr :: UpdateCondition -> Constr #

dataTypeOf :: UpdateCondition -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateCondition # 
Show UpdateCondition # 
Generic UpdateCondition # 
Hashable UpdateCondition # 
NFData UpdateCondition # 

Methods

rnf :: UpdateCondition -> () #

ToQuery UpdateCondition # 
type Rep UpdateCondition # 
type Rep UpdateCondition = D1 (MetaData "UpdateCondition" "Network.AWS.SDB.Types.Product" "amazonka-sdb-1.4.5-4DwFB7X1OAm5uM9dPezwOu" False) (C1 (MetaCons "UpdateCondition'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ucExists") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_ucValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ucName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

updateCondition :: UpdateCondition #

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

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

  • ucExists - A value specifying whether or not the specified attribute must exist with the specified value in order for the update condition to be satisfied. Specify true if the attribute must exist for the update condition to be satisfied. Specify false if the attribute should not exist in order for the update condition to be satisfied.
  • ucValue - The value of an attribute. This value can only be specified when the Exists parameter is equal to true .
  • ucName - The name of the attribute involved in the condition.

ucExists :: Lens' UpdateCondition (Maybe Bool) #

A value specifying whether or not the specified attribute must exist with the specified value in order for the update condition to be satisfied. Specify true if the attribute must exist for the update condition to be satisfied. Specify false if the attribute should not exist in order for the update condition to be satisfied.

ucValue :: Lens' UpdateCondition (Maybe Text) #

The value of an attribute. This value can only be specified when the Exists parameter is equal to true .

ucName :: Lens' UpdateCondition (Maybe Text) #

The name of the attribute involved in the condition.