BillingConductor / Client / list_resources_associated_to_custom_line_item

list_resources_associated_to_custom_line_item#

BillingConductor.Client.list_resources_associated_to_custom_line_item(**kwargs)#

List the resources that are associated to a custom line item.

See also: AWS API Documentation

Request Syntax

response = client.list_resources_associated_to_custom_line_item(
    BillingPeriod='string',
    Arn='string',
    MaxResults=123,
    NextToken='string',
    Filters={
        'Relationship': 'PARENT'|'CHILD'
    }
)
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.

  • MaxResults (integer) – (Optional) The maximum number of resource associations to be retrieved.

  • NextToken (string) – (Optional) The pagination token that’s returned by a previous request.

  • 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.

Return type:

dict

Returns:

Response Syntax

{
    'Arn': 'string',
    'AssociatedResources': [
        {
            'Arn': 'string',
            'Relationship': 'PARENT'|'CHILD',
            'EndBillingPeriod': 'string'
        },
    ],
    'NextToken': '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.

    • NextToken (string) –

      The pagination token to be used in subsequent requests to retrieve additional results.

Exceptions

  • BillingConductor.Client.exceptions.ThrottlingException

  • BillingConductor.Client.exceptions.AccessDeniedException

  • BillingConductor.Client.exceptions.ValidationException

  • BillingConductor.Client.exceptions.InternalServerException

  • BillingConductor.Client.exceptions.ResourceNotFoundException