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.

RuleGroupUpdate

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

type RuleGroupUpdate struct { Action *string `type:"string" required:"true" enum:"ChangeAction"` ActivatedRule *ActivatedRule `type:"structure" required:"true"` }

Specifies an ActivatedRule and indicates whether you want to add it to a RuleGroup or delete it from a RuleGroup.

Action

Type: *string

Specify INSERT to add an ActivatedRule to a RuleGroup. Use DELETE to remove an ActivatedRule from a RuleGroup.

Action is a required field

ActivatedRule

The ActivatedRule object in an UpdateWebACL request specifies a Rule that you want to insert or delete, the priority of the Rule in the WebACL, and the action that you want AWS WAF to take when a web request matches the Rule (ALLOW, BLOCK, or COUNT).

To specify whether to insert or delete a Rule, use the Action parameter in the WebACLUpdate data type.

Method

GoString

func (s RuleGroupUpdate) GoString() string

GoString returns the string representation

SetAction

func (s *RuleGroupUpdate) SetAction(v string) *RuleGroupUpdate

SetAction sets the Action field's value.

SetActivatedRule

func (s *RuleGroupUpdate) SetActivatedRule(v *ActivatedRule) *RuleGroupUpdate

SetActivatedRule sets the ActivatedRule field's value.

String

func (s RuleGroupUpdate) String() string

String returns the string representation

Validate

func (s *RuleGroupUpdate) Validate() error

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

On this page: