Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
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 and 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.
For more information, see Reserved Instances and Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.
See: AWS API Reference for PurchaseReservedInstancesOffering.
- purchaseReservedInstancesOffering :: Text -> Int -> PurchaseReservedInstancesOffering
- data PurchaseReservedInstancesOffering
- prioLimitPrice :: Lens' PurchaseReservedInstancesOffering (Maybe ReservedInstanceLimitPrice)
- prioDryRun :: Lens' PurchaseReservedInstancesOffering (Maybe Bool)
- prioReservedInstancesOfferingId :: Lens' PurchaseReservedInstancesOffering Text
- prioInstanceCount :: Lens' PurchaseReservedInstancesOffering Int
- purchaseReservedInstancesOfferingResponse :: Int -> PurchaseReservedInstancesOfferingResponse
- data PurchaseReservedInstancesOfferingResponse
- priorsReservedInstancesId :: Lens' PurchaseReservedInstancesOfferingResponse (Maybe Text)
- priorsResponseStatus :: Lens' PurchaseReservedInstancesOfferingResponse Int
Creating a Request
purchaseReservedInstancesOffering Source
Creates a value of PurchaseReservedInstancesOffering
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PurchaseReservedInstancesOffering Source
See: purchaseReservedInstancesOffering
smart constructor.
Request Lenses
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.
prioDryRun :: Lens' PurchaseReservedInstancesOffering (Maybe Bool) Source
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
.
prioReservedInstancesOfferingId :: Lens' PurchaseReservedInstancesOffering Text Source
The ID of the Reserved instance offering to purchase.
prioInstanceCount :: Lens' PurchaseReservedInstancesOffering Int Source
The number of Reserved instances to purchase.
Destructuring the Response
purchaseReservedInstancesOfferingResponse Source
Creates a value of PurchaseReservedInstancesOfferingResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PurchaseReservedInstancesOfferingResponse Source
See: purchaseReservedInstancesOfferingResponse
smart constructor.
Response Lenses
priorsReservedInstancesId :: Lens' PurchaseReservedInstancesOfferingResponse (Maybe Text) Source
The IDs of the purchased Reserved instances.
priorsResponseStatus :: Lens' PurchaseReservedInstancesOfferingResponse Int Source
The response status code.