AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.

For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.

The response from a GetSampledRequests request includes a SampledHTTPRequests complex type that appears as SampledRequests in the response syntax. SampledHTTPRequests contains one SampledHTTPRequest object for each web request that is returned by GetSampledRequests.

Inheritance Hierarchy

System.Object
  Amazon.WAF.Model.SampledHTTPRequest

Namespace: Amazon.WAF.Model
Assembly: AWSSDK.WAF.dll
Version: 3.x.y.z

Syntax

C#
public class SampledHTTPRequest

The SampledHTTPRequest type exposes the following members

Constructors

NameDescription
Public Method SampledHTTPRequest()

Properties

NameTypeDescription
Public Property Action System.String

Gets and sets the property Action.

The action for the Rule that the request matched: ALLOW, BLOCK, or COUNT.

Public Property Request Amazon.WAF.Model.HTTPRequest

Gets and sets the property Request.

A complex type that contains detailed information about the request.

Public Property RuleWithinRuleGroup System.String

Gets and sets the property RuleWithinRuleGroup.

This value is returned if the GetSampledRequests request specifies the ID of a RuleGroup rather than the ID of an individual rule. RuleWithinRuleGroup is the rule within the specified RuleGroup that matched the request listed in the response.

Public Property Timestamp System.DateTime

Gets and sets the property Timestamp.

The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).

Public Property Weight System.Int64

Gets and sets the property Weight.

A value that indicates how one result in the response relates proportionally to other results in the response. A result that has a weight of 2 represents roughly twice as many CloudFront web requests as a result that has a weight of 1.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5