| aws_policy_exists | R Documentation |
Checks for both customer managed and AWS managed policies
aws_policy_exists(name)
name |
(character) a policy name or arn |
single logical, TRUE or FALSE
Other policies:
as_policy_arn(),
aws_policies(),
aws_policy(),
aws_policy_attach(),
aws_policy_create(),
aws_policy_delete(),
aws_policy_delete_version(),
aws_policy_detach(),
aws_policy_list_entities(),
aws_policy_list_versions(),
aws_policy_update()
# just the policy name
aws_policy_exists("ReadOnlyAccess")
# as an ARN
aws_policy_exists("arn:aws:iam::aws:policy/ReadOnlyAccess")
# includes job-function in path
aws_policy_exists("Billing")
# includes service-role in path
aws_policy_exists("AWSCostAndUsageReportAutomationPolicy")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.