iam_list_role_tags: Lists the tags that are attached to the specified role

Description Usage Arguments Request syntax Examples

View source: R/iam_operations.R

Description

Lists the tags that are attached to the specified role. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM Identities in the IAM User Guide.

Usage

1
iam_list_role_tags(RoleName, Marker, MaxItems)

Arguments

RoleName

[required] The name of the IAM role for which you want to see the list of tags.

This parameter accepts (through its regex pattern) a string of characters that consist of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: \_+=,[email protected]

Marker

Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

MaxItems

(Optional) Use this only when paginating results to indicate the maximum number of items that you want in the response. If additional items exist beyond the maximum that you specify, the IsTruncated response element is true.

If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when more results are available. In that case, the IsTruncated response element returns true, and Marker contains a value to include in the subsequent call that tells the service where to continue from.

Request syntax

1
2
3
4
5
svc$list_role_tags(
  RoleName = "string",
  Marker = "string",
  MaxItems = 123
)

Examples

1
2
3
4
# The following example shows how to list the tags attached to a role.
svc$list_role_tags(
  RoleName = "taggedrole1"
)

paws.security.identity documentation built on Oct. 30, 2019, 11:26 a.m.