Class SpotRequestType
The Spot Instance request type.
Inheritance
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class SpotRequestType : Enum
Syntax (vb)
Public NotInheritable Class SpotRequestType
Inherits
Enum
Remarks
Synopsis
Fields
ONE_TIME | A one-time Spot Instance request remains active until Amazon EC2 launches the Spot Instance, the request expires, or you cancel the request. |
PERSISTENT | A persistent Spot Instance request remains active until it expires or you cancel it, even if the request is fulfilled. |
value__ |
Fields
ONE_TIME
A one-time Spot Instance request remains active until Amazon EC2 launches the Spot Instance, the request expires, or you cancel the request.
public const SpotRequestType ONE_TIME
Field Value
Type | Description |
---|---|
SpotRequestType |
Remarks
If the Spot price exceeds your maximum price or capacity is not available, your Spot Instance is terminated and the Spot Instance request is closed.
PERSISTENT
A persistent Spot Instance request remains active until it expires or you cancel it, even if the request is fulfilled.
public const SpotRequestType PERSISTENT
Field Value
Type | Description |
---|---|
SpotRequestType |
Remarks
If the Spot price exceeds your maximum price or capacity is not available, your Spot Instance is interrupted. After your instance is interrupted, when your maximum price exceeds the Spot price or capacity becomes available again, the Spot Instance is started if stopped or resumed if hibernated.
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |