Skip to content

Add Tags

elbv2_add_tags R Documentation

Adds the specified tags to the specified Elastic Load Balancing resource

Description

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, trust stores, listeners, and rules.

Each tag consists of a key and an optional value. If a resource already has a tag with the same key, add_tags updates its value.

Usage

elbv2_add_tags(ResourceArns, Tags)

Arguments

ResourceArns

[required] The Amazon Resource Name (ARN) of the resource.

Tags

[required] The tags.

Value

An empty list.

Request syntax

svc$add_tags(
  ResourceArns = list(
    "string"
  ),
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

Examples

## Not run: 
# This example adds the specified tags to the specified load balancer.
svc$add_tags(
  ResourceArns = list(
    "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/m..."
  ),
  Tags = list(
    list(
      Key = "project",
      Value = "lima"
    ),
    list(
      Key = "department",
      Value = "digital-media"
    )
  )
)

## End(Not run)