:doc:`BillingConductor <../../billingconductor>` / Client / list_custom_line_item_versions

******************************
list_custom_line_item_versions
******************************



.. py:method:: BillingConductor.Client.list_custom_line_item_versions(**kwargs)

  

  A paginated call to get a list of all custom line item versions.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItemVersions>`_  


  **Request Syntax**
  ::

    response = client.list_custom_line_item_versions(
        Arn='string',
        MaxResults=123,
        NextToken='string',
        Filters={
            'BillingPeriodRange': {
                'StartBillingPeriod': 'string',
                'EndBillingPeriod': 'string'
            }
        }
    )
    
  :type Arn: string
  :param Arn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) for the custom line item.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of custom line item versions to retrieve.

    

  
  :type NextToken: string
  :param NextToken: 

    The pagination token that's used on subsequent calls to retrieve custom line item versions.

    

  
  :type Filters: dict
  :param Filters: 

    A ``ListCustomLineItemVersionsFilter`` that specifies the billing period range in which the custom line item versions are applied.

    

  
    - **BillingPeriodRange** *(dict) --* 

      The billing period range in which the custom line item version is applied.

      

    
      - **StartBillingPeriod** *(string) --* 

        The inclusive start billing period that defines a billing period range where a custom line item version is applied.

        

      
      - **EndBillingPeriod** *(string) --* 

        The exclusive end billing period that defines a billing period range where a custom line item version is applied.

        

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

    
    ::

      {
          'CustomLineItemVersions': [
              {
                  'Name': 'string',
                  'ChargeDetails': {
                      'Flat': {
                          'ChargeValue': 123.0
                      },
                      'Percentage': {
                          'PercentageValue': 123.0
                      },
                      'Type': 'CREDIT'|'FEE',
                      'LineItemFilters': [
                          {
                              'Attribute': 'LINE_ITEM_TYPE'|'SERVICE',
                              'MatchOption': 'NOT_EQUAL'|'EQUAL',
                              'Values': [
                                  'SAVINGS_PLAN_NEGATION',
                              ],
                              'AttributeValues': [
                                  'string',
                              ]
                          },
                      ]
                  },
                  'CurrencyCode': 'USD'|'CNY',
                  'Description': 'string',
                  'ProductCode': 'string',
                  'BillingGroupArn': 'string',
                  'CreationTime': 123,
                  'LastModifiedTime': 123,
                  'AssociationSize': 123,
                  'StartBillingPeriod': 'string',
                  'EndBillingPeriod': 'string',
                  'Arn': 'string',
                  'StartTime': 123,
                  'AccountId': 'string',
                  'ComputationRule': 'ITEMIZED'|'CONSOLIDATED',
                  'PresentationDetails': {
                      'Service': 'string'
                  }
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **CustomLineItemVersions** *(list) --* 

        A list of ``CustomLineItemVersionListElements`` that are received.

        
        

        - *(dict) --* 

          A representation of a custom line item version.

          
          

          - **Name** *(string) --* 

            The name of the custom line item.

            
          

          - **ChargeDetails** *(dict) --* 

            A representation of the charge details of a custom line item.

            
            

            - **Flat** *(dict) --* 

              A ``ListCustomLineItemFlatChargeDetails`` that describes the charge details of a flat custom line item.

              
              

              - **ChargeValue** *(float) --* 

                The custom line item's fixed charge value in USD.

                
          
            

            - **Percentage** *(dict) --* 

              A ``ListCustomLineItemPercentageChargeDetails`` that describes the charge details of a percentage custom line item.

              
              

              - **PercentageValue** *(float) --* 

                The custom line item's percentage value. This will be multiplied against the combined value of its associated resources to determine its charge value.

                
          
            

            - **Type** *(string) --* 

              The type of the custom line item that indicates whether the charge is a ``fee`` or ``credit``.

              
            

            - **LineItemFilters** *(list) --* 

              A representation of the line item filter.

              
              

              - *(dict) --* 

                A representation of the line item filter for your custom line item. You can use line item filters to include or exclude specific resource values from the billing group's total cost. For example, if you create a custom line item and you want to filter out a value, such as Savings Plans discounts, you can update ``LineItemFilter`` to exclude it.

                
                

                - **Attribute** *(string) --* 

                  The attribute of the line item filter. This specifies what attribute that you can filter on.

                  
                

                - **MatchOption** *(string) --* 

                  The match criteria of the line item filter. This parameter specifies whether not to include the resource value from the billing group total cost.

                  
                

                - **Values** *(list) --* 

                  The values of the line item filter. This specifies the values to filter on. Currently, you can only exclude Savings Plans discounts.

                  
                  

                  - *(string) --* 
              
                

                - **AttributeValues** *(list) --* 

                  The values of the line item filter. This specifies the values to filter on.

                  
                  

                  - *(string) --* 
              
            
          
        
          

          - **CurrencyCode** *(string) --* 

            The charge value currency of the custom line item.

            
          

          - **Description** *(string) --* 

            The description of the custom line item.

            
          

          - **ProductCode** *(string) --* 

            The product code that’s associated with the custom line item.

            
          

          - **BillingGroupArn** *(string) --* 

            The Amazon Resource Name (ARN) of the billing group that the custom line item applies to.

            
          

          - **CreationTime** *(integer) --* 

            The time when the custom line item version was created.

            
          

          - **LastModifiedTime** *(integer) --* 

            The most recent time that the custom line item version was modified.

            
          

          - **AssociationSize** *(integer) --* 

            The number of resources that are associated with the custom line item.

            
          

          - **StartBillingPeriod** *(string) --* 

            The start billing period of the custom line item version.

            
          

          - **EndBillingPeriod** *(string) --* 

            The end billing period of the custom line item version.

            
          

          - **Arn** *(string) --* 

            A list of custom line item Amazon Resource Names (ARNs) to retrieve information.

            
          

          - **StartTime** *(integer) --* 

            The inclusive start time.

            
          

          - **AccountId** *(string) --* 

            The Amazon Web Services account in which this custom line item will be applied to.

            
          

          - **ComputationRule** *(string) --* 

            The computation rule for a specific version of a custom line item, determining how charges are computed and reflected in the bill.

            
          

          - **PresentationDetails** *(dict) --* 

            Presentation configuration for a specific version of a custom line item, specifying how charges are displayed in the bill.

            
            

            - **Service** *(string) --* 

              The service under which the custom line item charges will be presented. Must be a string between 1 and 128 characters matching the pattern " ``^[a-zA-Z0-9]+$``".

              
        
      
    
      

      - **NextToken** *(string) --* 

        The pagination token that's used on subsequent calls to retrieve custom line item versions.

        
  
  **Exceptions**
  
  *   :py:class:`BillingConductor.Client.exceptions.ThrottlingException`

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

  
  *   :py:class:`BillingConductor.Client.exceptions.ValidationException`

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

  