Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
badmintoncryer committed May 10, 2024
1 parent 56f120f commit 2e05009
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/aws-cdk-lib/aws-route53/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ declare const myZone: route53.HostedZone;

const record1 = new route53.ARecord(this, 'ARecordIpBased1', {
zone: myZone,
recordName: 'test',
recordName: 'xxx',
target: route53.RecordTarget.fromIpAddresses('1.2.3.4'),
cidrRoutingConfig: {
cidrList: ['192.168.1.0/24', '192.168.16.0/20'],
Expand All @@ -221,7 +221,7 @@ const record1 = new route53.ARecord(this, 'ARecordIpBased1', {
// 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,
recordName: 'test',
recordName: 'xxx',
target: route53.RecordTarget.fromIpAddresses('2.3.4.5'),
cidrRoutingConfig: {
cidrList: ['192.168.2.0/24', '192.168.48.0/20'],
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-route53/lib/record-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export class RecordSet extends Resource implements IRecordSet {
private readonly region?: string;
private readonly multiValueAnswer?: boolean;
private cidrLocation?: CfnRecordSet.CidrRoutingConfigProperty;
private _cidrCollection: CfnCidrCollection | undefined;
private _cidrCollection?: CfnCidrCollection;

constructor(scope: Construct, id: string, props: RecordSetProps) {
super(scope, id);
Expand Down

0 comments on commit 2e05009

Please sign in to comment.