{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-create-app-image-config-request-schema.json",
  "title": "CreateAppImageConfigRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-app-image-config-api-openapi.yml#/components/schemas/CreateAppImageConfigRequest",
  "type": "object",
  "properties": {
    "AppImageConfigName": {
      "type": "string",
      "description": "The name of the AppImageConfig. Must be unique to your account."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of tags to apply to the AppImageConfig."
    },
    "KernelGatewayImageConfig": {
      "$ref": "#/$defs/KernelGatewayImageConfig"
    },
    "JupyterLabAppImageConfig": {
      "$ref": "#/$defs/JupyterLabAppImageConfig"
    },
    "CodeEditorAppImageConfig": {
      "$ref": "#/$defs/CodeEditorAppImageConfig"
    }
  },
  "required": [
    "AppImageConfigName"
  ],
  "$defs": {
    "CodeEditorAppImageConfig": {
      "type": "object",
      "properties": {
        "FileSystemConfig": {
          "$ref": "#/$defs/FileSystemConfig"
        },
        "ContainerConfig": {
          "$ref": "#/$defs/ContainerConfig"
        }
      }
    },
    "ContainerConfig": {
      "type": "object",
      "properties": {
        "ContainerArguments": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The arguments for the container when you're running the application."
        },
        "ContainerEntrypoint": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The entrypoint used to run the application in the container."
        },
        "ContainerEnvironmentVariables": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The environment variables to set in the container"
        }
      }
    },
    "FileSystemConfig": {
      "type": "object",
      "properties": {
        "MountPath": {
          "type": "string",
          "description": "The path within the image to mount the user's EFS home directory. The directory should be empty. If not specified, defaults to /home/sagemaker-user."
        },
        "DefaultUid": {
          "type": "integer",
          "description": "The default POSIX user ID (UID). If not specified, defaults to 1000."
        },
        "DefaultGid": {
          "type": "integer",
          "description": "The default POSIX group ID (GID). If not specified, defaults to 100."
        }
      }
    },
    "JupyterLabAppImageConfig": {
      "type": "object",
      "properties": {
        "FileSystemConfig": {
          "$ref": "#/$defs/FileSystemConfig"
        },
        "ContainerConfig": {
          "$ref": "#/$defs/ContainerConfig"
        }
      }
    },
    "KernelGatewayImageConfig": {
      "type": "object",
      "properties": {
        "KernelSpecs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/KernelSpec"
          },
          "description": "The specification of the Jupyter kernels in the image."
        },
        "FileSystemConfig": {
          "$ref": "#/$defs/FileSystemConfig"
        }
      },
      "required": [
        "KernelSpecs"
      ]
    },
    "KernelSpec": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the Jupyter kernel in the image. This value is case sensitive."
        },
        "DisplayName": {
          "type": "string",
          "description": "The display name of the kernel."
        }
      },
      "required": [
        "Name"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag key. Tag keys must be unique per resource."
        },
        "Value": {
          "type": "string",
          "description": "The tag value."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}