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

Description

Given a device ID, initiates a claim request for the associated device.

Claiming a device consists of initiating a claim, then publishing a device event, and finalizing the claim. For a device of type button, a device event can be published by simply clicking the device.

Synopsis

Creating a Request

data InitiateDeviceClaim Source #

See: newInitiateDeviceClaim smart constructor.

Constructors

InitiateDeviceClaim' 

Fields

Instances

Instances details
Eq InitiateDeviceClaim Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

Read InitiateDeviceClaim Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

Show InitiateDeviceClaim Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

Generic InitiateDeviceClaim Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

Associated Types

type Rep InitiateDeviceClaim :: Type -> Type #

NFData InitiateDeviceClaim Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

Methods

rnf :: InitiateDeviceClaim -> () #

Hashable InitiateDeviceClaim Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

ToJSON InitiateDeviceClaim Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

AWSRequest InitiateDeviceClaim Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

Associated Types

type AWSResponse InitiateDeviceClaim #

ToHeaders InitiateDeviceClaim Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

ToPath InitiateDeviceClaim Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

ToQuery InitiateDeviceClaim Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

type Rep InitiateDeviceClaim Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

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

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

newInitiateDeviceClaim Source #

Create a value of InitiateDeviceClaim 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:deviceId:InitiateDeviceClaim', initiateDeviceClaim_deviceId - The unique identifier of the device.

Request Lenses

initiateDeviceClaim_deviceId :: Lens' InitiateDeviceClaim Text Source #

The unique identifier of the device.

Destructuring the Response

data InitiateDeviceClaimResponse Source #

See: newInitiateDeviceClaimResponse smart constructor.

Constructors

InitiateDeviceClaimResponse' 

Fields

Instances

Instances details
Eq InitiateDeviceClaimResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

Read InitiateDeviceClaimResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

Show InitiateDeviceClaimResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

Generic InitiateDeviceClaimResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

Associated Types

type Rep InitiateDeviceClaimResponse :: Type -> Type #

NFData InitiateDeviceClaimResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

type Rep InitiateDeviceClaimResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InitiateDeviceClaim

type Rep InitiateDeviceClaimResponse = D1 ('MetaData "InitiateDeviceClaimResponse" "Amazonka.IoT1ClickDevices.InitiateDeviceClaim" "libZSservicesZSamazonka-iot1click-devicesZSamazonka-iot1click-devices" 'False) (C1 ('MetaCons "InitiateDeviceClaimResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newInitiateDeviceClaimResponse Source #

Create a value of InitiateDeviceClaimResponse 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:state:InitiateDeviceClaimResponse', initiateDeviceClaimResponse_state - The device's final claim state.

$sel:httpStatus:InitiateDeviceClaimResponse', initiateDeviceClaimResponse_httpStatus - The response's http status code.

Response Lenses