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

****************************************
list_license_specifications_for_resource
****************************************



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

  

  Describes the license configurations for the specified resource.

  

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


  **Request Syntax**
  ::

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

    Amazon Resource Name (ARN) of a resource that has an associated 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**

    
    ::

      {
          'LicenseSpecifications': [
              {
                  'LicenseConfigurationArn': 'string',
                  'AmiAssociationScope': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **LicenseSpecifications** *(list) --* 

        License configurations associated with a resource.

        
        

        - *(dict) --* 

          Details for associating a license configuration with a resource.

          
          

          - **LicenseConfigurationArn** *(string) --* 

            Amazon Resource Name (ARN) of the license configuration.

            
          

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

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

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

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

  