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

Description

 
Synopsis

Documentation

data LaunchTemplateSpotMarketOptions Source #

The options for Spot Instances.

See: newLaunchTemplateSpotMarketOptions smart constructor.

Constructors

LaunchTemplateSpotMarketOptions' 

Fields

  • blockDurationMinutes :: Maybe Int

    The required duration for the Spot Instances (also known as Spot blocks), in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360).

  • instanceInterruptionBehavior :: Maybe InstanceInterruptionBehavior

    The behavior when a Spot Instance is interrupted.

  • maxPrice :: Maybe Text

    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.

  • spotInstanceType :: Maybe SpotInstanceType

    The Spot Instance request type.

  • validUntil :: Maybe ISO8601

    The end date of the request. For a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached.

Instances

Instances details
FromXML LaunchTemplateSpotMarketOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpotMarketOptions

Generic LaunchTemplateSpotMarketOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpotMarketOptions

Associated Types

type Rep LaunchTemplateSpotMarketOptions :: Type -> Type #

Read LaunchTemplateSpotMarketOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpotMarketOptions

Show LaunchTemplateSpotMarketOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpotMarketOptions

NFData LaunchTemplateSpotMarketOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpotMarketOptions

Eq LaunchTemplateSpotMarketOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpotMarketOptions

Hashable LaunchTemplateSpotMarketOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpotMarketOptions

type Rep LaunchTemplateSpotMarketOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpotMarketOptions

type Rep LaunchTemplateSpotMarketOptions = D1 ('MetaData "LaunchTemplateSpotMarketOptions" "Amazonka.EC2.Types.LaunchTemplateSpotMarketOptions" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "LaunchTemplateSpotMarketOptions'" '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))))))

newLaunchTemplateSpotMarketOptions :: LaunchTemplateSpotMarketOptions Source #

Create a value of LaunchTemplateSpotMarketOptions 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:LaunchTemplateSpotMarketOptions', launchTemplateSpotMarketOptions_blockDurationMinutes - The required duration for the Spot Instances (also known as Spot blocks), in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360).

$sel:instanceInterruptionBehavior:LaunchTemplateSpotMarketOptions', launchTemplateSpotMarketOptions_instanceInterruptionBehavior - The behavior when a Spot Instance is interrupted.

$sel:maxPrice:LaunchTemplateSpotMarketOptions', launchTemplateSpotMarketOptions_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.

$sel:spotInstanceType:LaunchTemplateSpotMarketOptions', launchTemplateSpotMarketOptions_spotInstanceType - The Spot Instance request type.

$sel:validUntil:LaunchTemplateSpotMarketOptions', launchTemplateSpotMarketOptions_validUntil - The end date of the request. For a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached.

launchTemplateSpotMarketOptions_blockDurationMinutes :: Lens' LaunchTemplateSpotMarketOptions (Maybe Int) Source #

The required duration for the Spot Instances (also known as Spot blocks), in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360).

launchTemplateSpotMarketOptions_maxPrice :: Lens' LaunchTemplateSpotMarketOptions (Maybe Text) Source #

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.

launchTemplateSpotMarketOptions_validUntil :: Lens' LaunchTemplateSpotMarketOptions (Maybe UTCTime) Source #

The end date of the request. For a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached.