users: Manage IAM Users

Description Usage Arguments Value Examples

Description

Retrieve, create, update, and delete IAM Users

Usage

1
2
3
4
5
6
7
8
9
create_user(user, path, ...)

update_user(user, name, path, ...)

get_user(user, ...)

delete_user(user, ...)

list_users(n, marker, path, ...)

Arguments

user

A character string specifying a user name or an object of class “iam_user”.

path

A character string specifying a path prefix in which to locate user(s), role(s), etc. See Reference Identifiers on the AWS Documentation for more information.

...

Additional arguments passed to iamHTTP.

name

A character string specifying the new name for the user.

n

An integer specifying the number of responses to return.

marker

A character string specifying a marker (from a previous response) to use in paginating results

Value

create_user and get_user return objects of class “iam_user”. update_user and delete_user return a logical TRUE (if successful) or an error. list_users returns a list of IAM user objects.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
list_users()

# create example user
u <- create_user("example-user")

# cleanup
delete_user(u)

## End(Not run)

cloudyr/aws.iam documentation built on May 16, 2020, 1:35 a.m.