Show / Hide Table of Contents

Class PrivateSubnet

Represents a private VPC subnet resource.

Inheritance
object
Resource
Subnet
PrivateSubnet
Implements
IPrivateSubnet
ISubnet
IResource
ISubnetRef
IConstruct
IDependable
IEnvironmentAware
Inherited Members
Subnet.FromSubnetAttributes(Construct, string, ISubnetAttributes)
Subnet.FromSubnetId(Construct, string, string)
Subnet.IsVpcSubnet(object)
Subnet.AddDefaultInternetRoute(string, IDependable)
Subnet.AddDefaultNatRoute(string)
Subnet.AddIpv6DefaultEgressOnlyInternetRoute(string)
Subnet.AddIpv6DefaultInternetRoute(string)
Subnet.AddIpv6Nat64Route(string)
Subnet.AddRoute(string, IAddRouteOptions)
Subnet.AssociateNetworkAcl(string, INetworkAcl)
Subnet.AvailabilityZone
Subnet.DependencyElements
Subnet.InternetConnectivityEstablished
Subnet.Ipv4CidrBlock
Subnet.NetworkAcl
Subnet.RouteTable
Subnet.SubnetAvailabilityZone
Subnet.SubnetId
Subnet.SubnetIpv6CidrBlocks
Subnet.SubnetNetworkAclAssociationId
Subnet.SubnetOutpostArn
Subnet.SubnetRef
Subnet.SubnetVpcId
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PrivateSubnet : Subnet, IPrivateSubnet, ISubnet, IResource, ISubnetRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class PrivateSubnet Inherits Subnet Implements IPrivateSubnet, ISubnet, IResource, ISubnetRef, IConstruct, IDependable, IEnvironmentAware
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 privateSubnet = new PrivateSubnet(this, "MyPrivateSubnet", new PrivateSubnetProps {
                AvailabilityZone = "availabilityZone",
                CidrBlock = "cidrBlock",
                VpcId = "vpcId",

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

Synopsis

Constructors

PrivateSubnet(Construct, string, IPrivateSubnetProps)

Represents a private VPC subnet resource.

Properties

PROPERTY_INJECTION_ID

Uniquely identifies this class.

Methods

FromPrivateSubnetAttributes(Construct, string, IPrivateSubnetAttributes)

Represents a private VPC subnet resource.

Constructors

PrivateSubnet(Construct, string, IPrivateSubnetProps)

Represents a private VPC subnet resource.

public PrivateSubnet(Construct scope, string id, IPrivateSubnetProps props)
Parameters
scope Construct
id string
props IPrivateSubnetProps
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 privateSubnet = new PrivateSubnet(this, "MyPrivateSubnet", new PrivateSubnetProps {
                AvailabilityZone = "availabilityZone",
                CidrBlock = "cidrBlock",
                VpcId = "vpcId",

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

Properties

PROPERTY_INJECTION_ID

Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

Methods

FromPrivateSubnetAttributes(Construct, string, IPrivateSubnetAttributes)

Represents a private VPC subnet resource.

public static IPrivateSubnet FromPrivateSubnetAttributes(Construct scope, string id, IPrivateSubnetAttributes attrs)
Parameters
scope Construct
id string
attrs IPrivateSubnetAttributes
Returns

IPrivateSubnet

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 privateSubnet = new PrivateSubnet(this, "MyPrivateSubnet", new PrivateSubnetProps {
                AvailabilityZone = "availabilityZone",
                CidrBlock = "cidrBlock",
                VpcId = "vpcId",

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

Implements

IPrivateSubnet
ISubnet
IResource
ISubnetRef
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
Back to top Generated by DocFX