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.

UpdateWebACLInput

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

type UpdateWebACLInput struct { ChangeToken *string `min:"1" type:"string" required:"true"` DefaultAction *WafAction `type:"structure"` Updates []*WebACLUpdate `type:"list"` WebACLId *string `min:"1" type:"string" required:"true"` }

ChangeToken

Type: *string

The value returned by the most recent call to GetChangeToken.

ChangeToken is a required field

DefaultAction

For the action that is associated with a rule in a WebACL, specifies the action that you want AWS WAF to perform when a web request matches all of the conditions in a rule. For the default action in a WebACL, specifies the action that you want AWS WAF to take when a web request doesn't match all of the conditions in any of the rules in a WebACL.

Updates

Specifies whether to insert a Rule into or delete a Rule from a WebACL.

WebACLId

Type: *string

The WebACLId of the WebACL that you want to update. WebACLId is returned by CreateWebACL and by ListWebACLs.

WebACLId is a required field

Method

GoString

func (s UpdateWebACLInput) GoString() string

GoString returns the string representation

SetChangeToken

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

SetChangeToken sets the ChangeToken field's value.

SetDefaultAction

func (s *UpdateWebACLInput) SetDefaultAction(v *WafAction) *UpdateWebACLInput

SetDefaultAction sets the DefaultAction field's value.

SetUpdates

func (s *UpdateWebACLInput) SetUpdates(v []*WebACLUpdate) *UpdateWebACLInput

SetUpdates sets the Updates field's value.

SetWebACLId

func (s *UpdateWebACLInput) SetWebACLId(v string) *UpdateWebACLInput

SetWebACLId sets the WebACLId field's value.

String

func (s UpdateWebACLInput) String() string

String returns the string representation

Validate

func (s *UpdateWebACLInput) Validate() error

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

On this page: