Description Usage Arguments Details Value References
To create a bucket, you must register with Amazon S3 and have a valid AWS Access Key ID to authenticate requests. Anonymous requests are never allowed to create buckets. By creating the bucket, you become the bucket owner.
1 2 3 4 5 6 7 | create_bucket(bucket, acl = c("bucket-owner-full-control", "private",
"public-read", "public-read-write", "aws-exec-read", "authenticated-read",
"bucket-owner-read"), location_constraint = NULL, grant_full_control = "",
grant_read = "", grant_read_acp = "", grant_write = "",
grant_write_acp = "", aws_access_key_id = NULL,
aws_secret_access_key = NULL, aws_session_token = NULL,
region_name = NULL, profile_name = NULL)
|
bucket |
name of the bucket. Not every string is an acceptable bucket name. For information on bucket naming restrictions, see Working with Amazon S3 Buckets. |
acl |
the canned ACL to apply to the bucket. Options are " |
location_constraint |
Specifies the region where the bucket will be created. If you don't specify a region, the bucket will be created in US Standard. |
grant_full_control, grant_read, grant_read_acp, grant_write, grant_write_acp |
grantee strings (optional) |
aws_access_key_id |
AWS access key id |
aws_secret_access_key |
AWS secret access key |
aws_session_token |
AWS session token |
profile_name |
profile name |
By default, the bucket is created in the US East (N. Virginia) region. You can optionally specify a region in the request body.
the API call result structure (invisibly). The Location
element will
have the bucket name if the call was successful.
https://boto3.readthedocs.io/en/latest/reference/services/s3.html#S3.Client.create_bucket
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.