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.

CreateRuleGroupInput

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

type CreateRuleGroupInput 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 RuleGroup. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change the name of the metric after you create the RuleGroup.

MetricName is a required field

Name

Type: *string

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

Name is a required field

Method

GoString

func (s CreateRuleGroupInput) GoString() string

GoString returns the string representation

SetChangeToken

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

SetChangeToken sets the ChangeToken field's value.

SetMetricName

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

SetMetricName sets the MetricName field's value.

SetName

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

SetName sets the Name field's value.

String

func (s CreateRuleGroupInput) String() string

String returns the string representation

Validate

func (s *CreateRuleGroupInput) Validate() error

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

On this page: