{
  "$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-response-schema.json",
  "title": "GetAgentRecommendationResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-well-architected-tool-api-api-openapi.yml#/components/schemas/GetAgentRecommendationResponse",
  "type": "object",
  "properties": {
    "recommendationArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the recommendation."
    },
    "profileArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the associated profile."
    },
    "generationId": {
      "type": "string",
      "description": "The identifier of the generation process that produced this recommendation."
    },
    "title": {
      "type": "string",
      "description": "The title of the recommendation."
    },
    "description": {
      "type": "string",
      "description": "A description of the recommendation."
    },
    "type": {
      "type": "string",
      "enum": [
        "RESOURCE",
        "ARCHITECTURE",
        "APPLICATION"
      ],
      "description": "The type of the recommendation."
    },
    "pillar": {
      "type": "string",
      "enum": [
        "COST_OPTIMIZATION",
        "SECURITY",
        "RESILIENCE",
        "PERFORMANCE",
        "OPERATIONAL_EXCELLENCE"
      ],
      "description": "The Well-Architected Tool Framework pillar that the recommendation addresses."
    },
    "priority": {
      "type": "string",
      "enum": [
        "HIGH",
        "MEDIUM",
        "LOW"
      ],
      "description": "The priority of the recommendation."
    },
    "effort": {
      "type": "string",
      "enum": [
        "LARGE",
        "MEDIUM",
        "SMALL"
      ],
      "description": "The effort required to implement the recommendation."
    },
    "status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "SUPPRESSED",
        "COMPLETED"
      ],
      "description": "The current status of the recommendation."
    },
    "state": {
      "type": "string",
      "enum": [
        "OPEN",
        "CLOSED"
      ],
      "description": "The current state of the recommendation."
    },
    "updateReason": {
      "type": "string",
      "description": "The free-text reason associated with the recommendation's most recent status update."
    },
    "impact": {
      "type": "string",
      "enum": [
        "HIGH",
        "MEDIUM",
        "LOW"
      ],
      "description": "The severity of the recommendation's impact."
    },
    "roi": {
      "$ref": "#/$defs/Roi"
    },
    "numberOfResources": {
      "type": "integer",
      "description": "The number of Amazon Web Services resources this recommendation affects."
    },
    "awsServices": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Amazon Web Services services that the recommendation applies to."
    },
    "businessUnits": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The business units that own the affected resources."
    },
    "applications": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The applications that the recommendation targets."
    },
    "impactDetails": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Detailed impact information for the recommendation."
    },
    "insights": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Insight"
      },
      "description": "A list of insights about the recommendation."
    },
    "highlights": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Highlights describing what was detected."
    },
    "remediationSummary": {
      "$ref": "#/$defs/RemediationSummary"
    },
    "crossPillarBenefits": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CrossPillarBenefit"
      },
      "description": "Cross-pillar benefits of acting on the recommendation."
    },
    "tradeOffs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TradeOff"
      },
      "description": "Trade-offs of acting on the recommendation."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "TRUSTED_ADVISOR",
          "COST_EXPLORER",
          "CLOUDWATCH",
          "WELL_ARCHITECTED_TOOL",
          "WELL_ARCHITECTED_AGENT",
          "CUSTOMER_IAC"
        ]
      },
      "description": "Sources that generated this recommendation."
    },
    "goals": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RecommendationGoal"
      },
      "description": "Goals that this recommendation targets."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A set of key-value pairs associated with the recommendation, used for cost allocation and access control."
    },
    "createdBy": {
      "type": "string",
      "description": "The identifier of the user or system that created this recommendation."
    },
    "createdAt": {
      "type": "string",
      "description": "The timestamp when the recommendation was created."
    },
    "lastModifiedBy": {
      "type": "string",
      "description": "The identifier of the user or system that last modified this recommendation."
    },
    "lastModifiedAt": {
      "type": "string",
      "description": "The timestamp when the recommendation was last modified."
    },
    "remediations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AgentRecommendationRemediation"
      },
      "description": "A list of remediations for the recommendation."
    }
  },
  "required": [
    "recommendationArn",
    "profileArn",
    "title",
    "description",
    "type",
    "pillar",
    "priority",
    "effort",
    "status",
    "state",
    "impact",
    "roi",
    "impactDetails",
    "insights",
    "highlights",
    "remediationSummary",
    "createdBy",
    "createdAt"
  ],
  "$defs": {
    "AgentRecommendationRemediation": {
      "type": "object",
      "properties": {
        "recommendationArn": {
          "type": "string",
          "description": "The ARN of the recommendation that this remediation belongs to."
        },
        "type": {
          "type": "string",
          "enum": [
            "AUTO_REMEDIATION",
            "CONSOLE",
            "CLI",
            "SDK",
            "IAC",
            "MCP"
          ],
          "description": "The remediation method."
        },
        "steps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RemediationStep"
          },
          "description": "The procedural steps to perform the remediation."
        },
        "resourceLinks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceLink"
          },
          "description": "External references associated with the steps."
        },
        "createdBy": {
          "type": "string",
          "description": "The identifier of the user or system that created this remediation."
        },
        "createdAt": {
          "type": "string",
          "description": "The timestamp when the remediation was created."
        },
        "lastModifiedBy": {
          "type": "string",
          "description": "The identifier of the user or system that last modified this remediation."
        },
        "lastModifiedAt": {
          "type": "string",
          "description": "The timestamp when the remediation was last modified."
        }
      },
      "required": [
        "recommendationArn",
        "type",
        "steps",
        "createdBy",
        "createdAt"
      ]
    },
    "CrossPillarBenefit": {
      "type": "object",
      "properties": {
        "pillar": {
          "type": "string",
          "enum": [
            "COST_OPTIMIZATION",
            "SECURITY",
            "RESILIENCE",
            "PERFORMANCE",
            "OPERATIONAL_EXCELLENCE"
          ],
          "description": "The pillar that would be positively impacted."
        },
        "title": {
          "type": "string",
          "description": "A short phrase describing the outcome."
        },
        "description": {
          "type": "string",
          "description": "A description of what changes and why it matters."
        },
        "impact": {
          "type": "string",
          "enum": [
            "HIGH",
            "MEDIUM",
            "LOW"
          ],
          "description": "The severity of the benefit."
        }
      },
      "required": [
        "pillar",
        "title",
        "description",
        "impact"
      ]
    },
    "Insight": {
      "type": "object",
      "properties": {
        "usagePattern": {
          "type": "string",
          "description": "A description of the usage pattern."
        },
        "signalsDetected": {
          "type": "string",
          "description": "A description of the signals detected."
        }
      },
      "required": [
        "usagePattern"
      ]
    },
    "RecommendationGoal": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "description": "The title of the goal associated with the recommendation."
        }
      },
      "required": [
        "title"
      ]
    },
    "RemediationStep": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "description": "An optional short label for the step."
        },
        "content": {
          "type": "string",
          "description": "The content describing the step, which can include code examples and verification checklists."
        }
      },
      "required": [
        "content"
      ]
    },
    "RemediationSummary": {
      "type": "object",
      "properties": {
        "recommendation": {
          "type": "string",
          "description": "A short imperative statement of the recommended action."
        },
        "steps": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "High-level steps to implement the fix."
        }
      },
      "required": [
        "recommendation",
        "steps"
      ]
    },
    "ResourceLink": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "The URL of the external reference."
        },
        "title": {
          "type": "string",
          "description": "An optional human-readable title for the link."
        }
      },
      "required": [
        "url"
      ]
    },
    "Roi": {
      "type": "object",
      "properties": {
        "estimate": {
          "type": "string",
          "description": "A short statistic or key metric. Optional when there is no quantifiable figure."
        },
        "detail": {
          "type": "string",
          "description": "A sentence providing context for the estimate."
        }
      },
      "required": [
        "detail"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The key of the tag."
        },
        "value": {
          "type": "string",
          "description": "The value of the tag."
        }
      },
      "required": [
        "key",
        "value"
      ]
    },
    "TradeOff": {
      "type": "object",
      "properties": {
        "pillar": {
          "type": "string",
          "enum": [
            "COST_OPTIMIZATION",
            "SECURITY",
            "RESILIENCE",
            "PERFORMANCE",
            "OPERATIONAL_EXCELLENCE"
          ],
          "description": "The pillar that could be negatively impacted."
        },
        "title": {
          "type": "string",
          "description": "A short phrase describing what is lost or degraded."
        },
        "description": {
          "type": "string",
          "description": "A description of the specific risk and the condition that triggers it."
        },
        "risk": {
          "type": "string",
          "enum": [
            "LOW",
            "MEDIUM",
            "HIGH"
          ],
          "description": "The risk rating for the trade-off."
        },
        "mitigation": {
          "type": "string",
          "description": "A specific action to mitigate the trade-off and when to take it."
        },
        "riskExplanation": {
          "type": "string",
          "description": "An optional explanation providing additional context for the risk rating."
        }
      },
      "required": [
        "pillar",
        "title",
        "description",
        "risk",
        "mitigation"
      ]
    }
  }
}