Learn R Programming

aws.s3 (version 0.1.34)

get_bucket_policy: Bucket policies

Description

Get/Put/Delete the bucket access policy for a bucket.

Usage

get_bucket_policy(bucket, ...)
put_bucket_policy(bucket, policy, ...)
delete_bucket_policy(bucket, ...)

Arguments

bucket
Character string with the name of the bucket, or an object of class “s3_bucket”.
policy
A character string containing a bucket policy.
...
Additional arguments passed to s3HTTP.

Value

For get_policy: A character string containing the JSON representation of the policy, if one has been set. For delete_policy and put_policy: TRUE if successful, FALSE otherwise. An aws_error object may be returned if the request failed.

References

API Documentation API Documentation