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

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

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

Overview

Note:

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

{
  affinity: "default", # accepts default, host
  group_name: "PlacementGroupName",
  host_id: "DedicatedHostId",
  instance_id: "InstanceId", # required
  tenancy: "dedicated", # accepts dedicated, host
  partition_number: 1,
  host_resource_group_arn: "String",
}

Instance Attribute Summary collapse

Instance Attribute Details

#affinity ⇒ String

The affinity setting for the instance.

Possible values:

  • default
  • host

Returns:

  • (String) —

    The affinity setting for the instance.

#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 (\"\").

Returns:

  • (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.

Returns:

  • (String) —

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

#host_resource_group_arn ⇒ String

The ARN of the host resource group in which to place the instance.

Returns:

  • (String) —

    The ARN of the host resource group in which to place the instance.

#instance_id ⇒ String

The ID of the instance that you are modifying.

Returns:

  • (String) —

    The ID of the instance that you are modifying.

#partition_number ⇒ Integer

Reserved for future use.

Returns:

  • (Integer) —

    Reserved for future use.

#tenancy ⇒ String

The tenancy for the instance.

Possible values:

  • dedicated
  • host

Returns:

  • (String) —

    The tenancy for the instance.