libZSservicesZSamazonka-iot-dataplaneZSamazonka-iot-dataplane
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Show UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Generic UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Associated Types

type Rep UpdateThingShadow :: Type -> Type #

NFData UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Methods

rnf :: UpdateThingShadow -> () #

Hashable UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

AWSRequest UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Associated Types

type AWSResponse UpdateThingShadow #

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

type Rep UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

type Rep UpdateThingShadow = D1 ('MetaData "UpdateThingShadow" "Amazonka.IoTData.UpdateThingShadow" "libZSservicesZSamazonka-iot-dataplaneZSamazonka-iot-dataplane" '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))))
type AWSResponse UpdateThingShadow Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

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.

$sel:payload: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
Eq UpdateThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Show UpdateThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Generic UpdateThingShadowResponse Source # 
Instance details

Defined in Amazonka.IoTData.UpdateThingShadow

Associated Types

type Rep UpdateThingShadowResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-iot-dataplaneZSamazonka-iot-dataplane" '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:

$sel:payload:UpdateThingShadow', updateThingShadowResponse_payload - The state information, in JSON format.

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

Response Lenses