{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-well-architected-tool/json-schema/amazon-well-architected-tool-update-agent-profile-request-schema.json",
  "title": "UpdateAgentProfileRequest",
  "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/UpdateAgentProfileRequest",
  "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 update."
    },
    "displayName": {
      "type": "string",
      "description": "The updated display name of the profile."
    },
    "description": {
      "type": "string",
      "description": "The updated description of the profile."
    },
    "executionRoleArn": {
      "type": "string",
      "description": "The updated ARN of the IAM execution role."
    },
    "aggregationConfiguration": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AggregationConfiguration"
      },
      "description": "The updated aggregation configuration."
    },
    "businessOverview": {
      "type": "string",
      "description": "The updated business overview for the profile."
    },
    "pillars": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "COST_OPTIMIZATION",
          "SECURITY",
          "RESILIENCE",
          "PERFORMANCE",
          "OPERATIONAL_EXCELLENCE"
        ]
      },
      "description": "The updated Well-Architected Tool Framework pillars for the profile."
    },
    "deletionProtection": {
      "type": "boolean",
      "description": "Indicates whether deletion protection is enabled for the profile."
    }
  },
  "required": [
    "profileArn"
  ],
  "$defs": {
    "AggregationConfiguration": {
      "type": "object",
      "properties": {
        "accountId": {
          "type": "string",
          "description": "The Amazon Web Services account ID to analyze."
        },
        "regions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of Amazon Web Services Regions to include in the analysis."
        },
        "accessRoleArn": {
          "type": "string",
          "description": "The ARN of an IAM role to assume for resource analysis in this account."
        }
      },
      "required": [
        "accountId",
        "regions",
        "accessRoleArn"
      ]
    }
  }
}