Struct aws_sdk_ec2::client::fluent_builders::PurchaseHostReservation [−][src]
pub struct PurchaseHostReservation<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to PurchaseHostReservation
.
Purchase a reservation with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation. This action results in the specified reservation being purchased and charged to your account.
Implementations
impl<C, M, R> PurchaseHostReservation<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> PurchaseHostReservation<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<PurchaseHostReservationOutput, SdkError<PurchaseHostReservationError>> where
R::Policy: SmithyRetryPolicy<PurchaseHostReservationInputOperationOutputAlias, PurchaseHostReservationOutput, PurchaseHostReservationError, PurchaseHostReservationInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<PurchaseHostReservationOutput, SdkError<PurchaseHostReservationError>> where
R::Policy: SmithyRetryPolicy<PurchaseHostReservationInputOperationOutputAlias, PurchaseHostReservationOutput, PurchaseHostReservationError, PurchaseHostReservationInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
The currency in which the totalUpfrontPrice
, LimitPrice
,
and totalHourlyPrice
amounts are specified. At this time, the only
supported currency is USD
.
The currency in which the totalUpfrontPrice
, LimitPrice
,
and totalHourlyPrice
amounts are specified. At this time, the only
supported currency is USD
.
Appends an item to HostIdSet
.
To override the contents of this collection use set_host_id_set
.
The IDs of the Dedicated Hosts with which the reservation will be associated.
The IDs of the Dedicated Hosts with which the reservation will be associated.
The specified limit is checked against the total upfront cost of the reservation
(calculated as the offering's upfront cost multiplied by the host count). If the total
upfront cost is greater than the specified price limit, the request fails. This is used
to ensure that the purchase does not exceed the expected upfront cost of the purchase.
At this time, the only supported currency is USD
. For example, to indicate
a limit price of USD 100, specify 100.00.
The specified limit is checked against the total upfront cost of the reservation
(calculated as the offering's upfront cost multiplied by the host count). If the total
upfront cost is greater than the specified price limit, the request fails. This is used
to ensure that the purchase does not exceed the expected upfront cost of the purchase.
At this time, the only supported currency is USD
. For example, to indicate
a limit price of USD 100, specify 100.00.
The ID of the offering.
The ID of the offering.
Appends an item to TagSpecifications
.
To override the contents of this collection use set_tag_specifications
.
The tags to apply to the Dedicated Host Reservation during purchase.
The tags to apply to the Dedicated Host Reservation during purchase.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for PurchaseHostReservation<C, M, R>
impl<C, M, R> Send for PurchaseHostReservation<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for PurchaseHostReservation<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for PurchaseHostReservation<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for PurchaseHostReservation<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more