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

Description

 
Synopsis

Documentation

data PriceScheduleSpecification Source #

Describes the price for a Reserved Instance.

See: newPriceScheduleSpecification smart constructor.

Constructors

PriceScheduleSpecification' 

Fields

  • currencyCode :: Maybe CurrencyCodeValues

    The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.

  • price :: Maybe Double

    The fixed price for the term.

  • term :: Maybe Integer

    The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.

Instances

Instances details
ToQuery PriceScheduleSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.PriceScheduleSpecification

Generic PriceScheduleSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.PriceScheduleSpecification

Associated Types

type Rep PriceScheduleSpecification :: Type -> Type #

Read PriceScheduleSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.PriceScheduleSpecification

Show PriceScheduleSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.PriceScheduleSpecification

NFData PriceScheduleSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.PriceScheduleSpecification

Eq PriceScheduleSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.PriceScheduleSpecification

Hashable PriceScheduleSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.PriceScheduleSpecification

type Rep PriceScheduleSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.PriceScheduleSpecification

type Rep PriceScheduleSpecification = D1 ('MetaData "PriceScheduleSpecification" "Amazonka.EC2.Types.PriceScheduleSpecification" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "PriceScheduleSpecification'" 'PrefixI 'True) (S1 ('MetaSel ('Just "currencyCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CurrencyCodeValues)) :*: (S1 ('MetaSel ('Just "price") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "term") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)))))

newPriceScheduleSpecification :: PriceScheduleSpecification Source #

Create a value of PriceScheduleSpecification 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:currencyCode:PriceScheduleSpecification', priceScheduleSpecification_currencyCode - The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.

$sel:price:PriceScheduleSpecification', priceScheduleSpecification_price - The fixed price for the term.

$sel:term:PriceScheduleSpecification', priceScheduleSpecification_term - The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.

priceScheduleSpecification_currencyCode :: Lens' PriceScheduleSpecification (Maybe CurrencyCodeValues) Source #

The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.

priceScheduleSpecification_term :: Lens' PriceScheduleSpecification (Maybe Integer) Source #

The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.