AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

The properties used to create a VPC, a public subnet, private subnet and a NAT EC2 instance to allow EC2 instances in the private subnet to establish outbound connections to the internet.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Util.LaunchVPCWithPublicSubnetRequest
    Amazon.EC2.Util.LaunchVPCWithPublicAndPrivateSubnetsRequest

Namespace: Amazon.EC2.Util
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public class LaunchVPCWithPublicAndPrivateSubnetsRequest : LaunchVPCWithPublicSubnetRequest

The LaunchVPCWithPublicAndPrivateSubnetsRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ConfigureDefaultVPCGroupForNAT System.Boolean

Gets and sets whether the default security group for the VPC should be configured to allow traffic from the EC2 instances to the NAT instance. This means another security group with the name "NATGroup" will be created and a new permission allowing all inbound traffic will be added to the default security group for the VPC. If this VPC is going to be used for AWS Elastic Beanstalk deployments then used this security group as the security group specified for the environment.

Public Property EnableDnsHostnames System.Boolean Inherited from Amazon.EC2.Util.LaunchVPCWithPublicSubnetRequest.
Public Property EnableDnsSupport System.Boolean Inherited from Amazon.EC2.Util.LaunchVPCWithPublicSubnetRequest.
Public Property InstanceTenancy System.String Inherited from Amazon.EC2.Util.LaunchVPCWithPublicSubnetRequest.
Public Property InstanceType System.String

Gets and sets the instance type of the NAT instance. The default value is "m1.small".

Public Property KeyName System.String

Gets and sets the key name of the NAT instance.

Public Property PrivateSubnetAvailabilityZone System.String

Gets and sets the Availability Zone you want the private subnet in.

Public Property PrivateSubnetCiderBlock System.String

Gets and sets the CIDR block you want the private subnet to cover. The default value is "10.0.1.0/24".

Public Property ProgressCallback Amazon.EC2.Util.VPCUtilities.Progress Inherited from Amazon.EC2.Util.LaunchVPCWithPublicSubnetRequest.
Public Property PublicSubnetAvailabilityZone System.String Inherited from Amazon.EC2.Util.LaunchVPCWithPublicSubnetRequest.
Public Property PublicSubnetCiderBlock System.String Inherited from Amazon.EC2.Util.LaunchVPCWithPublicSubnetRequest.
Public Property VPCCidrBlock System.String Inherited from Amazon.EC2.Util.LaunchVPCWithPublicSubnetRequest.
Public Property VPCName System.String Inherited from Amazon.EC2.Util.LaunchVPCWithPublicSubnetRequest.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5