{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-waf/json-schema/aws-waf-get-top-path-statistics-by-traffic-request-schema.json",
  "title": "GetTopPathStatisticsByTrafficRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-waf-operations-api-openapi.yml#/components/schemas/GetTopPathStatisticsByTrafficRequest",
  "type": "object",
  "properties": {
    "WebAclArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the web ACL for which you want to retrieve path statistics."
    },
    "Scope": {
      "type": "string",
      "enum": [
        "CLOUDFRONT",
        "REGIONAL"
      ],
      "description": "Specifies whether the web ACL is for an Amazon Web Services CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer, an AppSync GraphQL API, an Amazon Cognito user pool, an Amazon Web Services App Runner service, or an Amazon Web Services Verified Access instance."
    },
    "UriPathPrefix": {
      "type": "string",
      "description": "A URI path prefix to filter the results. When you specify this parameter, the operation returns statistics for individual URIs within the specified path prefix. For example, if you specify /api, the response includes statistics for paths like /api/v1/users and /api/v2/orders. If you don't specify this parameter, the operation returns top-level path statistics."
    },
    "TimeWindow": {
      "$ref": "#/$defs/TimeWindow"
    },
    "BotCategory": {
      "type": "string",
      "description": "Filters the results to include only traffic from bots in the specified category. For example, you can filter by ai to see only AI crawler traffic, or search_engine to see only search engine bot traffic. When you apply this filter, the Source field is populated in the response."
    },
    "BotOrganization": {
      "type": "string",
      "description": "Filters the results to include only traffic from bots belonging to the specified organization. For example, you can filter by openai or google. When you apply this filter, the Source field is populated in the response."
    },
    "BotName": {
      "type": "string",
      "description": "Filters the results to include only traffic from the specified bot. For example, you can filter by gptbot or googlebot. When you apply this filter, the Source field is populated in the response."
    },
    "Limit": {
      "type": "integer",
      "description": "The maximum number of path statistics to return. Valid values are 1 to 100."
    },
    "NumberOfTopTrafficBotsPerPath": {
      "type": "integer",
      "description": "The maximum number of top bots to include in the statistics for each path. Valid values are 1 to 10."
    },
    "NextMarker": {
      "type": "string",
      "description": "When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request."
    }
  },
  "required": [
    "WebAclArn",
    "Scope",
    "TimeWindow",
    "Limit",
    "NumberOfTopTrafficBotsPerPath"
  ],
  "$defs": {
    "TimeWindow": {
      "type": "object",
      "properties": {
        "StartTime": {
          "type": "string",
          "format": "date-time",
          "description": "The beginning of the time range from which you want GetSampledRequests to return a sample of the requests that your Amazon Web Services resource received. You must specify the times in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z. For example, \"2016-09-27T14:50Z\". You can specify any time range in the previous three hours."
        },
        "EndTime": {
          "type": "string",
          "format": "date-time",
          "description": "The end of the time range from which you want GetSampledRequests to return a sample of the requests that your Amazon Web Services resource received. You must specify the times in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z. For example, \"2016-09-27T14:50Z\". You can specify any time range in the previous three hours."
        }
      },
      "required": [
        "StartTime",
        "EndTime"
      ]
    }
  }
}