iam_tag_user: Adds one or more tags to an IAM user

Description Usage Arguments Details Request syntax Examples

View source: R/iam_operations.R

Description

Adds one or more tags to an IAM user. If a tag with the same key name already exists, then that tag is overwritten with the new value.

Usage

1
iam_tag_user(UserName, Tags)

Arguments

UserName

[required] The name of the user that you want to add tags to.

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]

Tags

[required] The list of tags that you want to attach to the user. Each tag consists of a key name and an associated value.

Details

A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

<!– –>

For more information about tagging, see Tagging IAM Identities in the IAM User Guide.

Request syntax

1
2
3
4
5
6
7
8
9
svc$tag_user(
  UserName = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# The following example shows how to add tags to an existing user.
svc$tag_user(
  Tags = list(
    list(
      Key = "Dept",
      Value = "Accounting"
    ),
    list(
      Key = "CostCenter",
      Value = "12345"
    )
  ),
  UserName = "anika"
)

paws.security.identity documentation built on Jan. 14, 2020, 5:08 p.m.