paws.networking (version 0.1.6)

elbv2_add_tags: 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, and your target groups.

Usage

elbv2_add_tags(ResourceArns, Tags)

Arguments

ResourceArns

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

Tags

[required] The tags. Each resource can have a maximum of 10 tags.

Request syntax

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

Details

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.

To list the current tags for your resources, use DescribeTags. To remove tags from your resources, use RemoveTags.

Examples

Run this code
# NOT RUN {
# This example adds the specified tags to the specified load balancer.
# }
# NOT RUN {
svc$add_tags(
  ResourceArns = list(
    "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/5..."
  ),
  Tags = list(
    list(
      Key = "project",
      Value = "lima"
    ),
    list(
      Key = "department",
      Value = "digital-media"
    )
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace