pub struct PurchaseReservedInstancesOffering<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to PurchaseReservedInstancesOffering
.
Purchases a Reserved Instance for use with your account. With Reserved Instances, you pay a lower hourly rate compared to On-Demand instance pricing.
Use DescribeReservedInstancesOfferings
to get a list of Reserved Instance offerings that match your specifications. After you've purchased a Reserved Instance, you can check for your new Reserved Instance with DescribeReservedInstances
.
To queue a purchase for a future date and time, specify a purchase time. If you do not specify a purchase time, the default is the current time.
For more information, see Reserved Instances and Reserved Instance Marketplace in the Amazon EC2 User Guide.
Implementations
impl<C, M, R> PurchaseReservedInstancesOffering<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> PurchaseReservedInstancesOffering<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<PurchaseReservedInstancesOfferingOutput, SdkError<PurchaseReservedInstancesOfferingError>> where
R::Policy: SmithyRetryPolicy<PurchaseReservedInstancesOfferingInputOperationOutputAlias, PurchaseReservedInstancesOfferingOutput, PurchaseReservedInstancesOfferingError, PurchaseReservedInstancesOfferingInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<PurchaseReservedInstancesOfferingOutput, SdkError<PurchaseReservedInstancesOfferingError>> where
R::Policy: SmithyRetryPolicy<PurchaseReservedInstancesOfferingInputOperationOutputAlias, PurchaseReservedInstancesOfferingOutput, PurchaseReservedInstancesOfferingError, PurchaseReservedInstancesOfferingInputOperationRetryAlias>,
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.
The number of Reserved Instances to purchase.
The number of Reserved Instances to purchase.
The ID of the Reserved Instance offering to purchase.
The ID of the Reserved Instance offering to purchase.
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
The time at which to purchase the Reserved Instance, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
The time at which to purchase the Reserved Instance, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for PurchaseReservedInstancesOffering<C, M, R>
impl<C, M, R> Send for PurchaseReservedInstancesOffering<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for PurchaseReservedInstancesOffering<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for PurchaseReservedInstancesOffering<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for PurchaseReservedInstancesOffering<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