amazonka-sdb-2.0: Amazon SimpleDB SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SDB.Types

Description

 
Synopsis

Service Configuration

defaultService :: Service Source #

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

Errors

_AttributeDoesNotExist :: AsError a => Fold a ServiceError Source #

The specified attribute does not exist.

_DuplicateItemName :: AsError a => Fold a ServiceError Source #

The item name was specified more than once.

_InvalidNextToken :: AsError a => Fold a ServiceError Source #

The specified NextToken is not valid.

_InvalidNumberPredicates :: AsError a => Fold a ServiceError Source #

Too many predicates exist in the query expression.

_InvalidNumberValueTests :: AsError a => Fold a ServiceError Source #

Too many predicates exist in the query expression.

_InvalidParameterValue :: AsError a => Fold a ServiceError Source #

The value for a parameter is invalid.

_InvalidQueryExpression :: AsError a => Fold a ServiceError Source #

The specified query expression syntax is not valid.

_MissingParameter :: AsError a => Fold a ServiceError Source #

The request must contain the specified missing parameter.

_NoSuchDomain :: AsError a => Fold a ServiceError Source #

The specified domain does not exist.

_NumberDomainAttributesExceeded :: AsError a => Fold a ServiceError Source #

Too many attributes in this domain.

_NumberDomainBytesExceeded :: AsError a => Fold a ServiceError Source #

Too many bytes in this domain.

_NumberDomainsExceeded :: AsError a => Fold a ServiceError Source #

Too many domains exist per this account.

_NumberItemAttributesExceeded :: AsError a => Fold a ServiceError Source #

Too many attributes in this item.

_NumberSubmittedAttributesExceeded :: AsError a => Fold a ServiceError Source #

Too many attributes exist in a single call.

_NumberSubmittedItemsExceeded :: AsError a => Fold a ServiceError Source #

Too many items exist in a single call.

_RequestTimeout :: AsError a => Fold a ServiceError Source #

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

_TooManyRequestedAttributes :: AsError a => Fold a ServiceError Source #

Too many attributes requested.

Attribute

data Attribute Source #

See: newAttribute smart constructor.

Constructors

Attribute' 

Fields

Instances

Instances details
ToQuery Attribute Source # 
Instance details

Defined in Amazonka.SDB.Types.Attribute

FromXML Attribute Source # 
Instance details

Defined in Amazonka.SDB.Types.Attribute

Generic Attribute Source # 
Instance details

Defined in Amazonka.SDB.Types.Attribute

Associated Types

type Rep Attribute :: Type -> Type #

Read Attribute Source # 
Instance details

Defined in Amazonka.SDB.Types.Attribute

Show Attribute Source # 
Instance details

Defined in Amazonka.SDB.Types.Attribute

NFData Attribute Source # 
Instance details

Defined in Amazonka.SDB.Types.Attribute

Methods

rnf :: Attribute -> () #

Eq Attribute Source # 
Instance details

Defined in Amazonka.SDB.Types.Attribute

Hashable Attribute Source # 
Instance details

Defined in Amazonka.SDB.Types.Attribute

type Rep Attribute Source # 
Instance details

Defined in Amazonka.SDB.Types.Attribute

type Rep Attribute = D1 ('MetaData "Attribute" "Amazonka.SDB.Types.Attribute" "amazonka-sdb-2.0-7a0e7nVPNy1GutfrhcqnW8" 'False) (C1 ('MetaCons "Attribute'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "alternateNameEncoding") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "alternateValueEncoding") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newAttribute Source #

Create a value of Attribute 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:alternateNameEncoding:Attribute', attribute_alternateNameEncoding -

$sel:alternateValueEncoding:Attribute', attribute_alternateValueEncoding -

$sel:name:Attribute', attribute_name - The name of the attribute.

$sel:value:Attribute', attribute_value - The value of the attribute.

attribute_name :: Lens' Attribute Text Source #

The name of the attribute.

attribute_value :: Lens' Attribute Text Source #

The value of the attribute.

DeletableItem

data DeletableItem Source #

See: newDeletableItem smart constructor.

Constructors

DeletableItem' 

Instances

Instances details
ToQuery DeletableItem Source # 
Instance details

Defined in Amazonka.SDB.Types.DeletableItem

Generic DeletableItem Source # 
Instance details

Defined in Amazonka.SDB.Types.DeletableItem

Associated Types

type Rep DeletableItem :: Type -> Type #

Read DeletableItem Source # 
Instance details

Defined in Amazonka.SDB.Types.DeletableItem

Show DeletableItem Source # 
Instance details

Defined in Amazonka.SDB.Types.DeletableItem

NFData DeletableItem Source # 
Instance details

Defined in Amazonka.SDB.Types.DeletableItem

Methods

rnf :: DeletableItem -> () #

Eq DeletableItem Source # 
Instance details

Defined in Amazonka.SDB.Types.DeletableItem

Hashable DeletableItem Source # 
Instance details

