You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateVpcRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  cidr_block: "String", # required
  amazon_provided_ipv_6_cidr_block: false,
  dry_run: false,
  instance_tenancy: "default", # accepts default, dedicated, host
}

Contains the parameters for CreateVpc.

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)

    Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC.

#cidr_blockString

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

Returns:

  • (String)

    The IPv4 network range for the VPC, in CIDR notation.

#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)

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.

#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

Possible values:

  • default
  • dedicated
  • host

Returns:

  • (String)

    The tenancy options for instances launched into the VPC.