List Tags For Resource
organizations_list_tags_for_resource | R Documentation |
Lists tags that are attached to the specified resource¶
Description¶
Lists tags that are attached to the specified resource.
You can attach tags to the following resources in Organizations.
-
Amazon Web Services account
-
Organization root
-
Organizational unit (OU)
-
Policy (any type)
This operation can be called only from the organization's management account or by a member account that is a delegated administrator for an Amazon Web Services service.
Usage¶
organizations_list_tags_for_resource(ResourceId, NextToken)
Arguments¶
ResourceId |
[required] The ID of the resource with the tags to list. You can specify any of the following taggable resources.
|
NextToken |
The parameter for receiving additional results if you receive a
|
Value¶
A list with the following syntax:
list(
Tags = list(
list(
Key = "string",
Value = "string"
)
),
NextToken = "string"
)
Request syntax¶
svc$list_tags_for_resource(
ResourceId = "string",
NextToken = "string"
)