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.UpdateThingShadow

Description

Updates the shadow for the specified thing.

Requires permission to access the UpdateThingShadow action.

For more information, see UpdateThingShadow in the IoT Developer Guide.

Synopsis

Creating a Request

data UpdateThingShadow Source #

The input for the UpdateThingShadow operation.

See: newUpdateThingShadow smart constructor.

Constructors

UpdateThingShadow' 

Fields

Instances

Instances details
ToBody UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

ToHeaders UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

ToPath UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

ToQuery UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

AWSRequest UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Associated Types

type AWSResponse UpdateThingShadow #

Generic UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Associated Types

type Rep UpdateThingShadow :: Type -> Type #

Show UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

NFData UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Methods

rnf :: UpdateThingShadow -> () #

Eq UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Hashable UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

type AWSResponse UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

type Rep UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

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

newUpdateThingShadow Source #

Create a value of UpdateThingShadow 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:UpdateThingShadow', updateThingShadow_shadowName - The name of the shadow.

$sel:thingName:UpdateThingShadow', updateThingShadow_thingName - The name of the thing.

UpdateThingShadow, updateThingShadow_payload - The state information, in JSON format.

Request Lenses

updateThingShadow_payload :: Lens' UpdateThingShadow ByteString Source #

The state information, in JSON format.

Destructuring the Response

data UpdateThingShadowResponse Source #

The output from the UpdateThingShadow operation.

See: newUpdateThingShadowResponse smart constructor.

Constructors

UpdateThingShadowResponse' 

Fields

Instances

Instances details
Generic UpdateThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Associated Types

type Rep UpdateThingShadowResponse :: Type -> Type #

Show UpdateThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

NFData UpdateThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Eq UpdateThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

type Rep UpdateThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

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

newUpdateThingShadowResponse Source #

Create a value of UpdateThingShadowResponse 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:

UpdateThingShadow, updateThingShadowResponse_payload - The state information, in JSON format.

$sel:httpStatus:UpdateThingShadowResponse', updateThingShadowResponse_httpStatus - The response's http status code.

Response Lenses