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

Description

Given a device ID, issues a request to invoke a named device method (with possible parameters). See the "Example POST" code snippet below.

Synopsis

Creating a Request

data InvokeDeviceMethod Source #

See: newInvokeDeviceMethod smart constructor.

Constructors

InvokeDeviceMethod' 

Fields

Instances

Instances details
Eq InvokeDeviceMethod Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

Read InvokeDeviceMethod Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

Show InvokeDeviceMethod Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

Generic InvokeDeviceMethod Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

Associated Types

type Rep InvokeDeviceMethod :: Type -> Type #

NFData InvokeDeviceMethod Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

Methods

rnf :: InvokeDeviceMethod -> () #

Hashable InvokeDeviceMethod Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

ToJSON InvokeDeviceMethod Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

AWSRequest InvokeDeviceMethod Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

Associated Types

type AWSResponse InvokeDeviceMethod #

ToHeaders InvokeDeviceMethod Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

ToPath InvokeDeviceMethod Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

ToQuery InvokeDeviceMethod Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

type Rep InvokeDeviceMethod Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

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

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

newInvokeDeviceMethod Source #

Create a value of InvokeDeviceMethod 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:deviceMethodParameters:InvokeDeviceMethod', invokeDeviceMethod_deviceMethodParameters - A JSON encoded string containing the device method request parameters.

$sel:deviceMethod:InvokeDeviceMethod', invokeDeviceMethod_deviceMethod - The device method to invoke.

$sel:deviceId:InvokeDeviceMethod', invokeDeviceMethod_deviceId - The unique identifier of the device.

Request Lenses

invokeDeviceMethod_deviceMethodParameters :: Lens' InvokeDeviceMethod (Maybe Text) Source #

A JSON encoded string containing the device method request parameters.

invokeDeviceMethod_deviceId :: Lens' InvokeDeviceMethod Text Source #

The unique identifier of the device.

Destructuring the Response

data InvokeDeviceMethodResponse Source #

See: newInvokeDeviceMethodResponse smart constructor.

Constructors

InvokeDeviceMethodResponse' 

Fields

Instances

Instances details
Eq InvokeDeviceMethodResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

Read InvokeDeviceMethodResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

Show InvokeDeviceMethodResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

Generic InvokeDeviceMethodResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

Associated Types

type Rep InvokeDeviceMethodResponse :: Type -> Type #

NFData InvokeDeviceMethodResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

type Rep InvokeDeviceMethodResponse Source # 
Instance details

Defined in Amazonka.IoT1ClickDevices.InvokeDeviceMethod

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

newInvokeDeviceMethodResponse Source #

Create a value of InvokeDeviceMethodResponse 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:deviceMethodResponse:InvokeDeviceMethodResponse', invokeDeviceMethodResponse_deviceMethodResponse - A JSON encoded string containing the device method response.

$sel:httpStatus:InvokeDeviceMethodResponse', invokeDeviceMethodResponse_httpStatus - The response's http status code.

Response Lenses

invokeDeviceMethodResponse_deviceMethodResponse :: Lens' InvokeDeviceMethodResponse (Maybe Text) Source #

A JSON encoded string containing the device method response.