Learn R Programming

aws.cloudtrail (version 0.1.5)

cloudtrail_s3policy: Example Policies for CloudTrail

Description

Construct an S3 or SNS policy document for use with CloudTrail

Usage

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