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

Class: Aws::EC2::Types::Placement

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

Overview

Note:

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

{
  availability_zone: "String",
  affinity: "String",
  group_name: "String",
  partition_number: 1,
  host_id: "String",
  tenancy: "default", # accepts default, dedicated, host
  spread_domain: "String",
  host_resource_group_arn: "String",
}

Describes the placement of an instance.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#affinityString

The affinity setting for the instance on the Dedicated Host. This parameter is not supported for the ImportInstance command.

This parameter is not supported by CreateFleet.

Returns:

  • (String)

    The affinity setting for the instance on the Dedicated Host.

#availability_zoneString

The Availability Zone of the instance.

If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.

This parameter is not supported by CreateFleet.

Returns:

  • (String)

    The Availability Zone of the instance.

#group_nameString

The name of the placement group the instance is in.

Returns:

  • (String)

    The name of the placement group the instance is in.

#host_idString

The ID of the Dedicated Host on which the instance resides. This parameter is not supported for the ImportInstance command.

This parameter is not supported by CreateFleet.

Returns:

  • (String)

    The ID of the Dedicated Host on which the instance resides.

#host_resource_group_arnString

The ARN of the host resource group in which to launch the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to host.

This parameter is not supported by CreateFleet.

Returns:

  • (String)

    The ARN of the host resource group in which to launch the instances.

#partition_numberInteger

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

This parameter is not supported by CreateFleet.

Returns:

  • (Integer)

    The number of the partition the instance is in.

#spread_domainString

Reserved for future use.

This parameter is not supported by CreateFleet.

Returns:

  • (String)

    Reserved for future use.

#tenancyString

The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.

This parameter is not supported by CreateFleet.

Returns:

  • (String)

    The tenancy of the instance (if the instance is running in a VPC).