Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data SpotMarketOptions = SpotMarketOptions' {}
- newSpotMarketOptions :: SpotMarketOptions
- spotMarketOptions_blockDurationMinutes :: Lens' SpotMarketOptions (Maybe Int)
- spotMarketOptions_instanceInterruptionBehavior :: Lens' SpotMarketOptions (Maybe InstanceInterruptionBehavior)
- spotMarketOptions_maxPrice :: Lens' SpotMarketOptions (Maybe Text)
- spotMarketOptions_spotInstanceType :: Lens' SpotMarketOptions (Maybe SpotInstanceType)
- spotMarketOptions_validUntil :: Lens' SpotMarketOptions (Maybe UTCTime)
Documentation
data SpotMarketOptions Source #
The options for Spot Instances.
See: newSpotMarketOptions
smart constructor.
SpotMarketOptions' | |
|
Instances
newSpotMarketOptions :: SpotMarketOptions Source #
Create a value of SpotMarketOptions
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:blockDurationMinutes:SpotMarketOptions'
, spotMarketOptions_blockDurationMinutes
- Deprecated.
$sel:instanceInterruptionBehavior:SpotMarketOptions'
, spotMarketOptions_instanceInterruptionBehavior
- The behavior when a Spot Instance is interrupted. The default is
terminate
.
$sel:maxPrice:SpotMarketOptions'
, spotMarketOptions_maxPrice
- The maximum hourly price that you're willing to pay for a Spot
Instance. 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.
$sel:spotInstanceType:SpotMarketOptions'
, spotMarketOptions_spotInstanceType
- The Spot Instance request type. For
RunInstances,
persistent Spot Instance requests are only supported when the instance
interruption behavior is either hibernate
or stop
.
$sel:validUntil:SpotMarketOptions'
, spotMarketOptions_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.
spotMarketOptions_blockDurationMinutes :: Lens' SpotMarketOptions (Maybe Int) Source #
Deprecated.
spotMarketOptions_instanceInterruptionBehavior :: Lens' SpotMarketOptions (Maybe InstanceInterruptionBehavior) Source #
The behavior when a Spot Instance is interrupted. The default is
terminate
.
spotMarketOptions_maxPrice :: Lens' SpotMarketOptions (Maybe Text) Source #
The maximum hourly price that you're willing to pay for a Spot Instance. 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.
spotMarketOptions_spotInstanceType :: Lens' SpotMarketOptions (Maybe SpotInstanceType) Source #
The Spot Instance request type. For
RunInstances,
persistent Spot Instance requests are only supported when the instance
interruption behavior is either hibernate
or stop
.
spotMarketOptions_validUntil :: Lens' SpotMarketOptions (Maybe UTCTime) Source #
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.