DeviceFarm / Client / list_offering_promotions

list_offering_promotions#

DeviceFarm.Client.list_offering_promotions(**kwargs)#

Returns a list of offering promotions. Each offering promotion record contains the ID and description of the promotion. The API returns a NotEligible error if the caller is not permitted to invoke the operation. Contact aws-devicefarm-support@amazon.com if you must be able to invoke this operation.

See also: AWS API Documentation

Request Syntax

response = client.list_offering_promotions(
    nextToken='string'
)
Parameters:

nextToken (string) – An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

Return type:

dict

Returns:

Response Syntax

{
    'offeringPromotions': [
        {
            'id': 'string',
            'description': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • offeringPromotions (list) –

      Information about the offering promotions.

      • (dict) –

        Represents information about an offering promotion.

        • id (string) –

          The ID of the offering promotion.

        • description (string) –

          A string that describes the offering promotion.

    • nextToken (string) –

      An identifier to be used in the next call to this operation, to return the next set of items in the list.

Exceptions