Copyright | (c) 2013-2021 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 |
Gets the shadow for the specified thing.
Requires permission to access the GetThingShadow action.
For more information, see GetThingShadow in the IoT Developer Guide.
Synopsis
- data GetThingShadow = GetThingShadow' {
- shadowName :: Maybe Text
- thingName :: Text
- newGetThingShadow :: Text -> GetThingShadow
- getThingShadow_shadowName :: Lens' GetThingShadow (Maybe Text)
- getThingShadow_thingName :: Lens' GetThingShadow Text
- data GetThingShadowResponse = GetThingShadowResponse' {
- payload :: Maybe ByteString
- httpStatus :: Int
- newGetThingShadowResponse :: Int -> GetThingShadowResponse
- getThingShadowResponse_payload :: Lens' GetThingShadowResponse (Maybe ByteString)
- getThingShadowResponse_httpStatus :: Lens' GetThingShadowResponse Int
Creating a Request
data GetThingShadow Source #
The input for the GetThingShadow operation.
See: newGetThingShadow
smart constructor.
GetThingShadow' | |
|
Instances
Create a value of GetThingShadow
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:shadowName:GetThingShadow'
, getThingShadow_shadowName
- The name of the shadow.
$sel:thingName:GetThingShadow'
, getThingShadow_thingName
- The name of the thing.
Request Lenses
getThingShadow_shadowName :: Lens' GetThingShadow (Maybe Text) Source #
The name of the shadow.
getThingShadow_thingName :: Lens' GetThingShadow Text Source #
The name of the thing.
Destructuring the Response
data GetThingShadowResponse Source #
The output from the GetThingShadow operation.
See: newGetThingShadowResponse
smart constructor.
GetThingShadowResponse' | |
|
Instances
newGetThingShadowResponse Source #
Create a value of GetThingShadowResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:payload:GetThingShadowResponse'
, getThingShadowResponse_payload
- The state information, in JSON format.
$sel:httpStatus:GetThingShadowResponse'
, getThingShadowResponse_httpStatus
- The response's http status code.
Response Lenses
getThingShadowResponse_payload :: Lens' GetThingShadowResponse (Maybe ByteString) Source #
The state information, in JSON format.
getThingShadowResponse_httpStatus :: Lens' GetThingShadowResponse Int Source #
The response's http status code.