From cb0727bf3bad19607a30c2a7979056ae6b9c3189 Mon Sep 17 00:00:00 2001 From: Kazuho CryerShinozuka Date: Tue, 8 Oct 2024 20:16:21 +0900 Subject: [PATCH 1/2] fix docs --- packages/aws-cdk-lib/aws-route53/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/aws-cdk-lib/aws-route53/README.md b/packages/aws-cdk-lib/aws-route53/README.md index 1c26a12541242..25f18823c5fa0 100644 --- a/packages/aws-cdk-lib/aws-route53/README.md +++ b/packages/aws-cdk-lib/aws-route53/README.md @@ -105,11 +105,13 @@ new route53.ARecord(this, 'ARecord', { ``` To create an A record of type alias with target set to another record created outside CDK: -### This function registers the given input i.e. DNS Name(string) of an existing record as an AliasTarget to the new ARecord. To register a target that is created as part of CDK use this instead https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53_targets-readme.html -```ts +This function registers the given input i.e. DNS Name(string) of an existing record as an AliasTarget to the new ARecord. To register a target that is created as part of CDK use this instead. +Detail information is documented at . +```ts declare const myZone: route53.HostedZone; + const targetRecord = 'existing.record.cdk.local'; const record = route53.ARecord.fromARecordAttributes(this, 'A', { zone: myZone, From f30bb2ac6b2a162670b69190696fae02e294240b Mon Sep 17 00:00:00 2001 From: Kazuho CryerShinozuka Date: Tue, 8 Oct 2024 20:40:56 +0900 Subject: [PATCH 2/2] update --- packages/aws-cdk-lib/aws-route53/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/aws-cdk-lib/aws-route53/README.md b/packages/aws-cdk-lib/aws-route53/README.md index 25f18823c5fa0..27914033f704d 100644 --- a/packages/aws-cdk-lib/aws-route53/README.md +++ b/packages/aws-cdk-lib/aws-route53/README.md @@ -107,7 +107,8 @@ new route53.ARecord(this, 'ARecord', { To create an A record of type alias with target set to another record created outside CDK: This function registers the given input i.e. DNS Name(string) of an existing record as an AliasTarget to the new ARecord. To register a target that is created as part of CDK use this instead. -Detail information is documented at . + +Detailed information can be found in the [documentation](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53_targets-readme.html). ```ts declare const myZone: route53.HostedZone;