Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
badmintoncryer committed May 10, 2024
1 parent 203b86e commit 56f120f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/aws-cdk-lib/aws-route53/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ const record1 = new route53.ARecord(this, 'ARecordIpBased1', {
},
});

// You can also add a new Location to an existing CidrCollection
// You can also add a new Location to an existing CidrCollection.
// Ensure all locations for the same record set name and type are part of the same CIDR collection to guarantee consistent routing.
const record2 = new route53.ARecord(this, 'ARecordIpBased2', {
zone: myZone,
Expand All @@ -229,6 +229,16 @@ const record2 = new route53.ARecord(this, 'ARecordIpBased2', {
collection: record1.cidrCollection,
},
});

// To define a zero bit CIDR block (0.0.0.0/0 or ::/0), use the default ("*") location.
const record3 = new route53.ARecord(this, 'ARecordIpBased3', {
zone: myZone,
recordName: 'default',
target: route53.RecordTarget.fromIpAddresses('1.2.3.4'),
cidrRoutingConfig: {
locationName: '*',
},
});
```

To specify a unique identifier to differentiate among multiple resource record sets that have the same combination of name and type, use the `setIdentifier` parameter:
Expand Down

0 comments on commit 56f120f

Please sign in to comment.