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

Description

 
Synopsis

Documentation

data SpotPrice Source #

The maximum price per unit hour that you are 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 instances will be interrupted more frequently than if you do not specify this parameter.

See: newSpotPrice smart constructor.

Constructors

SpotPrice' 

Fields

  • availabilityZone :: Maybe Text

    The Availability Zone.

  • instanceType :: Maybe InstanceType

    The instance type.

  • productDescription :: Maybe RIProductDescription

    A general description of the AMI.

  • spotPrice :: Maybe Text

    The maximum price per unit hour that you are 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 instances will be interrupted more frequently than if you do not specify this parameter.

  • timestamp :: Maybe ISO8601

    The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

Instances

Instances details
FromXML SpotPrice Source # 
Instance details

Defined in Amazonka.EC2.Types.SpotPrice

Generic SpotPrice Source # 
Instance details

Defined in Amazonka.EC2.Types.SpotPrice

Associated Types

type Rep SpotPrice :: Type -> Type #

Read SpotPrice Source # 
Instance details

Defined in Amazonka.EC2.Types.SpotPrice

Show SpotPrice Source # 
Instance details

Defined in Amazonka.EC2.Types.SpotPrice

NFData SpotPrice Source # 
Instance details

Defined in Amazonka.EC2.Types.SpotPrice

Methods

rnf :: SpotPrice -> () #

Eq SpotPrice Source # 
Instance details

Defined in Amazonka.EC2.Types.SpotPrice

Hashable SpotPrice Source # 
Instance details

Defined in Amazonka.EC2.Types.SpotPrice

type Rep SpotPrice Source # 
Instance details

Defined in Amazonka.EC2.Types.SpotPrice

type Rep SpotPrice = D1 ('MetaData "SpotPrice" "Amazonka.EC2.Types.SpotPrice" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "SpotPrice'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "availabilityZone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "instanceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceType))) :*: (S1 ('MetaSel ('Just "productDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RIProductDescription)) :*: (S1 ('MetaSel ('Just "spotPrice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601))))))

newSpotPrice :: SpotPrice Source #

Create a value of SpotPrice 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:availabilityZone:SpotPrice', spotPrice_availabilityZone - The Availability Zone.

$sel:instanceType:SpotPrice', spotPrice_instanceType - The instance type.

$sel:productDescription:SpotPrice', spotPrice_productDescription - A general description of the AMI.

$sel:spotPrice:SpotPrice', spotPrice_spotPrice - The maximum price per unit hour that you are 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 instances will be interrupted more frequently than if you do not specify this parameter.

$sel:timestamp:SpotPrice', spotPrice_timestamp - The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

spotPrice_spotPrice :: Lens' SpotPrice (Maybe Text) Source #

The maximum price per unit hour that you are 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 instances will be interrupted more frequently than if you do not specify this parameter.

spotPrice_timestamp :: Lens' SpotPrice (Maybe UTCTime) Source #

The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).