PartnerCentralBenefits / Client / list_benefits

list_benefits

PartnerCentralBenefits.Client.list_benefits(**kwargs)

Retrieves a paginated list of available benefits based on specified filter criteria.

See also: AWS API Documentation

Request Syntax

response = client.list_benefits(
    Catalog='string',
    Programs=[
        'string',
    ],
    FulfillmentTypes=[
        'CREDITS'|'CASH'|'ACCESS',
    ],
    Status=[
        'ACTIVE'|'INACTIVE',
    ],
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • Catalog (string) –

    [REQUIRED]

    The catalog identifier to filter benefits by catalog.

  • Programs (list) –

    Filter benefits by specific AWS partner programs.

    • (string) –

  • FulfillmentTypes (list) –

    Filter benefits by specific fulfillment types.

    • (string) –

  • Status (list) –

    Filter benefits by their current status.

    • (string) –

  • MaxResults (integer) – The maximum number of benefits to return in a single response.

  • NextToken (string) – A pagination token to retrieve the next set of results from a previous request.

Return type:

dict

Returns:

Response Syntax

{
    'BenefitSummaries': [
        {
            'Id': 'string',
            'Catalog': 'string',
            'Arn': 'string',
            'Name': 'string',
            'Description': 'string',
            'Programs': [
                'string',
            ],
            'FulfillmentTypes': [
                'CREDITS'|'CASH'|'ACCESS',
            ],
            'Status': 'ACTIVE'|'INACTIVE'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • BenefitSummaries (list) –

      A list of benefit summaries matching the specified criteria.

      • (dict) –

        A summary view of a benefit containing key information for list operations.

        • Id (string) –

          The unique identifier of the benefit.

        • Catalog (string) –

          The catalog identifier that the benefit belongs to.

        • Arn (string) –

          The Amazon Resource Name (ARN) of the benefit.

        • Name (string) –

          The human-readable name of the benefit.

        • Description (string) –

          A brief description of the benefit and its purpose.

        • Programs (list) –

          The AWS partner programs that this benefit is associated with.

          • (string) –

        • FulfillmentTypes (list) –

          The available fulfillment types for this benefit.

          • (string) –

        • Status (string) –

          The current status of the benefit.

    • NextToken (string) –

      A pagination token to retrieve the next set of results, if more results are available.

Exceptions

  • PartnerCentralBenefits.Client.exceptions.ValidationException

  • PartnerCentralBenefits.Client.exceptions.AccessDeniedException

  • PartnerCentralBenefits.Client.exceptions.InternalServerException

  • PartnerCentralBenefits.Client.exceptions.ThrottlingException

  • PartnerCentralBenefits.Client.exceptions.ResourceNotFoundException