Character string with the name of the bucket, or an object of class “s3_bucket”.
region
A character string containing the AWS region. If missing, defaults to value of environment variable AWS_DEFAULT_REGION.
acl
A character string indicating a “canned” access control list. By default all bucket contents and objects therein are given the ACL “private”. This can later be viewed using get_acl and modified using put_acl.
location_constraint
A character string specifying a location constraint. If NULL (for example, for S3-compatible storage), no LocationConstraint body is passed.
Bucket policies regulate who has what access to a bucket and its contents. The header argument can beused to specify “canned” policies and put_bucket_policy can be used to specify a more complex policy. The AWS Policy Generator can be useful for creating the appropriate JSON policy structure.
# NOT RUN { put_bucket("examplebucket")
# set a "canned" ACL to, e.g., make bucket publicly readable put_bucket("examplebucket", headers = list(`x-amz-acl` = "public-read")
# }