AWS SDK for .NET Documentation
LaunchVPCWithPublicAndPrivateSubnets Method (ec2Client, request)
AmazonAmazon.EC2.UtilVPCUtilitiesLaunchVPCWithPublicAndPrivateSubnets(AmazonEC2, LaunchVPCWithPublicAndPrivateSubnetsRequest) Did this page help you?   Yes   No    Tell us about it...
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.
Declaration Syntax
C#
public static LaunchVPCWithPublicAndPrivateSubnetsResponse LaunchVPCWithPublicAndPrivateSubnets(
	AmazonEC2 ec2Client,
	LaunchVPCWithPublicAndPrivateSubnetsRequest request
)
Parameters
ec2Client (AmazonEC2)
The ec2client used to create the VPC
request (LaunchVPCWithPublicAndPrivateSubnetsRequest)
The properties used to create the VPC.
Return Value
The response contains all the VPC objects that were created.

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)