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.

CreateWebACLInput

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

type CreateWebACLInput struct { ChangeToken *string `min:"1" type:"string" required:"true"` DefaultAction *WafAction `type:"structure" required:"true"` MetricName *string `type:"string" required:"true"` Name *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.

MetricName

Type: *string

A friendly name or description for the metrics for this WebACL. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain white space. You can't change MetricName after you create the WebACL.

MetricName is a required field

Name

Type: *string

A friendly name or description of the WebACL. You can't change Name after you create the WebACL.

Name is a required field

Method

GoString

func (s CreateWebACLInput) GoString() string

GoString returns the string representation

SetChangeToken

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

SetChangeToken sets the ChangeToken field's value.

SetDefaultAction

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

SetDefaultAction sets the DefaultAction field's value.

SetMetricName

func (s *CreateWebACLInput) SetMetricName(v string) *CreateWebACLInput

SetMetricName sets the MetricName field's value.

SetName

func (s *CreateWebACLInput) SetName(v string) *CreateWebACLInput

SetName sets the Name field's value.

String

func (s CreateWebACLInput) String() string

String returns the string representation

Validate

func (s *CreateWebACLInput) Validate() error

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

On this page: