File tree 1 file changed +6
-1
lines changed
packages/@aws-cdk/aws-cloudfront/lib
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -491,6 +491,11 @@ export class CloudFrontWebDistribution extends cdk.Construct {
491
491
*/
492
492
public readonly domainName : string ;
493
493
494
+ /**
495
+ * The distribution ID for this distribution.
496
+ */
497
+ public readonly distributionId : string ;
498
+
494
499
/**
495
500
* Maps our methods to the string arrays they are
496
501
*/
@@ -644,7 +649,7 @@ export class CloudFrontWebDistribution extends cdk.Construct {
644
649
645
650
const distribution = new cloudformation . DistributionResource ( this , 'CFDistribution' , { distributionConfig} ) ;
646
651
this . domainName = distribution . distributionDomainName ;
647
-
652
+ this . distributionId = distribution . distributionId ;
648
653
}
649
654
650
655
private toBehavior ( input : BehaviorWithOrigin , protoPolicy ?: ViewerProtocolPolicy ) {
You can’t perform that action at this time.
0 commit comments