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

*******************************************
list_associations_for_license_configuration
*******************************************



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

  

  Lists the resource associations for the specified license configuration.

   

  Resource associations need not consume licenses from a license configuration. For example, an AMI or a stopped instance might not consume a license (depending on the license rules).

  

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


  **Request Syntax**
  ::

    response = client.list_associations_for_license_configuration(
        LicenseConfigurationArn='string',
        MaxResults=123,
        NextToken='string'
    )
    
  :type LicenseConfigurationArn: string
  :param LicenseConfigurationArn: **[REQUIRED]** 

    Amazon Resource Name (ARN) of a 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.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **LicenseConfigurationAssociations** *(list) --* 

        Information about the associations for the license configuration.

        
        

        - *(dict) --* 

          Describes an association with a license configuration.

          
          

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

            Amazon Resource Name (ARN) of the resource.

            
          

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

            Type of server resource.

            
          

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

            ID of the Amazon Web Services account that owns the resource consuming licenses.

            
          

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

            Time when the license configuration was associated with the resource.

            
          

          - **AmiAssociationScope** *(string) --* 

            Scope of AMI associations. The possible value is ``cross-account``.

            
      
    
      

      - **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`

  