paws.management (version 0.1.0)

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

Description

Creates or updates tags for the specified Auto Scaling group.

Usage

autoscaling_create_or_update_tags(Tags)

Arguments

Tags

[required] One or more tags.

Request syntax

svc$create_or_update_tags(
  Tags = list(
    list(
      ResourceId = "string",
      ResourceType = "string",
      Key = "string",
      Value = "string",
      PropagateAtLaunch = TRUE|FALSE
    )
  )
)

Details

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.

Examples

Run this code
# NOT RUN {
# This example adds two tags to the specified Auto Scaling group.
# }
# NOT RUN {
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"
    )
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab