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
 
This method will 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.

Namespace: Amazon.EC2.Util
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public LaunchVPCWithPublicAndPrivateSubnetsResponse LaunchVPCWithPublicAndPrivateSubnets(
         IAmazonEC2 ec2Client,
         LaunchVPCWithPublicAndPrivateSubnetsRequest request
)

Parameters

ec2Client
Type: Amazon.EC2.IAmazonEC2

The ec2client used to create the VPC

request
Type: Amazon.EC2.Util.LaunchVPCWithPublicAndPrivateSubnetsRequest

The properties used to create the VPC.

Return Value
Type: Amazon.EC2.Util.LaunchVPCWithPublicAndPrivateSubnetsResponse
The response contains all the VPC objects that were created.

Version Information

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