Create Or Update Tags
autoscaling_create_or_update_tags | R Documentation |
Creates or updates tags for the specified Auto Scaling group¶
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 Tag Auto Scaling groups and instances in the Amazon EC2 Auto Scaling User Guide.
Usage¶
autoscaling_create_or_update_tags(Tags)
Arguments¶
Tags |
[required] One or more tags. |
Value¶
An empty list.
Request syntax¶
svc$create_or_update_tags(
Tags = list(
list(
ResourceId = "string",
ResourceType = "string",
Key = "string",
Value = "string",
PropagateAtLaunch = TRUE|FALSE
)
)
)
Examples¶
## 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)