Class PrivateSubnet
Represents a private VPC subnet resource.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PrivateSubnet : Subnet, IPrivateSubnet, ISubnet, IResource
Syntax (vb)
Public Class PrivateSubnet
Inherits Subnet
Implements IPrivateSubnet, ISubnet, IResource
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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
PrivateSubnet(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
PrivateSubnet(Construct, String, IPrivateSubnetProps) |
Methods
FromPrivateSubnetAttributes(Construct, String, IPrivateSubnetAttributes) |
Constructors
PrivateSubnet(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected PrivateSubnet(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
PrivateSubnet(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected PrivateSubnet(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
PrivateSubnet(Construct, String, IPrivateSubnetProps)
public PrivateSubnet(Construct scope, string id, IPrivateSubnetProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IPrivateSubnetProps
Methods
FromPrivateSubnetAttributes(Construct, String, IPrivateSubnetAttributes)
public static IPrivateSubnet FromPrivateSubnetAttributes(Construct scope, string id, IPrivateSubnetAttributes attrs)
Parameters
- scope Constructs.Construct
- id System.String
- attrs IPrivateSubnetAttributes
Returns
Implements
Constructs.IConstruct
Constructs.IDependable