Skip to content

Commit f58d98c

Browse files
authoredOct 16, 2018
fix(aws-cloudfront): expose distributionId (#938)
1 parent b743362 commit f58d98c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎packages/@aws-cdk/aws-cloudfront/lib/web_distribution.ts

+6-1
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)