:doc:`BillingandCostManagementPricingCalculator <../../bcm-pricing-calculator>` / Client / list_bill_estimate_line_items

*****************************
list_bill_estimate_line_items
*****************************



.. py:method:: BillingandCostManagementPricingCalculator.Client.list_bill_estimate_line_items(**kwargs)

  

  Lists the line items associated with a bill estimate.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bcm-pricing-calculator-2024-06-19/ListBillEstimateLineItems>`_  


  **Request Syntax**
  ::

    response = client.list_bill_estimate_line_items(
        billEstimateId='string',
        filters=[
            {
                'name': 'USAGE_ACCOUNT_ID'|'SERVICE_CODE'|'USAGE_TYPE'|'OPERATION'|'LOCATION'|'LINE_ITEM_TYPE',
                'values': [
                    'string',
                ],
                'matchOption': 'EQUALS'|'STARTS_WITH'|'CONTAINS'
            },
        ],
        nextToken='string',
        maxResults=123
    )
    
  :type billEstimateId: string
  :param billEstimateId: **[REQUIRED]** 

    The unique identifier of the bill estimate to list line items for.

    

  
  :type filters: list
  :param filters: 

    Filters to apply to the list of line items.

    

  
    - *(dict) --* 

      Represents a filter for listing bill estimate line items.

      

    
      - **name** *(string) --* **[REQUIRED]** 

        The name of the filter attribute.

        

      
      - **values** *(list) --* **[REQUIRED]** 

        The values to filter by.

        

      
        - *(string) --* 

        
    
      - **matchOption** *(string) --* 

        The match option for the filter (e.g., equals, contains).

        

      
    

  :type nextToken: string
  :param nextToken: 

    A token to retrieve the next page of results.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return per page.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'items': [
              {
                  'serviceCode': 'string',
                  'usageType': 'string',
                  'operation': 'string',
                  'location': 'string',
                  'availabilityZone': 'string',
                  'id': 'string',
                  'lineItemId': 'string',
                  'lineItemType': 'string',
                  'payerAccountId': 'string',
                  'usageAccountId': 'string',
                  'estimatedUsageQuantity': {
                      'amount': 123.0,
                      'unit': 'string'
                  },
                  'estimatedCost': {
                      'amount': 123.0,
                      'currency': 'USD'
                  },
                  'historicalUsageQuantity': {
                      'amount': 123.0,
                      'unit': 'string'
                  },
                  'historicalCost': {
                      'amount': 123.0,
                      'currency': 'USD'
                  },
                  'savingsPlanArns': [
                      'string',
                  ]
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **items** *(list) --* 

        The list of line items associated with the bill estimate.

        
        

        - *(dict) --* 

          Provides a summary of a line item in a bill estimate.

          
          

          - **serviceCode** *(string) --* 

            The Amazon Web Services service code associated with this line item.

            
          

          - **usageType** *(string) --* 

            The type of usage for this line item.

            
          

          - **operation** *(string) --* 

            The specific operation associated with this line item.

            
          

          - **location** *(string) --* 

            The location associated with this line item.

            
          

          - **availabilityZone** *(string) --* 

            The availability zone associated with this line item, if applicable.

            
          

          - **id** *(string) --* 

            The unique identifier of this line item.

            
          

          - **lineItemId** *(string) --* 

            The line item identifier from the original bill.

            
          

          - **lineItemType** *(string) --* 

            The type of this line item (e.g., Usage, Tax, Credit).

            
          

          - **payerAccountId** *(string) --* 

            The Amazon Web Services account ID of the payer for this line item.

            
          

          - **usageAccountId** *(string) --* 

            The Amazon Web Services account ID associated with the usage for this line item.

            
          

          - **estimatedUsageQuantity** *(dict) --* 

            The estimated usage quantity for this line item.

            
            

            - **amount** *(float) --* 

              The numeric value of the usage quantity result.

              
            

            - **unit** *(string) --* 

              The unit of measurement for the usage quantity result.

              
        
          

          - **estimatedCost** *(dict) --* 

            The estimated cost for this line item.

            
            

            - **amount** *(float) --* 

              The numeric value of the cost.

              
            

            - **currency** *(string) --* 

              The currency code for the cost amount.

              
        
          

          - **historicalUsageQuantity** *(dict) --* 

            The historical usage quantity for this line item.

            
            

            - **amount** *(float) --* 

              The numeric value of the usage quantity result.

              
            

            - **unit** *(string) --* 

              The unit of measurement for the usage quantity result.

              
        
          

          - **historicalCost** *(dict) --* 

            The historical cost for this line item.

            
            

            - **amount** *(float) --* 

              The numeric value of the cost.

              
            

            - **currency** *(string) --* 

              The currency code for the cost amount.

              
        
          

          - **savingsPlanArns** *(list) --* 

            The Amazon Resource Names (ARNs) of any Savings Plans applied to this line item.

            
            

            - *(string) --* 
        
      
    
      

      - **nextToken** *(string) --* 

        A token to retrieve the next page of results, if any.

        
  
  **Exceptions**
  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.ValidationException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.DataUnavailableException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.InternalServerException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.ThrottlingException`

  