LicenseManager / Client / create_license_conversion_task_for_resource

create_license_conversion_task_for_resource#

LicenseManager.Client.create_license_conversion_task_for_resource(**kwargs)#

Creates a new license conversion task.

See also: AWS API Documentation

Request Syntax

response = client.create_license_conversion_task_for_resource(
    ResourceArn='string',
    SourceLicenseContext={
        'UsageOperation': 'string'
    },
    DestinationLicenseContext={
        'UsageOperation': 'string'
    }
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

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

  • SourceLicenseContext (dict) –

    [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 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

  • DestinationLicenseContext (dict) –

    [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 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

Return type:

dict

Returns:

Response Syntax

{
    'LicenseConversionTaskId': 'string'
}

Response Structure

  • (dict) –

    • LicenseConversionTaskId (string) –

      The ID of the created license type conversion task.

Exceptions