-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Amazon SimpleDB SDK.
--   
--   The types from this library are intended to be used with
--   <a>amazonka</a>, which provides mechanisms for specifying AuthN/AuthZ
--   information, sending requests, and receiving responses.
--   
--   Lenses are used for constructing and manipulating types, due to the
--   depth of nesting of AWS types and transparency regarding
--   de/serialisation into more palatable Haskell values. The provided
--   lenses should be compatible with any of the major lens libraries such
--   as <a>lens</a> or <a>lens-family-core</a>.
--   
--   See <a>Network.AWS.SDB</a> or <a>the AWS documentation</a> to get
--   started.
@package amazonka-sdb
@version 1.6.0


module Network.AWS.SDB.Types

-- | API version <tt>2009-04-15</tt> of the Amazon SimpleDB SDK
--   configuration.
sdb :: Service

-- | Too many predicates exist in the query expression.
_InvalidNumberValueTests :: AsError a => Getting (First ServiceError) a ServiceError

-- | The specified domain does not exist.
_NoSuchDomain :: AsError a => Getting (First ServiceError) a ServiceError

-- | Too many items exist in a single call.
_NumberSubmittedItemsExceeded :: AsError a => Getting (First ServiceError) a ServiceError

-- | The specified attribute does not exist.
_AttributeDoesNotExist :: AsError a => Getting (First ServiceError) a ServiceError

-- | Too many attributes in this domain.
_NumberDomainAttributesExceeded :: AsError a => Getting (First ServiceError) a ServiceError

-- | The item name was specified more than once.
_DuplicateItemName :: AsError a => Getting (First ServiceError) a ServiceError

-- | The request must contain the specified missing parameter.
_MissingParameter :: AsError a => Getting (First ServiceError) a ServiceError

-- | The specified NextToken is not valid.
_InvalidNextToken :: AsError a => Getting (First ServiceError) a ServiceError

-- | The value for a parameter is invalid.
_InvalidParameterValue :: AsError a => Getting (First ServiceError) a ServiceError

-- | Too many attributes in this item.
_NumberItemAttributesExceeded :: AsError a => Getting (First ServiceError) a ServiceError

-- | A timeout occurred when attempting to query the specified domain with
--   specified query expression.
_RequestTimeout :: AsError a => Getting (First ServiceError) a ServiceError

-- | Too many attributes requested.
_TooManyRequestedAttributes :: AsError a => Getting (First ServiceError) a ServiceError

-- | Too many predicates exist in the query expression.
_InvalidNumberPredicates :: AsError a => Getting (First ServiceError) a ServiceError

-- | Too many domains exist per this account.
_NumberDomainsExceeded :: AsError a => Getting (First ServiceError) a ServiceError

-- | Too many attributes exist in a single call.
_NumberSubmittedAttributesExceeded :: AsError a => Getting (First ServiceError) a ServiceError

-- | Too many bytes in this domain.
_NumberDomainBytesExceeded :: AsError a => Getting (First ServiceError) a ServiceError

-- | The specified query expression syntax is not valid.
_InvalidQueryExpression :: AsError a => Getting (First ServiceError) a ServiceError

-- | <i>See:</i> <a>attribute</a> smart constructor.
data Attribute

-- | Creates a value of <a>Attribute</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>aAlternateValueEncoding</a> -</li>
--   <li><a>aAlternateNameEncoding</a> -</li>
--   <li><a>aName</a> - The name of the attribute.</li>
--   <li><a>aValue</a> - The value of the attribute.</li>
--   </ul>
attribute :: Text -> Text -> Attribute

aAlternateValueEncoding :: Lens' Attribute (Maybe Text)

aAlternateNameEncoding :: Lens' Attribute (Maybe Text)

-- | The name of the attribute.
aName :: Lens' Attribute Text

-- | The value of the attribute.
aValue :: Lens' Attribute Text

-- | <i>See:</i> <a>deletableItem</a> smart constructor.
data DeletableItem

-- | Creates a value of <a>DeletableItem</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>diAttributes</a> - Undocumented member.</li>
--   <li><a>diName</a> - Undocumented member.</li>
--   </ul>
deletableItem :: Text -> DeletableItem

-- | Undocumented member.
diAttributes :: Lens' DeletableItem [Attribute]

-- | Undocumented member.
diName :: Lens' DeletableItem Text

-- | <i>See:</i> <a>item</a> smart constructor.
data Item

-- | Creates a value of <a>Item</a> with the minimum fields required to
--   make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>iAlternateNameEncoding</a> -</li>
--   <li><a>iName</a> - The name of the item.</li>
--   <li><a>iAttributes</a> - A list of attributes.</li>
--   </ul>
item :: Text -> Item

iAlternateNameEncoding :: Lens' Item (Maybe Text)

-- | The name of the item.
iName :: Lens' Item Text

-- | A list of attributes.
iAttributes :: Lens' Item [Attribute]

-- | <i>See:</i> <a>replaceableAttribute</a> smart constructor.
data ReplaceableAttribute

-- | Creates a value of <a>ReplaceableAttribute</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>raReplace</a> - <tt>false</tt></li>
--   <li><a>raName</a> - The name of the replaceable attribute.</li>
--   <li><a>raValue</a> - The value of the replaceable attribute.</li>
--   </ul>
replaceableAttribute :: Text -> Text -> ReplaceableAttribute

-- | <pre>
--   false
--   </pre>
raReplace :: Lens' ReplaceableAttribute (Maybe Bool)

-- | The name of the replaceable attribute.
raName :: Lens' ReplaceableAttribute Text

-- | The value of the replaceable attribute.
raValue :: Lens' ReplaceableAttribute Text

-- | <i>See:</i> <a>replaceableItem</a> smart constructor.
data ReplaceableItem

-- | Creates a value of <a>ReplaceableItem</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>riName</a> - The name of the replaceable item.</li>
--   <li><a>riAttributes</a> - The list of attributes for a replaceable
--   item.</li>
--   </ul>
replaceableItem :: Text -> ReplaceableItem

-- | The name of the replaceable item.
riName :: Lens' ReplaceableItem Text

-- | The list of attributes for a replaceable item.
riAttributes :: Lens' ReplaceableItem [ReplaceableAttribute]

-- | 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.
--   
--   <i>See:</i> <a>updateCondition</a> smart constructor.
data UpdateCondition

