{
  "$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-disk-image-request-schema.json",
  "title": "ImportDiskImageRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-image-builder-operations-api-openapi.yml#/components/schemas/ImportDiskImageRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the image resource that's created from the import. 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 image that's created during the import process. This version follows the semantic version syntax."
    },
    "description": {
      "type": "string",
      "description": "The description for your disk image import."
    },
    "platform": {
      "type": "string",
      "description": "The operating system platform for the imported image. Allowed values include the following: Windows."
    },
    "osVersion": {
      "type": "string",
      "description": "The operating system version for the imported image. The only supported value is Microsoft Windows 11."
    },
    "executionRole": {
      "type": "string",
      "description": "The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions to import an image from a Microsoft ISO file. If you don't provide a role, Image Builder uses the Image Builder service-linked role in your account, and creates it if it doesn't exist."
    },
    "infrastructureConfigurationArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the infrastructure configuration resource that's used for launching the EC2 instance on which the ISO image is built."
    },
    "uri": {
      "type": "string",
      "description": "The uri of the ISO disk file that's stored in Amazon S3, in s3://bucket/key format. The key must end with the .iso, .ISO, or .Iso extension, and the bucket must be owned by the account that makes the request."
    },
    "loggingConfiguration": {
      "$ref": "#/$defs/ImageLoggingConfiguration"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Tags that are attached to image resources created from the import."
    },
    "registerImageOptions": {
      "$ref": "#/$defs/RegisterImageOptions"
    },
    "windowsConfiguration": {
      "$ref": "#/$defs/WindowsConfiguration"
    },
    "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",
    "osVersion",
    "infrastructureConfigurationArn",
    "uri",
    "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."
        }
      }
    },
    "RegisterImageOptions": {
      "type": "object",
      "properties": {
        "secureBootEnabled": {
          "type": "boolean",
          "description": "Specifies whether Secure Boot is enabled for the output AMI. The default value is true. To disable Secure Boot for custom unsigned drivers, set this value to false."
        },
        "uefiData": {
          "type": "string",
          "description": "A Base64-encoded representation of the non-volatile UEFI variable store. You can specify this parameter only when secureBootEnabled is true or unspecified. You can inspect and modify the UEFI data by using the python-uefivars tool on GitHub. For more information, see UEFI variables for Amazon EC2 instances."
        }
      }
    },
    "WindowsConfiguration": {
      "type": "object",
      "properties": {
        "imageIndex": {
          "type": "integer",
          "description": "The 1-based index that specifies which Windows edition to install from a multi-edition Windows ISO file. A Windows ISO can contain a .wim file with multiple image indexes, each representing a different edition."
        }
      },
      "required": [
        "imageIndex"
      ]
    }
  }
}