Skip to contents

Detach a policy from a user, group, or role

Usage

aws_policy_detach(.x, policy)

Arguments

.x

result of a call to create or get method for user, group, or role

policy

(character) a policy name or ARN

Value

A tibble with information about policies

Examples

if (FALSE) { # \dontrun{
aws_user() %>%
  aws_policy_detach("AmazonRDSDataFullAccess")
aws_user()$attached_policies

# aws_role("OrganizationAccountSecurityRole") %>%
#  aws_policy_detach("ReadOnlyAccess")
} # }