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

*******************************************
create_license_conversion_task_for_resource
*******************************************



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

  

  Creates a new license conversion task.

  

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


  **Request Syntax**
  ::

    response = client.create_license_conversion_task_for_resource(
        ResourceArn='string',
        SourceLicenseContext={
            'UsageOperation': 'string',
            'ProductCodes': [
                {
                    'ProductCodeId': 'string',
                    'ProductCodeType': 'marketplace'
                },
            ]
        },
        DestinationLicenseContext={
            'UsageOperation': 'string',
            'ProductCodes': [
                {
                    'ProductCodeId': 'string',
                    'ProductCodeType': 'marketplace'
                },
            ]
        }
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    Amazon Resource Name (ARN) of the resource you are converting the license type for.

    

  
  :type SourceLicenseContext: dict
  :param SourceLicenseContext: **[REQUIRED]** 

    Information that identifies the license type you are converting from. For the structure of the source license, see `Convert a license type using the CLI <https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli>`__ in the *License Manager User Guide*.

    

  
    - **UsageOperation** *(string) --* 

      The Usage operation value that corresponds to the license type you are converting your resource from. For more information about which platforms correspond to which usage operation values see `Sample data\: usage operation by platform <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/billing-info-fields.html#billing-info>`__

      

    
    - **ProductCodes** *(list) --* 

      Product codes referred to in the license conversion process.

      

    
      - *(dict) --* 

        A list item that contains a product code.

        

      
        - **ProductCodeId** *(string) --* **[REQUIRED]** 

          The product code ID

          

        
        - **ProductCodeType** *(string) --* **[REQUIRED]** 

          The product code type

          

        
      
  
  
  :type DestinationLicenseContext: dict
  :param DestinationLicenseContext: **[REQUIRED]** 

    Information that identifies the license type you are converting to. For the structure of the destination license, see `Convert a license type using the CLI <https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli>`__ in the *License Manager User Guide*.

    

  
    - **UsageOperation** *(string) --* 

      The Usage operation value that corresponds to the license type you are converting your resource from. For more information about which platforms correspond to which usage operation values see `Sample data\: usage operation by platform <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/billing-info-fields.html#billing-info>`__

      

    
    - **ProductCodes** *(list) --* 

      Product codes referred to in the license conversion process.

      

    
      - *(dict) --* 

        A list item that contains a product code.

        

      
        - **ProductCodeId** *(string) --* **[REQUIRED]** 

          The product code ID

          

        
        - **ProductCodeType** *(string) --* **[REQUIRED]** 

          The product code type

          

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

    
    ::

      {
          'LicenseConversionTaskId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **LicenseConversionTaskId** *(string) --* 

        The ID of the created license type conversion task.

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

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

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

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

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

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

  