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 the thing shadow for the specified thing.
For more information, see GetThingShadow in the AWS IoT Developer Guide.
- 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
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.
Request Lenses
gtsThingName :: Lens' GetThingShadow Text Source #
The name of the thing.
Destructuring the Response
getThingShadowResponse Source #
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.