Class: Aws::EC2::Types::CreateVpcRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::CreateVpcRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
When making an API call, you may pass CreateVpcRequest data as a hash:
{
cidr_block: "String", # required
amazon_provided_ipv_6_cidr_block: false,
dry_run: false,
instance_tenancy: "default", # accepts default, dedicated, host
}
Instance Attribute Summary collapse
-
#amazon_provided_ipv_6_cidr_block ⇒ Boolean
Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC.
-
#cidr_block ⇒ String
The IPv4 network range for the VPC, in CIDR notation.
-
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
#instance_tenancy ⇒ String
The tenancy options for instances launched into the VPC.
Instance Attribute Details
#amazon_provided_ipv_6_cidr_block ⇒ Boolean
Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block.
7322 7323 7324 7325 7326 7327 7328 |
# File 'lib/aws-sdk-ec2/types.rb', line 7322 class CreateVpcRequest < Struct.new( :cidr_block, :amazon_provided_ipv_6_cidr_block, :dry_run, :instance_tenancy) include Aws::Structure end |
#cidr_block ⇒ String
The IPv4 network range for the VPC, in CIDR notation. For example, ‘10.0.0.0/16`.
7322 7323 7324 7325 7326 7327 7328 |
# File 'lib/aws-sdk-ec2/types.rb', line 7322 class CreateVpcRequest < Struct.new( :cidr_block, :amazon_provided_ipv_6_cidr_block, :dry_run, :instance_tenancy) include Aws::Structure end |
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is ‘DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
7322 7323 7324 7325 7326 7327 7328 |
# File 'lib/aws-sdk-ec2/types.rb', line 7322 class CreateVpcRequest < Struct.new( :cidr_block, :amazon_provided_ipv_6_cidr_block, :dry_run, :instance_tenancy) include Aws::Structure end |
#instance_tenancy ⇒ String
The tenancy options for instances launched into the VPC. For ‘default`, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. For `dedicated`, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy of `dedicated` or `host` into a dedicated tenancy VPC.
Important: The ‘host` value cannot be used with this parameter. Use the `default` or `dedicated` values only.
Default: ‘default`
7322 7323 7324 7325 7326 7327 7328 |
# File 'lib/aws-sdk-ec2/types.rb', line 7322 class CreateVpcRequest < Struct.new( :cidr_block, :amazon_provided_ipv_6_cidr_block, :dry_run, :instance_tenancy) include Aws::Structure end |