Skip to contents

Get a role

Usage

aws_role(name)

Arguments

name

(character) the role name

Value

a named list with slots for:

  • role (tibble)

  • policies (character)

  • attached_policies (tibble)

Details

see docs https://www.paws-r-sdk.com/docs/iam_get_role/; also includes policies and attached policies by calling list_role_policies and list_attached_role_policies

See also

Examples

if (FALSE) { # \dontrun{
res <- aws_role(name = "OrganizationAccountSecurityRole")
res
res$role
res$policies
res$attached_policies

aws_role("AWSServiceRoleForCloudTrail")
aws_role("AWSServiceRoleForRedshift")
} # }