| aws_policy_detach | R Documentation | 
Detach a policy from a user, group, or role
aws_policy_detach(.x, policy)
.x | 
 result of a call to create or get method for user, group, or role  | 
policy | 
 (character) a policy name or ARN  | 
A tibble with information about policies
Other policies: 
as_policy_arn(),
aws_policies(),
aws_policy(),
aws_policy_attach(),
aws_policy_create(),
aws_policy_delete(),
aws_policy_delete_version(),
aws_policy_exists(),
aws_policy_list_entities(),
aws_policy_list_versions(),
aws_policy_update()
if (aws_user_exists("user456")) {
  aws_user_delete("user456")
}
aws_user_create("user456")
aws_user("user456") %>% aws_policy_attach("AmazonRDSDataFullAccess")
aws_user("user456") %>% aws_policy_detach("AmazonRDSDataFullAccess")
aws_user("user456")$attached_policies
# cleanup
six_user_delete("user456")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.