aws_policy_attach | R Documentation |
Attach a policy to a user, group, or role
aws_policy_attach(.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_create()
,
aws_policy_delete()
,
aws_policy_delete_version()
,
aws_policy_detach()
,
aws_policy_exists()
,
aws_policy_list_entities()
,
aws_policy_list_versions()
,
aws_policy_update()
if (aws_user_exists("user123")) {
aws_user_delete("user123")
}
aws_user_create("user123")
aws_policy("AmazonRDSDataFullAccess")
aws_user("user123") %>% aws_policy_attach("AmazonRDSDataFullAccess")
aws_user("user123")$attached_policies
# cleanup
six_user_delete("user123")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.