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

We welcome your feedback on this new version of the documentation. Send your comments to


import ""

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.


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.


Type: *string

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


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



func (s RuleGroup) GoString() string

GoString returns the string representation


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

SetMetricName sets the MetricName field's value.


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

SetName sets the Name field's value.


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

SetRuleGroupId sets the RuleGroupId field's value.


func (s RuleGroup) String() string

String returns the string representation

On this page: