-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Description
Describe the feature
Same as the PublicHostedZone.fromPublicHostedZoneAttributes we would like to resolve an IPrivateHostedZone from a zone ID and zone name.
Currently, we can import a private hosted zone using PrivateHostedZone.fromPrivateHostedZoneId, but this will not allow us to reference the zoneName in CDK which is needed for our use case.
Use Case
We have a use case where we're creating record sets using CfnRecordSet for an imported private hosted zone. We created a custom construct that takes a IPrivateHostedZone as a parameter, and we need the zone name to create the full subdomain name in the custom construct. We could use IHostedZone but would like to be strict and only have the custom construct to accept IPrivateHostedZone
Proposed Solution
Use the same implementation for PublicHostedZone.fromPublicHostedZoneAttributes
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.47.0
Environment details (OS name and version, etc.)
MacOS Monterey