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 |
Gets information about the specified thing.
See: AWS API Reference for DescribeThing.
- describeThing :: Text -> DescribeThing
- data DescribeThing
- dThingName :: Lens' DescribeThing Text
- describeThingResponse :: Int -> DescribeThingResponse
- data DescribeThingResponse
- dtrsDefaultClientId :: Lens' DescribeThingResponse (Maybe Text)
- dtrsAttributes :: Lens' DescribeThingResponse (HashMap Text Text)
- 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
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.
dtrsAttributes :: Lens' DescribeThingResponse (HashMap Text Text) Source
The attributes which are name/value pairs in JSON format. For example:
{\"attributes\":{\"some-name1\":\"some-value1\”}, {\"some-name2\":\"some-value2\”}, {\"some-name3\":\"some-value3\”}}
dtrsThingName :: Lens' DescribeThingResponse (Maybe Text) Source
The name of the thing.
dtrsResponseStatus :: Lens' DescribeThingResponse Int Source
The response status code.