-- | Creates a value of <a>UpdateCondition</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ucExists</a> - 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 <tt>true</tt> if the attribute must
--   exist for the update condition to be satisfied. Specify <tt>false</tt>
--   if the attribute should not exist in order for the update condition to
--   be satisfied.</li>
--   <li><a>ucValue</a> - The value of an attribute. This value can only be
--   specified when the <tt>Exists</tt> parameter is equal to <tt>true</tt>
--   .</li>
--   <li><a>ucName</a> - The name of the attribute involved in the
--   condition.</li>
--   </ul>
updateCondition :: UpdateCondition

-- | 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 <tt>true</tt> if the attribute must exist for the
--   update condition to be satisfied. Specify <tt>false</tt> if the
--   attribute should not exist in order for the update condition to be
--   satisfied.
ucExists :: Lens' UpdateCondition (Maybe Bool)

-- | The value of an attribute. This value can only be specified when the
--   <tt>Exists</tt> parameter is equal to <tt>true</tt> .
ucValue :: Lens' UpdateCondition (Maybe Text)

-- | The name of the attribute involved in the condition.
ucName :: Lens' UpdateCondition (Maybe Text)


-- | The <tt>Select</tt> operation returns a set of attributes for
--   <tt>ItemNames</tt> that match the select expression. <tt>Select</tt>
--   is similar to the standard SQL SELECT statement.
--   
--   The total size of the response cannot exceed 1 MB in total size.
--   Amazon SimpleDB automatically adjusts the number of items returned per
--   page to enforce this limit. For example, if the client asks to
--   retrieve 2500 items, but each individual item is 10 kB in size, the
--   system returns 100 items and an appropriate <tt>NextToken</tt> so the
--   client can access the next page of results.
--   
--   For information on how to construct select expressions, see Using
--   Select to Create Amazon SimpleDB Queries in the Developer Guide.
--   
--   This operation returns paginated results.
module Network.AWS.SDB.Select

-- | Creates a value of <a>Select</a> with the minimum fields required to
--   make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>sConsistentRead</a> - <tt>true</tt></li>
--   <li><a>sNextToken</a> - <tt>ItemNames</tt></li>
--   <li><a>sSelectExpression</a> - The expression used to query the
--   domain.</li>
--   </ul>
select :: Text -> Select

-- | <i>See:</i> <a>select</a> smart constructor.
data Select

-- | <pre>
--   true
--   </pre>
sConsistentRead :: Lens' Select (Maybe Bool)

-- | <pre>
--   ItemNames
--   </pre>
sNextToken :: Lens' Select (Maybe Text)

-- | The expression used to query the domain.
sSelectExpression :: Lens' Select Text

-- | Creates a value of <a>SelectResponse</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>srsItems</a> - A list of items that match the select
--   expression.</li>
--   <li><a>srsNextToken</a> - <tt>MaxNumberOfItems</tt></li>
--   <li><a>srsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
selectResponse :: Int -> SelectResponse

-- | <i>See:</i> <a>selectResponse</a> smart constructor.
data SelectResponse

-- | A list of items that match the select expression.
srsItems :: Lens' SelectResponse [Item]

-- | <pre>
--   MaxNumberOfItems
--   </pre>
srsNextToken :: Lens' SelectResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
srsResponseStatus :: Lens' SelectResponse Int
instance GHC.Generics.Generic Network.AWS.SDB.Select.SelectResponse
instance Data.Data.Data Network.AWS.SDB.Select.SelectResponse
instance GHC.Show.Show Network.AWS.SDB.Select.SelectResponse
instance GHC.Read.Read Network.AWS.SDB.Select.SelectResponse
instance GHC.Classes.Eq Network.AWS.SDB.Select.SelectResponse
instance GHC.Generics.Generic Network.AWS.SDB.Select.Select
instance Data.Data.Data Network.AWS.SDB.Select.Select
instance GHC.Show.Show Network.AWS.SDB.Select.Select
instance GHC.Read.Read Network.AWS.SDB.Select.Select
instance GHC.Classes.Eq Network.AWS.SDB.Select.Select
instance Network.AWS.Types.AWSRequest Network.AWS.SDB.Select.Select
instance Control.DeepSeq.NFData Network.AWS.SDB.Select.SelectResponse
instance Network.AWS.Pager.AWSPager Network.AWS.SDB.Select.Select
instance Data.Hashable.Class.Hashable Network.AWS.SDB.Select.Select
instance Control.DeepSeq.NFData Network.AWS.SDB.Select.Select
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SDB.Select.Select
instance Network.AWS.Data.Path.ToPath Network.AWS.SDB.Select.Select
instance Network.AWS.Data.Query.ToQuery Network.AWS.SDB.Select.Select


