{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-health-dashboard/json-schema/amazon-health-dashboard-describe-entity-aggregates-for-organization-response-schema.json",
  "title": "DescribeEntityAggregatesForOrganizationResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-health-dashboard-operations-api-openapi.yml#/components/schemas/DescribeEntityAggregatesForOrganizationResponse",
  "type": "object",
  "properties": {
    "organizationEntityAggregates": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OrganizationEntityAggregate"
      },
      "description": "The list of entity aggregates for each of the specified accounts that are affected by each of the specified events."
    }
  },
  "$defs": {
    "AccountEntityAggregate": {
      "type": "object",
      "properties": {
        "accountId": {
          "type": "string",
          "description": "The 12-digit Amazon Web Services account numbers that contains the affected entities."
        },
        "count": {
          "type": "integer",
          "description": "The number of entities that match the filter criteria for the specified events."
        },
        "statuses": {
          "type": "object",
          "additionalProperties": {
            "type": "integer"
          },
          "description": "The number of affected entities aggregated by the entity status codes."
        }
      }
    },
    "OrganizationEntityAggregate": {
      "type": "object",
      "properties": {
        "eventArn": {
          "type": "string",
          "description": "A list of event ARNs (unique identifiers). For example: \"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456\", \"arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101\""
        },
        "count": {
          "type": "integer",
          "description": "The number of entities for the organization that match the filter criteria for the specified events."
        },
        "statuses": {
          "type": "object",
          "additionalProperties": {
            "type": "integer"
          },
          "description": "The number of affected entities aggregated by the entitiy status codes."
        },
        "accounts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AccountEntityAggregate"
          },
          "description": "A list of entity aggregates for each of the specified accounts in your organization that are affected by a specific event. If there are no awsAccountIds provided in the request, this field will be empty in the response."
        }
      }
    }
  }
}