Class: Aws::EC2::Types::SpotPlacement

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 SpotPlacement data as a hash:

{
  availability_zone: "String",
  group_name: "String",
  tenancy: "default", # accepts default, dedicated, host
}

Describes Spot Instance placement.

Instance Attribute Summary collapse

Instance Attribute Details

#availability_zoneString

The Availability Zone.

[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, “us-west-2a, us-west-2b”.

Returns:

  • (String)


34944
34945
34946
34947
34948
34949
# File 'lib/aws-sdk-ec2/types.rb', line 34944

class SpotPlacement < Struct.new(
  :availability_zone,
  :group_name,
  :tenancy)
  include Aws::Structure
end

#group_nameString

The name of the placement group.

Returns:

  • (String)


34944
34945
34946
34947
34948
34949
# File 'lib/aws-sdk-ec2/types.rb', line 34944

class SpotPlacement < Struct.new(
  :availability_zone,
  :group_name,
  :tenancy)
  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 Spot Instances.

Returns:

  • (String)


34944
34945
34946
34947
34948
34949
# File 'lib/aws-sdk-ec2/types.rb', line 34944

class SpotPlacement < Struct.new(
  :availability_zone,
  :group_name,
  :tenancy)
  include Aws::Structure
end