policies: Manage IAM Polices

Description Usage Arguments Value

Description

Retrieve, create, update, and delete IAM Role, User, and Group Polices

Usage

1
2
3
4
5
6
7
8
9
add_policy(user, group, role, policy, doc, ...)

update_policy(role, doc, ...)

get_policy(policy, user, group, role, ...)

delete_policy(user, group, role, policy, ...)

list_policies(user, group, role, n, marker, ...)

Arguments

user

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

group

A character string containing a group name or an object of class “iam_group”.

role

A character string containing a role name or an object of class “iam_role”.

policy

A character string specifying the policy name.

doc

The contents of the policy document as a character string.

...

Additional arguments passed to iamHTTP.

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

add_policy and get_policy return objects of class “iam_policy”. update_policy and delete_policy return a logical TRUE (if successful) or an error. list_policies returns a list of IAM role objects.


cloudyr/aws.iam documentation built on July 31, 2018, 6:23 p.m.