libZSservicesZSamazonka-iot1click-devicesZSamazonka-iot1click-devices
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.IoT1ClickDevices.UpdateDeviceState

Description

Using a Boolean value (true or false), this operation enables or disables the device given a device ID.

Synopsis

Creating a Request

data UpdateDeviceState Source #

See: newUpdateDeviceState smart constructor.

Constructors

UpdateDeviceState' 

Fields

Instances

Instances details
Eq UpdateDeviceState Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

Read UpdateDeviceState Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

Show UpdateDeviceState Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

Generic UpdateDeviceState Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

Associated Types

type Rep UpdateDeviceState :: Type -> Type #

NFData UpdateDeviceState Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

Methods

rnf :: UpdateDeviceState -> () #

Hashable UpdateDeviceState Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

ToJSON UpdateDeviceState Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

AWSRequest UpdateDeviceState Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

Associated Types

type AWSResponse UpdateDeviceState #

ToHeaders UpdateDeviceState Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

ToPath UpdateDeviceState Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

ToQuery UpdateDeviceState Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

type Rep UpdateDeviceState Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

type Rep UpdateDeviceState = D1 ('MetaData "UpdateDeviceState" "Amazonka.IoT1ClickDevices.UpdateDeviceState" "libZSservicesZSamazonka-iot1click-devicesZSamazonka-iot1click-devices" 'False) (C1 ('MetaCons "UpdateDeviceState'" 'PrefixI 'True) (S1 ('MetaSel ('Just "enabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "deviceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse UpdateDeviceState Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

newUpdateDeviceState Source #

Create a value of UpdateDeviceState 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:enabled:UpdateDeviceState', updateDeviceState_enabled - If true, the device is enabled. If false, the device is disabled.

$sel:deviceId:UpdateDeviceState', updateDeviceState_deviceId - The unique identifier of the device.

Request Lenses

updateDeviceState_enabled :: Lens' UpdateDeviceState (Maybe Bool) Source #

If true, the device is enabled. If false, the device is disabled.

updateDeviceState_deviceId :: Lens' UpdateDeviceState Text Source #

The unique identifier of the device.

Destructuring the Response

data UpdateDeviceStateResponse Source #

See: newUpdateDeviceStateResponse smart constructor.

Constructors

UpdateDeviceStateResponse' 

Fields

Instances

Instances details
Eq UpdateDeviceStateResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

Read UpdateDeviceStateResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

Show UpdateDeviceStateResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

Generic UpdateDeviceStateResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

Associated Types

type Rep UpdateDeviceStateResponse :: Type -> Type #

NFData UpdateDeviceStateResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

type Rep UpdateDeviceStateResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.UpdateDeviceState

type Rep UpdateDeviceStateResponse = D1 ('MetaData "UpdateDeviceStateResponse" "Amazonka.IoT1ClickDevices.UpdateDeviceState" "libZSservicesZSamazonka-iot1click-devicesZSamazonka-iot1click-devices" 'False) (C1 ('MetaCons "UpdateDeviceStateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateDeviceStateResponse Source #

Create a value of UpdateDeviceStateResponse 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:httpStatus:UpdateDeviceStateResponse', updateDeviceStateResponse_httpStatus - The response's http status code.

Response Lenses