Skip to content
v2.273.0

BucketNamespace Enum ​

The namespace for the bucket name when using bucketNamePrefix.

Determines how CloudFormation generates the unique portion of the bucket name.

Example ​

ts
new s3.Bucket(this, 'MyBucket', {
  bucketNamePrefix: 'my-app',
  bucketNamespace: s3.BucketNamespace.ACCOUNT_REGIONAL,
});
// Resulting bucket name: my-app-123456789012-us-east-1-an

Members ​

MemberDescription
GLOBALThe bucket name is globally unique.
ACCOUNT_REGIONALThe bucket name is unique within the account and region.

Referenced by ​

  • BucketProps.bucketNamespacebucket_namespacebucketNamespaceBucketNamespaceBucketNamespace