| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.EC2.Types.HostReservation
Description
Synopsis
- data HostReservation = HostReservation' {
- count :: Maybe Int
- currencyCode :: Maybe CurrencyCodeValues
- duration :: Maybe Int
- end :: Maybe ISO8601
- hostIdSet :: Maybe [Text]
- hostReservationId :: Maybe Text
- hourlyPrice :: Maybe Text
- instanceFamily :: Maybe Text
- offeringId :: Maybe Text
- paymentOption :: Maybe PaymentOption
- start :: Maybe ISO8601
- state :: Maybe ReservationState
- tags :: Maybe [Tag]
- upfrontPrice :: Maybe Text
- newHostReservation :: HostReservation
- hostReservation_count :: Lens' HostReservation (Maybe Int)
- hostReservation_currencyCode :: Lens' HostReservation (Maybe CurrencyCodeValues)
- hostReservation_duration :: Lens' HostReservation (Maybe Int)
- hostReservation_end :: Lens' HostReservation (Maybe UTCTime)
- hostReservation_hostIdSet :: Lens' HostReservation (Maybe [Text])
- hostReservation_hostReservationId :: Lens' HostReservation (Maybe Text)
- hostReservation_hourlyPrice :: Lens' HostReservation (Maybe Text)
- hostReservation_instanceFamily :: Lens' HostReservation (Maybe Text)
- hostReservation_offeringId :: Lens' HostReservation (Maybe Text)
- hostReservation_paymentOption :: Lens' HostReservation (Maybe PaymentOption)
- hostReservation_start :: Lens' HostReservation (Maybe UTCTime)
- hostReservation_state :: Lens' HostReservation (Maybe ReservationState)
- hostReservation_tags :: Lens' HostReservation (Maybe [Tag])
- hostReservation_upfrontPrice :: Lens' HostReservation (Maybe Text)
Documentation
data HostReservation Source #
Details about the Dedicated Host Reservation and associated Dedicated Hosts.
See: newHostReservation smart constructor.
Constructors
| HostReservation' | |
Fields
| |
Instances
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_state :: Lens' HostReservation (Maybe ReservationState) Source #
The state of the reservation.
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.