Skip to main content

offerings

Creates, updates, deletes, gets or lists an offerings resource.

Overview

Nameofferings
TypeResource
Idaws.devicefarm.offerings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID that corresponds to a device offering.
descriptionstringA string that describes the offering.
platformstringThe platform of the device (for example, ANDROID or IOS). (ANDROID, IOS)
recurring_chargesarraySpecifies whether there are recurring charges for the offering.
type_stringThe type of offering (for example, RECURRING) for a device. (RECURRING)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_offeringsselectregionReturns a list of products or offerings that the user can manage through the API. Each offering record indicates the recurring price per unit and the frequency for that offering. 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.
purchase_offeringexecregion, offeringId, quantityImmediately 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.
renew_offeringexecregion, offeringId, quantityExplicitly sets the quantity of devices to renew for an offering, starting from the effectiveDate of the next period. 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a list of products or offerings that the user can manage through the API. Each offering record indicates the recurring price per unit and the frequency for that offering. 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.

SELECT
id,
description,
platform,
recurring_charges,
type_
FROM aws.devicefarm.offerings
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

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.

EXEC aws.devicefarm.offerings.purchase_offering
@region='{{ region }}' --required
@@json=
'{
"offeringId": "{{ offeringId }}",
"quantity": {{ quantity }},
"offeringPromotionId": "{{ offeringPromotionId }}"
}'
;