/AWS1/CL_EC2LAUNCHTMPLSPOTMA00¶
The options for Spot Instances.
CONSTRUCTOR
¶
IMPORTING¶
Optional arguments:¶
IV_MAXPRICE
TYPE /AWS1/EC2STRING
/AWS1/EC2STRING
¶
The maximum hourly price you're willing to pay for the Spot Instances. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.
IV_SPOTINSTANCETYPE
TYPE /AWS1/EC2SPOTINSTANCETYPE
/AWS1/EC2SPOTINSTANCETYPE
¶
The Spot Instance request type.
IV_BLOCKDURATIONMINUTES
TYPE /AWS1/EC2INTEGER
/AWS1/EC2INTEGER
¶
Deprecated.
IV_VALIDUNTIL
TYPE /AWS1/EC2DATETIME
/AWS1/EC2DATETIME
¶
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.
For a persistent request, the request remains active until the
ValidUntil
date and time is reached. Otherwise, the request remains active until you cancel it.For a one-time request,
ValidUntil
is not supported. The request remains active until all instances launch or you cancel the request.Default: 7 days from the current date
IV_INSTANCEINTERRUPTIONBEHAV
TYPE /AWS1/EC2INSTINTERRUPTIONBEHAV
/AWS1/EC2INSTINTERRUPTIONBEHAV
¶
The behavior when a Spot Instance is interrupted. The default is
terminate
.
Queryable Attributes¶
MaxPrice¶
The maximum hourly price you're willing to pay for the Spot Instances. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.
Accessible with the following methods¶
Method | Description |
---|---|
GET_MAXPRICE() |
Getter for MAXPRICE, with configurable default |
ASK_MAXPRICE() |
Getter for MAXPRICE w/ exceptions if field has no value |
HAS_MAXPRICE() |
Determine if MAXPRICE has a value |
SpotInstanceType¶
The Spot Instance request type.
Accessible with the following methods¶
Method | Description |
---|---|
GET_SPOTINSTANCETYPE() |
Getter for SPOTINSTANCETYPE, with configurable default |
ASK_SPOTINSTANCETYPE() |
Getter for SPOTINSTANCETYPE w/ exceptions if field has no va |
HAS_SPOTINSTANCETYPE() |
Determine if SPOTINSTANCETYPE has a value |
BlockDurationMinutes¶
Deprecated.
Accessible with the following methods¶
Method | Description |
---|---|
GET_BLOCKDURATIONMINUTES() |
Getter for BLOCKDURATIONMINUTES, with configurable default |
ASK_BLOCKDURATIONMINUTES() |
Getter for BLOCKDURATIONMINUTES w/ exceptions if field has n |
HAS_BLOCKDURATIONMINUTES() |
Determine if BLOCKDURATIONMINUTES has a value |
ValidUntil¶
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.
For a persistent request, the request remains active until the
ValidUntil
date and time is reached. Otherwise, the request remains active until you cancel it.For a one-time request,
ValidUntil
is not supported. The request remains active until all instances launch or you cancel the request.Default: 7 days from the current date
Accessible with the following methods¶
Method | Description |
---|---|
GET_VALIDUNTIL() |
Getter for VALIDUNTIL, with configurable default |
ASK_VALIDUNTIL() |
Getter for VALIDUNTIL w/ exceptions if field has no value |
HAS_VALIDUNTIL() |
Determine if VALIDUNTIL has a value |
InstanceInterruptionBehavior¶
The behavior when a Spot Instance is interrupted. The default is
terminate
.
Accessible with the following methods¶
Method | Description |
---|---|
GET_INSTINTERRUPTIONBEHAV() |
Getter for INSTANCEINTERRUPTIONBEHAVIOR, with configurable d |
ASK_INSTINTERRUPTIONBEHAV() |
Getter for INSTANCEINTERRUPTIONBEHAVIOR w/ exceptions if fie |
HAS_INSTINTERRUPTIONBEHAV() |
Determine if INSTANCEINTERRUPTIONBEHAVIOR has a value |