Usage
aws_policies(refresh = FALSE, ...)
Arguments
- refresh
(logical) refresh results? default: FALSE. to invalidate
cache and refresh policy data, set refresh=TRUE
- ...
named arguments passed on to
list_policies
Value
A tibble with information about policies. Each row is a policy.
Columns:
Details
uses memoise internally to cache results to speed up all
subsequent calls to the function
See also
Other policies:
as_policy_arn(),
aws_policy(),
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()
# takes a while on the first execution in an R session
aws_policies()
}
if (FALSE) { # interactive() && aws_has_creds()
# faster because first call memoised the result
aws_policies()
# refresh=TRUE will pull from AWS
aws_policies(refresh = TRUE)
}