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.

UpdateRateBasedRuleInput

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

type UpdateRateBasedRuleInput struct { ChangeToken *string `min:"1" type:"string" required:"true"` RateLimit *int64 `min:"2000" type:"long" required:"true"` RuleId *string `min:"1" type:"string" required:"true"` Updates []*RuleUpdate `type:"list" required:"true"` }

ChangeToken

Type: *string

The value returned by the most recent call to GetChangeToken.

ChangeToken is a required field

RateLimit

Type: *int64

The maximum number of requests, which have an identical value in the field specified by the RateKey, allowed in a five-minute period. If the number of requests exceeds the RateLimit and the other predicates specified in the rule are also met, AWS WAF triggers the action that is specified for this rule.

RateLimit is a required field

RuleId

Type: *string

The RuleId of the RateBasedRule that you want to update. RuleId is returned by CreateRateBasedRule and by ListRateBasedRules.

RuleId is a required field

Updates

Specifies a Predicate (such as an IPSet) and indicates whether you want to add it to a Rule or delete it from a Rule.

Method

GoString

func (s UpdateRateBasedRuleInput) GoString() string

GoString returns the string representation

SetChangeToken

func (s *UpdateRateBasedRuleInput) SetChangeToken(v string) *UpdateRateBasedRuleInput

SetChangeToken sets the ChangeToken field's value.

SetRateLimit

func (s *UpdateRateBasedRuleInput) SetRateLimit(v int64) *UpdateRateBasedRuleInput

SetRateLimit sets the RateLimit field's value.

SetRuleId

func (s *UpdateRateBasedRuleInput) SetRuleId(v string) *UpdateRateBasedRuleInput

SetRuleId sets the RuleId field's value.

SetUpdates

func (s *UpdateRateBasedRuleInput) SetUpdates(v []*RuleUpdate) *UpdateRateBasedRuleInput

SetUpdates sets the Updates field's value.

String

func (s UpdateRateBasedRuleInput) String() string

String returns the string representation

Validate

func (s *UpdateRateBasedRuleInput) Validate() error

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

On this page: