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 |
Immediately purchases offerings for an AWS account. Offerings renew with the latest total purchased quantity for an offering, unless the renewal was overridden. The API returns a NotEligible
error if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com if you believe that you should be able to invoke this operation.
- purchaseOffering :: PurchaseOffering
- data PurchaseOffering
- poQuantity :: Lens' PurchaseOffering (Maybe Int)
- poOfferingId :: Lens' PurchaseOffering (Maybe Text)
- poOfferingPromotionId :: Lens' PurchaseOffering (Maybe Text)
- purchaseOfferingResponse :: Int -> PurchaseOfferingResponse
- data PurchaseOfferingResponse
- porsOfferingTransaction :: Lens' PurchaseOfferingResponse (Maybe OfferingTransaction)
- porsResponseStatus :: Lens' PurchaseOfferingResponse Int
Creating a Request
purchaseOffering :: PurchaseOffering Source #
Creates a value of PurchaseOffering
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
poQuantity
- The number of device slots you wish to purchase in an offering request.poOfferingId
- The ID of the offering.poOfferingPromotionId
- The ID of the offering promotion to be applied to the purchase.
data PurchaseOffering Source #
Represents a request for a purchase offering.
See: purchaseOffering
smart constructor.
Request Lenses
poQuantity :: Lens' PurchaseOffering (Maybe Int) Source #
The number of device slots you wish to purchase in an offering request.
poOfferingId :: Lens' PurchaseOffering (Maybe Text) Source #
The ID of the offering.
poOfferingPromotionId :: Lens' PurchaseOffering (Maybe Text) Source #
The ID of the offering promotion to be applied to the purchase.
Destructuring the Response
purchaseOfferingResponse Source #
Creates a value of PurchaseOfferingResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
porsOfferingTransaction
- Represents the offering transaction for the purchase result.porsResponseStatus
- -- | The response status code.
data PurchaseOfferingResponse Source #
The result of the purchase offering (e.g., success or failure).
See: purchaseOfferingResponse
smart constructor.
Response Lenses
porsOfferingTransaction :: Lens' PurchaseOfferingResponse (Maybe OfferingTransaction) Source #
Represents the offering transaction for the purchase result.
porsResponseStatus :: Lens' PurchaseOfferingResponse Int Source #
- - | The response status code.