{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workspaces/json-schema/amazon-workspaces-describe-custom-workspace-image-import-result-schema.json",
  "title": "DescribeCustomWorkspaceImageImportResult",
  "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/DescribeCustomWorkspaceImageImportResult",
  "type": "object",
  "properties": {
    "ImageId": {
      "type": "string",
      "description": "The identifier of the WorkSpace image."
    },
    "InfrastructureConfigurationArn": {
      "type": "string",
      "description": "The infrastructure configuration ARN that specifies how the WorkSpace image is built."
    },
    "State": {
      "type": "string",
      "enum": [
        "PENDING",
        "IN_PROGRESS",
        "PROCESSING_SOURCE_IMAGE",
        "IMAGE_TESTING_START",
        "UPDATING_OPERATING_SYSTEM",
        "IMAGE_COMPATIBILITY_CHECKING",
        "IMAGE_TESTING_GENERALIZATION",
        "CREATING_TEST_INSTANCE",
        "INSTALLING_COMPONENTS",
        "GENERALIZING",
        "VALIDATING",
        "PUBLISHING",
        "COMPLETED",
        "ERROR"
      ],
      "description": "The state of the WorkSpace image."
    },
    "StateMessage": {
      "type": "string",
      "description": "The state message of the WorkSpace image import workflow."
    },
    "ProgressPercentage": {
      "type": "integer",
      "description": "The estimated progress percentage of the WorkSpace image import workflow."
    },
    "Created": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the WorkSpace image import was created."
    },
    "LastUpdatedTime": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the WorkSpace image import was last updated."
    },
    "ImageSource": {
      "$ref": "#/$defs/ImageSourceIdentifier"
    },
    "ImageBuilderInstanceId": {
      "type": "string",
      "description": "The image builder instance ID of the WorkSpace image."
    },
    "ErrorDetails": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CustomWorkspaceImageImportErrorDetails"
      },
      "description": "Describes in-depth details about the error. These details include the possible causes of the error and troubleshooting information."
    }
  },
  "$defs": {
    "CustomWorkspaceImageImportErrorDetails": {
      "type": "object",
      "properties": {
        "ErrorCode": {
          "type": "string",
          "description": "The error code that is returned for the image import."
        },
        "ErrorMessage": {
          "type": "string",
          "description": "The text of the error message that is returned for the image import."
        }
      }
    },
    "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."
    }
  }
}