AWS SDK Version 2 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.

.NET Framework 4.5
 
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.dll
Version: (assembly version)

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 Indicates whether the instances launched in the VPC get DNS hostnames. If this attribute is true, instances in the VPC get DNS hostnames; otherwise, they do not. If you want your instances to get DNS hostnames, you must also set the enableDnsSupport attribute to true.
Public Property EnableDnsSupport System.Boolean Indicates whether the DNS resolution is supported for the VPC. If this attribute is false, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled. If this attribute is true, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" will succeed. For more information, see Amazon DNS Server.
Public Property InstanceTenancy System.String The supported tenancy of instances launched into the VPC. The default value is "default".
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 A callback delegate used to get progress messages as the VPC environment is being created.
Public Property PublicSubnetAvailabilityZone System.String Gets and sets the Availability Zone you want the public subnet in.
Public Property PublicSubnetCiderBlock System.String Gets and sets the CIDR block you want the public subnet to cover. The default value is "10.0.0.0/24".
Public Property VPCCidrBlock System.String Gets and sets the CIDR block you want the VPC to cover. The default value is "10.0.0.0/16".
Public Property VPCName System.String Gets and sets a name that will be assigned the VPC's Name tag. This is an optional field.

Version Information

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