Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

IoT1ClickDevicesService

import { IoT1ClickDevicesService } from "https://aws-api.deno.dev/v0.3/services/iot1clickdevicesservice.ts?docs=full";
class IoT1ClickDevicesService {
constructor(apiFactory: client.ApiFactory);
async claimDevicesByClaimCode(params: ClaimDevicesByClaimCodeRequest, opts?: client.RequestOptions): Promise<ClaimDevicesByClaimCodeResponse>;
async describeDevice(params: DescribeDeviceRequest, opts?: client.RequestOptions): Promise<DescribeDeviceResponse>;
async finalizeDeviceClaim(params: FinalizeDeviceClaimRequest, opts?: client.RequestOptions): Promise<FinalizeDeviceClaimResponse>;
async getDeviceMethods(params: GetDeviceMethodsRequest, opts?: client.RequestOptions): Promise<GetDeviceMethodsResponse>;
async initiateDeviceClaim(params: InitiateDeviceClaimRequest, opts?: client.RequestOptions): Promise<InitiateDeviceClaimResponse>;
async invokeDeviceMethod(params: InvokeDeviceMethodRequest, opts?: client.RequestOptions): Promise<InvokeDeviceMethodResponse>;
async listDeviceEvents(params: ListDeviceEventsRequest, opts?: client.RequestOptions): Promise<ListDeviceEventsResponse>;
async listDevices(params?: ListDevicesRequest, opts?: client.RequestOptions): Promise<ListDevicesResponse>;
async listTagsForResource(params: ListTagsForResourceRequest, opts?: client.RequestOptions): Promise<ListTagsForResourceResponse>;
async tagResource(params: TagResourceRequest, opts?: client.RequestOptions): Promise<void>;
async unclaimDevice(params: UnclaimDeviceRequest, opts?: client.RequestOptions): Promise<UnclaimDeviceResponse>;
async untagResource(params: UntagResourceRequest, opts?: client.RequestOptions): Promise<void>;
async updateDeviceState(params: UpdateDeviceStateRequest, opts?: client.RequestOptions): Promise<void>;
 
static ApiMetadata: client.ApiMetadata;
}

§Constructors

§
new IoT1ClickDevicesService(apiFactory: client.ApiFactory)
[src]

§Methods

§

Adds device(s) to your account (i.e., claim one or more devices) if and only if you received a claim code with the device(s).

§

Given a device ID, returns a DescribeDeviceResponse object describing the details of the device.

§

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

Note: 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.

§

Given a device ID, returns the invokable methods associated with the device.

§

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

Note: 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.

§

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

§

Using a device ID, returns a DeviceEventsResponse object containing an array of events for the device.

§
listDevices(params?: ListDevicesRequest, opts?: client.RequestOptions): Promise<ListDevicesResponse>
[src]

Lists the 1-Click compatible devices associated with your AWS account.

§

Lists the tags associated with the specified resource ARN.

§
tagResource(params: TagResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

Adds or updates the tags associated with the resource ARN. See AWS IoT 1-Click Service Limits for the maximum number of tags allowed per resource.

§

Disassociates a device from your AWS account using its device ID.

§
untagResource(params: UntagResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

Using tag keys, deletes the tags (key/value pairs) associated with the specified resource ARN.

§
updateDeviceState(params: UpdateDeviceStateRequest, opts?: client.RequestOptions): Promise<void>
[src]

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

§Static Properties