Creates a VPC with the CIDR block you specify.
Declaration Syntax
C# |
public class CreateVpcRequest : EC2Request
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
CreateVpcRequest()()()() | Initializes a new instance of the CreateVpcRequest class | |
CidrBlock |
The CIDR block you want the VPC to cover (e.g., 10.0.0.0/16)
| |
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 |
The supported tenancy of instances launched into the VPC.
| |
IsSetCidrBlock()()()() |
Checks if CidrBlock property is set
| |
IsSetInstanceTenancy()()()() |
Checks if InstanceTenancy property is set
| |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
WithCidrBlock(String) | Obsolete.
Sets the CIDR block you want the VPC to cover (e.g., 10.0.0.0/16)
| |
WithInstanceTenancy(String) | Obsolete.
Sets the supported tenancy of instances launched into the VPC.
|
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).
Inheritance Hierarchy
Object | ||
EC2Request | ||
CreateVpcRequest |