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.

Class TagResourceCommandProtected

Add a tag to a Amazon SWF domain.

Amazon SWF supports a maximum of 50 tags per resource.

Example

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

import { SWFClient, TagResourceCommand } from "@aws-sdk/client-swf"; // ES Modules import
// const { SWFClient, TagResourceCommand } = require("@aws-sdk/client-swf"); // CommonJS import
const client = new SWFClient(config);
const input = { // TagResourceInput
resourceArn: "STRING_VALUE", // required
tags: [ // ResourceTagList // required
{ // ResourceTag
key: "STRING_VALUE", // required
value: "STRING_VALUE",
},
],
};
const command = new TagResourceCommand(input);
const response = await client.send(command);
// {};

Param

TagResourceCommandInput

Returns

TagResourceCommandOutput

See

Throws

LimitExceededFault (client fault)

Returned by any operation if a system imposed limitation has been reached. To address this fault you should either clean up unused resources or increase the limit by contacting AWS.

Throws

OperationNotPermittedFault (client fault)

Returned when the caller doesn't have sufficient permissions to invoke the action.

Throws

TooManyTagsFault (client fault)

You've exceeded the number of tags allowed for a domain.

Throws

UnknownResourceFault (client fault)

Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.

Throws

SWFServiceException

Base exception class for all service exceptions from SWF service.

Hierarchy

Constructors

Properties

middlewareStack: MiddlewareStack<TagResourceCommandInput, TagResourceCommandOutput>

Methods