CostExplorer / Paginator / ListCostCategoryResourceAssociations

ListCostCategoryResourceAssociations

class CostExplorer.Paginator.ListCostCategoryResourceAssociations
paginator = client.get_paginator('list_cost_category_resource_associations')
paginate(**kwargs)

Creates an iterator that will paginate through responses from CostExplorer.Client.list_cost_category_resource_associations().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    CostCategoryArn='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • CostCategoryArn (string) – The unique identifier for your cost category.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'CostCategoryResourceAssociations': [
        {
            'ResourceArn': 'string',
            'CostCategoryName': 'string',
            'CostCategoryArn': 'string'
        },
    ],

}

Response Structure

  • (dict) –

    • CostCategoryResourceAssociations (list) –

      A reference to a cost category association that contains information on an associated resource.

      • (dict) –

        A reference to a cost category association that contains information on an associated resource.

        • ResourceArn (string) –

          The unique identifier for an associated resource.

        • CostCategoryName (string) –

          The unique name of the cost category.

        • CostCategoryArn (string) –

          The unique identifier for your cost category.