Copyright | (c) 2013-2016 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 |
Lists your things. Use the attributeName and attributeValue parameters to filter your things. For example, calling ListThings
with attributeName=Color and attributeValue=Red retrieves all things in the registry that contain an attribute Color with the value Red.
- listThings :: ListThings
- data ListThings
- ltAttributeValue :: Lens' ListThings (Maybe Text)
- ltThingTypeName :: Lens' ListThings (Maybe Text)
- ltNextToken :: Lens' ListThings (Maybe Text)
- ltAttributeName :: Lens' ListThings (Maybe Text)
- ltMaxResults :: Lens' ListThings (Maybe Natural)
- listThingsResponse :: Int -> ListThingsResponse
- data ListThingsResponse
- ltrsNextToken :: Lens' ListThingsResponse (Maybe Text)
- ltrsThings :: Lens' ListThingsResponse [ThingAttribute]
- ltrsResponseStatus :: Lens' ListThingsResponse Int
Creating a Request
listThings :: ListThings Source #
Creates a value of ListThings
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ListThings Source #
The input for the ListThings operation.
See: listThings
smart constructor.
Request Lenses
ltAttributeValue :: Lens' ListThings (Maybe Text) Source #
The attribute value used to search for things.
ltThingTypeName :: Lens' ListThings (Maybe Text) Source #
The name of the thing type used to search for things.
ltNextToken :: Lens' ListThings (Maybe Text) Source #
The token for the next set of results, or null if there are no additional results.
ltAttributeName :: Lens' ListThings (Maybe Text) Source #
The attribute name used to search for things.
ltMaxResults :: Lens' ListThings (Maybe Natural) Source #
The maximum number of results to return in this operation.
Destructuring the Response
Creates a value of ListThingsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ListThingsResponse Source #
The output from the ListThings operation.
See: listThingsResponse
smart constructor.
Response Lenses
ltrsNextToken :: Lens' ListThingsResponse (Maybe Text) Source #
The token for the next set of results, or null if there are no additional results.
ltrsThings :: Lens' ListThingsResponse [ThingAttribute] Source #
The things.
ltrsResponseStatus :: Lens' ListThingsResponse Int Source #
The response status code.