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 OpenSearch instances.
Synopsis
- data PurchaseReservedInstanceOffering = PurchaseReservedInstanceOffering' {}
- newPurchaseReservedInstanceOffering :: Text -> Text -> PurchaseReservedInstanceOffering
- purchaseReservedInstanceOffering_instanceCount :: Lens' PurchaseReservedInstanceOffering (Maybe Natural)
- purchaseReservedInstanceOffering_reservedInstanceOfferingId :: Lens' PurchaseReservedInstanceOffering Text
- purchaseReservedInstanceOffering_reservationName :: Lens' PurchaseReservedInstanceOffering Text
- data PurchaseReservedInstanceOfferingResponse = PurchaseReservedInstanceOfferingResponse' {}
- newPurchaseReservedInstanceOfferingResponse :: Int -> PurchaseReservedInstanceOfferingResponse
- purchaseReservedInstanceOfferingResponse_reservationName :: Lens' PurchaseReservedInstanceOfferingResponse (Maybe Text)
- purchaseReservedInstanceOfferingResponse_reservedInstanceId :: Lens' PurchaseReservedInstanceOfferingResponse (Maybe Text)
- purchaseReservedInstanceOfferingResponse_httpStatus :: Lens' PurchaseReservedInstanceOfferingResponse Int
Creating a Request
data PurchaseReservedInstanceOffering Source #
Container for parameters to PurchaseReservedInstanceOffering
See: newPurchaseReservedInstanceOffering
smart constructor.
PurchaseReservedInstanceOffering' | |
|
Instances
newPurchaseReservedInstanceOffering Source #
:: Text |
|
-> Text | |
-> PurchaseReservedInstanceOffering |
Create a value of PurchaseReservedInstanceOffering
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:instanceCount:PurchaseReservedInstanceOffering'
, purchaseReservedInstanceOffering_instanceCount
- The number of OpenSearch instances to reserve.
$sel:reservedInstanceOfferingId:PurchaseReservedInstanceOffering'
, purchaseReservedInstanceOffering_reservedInstanceOfferingId
- The ID of the reserved OpenSearch instance offering to purchase.
$sel:reservationName:PurchaseReservedInstanceOffering'
, purchaseReservedInstanceOffering_reservationName
- A customer-specified identifier to track this reservation.
Request Lenses
purchaseReservedInstanceOffering_instanceCount :: Lens' PurchaseReservedInstanceOffering (Maybe Natural) Source #
The number of OpenSearch instances to reserve.
purchaseReservedInstanceOffering_reservedInstanceOfferingId :: Lens' PurchaseReservedInstanceOffering Text Source #
The ID of the reserved OpenSearch instance offering to purchase.
purchaseReservedInstanceOffering_reservationName :: Lens' PurchaseReservedInstanceOffering Text Source #
A customer-specified identifier to track this reservation.
Destructuring the Response
data PurchaseReservedInstanceOfferingResponse Source #
Represents the output of a PurchaseReservedInstanceOffering
operation.
See: newPurchaseReservedInstanceOfferingResponse
smart constructor.
PurchaseReservedInstanceOfferingResponse' | |
|
Instances
newPurchaseReservedInstanceOfferingResponse Source #
Create a value of PurchaseReservedInstanceOfferingResponse
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:reservationName:PurchaseReservedInstanceOffering'
, purchaseReservedInstanceOfferingResponse_reservationName
- The customer-specified identifier used to track this reservation.
$sel:reservedInstanceId:PurchaseReservedInstanceOfferingResponse'
, purchaseReservedInstanceOfferingResponse_reservedInstanceId
- Details of the reserved OpenSearch instance which was purchased.
$sel:httpStatus:PurchaseReservedInstanceOfferingResponse'
, purchaseReservedInstanceOfferingResponse_httpStatus
- The response's http status code.
Response Lenses
purchaseReservedInstanceOfferingResponse_reservationName :: Lens' PurchaseReservedInstanceOfferingResponse (Maybe Text) Source #
The customer-specified identifier used to track this reservation.
purchaseReservedInstanceOfferingResponse_reservedInstanceId :: Lens' PurchaseReservedInstanceOfferingResponse (Maybe Text) Source #
Details of the reserved OpenSearch instance which was purchased.
purchaseReservedInstanceOfferingResponse_httpStatus :: Lens' PurchaseReservedInstanceOfferingResponse Int Source #
The response's http status code.