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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/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)


23330
23331
23332
23333
23334
23335
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 23330

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

#group_nameString

The name of the placement group (for cluster instances).

Returns:

  • (String)


23330
23331
23332
23333
23334
23335
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 23330

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)


23330
23331
23332
23333
23334
23335
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 23330

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