{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-create-context-request-schema.json",
  "title": "CreateContextRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-context-api-openapi.yml#/components/schemas/CreateContextRequest",
  "type": "object",
  "properties": {
    "ContextName": {
      "type": "string",
      "description": "The name of the context. Must be unique to your account in an Amazon Web Services Region."
    },
    "Source": {
      "$ref": "#/$defs/ContextSource"
    },
    "ContextType": {
      "type": "string",
      "description": "The context type."
    },
    "Description": {
      "type": "string",
      "description": "The description of the context."
    },
    "Properties": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A list of properties to add to the context."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of tags to apply to the context."
    }
  },
  "required": [
    "ContextName",
    "Source",
    "ContextType"
  ],
  "$defs": {
    "ContextSource": {
      "type": "object",
      "properties": {
        "SourceUri": {
          "type": "string",
          "description": "The URI of the source."
        },
        "SourceType": {
          "type": "string",
          "description": "The type of the source."
        },
        "SourceId": {
          "type": "string",
          "description": "The ID of the source."
        }
      },
      "required": [
        "SourceUri"
      ]
    },
    "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"
      ]
    }
  }
}