AWS SDK for .NET Documentation
CreateVpc Method (request)
Amazon ► Amazon.EC2 ► AmazonEC2Client ► CreateVpc(CreateVpcRequest)
Did this page help you? Yes No Tell us about it...
Creates a VPC with the CIDR block you specify.
Declaration Syntax

C#

    public CreateVpcResponse CreateVpc(
    	CreateVpcRequest request
    )

Parameters

request (CreateVpcRequest)
  Create Vpc request

Return Value
Create Vpc Response from the service
Remarks
The smallest VPC you can create uses a /28 netmask (16 IP addresses), and the largest uses a /18 netmask (16,384 IP addresses). To help you decide how big to make your VPC, go to the topic about creating VPCs in the Amazon Virtual Private Cloud Developer Guide. By default, each instance you launch in the VPC has the default DHCP options (the standard EC2 host name, no domain name, no DNS server, no NTP server, and no NetBIOS server or node type). AWS might delete any VPC that you create with this operation if you leave it inactive for an extended period of time (inactive means that there are no running Amazon EC2 instances in the VPC).
Exceptions

Exception | Condition
--- | ---
WebException |
AmazonEC2Exception |

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