public class MakeASpotRequest extends Object
Presented here are the fields that are absolutely 100% required to make a spot request. The LaunchSpecification
property is an opaque datastructure from EC2, however the fields which we know are absolutely required are described
See http://schemas.taskcluster.net/ec2-manager/v1/run-instance-request.json#
Modifier and Type | Class and Description |
---|---|
class |
MakeASpotRequest.LaunchInfo |
Modifier and Type | Field and Description |
---|---|
String |
ClientToken
A ClientToken string per the implementation requirements of the EC2 api.
|
MakeASpotRequest.LaunchInfo |
LaunchInfo
This is an EC2-Manager specific wrapping of the request body for the upstream EC2 API.
|
String |
Region
The EC2 region in which this spot request is to be made.
|
String |
RequestType
Specify whether to use a spot request or an on-demand instance.
|
int |
SpotPrice
The actual price of the bid.
|
Constructor and Description |
---|
MakeASpotRequest() |
public String ClientToken
A ClientToken string per the implementation requirements of the EC2 api. This string must be no more than 64 characters of ASCII. We restrict the client tokens further to alphanumeric ASCII with the addition of the -
and _
characters
Syntax: ^[a-zA-Z0-0_-]{1,64} Min length: 1 Max length: 64
See http://schemas.taskcluster.net/ec2-manager/v1/run-instance-request.json#/properties/ClientToken
public MakeASpotRequest.LaunchInfo LaunchInfo
This is an EC2-Manager specific wrapping of the request body for the upstream EC2 API. Values from this are passed through verbatim. A small number of checks are done on the data before making the call, as well as having some schema keys set to ensure certain values are either present or absent
See http://schemas.taskcluster.net/ec2-manager/v1/run-instance-request.json#/properties/LaunchInfo
public String Region
The EC2 region in which this spot request is to be made. This should be the lower case api-identifier. For example us-east-1
See http://schemas.taskcluster.net/ec2-manager/v1/run-instance-request.json#/properties/Region
public String RequestType
Specify whether to use a spot request or an on-demand instance. This is not inferred from the SpotPrice being set or not because we want to allow for the default behaviour for spot prices, which is to use the spot market with a default price of the on-demand price
Possible values: * “spot” * “on-demand”
See http://schemas.taskcluster.net/ec2-manager/v1/run-instance-request.json#/properties/RequestType
public int SpotPrice
The actual price of the bid. This is passed directly to the EC2 api and so should not have any internal multipliers (e.g. capacity or utility) applied
See http://schemas.taskcluster.net/ec2-manager/v1/run-instance-request.json#/properties/SpotPrice
Copyright © 2014–2018 Mozilla. All rights reserved.