Safe Haskell | None |
---|---|
Language | Haskell2010 |
Purchases a Reserved Instance for use with your account. With Amazon EC2 Reserved Instances, you obtain a capacity reservation for a certain instance configuration over a specified period of time. You pay a lower usage rate than with On-Demand instances for the time that you actually use the capacity reservation.
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
.
For more information, see Reserved Instances and Reserved InstanceMarketplace in the Amazon Elastic Compute Cloud User Guide.
- data PurchaseReservedInstancesOffering
- purchaseReservedInstancesOffering :: Text -> Int -> PurchaseReservedInstancesOffering
- prioDryRun :: Lens' PurchaseReservedInstancesOffering (Maybe Bool)
- prioInstanceCount :: Lens' PurchaseReservedInstancesOffering Int
- prioLimitPrice :: Lens' PurchaseReservedInstancesOffering (Maybe ReservedInstanceLimitPrice)
- prioReservedInstancesOfferingId :: Lens' PurchaseReservedInstancesOffering Text
- data PurchaseReservedInstancesOfferingResponse
- purchaseReservedInstancesOfferingResponse :: PurchaseReservedInstancesOfferingResponse
- priorReservedInstancesId :: Lens' PurchaseReservedInstancesOfferingResponse (Maybe Text)
Request
data PurchaseReservedInstancesOffering Source
Request constructor
purchaseReservedInstancesOffering Source
PurchaseReservedInstancesOffering
constructor.
The fields accessible through corresponding lenses are:
Request lenses
prioInstanceCount :: Lens' PurchaseReservedInstancesOffering Int Source
The number of Reserved Instances to purchase.
prioLimitPrice :: Lens' PurchaseReservedInstancesOffering (Maybe ReservedInstanceLimitPrice) Source
Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
prioReservedInstancesOfferingId :: Lens' PurchaseReservedInstancesOffering Text Source
The ID of the Reserved Instance offering to purchase.
Response
Response constructor
purchaseReservedInstancesOfferingResponse :: PurchaseReservedInstancesOfferingResponse Source
PurchaseReservedInstancesOfferingResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
priorReservedInstancesId :: Lens' PurchaseReservedInstancesOfferingResponse (Maybe Text) Source
The IDs of the purchased Reserved Instances.