Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Given a device ID, finalizes the 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, FinalizeDeviceClaimCommand } from "@aws-sdk/client-iot-1click-devices-service"; // ES Modules import
// const { IoT1ClickDevicesServiceClient, FinalizeDeviceClaimCommand } = require("@aws-sdk/client-iot-1click-devices-service"); // CommonJS import
const client = new IoT1ClickDevicesServiceClient(config);
const input = { // FinalizeDeviceClaimRequest
DeviceId: "STRING_VALUE", // required
Tags: { // __mapOf__string
"<keys>": "STRING_VALUE",
},
};
const command = new FinalizeDeviceClaimCommand(input);
const response = await client.send(command);
// { // FinalizeDeviceClaimResponse
// State: "STRING_VALUE",
// };

Param

FinalizeDeviceClaimCommandInput

Returns

FinalizeDeviceClaimCommandOutput

See

Throws

InternalFailureException (server fault)

Throws

InvalidRequestException (client fault)

Throws

PreconditionFailedException (client fault)

Throws

ResourceConflictException (client fault)

Throws

ResourceNotFoundException (client fault)

Throws

IoT1ClickDevicesServiceServiceException

Base exception class for all service exceptions from IoT1ClickDevicesService service.

Hierarchy

Constructors

Properties

Methods