Class CidrRoutingConfigProps
Properties for configuring CIDR routing in Route 53 resource record set objects.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CidrRoutingConfigProps : ICidrRoutingConfigProps
Syntax (vb)
Public Class CidrRoutingConfigProps Implements ICidrRoutingConfigProps
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
Constructors
| CidrRoutingConfigProps() | Properties for configuring CIDR routing in Route 53 resource record set objects. |
Properties
| CollectionId | The CIDR collection ID. |
| LocationName | The CIDR collection location name. |
Constructors
CidrRoutingConfigProps()
Properties for configuring CIDR routing in Route 53 resource record set objects.
public CidrRoutingConfigProps()
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"
})
});
Properties
CollectionId
The CIDR collection ID.
public string CollectionId { get; set; }
Property Value
Remarks
ExampleMetadata: infused
LocationName
The CIDR collection location name.
public string? LocationName { get; set; }
Property Value
Remarks
Default: *