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

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

Overview

Note:

When making an API call, you may pass ModifyHostsRequest data as a hash:

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

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#auto_placementString

Specify whether to enable or disable auto-placement.

Returns:

  • (String)


34098
34099
34100
34101
34102
34103
34104
34105
34106
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 34098

class ModifyHostsRequest < Struct.new(
  :auto_placement,
  :host_ids,
  :host_recovery,
  :instance_type,
  :instance_family)
  SENSITIVE = []
  include Aws::Structure
end

#host_idsArray<String>

The IDs of the Dedicated Hosts to modify.

Returns:

  • (Array<String>)


34098
34099
34100
34101
34102
34103
34104
34105
34106
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 34098

class ModifyHostsRequest < Struct.new(
  :auto_placement,
  :host_ids,
  :host_recovery,
  :instance_type,
  :instance_family)
  SENSITIVE = []
  include Aws::Structure
end

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


34098
34099
34100
34101
34102
34103
34104
34105
34106
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 34098

class ModifyHostsRequest < Struct.new(
  :auto_placement,
  :host_ids,
  :host_recovery,
  :instance_type,
  :instance_family)
  SENSITIVE = []
  include Aws::Structure
end

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


34098
34099
34100
34101
34102
34103
34104
34105
34106
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 34098

class ModifyHostsRequest < Struct.new(
  :auto_placement,
  :host_ids,
  :host_recovery,
  :instance_type,
  :instance_family)
  SENSITIVE = []
  include Aws::Structure
end

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


34098
34099
34100
34101
34102
34103
34104
34105
34106
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 34098

class ModifyHostsRequest < Struct.new(
  :auto_placement,
  :host_ids,
  :host_recovery,
  :instance_type,
  :instance_family)
  SENSITIVE = []
  include Aws::Structure
end