| Copyright | (c) 2013-2017 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 |
Network.AWS.IoTDataPlane.UpdateThingShadow
Description
Updates the thing shadow for the specified thing.
For more information, see UpdateThingShadow in the AWS IoT Developer Guide .
- updateThingShadow :: Text -> HashMap Text Value -> UpdateThingShadow
- data UpdateThingShadow
- utsThingName :: Lens' UpdateThingShadow Text
- utsPayload :: Lens' UpdateThingShadow (HashMap Text Value)
- updateThingShadowResponse :: Int -> UpdateThingShadowResponse
- data UpdateThingShadowResponse
- utsrsPayload :: Lens' UpdateThingShadowResponse (Maybe (HashMap Text Value))
- utsrsResponseStatus :: Lens' UpdateThingShadowResponse Int
Creating a Request
Arguments
| :: Text | |
| -> HashMap Text Value | |
| -> UpdateThingShadow |
Creates a value of UpdateThingShadow with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
utsThingName- The name of the thing.utsPayload- The state information, in JSON format.
data UpdateThingShadow Source #
The input for the UpdateThingShadow operation.
See: updateThingShadow smart constructor.
Instances
Request Lenses
utsThingName :: Lens' UpdateThingShadow Text Source #
The name of the thing.
utsPayload :: Lens' UpdateThingShadow (HashMap Text Value) Source #
The state information, in JSON format.
Destructuring the Response
updateThingShadowResponse Source #
Arguments
| :: Int | |
| -> UpdateThingShadowResponse |
Creates a value of UpdateThingShadowResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
utsrsPayload- The state information, in JSON format.utsrsResponseStatus- -- | The response status code.
data UpdateThingShadowResponse Source #
The output from the UpdateThingShadow operation.
See: updateThingShadowResponse smart constructor.
Response Lenses
utsrsPayload :: Lens' UpdateThingShadowResponse (Maybe (HashMap Text Value)) Source #
The state information, in JSON format.
utsrsResponseStatus :: Lens' UpdateThingShadowResponse Int Source #
- - | The response status code.