# CidrRoutingConfigProps

Properties for configuring CIDR routing in Route 53 resource record set objects.

- Source: [`aws-route53/lib/cidr-routing-config.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-route53/lib/cidr-routing-config.ts#L7)
- Type last changed: v2.196.0 · 16 May 2025

## Example

```ts
declare const myZone: route53.HostedZone;

const cidrCollection = new route53.CfnCidrCollection(this, 'CidrCollection', {
  name: 'test-collection',
  locations: [{
    cidrList: ['192.168.1.0/24'],
    locationName: 'my_location',
  }]
});

new route53.ARecord(this, 'CidrRoutingConfig', {
  zone: myZone,
  target: route53.RecordTarget.fromIpAddresses('1.2.3.4'),
  setIdentifier: 'test',
  cidrRoutingConfig: route53.CidrRoutingConfig.create({
    collectionId: cidrCollection.attrId,
    locationName: 'test_location'
  }),
});
```

## Properties

- `collectionId`: string (required) — The CIDR collection ID.

- `locationName`: string = `*` — The CIDR collection location name.
