{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-waf/json-schema/aws-waf-get-sampled-requests-request-schema.json",
  "title": "GetSampledRequestsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-waf-aws-wafv2-api-api-openapi.yml#/components/schemas/GetSampledRequestsRequest",
  "type": "object",
  "properties": {
    "WebAclArn": {
      "type": "string",
      "description": "The Amazon resource name (ARN) of the WebACL for which you want a sample of requests."
    },
    "RuleMetricName": {
      "type": "string",
      "description": "The metric name assigned to the Rule or RuleGroup dimension for which you want a sample of requests."
    },
    "Scope": {
      "type": "string",
      "enum": [
        "CLOUDFRONT",
        "REGIONAL"
      ],
      "description": "Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows: CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1. API and SDKs - For all calls, use the Region endpoint us-east-1."
    },
    "TimeWindow": {
      "$ref": "#/$defs/TimeWindow"
    },
    "MaxItems": {
      "type": "integer",
      "description": "The number of requests that you want WAF to return from among the first 5,000 requests that your Amazon Web Services resource received during the time range. If your resource received fewer requests than the value of MaxItems, GetSampledRequests returns information about all of them."
    }
  },
  "required": [
    "WebAclArn",
    "RuleMetricName",
    "Scope",
    "TimeWindow",
    "MaxItems"
  ],
  "$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"
      ]
    }
  }
}