Skip to content

Commit 0e6e37e

Browse files
feat(route53): multivalue answer routing (#28938)
### Issue Closes #28939. ### Reason for this change When configuring multi-value answer routing, it was always necessary to set it via the L1 method or use an escape hatch. ### Description of changes I added `multiValueAnswering` property to `RecordSetProps`. ```ts new route53.ARecord(this, 'MultiValueAnswerRouting', { zone: hostedZone, recordName: 'www', target: route53.RecordTarget.fromIpAddresses('1.2.3.4'), multiValueAnswer: true, // added }); ``` ### Description of how you validated changes I added unit test and integ test. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 10c9458 commit 0e6e37e

12 files changed

+553
-5
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.multi-value-answer-routing.js.snapshot/Route53MultiValueAnswerRoutingIntegDefaultTestDeployAssert2794160C.assets.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.multi-value-answer-routing.js.snapshot/Route53MultiValueAnswerRoutingIntegDefaultTestDeployAssert2794160C.template.json

+36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.multi-value-answer-routing.js.snapshot/cdk.out

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.multi-value-answer-routing.js.snapshot/integ.json

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.multi-value-answer-routing.js.snapshot/manifest.json

+119
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.multi-value-answer-routing.js.snapshot/multi-value-answer-routing.assets.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"Resources": {
3+
"HostedZoneDB99F866": {
4+
"Type": "AWS::Route53::HostedZone",
5+
"Properties": {
6+
"Name": "cdk.dev."
7+
}
8+
},
9+
"MultiValueAnswerRoutingF3C1E535": {
10+
"Type": "AWS::Route53::RecordSet",
11+
"Properties": {
12+
"HostedZoneId": {
13+
"Ref": "HostedZoneDB99F866"
14+
},
15+
"MultiValueAnswer": true,
16+
"Name": "www.cdk.dev.",
17+
"ResourceRecords": [
18+
"1.2.3.4"
19+
],
20+
"SetIdentifier": "MVA_ID_multivalueanswerroutingMultiValueAnswerRoutingD94947BD",
21+
"TTL": "1800",
22+
"Type": "A"
23+
}
24+
}
25+
},
26+
"Parameters": {
27+
"BootstrapVersion": {
28+
"Type": "AWS::SSM::Parameter::Value<String>",
29+
"Default": "/cdk-bootstrap/hnb659fds/version",
30+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
31+
}
32+
},
33+
"Rules": {
34+
"CheckBootstrapVersion": {
35+
"Assertions": [
36+
{
37+
"Assert": {
38+
"Fn::Not": [
39+
{
40+
"Fn::Contains": [
41+
[
42+
"1",
43+
"2",
44+
"3",
45+
"4",
46+
"5"
47+
],
48+
{
49+
"Ref": "BootstrapVersion"
50+
}
51+
]
52+
}
53+
]
54+
},
55+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
56+
}
57+
]
58+
}
59+
}
60+
}

0 commit comments

Comments
 (0)