Construct an S3 or SNS policy document for use with CloudTrail
cloudtrail_s3policy(bucket, account_id, prefix = NULL)cloudtrail_snspolicy(topic)
A character string containing an S3 bucket name, or an object of class “s3_bucket”.
A character string containing an AWS account ID.
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()
.
A character string specifying the SNS topic ARN.
A character string containing the policy