We are excited to announce our new API Documentation.
Protected
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.
Use a bare-bones client and the command you need to make an API call.
import { IoT1ClickDevicesServiceClient, TagResourceCommand } from "@aws-sdk/client-iot-1click-devices-service"; // ES Modules import// const { IoT1ClickDevicesServiceClient, TagResourceCommand } = require("@aws-sdk/client-iot-1click-devices-service"); // CommonJS importconst client = new IoT1ClickDevicesServiceClient(config);const input = { // TagResourceRequest ResourceArn: "STRING_VALUE", // required Tags: { // __mapOf__string // required "<keys>": "STRING_VALUE", },};const command = new TagResourceCommand(input);const response = await client.send(command);// {};
TagResourceCommandInput
TagResourceCommandOutput
input
response
config
InternalFailureException (server fault)
InvalidRequestException (client fault)
ResourceNotFoundException (client fault)
IoT1ClickDevicesServiceServiceException
Base exception class for all service exceptions from IoT1ClickDevicesService service.
Readonly
Static
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.
Example
Use a bare-bones client and the command you need to make an API call.
Param
TagResourceCommandInput
Returns
TagResourceCommandOutput
See
input
shape.response
shape.config
shape.Throws
InternalFailureException (server fault)
Throws
InvalidRequestException (client fault)
Throws
ResourceNotFoundException (client fault)
Throws
IoT1ClickDevicesServiceServiceException
Base exception class for all service exceptions from IoT1ClickDevicesService service.