Defined in Amazonka.SDB.Types.DeletableItem

type Rep DeletableItem Source # 
Instance details

Defined in Amazonka.SDB.Types.DeletableItem

type Rep DeletableItem = D1 ('MetaData "DeletableItem" "Amazonka.SDB.Types.DeletableItem" "amazonka-sdb-2.0-7a0e7nVPNy1GutfrhcqnW8" 'False) (C1 ('MetaCons "DeletableItem'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Attribute])) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeletableItem Source #

Create a value of DeletableItem 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:DeletableItem', deletableItem_attributes - Undocumented member.

DeletableItem, deletableItem_name - Undocumented member.

Item

data Item Source #

See: newItem smart constructor.

Constructors

Item' 

Fields

Instances

Instances details
FromXML Item Source # 
Instance details

Defined in Amazonka.SDB.Types.Item

Methods

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

Generic Item Source # 
Instance details

Defined in Amazonka.SDB.Types.Item

Associated Types

type Rep Item :: Type -> Type #

Methods

from :: Item -> Rep Item x #

to :: Rep Item x -> Item #

Read Item Source # 
Instance details

Defined in Amazonka.SDB.Types.Item

Show Item Source # 
Instance details

Defined in Amazonka.SDB.Types.Item

Methods

showsPrec :: Int -> Item -> ShowS #

show :: Item -> String #

showList :: [Item] -> ShowS #

NFData Item Source # 
Instance details

Defined in Amazonka.SDB.Types.Item

Methods

rnf :: Item -> () #

Eq Item Source # 
Instance details

Defined in Amazonka.SDB.Types.Item

Methods

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

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

Hashable Item Source # 
Instance details

Defined in Amazonka.SDB.Types.Item

Methods

hashWithSalt :: Int -> Item -> Int #

hash :: Item -> Int #

type Rep Item Source # 
Instance details

Defined in Amazonka.SDB.Types.Item

