Adds the specified tags to the specified Direct Connect resource. Each resource can have a maximum of 50 tags.
Each tag consists of a key and an optional value. If a tag with the same key is already associated with the resource, this action updates its value.
Use a bare-bones client and the command you need to make an API call.
import { DirectConnectClient, TagResourceCommand } from "@aws-sdk/client-direct-connect"; // ES Modules import // const { DirectConnectClient, TagResourceCommand } = require("@aws-sdk/client-direct-connect"); // CommonJS import const client = new DirectConnectClient(config); const command = new TagResourceCommand(input); const response = await client.send(command);
TagResourceCommandInput for command's input shape.
input
TagResourceCommandOutput for command's response shape.
response
config for DirectConnectClient's config shape.
config
Adds the specified tags to the specified Direct Connect resource. Each resource can have a maximum of 50 tags.
Each tag consists of a key and an optional value. If a tag with the same key is already associated with the resource, this action updates its value.
Use a bare-bones client and the command you need to make an API call.
import { DirectConnectClient, TagResourceCommand } from "@aws-sdk/client-direct-connect"; // ES Modules import // const { DirectConnectClient, TagResourceCommand } = require("@aws-sdk/client-direct-connect"); // CommonJS import const client = new DirectConnectClient(config); const command = new TagResourceCommand(input); const response = await client.send(command);
TagResourceCommandInput for command's
input
shape.TagResourceCommandOutput for command's
response
shape.config for DirectConnectClient's
config
shape.