You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::WAF::Types::UpdateRuleGroupRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb

Overview

Note:

When making an API call, you may pass UpdateRuleGroupRequest data as a hash:

{
  rule_group_id: "ResourceId", # required
  updates: [ # required
    {
      action: "INSERT", # required, accepts INSERT, DELETE
      activated_rule: { # required
        priority: 1, # required
        rule_id: "ResourceId", # required
        action: {
          type: "BLOCK", # required, accepts BLOCK, ALLOW, COUNT
        },
        override_action: {
          type: "NONE", # required, accepts NONE, COUNT
        },
        type: "REGULAR", # accepts REGULAR, RATE_BASED, GROUP
      },
    },
  ],
  change_token: "ChangeToken", # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#change_tokenString

The value returned by the most recent call to GetChangeToken.

Returns:

  • (String)


4979
4980
4981
4982
4983
4984
# File 'gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb', line 4979

class UpdateRuleGroupRequest < Struct.new(
  :rule_group_id,
  :updates,
  :change_token)
  include Aws::Structure
end

#rule_group_idString

The RuleGroupId of the RuleGroup that you want to update. RuleGroupId is returned by CreateRuleGroup and by ListRuleGroups.

Returns:

  • (String)


4979
4980
4981
4982
4983
4984
# File 'gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb', line 4979

class UpdateRuleGroupRequest < Struct.new(
  :rule_group_id,
  :updates,
  :change_token)
  include Aws::Structure
end

#updatesArray<Types::RuleGroupUpdate>

An array of RuleGroupUpdate objects that you want to insert into or delete from a RuleGroup.

You can only insert REGULAR rules into a rule group.

The Action data type within ActivatedRule is used only when submitting an UpdateWebACL request. ActivatedRule|Action is not applicable and therefore not available for UpdateRuleGroup.

Returns:



4979
4980
4981
4982
4983
4984
# File 'gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb', line 4979

class UpdateRuleGroupRequest < Struct.new(
  :rule_group_id,
  :updates,
  :change_token)
  include Aws::Structure
end