Interface IAllocateCidrRequest
Request for subnets CIDR to be allocated for a Vpc.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IAllocateCidrRequest
Syntax (vb)
Public Interface IAllocateCidrRequest
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var allocateCidrRequest = new AllocateCidrRequest {
RequestedSubnets = new [] { new RequestedSubnet {
AvailabilityZone = "availabilityZone",
Configuration = new SubnetConfiguration {
Name = "name",
SubnetType = SubnetType.PRIVATE_ISOLATED,
// the properties below are optional
CidrMask = 123,
Ipv6AssignAddressOnCreation = false,
MapPublicIpOnLaunch = false,
Reserved = false
},
SubnetConstructId = "subnetConstructId"
} },
VpcCidr = "vpcCidr"
};
Synopsis
Properties
RequestedSubnets | The Subnets to be allocated. |
VpcCidr | The IPv4 CIDR block for this Vpc. |
Properties
RequestedSubnets
The Subnets to be allocated.
IRequestedSubnet[] RequestedSubnets { get; }
Property Value
VpcCidr
The IPv4 CIDR block for this Vpc.
string VpcCidr { get; }
Property Value
System.String