interface DistributionAttributes
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudFront.DistributionAttributes |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#DistributionAttributes |
Java | software.amazon.awscdk.services.cloudfront.DistributionAttributes |
Python | aws_cdk.aws_cloudfront.DistributionAttributes |
TypeScript (source) | aws-cdk-lib » aws_cloudfront » DistributionAttributes |
Attributes used to import a Distribution.
Example
// Using a reference to an imported Distribution
const distribution = cloudfront.Distribution.fromDistributionAttributes(this, 'ImportedDist', {
domainName: 'd111111abcdef8.cloudfront.net',
distributionId: '012345ABCDEF',
});
Properties
Name | Type | Description |
---|---|---|
distribution | string | The distribution ID for this distribution. |
domain | string | The generated domain name of the Distribution, such as d111111abcdef8.cloudfront.net. |
distributionId
Type:
string
The distribution ID for this distribution.
domainName
Type:
string
The generated domain name of the Distribution, such as d111111abcdef8.cloudfront.net.