{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2-image-builder/json-schema/amazon-ec2-image-builder-import-vm-image-request-schema.json",
  "title": "ImportVmImageRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-image-builder-importvmimage-api-openapi.yml#/components/schemas/ImportVmImageRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the base image that is created by the import process. Image Builder generates the image ARN from a normalized form of the name, so names that differ only in case, spaces, or underscores count as the same name. If an image with the same name and semantic version already exists in your account in the same Amazon Web Services Region, the import creates a new build version for it."
    },
    "semanticVersion": {
      "type": "string",
      "description": "The semantic version to attach to the base image that was created during the import process. This version follows the semantic version syntax. The semantic version has four nodes: ../. You can assign values for the first three, and can filter on all of them. Assignment: For the first three nodes, you can assign any positive integer value, including zero. The upper limit is 2^30-1, or 1073741823, for each node. Image Builder automatically assigns the build number to the fourth node. Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can "
    },
    "description": {
      "type": "string",
      "description": "The description for the base image that is created by the import process."
    },
    "platform": {
      "type": "string",
      "enum": [
        "Windows",
        "Linux",
        "macOS"
      ],
      "description": "The operating system platform for the imported VM."
    },
    "osVersion": {
      "type": "string",
      "description": "The operating system version for the imported VM."
    },
    "vmImportTaskId": {
      "type": "string",
      "description": "The importTaskId (API) or ImportTaskId (CLI) from the Amazon EC2 VM import process. The import task doesn't need to be complete when you call ImportVmImage - Image Builder monitors the task and finishes creating the image when the task completes."
    },
    "loggingConfiguration": {
      "$ref": "#/$defs/ImageLoggingConfiguration"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Tags that are attached to the import resources."
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time. If you retry a request with the same client token, Image Builder returns the original response without running the operation again. For more information, see Ensuring idempotency in the Amazon EC2 API Reference."
    }
  },
  "required": [
    "name",
    "semanticVersion",
    "platform",
    "vmImportTaskId",
    "clientToken"
  ],
  "$defs": {
    "ImageLoggingConfiguration": {
      "type": "object",
      "properties": {
        "logGroupName": {
          "type": "string",
          "description": "The log group name that Image Builder uses for image creation. If not specified, the log group name defaults to /aws/imagebuilder/image-name."
        }
      }
    }
  }
}