Show / Hide Table of Contents

Class PrivateSubnetProps

Inheritance
object
PrivateSubnetProps
Implements
IPrivateSubnetProps
ISubnetProps
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 PrivateSubnetProps : IPrivateSubnetProps, ISubnetProps
Syntax (vb)
Public Class PrivateSubnetProps Implements IPrivateSubnetProps, ISubnetProps
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 privateSubnetProps = new PrivateSubnetProps {
                AvailabilityZone = "availabilityZone",
                CidrBlock = "cidrBlock",
                VpcId = "vpcId",

                // the properties below are optional
                AssignIpv6AddressOnCreation = false,
                Ipv6CidrBlock = "ipv6CidrBlock",
                MapPublicIpOnLaunch = false
            };

Synopsis

Constructors

PrivateSubnetProps()

Properties

AssignIpv6AddressOnCreation

Indicates whether a network interface created in this subnet receives an IPv6 address.

AvailabilityZone

The availability zone for the subnet.

CidrBlock

The CIDR notation for this subnet.

Ipv6CidrBlock

The IPv6 CIDR block.

MapPublicIpOnLaunch

Controls if a public IP is associated to an instance at launch.

VpcId

The VPC which this subnet is part of.

Constructors

PrivateSubnetProps()

public PrivateSubnetProps()
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 privateSubnetProps = new PrivateSubnetProps {
                AvailabilityZone = "availabilityZone",
                CidrBlock = "cidrBlock",
                VpcId = "vpcId",

                // the properties below are optional
                AssignIpv6AddressOnCreation = false,
                Ipv6CidrBlock = "ipv6CidrBlock",
                MapPublicIpOnLaunch = false
            };

Properties

AssignIpv6AddressOnCreation

Indicates whether a network interface created in this subnet receives an IPv6 address.

public bool? AssignIpv6AddressOnCreation { get; set; }
Property Value

bool?

Remarks

If you specify AssignIpv6AddressOnCreation, you must also specify Ipv6CidrBlock.

Default: false

AvailabilityZone

The availability zone for the subnet.

public string AvailabilityZone { get; set; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

CidrBlock

The CIDR notation for this subnet.

public string CidrBlock { get; set; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

Ipv6CidrBlock

The IPv6 CIDR block.

public string? Ipv6CidrBlock { get; set; }
Property Value

string

Remarks

If you specify AssignIpv6AddressOnCreation, you must also specify Ipv6CidrBlock.

Default: - no IPv6 CIDR block.

MapPublicIpOnLaunch

Controls if a public IP is associated to an instance at launch.

public bool? MapPublicIpOnLaunch { get; set; }
Property Value

bool?

Remarks

Default: true in Subnet.Public, false in Subnet.Private or Subnet.Isolated.

VpcId

The VPC which this subnet is part of.

public string VpcId { get; set; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

Implements

IPrivateSubnetProps
ISubnetProps
Back to top Generated by DocFX