Learn R Programming

aws.iam (version 0.1.8)

add_policy: Manage IAM Polices

Description

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

Usage

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.