Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
See: AWS API Reference for GetAttributes.
- getAttributes :: Text -> Text -> GetAttributes
- data GetAttributes
- gaConsistentRead :: Lens' GetAttributes (Maybe Bool)
- gaAttributeNames :: Lens' GetAttributes [Text]
- gaDomainName :: Lens' GetAttributes Text
- gaItemName :: Lens' GetAttributes Text
- getAttributesResponse :: Int -> GetAttributesResponse
- data GetAttributesResponse
- garsAttributes :: Lens' GetAttributesResponse [Attribute]
- garsResponseStatus :: Lens' GetAttributesResponse Int
Creating a Request
Creates a value of GetAttributes
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetAttributes Source
See: getAttributes
smart constructor.
Request Lenses
gaConsistentRead :: Lens' GetAttributes (Maybe Bool) Source
Determines whether or not strong consistency should be enforced when
data is read from SimpleDB. If true
, any data previously written to
SimpleDB will be returned. Otherwise, results will be consistent
eventually, and the client may not see data that was written immediately
before your read.
gaAttributeNames :: Lens' GetAttributes [Text] Source
The names of the attributes.
gaDomainName :: Lens' GetAttributes Text Source
The name of the domain in which to perform the operation.
gaItemName :: Lens' GetAttributes Text Source
The name of the item.
Destructuring the Response
Creates a value of GetAttributesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetAttributesResponse Source
See: getAttributesResponse
smart constructor.
Response Lenses
garsAttributes :: Lens' GetAttributesResponse [Attribute] Source
The list of attributes returned by the operation.
garsResponseStatus :: Lens' GetAttributesResponse Int Source
The response status code.