{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-config/refs/heads/main/json-schema/config-organization-aggregation-source-schema.json",
  "title": "OrganizationAggregationSource",
  "description": "This object contains regions to set up the aggregator and an IAM role to retrieve organization details.",
  "type": "object",
  "properties": {
    "RoleArn": {
      "allOf": [
        {
          "$ref": "#/components/schemas/String"
        },
        {
          "description": "ARN of the IAM role used to retrieve Amazon Web Services Organization details associated with the aggregator account."
        }
      ]
    },
    "AwsRegions": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AggregatorRegionList"
        },
        {
          "description": "The source regions being aggregated."
        }
      ]
    },
    "AllAwsRegions": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Boolean"
        },
        {
          "description": "If true, aggregate existing Config regions and future regions."
        }
      ]
    }
  },
  "required": [
    "RoleArn"
  ]
}