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 |
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 .
This operation returns paginated results.
Synopsis
- 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:
ltAttributeValue
- The attribute value used to search for things.ltThingTypeName
- The name of the thing type used to search for things.ltNextToken
- The token used to get the next set of results, or null if there are no additional results.ltAttributeName
- The attribute name used to search for things.ltMaxResults
- The maximum number of results to return in this operation.
data ListThings Source #
The input for the ListThings operation.
See: listThings
smart constructor.
Instances
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 used to get 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:
ltrsNextToken
- The token used to get the next set of results, or null if there are no additional results.ltrsThings
- The things.ltrsResponseStatus
- -- | The response status code.
data ListThingsResponse Source #
The output from the ListThings operation.
See: listThingsResponse
smart constructor.
Instances
Response Lenses
ltrsNextToken :: Lens' ListThingsResponse (Maybe Text) Source #
The token used to get 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.