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

Description

 
Synopsis

Documentation

data Purchase Source #

Describes the result of the purchase.

See: newPurchase smart constructor.

Constructors

Purchase' 

Fields

Instances

Instances details
FromXML Purchase Source # 
Instance details

Defined in Amazonka.EC2.Types.Purchase

Generic Purchase Source # 
Instance details

Defined in Amazonka.EC2.Types.Purchase

Associated Types

type Rep Purchase :: Type -> Type #

Methods

from :: Purchase -> Rep Purchase x #

to :: Rep Purchase x -> Purchase #

Read Purchase Source # 
Instance details

Defined in Amazonka.EC2.Types.Purchase

Show Purchase Source # 
Instance details

Defined in Amazonka.EC2.Types.Purchase

NFData Purchase Source # 
Instance details

Defined in Amazonka.EC2.Types.Purchase

Methods

rnf :: Purchase -> () #

Eq Purchase Source # 
Instance details

Defined in Amazonka.EC2.Types.Purchase

Hashable Purchase Source # 
Instance details

Defined in Amazonka.EC2.Types.Purchase

Methods

hashWithSalt :: Int -> Purchase -> Int #

hash :: Purchase -> Int #

type Rep Purchase Source # 
Instance details

Defined in Amazonka.EC2.Types.Purchase

newPurchase :: Purchase Source #

Create a value of Purchase 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:Purchase', purchase_currencyCode - The currency in which the UpfrontPrice and HourlyPrice amounts are specified. At this time, the only supported currency is USD.

$sel:duration:Purchase', purchase_duration - The duration of the reservation's term in seconds.

$sel:hostIdSet:Purchase', purchase_hostIdSet - The IDs of the Dedicated Hosts associated with the reservation.

$sel:hostReservationId:Purchase', purchase_hostReservationId - The ID of the reservation.

$sel:hourlyPrice:Purchase', purchase_hourlyPrice - The hourly price of the reservation per hour.

$sel:instanceFamily:Purchase', purchase_instanceFamily - The instance family on the Dedicated Host that the reservation can be associated with.

$sel:paymentOption:Purchase', purchase_paymentOption - The payment option for the reservation.

$sel:upfrontPrice:Purchase', purchase_upfrontPrice - The upfront price of the reservation.

purchase_currencyCode :: Lens' Purchase (Maybe CurrencyCodeValues) Source #

The currency in which the UpfrontPrice and HourlyPrice amounts are specified. At this time, the only supported currency is USD.

purchase_duration :: Lens' Purchase (Maybe Int) Source #

The duration of the reservation's term in seconds.

purchase_hostIdSet :: Lens' Purchase (Maybe [Text]) Source #

The IDs of the Dedicated Hosts associated with the reservation.

purchase_hostReservationId :: Lens' Purchase (Maybe Text) Source #

The ID of the reservation.

purchase_hourlyPrice :: Lens' Purchase (Maybe Text) Source #

The hourly price of the reservation per hour.

purchase_instanceFamily :: Lens' Purchase (Maybe Text) Source #

The instance family on the Dedicated Host that the reservation can be associated with.

purchase_paymentOption :: Lens' Purchase (Maybe PaymentOption) Source #

The payment option for the reservation.

purchase_upfrontPrice :: Lens' Purchase (Maybe Text) Source #

The upfront price of the reservation.