purchase_offering
async
¶
purchase_offering(
offering_id: OfferingIdentifier,
quantity: Integer,
*,
config_overrides: Optional[AsyncDeviceFarmClientConfig] = None,
offering_promotion_id: Optional[OfferingPromotionIdentifier] = None,
) -> PurchaseOfferingResult
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 [email protected].
Parameters:
-
offering_id(OfferingIdentifier) –The ID of the offering.
-
quantity(Integer) –The number of device slots to purchase in an offering request.
-
offering_promotion_id(Optional[OfferingPromotionIdentifier], default:None) –The ID of the offering promotion to be applied to the purchase.
Raises:
-
ArgumentException–An invalid argument was specified.
-
LimitExceededException–A limit was exceeded.
-
NotEligibleException–Exception gets thrown when a user is not eligible to perform the specified transaction.
-
NotFoundException–The specified entity was not found.
-
ServiceAccountException–There was a problem with the service account.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_device_farm/_services/async_device_farm.py
|