{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-license-manager/json-schema/amazon-license-manager-create-license-conversion-task-for-resource-request-schema.json",
  "title": "CreateLicenseConversionTaskForResourceRequest",
  "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/CreateLicenseConversionTaskForResourceRequest",
  "type": "object",
  "properties": {
    "ResourceArn": {
      "type": "string",
      "description": "Amazon Resource Name (ARN) of the resource you are converting the license type for."
    },
    "SourceLicenseContext": {
      "$ref": "#/$defs/LicenseConversionContext"
    },
    "DestinationLicenseContext": {
      "$ref": "#/$defs/LicenseConversionContext"
    }
  },
  "required": [
    "ResourceArn",
    "SourceLicenseContext",
    "DestinationLicenseContext"
  ],
  "$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"
      ]
    }
  }
}