Copyright | (c) 2013-2018 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 |
Updates the thing shadow for the specified thing.
For more information, see UpdateThingShadow in the AWS IoT Developer Guide .
Synopsis
- updateThingShadow :: Text -> ByteString -> UpdateThingShadow
- data UpdateThingShadow
- utsThingName :: Lens' UpdateThingShadow Text
- utsPayload :: Lens' UpdateThingShadow ByteString
- updateThingShadowResponse :: Int -> UpdateThingShadowResponse
- data UpdateThingShadowResponse
- utsrsPayload :: Lens' UpdateThingShadowResponse (Maybe ByteString)
- utsrsResponseStatus :: Lens' UpdateThingShadowResponse Int
Creating a Request
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 ByteString Source #
The state information, in JSON format.
Destructuring the Response
updateThingShadowResponse Source #
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.
Instances
Response Lenses
utsrsPayload :: Lens' UpdateThingShadowResponse (Maybe ByteString) Source #
The state information, in JSON format.
utsrsResponseStatus :: Lens' UpdateThingShadowResponse Int Source #
- - | The response status code.