amazonka-iot-dataplane-2.0: Amazon IoT Data Plane SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoTData.GetThingShadow

Description

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

Creating a Request

data GetThingShadow Source #

The input for the GetThingShadow operation.

See: newGetThingShadow smart constructor.

Constructors

GetThingShadow' 

Fields

Instances

Instances details
ToHeaders GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

ToPath GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

ToQuery GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

AWSRequest GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

Associated Types

type AWSResponse GetThingShadow #

Generic GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

Associated Types

type Rep GetThingShadow :: Type -> Type #

Read GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

Show GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

NFData GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

Methods

rnf :: GetThingShadow -> () #

Eq GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

Hashable GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

type AWSResponse GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

type Rep GetThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

type Rep GetThingShadow = D1 ('MetaData "GetThingShadow" "Amazonka.IoTData.GetThingShadow" "amazonka-iot-dataplane-2.0-Fdc9p3E1INX2O9pOv9RFV7" 'False) (C1 ('MetaCons "GetThingShadow'" 'PrefixI 'True) (S1 ('MetaSel ('Just "shadowName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetThingShadow Source #

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

Destructuring the Response

data GetThingShadowResponse Source #

The output from the GetThingShadow operation.

See: newGetThingShadowResponse smart constructor.

Constructors

GetThingShadowResponse' 

Fields

Instances

Instances details
Generic GetThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

Associated Types

type Rep GetThingShadowResponse :: Type -> Type #

Show GetThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

NFData GetThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

Methods

rnf :: GetThingShadowResponse -> () #

Eq GetThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

type Rep GetThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.GetThingShadow

type Rep GetThingShadowResponse = D1 ('MetaData "GetThingShadowResponse" "Amazonka.IoTData.GetThingShadow" "amazonka-iot-dataplane-2.0-Fdc9p3E1INX2O9pOv9RFV7" 'False) (C1 ('MetaCons "GetThingShadowResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ByteString)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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