Class: Aws::EC2::Types::ModifyInstancePlacementRequest

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

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#affinityString

The affinity setting for the instance.

Returns:

  • (String)


47499
47500
47501
47502
47503
47504
47505
47506
47507
47508
47509
47510
# File 'lib/aws-sdk-ec2/types.rb', line 47499

class ModifyInstancePlacementRequest < Struct.new(
  :affinity,
  :group_name,
  :host_id,
  :instance_id,
  :tenancy,
  :partition_number,
  :host_resource_group_arn,
  :group_id)
  SENSITIVE = []
  include Aws::Structure
end

#group_idString

The Group Id of a placement group. You must specify the Placement Group **Group Id** to launch an instance in a shared placement group.

Returns:

  • (String)


47499
47500
47501
47502
47503
47504
47505
47506
47507
47508
47509
47510
# File 'lib/aws-sdk-ec2/types.rb', line 47499

class ModifyInstancePlacementRequest < Struct.new(
  :affinity,
  :group_name,
  :host_id,
  :instance_id,
  :tenancy,
  :partition_number,
  :host_resource_group_arn,
  :group_id)
  SENSITIVE = []
  include Aws::Structure
end

#group_nameString

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 (“”).

Returns:

  • (String)


47499
47500
47501
47502
47503
47504
47505
47506
47507
47508
47509
47510
# File 'lib/aws-sdk-ec2/types.rb', line 47499

class ModifyInstancePlacementRequest < Struct.new(
  :affinity,
  :group_name,
  :host_id,
  :instance_id,
  :tenancy,
  :partition_number,
  :host_resource_group_arn,
  :group_id)
  SENSITIVE = []
  include Aws::Structure
end

#host_idString

The ID of the Dedicated Host with which to associate the instance.

Returns:

  • (String)


47499
47500
47501
47502
47503
47504
47505
47506
47507
47508
47509
47510
# File 'lib/aws-sdk-ec2/types.rb', line 47499

class ModifyInstancePlacementRequest < Struct.new(
  :affinity,
  :group_name,
  :host_id,
  :instance_id,
  :tenancy,
  :partition_number,
  :host_resource_group_arn,
  :group_id)
  SENSITIVE = []
  include Aws::Structure
end

#host_resource_group_arnString

The ARN of the host resource group in which to place the instance. The instance must have a tenancy of ‘host` to specify this parameter.

Returns:

  • (String)


47499
47500
47501
47502
47503
47504
47505
47506
47507
47508
47509
47510
# File 'lib/aws-sdk-ec2/types.rb', line 47499

class ModifyInstancePlacementRequest < Struct.new(
  :affinity,
  :group_name,
  :host_id,
  :instance_id,
  :tenancy,
  :partition_number,
  :host_resource_group_arn,
  :group_id)
  SENSITIVE = []
  include Aws::Structure
end

#instance_idString

The ID of the instance that you are modifying.

Returns:

  • (String)


47499
47500
47501
47502
47503
47504
47505
47506
47507
47508
47509
47510
# File 'lib/aws-sdk-ec2/types.rb', line 47499

class ModifyInstancePlacementRequest < Struct.new(
  :affinity,
  :group_name,
  :host_id,
  :instance_id,
  :tenancy,
  :partition_number,
  :host_resource_group_arn,
  :group_id)
  SENSITIVE = []
  include Aws::Structure
end

#partition_numberInteger

The number of the partition in which to place the instance. Valid only if the placement group strategy is set to ‘partition`.

Returns:

  • (Integer)


47499
47500
47501
47502
47503
47504
47505
47506
47507
47508
47509
47510
# File 'lib/aws-sdk-ec2/types.rb', line 47499

class ModifyInstancePlacementRequest < Struct.new(
  :affinity,
  :group_name,
  :host_id,
  :instance_id,
  :tenancy,
  :partition_number,
  :host_resource_group_arn,
  :group_id)
  SENSITIVE = []
  include Aws::Structure
end

#tenancyString

The tenancy for the instance.

<note markdown=“1”> For T3 instances, you must launch the instance on a Dedicated Host to use a tenancy of ‘host`. You can’t change the tenancy from ‘host` to `dedicated` or `default`. Attempting to make one of these unsupported tenancy changes results in an `InvalidRequest` error code.

</note>

Returns:

  • (String)


47499
47500
47501
47502
47503
47504
47505
47506
47507
47508
47509
47510
# File 'lib/aws-sdk-ec2/types.rb', line 47499

class ModifyInstancePlacementRequest < Struct.new(
  :affinity,
  :group_name,
  :host_id,
  :instance_id,
  :tenancy,
  :partition_number,
  :host_resource_group_arn,
  :group_id)
  SENSITIVE = []
  include Aws::Structure
end