Copyright | (c) 2013-2021 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 |
Allows you to purchase reserved nodes. Amazon Redshift offers a predefined set of reserved node offerings. You can purchase one or more of the offerings. You can call the DescribeReservedNodeOfferings API to obtain the available reserved node offerings. You can call this API by providing a specific reserved node offering and the number of nodes you want to reserve.
For more information about reserved node offerings, go to Purchasing Reserved Nodes in the Amazon Redshift Cluster Management Guide.
Synopsis
- data PurchaseReservedNodeOffering = PurchaseReservedNodeOffering' {}
- newPurchaseReservedNodeOffering :: Text -> PurchaseReservedNodeOffering
- purchaseReservedNodeOffering_nodeCount :: Lens' PurchaseReservedNodeOffering (Maybe Int)
- purchaseReservedNodeOffering_reservedNodeOfferingId :: Lens' PurchaseReservedNodeOffering Text
- data PurchaseReservedNodeOfferingResponse = PurchaseReservedNodeOfferingResponse' {}
- newPurchaseReservedNodeOfferingResponse :: Int -> PurchaseReservedNodeOfferingResponse
- purchaseReservedNodeOfferingResponse_reservedNode :: Lens' PurchaseReservedNodeOfferingResponse (Maybe ReservedNode)
- purchaseReservedNodeOfferingResponse_httpStatus :: Lens' PurchaseReservedNodeOfferingResponse Int
Creating a Request
data PurchaseReservedNodeOffering Source #
See: newPurchaseReservedNodeOffering
smart constructor.
PurchaseReservedNodeOffering' | |
|
Instances
newPurchaseReservedNodeOffering Source #
Create a value of PurchaseReservedNodeOffering
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nodeCount:PurchaseReservedNodeOffering'
, purchaseReservedNodeOffering_nodeCount
- The number of reserved nodes that you want to purchase.
Default: 1
$sel:reservedNodeOfferingId:PurchaseReservedNodeOffering'
, purchaseReservedNodeOffering_reservedNodeOfferingId
- The unique identifier of the reserved node offering you want to
purchase.
Request Lenses
purchaseReservedNodeOffering_nodeCount :: Lens' PurchaseReservedNodeOffering (Maybe Int) Source #
The number of reserved nodes that you want to purchase.
Default: 1
purchaseReservedNodeOffering_reservedNodeOfferingId :: Lens' PurchaseReservedNodeOffering Text Source #
The unique identifier of the reserved node offering you want to purchase.
Destructuring the Response
data PurchaseReservedNodeOfferingResponse Source #
See: newPurchaseReservedNodeOfferingResponse
smart constructor.
PurchaseReservedNodeOfferingResponse' | |
|
Instances
newPurchaseReservedNodeOfferingResponse Source #
Create a value of PurchaseReservedNodeOfferingResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:reservedNode:PurchaseReservedNodeOfferingResponse'
, purchaseReservedNodeOfferingResponse_reservedNode
- Undocumented member.
$sel:httpStatus:PurchaseReservedNodeOfferingResponse'
, purchaseReservedNodeOfferingResponse_httpStatus
- The response's http status code.
Response Lenses
purchaseReservedNodeOfferingResponse_reservedNode :: Lens' PurchaseReservedNodeOfferingResponse (Maybe ReservedNode) Source #
Undocumented member.
purchaseReservedNodeOfferingResponse_httpStatus :: Lens' PurchaseReservedNodeOfferingResponse Int Source #
The response's http status code.