Tag Resource
servicediscovery_tag_resource | R Documentation |
Adds one or more tags to the specified resource¶
Description¶
Adds one or more tags to the specified resource.
Usage¶
servicediscovery_tag_resource(ResourceARN, Tags)
Arguments¶
ResourceARN |
[required] The Amazon Resource Name (ARN) of the resource that you want to retrieve tags for. |
Tags |
[required] The tags to add to the specified resource. Specifying the tag key is required. You can set the value of a tag to an empty string, but you can't set the value of a tag to null. |
Value¶
An empty list.
Request syntax¶
svc$tag_resource(
ResourceARN = "string",
Tags = list(
list(
Key = "string",
Value = "string"
)
)
)
Examples¶
## Not run:
# This example adds "Department" and "Project" tags to a resource.
svc$tag_resource(
ResourceARN = "arn:aws:servicediscovery:us-east-1:123456789012:namespace/...",
Tags = list(
list(
Key = "Department",
Value = "Engineering"
),
list(
Key = "Project",
Value = "Zeta"
)
)
)
## End(Not run)