{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-well-architected-tool/json-schema/amazon-well-architected-tool-create-agent-context-request-schema.json",
  "title": "CreateAgentContextRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-well-architected-tool-contexts-api-openapi.yml#/components/schemas/CreateAgentContextRequest",
  "type": "object",
  "properties": {
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request."
    },
    "profileArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the profile to associate the context with."
    },
    "title": {
      "type": "string",
      "description": "The title of the context."
    },
    "contextType": {
      "type": "string",
      "enum": [
        "APPLICATION"
      ],
      "description": "The type of the context."
    },
    "content": {
      "$ref": "#/$defs/ContextContent"
    }
  },
  "required": [
    "profileArn",
    "title",
    "contextType",
    "content"
  ],
  "$defs": {
    "ContextContent": {
      "type": "object",
      "properties": {
        "accountIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Web Services account IDs associated with this application context."
        },
        "regions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Web Services Regions where this application operates."
        },
        "awsServices": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Web Services services used by this application."
        },
        "resourceTypes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Web Services resource types relevant to this application."
        },
        "resourceTags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ContextResourceTag"
          },
          "description": "Resource tags used to scope this application context."
        },
        "applicationOverview": {
          "type": "string",
          "description": "A free-form overview of the application."
        },
        "industry": {
          "type": "string",
          "description": "The industry vertical for this application."
        },
        "applicationType": {
          "type": "string",
          "enum": [
            "SAS",
            "DESKTOP_APPLICATION",
            "OTHER"
          ],
          "description": "The type of the application."
        },
        "criticality": {
          "type": "string",
          "enum": [
            "MISSION_CRITICAL",
            "BUSINESS_CRITICAL",
            "NON_CRITICAL",
            "TEST_DEVELOPMENT"
          ],
          "description": "The business criticality of the application."
        },
        "architectureOverview": {
          "type": "string",
          "description": "A free-form description of the application architecture."
        },
        "additionalContext": {
          "type": "string",
          "description": "Additional context not captured by other fields."
        }
      }
    },
    "ContextResourceTag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The tag key."
        },
        "value": {
          "type": "string",
          "description": "The tag value."
        }
      },
      "required": [
        "key",
        "value"
      ]
    }
  }
}