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.

TimeWindow

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

type TimeWindow struct { EndTime *time.Time `type:"timestamp" required:"true"` StartTime *time.Time `type:"timestamp" required:"true"` }

In a GetSampledRequests request, the StartTime and EndTime objects specify the time range for which you want AWS WAF to return a sample of web requests.

In a GetSampledRequests response, the StartTime and EndTime objects specify the time range for which AWS WAF actually returned a sample of web requests. AWS WAF gets the specified number of requests from among the first 5,000 requests that your AWS resource receives during the specified time period. If your resource receives more than 5,000 requests during that period, AWS WAF stops sampling after the 5,000th request. In that case, EndTime is the time that AWS WAF received the 5,000th request.

EndTime

Type: *time.Time

The end of the time range from which you want GetSampledRequests to return a sample of the requests that your AWS resource received. Specify the date and time in the following format: "2016-09-27T14:50Z". You can specify any time range in the previous three hours.

EndTime is a required field

StartTime

Type: *time.Time

The beginning of the time range from which you want GetSampledRequests to return a sample of the requests that your AWS resource received. Specify the date and time in the following format: "2016-09-27T14:50Z". You can specify any time range in the previous three hours.

StartTime is a required field

Method

GoString

func (s TimeWindow) GoString() string

GoString returns the string representation

SetEndTime

func (s *TimeWindow) SetEndTime(v time.Time) *TimeWindow

SetEndTime sets the EndTime field's value.

SetStartTime

func (s *TimeWindow) SetStartTime(v time.Time) *TimeWindow

SetStartTime sets the StartTime field's value.

String

func (s TimeWindow) String() string

String returns the string representation

Validate

func (s *TimeWindow) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: