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

Class: Aws::EC2::Types::AllocateHostsRequest

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

Overview

Note:

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

{
  auto_placement: "on", # accepts on, off
  availability_zone: "String", # required
  client_token: "String",
  instance_type: "String", # required
  quantity: 1, # required
}

Contains the parameters for AllocateHosts.

Instance Attribute Summary collapse

Instance Attribute Details

#auto_placementString

This is enabled by default. This property allows instances to be automatically placed onto available Dedicated Hosts, when you are launching instances without specifying a host ID.

Default: Enabled

Possible values:

  • on
  • off

Returns:

  • (String)

    This is enabled by default.

#availability_zoneString

The Availability Zone for the Dedicated Hosts.

Returns:

  • (String)

    The Availability Zone for the Dedicated Hosts.

#client_tokenString

Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

Returns:

  • (String)

    Unique, case-sensitive identifier you provide to ensure idempotency of the request.

#instance_typeString

Specify the instance type that you want your Dedicated Hosts to be configured for. When you specify the instance type, that is the only instance type that you can launch onto that host.

Returns:

  • (String)

    Specify the instance type that you want your Dedicated Hosts to be configured for.

#quantityInteger

The number of Dedicated Hosts you want to allocate to your account with these parameters.

Returns:

  • (Integer)

    The number of Dedicated Hosts you want to allocate to your account with these parameters.