VirtualHostedStyleUrlOptions

class aws_cdk.aws_s3.VirtualHostedStyleUrlOptions(*, regional=None)

Bases: object

Options for creating Virtual-Hosted style URL.

Parameters:

regional (Optional[bool]) – Specifies the URL includes the region. Default: - true

ExampleMetadata:

infused

Example:

bucket = s3.Bucket(self, "MyBucket")
bucket.url_for_object("objectname") # Path-Style URL
bucket.virtual_hosted_url_for_object("objectname") # Virtual Hosted-Style URL
bucket.virtual_hosted_url_for_object("objectname", regional=False)

Attributes

regional

Specifies the URL includes the region.

Default:
  • true