aws_policy: Get a policy

View source: R/policies.R

aws_policyR Documentation

Get a policy

Description

Get a policy

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

Details

see docs https://www.paws-r-sdk.com/docs/iam_get_policy/

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


# 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")


sixtyfour documentation built on April 3, 2025, 8:22 p.m.