| 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 |
Network.AWS.IoTDataPlane.GetThingShadow
Description
Gets the thing shadow for the specified thing.
For more information, see GetThingShadow in the AWS IoT Developer Guide.
See: AWS API Reference for GetThingShadow.
- getThingShadow :: Text -> GetThingShadow
- data GetThingShadow
- gtsThingName :: Lens' GetThingShadow Text
- getThingShadowResponse :: Int -> GetThingShadowResponse
- data GetThingShadowResponse
- gtsrsPayload :: Lens' GetThingShadowResponse (Maybe (HashMap Text Value))
- gtsrsResponseStatus :: Lens' GetThingShadowResponse Int
Creating a Request
Arguments
| :: Text | |
| -> GetThingShadow |
Creates a value of GetThingShadow with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetThingShadow Source
The input for the GetThingShadow operation.
See: getThingShadow smart constructor.
Instances
Request Lenses
gtsThingName :: Lens' GetThingShadow Text Source
The name of the thing.
Destructuring the Response
Arguments
| :: Int | |
| -> GetThingShadowResponse |
Creates a value of GetThingShadowResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetThingShadowResponse Source
The output from the GetThingShadow operation.
See: getThingShadowResponse smart constructor.
Response Lenses
gtsrsPayload :: Lens' GetThingShadowResponse (Maybe (HashMap Text Value)) Source
The state information, in JSON format.
gtsrsResponseStatus :: Lens' GetThingShadowResponse Int Source
The response status code.