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

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

Overview

Note:

When making an API call, you may pass Placement data as a hash:

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

Describes the placement of an instance.

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.

Returns:

  • (String)


27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
# File 'lib/aws-sdk-ec2/types.rb', line 27705

class Placement < Struct.new(
  :availability_zone,
  :affinity,
  :group_name,
  :partition_number,
  :host_id,
  :tenancy,
  :spread_domain)
  include Aws::Structure
end

#availability_zoneString

The Availability Zone of the instance.

Returns:

  • (String)


27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
# File 'lib/aws-sdk-ec2/types.rb', line 27705

class Placement < Struct.new(
  :availability_zone,
  :affinity,
  :group_name,
  :partition_number,
  :host_id,
  :tenancy,
  :spread_domain)
  include Aws::Structure
end

#group_nameString

The name of the placement group the instance is in.

Returns:

  • (String)


27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
# File 'lib/aws-sdk-ec2/types.rb', line 27705

class Placement < Struct.new(
  :availability_zone,
  :affinity,
  :group_name,
  :partition_number,
  :host_id,
  :tenancy,
  :spread_domain)
  include Aws::Structure
end

#host_idString

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

Returns:

  • (String)


27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
# File 'lib/aws-sdk-ec2/types.rb', line 27705

class Placement < Struct.new(
  :availability_zone,
  :affinity,
  :group_name,
  :partition_number,
  :host_id,
  :tenancy,
  :spread_domain)
  include Aws::Structure
end

#partition_numberInteger

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

Returns:

  • (Integer)


27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
# File 'lib/aws-sdk-ec2/types.rb', line 27705

class Placement < Struct.new(
  :availability_zone,
  :affinity,
  :group_name,
  :partition_number,
  :host_id,
  :tenancy,
  :spread_domain)
  include Aws::Structure
end

#spread_domainString

Reserved for future use.

Returns:

  • (String)


27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
# File 'lib/aws-sdk-ec2/types.rb', line 27705

class Placement < Struct.new(
  :availability_zone,
  :affinity,
  :group_name,
  :partition_number,
  :host_id,
  :tenancy,
  :spread_domain)
  include Aws::Structure
end

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

Returns:

  • (String)


27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
# File 'lib/aws-sdk-ec2/types.rb', line 27705

class Placement < Struct.new(
  :availability_zone,
  :affinity,
  :group_name,
  :partition_number,
  :host_id,
  :tenancy,
  :spread_domain)
  include Aws::Structure
end