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 |
Purchases a reserved DB instance offering.
Synopsis
- data PurchaseReservedDBInstancesOffering = PurchaseReservedDBInstancesOffering' {}
- newPurchaseReservedDBInstancesOffering :: Text -> PurchaseReservedDBInstancesOffering
- purchaseReservedDBInstancesOffering_dbInstanceCount :: Lens' PurchaseReservedDBInstancesOffering (Maybe Int)
- purchaseReservedDBInstancesOffering_reservedDBInstanceId :: Lens' PurchaseReservedDBInstancesOffering (Maybe Text)
- purchaseReservedDBInstancesOffering_tags :: Lens' PurchaseReservedDBInstancesOffering (Maybe [Tag])
- purchaseReservedDBInstancesOffering_reservedDBInstancesOfferingId :: Lens' PurchaseReservedDBInstancesOffering Text
- data PurchaseReservedDBInstancesOfferingResponse = PurchaseReservedDBInstancesOfferingResponse' {}
- newPurchaseReservedDBInstancesOfferingResponse :: Int -> PurchaseReservedDBInstancesOfferingResponse
- purchaseReservedDBInstancesOfferingResponse_reservedDBInstance :: Lens' PurchaseReservedDBInstancesOfferingResponse (Maybe ReservedDBInstance)
- purchaseReservedDBInstancesOfferingResponse_httpStatus :: Lens' PurchaseReservedDBInstancesOfferingResponse Int
Creating a Request
data PurchaseReservedDBInstancesOffering Source #
See: newPurchaseReservedDBInstancesOffering
smart constructor.
PurchaseReservedDBInstancesOffering' | |
|
Instances
newPurchaseReservedDBInstancesOffering Source #
:: Text |
|
-> PurchaseReservedDBInstancesOffering |
Create a value of PurchaseReservedDBInstancesOffering
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:dbInstanceCount:PurchaseReservedDBInstancesOffering'
, purchaseReservedDBInstancesOffering_dbInstanceCount
- The number of instances to reserve.
Default: 1
$sel:reservedDBInstanceId:PurchaseReservedDBInstancesOffering'
, purchaseReservedDBInstancesOffering_reservedDBInstanceId
- Customer-specified identifier to track this reservation.
Example: myreservationID
$sel:tags:PurchaseReservedDBInstancesOffering'
, purchaseReservedDBInstancesOffering_tags
- Undocumented member.
$sel:reservedDBInstancesOfferingId:PurchaseReservedDBInstancesOffering'
, purchaseReservedDBInstancesOffering_reservedDBInstancesOfferingId
- The ID of the Reserved DB instance offering to purchase.
Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
Request Lenses
purchaseReservedDBInstancesOffering_dbInstanceCount :: Lens' PurchaseReservedDBInstancesOffering (Maybe Int) Source #
The number of instances to reserve.
Default: 1
purchaseReservedDBInstancesOffering_reservedDBInstanceId :: Lens' PurchaseReservedDBInstancesOffering (Maybe Text) Source #
Customer-specified identifier to track this reservation.
Example: myreservationID
purchaseReservedDBInstancesOffering_tags :: Lens' PurchaseReservedDBInstancesOffering (Maybe [Tag]) Source #
Undocumented member.
purchaseReservedDBInstancesOffering_reservedDBInstancesOfferingId :: Lens' PurchaseReservedDBInstancesOffering Text Source #
The ID of the Reserved DB instance offering to purchase.
Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
Destructuring the Response
data PurchaseReservedDBInstancesOfferingResponse Source #
See: newPurchaseReservedDBInstancesOfferingResponse
smart constructor.
PurchaseReservedDBInstancesOfferingResponse' | |
|
Instances
newPurchaseReservedDBInstancesOfferingResponse Source #
:: Int |
|
-> PurchaseReservedDBInstancesOfferingResponse |
Create a value of PurchaseReservedDBInstancesOfferingResponse
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:reservedDBInstance:PurchaseReservedDBInstancesOfferingResponse'
, purchaseReservedDBInstancesOfferingResponse_reservedDBInstance
- Undocumented member.
$sel:httpStatus:PurchaseReservedDBInstancesOfferingResponse'
, purchaseReservedDBInstancesOfferingResponse_httpStatus
- The response's http status code.
Response Lenses
purchaseReservedDBInstancesOfferingResponse_reservedDBInstance :: Lens' PurchaseReservedDBInstancesOfferingResponse (Maybe ReservedDBInstance) Source #
Undocumented member.
purchaseReservedDBInstancesOfferingResponse_httpStatus :: Lens' PurchaseReservedDBInstancesOfferingResponse Int Source #
The response's http status code.