:doc:`LicenseManager <../../license-manager>` / Client / list_usage_for_license_configuration

************************************
list_usage_for_license_configuration
************************************



.. py:method:: LicenseManager.Client.list_usage_for_license_configuration(**kwargs)

  

  Lists all license usage records for a license configuration, displaying license consumption details by resource at a selected point in time. Use this action to audit the current license consumption for any license inventory and configuration.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListUsageForLicenseConfiguration>`_  


  **Request Syntax**
  ::

    response = client.list_usage_for_license_configuration(
        LicenseConfigurationArn='string',
        MaxResults=123,
        NextToken='string',
        Filters=[
            {
                'Name': 'string',
                'Values': [
                    'string',
                ]
            },
        ]
    )
    
  :type LicenseConfigurationArn: string
  :param LicenseConfigurationArn: **[REQUIRED]** 

    Amazon Resource Name (ARN) of the license configuration.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    Maximum number of results to return in a single call.

    

  
  :type NextToken: string
  :param NextToken: 

    Token for the next set of results.

    

  
  :type Filters: list
  :param Filters: 

    Filters to scope the results. The following filters and logical operators are supported:

     

    
    * ``resourceArn`` - The ARN of the license configuration resource.
     
    * ``resourceType`` - The resource type ( ``EC2_INSTANCE`` | ``EC2_HOST`` | ``EC2_AMI`` | ``SYSTEMS_MANAGER_MANAGED_INSTANCE``).
     
    * ``resourceAccount`` - The ID of the account that owns the resource.
    

    

  
    - *(dict) --* 

      A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

      

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

        Name of the filter. Filter names are case-sensitive.

        

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

        The value of the filter, which is case-sensitive. You can only specify one value for the filter.

        

      
        - *(string) --* 

        
    
    

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

    
    ::

      {
          'LicenseConfigurationUsageList': [
              {
                  'ResourceArn': 'string',
                  'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE',
                  'ResourceStatus': 'string',
                  'ResourceOwnerId': 'string',
                  'AssociationTime': datetime(2015, 1, 1),
                  'ConsumedLicenses': 123
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **LicenseConfigurationUsageList** *(list) --* 

        Information about the license configurations.

        
        

        - *(dict) --* 

          Details about the usage of a resource associated with a license configuration.

          
          

          - **ResourceArn** *(string) --* 

            Amazon Resource Name (ARN) of the resource.

            
          

          - **ResourceType** *(string) --* 

            Type of resource.

            
          

          - **ResourceStatus** *(string) --* 

            Status of the resource.

            
          

          - **ResourceOwnerId** *(string) --* 

            ID of the account that owns the resource.

            
          

          - **AssociationTime** *(datetime) --* 

            Time when the license configuration was initially associated with the resource.

            
          

          - **ConsumedLicenses** *(integer) --* 

            Number of licenses consumed by the resource.

            
      
    
      

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

        Token for the next set of results.

        
  
  **Exceptions**
  
  *   :py:class:`LicenseManager.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`LicenseManager.Client.exceptions.FilterLimitExceededException`

  
  *   :py:class:`LicenseManager.Client.exceptions.ServerInternalException`

  
  *   :py:class:`LicenseManager.Client.exceptions.AuthorizationException`

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

  
  *   :py:class:`LicenseManager.Client.exceptions.RateLimitExceededException`

  