Skip to main content

CreateBucket

CreateBucket - Amazon Simple Storage Service

Supported headers and XML elements

✅Supported Headers x-amz-acl
  • private
  • public-read
✅Supported XML Element
  • LocationConstraint
Example request
Bucket’s location is inherited from the regional endpoint to which you sent the CreateBucket request. If LocationConstraint is specified in the request body, its value must match that of the location in the regional endpoint. Otherwise, an error will be returned.
In general, bucket names should follow domain name constraints. Bucket names
  • must be unique.
  • cannot be formatted as IP address.
  • can be between 3 and 63 characters long.
  • must not contain uppercase characters or underscores.
  • must start with a lowercase letter or number.
  • can contain a dash (-).
  • must be a series of one or more labels. Adjacent labels are separated by a single period (.). Bucket names can contain lowercase letters, numbers, and hyphens. Each label must start and end with a lowercase letter or a number.
Otherwise the following error will be returned