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

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

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

Overview

Note:

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

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

Describes Spot Instance placement.

Returned by:

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)

    The Availability Zone.

#group_nameString

The name of the placement group.

Returns:

  • (String)

    The name of the placement group.

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

Possible values:

  • default
  • dedicated
  • host

Returns:

  • (String)

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