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 |
Gets information about the specified thing.
- describeThing :: Text -> DescribeThing
- data DescribeThing
- dThingName :: Lens' DescribeThing Text
- describeThingResponse :: Int -> DescribeThingResponse
- data DescribeThingResponse
- dtrsDefaultClientId :: Lens' DescribeThingResponse (Maybe Text)
- dtrsThingTypeName :: Lens' DescribeThingResponse (Maybe Text)
- dtrsAttributes :: Lens' DescribeThingResponse (HashMap Text Text)
- dtrsVersion :: Lens' DescribeThingResponse (Maybe Integer)
- dtrsThingName :: Lens' DescribeThingResponse (Maybe Text)
- dtrsResponseStatus :: Lens' DescribeThingResponse Int
Creating a Request
Creates a value of DescribeThing
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeThing Source #
The input for the DescribeThing operation.
See: describeThing
smart constructor.
Request Lenses
dThingName :: Lens' DescribeThing Text Source #
The name of the thing.
Destructuring the Response
describeThingResponse Source #
Creates a value of DescribeThingResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeThingResponse Source #
The output from the DescribeThing operation.
See: describeThingResponse
smart constructor.
Response Lenses
dtrsDefaultClientId :: Lens' DescribeThingResponse (Maybe Text) Source #
The default client ID.
dtrsThingTypeName :: Lens' DescribeThingResponse (Maybe Text) Source #
The thing type name.
dtrsAttributes :: Lens' DescribeThingResponse (HashMap Text Text) Source #
The thing attributes.
dtrsVersion :: Lens' DescribeThingResponse (Maybe Integer) Source #
The current version of the thing record in the registry.
To avoid unintentional changes to the information in the registry, you can pass the version information in the expectedVersion
parameter of the UpdateThing
and DeleteThing
calls.
dtrsThingName :: Lens' DescribeThingResponse (Maybe Text) Source #
The name of the thing.
dtrsResponseStatus :: Lens' DescribeThingResponse Int Source #
The response status code.