{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-well-architected-tool/json-schema/amazon-well-architected-tool-start-agent-recommendation-generation-request-schema.json",
  "title": "StartAgentRecommendationGenerationRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-well-architected-tool-generations-api-openapi.yml#/components/schemas/StartAgentRecommendationGenerationRequest",
  "type": "object",
  "properties": {
    "profileArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the optimization profile to use for generating recommendations."
    },
    "types": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "RESOURCE",
          "ARCHITECTURE",
          "APPLICATION"
        ]
      },
      "description": "The types of recommendations to generate."
    },
    "name": {
      "type": "string",
      "description": "An optional name for this generation process to help identify it in lists and logs."
    },
    "additionalContext": {
      "type": "object",
      "description": "Optional additional context to guide the recommendation generation, such as specific business requirements or constraints."
    },
    "scope": {
      "$ref": "#/$defs/Scope"
    }
  },
  "required": [
    "profileArn",
    "types",
    "scope"
  ],
  "$defs": {
    "PillarItem": {
      "type": "object",
      "properties": {
        "pillar": {
          "type": "string",
          "enum": [
            "COST_OPTIMIZATION",
            "SECURITY",
            "RESILIENCE",
            "PERFORMANCE",
            "OPERATIONAL_EXCELLENCE"
          ],
          "description": "The pillar this item configuration applies to."
        },
        "ids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of item IDs to process for this pillar, such as best practice IDs, Amazon Web Services service names, or resource ARNs."
        }
      },
      "required": [
        "pillar",
        "ids"
      ]
    },
    "Scope": {
      "type": "object",
      "properties": {
        "pillars": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "COST_OPTIMIZATION",
              "SECURITY",
              "RESILIENCE",
              "PERFORMANCE",
              "OPERATIONAL_EXCELLENCE"
            ]
          },
          "description": "The Well-Architected Tool Framework pillars to include in the generation scope."
        },
        "goalIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specific goal IDs to focus on during recommendation generation."
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PillarItem"
          },
          "description": "Optional per-pillar item filtering configuration."
        }
      },
      "required": [
        "pillars"
      ]
    }
  }
}