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

Description

 
Synopsis

Documentation

data LaunchTemplateSpotMarketOptionsRequest Source #

The options for Spot Instances.

See: newLaunchTemplateSpotMarketOptionsRequest smart constructor.

Constructors

LaunchTemplateSpotMarketOptionsRequest' 

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 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, 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

Instances

Instances details
ToQuery LaunchTemplateSpotMarketOptionsRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpotMarketOptionsRequest

Generic LaunchTemplateSpotMarketOptionsRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpotMarketOptionsRequest

Read LaunchTemplateSpotMarketOptionsRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpotMarketOptionsRequest

Show LaunchTemplateSpotMarketOptionsRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpotMarketOptionsRequest

NFData LaunchTemplateSpotMarketOptionsRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpotMarketOptionsRequest

Eq LaunchTemplateSpotMarketOptionsRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpotMarketOptionsRequest

Hashable LaunchTemplateSpotMarketOptionsRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpotMarketOptionsRequest

type Rep LaunchTemplateSpotMarketOptionsRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpotMarketOptionsRequest

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

newLaunchTemplateSpotMarketOptionsRequest :: LaunchTemplateSpotMarketOptionsRequest Source #

Create a value of LaunchTemplateSpotMarketOptionsRequest 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:LaunchTemplateSpotMarketOptionsRequest', launchTemplateSpotMarketOptionsRequest_blockDurationMinutes - Deprecated.

$sel:instanceInterruptionBehavior:LaunchTemplateSpotMarketOptionsRequest', launchTemplateSpotMarketOptionsRequest_instanceInterruptionBehavior - The behavior when a Spot Instance is interrupted. The default is terminate.

$sel:maxPrice:LaunchTemplateSpotMarketOptionsRequest', launchTemplateSpotMarketOptionsRequest_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:LaunchTemplateSpotMarketOptionsRequest', launchTemplateSpotMarketOptionsRequest_spotInstanceType - The Spot Instance request type.

$sel:validUntil:LaunchTemplateSpotMarketOptionsRequest', launchTemplateSpotMarketOptionsRequest_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

launchTemplateSpotMarketOptionsRequest_maxPrice :: Lens' LaunchTemplateSpotMarketOptionsRequest (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.

launchTemplateSpotMarketOptionsRequest_validUntil :: Lens' LaunchTemplateSpotMarketOptionsRequest (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.

Default: 7 days from the current date