| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.DeviceFarm.PurchaseOffering
Description
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. If you must be able to invoke this
operation, contact
aws-devicefarm-support@amazon.com.
Synopsis
- data PurchaseOffering = PurchaseOffering' {}
- newPurchaseOffering :: Text -> Int -> PurchaseOffering
- purchaseOffering_offeringPromotionId :: Lens' PurchaseOffering (Maybe Text)
- purchaseOffering_offeringId :: Lens' PurchaseOffering Text
- purchaseOffering_quantity :: Lens' PurchaseOffering Int
- data PurchaseOfferingResponse = PurchaseOfferingResponse' {}
- newPurchaseOfferingResponse :: Int -> PurchaseOfferingResponse
- purchaseOfferingResponse_offeringTransaction :: Lens' PurchaseOfferingResponse (Maybe OfferingTransaction)
- purchaseOfferingResponse_httpStatus :: Lens' PurchaseOfferingResponse Int
Creating a Request
data PurchaseOffering Source #
Represents a request for a purchase offering.
See: newPurchaseOffering smart constructor.
Constructors
| PurchaseOffering' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Int | |
| -> PurchaseOffering |
Create a value of PurchaseOffering 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:
PurchaseOffering, purchaseOffering_offeringPromotionId - The ID of the offering promotion to be applied to the purchase.
$sel:offeringId:PurchaseOffering', purchaseOffering_offeringId - The ID of the offering.
PurchaseOffering, purchaseOffering_quantity - The number of device slots to purchase in an offering request.
Request Lenses
purchaseOffering_offeringPromotionId :: Lens' PurchaseOffering (Maybe Text) Source #
The ID of the offering promotion to be applied to the purchase.
purchaseOffering_offeringId :: Lens' PurchaseOffering Text Source #
The ID of the offering.
purchaseOffering_quantity :: Lens' PurchaseOffering Int Source #
The number of device slots to purchase in an offering request.
Destructuring the Response
data PurchaseOfferingResponse Source #
The result of the purchase offering (for example, success or failure).
See: newPurchaseOfferingResponse smart constructor.
Constructors
| PurchaseOfferingResponse' | |
Fields
| |
Instances
newPurchaseOfferingResponse Source #
Create a value of PurchaseOfferingResponse 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:offeringTransaction:PurchaseOfferingResponse', purchaseOfferingResponse_offeringTransaction - Represents the offering transaction for the purchase result.
$sel:httpStatus:PurchaseOfferingResponse', purchaseOfferingResponse_httpStatus - The response's http status code.
Response Lenses
purchaseOfferingResponse_offeringTransaction :: Lens' PurchaseOfferingResponse (Maybe OfferingTransaction) Source #
Represents the offering transaction for the purchase result.
purchaseOfferingResponse_httpStatus :: Lens' PurchaseOfferingResponse Int Source #
The response's http status code.