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

Class: Aws::EC2::Types::ModifyHostsRequest

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

Overview

Note:

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

{
  auto_placement: "on", # accepts on, off
  host_ids: ["DedicatedHostId"], # required
  host_recovery: "on", # accepts on, off
  instance_type: "String",
  instance_family: "String",
}

Instance Attribute Summary collapse

Instance Attribute Details

#auto_placementString

Specify whether to enable or disable auto-placement.

Possible values:

  • on
  • off

Returns:

  • (String)

    Specify whether to enable or disable auto-placement.

#host_idsArray<String>

The IDs of the Dedicated Hosts to modify.

Returns:

  • (Array<String>)

    The IDs of the Dedicated Hosts to modify.

#host_recoveryString

Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host Recovery in the Amazon Elastic Compute Cloud User Guide.

Returns:

  • (String)

    Indicates whether to enable or disable host recovery for the Dedicated Host.

#instance_familyString

Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated Host to support multiple instance types within its current instance family.

If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same request.

Returns:

  • (String)

    Specifies the instance family to be supported by the Dedicated Host.

#instance_typeString

Specifies the instance type to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated Host to support only a specific instance type.

If you want to modify a Dedicated Host to support multiple instance types in its current instance family, omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and InstanceFamily in the same request.

Returns:

  • (String)

    Specifies the instance type to be supported by the Dedicated Host.