Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InitiateDeviceClaimCommand

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.

example

Use a bare-bones client and the command you need to make an API call.

import { IoT1ClickDevicesServiceClient, InitiateDeviceClaimCommand } from "@aws-sdk/client-iot-1click-devices-service"; // ES Modules import
// const { IoT1ClickDevicesServiceClient, InitiateDeviceClaimCommand } = require("@aws-sdk/client-iot-1click-devices-service"); // CommonJS import
const client = new IoT1ClickDevicesServiceClient(config);
const command = new InitiateDeviceClaimCommand(input);
const response = await client.send(command);
see

InitiateDeviceClaimCommandInput for command's input shape.

see

InitiateDeviceClaimCommandOutput for command's response shape.

see

config for IoT1ClickDevicesServiceClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: InitiateDeviceClaimCommandInput

Readonly middlewareStack