aws.iam (version 0.1.7)

create_role: Manage IAM Roles

Description

Retrieve, create, update, and delete IAM Roles

Usage

create_role(role, policy, path, ...)

delete_role(role, ...)

add_profile_role(role, profile, ...)

remove_profile_role(role, profile, ...)

list_roles(n, marker, path, ...)

Arguments

role

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

policy

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.

profile

A character string specifying the name for the profile, or an object of class “iam_instance_profile”.

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_role and get_role return objects of class “iam_role”. update_role and delete_role return a logical TRUE (if successful) or an error. list_roles returns a list of IAM role objects.

See Also

create_user, create_group,