Skip to content

/AWS1/CL_EC2SPOTPLACEMENT

Describes Spot Instance placement.

CONSTRUCTOR

IMPORTING

Optional arguments:

IV_AVAILABILITYZONE TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The Availability Zone.

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

IV_GROUPNAME TYPE /AWS1/EC2PLACEMENTGROUPNAME /AWS1/EC2PLACEMENTGROUPNAME

The name of the placement group.

IV_TENANCY TYPE /AWS1/EC2TENANCY /AWS1/EC2TENANCY

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.


Queryable Attributes

AvailabilityZone

The Availability Zone.

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

Accessible with the following methods

Method Description
GET_AVAILABILITYZONE() Getter for AVAILABILITYZONE, with configurable default
ASK_AVAILABILITYZONE() Getter for AVAILABILITYZONE w/ exceptions if field has no va
HAS_AVAILABILITYZONE() Determine if AVAILABILITYZONE has a value

GroupName

The name of the placement group.

Accessible with the following methods

Method Description
GET_GROUPNAME() Getter for GROUPNAME, with configurable default
ASK_GROUPNAME() Getter for GROUPNAME w/ exceptions if field has no value
HAS_GROUPNAME() Determine if GROUPNAME has a value

Tenancy

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.

Accessible with the following methods

Method Description
GET_TENANCY() Getter for TENANCY, with configurable default
ASK_TENANCY() Getter for TENANCY w/ exceptions if field has no value
HAS_TENANCY() Determine if TENANCY has a value