{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workspaces/json-schema/amazon-workspaces-import-custom-workspace-image-request-schema.json",
  "title": "ImportCustomWorkspaceImageRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-workspaces-operations-api-openapi.yml#/components/schemas/ImportCustomWorkspaceImageRequest",
  "type": "object",
  "properties": {
    "ImageName": {
      "type": "string",
      "description": "The name of the WorkSpace image."
    },
    "ImageDescription": {
      "type": "string",
      "description": "The description of the WorkSpace image."
    },
    "ComputeType": {
      "type": "string",
      "enum": [
        "BASE",
        "GRAPHICS_G4DN",
        "GRAPHICS_G6",
        "GRAPHICS_G7"
      ],
      "description": "The supported compute type for the WorkSpace image."
    },
    "Protocol": {
      "type": "string",
      "enum": [
        "PCOIP",
        "DCV",
        "BYOP"
      ],
      "description": "The supported protocol for the WorkSpace image. Windows 11 does not support PCOIP protocol."
    },
    "ImageSource": {
      "$ref": "#/$defs/ImageSourceIdentifier"
    },
    "InfrastructureConfigurationArn": {
      "type": "string",
      "description": "The infrastructure configuration ARN that specifies how the WorkSpace image is built."
    },
    "Platform": {
      "type": "string",
      "enum": [
        "WINDOWS"
      ],
      "description": "The platform for the WorkSpace image source."
    },
    "OsVersion": {
      "type": "string",
      "enum": [
        "Windows_10",
        "Windows_11"
      ],
      "description": "The OS version for the WorkSpace image source."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The resource tags. Each WorkSpaces resource can have a maximum of 50 tags."
    },
    "ImageValidationMode": {
      "type": "string",
      "enum": [
        "CUSTOMER_MANAGED",
        "SERVICE_MANAGED"
      ],
      "description": "The image validation mode for the WorkSpace image import."
    }
  },
  "required": [
    "ImageName",
    "ImageDescription",
    "ComputeType",
    "Protocol",
    "ImageSource",
    "InfrastructureConfigurationArn",
    "Platform",
    "OsVersion"
  ],
  "$defs": {
    "ImageSourceIdentifier": {
      "type": "object",
      "properties": {
        "Ec2ImportTaskId": {
          "type": "string",
          "description": "The EC2 import task ID to import the image from the Amazon EC2 VM import process."
        },
        "ImageBuildVersionArn": {
          "type": "string",
          "description": "The ARN of the EC2 Image Builder image."
        },
        "Ec2ImageId": {
          "type": "string",
          "description": "The identifier of the EC2 image."
        }
      },
      "description": "Exactly one member is set."
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key of the tag."
        },
        "Value": {
          "type": "string",
          "description": "The value of the tag."
        }
      },
      "required": [
        "Key"
      ]
    }
  }
}