Skip to content
v2.274.0

CidrRoutingConfigProps Struct ​

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

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 ​

collectionIdstringcollection_idstrcollectionIdStringCollectionIdstringCollectionId*stringrequired#
The CIDR collection ID.
locationNameoptionalstringlocation_nameoptionalstrlocationNameoptionalStringLocationNameoptionalstringLocationNameoptional*string= `*`#
The CIDR collection location name.