route53: Cname domainName vs recordName ambiguous #25552
Labels
@aws-cdk/aws-route53
Related to Amazon Route 53
documentation
This is a problem with documentation.
effort/small
Small work item – less than a day of effort
p2
Describe the issue
For route53.CnameRecord, the argument
domainName
has definition:The argument
recordName
has definition:That's the same definition. It's not clear which is which.
The only difference is "for this record", but both the target and the alias domain names are associated with this record.
And I expect both of those to be required.
Even once I figure out which argument is which, it's still ambiguous whether I need to pass "myhost" or "myhost.mydomain.com" (i.e.
myhost.${zone.zoneName}
).After trying a few things, I think I've figured out the behavior.
I think
domainName
should be defined as:(Or to align with the service's terminology, we can call this the "value".)
and
recordName
should be redefined asLinks
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53.CnameRecord.html
The text was updated successfully, but these errors were encountered: