-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
@aws-cdk/aws-cloudfrontRelated to Amazon CloudFrontRelated to Amazon CloudFronteffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2
Description
Describe the feature
It would be great if we could get ARN of a CloudFront distribution L2 construct.
Use Case
easily get ARN of a distribution.
Proposed Solution
add IDistribution.distributionArn property. We already have a function to calculate it.
aws-cdk/packages/aws-cdk-lib/aws-cloudfront/lib/private/utils.ts
Lines 7 to 14 in bf026bd
| export function formatDistributionArn(dist: IDistribution) { | |
| return Stack.of(dist).formatArn({ | |
| service: 'cloudfront', | |
| region: '', | |
| resource: 'distribution', | |
| resourceName: dist.distributionId, | |
| }); | |
| } |
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.170.0
Environment details (OS name and version, etc.)
macOS
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-cloudfrontRelated to Amazon CloudFrontRelated to Amazon CloudFronteffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2