autoscaling_create_or_update_tags: Creates or updates tags for the specified Auto Scaling group

Description Usage Arguments Value Request syntax Examples

View source: R/autoscaling_operations.R

Description

Creates or updates tags for the specified Auto Scaling group.

When you specify a tag with a key that already exists, the operation overwrites the previous tag definition, and you do not get an error message.

For more information, see Tagging Auto Scaling groups and instances in the Amazon EC2 Auto Scaling User Guide.

Usage

1

Arguments

Tags

[required] One or more tags.

Value

An empty list.

Request syntax

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
svc$create_or_update_tags(
  Tags = list(
    list(
      ResourceId = "string",
      ResourceType = "string",
      Key = "string",
      Value = "string",
      PropagateAtLaunch = TRUE|FALSE
    )
  )
)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Not run: 
# This example adds two tags to the specified Auto Scaling group.
svc$create_or_update_tags(
  Tags = list(
    list(
      Key = "Role",
      PropagateAtLaunch = TRUE,
      ResourceId = "my-auto-scaling-group",
      ResourceType = "auto-scaling-group",
      Value = "WebServer"
    ),
    list(
      Key = "Dept",
      PropagateAtLaunch = TRUE,
      ResourceId = "my-auto-scaling-group",
      ResourceType = "auto-scaling-group",
      Value = "Research"
    )
  )
)

## End(Not run)

paws.management documentation built on Aug. 23, 2021, 9:11 a.m.