Show / Hide Table of Contents

Class AllocateCidrRequest

Request for subnets CIDR to be allocated for a Vpc.

Inheritance
object
AllocateCidrRequest
Implements
IAllocateCidrRequest
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AllocateCidrRequest : IAllocateCidrRequest
Syntax (vb)
Public Class AllocateCidrRequest Implements 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

Constructors

AllocateCidrRequest()

Request for subnets CIDR to be allocated for a Vpc.

Properties

RequestedSubnets

The Subnets to be allocated.

VpcCidr

The IPv4 CIDR block for this Vpc.

Constructors

AllocateCidrRequest()

Request for subnets CIDR to be allocated for a Vpc.

public AllocateCidrRequest()
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"
            };

Properties

RequestedSubnets

The Subnets to be allocated.

public IRequestedSubnet[] RequestedSubnets { get; set; }
Property Value

IRequestedSubnet[]

Remarks

ExampleMetadata: fixture=_generated

VpcCidr

The IPv4 CIDR block for this Vpc.

public string VpcCidr { get; set; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

Implements

IAllocateCidrRequest
Back to top Generated by DocFX