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.

RuleGroup

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

type RuleGroup struct { MetricName *string `type:"string"` Name *string `min:"1" type:"string"` RuleGroupId *string `min:"1" type:"string" required:"true"` }

A collection of predefined rules that you can add to a web ACL.

Rule groups are subject to the following limits:

  • Three rule groups per account. You can request an increase to this limit by contacting customer support.

  • One rule group per web ACL.

  • Ten rules per rule group.

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.

Name

Type: *string

The friendly name or description for the RuleGroup. You can't change the name of a RuleGroup after you create it.

RuleGroupId

Type: *string

A unique identifier for a RuleGroup. You use RuleGroupId to get more information about a RuleGroup (see GetRuleGroup), update a RuleGroup (see UpdateRuleGroup), insert a RuleGroup into a WebACL or delete a one from a WebACL (see UpdateWebACL), or delete a RuleGroup from AWS WAF (see DeleteRuleGroup).

RuleGroupId is returned by CreateRuleGroup and by ListRuleGroups.

RuleGroupId is a required field

Method

GoString

func (s RuleGroup) GoString() string

GoString returns the string representation

SetMetricName

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

SetMetricName sets the MetricName field's value.

SetName

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

SetName sets the Name field's value.

SetRuleGroupId

func (s *RuleGroup) SetRuleGroupId(v string) *RuleGroup

SetRuleGroupId sets the RuleGroupId field's value.

String

func (s RuleGroup) String() string

String returns the string representation

On this page: