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

Description

 
Synopsis

Documentation

data HostReservation Source #

Details about the Dedicated Host Reservation and associated Dedicated Hosts.

See: newHostReservation smart constructor.

Constructors

HostReservation' 

Fields

Instances

Instances details
FromXML HostReservation Source # 
Instance details

Defined in Amazonka.EC2.Types.HostReservation

Generic HostReservation Source # 
Instance details

Defined in Amazonka.EC2.Types.HostReservation

Associated Types

type Rep HostReservation :: Type -> Type #

Read HostReservation Source # 
Instance details

Defined in Amazonka.EC2.Types.HostReservation

Show HostReservation Source # 
Instance details

Defined in Amazonka.EC2.Types.HostReservation

NFData HostReservation Source # 
Instance details

Defined in Amazonka.EC2.Types.HostReservation

Methods

rnf :: HostReservation -> () #

Eq HostReservation Source # 
Instance details

Defined in Amazonka.EC2.Types.HostReservation

Hashable HostReservation Source # 
Instance details

Defined in Amazonka.EC2.Types.HostReservation

type Rep HostReservation Source # 
Instance details

Defined in Amazonka.EC2.Types.HostReservation

type Rep HostReservation = D1 ('MetaData "HostReservation" "Amazonka.EC2.Types.HostReservation" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "HostReservation'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "currencyCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CurrencyCodeValues)) :*: S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) :*: ((S1 ('MetaSel ('Just "end") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "hostIdSet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "hostReservationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "hourlyPrice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "instanceFamily") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "offeringId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "paymentOption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PaymentOption)))) :*: ((S1 ('MetaSel ('Just "start") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReservationState))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "upfrontPrice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))))

newHostReservation :: HostReservation Source #

Create a value of HostReservation 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:count:HostReservation', hostReservation_count - The number of Dedicated Hosts the reservation is associated with.

$sel:currencyCode:HostReservation', hostReservation_currencyCode - The currency in which the upfrontPrice and hourlyPrice amounts are specified. At this time, the only supported currency is USD.

$sel:duration:HostReservation', hostReservation_duration - The length of the reservation's term, specified in seconds. Can be 31536000 (1 year) | 94608000 (3 years).

$sel:end:HostReservation', hostReservation_end - The date and time that the reservation ends.

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

$sel:hostReservationId:HostReservation', hostReservation_hostReservationId - The ID of the reservation that specifies the associated Dedicated Hosts.

$sel:hourlyPrice:HostReservation', hostReservation_hourlyPrice - The hourly price of the reservation.

$sel:instanceFamily:HostReservation', hostReservation_instanceFamily - The instance family of the Dedicated Host Reservation. The instance family on the Dedicated Host must be the same in order for it to benefit from the reservation.

$sel:offeringId:HostReservation', hostReservation_offeringId - The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated with it.

$sel:paymentOption:HostReservation', hostReservation_paymentOption - The payment option selected for this reservation.

$sel:start:HostReservation', hostReservation_start - The date and time that the reservation started.

$sel:state:HostReservation', hostReservation_state - The state of the reservation.

$sel:tags:HostReservation', hostReservation_tags - Any tags assigned to the Dedicated Host Reservation.

$sel:upfrontPrice:HostReservation', hostReservation_upfrontPrice - The upfront price of the reservation.

hostReservation_count :: Lens' HostReservation (Maybe Int) Source #

The number of Dedicated Hosts the reservation is associated with.

hostReservation_currencyCode :: Lens' HostReservation (Maybe CurrencyCodeValues) Source #

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

hostReservation_duration :: Lens' HostReservation (Maybe Int) Source #

The length of the reservation's term, specified in seconds. Can be 31536000 (1 year) | 94608000 (3 years).

hostReservation_end :: Lens' HostReservation (Maybe UTCTime) Source #

The date and time that the reservation ends.

hostReservation_hostIdSet :: Lens' HostReservation (Maybe [Text]) Source #

The IDs of the Dedicated Hosts associated with the reservation.

hostReservation_hostReservationId :: Lens' HostReservation (Maybe Text) Source #

The ID of the reservation that specifies the associated Dedicated Hosts.

hostReservation_hourlyPrice :: Lens' HostReservation (Maybe Text) Source #

The hourly price of the reservation.

hostReservation_instanceFamily :: Lens' HostReservation (Maybe Text) Source #

The instance family of the Dedicated Host Reservation. The instance family on the Dedicated Host must be the same in order for it to benefit from the reservation.

hostReservation_offeringId :: Lens' HostReservation (Maybe Text) Source #

The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated with it.

hostReservation_paymentOption :: Lens' HostReservation (Maybe PaymentOption) Source #

The payment option selected for this reservation.

hostReservation_start :: Lens' HostReservation (Maybe UTCTime) Source #

The date and time that the reservation started.

hostReservation_tags :: Lens' HostReservation (Maybe [Tag]) Source #

Any tags assigned to the Dedicated Host Reservation.

hostReservation_upfrontPrice :: Lens' HostReservation (Maybe Text) Source #

The upfront price of the reservation.