type Rep Item = D1 ('MetaData "Item" "Amazonka.SDB.Types.Item" "amazonka-sdb-2.0-7a0e7nVPNy1GutfrhcqnW8" 'False) (C1 ('MetaCons "Item'" 'PrefixI 'True) (S1 ('MetaSel ('Just "alternateNameEncoding") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Attribute]))))

newItem Source #

Arguments

:: Text

Item

-> Item 

Create a value of Item 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:

Item, item_alternateNameEncoding -

Item, item_name - The name of the item.

$sel:attributes:Item', item_attributes - A list of attributes.

item_name :: Lens' Item Text Source #

The name of the item.

item_attributes :: Lens' Item [Attribute] Source #

A list of attributes.

ReplaceableAttribute

data ReplaceableAttribute Source #

See: newReplaceableAttribute smart constructor.

Constructors

ReplaceableAttribute' 

Fields

  • replace :: Maybe Bool

    A flag specifying whether or not to replace the attribute/value pair or to add a new attribute/value pair. The default setting is false.

  • name :: Text

    The name of the replaceable attribute.

  • value :: Text

    The value of the replaceable attribute.

Instances

Instances details
ToQuery ReplaceableAttribute Source # 
Instance details

Defined in Amazonka.SDB.Types.ReplaceableAttribute

Generic ReplaceableAttribute Source # 
Instance details

Defined in Amazonka.SDB.Types.ReplaceableAttribute

Associated Types

type Rep ReplaceableAttribute :: Type -> Type #

Read ReplaceableAttribute Source # 
Instance details

Defined in Amazonka.SDB.Types.ReplaceableAttribute

Show ReplaceableAttribute Source # 
Instance details

Defined in Amazonka.SDB.Types.ReplaceableAttribute

NFData ReplaceableAttribute Source # 
Instance details

Defined in Amazonka.SDB.Types.ReplaceableAttribute

Methods

rnf :: ReplaceableAttribute -> () #

Eq ReplaceableAttribute Source # 
Instance details

Defined in Amazonka.SDB.Types.ReplaceableAttribute

Hashable ReplaceableAttribute Source # 
Instance details

Defined in Amazonka.SDB.Types.ReplaceableAttribute

type Rep ReplaceableAttribute Source # 
Instance details

Defined in Amazonka.SDB.Types.ReplaceableAttribute

type Rep ReplaceableAttribute = D1 ('MetaData "ReplaceableAttribute" "Amazonka.SDB.Types.ReplaceableAttribute" "amazonka-sdb-2.0-7a0e7nVPNy1GutfrhcqnW8" 'False) (C1 ('MetaCons "ReplaceableAttribute'" 'PrefixI 'True) (S1 ('MetaSel ('Just "replace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newReplaceableAttribute Source #

Create a value of ReplaceableAttribute 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:replace:ReplaceableAttribute', replaceableAttribute_replace - A flag specifying whether or not to replace the attribute/value pair or to add a new attribute/value pair. The default setting is false.

$sel:name:ReplaceableAttribute', replaceableAttribute_name - The name of the replaceable attribute.

$sel:value:ReplaceableAttribute', replaceableAttribute_value - The value of the replaceable attribute.

replaceableAttribute_replace :: Lens' ReplaceableAttribute (Maybe Bool) Source #

A flag specifying whether or not to replace the attribute/value pair or to add a new attribute/value pair. The default setting is false.

replaceableAttribute_name :: Lens' ReplaceableAttribute Text Source #

The name of the replaceable attribute.

replaceableAttribute_value :: Lens' ReplaceableAttribute Text Source #

The value of the replaceable attribute.

ReplaceableItem

data ReplaceableItem Source #

See: newReplaceableItem smart constructor.

Constructors

ReplaceableItem' 

Fields

Instances

Instances details
ToQuery ReplaceableItem Source # 
Instance details

Defined in Amazonka.SDB.Types.ReplaceableItem

Generic ReplaceableItem Source # 
Instance details

Defined in Amazonka.SDB.Types.ReplaceableItem

Associated Types

type Rep ReplaceableItem :: Type -> Type #

Read ReplaceableItem Source # 
Instance details

Defined in Amazonka.SDB.Types.ReplaceableItem

Show ReplaceableItem Source # 
Instance details

Defined in Amazonka.SDB.Types.ReplaceableItem

NFData ReplaceableItem Source # 
Instance details

Defined in Amazonka.SDB.Types.ReplaceableItem

Methods

rnf :: ReplaceableItem -> () #

Eq ReplaceableItem Source # 
Instance details

Defined in Amazonka.SDB.Types.ReplaceableItem

Hashable ReplaceableItem Source # 
Instance details

Defined in Amazonka.SDB.Types.ReplaceableItem

type Rep ReplaceableItem Source # 
Instance details

Defined in Amazonka.SDB.Types.ReplaceableItem

type Rep ReplaceableItem = D1 ('MetaData "ReplaceableItem" "Amazonka.SDB.Types.ReplaceableItem" "amazonka-sdb-2.0-7a0e7nVPNy1GutfrhcqnW8" 'False) (C1 ('MetaCons "ReplaceableItem'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ReplaceableAttribute])))

newReplaceableItem Source #

Create a value of ReplaceableItem 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:

ReplaceableItem, replaceableItem_name - The name of the replaceable item.

$sel:attributes:ReplaceableItem', replaceableItem_attributes - The list of attributes for a replaceable item.

replaceableItem_name :: Lens' ReplaceableItem Text Source #

The name of the replaceable item.

replaceableItem_attributes :: Lens' ReplaceableItem [ReplaceableAttribute] Source #

The list of attributes for a replaceable item.

UpdateCondition

data UpdateCondition Source #

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: newUpdateCondition smart constructor.

Constructors

UpdateCondition' 

Fields

  • exists :: 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.

  • name :: Maybe Text

    The name of the attribute involved in the condition.

  • value :: Maybe Text

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

Instances

Instances details
ToQuery UpdateCondition Source # 
Instance details

Defined in Amazonka.SDB.Types.UpdateCondition

Generic UpdateCondition Source # 
Instance details

Defined in Amazonka.SDB.Types.UpdateCondition

Associated Types

type Rep UpdateCondition :: Type -> Type #

Read UpdateCondition Source # 
Instance details

Defined in Amazonka.SDB.Types.UpdateCondition

Show UpdateCondition Source # 
Instance details

Defined in Amazonka.SDB.Types.UpdateCondition

NFData UpdateCondition Source # 
Instance details

Defined in Amazonka.SDB.Types.UpdateCondition

Methods

rnf :: UpdateCondition -> () #

Eq UpdateCondition Source # 
Instance details

Defined in Amazonka.SDB.Types.UpdateCondition

Hashable UpdateCondition Source # 
Instance details

Defined in Amazonka.SDB.Types.UpdateCondition

type Rep UpdateCondition Source # 
Instance details

Defined in Amazonka.SDB.Types.UpdateCondition

type Rep UpdateCondition = D1 ('MetaData "UpdateCondition" "Amazonka.SDB.Types.UpdateCondition" "amazonka-sdb-2.0-7a0e7nVPNy1GutfrhcqnW8" 'False) (C1 ('MetaCons "UpdateCondition'" 'PrefixI 'True) (S1 ('MetaSel ('Just "exists") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newUpdateCondition :: UpdateCondition Source #

Create a value of UpdateCondition 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:exists:UpdateCondition', updateCondition_exists - 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.

$sel:name:UpdateCondition', updateCondition_name - The name of the attribute involved in the condition.

$sel:value:UpdateCondition', updateCondition_value - The value of an attribute. This value can only be specified when the Exists parameter is equal to true.

updateCondition_exists :: Lens' UpdateCondition (Maybe Bool) Source #

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.

updateCondition_name :: Lens' UpdateCondition (Maybe Text) Source #

The name of the attribute involved in the condition.

updateCondition_value :: Lens' UpdateCondition (Maybe Text) Source #

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