{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-well-architected-tool/json-schema/amazon-well-architected-tool-get-agent-recommendation-generation-response-schema.json",
  "title": "GetAgentRecommendationGenerationResponse",
  "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/GetAgentRecommendationGenerationResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier of the recommendation generation."
    },
    "profileArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the profile used for this generation."
    },
    "name": {
      "type": "string",
      "description": "The name of the recommendation generation."
    },
    "status": {
      "type": "string",
      "enum": [
        "QUEUED",
        "IN_PROGRESS",
        "COMPLETED",
        "ERROR"
      ],
      "description": "The current status of the recommendation generation."
    },
    "estimatedCompletionTime": {
      "type": "string",
      "description": "The estimated time for the generation to complete."
    },
    "createdBy": {
      "type": "string",
      "description": "The identifier of the user or system that started this generation."
    },
    "createdAt": {
      "type": "string",
      "description": "The timestamp when the generation was started."
    },
    "lastModifiedBy": {
      "type": "string",
      "description": "The identifier of the user or system that last modified this generation."
    },
    "lastModifiedAt": {
      "type": "string",
      "description": "The timestamp when the generation was last modified."
    },
    "additionalContext": {
      "type": "object",
      "description": "Additional context information provided to guide the recommendation generation process."
    },
    "scope": {
      "$ref": "#/$defs/Scope"
    },
    "startedAt": {
      "type": "string",
      "description": "The timestamp when the recommendation generation process started."
    },
    "endedAt": {
      "type": "string",
      "description": "The timestamp when the recommendation generation process completed."
    },
    "progress": {
      "$ref": "#/$defs/Progress"
    },
    "errorDetails": {
      "$ref": "#/$defs/ErrorDetails"
    }
  },
  "required": [
    "id",
    "profileArn",
    "status",
    "createdBy",
    "createdAt"
  ],
  "$defs": {
    "ErrorDetails": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "The status code identifying the type of error."
        },
        "message": {
          "type": "string",
          "description": "A human-readable description of the error."
        }
      },
      "required": [
        "code",
        "message"
      ]
    },
    "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"
      ]
    },
    "Progress": {
      "type": "object",
      "properties": {
        "stepsCompleted": {
          "type": "integer",
          "description": "The number of generation steps that have been completed."
        },
        "totalSteps": {
          "type": "integer",
          "description": "The total number of steps in the generation process."
        },
        "completionPercentage": {
          "type": "number",
          "description": "The completion percentage of the generation process (0-100)."
        }
      },
      "required": [
        "stepsCompleted",
        "totalSteps",
        "completionPercentage"
      ]
    },
    "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"
      ]
    }
  }
}