| Copyright | (c) 2013-2018 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
Network.AWS.SDB.GetAttributes
Description
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.
- 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
Arguments
| :: Text | |
| -> Text | |
| -> GetAttributes | 
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:
- gaConsistentRead-- true
- gaAttributeNames- The names of the attributes.
- gaDomainName- The name of the domain in which to perform the operation.
- gaItemName- The name of the item.
data GetAttributes Source #
See: getAttributes smart constructor.
Instances
Request Lenses
gaConsistentRead :: Lens' GetAttributes (Maybe Bool) Source #
true
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
getAttributesResponse Source #
Arguments
| :: Int | |
| -> GetAttributesResponse | 
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:
- garsAttributes- The list of attributes returned by the operation.
- garsResponseStatus- -- | The response status code.
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.