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
| Member | Description |
|---|---|
GLOBAL | The bucket name is globally unique. |
ACCOUNT_REGIONAL | The bucket name is unique within the account and region. |
Referenced by
BucketProps.bucketNamespacebucket_namespacebucketNamespaceBucketNamespaceBucketNamespace