Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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 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 .
Synopsis
- purchaseReservedInstancesOffering :: Int -> Text -> PurchaseReservedInstancesOffering
- data PurchaseReservedInstancesOffering
- prioLimitPrice :: Lens' PurchaseReservedInstancesOffering (Maybe ReservedInstanceLimitPrice)
- prioDryRun :: Lens' PurchaseReservedInstancesOffering (Maybe Bool)
- prioInstanceCount :: Lens' PurchaseReservedInstancesOffering Int
- prioReservedInstancesOfferingId :: Lens' PurchaseReservedInstancesOffering Text
- 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:
prioLimitPrice
- Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.prioDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.prioInstanceCount
- The number of Reserved Instances to purchase.prioReservedInstancesOfferingId
- The ID of the Reserved Instance offering to purchase.
data PurchaseReservedInstancesOffering Source #
Contains the parameters for PurchaseReservedInstancesOffering.
See: purchaseReservedInstancesOffering
smart constructor.
Instances
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
.
prioInstanceCount :: Lens' PurchaseReservedInstancesOffering Int Source #
The number of Reserved Instances to purchase.
prioReservedInstancesOfferingId :: Lens' PurchaseReservedInstancesOffering Text Source #
The ID of the Reserved Instance offering 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:
priorsReservedInstancesId
- The IDs of the purchased Reserved Instances.priorsResponseStatus
- -- | The response status code.
data PurchaseReservedInstancesOfferingResponse Source #
Contains the output of PurchaseReservedInstancesOffering.
See: purchaseReservedInstancesOfferingResponse
smart constructor.
Instances
Response Lenses
priorsReservedInstancesId :: Lens' PurchaseReservedInstancesOfferingResponse (Maybe Text) Source #
The IDs of the purchased Reserved Instances.
priorsResponseStatus :: Lens' PurchaseReservedInstancesOfferingResponse Int Source #
- - | The response status code.