AWS WAF · Schema

GetSampledRequestsResponse

SecurityWeb Application FirewallDDoS ProtectionBot ManagementEdge SecurityCloudAmazon Web Services

Properties

Name Type Description
SampledRequests array A complex type that contains detailed information about each of the requests in the sample.
PopulationSize integer The total number of requests from which GetSampledRequests got a sample of MaxItems requests. If PopulationSize is less than MaxItems, the sample includes every request that your Amazon Web Services r
TimeWindow object
View JSON Schema on GitHub

JSON Schema

aws-waf-get-sampled-requests-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-waf/json-schema/aws-waf-get-sampled-requests-response-schema.json",
  "title": "GetSampledRequestsResponse",
  "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/GetSampledRequestsResponse",
  "type": "object",
  "properties": {
    "SampledRequests": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SampledHTTPRequest"
      },
      "description": "A complex type that contains detailed information about each of the requests in the sample."
    },
    "PopulationSize": {
      "type": "integer",
      "description": "The total number of requests from which GetSampledRequests got a sample of MaxItems requests. If PopulationSize is less than MaxItems, the sample includes every request that your Amazon Web Services resource received during the specified time range."
    },
    "TimeWindow": {
      "$ref": "#/$defs/TimeWindow"
    }
  },
  "$defs": {
    "CaptchaResponse": {
      "type": "object",
      "properties": {
        "ResponseCode": {
          "type": "integer",
          "description": "The HTTP response code indicating the status of the CAPTCHA token in the web request. If the token is missing, invalid, or expired, this code is 405 Method Not Allowed."
        },
        "SolveTimestamp": {
          "type": "integer",
          "description": "The time that the CAPTCHA was last solved for the supplied token."
        },
        "FailureReason": {
          "type": "string",
          "enum": [
            "TOKEN_MISSING",
            "TOKEN_EXPIRED",
            "TOKEN_INVALID",
            "TOKEN_DOMAIN_MISMATCH"
          ],
          "description": "The reason for failure, populated when the evaluation of the token fails."
        }
      }
    },
    "ChallengeResponse": {
      "type": "object",
      "properties": {
        "ResponseCode": {
          "type": "integer",
          "description": "The HTTP response code indicating the status of the challenge token in the web request. If the token is missing, invalid, or expired, this code is 202 Request Accepted."
        },
        "SolveTimestamp": {
          "type": "integer",
          "description": "The time that the challenge was last solved for the supplied token."
        },
        "FailureReason": {
          "type": "string",
          "enum": [
            "TOKEN_MISSING",
            "TOKEN_EXPIRED",
            "TOKEN_INVALID",
            "TOKEN_DOMAIN_MISMATCH"
          ],
          "description": "The reason for failure, populated when the evaluation of the token fails."
        }
      }
    },
    "HTTPHeader": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the HTTP header."
        },
        "Value": {
          "type": "string",
          "description": "The value of the HTTP header."
        }
      }
    },
    "HTTPRequest": {
      "type": "object",
      "properties": {
        "ClientIP": {
          "type": "string",
          "description": "The IP address that the request originated from. If the web ACL is associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs: c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the request x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the request"
        },
        "Country": {
          "type": "string",
          "description": "The two-letter country code for the country that the request originated from. For a current list of country codes, see the Wikipedia entry ISO 3166-1 alpha-2."
        },
        "URI": {
          "type": "string",
          "description": "The URI path of the request, which identifies the resource, for example, /images/daily-ad.jpg."
        },
        "Method": {
          "type": "string",
          "description": "The HTTP method specified in the sampled web request."
        },
        "HTTPVersion": {
          "type": "string",
          "description": "The HTTP version specified in the sampled web request, for example, HTTP/1.1."
        },
        "Headers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/HTTPHeader"
          },
          "description": "A complex type that contains the name and value for each header in the sampled web request."
        }
      }
    },
    "Label": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The label string."
        }
      },
      "required": [
        "Name"
      ]
    },
    "SampledHTTPRequest": {
      "type": "object",
      "properties": {
        "Request": {
          "$ref": "#/$defs/HTTPRequest"
        },
        "Weight": {
          "type": "integer",
          "description": "A value that indicates how one result in the response relates proportionally to other results in the response. For example, a result that has a weight of 2 represents roughly twice as many web requests as a result that has a weight of 1."
        },
        "Timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which WAF received the request from your Amazon Web Services resource, in Unix time format (in seconds)."
        },
        "Action": {
          "type": "string",
          "description": "The action that WAF applied to the request."
        },
        "RuleNameWithinRuleGroup": {
          "type": "string",
          "description": "The name of the Rule that the request matched. For managed rule groups, the format for this name is ##. For your own rule groups, the format for this name is #. If the rule is not in a rule group, this field is absent."
        },
        "RequestHeadersInserted": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/HTTPHeader"
          },
          "description": "Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action."
        },
        "ResponseCodeSent": {
          "type": "integer",
          "description": "The response code that was sent for the request."
        },
        "Labels": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Label"
          },
          "description": "Labels applied to the web request by matching rules. WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace. For example, awswaf:111122223333:myRuleGroup:testRules:testNS1:testNS2:labelNameA or awswaf:managed:aws:managed-rule-set:header:encoding:utf8."
        },
        "CaptchaResponse": {
          "$ref": "#/$defs/CaptchaResponse"
        },
        "ChallengeResponse": {
          "$ref": "#/$defs/ChallengeResponse"
        },
        "OverriddenAction": {
          "type": "string",
          "description": "Used only for rule group rules that have a rule action override in place in the web ACL. This is the action that the rule group rule is configured for, and not the action that was applied to the request. The action that WAF applied is the Action value."
        }
      },
      "required": [
        "Request",
        "Weight"
      ]
    },
    "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"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/aws-waf-get-sampled-requests-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.