-- | The PutAttributes operation creates or replaces attributes in an item.
--   The client may specify new attributes using a combination of the
--   <tt>Attribute.X.Name</tt> and <tt>Attribute.X.Value</tt> parameters.
--   The client specifies the first attribute by the parameters
--   <tt>Attribute.0.Name</tt> and <tt>Attribute.0.Value</tt> , the second
--   attribute by the parameters <tt>Attribute.1.Name</tt> and
--   <tt>Attribute.1.Value</tt> , and so on.
--   
--   Attributes are uniquely identified in an item by their name/value
--   combination. For example, a single item can have the attributes <tt>{
--   "first_name", "first_value" }</tt> and <tt>{ "first_name",
--   second_value" }</tt> . However, it cannot have two attribute instances
--   where both the <tt>Attribute.X.Name</tt> and
--   <tt>Attribute.X.Value</tt> are the same.
--   
--   Optionally, the requestor can supply the <tt>Replace</tt> parameter
--   for each individual attribute. Setting this value to <tt>true</tt>
--   causes the new attribute value to replace the existing attribute
--   value(s). For example, if an item has the attributes <tt>{ <tt>a</tt>,
--   '1' }</tt> , <tt>{ <tt>b</tt>, '2'}</tt> and <tt>{ <tt>b</tt>, '3'
--   }</tt> and the requestor calls <tt>PutAttributes</tt> using the
--   attributes <tt>{ <tt>b</tt>, '4' }</tt> with the <tt>Replace</tt>
--   parameter set to true, the final attributes of the item are changed to
--   <tt>{ <tt>a</tt>, '1' }</tt> and <tt>{ <tt>b</tt>, '4' }</tt> , which
--   replaces the previous values of the <tt>b</tt> 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
--   <tt>GetAttributes</tt> or <tt>Select</tt> operation (read) immediately
--   after a <a>PutAttributes</a> or <tt>DeleteAttributes</tt> 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
module Network.AWS.SDB.PutAttributes

-- | Creates a value of <a>PutAttributes</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>paExpected</a> - 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.</li>
--   <li><a>paDomainName</a> - The name of the domain in which to perform
--   the operation.</li>
--   <li><a>paItemName</a> - The name of the item.</li>
--   <li><a>paAttributes</a> - The list of attributes.</li>
--   </ul>
putAttributes :: Text -> Text -> PutAttributes

-- | <i>See:</i> <a>putAttributes</a> smart constructor.
data PutAttributes

-- | 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.
paExpected :: Lens' PutAttributes (Maybe UpdateCondition)

-- | The name of the domain in which to perform the operation.
paDomainName :: Lens' PutAttributes Text

-- | The name of the item.
paItemName :: Lens' PutAttributes Text

-- | The list of attributes.
paAttributes :: Lens' PutAttributes [ReplaceableAttribute]

-- | Creates a value of <a>PutAttributesResponse</a> with the minimum
--   fields required to make a request.
putAttributesResponse :: PutAttributesResponse

-- | <i>See:</i> <a>putAttributesResponse</a> smart constructor.
data PutAttributesResponse
instance GHC.Generics.Generic Network.AWS.SDB.PutAttributes.PutAttributesResponse
instance Data.Data.Data Network.AWS.SDB.PutAttributes.PutAttributesResponse
instance GHC.Show.Show Network.AWS.SDB.PutAttributes.PutAttributesResponse
instance GHC.Read.Read Network.AWS.SDB.PutAttributes.PutAttributesResponse
instance GHC.Classes.Eq Network.AWS.SDB.PutAttributes.PutAttributesResponse
instance GHC.Generics.Generic Network.AWS.SDB.PutAttributes.PutAttributes
instance Data.Data.Data Network.AWS.SDB.PutAttributes.PutAttributes
instance GHC.Show.Show Network.AWS.SDB.PutAttributes.PutAttributes
instance GHC.Read.Read Network.AWS.SDB.PutAttributes.PutAttributes
instance GHC.Classes.Eq Network.AWS.SDB.PutAttributes.PutAttributes
instance Network.AWS.Types.AWSRequest Network.AWS.SDB.PutAttributes.PutAttributes
instance Control.DeepSeq.NFData Network.AWS.SDB.PutAttributes.PutAttributesResponse
instance Data.Hashable.Class.Hashable Network.AWS.SDB.PutAttributes.PutAttributes
instance Control.DeepSeq.NFData Network.AWS.SDB.PutAttributes.PutAttributes
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SDB.PutAttributes.PutAttributes
instance Network.AWS.Data.Path.ToPath Network.AWS.SDB.PutAttributes.PutAttributes
instance Network.AWS.Data.Query.ToQuery Network.AWS.SDB.PutAttributes.PutAttributes


-- | The <tt>ListDomains</tt> operation lists all domains associated with
--   the Access Key ID. It returns domain names up to the limit set by
--   <a>MaxNumberOfDomains</a> . A <a>NextToken</a> is returned if there
--   are more than <tt>MaxNumberOfDomains</tt> domains. Calling
--   <tt>ListDomains</tt> successive times with the <tt>NextToken</tt>
--   provided by the operation returns up to <tt>MaxNumberOfDomains</tt>
--   more domain names with each successive operation call.
--   
--   This operation returns paginated results.
module Network.AWS.SDB.ListDomains

-- | Creates a value of <a>ListDomains</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ldMaxNumberOfDomains</a> - The maximum number of domain names
--   you want returned. The range is 1 to 100. The default setting is
--   100.</li>
--   <li><a>ldNextToken</a> - A string informing Amazon SimpleDB where to
--   start the next list of domain names.</li>
--   </ul>
listDomains :: ListDomains

-- | <i>See:</i> <a>listDomains</a> smart constructor.
data ListDomains

-- | The maximum number of domain names you want returned. The range is 1
--   to 100. The default setting is 100.
ldMaxNumberOfDomains :: Lens' ListDomains (Maybe Int)

-- | A string informing Amazon SimpleDB where to start the next list of
--   domain names.
ldNextToken :: Lens' ListDomains (Maybe Text)

-- | Creates a value of <a>ListDomainsResponse</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ldrsDomainNames</a> - A list of domain names that match the
--   expression.</li>
--   <li><a>ldrsNextToken</a> - <tt>MaxNumberOfDomains</tt></li>
--   <li><a>ldrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
listDomainsResponse :: Int -> ListDomainsResponse

-- | <i>See:</i> <a>listDomainsResponse</a> smart constructor.
data ListDomainsResponse

-- | A list of domain names that match the expression.
ldrsDomainNames :: Lens' ListDomainsResponse [Text]

-- | <pre>
--   MaxNumberOfDomains
--   </pre>
ldrsNextToken :: Lens' ListDomainsResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
ldrsResponseStatus :: Lens' ListDomainsResponse Int
instance GHC.Generics.Generic Network.AWS.SDB.ListDomains.ListDomainsResponse
instance Data.Data.Data Network.AWS.SDB.ListDomains.ListDomainsResponse
instance GHC.Show.Show Network.AWS.SDB.ListDomains.ListDomainsResponse
instance GHC.Read.Read Network.AWS.SDB.ListDomains.ListDomainsResponse
instance GHC.Classes.Eq Network.AWS.SDB.ListDomains.ListDomainsResponse
instance GHC.Generics.Generic Network.AWS.SDB.ListDomains.ListDomains
instance Data.Data.Data Network.AWS.SDB.ListDomains.ListDomains
instance GHC.Show.Show Network.AWS.SDB.ListDomains.ListDomains
instance GHC.Read.Read Network.AWS.SDB.ListDomains.ListDomains
instance GHC.Classes.Eq Network.AWS.SDB.ListDomains.ListDomains
instance Network.AWS.Types.AWSRequest Network.AWS.SDB.ListDomains.ListDomains
instance Control.DeepSeq.NFData Network.AWS.SDB.ListDomains.ListDomainsResponse
instance Network.AWS.Pager.AWSPager Network.AWS.SDB.ListDomains.ListDomains
instance Data.Hashable.Class.Hashable Network.AWS.SDB.ListDomains.ListDomains
instance Control.DeepSeq.NFData Network.AWS.SDB.ListDomains.ListDomains
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SDB.ListDomains.ListDomains
instance Network.AWS.Data.Path.ToPath Network.AWS.SDB.ListDomains.ListDomains
instance Network.AWS.Data.Query.ToQuery Network.AWS.SDB.ListDomains.ListDomains


-- | Returns all of the attributes associated with the specified item.
--   Optionally, the attributes returned can be limited to one or more
--   attributes by specifying an attribute name parameter.
--   
--   If the item does not exist on the replica that was accessed for this
--   operation, an empty set is returned. The system does not return an
--   error as it cannot guarantee the item does not exist on other
--   replicas.
module Network.AWS.SDB.GetAttributes

-- | Creates a value of <a>GetAttributes</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gaConsistentRead</a> - <tt>true</tt></li>
--   <li><a>gaAttributeNames</a> - The names of the attributes.</li>
--   <li><a>gaDomainName</a> - The name of the domain in which to perform
--   the operation.</li>
--   <li><a>gaItemName</a> - The name of the item.</li>
--   </ul>
getAttributes :: Text -> Text -> GetAttributes

-- | <i>See:</i> <a>getAttributes</a> smart constructor.
data GetAttributes

-- | <pre>
--   true
--   </pre>
gaConsistentRead :: Lens' GetAttributes (Maybe Bool)

-- | The names of the attributes.
gaAttributeNames :: Lens' GetAttributes [Text]

-- | The name of the domain in which to perform the operation.
gaDomainName :: Lens' GetAttributes Text

-- | The name of the item.
gaItemName :: Lens' GetAttributes Text

-- | Creates a value of <a>GetAttributesResponse</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>garsAttributes</a> - The list of attributes returned by the
--   operation.</li>
--   <li><a>garsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
getAttributesResponse :: Int -> GetAttributesResponse

-- | <i>See:</i> <a>getAttributesResponse</a> smart constructor.
data GetAttributesResponse

-- | The list of attributes returned by the operation.
garsAttributes :: Lens' GetAttributesResponse [Attribute]

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
garsResponseStatus :: Lens' GetAttributesResponse Int
instance GHC.Generics.Generic Network.AWS.SDB.GetAttributes.GetAttributesResponse
instance Data.Data.Data Network.AWS.SDB.GetAttributes.GetAttributesResponse
instance GHC.Show.Show Network.AWS.SDB.GetAttributes.GetAttributesResponse
instance GHC.Read.Read Network.AWS.SDB.GetAttributes.GetAttributesResponse
instance GHC.Classes.Eq Network.AWS.SDB.GetAttributes.GetAttributesResponse
instance GHC.Generics.Generic Network.AWS.SDB.GetAttributes.GetAttributes
instance Data.Data.Data Network.AWS.SDB.GetAttributes.GetAttributes
instance GHC.Show.Show Network.AWS.SDB.GetAttributes.GetAttributes
instance GHC.Read.Read Network.AWS.SDB.GetAttributes.GetAttributes
instance GHC.Classes.Eq Network.AWS.SDB.GetAttributes.GetAttributes
instance Network.AWS.Types.AWSRequest Network.AWS.SDB.GetAttributes.GetAttributes
instance Control.DeepSeq.NFData Network.AWS.SDB.GetAttributes.GetAttributesResponse
instance Data.Hashable.Class.Hashable Network.AWS.SDB.GetAttributes.GetAttributes
instance Control.DeepSeq.NFData Network.AWS.SDB.GetAttributes.GetAttributes
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SDB.GetAttributes.GetAttributes
instance Network.AWS.Data.Path.ToPath Network.AWS.SDB.GetAttributes.GetAttributes
instance Network.AWS.Data.Query.ToQuery Network.AWS.SDB.GetAttributes.GetAttributes


-- | Returns information about the domain, including when the domain was
--   created, the number of items and attributes in the domain, and the
--   size of the attribute names and values.
module Network.AWS.SDB.DomainMetadata

-- | Creates a value of <a>DomainMetadata</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dmDomainName</a> - The name of the domain for which to display
--   the metadata of.</li>
--   </ul>
domainMetadata :: Text -> DomainMetadata

-- | <i>See:</i> <a>domainMetadata</a> smart constructor.
data DomainMetadata

-- | The name of the domain for which to display the metadata of.
dmDomainName :: Lens' DomainMetadata Text

-- | Creates a value of <a>DomainMetadataResponse</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dmrsItemNamesSizeBytes</a> - The total size of all item names
--   in the domain, in bytes.</li>
--   <li><a>dmrsAttributeValuesSizeBytes</a> - The total size of all
--   attribute values in the domain, in bytes.</li>
--   <li><a>dmrsAttributeNameCount</a> - The number of unique attribute
--   names in the domain.</li>
--   <li><a>dmrsAttributeNamesSizeBytes</a> - The total size of all unique
--   attribute names in the domain, in bytes.</li>
--   <li><a>dmrsAttributeValueCount</a> - The number of all attribute
--   name/value pairs in the domain.</li>
--   <li><a>dmrsItemCount</a> - The number of all items in the domain.</li>
--   <li><a>dmrsTimestamp</a> - The data and time when metadata was
--   calculated, in Epoch (UNIX) seconds.</li>
--   <li><a>dmrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
domainMetadataResponse :: Int -> DomainMetadataResponse

-- | <i>See:</i> <a>domainMetadataResponse</a> smart constructor.
data DomainMetadataResponse

-- | The total size of all item names in the domain, in bytes.
dmrsItemNamesSizeBytes :: Lens' DomainMetadataResponse (Maybe Integer)

-- | The total size of all attribute values in the domain, in bytes.
dmrsAttributeValuesSizeBytes :: Lens' DomainMetadataResponse (Maybe Integer)

-- | The number of unique attribute names in the domain.
dmrsAttributeNameCount :: Lens' DomainMetadataResponse (Maybe Int)

-- | The total size of all unique attribute names in the domain, in bytes.
dmrsAttributeNamesSizeBytes :: Lens' DomainMetadataResponse (Maybe Integer)

-- | The number of all attribute name/value pairs in the domain.
dmrsAttributeValueCount :: Lens' DomainMetadataResponse (Maybe Int)

-- | The number of all items in the domain.
dmrsItemCount :: Lens' DomainMetadataResponse (Maybe Int)

-- | The data and time when metadata was calculated, in Epoch (UNIX)
--   seconds.
dmrsTimestamp :: Lens' DomainMetadataResponse (Maybe Int)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
dmrsResponseStatus :: Lens' DomainMetadataResponse Int
instance GHC.Generics.Generic Network.AWS.SDB.DomainMetadata.DomainMetadataResponse
instance Data.Data.Data Network.AWS.SDB.DomainMetadata.DomainMetadataResponse
instance GHC.Show.Show Network.AWS.SDB.DomainMetadata.DomainMetadataResponse
instance GHC.Read.Read Network.AWS.SDB.DomainMetadata.DomainMetadataResponse
instance GHC.Classes.Eq Network.AWS.SDB.DomainMetadata.DomainMetadataResponse
instance GHC.Generics.Generic Network.AWS.SDB.DomainMetadata.DomainMetadata
instance Data.Data.Data Network.AWS.SDB.DomainMetadata.DomainMetadata
instance GHC.Show.Show Network.AWS.SDB.DomainMetadata.DomainMetadata
instance GHC.Read.Read Network.AWS.SDB.DomainMetadata.DomainMetadata
instance GHC.Classes.Eq Network.AWS.SDB.DomainMetadata.DomainMetadata
instance Network.AWS.Types.AWSRequest Network.AWS.SDB.DomainMetadata.DomainMetadata
instance Control.DeepSeq.NFData Network.AWS.SDB.DomainMetadata.DomainMetadataResponse
instance Data.Hashable.Class.Hashable Network.AWS.SDB.DomainMetadata.DomainMetadata
instance Control.DeepSeq.NFData Network.AWS.SDB.DomainMetadata.DomainMetadata
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SDB.DomainMetadata.DomainMetadata
instance Network.AWS.Data.Path.ToPath Network.AWS.SDB.DomainMetadata.DomainMetadata
instance Network.AWS.Data.Query.ToQuery Network.AWS.SDB.DomainMetadata.DomainMetadata


-- | The <tt>DeleteDomain</tt> operation deletes a domain. Any items (and
--   their attributes) in the domain are deleted as well. The
--   <tt>DeleteDomain</tt> operation might take 10 or more seconds to
--   complete.
module Network.AWS.SDB.DeleteDomain

-- | Creates a value of <a>DeleteDomain</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ddDomainName</a> - The name of the domain to delete.</li>
--   </ul>
deleteDomain :: Text -> DeleteDomain

-- | <i>See:</i> <a>deleteDomain</a> smart constructor.
data DeleteDomain

-- | The name of the domain to delete.
ddDomainName :: Lens' DeleteDomain Text

-- | Creates a value of <a>DeleteDomainResponse</a> with the minimum fields
--   required to make a request.
deleteDomainResponse :: DeleteDomainResponse

-- | <i>See:</i> <a>deleteDomainResponse</a> smart constructor.
data DeleteDomainResponse
instance GHC.Generics.Generic Network.AWS.SDB.DeleteDomain.DeleteDomainResponse
instance Data.Data.Data Network.AWS.SDB.DeleteDomain.DeleteDomainResponse
instance GHC.Show.Show Network.AWS.SDB.DeleteDomain.DeleteDomainResponse
instance GHC.Read.Read Network.AWS.SDB.DeleteDomain.DeleteDomainResponse
instance GHC.Classes.Eq Network.AWS.SDB.DeleteDomain.DeleteDomainResponse
instance GHC.Generics.Generic Network.AWS.SDB.DeleteDomain.DeleteDomain
instance Data.Data.Data Network.AWS.SDB.DeleteDomain.DeleteDomain
instance GHC.Show.Show Network.AWS.SDB.DeleteDomain.DeleteDomain
instance GHC.Read.Read Network.AWS.SDB.DeleteDomain.DeleteDomain
instance GHC.Classes.Eq Network.AWS.SDB.DeleteDomain.DeleteDomain
instance Network.AWS.Types.AWSRequest Network.AWS.SDB.DeleteDomain.DeleteDomain
instance Control.DeepSeq.NFData Network.AWS.SDB.DeleteDomain.DeleteDomainResponse
instance Data.Hashable.Class.Hashable Network.AWS.SDB.DeleteDomain.DeleteDomain
instance Control.DeepSeq.NFData Network.AWS.SDB.DeleteDomain.DeleteDomain
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SDB.DeleteDomain.DeleteDomain
instance Network.AWS.Data.Path.ToPath Network.AWS.SDB.DeleteDomain.DeleteDomain
instance Network.AWS.Data.Query.ToQuery Network.AWS.SDB.DeleteDomain.DeleteDomain


-- | Deletes one or more attributes associated with an item. If all
--   attributes of the item are deleted, the item is deleted.
--   
--   <tt>DeleteAttributes</tt> 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 <tt>GetAttributes</tt>
--   or <tt>Select</tt> operation (read) immediately after a
--   <tt>DeleteAttributes</tt> or <tt>PutAttributes</tt> operation (write)
--   might not return updated item data.
module Network.AWS.SDB.DeleteAttributes

-- | Creates a value of <a>DeleteAttributes</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>daAttributes</a> - A list of Attributes. Similar to columns on
--   a spreadsheet, attributes represent categories of data that can be
--   assigned to items.</li>
--   <li><a>daExpected</a> - 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.</li>
--   <li><a>daDomainName</a> - The name of the domain in which to perform
--   the operation.</li>
--   <li><a>daItemName</a> - The name of the item. Similar to rows on a
--   spreadsheet, items represent individual objects that contain one or
--   more value-attribute pairs.</li>
--   </ul>
deleteAttributes :: Text -> Text -> DeleteAttributes

-- | <i>See:</i> <a>deleteAttributes</a> smart constructor.
data DeleteAttributes

-- | A list of Attributes. Similar to columns on a spreadsheet, attributes
--   represent categories of data that can be assigned to items.
daAttributes :: Lens' DeleteAttributes [Attribute]

-- | 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.
daExpected :: Lens' DeleteAttributes (Maybe UpdateCondition)

-- | The name of the domain in which to perform the operation.
daDomainName :: 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.
daItemName :: Lens' DeleteAttributes Text

-- | Creates a value of <a>DeleteAttributesResponse</a> with the minimum
--   fields required to make a request.
deleteAttributesResponse :: DeleteAttributesResponse

-- | <i>See:</i> <a>deleteAttributesResponse</a> smart constructor.
data DeleteAttributesResponse
instance GHC.Generics.Generic Network.AWS.SDB.DeleteAttributes.DeleteAttributesResponse
instance Data.Data.Data Network.AWS.SDB.DeleteAttributes.DeleteAttributesResponse
instance GHC.Show.Show Network.AWS.SDB.DeleteAttributes.DeleteAttributesResponse
instance GHC.Read.Read Network.AWS.SDB.DeleteAttributes.DeleteAttributesResponse
instance GHC.Classes.Eq Network.AWS.SDB.DeleteAttributes.DeleteAttributesResponse
instance GHC.Generics.Generic Network.AWS.SDB.DeleteAttributes.DeleteAttributes
instance Data.Data.Data Network.AWS.SDB.DeleteAttributes.DeleteAttributes
instance GHC.Show.Show Network.AWS.SDB.DeleteAttributes.DeleteAttributes
instance GHC.Read.Read Network.AWS.SDB.DeleteAttributes.DeleteAttributes
instance GHC.Classes.Eq Network.AWS.SDB.DeleteAttributes.DeleteAttributes
instance Network.AWS.Types.AWSRequest Network.AWS.SDB.DeleteAttributes.DeleteAttributes
instance Control.DeepSeq.NFData Network.AWS.SDB.DeleteAttributes.DeleteAttributesResponse
instance Data.Hashable.Class.Hashable Network.AWS.SDB.DeleteAttributes.DeleteAttributes
instance Control.DeepSeq.NFData Network.AWS.SDB.DeleteAttributes.DeleteAttributes
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SDB.DeleteAttributes.DeleteAttributes
instance Network.AWS.Data.Path.ToPath Network.AWS.SDB.DeleteAttributes.DeleteAttributes
instance Network.AWS.Data.Query.ToQuery Network.AWS.SDB.DeleteAttributes.DeleteAttributes


-- | The <tt>CreateDomain</tt> operation creates a new domain. The domain
--   name should be unique among the domains associated with the Access Key
--   ID provided in the request. The <tt>CreateDomain</tt> operation may
--   take 10 or more seconds to complete.
--   
--   The client can create up to 100 domains per account.
--   
--   If the client requires additional domains, go to
--   <a>http://aws.amazon.com/contact-us/simpledb-limit-request/</a> .
module Network.AWS.SDB.CreateDomain

-- | Creates a value of <a>CreateDomain</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cdDomainName</a> - The name of the domain to create. The name
--   can range between 3 and 255 characters and can contain the following
--   characters: a-z, A-Z, 0-9, '_', <a>-</a>, and <a>.</a>.</li>
--   </ul>
createDomain :: Text -> CreateDomain

-- | <i>See:</i> <a>createDomain</a> smart constructor.
data CreateDomain

-- | The name of the domain to create. The name can range between 3 and 255
--   characters and can contain the following characters: a-z, A-Z, 0-9,
--   '_', <a>-</a>, and <a>.</a>.
cdDomainName :: Lens' CreateDomain Text

-- | Creates a value of <a>CreateDomainResponse</a> with the minimum fields
--   required to make a request.
createDomainResponse :: CreateDomainResponse

-- | <i>See:</i> <a>createDomainResponse</a> smart constructor.
data CreateDomainResponse
instance GHC.Generics.Generic Network.AWS.SDB.CreateDomain.CreateDomainResponse
instance Data.Data.Data Network.AWS.SDB.CreateDomain.CreateDomainResponse
instance GHC.Show.Show Network.AWS.SDB.CreateDomain.CreateDomainResponse
instance GHC.Read.Read Network.AWS.SDB.CreateDomain.CreateDomainResponse
instance GHC.Classes.Eq Network.AWS.SDB.CreateDomain.CreateDomainResponse
instance GHC.Generics.Generic Network.AWS.SDB.CreateDomain.CreateDomain
instance Data.Data.Data Network.AWS.SDB.CreateDomain.CreateDomain
instance GHC.Show.Show Network.AWS.SDB.CreateDomain.CreateDomain
instance GHC.Read.Read Network.AWS.SDB.CreateDomain.CreateDomain
instance GHC.Classes.Eq Network.AWS.SDB.CreateDomain.CreateDomain
instance Network.AWS.Types.AWSRequest Network.AWS.SDB.CreateDomain.CreateDomain
instance Control.DeepSeq.NFData Network.AWS.SDB.CreateDomain.CreateDomainResponse
instance Data.Hashable.Class.Hashable Network.AWS.SDB.CreateDomain.CreateDomain
instance Control.DeepSeq.NFData Network.AWS.SDB.CreateDomain.CreateDomain
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SDB.CreateDomain.CreateDomain
instance Network.AWS.Data.Path.ToPath Network.AWS.SDB.CreateDomain.CreateDomain
instance Network.AWS.Data.Query.ToQuery Network.AWS.SDB.CreateDomain.CreateDomain


-- | The <tt>BatchPutAttributes</tt> operation creates or replaces
--   attributes within one or more items. By using this operation, the
--   client can perform multiple <tt>PutAttribute</tt> operation with a
--   single call. This helps yield savings in round trips and latencies,
--   enabling Amazon SimpleDB to optimize requests and generally produce
--   better throughput.
--   
--   The client may specify the item name with the <tt>Item.X.ItemName</tt>
--   parameter. The client may specify new attributes using a combination
--   of the <tt>Item.X.Attribute.Y.Name</tt> and
--   <tt>Item.X.Attribute.Y.Value</tt> parameters. The client may specify
--   the first attribute for the first item using the parameters
--   <tt>Item.0.Attribute.0.Name</tt> and <tt>Item.0.Attribute.0.Value</tt>
--   , and for the second attribute for the first item by the parameters
--   <tt>Item.0.Attribute.1.Name</tt> and <tt>Item.0.Attribute.1.Value</tt>
--   , and so on.
--   
--   Attributes are uniquely identified within an item by their name/value
--   combination. For example, a single item can have the attributes <tt>{
--   "first_name", "first_value" }</tt> and <tt>{ "first_name",
--   "second_value" }</tt> . However, it cannot have two attribute
--   instances where both the <tt>Item.X.Attribute.Y.Name</tt> and
--   <tt>Item.X.Attribute.Y.Value</tt> are the same.
--   
--   Optionally, the requester can supply the <tt>Replace</tt> parameter
--   for each individual value. Setting this value to <tt>true</tt> will
--   cause the new attribute values to replace the existing attribute
--   values. For example, if an item <tt>I</tt> has the attributes <tt>{
--   <tt>a</tt>, '1' }, { <tt>b</tt>, '2'}</tt> and <tt>{ <tt>b</tt>, '3'
--   }</tt> and the requester does a BatchPutAttributes of <tt>{<tt>I</tt>,
--   <tt>b</tt>, '4' }</tt> with the Replace parameter set to true, the
--   final attributes of the item will be <tt>{ <tt>a</tt>, '1' }</tt> and
--   <tt>{ <tt>b</tt>, '4' }</tt> , replacing the previous values of the
--   <tt>b</tt> attribute with the new value.
--   
--   <i>Important:</i> This operation is vulnerable to exceeding the
--   maximum URL size when making a REST request using the HTTP GET method.
--   This operation does not support conditions using
--   <tt>Expected.X.Name</tt> , <tt>Expected.X.Value</tt> , or
--   <tt>Expected.X.Exists</tt> . You can execute multiple
--   <tt>BatchPutAttributes</tt> operations and other operations in
--   parallel. However, large numbers of concurrent
--   <tt>BatchPutAttributes</tt> calls can result in Service Unavailable
--   (503) responses.
--   
--   The following limitations are enforced for this operation: * 256
--   attribute name-value pairs per item * 1 MB request size * 1 billion
--   attributes per domain * 10 GB of total user data storage per domain *
--   25 item limit per <tt>BatchPutAttributes</tt> operation
module Network.AWS.SDB.BatchPutAttributes

-- | Creates a value of <a>BatchPutAttributes</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>bpaDomainName</a> - The name of the domain in which the
--   attributes are being stored.</li>
--   <li><a>bpaItems</a> - A list of items on which to perform the
--   operation.</li>
--   </ul>
batchPutAttributes :: Text -> BatchPutAttributes

-- | <i>See:</i> <a>batchPutAttributes</a> smart constructor.
data BatchPutAttributes

-- | The name of the domain in which the attributes are being stored.
bpaDomainName :: Lens' BatchPutAttributes Text

-- | A list of items on which to perform the operation.
bpaItems :: Lens' BatchPutAttributes [ReplaceableItem]

-- | Creates a value of <a>BatchPutAttributesResponse</a> with the minimum
--   fields required to make a request.
batchPutAttributesResponse :: BatchPutAttributesResponse

-- | <i>See:</i> <a>batchPutAttributesResponse</a> smart constructor.
data BatchPutAttributesResponse
instance GHC.Generics.Generic Network.AWS.SDB.BatchPutAttributes.BatchPutAttributesResponse
instance Data.Data.Data Network.AWS.SDB.BatchPutAttributes.BatchPutAttributesResponse
instance GHC.Show.Show Network.AWS.SDB.BatchPutAttributes.BatchPutAttributesResponse
instance GHC.Read.Read Network.AWS.SDB.BatchPutAttributes.BatchPutAttributesResponse
instance GHC.Classes.Eq Network.AWS.SDB.BatchPutAttributes.BatchPutAttributesResponse
instance GHC.Generics.Generic Network.AWS.SDB.BatchPutAttributes.BatchPutAttributes
instance Data.Data.Data Network.AWS.SDB.BatchPutAttributes.BatchPutAttributes
instance GHC.Show.Show Network.AWS.SDB.BatchPutAttributes.BatchPutAttributes
instance GHC.Read.Read Network.AWS.SDB.BatchPutAttributes.BatchPutAttributes
instance GHC.Classes.Eq Network.AWS.SDB.BatchPutAttributes.BatchPutAttributes
instance Network.AWS.Types.AWSRequest Network.AWS.SDB.BatchPutAttributes.BatchPutAttributes
instance Control.DeepSeq.NFData Network.AWS.SDB.BatchPutAttributes.BatchPutAttributesResponse
instance Data.Hashable.Class.Hashable Network.AWS.SDB.BatchPutAttributes.BatchPutAttributes
instance Control.DeepSeq.NFData Network.AWS.SDB.BatchPutAttributes.BatchPutAttributes
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SDB.BatchPutAttributes.BatchPutAttributes
instance Network.AWS.Data.Path.ToPath Network.AWS.SDB.BatchPutAttributes.BatchPutAttributes
instance Network.AWS.Data.Query.ToQuery Network.AWS.SDB.BatchPutAttributes.BatchPutAttributes


-- | Performs multiple DeleteAttributes operations in a single call, which
--   reduces round trips and latencies. This enables Amazon SimpleDB to
--   optimize requests, which generally yields better throughput.
--   
--   The following limitations are enforced for this operation: * 1 MB
--   request size * 25 item limit per BatchDeleteAttributes operation
module Network.AWS.SDB.BatchDeleteAttributes

-- | Creates a value of <a>BatchDeleteAttributes</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>bdaDomainName</a> - The name of the domain in which the
--   attributes are being deleted.</li>
--   <li><a>bdaItems</a> - A list of items on which to perform the
--   operation.</li>
--   </ul>
batchDeleteAttributes :: Text -> BatchDeleteAttributes

-- | <i>See:</i> <a>batchDeleteAttributes</a> smart constructor.
data BatchDeleteAttributes

-- | The name of the domain in which the attributes are being deleted.
bdaDomainName :: Lens' BatchDeleteAttributes Text

-- | A list of items on which to perform the operation.
bdaItems :: Lens' BatchDeleteAttributes [DeletableItem]

-- | Creates a value of <a>BatchDeleteAttributesResponse</a> with the
--   minimum fields required to make a request.
batchDeleteAttributesResponse :: BatchDeleteAttributesResponse

-- | <i>See:</i> <a>batchDeleteAttributesResponse</a> smart constructor.
data BatchDeleteAttributesResponse
instance GHC.Generics.Generic Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributesResponse
instance Data.Data.Data Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributesResponse
instance GHC.Show.Show Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributesResponse
instance GHC.Read.Read Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributesResponse
instance GHC.Classes.Eq Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributesResponse
instance GHC.Generics.Generic Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributes
instance Data.Data.Data Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributes
instance GHC.Show.Show Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributes
instance GHC.Read.Read Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributes
instance GHC.Classes.Eq Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributes
instance Network.AWS.Types.AWSRequest Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributes
instance Control.DeepSeq.NFData Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributesResponse
instance Data.Hashable.Class.Hashable Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributes
instance Control.DeepSeq.NFData Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributes
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributes
instance Network.AWS.Data.Path.ToPath Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributes
instance Network.AWS.Data.Query.ToQuery Network.AWS.SDB.BatchDeleteAttributes.BatchDeleteAttributes


module Network.AWS.SDB.Waiters


-- | 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 <a>http://aws.amazon.com/simpledb/</a> for more information.
module Network.AWS.SDB

-- | API version <tt>2009-04-15</tt> of the Amazon SimpleDB SDK
--   configuration.
sdb :: Service

-- | Too many predicates exist in the query expression.
_InvalidNumberValueTests :: AsError a => Getting (First ServiceError) a ServiceError

-- | The specified domain does not exist.
_NoSuchDomain :: AsError a => Getting (First ServiceError) a ServiceError

-- | Too many items exist in a single call.
_NumberSubmittedItemsExceeded :: AsError a => Getting (First ServiceError) a ServiceError

-- | The specified attribute does not exist.
_AttributeDoesNotExist :: AsError a => Getting (First ServiceError) a ServiceError

-- | Too many attributes in this domain.
_NumberDomainAttributesExceeded :: AsError a => Getting (First ServiceError) a ServiceError

-- | The item name was specified more than once.
_DuplicateItemName :: AsError a => Getting (First ServiceError) a ServiceError

-- | The request must contain the specified missing parameter.
_MissingParameter :: AsError a => Getting (First ServiceError) a ServiceError

-- | The specified NextToken is not valid.
_InvalidNextToken :: AsError a => Getting (First ServiceError) a ServiceError

-- | The value for a parameter is invalid.
_InvalidParameterValue :: AsError a => Getting (First ServiceError) a ServiceError

-- | Too many attributes in this item.
_NumberItemAttributesExceeded :: AsError a => Getting (First ServiceError) a ServiceError

-- | A timeout occurred when attempting to query the specified domain with
--   specified query expression.
_RequestTimeout :: AsError a => Getting (First ServiceError) a ServiceError

-- | Too many attributes requested.
_TooManyRequestedAttributes :: AsError a => Getting (First ServiceError) a ServiceError

-- | Too many predicates exist in the query expression.
_InvalidNumberPredicates :: AsError a => Getting (First ServiceError) a ServiceError

-- | Too many domains exist per this account.
_NumberDomainsExceeded :: AsError a => Getting (First ServiceError) a ServiceError

-- | Too many attributes exist in a single call.
_NumberSubmittedAttributesExceeded :: AsError a => Getting (First ServiceError) a ServiceError

-- | Too many bytes in this domain.
_NumberDomainBytesExceeded :: AsError a => Getting (First ServiceError) a ServiceError

-- | The specified query expression syntax is not valid.
_InvalidQueryExpression :: AsError a => Getting (First ServiceError) a ServiceError

-- | <i>See:</i> <a>attribute</a> smart constructor.
data Attribute

-- | Creates a value of <a>Attribute</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>aAlternateValueEncoding</a> -</li>
--   <li><a>aAlternateNameEncoding</a> -</li>
--   <li><a>aName</a> - The name of the attribute.</li>
--   <li><a>aValue</a> - The value of the attribute.</li>
--   </ul>
attribute :: Text -> Text -> Attribute

aAlternateValueEncoding :: Lens' Attribute (Maybe Text)

aAlternateNameEncoding :: Lens' Attribute (Maybe Text)

-- | The name of the attribute.
aName :: Lens' Attribute Text

-- | The value of the attribute.
aValue :: Lens' Attribute Text

-- | <i>See:</i> <a>deletableItem</a> smart constructor.
data DeletableItem

-- | Creates a value of <a>DeletableItem</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>diAttributes</a> - Undocumented member.</li>
--   <li><a>diName</a> - Undocumented member.</li>
--   </ul>
deletableItem :: Text -> DeletableItem

-- | Undocumented member.
diAttributes :: Lens' DeletableItem [Attribute]

-- | Undocumented member.
diName :: Lens' DeletableItem Text

-- | <i>See:</i> <a>item</a> smart constructor.
data Item

-- | Creates a value of <a>Item</a> with the minimum fields required to
--   make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>iAlternateNameEncoding</a> -</li>
--   <li><a>iName</a> - The name of the item.</li>
--   <li><a>iAttributes</a> - A list of attributes.</li>
--   </ul>
item :: Text -> Item

iAlternateNameEncoding :: Lens' Item (Maybe Text)

-- | The name of the item.
iName :: Lens' Item Text

-- | A list of attributes.
iAttributes :: Lens' Item [Attribute]

-- | <i>See:</i> <a>replaceableAttribute</a> smart constructor.
data ReplaceableAttribute

-- | Creates a value of <a>ReplaceableAttribute</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>raReplace</a> - <tt>false</tt></li>
--   <li><a>raName</a> - The name of the replaceable attribute.</li>
--   <li><a>raValue</a> - The value of the replaceable attribute.</li>
--   </ul>
replaceableAttribute :: Text -> Text -> ReplaceableAttribute

-- | <pre>
--   false
--   </pre>
raReplace :: Lens' ReplaceableAttribute (Maybe Bool)

-- | The name of the replaceable attribute.
raName :: Lens' ReplaceableAttribute Text

-- | The value of the replaceable attribute.
raValue :: Lens' ReplaceableAttribute Text

-- | <i>See:</i> <a>replaceableItem</a> smart constructor.
data ReplaceableItem

-- | Creates a value of <a>ReplaceableItem</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>riName</a> - The name of the replaceable item.</li>
--   <li><a>riAttributes</a> - The list of attributes for a replaceable
--   item.</li>
--   </ul>
replaceableItem :: Text -> ReplaceableItem

-- | The name of the replaceable item.
riName :: Lens' ReplaceableItem Text

-- | The list of attributes for a replaceable item.
riAttributes :: Lens' ReplaceableItem [ReplaceableAttribute]

-- | 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.
--   
--   <i>See:</i> <a>updateCondition</a> smart constructor.
data UpdateCondition

-- | Creates a value of <a>UpdateCondition</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ucExists</a> - 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 <tt>true</tt> if the attribute must
--   exist for the update condition to be satisfied. Specify <tt>false</tt>
--   if the attribute should not exist in order for the update condition to
--   be satisfied.</li>
--   <li><a>ucValue</a> - The value of an attribute. This value can only be
--   specified when the <tt>Exists</tt> parameter is equal to <tt>true</tt>
--   .</li>
--   <li><a>ucName</a> - The name of the attribute involved in the
--   condition.</li>
--   </ul>
updateCondition :: UpdateCondition

-- | 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 <tt>true</tt> if the attribute must exist for the
--   update condition to be satisfied. Specify <tt>false</tt> if the
--   attribute should not exist in order for the update condition to be
--   satisfied.
ucExists :: Lens' UpdateCondition (Maybe Bool)

-- | The value of an attribute. This value can only be specified when the
--   <tt>Exists</tt> parameter is equal to <tt>true</tt> .
ucValue :: Lens' UpdateCondition (Maybe Text)

-- | The name of the attribute involved in the condition.
ucName :: Lens' UpdateCondition (Maybe Text)
