Class: Aws::EC2::Types::ModifyInstancePlacementRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::ModifyInstancePlacementRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
When making an API call, you may pass ModifyInstancePlacementRequest data as a hash:
{
affinity: "default", # accepts default, host
group_name: "String",
host_id: "String",
instance_id: "String", # required
tenancy: "dedicated", # accepts dedicated, host
partition_number: 1,
}
Instance Attribute Summary collapse
-
#affinity ⇒ String
The affinity setting for the instance.
-
#group_name ⇒ String
The name of the placement group in which to place the instance.
-
#host_id ⇒ String
The ID of the Dedicated Host with which to associate the instance.
-
#instance_id ⇒ String
The ID of the instance that you are modifying.
-
#partition_number ⇒ Integer
Reserved for future use.
-
#tenancy ⇒ String
The tenancy for the instance.
Instance Attribute Details
#affinity ⇒ String
The affinity setting for the instance.
25977 25978 25979 25980 25981 25982 25983 25984 25985 |
# File 'lib/aws-sdk-ec2/types.rb', line 25977 class ModifyInstancePlacementRequest < Struct.new( :affinity, :group_name, :host_id, :instance_id, :tenancy, :partition_number) include Aws::Structure end |
#group_name ⇒ String
The name of the placement group in which to place the instance. For spread placement groups, the instance must have a tenancy of ‘default`. For cluster and partition placement groups, the instance must have a tenancy of `default` or `dedicated`.
To remove an instance from a placement group, specify an empty string (“”).
25977 25978 25979 25980 25981 25982 25983 25984 25985 |
# File 'lib/aws-sdk-ec2/types.rb', line 25977 class ModifyInstancePlacementRequest < Struct.new( :affinity, :group_name, :host_id, :instance_id, :tenancy, :partition_number) include Aws::Structure end |
#host_id ⇒ String
The ID of the Dedicated Host with which to associate the instance.
25977 25978 25979 25980 25981 25982 25983 25984 25985 |
# File 'lib/aws-sdk-ec2/types.rb', line 25977 class ModifyInstancePlacementRequest < Struct.new( :affinity, :group_name, :host_id, :instance_id, :tenancy, :partition_number) include Aws::Structure end |
#instance_id ⇒ String
The ID of the instance that you are modifying.
25977 25978 25979 25980 25981 25982 25983 25984 25985 |
# File 'lib/aws-sdk-ec2/types.rb', line 25977 class ModifyInstancePlacementRequest < Struct.new( :affinity, :group_name, :host_id, :instance_id, :tenancy, :partition_number) include Aws::Structure end |
#partition_number ⇒ Integer
Reserved for future use.
25977 25978 25979 25980 25981 25982 25983 25984 25985 |
# File 'lib/aws-sdk-ec2/types.rb', line 25977 class ModifyInstancePlacementRequest < Struct.new( :affinity, :group_name, :host_id, :instance_id, :tenancy, :partition_number) include Aws::Structure end |
#tenancy ⇒ String
The tenancy for the instance.
25977 25978 25979 25980 25981 25982 25983 25984 25985 |
# File 'lib/aws-sdk-ec2/types.rb', line 25977 class ModifyInstancePlacementRequest < Struct.new( :affinity, :group_name, :host_id, :instance_id, :tenancy, :partition_number) include Aws::Structure end |