aws_route53: Allow more fields from lower level construct (CfnRecordSet) into higher level Record constructs #26753
Closed
1 of 2 tasks
Labels
@aws-cdk/aws-route53
Related to Amazon Route 53
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
When working with constructs such as
ARecord
, we cannot use a weighted routing policy directly from the construct props. Instead, we have to do something hacky like this:It'd be nice for there to be some sort of solution here that doesn't involve downcasting and knowledge of the guts of this construct to properly hack around.
Use Case
Weighted records of all types for route 53.
Proposed Solution
Not sure how useful this will be for someone who's actually going to do the work...
Since routing policies are mutually exclusive, perhaps some tagged union magic on a new "routing" field would help. For example:
(basically implement these routing policies from AWS' docs)
Other Information
No response
Acknowledgements
CDK version used
2, TypeScript
Environment details (OS name and version, etc.)
AL2 on x86
The text was updated successfully, but these errors were encountered: