class CidrRoutingConfig
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Route53.CidrRoutingConfig |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsroute53#CidrRoutingConfig |
![]() | software.amazon.awscdk.services.route53.CidrRoutingConfig |
![]() | aws_cdk.aws_route53.CidrRoutingConfig |
![]() | aws-cdk-lib » aws_route53 » CidrRoutingConfig |
Configuration for CIDR routing in Route 53 resource record set objects.
Example
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
Name | Type | Description |
---|---|---|
collection | string | The CIDR collection ID. |
location | string | The CIDR collection location name. |
collectionId
Type:
string
The CIDR collection ID.
locationName
Type:
string
The CIDR collection location name.
Methods
Name | Description |
---|---|
static create(props) | Creates a new instance of CidrRoutingConfig. |
static with | Creates a new instance of CidrRoutingConfig for default CIDR record. |
static create(props)
public static create(props: CidrRoutingConfigProps): CidrRoutingConfig
Parameters
- props
Cidr
Routing Config Props
Returns
Creates a new instance of CidrRoutingConfig.
static withDefaultLocationName(collectionId)
public static withDefaultLocationName(collectionId: string): CidrRoutingConfig
Parameters
- collectionId
string
— The CIDR collection ID.
Returns
Creates a new instance of CidrRoutingConfig for default CIDR record.
This method defines the locationName as *
.