File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/@aws-cdk/aws-cloudfront/lib Expand file tree Collapse file tree 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 {
491491 */
492492 public readonly domainName : string ;
493493
494+ /**
495+ * The distribution ID for this distribution.
496+ */
497+ public readonly distributionId : string ;
498+
494499 /**
495500 * Maps our methods to the string arrays they are
496501 */
@@ -644,7 +649,7 @@ export class CloudFrontWebDistribution extends cdk.Construct {
644649
645650 const distribution = new cloudformation . DistributionResource ( this , 'CFDistribution' , { distributionConfig} ) ;
646651 this . domainName = distribution . distributionDomainName ;
647-
652+ this . distributionId = distribution . distributionId ;
648653 }
649654
650655 private toBehavior ( input : BehaviorWithOrigin , protoPolicy ?: ViewerProtocolPolicy ) {
You can’t perform that action at this time.
0 commit comments