DistributionAttributes

class aws_cdk.aws_cloudfront.DistributionAttributes(*, distribution_id, domain_name)

Bases: object

Attributes used to import a Distribution.

Parameters:
  • distribution_id (str) – The distribution ID for this distribution.

  • domain_name (str) – The generated domain name of the Distribution, such as d111111abcdef8.cloudfront.net.

ExampleMetadata:

infused

Example:

# Using a reference to an imported Distribution
distribution = cloudfront.Distribution.from_distribution_attributes(self, "ImportedDist",
    domain_name="d111111abcdef8.cloudfront.net",
    distribution_id="012345ABCDEF"
)

Attributes

distribution_id

The distribution ID for this distribution.

Attribute:

true

domain_name

The generated domain name of the Distribution, such as d111111abcdef8.cloudfront.net.

Attribute:

true