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.

CreateRuleInput

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

type CreateRuleInput struct { ChangeToken *string `min:"1" type:"string" 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

MetricName

Type: *string

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

MetricName is a required field

Name

Type: *string

A friendly name or description of the Rule. You can't change the name of a Rule after you create it.

Name is a required field

Method

GoString

func (s CreateRuleInput) GoString() string

GoString returns the string representation

SetChangeToken

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

SetChangeToken sets the ChangeToken field's value.

SetMetricName

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

SetMetricName sets the MetricName field's value.

SetName

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

SetName sets the Name field's value.

String

func (s CreateRuleInput) String() string

String returns the string representation

Validate

func (s *CreateRuleInput) Validate() error

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

On this page: