Creates a VPC with the CIDR block you specify.
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).
Namespace: Amazon.EC2.ModelAssembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class CreateVpcRequest
Public Class CreateVpcRequest
public ref class CreateVpcRequest
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| CreateVpcRequest()()()() | Initializes a new instance of the CreateVpcRequest class | |
| CidrBlock |
Gets and sets the CidrBlock property.
A valid CIDR block.
Constraints: Must contain the slash followed by one or two digits (e.g., /28)
| |
| Equals(Object) | (Inherited from Object.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| InstanceTenancy |
Gets and sets the InstanceTenancy property.
The allowed tenancy of instances launched into the VPC. A value of default means instances
can be launched with any tenancy; a value of dedicated means instances must be launched
with tenancy as dedicated.
Valid Values: default | dedicated
| |
| IsSetCidrBlock()()()() |
Checks if CidrBlock property is set
| |
| IsSetInstanceTenancy()()()() |
Checks if InstanceTenancy property is set
| |
| ToString()()()() | (Inherited from Object.) | |
| WithCidrBlock(String) |
Sets the CidrBlock property
| |
| WithInstanceTenancy(String) |
Sets the InstanceTenancy property
Valid Values: default | dedicated
|