Skip to content

Get Host Reservation Purchase Preview

ec2_get_host_reservation_purchase_preview R Documentation

Preview a reservation purchase with configurations that match those of your Dedicated Host

Description

Preview a reservation purchase with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation.

This is a preview of the purchase_host_reservation action and does not result in the offering being purchased.

Usage

ec2_get_host_reservation_purchase_preview(HostIdSet, OfferingId)

Arguments

HostIdSet

[required] The IDs of the Dedicated Hosts with which the reservation is associated.

OfferingId

[required] The offering ID of the reservation.

Value

A list with the following syntax:

list(
  CurrencyCode = "USD",
  Purchase = list(
    list(
      CurrencyCode = "USD",
      Duration = 123,
      HostIdSet = list(
        "string"
      ),
      HostReservationId = "string",
      HourlyPrice = "string",
      InstanceFamily = "string",
      PaymentOption = "AllUpfront"|"PartialUpfront"|"NoUpfront",
      UpfrontPrice = "string"
    )
  ),
  TotalHourlyPrice = "string",
  TotalUpfrontPrice = "string"
)

Request syntax

svc$get_host_reservation_purchase_preview(
  HostIdSet = list(
    "string"
  ),
  OfferingId = "string"
)