{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-management/json-schema/amazon-iot-device-management-terms-aggregation-schema.json",
  "title": "TermsAggregation",
  "description": "Performs an aggregation that will return a list of buckets. The list of buckets is a ranked list of the number of occurrences of an aggregation field value.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-management-indices-api-openapi.yml#/components/schemas/TermsAggregation",
  "type": "object",
  "properties": {
    "maxBuckets": {
      "allOf": [
        {
          "$ref": "#/$defs/MaxBuckets"
        },
        {
          "description": "The number of buckets to return in the response. Default to 10."
        }
      ]
    }
  },
  "$defs": {
    "MaxBuckets": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10000
    }
  }
}