Class: Aws::EC2::Types::CreateVpcRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ec2/types.rb

Overview

Note:

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

Instance Attribute Details

#amazon_provided_ipv_6_cidr_blockBoolean

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.

Returns:

  • (Boolean)


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_blockString

The IPv4 network range for the VPC, in CIDR notation. For example, ‘10.0.0.0/16`.

Returns:

  • (String)


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_runBoolean

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`.

Returns:

  • (Boolean)


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_tenancyString

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`

Returns:

  • (String)


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