AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

SampledHTTPRequest

import "github.com/aws/aws-sdk-go/service/waf"

type SampledHTTPRequest struct { Action *string `type:"string"` Request *HTTPRequest `type:"structure" required:"true"` RuleWithinRuleGroup *string `min:"1" type:"string"` Timestamp *time.Time `type:"timestamp"` Weight *int64 `type:"long" required:"true"` }

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.

Action

Type: *string

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

Request

The response from a GetSampledRequests request includes an HTTPRequest complex type that appears as Request in the response syntax. HTTPRequest contains information about one of the web requests that were returned by GetSampledRequests.

RuleWithinRuleGroup

Type: *string

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.

Timestamp

Type: *time.Time

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

Weight

Type: *int64

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.

Weight is a required field

Method

GoString

func (s SampledHTTPRequest) GoString() string

GoString returns the string representation

SetAction

func (s *SampledHTTPRequest) SetAction(v string) *SampledHTTPRequest

SetAction sets the Action field's value.

SetRequest

func (s *SampledHTTPRequest) SetRequest(v *HTTPRequest) *SampledHTTPRequest

SetRequest sets the Request field's value.

SetRuleWithinRuleGroup

func (s *SampledHTTPRequest) SetRuleWithinRuleGroup(v string) *SampledHTTPRequest

SetRuleWithinRuleGroup sets the RuleWithinRuleGroup field's value.

SetTimestamp

func (s *SampledHTTPRequest) SetTimestamp(v time.Time) *SampledHTTPRequest

SetTimestamp sets the Timestamp field's value.

SetWeight

func (s *SampledHTTPRequest) SetWeight(v int64) *SampledHTTPRequest

SetWeight sets the Weight field's value.

String

func (s SampledHTTPRequest) String() string

String returns the string representation

On this page: