ListResourcesAssociatedToCustomLineItem

class BillingConductor.Paginator.ListResourcesAssociatedToCustomLineItem
paginator = client.get_paginator('list_resources_associated_to_custom_line_item')
paginate(**kwargs)

Creates an iterator that will paginate through responses from BillingConductor.Client.list_resources_associated_to_custom_line_item().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    BillingPeriod='string',
    Arn='string',
    Filters={
        'Relationship': 'PARENT'|'CHILD'
    },
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • BillingPeriod (string) -- The billing period for which the resource associations will be listed.
  • Arn (string) --

    [REQUIRED]

    The ARN of the custom line item for which the resource associations will be listed.

  • Filters (dict) --

    (Optional) A ListResourcesAssociatedToCustomLineItemFilter that can specify the types of resources that should be retrieved.

    • Relationship (string) --

      The type of relationship between the custom line item and the associated resource.

  • 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

{
    'Arn': 'string',
    'AssociatedResources': [
        {
            'Arn': 'string',
            'Relationship': 'PARENT'|'CHILD',
            'EndBillingPeriod': 'string'
        },
    ],

}

Response Structure

  • (dict) --

    • Arn (string) --

      The custom line item ARN for which the resource associations are listed.

    • AssociatedResources (list) --

      A list of ListResourcesAssociatedToCustomLineItemResponseElement for each resource association retrieved.

      • (dict) --

        A representation of a resource association for a custom line item.

        • Arn (string) --

          The ARN of the associated resource.

        • Relationship (string) --

          The type of relationship between the custom line item and the associated resource.

        • EndBillingPeriod (string) --

          The end billing period of the associated resource.