Copyright | (c) 2013-2016 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 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.
- 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 #
Contains the parameters for PurchaseReservedInstancesOffering.
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 #
Contains the output of PurchaseReservedInstancesOffering.
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.