Tag Resource
| organizations_tag_resource | R Documentation |
Adds one or more tags to the specified resource¶
Description¶
Adds one or more tags to the specified resource.
Currently, you can attach tags to the following resources in Organizations.
-
Amazon Web Services account
-
Organization root
-
Organizational unit (OU)
-
Policy (any type)
You can only call this operation from the management account or a member account that is a delegated administrator.
Usage¶
organizations_tag_resource(ResourceId, Tags)
Arguments¶
ResourceId |
[required] The ID of the resource to add a tag to. You can specify any of the following taggable resources.
|
Tags |
[required] A list of tags to add to the specified resource. For each tag in the list, you must specify both a tag key and a
value. The value can be an empty string, but you can't set it to
If any one of the tags is not valid or if you exceed the maximum allowed number of tags for a resource, then the entire request fails. |
Value¶
An empty list.
Request syntax¶
svc$tag_resource(
ResourceId = "string",
Tags = list(
list(
Key = "string",
Value = "string"
)
)
)