Learn R Programming

aws.s3 (version 0.1.33)

get_policy: Bucket policies

Description

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

Usage

get_policy(bucket, ...)
put_policy(bucket, ...)
delete_policy(bucket, ...)

Arguments

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

Value

For get_policy: A list with a policy, if one has been set.. For delete_policy: TRUE if successful, FALSE otherwise. An aws_error object may be returned if the request failed.

References

API Documentation API Documentation