{
  "$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-profile-request-schema.json",
  "title": "CreateAgentProfileRequest",
  "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/CreateAgentProfileRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The system name of the profile."
    },
    "displayName": {
      "type": "string",
      "description": "The display name of the profile shown to users."
    },
    "description": {
      "type": "string",
      "description": "A description of the profile."
    },
    "businessOverview": {
      "type": "string",
      "description": "The business overview for this profile."
    },
    "pillars": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "COST_OPTIMIZATION",
          "SECURITY",
          "RESILIENCE",
          "PERFORMANCE",
          "OPERATIONAL_EXCELLENCE"
        ]
      },
      "description": "The Well-Architected Tool Framework pillars to associate with this profile."
    },
    "deletionProtection": {
      "type": "boolean",
      "description": "Indicates whether deletion protection is enabled for the profile."
    },
    "executionRoleArn": {
      "type": "string",
      "description": "The ARN of the IAM execution role used for recommendation actions."
    },
    "aggregationConfiguration": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AggregationConfiguration"
      },
      "description": "The aggregation configuration that defines which Amazon Web Services accounts and Regions to analyze."
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The tags to associate with the profile."
    }
  },
  "required": [
    "name",
    "pillars",
    "executionRoleArn",
    "aggregationConfiguration"
  ],
  "$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"
      ]
    },
    "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"
      ]
    }
  }
}