Usage
aws_policy(name, local = FALSE, path = NULL)
Arguments
- name
(character) a policy name or arn
- local
(logical) if TRUE
use your AWS account for your own
managed policies. If FALSE
, AWS managed policies
- path
(character) if not NULL
, we add the path into the ARN
before the name
value
Value
a tibble with policy details
See also
Other policies:
as_policy_arn()
,
aws_policies()
,
aws_policy_attach()
,
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()
Examples
if (FALSE) { # aws_has_creds()
# get an AWS managed policy (local = FALSE - the default)
aws_policy("AmazonS3FullAccess")
# get a policy by arn
aws_policy("arn:aws:iam::aws:policy/AmazonS3FullAccess")
}