amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.Types.SpotMarketOptions

Description

 
Synopsis

Documentation

data SpotMarketOptions Source #

The options for Spot Instances.

See: newSpotMarketOptions smart constructor.

Constructors

SpotMarketOptions' 

Fields

  • blockDurationMinutes :: Maybe Int

    Deprecated.

  • instanceInterruptionBehavior :: Maybe InstanceInterruptionBehavior

    The behavior when a Spot Instance is interrupted. The default is terminate.

  • maxPrice :: Maybe Text

    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.

  • spotInstanceType :: Maybe 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.

  • validUntil :: Maybe ISO8601

    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.

Instances

Instances details
ToQuery SpotMarketOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.SpotMarketOptions

Generic SpotMarketOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.SpotMarketOptions

Associated Types

type Rep SpotMarketOptions :: Type -> Type #

Read SpotMarketOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.SpotMarketOptions

Show SpotMarketOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.SpotMarketOptions

NFData SpotMarketOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.SpotMarketOptions

Methods

rnf :: SpotMarketOptions -> () #

Eq SpotMarketOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.SpotMarketOptions

Hashable SpotMarketOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.SpotMarketOptions

type Rep SpotMarketOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.SpotMarketOptions

type Rep SpotMarketOptions = D1 ('MetaData "SpotMarketOptions" "Amazonka.EC2.Types.SpotMarketOptions" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "SpotMarketOptions'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "blockDurationMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "instanceInterruptionBehavior") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceInterruptionBehavior))) :*: (S1 ('MetaSel ('Just "maxPrice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "spotInstanceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SpotInstanceType)) :*: S1 ('MetaSel ('Just "validUntil") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601))))))

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_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.