Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

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

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

Overview

Describes the placement of an instance.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#affinityString

The affinity setting for the instance on the Dedicated Host.

This parameter is not supported for CreateFleet or ImportInstance.

Returns:

  • (String)

60985
60986
60987
60988
60989
60990
60991
60992
60993
60994
60995
60996
60997
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 60985

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

#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 for CreateFleet.

Returns:

  • (String)

60985
60986
60987
60988
60989
60990
60991
60992
60993
60994
60995
60996
60997
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 60985

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

#group_idString

The ID of the placement group that the instance is in. If you specify GroupId, you can't specify GroupName.

Returns:

  • (String)

60985
60986
60987
60988
60989
60990
60991
60992
60993
60994
60995
60996
60997
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 60985

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

#group_nameString

The name of the placement group that the instance is in. If you specify GroupName, you can't specify GroupId.

Returns:

  • (String)

60985
60986
60987
60988
60989
60990
60991
60992
60993
60994
60995
60996
60997
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 60985

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

#host_idString

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

This parameter is not supported for CreateFleet or ImportInstance.

Returns:

  • (String)

60985
60986
60987
60988
60989
60990
60991
60992
60993
60994
60995
60996
60997
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 60985

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

#host_resource_group_arnString

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

If you specify this parameter, either omit the Tenancy parameter or set it to host.

This parameter is not supported for CreateFleet.

Returns:

  • (String)

60985
60986
60987
60988
60989
60990
60991
60992
60993
60994
60995
60996
60997
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 60985

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

#partition_numberInteger

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

This parameter is not supported for CreateFleet.

Returns:

  • (Integer)

60985
60986
60987
60988
60989
60990
60991
60992
60993
60994
60995
60996
60997
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 60985

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

#spread_domainString

Reserved for future use.

Returns:

  • (String)

60985
60986
60987
60988
60989
60990
60991
60992
60993
60994
60995
60996
60997
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 60985

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

#tenancyString

The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware.

This parameter is not supported for CreateFleet. The host tenancy is not supported for ImportInstance or for T3 instances that are configured for the unlimited CPU credit option.

Returns:

  • (String)

60985
60986
60987
60988
60989
60990
60991
60992
60993
60994
60995
60996
60997
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 60985

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