Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AddTagsCommand

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.

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);
see

AddTagsCommandInput for command's input shape.

see

AddTagsCommandOutput for command's response shape.

see

config for ElasticLoadBalancingV2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: AddTagsCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<AddTagsCommandInput, AddTagsCommandOutput>

Methods

Static getEndpointParameterInstructions