tags: Tags

Description Usage Arguments Value References See Also Examples

Description

Tag an EC2 Resource

Usage

1
2
3
4
5
create_tags(resource, tag, ...)

delete_tags(resource, tag = NULL, ...)

describe_tags(filter = NULL, n = NULL, page = NULL, ...)

Arguments

resource

A character vector specifying one or more resource IDs, typically EC2 instance IDs.

tag

A named character string of key-value pairs of tag names and their corresponding values. For delete_tags, the value can be an empty string (in which case, the tag is delete regardless of value) or a specific value (in which case the tag is only deleted if it matches the value).

...

Additional arguments passed to [ec2HTTP()].

filter

...

n

...

page

...

Value

For create_tags and delete_tags, a logical. Otherwise, a list of tags.

References

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTags.html http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTags.html

See Also

describe_instances(), get_instance_attr(), associate_ip()

Examples

1
2
3
4
5
6
7
## Not run: 
create_tags("i-b79cfd34", list(foo = "bar"))
describe_tags()
delete_tags("i-b79cfd34", list("foo" = "notbar"))
delete_tags("i-b79cfd34", list("foo" = "bar"))

## End(Not run)

cloudyr/aws.ec2 documentation built on Jan. 14, 2020, 4:55 a.m.