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

Description

 
Synopsis

Documentation

data ReservationValue Source #

The cost associated with the Reserved Instance.

See: newReservationValue smart constructor.

Constructors

ReservationValue' 

Fields

Instances

Instances details
FromXML ReservationValue Source # 
Instance details

Defined in Amazonka.EC2.Types.ReservationValue

Generic ReservationValue Source # 
Instance details

Defined in Amazonka.EC2.Types.ReservationValue

Associated Types

type Rep ReservationValue :: Type -> Type #

Read ReservationValue Source # 
Instance details

Defined in Amazonka.EC2.Types.ReservationValue

Show ReservationValue Source # 
Instance details

Defined in Amazonka.EC2.Types.ReservationValue

NFData ReservationValue Source # 
Instance details

Defined in Amazonka.EC2.Types.ReservationValue

Methods

rnf :: ReservationValue -> () #

Eq ReservationValue Source # 
Instance details

Defined in Amazonka.EC2.Types.ReservationValue

Hashable ReservationValue Source # 
Instance details

Defined in Amazonka.EC2.Types.ReservationValue

type Rep ReservationValue Source # 
Instance details

Defined in Amazonka.EC2.Types.ReservationValue

type Rep ReservationValue = D1 ('MetaData "ReservationValue" "Amazonka.EC2.Types.ReservationValue" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ReservationValue'" 'PrefixI 'True) (S1 ('MetaSel ('Just "hourlyPrice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "remainingTotalValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "remainingUpfrontValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newReservationValue :: ReservationValue Source #

Create a value of ReservationValue 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:hourlyPrice:ReservationValue', reservationValue_hourlyPrice - The hourly rate of the reservation.

$sel:remainingTotalValue:ReservationValue', reservationValue_remainingTotalValue - The balance of the total value (the sum of remainingUpfrontValue + hourlyPrice * number of hours remaining).

$sel:remainingUpfrontValue:ReservationValue', reservationValue_remainingUpfrontValue - The remaining upfront cost of the reservation.

reservationValue_hourlyPrice :: Lens' ReservationValue (Maybe Text) Source #

The hourly rate of the reservation.

reservationValue_remainingTotalValue :: Lens' ReservationValue (Maybe Text) Source #

The balance of the total value (the sum of remainingUpfrontValue + hourlyPrice * number of hours remaining).

reservationValue_remainingUpfrontValue :: Lens' ReservationValue (Maybe Text) Source #

The remaining upfront cost of the reservation.