BucketNamespace

class aws_cdk.aws_s3.BucketNamespace(*values)

Bases: Enum

The namespace for the bucket name when using bucketNamePrefix.

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

ExampleMetadata:

infused

Example:

s3.Bucket(self, "MyBucket",
    bucket_name_prefix="my-app",
    bucket_namespace=s3.BucketNamespace.ACCOUNT_REGIONAL
)

Attributes

ACCOUNT_REGIONAL

The bucket name is unique within the account and region.

GLOBAL

The bucket name is globally unique.