Adds the specified tags to the specified Elastic Load Balancing resource. You can tag your
Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups,
listeners, and rules.
Each tag consists of a key and an optional value. If a resource already has a tag with the
same key, AddTags updates its value.
example
Use a bare-bones client and the command you need to make an API call.
Adds the specified tags to the specified Elastic Load Balancing resource. You can tag your Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, and rules.
Each tag consists of a key and an optional value. If a resource already has a tag with the same key,
AddTags
updates its value.Use a bare-bones client and the command you need to make an API call.
import { ElasticLoadBalancingV2Client, AddTagsCommand } from "@aws-sdk/client-elastic-load-balancing-v2"; // ES Modules import // const { ElasticLoadBalancingV2Client, AddTagsCommand } = require("@aws-sdk/client-elastic-load-balancing-v2"); // CommonJS import const client = new ElasticLoadBalancingV2Client(config); const command = new AddTagsCommand(input); const response = await client.send(command);
AddTagsCommandInput for command's
input
shape.AddTagsCommandOutput for command's
response
shape.config for ElasticLoadBalancingV2Client's
config
shape.