{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-license-manager/json-schema/amazon-license-manager-get-license-conversion-task-response-schema.json",
  "title": "GetLicenseConversionTaskResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-license-manager-license-conversion-task-api-openapi.yml#/components/schemas/GetLicenseConversionTaskResponse",
  "type": "object",
  "properties": {
    "LicenseConversionTaskId": {
      "type": "string",
      "description": "ID of the license type conversion task."
    },
    "ResourceArn": {
      "type": "string",
      "description": "Amazon Resource Names (ARN) of the resources the license conversion task is associated with."
    },
    "SourceLicenseContext": {
      "$ref": "#/$defs/LicenseConversionContext"
    },
    "DestinationLicenseContext": {
      "$ref": "#/$defs/LicenseConversionContext"
    },
    "StatusMessage": {
      "type": "string",
      "description": "The status message for the conversion task."
    },
    "Status": {
      "type": "string",
      "enum": [
        "IN_PROGRESS",
        "SUCCEEDED",
        "FAILED"
      ],
      "description": "Status of the license type conversion task."
    },
    "StartTime": {
      "type": "string",
      "format": "date-time",
      "description": "Time at which the license type conversion task was started ."
    },
    "LicenseConversionTime": {
      "type": "string",
      "format": "date-time",
      "description": "Amount of time to complete the license type conversion."
    },
    "EndTime": {
      "type": "string",
      "format": "date-time",
      "description": "Time at which the license type conversion task was completed."
    }
  },
  "$defs": {
    "LicenseConversionContext": {
      "type": "object",
      "properties": {
        "UsageOperation": {
          "type": "string",
          "description": "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"
        },
        "ProductCodes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProductCodeListItem"
          },
          "description": "Product codes referred to in the license conversion process."
        }
      }
    },
    "ProductCodeListItem": {
      "type": "object",
      "properties": {
        "ProductCodeId": {
          "type": "string",
          "description": "The product code ID"
        },
        "ProductCodeType": {
          "type": "string",
          "enum": [
            "marketplace"
          ],
          "description": "The product code type"
        }
      },
      "required": [
        "ProductCodeId",
        "ProductCodeType"
      ]
    }
  }
}