Class CidrRoutingConfig
Configuration for CIDR routing in Route 53 resource record set objects.
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CidrRoutingConfig : DeputyBase
Syntax (vb)
Public Class CidrRoutingConfig Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
HostedZone myZone;
var cidrCollection = new CfnCidrCollection(this, "CidrCollection", new CfnCidrCollectionProps {
Name = "test-collection",
Locations = new [] { new LocationProperty {
CidrList = new [] { "192.168.1.0/24" },
LocationName = "my_location"
} }
});
new ARecord(this, "CidrRoutingConfig", new ARecordProps {
Zone = myZone,
Target = RecordTarget.FromIpAddresses("1.2.3.4"),
SetIdentifier = "test",
CidrRoutingConfig = CidrRoutingConfig.Create(new CidrRoutingConfigProps {
CollectionId = cidrCollection.AttrId,
LocationName = "test_location"
})
});
Synopsis
Properties
CollectionId | The CIDR collection ID. |
LocationName | The CIDR collection location name. |
Methods
Create(ICidrRoutingConfigProps) | Creates a new instance of CidrRoutingConfig. |
WithDefaultLocationName(string) | Creates a new instance of CidrRoutingConfig for default CIDR record. |
Properties
CollectionId
The CIDR collection ID.
public virtual string CollectionId { get; }
Property Value
Remarks
LocationName
The CIDR collection location name.
public virtual string LocationName { get; }
Property Value
Remarks
Methods
Create(ICidrRoutingConfigProps)
Creates a new instance of CidrRoutingConfig.
public static CidrRoutingConfig Create(ICidrRoutingConfigProps props)
Parameters
- props ICidrRoutingConfigProps
Returns
Remarks
WithDefaultLocationName(string)
Creates a new instance of CidrRoutingConfig for default CIDR record.
public static CidrRoutingConfig WithDefaultLocationName(string collectionId)
Parameters
- collectionId string
The CIDR collection ID.
Returns
A new instance of CidrRoutingConfig with the default location name as *
.
Remarks
This method defines the locationName as *
.