:doc:`CostExplorer <../../ce>` / Client / list_cost_category_definitions

******************************
list_cost_category_definitions
******************************



.. py:method:: CostExplorer.Client.list_cost_category_definitions(**kwargs)

  

  Returns the name, Amazon Resource Name (ARN), ``NumberOfRules`` and effective dates of all cost categories defined in the account. You have the option to use ``EffectiveOn`` and ``SupportedResourceTypes`` to return a list of cost categories that were active on a specific date. If there is no ``EffectiveOn`` specified, you’ll see cost categories that are effective on the current date. If cost category is still effective, ``EffectiveEnd`` is omitted in the response. ``ListCostCategoryDefinitions`` supports pagination. The request can have a ``MaxResults`` range up to 100.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ListCostCategoryDefinitions>`_  


  **Request Syntax**
  ::

    response = client.list_cost_category_definitions(
        EffectiveOn='string',
        NextToken='string',
        MaxResults=123,
        SupportedResourceTypes=[
            'string',
        ]
    )
    
  :type EffectiveOn: string
  :param EffectiveOn: 

    The date when the cost category was effective.

    

  
  :type NextToken: string
  :param NextToken: 

    The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The number of entries a paginated response contains.

    

  
  :type SupportedResourceTypes: list
  :param SupportedResourceTypes: 

    Filter cost category definitions that are supported by given resource types based on the latest version. If the filter is present, the result only includes Cost Categories that supports input resource type. If the filter isn't provided, no filtering is applied. The valid values are ``billing:rispgroupsharing`` and ``billing:billingview``.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'CostCategoryReferences': [
              {
                  'CostCategoryArn': 'string',
                  'Name': 'string',
                  'EffectiveStart': 'string',
                  'EffectiveEnd': 'string',
                  'NumberOfRules': 123,
                  'ProcessingStatus': [
                      {
                          'Component': 'COST_EXPLORER',
                          'Status': 'PROCESSING'|'APPLIED'
                      },
                  ],
                  'Values': [
                      'string',
                  ],
                  'DefaultValue': 'string',
                  'SupportedResourceTypes': [
                      'string',
                  ]
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **CostCategoryReferences** *(list) --* 

        A reference to a cost category that contains enough information to identify the Cost Category.

        
        

        - *(dict) --* 

          A reference to a cost category containing only enough information to identify the Cost Category.

           

          You can use this information to retrieve the full cost category information using ``DescribeCostCategory``.

          
          

          - **CostCategoryArn** *(string) --* 

            The unique identifier for your cost category.

            
          

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

            The unique name of the cost category.

            
          

          - **EffectiveStart** *(string) --* 

            The cost category's effective start date.

            
          

          - **EffectiveEnd** *(string) --* 

            The cost category's effective end date.

            
          

          - **NumberOfRules** *(integer) --* 

            The number of rules that are associated with a specific cost category.

            
          

          - **ProcessingStatus** *(list) --* 

            The list of processing statuses for Cost Management products for a specific cost category.

            
            

            - *(dict) --* 

              The list of processing statuses for Cost Management products for a specific cost category.

              
              

              - **Component** *(string) --* 

                The Cost Management product name of the applied status.

                
              

              - **Status** *(string) --* 

                The process status for a specific cost category.

                
          
        
          

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

            A list of unique cost category values in a specific cost category.

            
            

            - *(string) --* 

              The default value for the cost category.

              
        
          

          - **DefaultValue** *(string) --* 

            The default value for the cost category.

            
          

          - **SupportedResourceTypes** *(list) --* 

            The resource types supported by a specific cost category.

            
            

            - *(string) --* 
        
      
    
      

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

        The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

        
  
  **Exceptions**
  
  *   :py:class:`CostExplorer.Client.exceptions.LimitExceededException`

  