Skip to content
v2.276.0

CloudFrontWebDistributionAttributes Struct ​

Attributes used to import a Distribution.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const cloudFrontWebDistributionAttributes: cloudfront.CloudFrontWebDistributionAttributes = {
  distributionId: 'distributionId',
  domainName: 'domainName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront

cloud_front_web_distribution_attributes = cloudfront.CloudFrontWebDistributionAttributes(
    distribution_id="distributionId",
    domain_name="domainName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;

CloudFrontWebDistributionAttributes cloudFrontWebDistributionAttributes = CloudFrontWebDistributionAttributes.builder()
        .distributionId("distributionId")
        .domainName("domainName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;

var cloudFrontWebDistributionAttributes = new CloudFrontWebDistributionAttributes {
    DistributionId = "distributionId",
    DomainName = "domainName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cloudFrontWebDistributionAttributes := &CloudFrontWebDistributionAttributes{
	DistributionId: jsii.String("distributionId"),
	DomainName: jsii.String("domainName"),
}

Properties ​

distributionIdstringdistribution_idstrdistributionIdStringDistributionIdstringDistributionId*stringrequired#
The distribution ID for this distribution.
domainNamestringdomain_namestrdomainNameStringDomainNamestringDomainName*stringrequired#
The generated domain name of the Distribution, such as d111111abcdef8.cloudfront.net.