policies: Example Policies for CloudTrail

Description Usage Arguments Value

Description

Construct an S3 or SNS policy document for use with CloudTrail

Usage

1
2
3
cloudtrail_s3policy(bucket, account_id, prefix = NULL)

cloudtrail_snspolicy(topic)

Arguments

bucket

A character string containing an S3 bucket name, or an object of class “s3_bucket”.

account_id

A character string containing an AWS account ID.

prefix

Optionally, a character string containing the prefix for the Account ID. This can be retrieved from the AWS console or via a call to aws.iam::get_caller_identity().

topic

A character string specifying the SNS topic ARN.

Value

A character string containing the policy


cloudyr/aws.cloudtrail documentation built on Jan. 14, 2020, 4:54 a.m.