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

Class: Aws::WAFRegional::Types::UpdateRuleRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing UpdateRuleRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  rule_id: "ResourceId", # required
  change_token: "ChangeToken", # required
  updates: [ # required
    {
      action: "INSERT", # required, accepts INSERT, DELETE
      predicate: { # required
        negated: false, # required
        type: "IPMatch", # required, accepts IPMatch, ByteMatch, SqlInjectionMatch, GeoMatch, SizeConstraint, XssMatch, RegexMatch
        data_id: "ResourceId", # required
      },
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#change_tokenString

The value returned by the most recent call to GetChangeToken.

Returns:

  • (String)

    The value returned by the most recent call to GetChangeToken.

#rule_idString

The RuleId of the Rule that you want to update. RuleId is returned by CreateRule and by ListRules.

Returns:

  • (String)

    The RuleId of the Rule that you want to update.

#updatesArray<Types::RuleUpdate>

An array of RuleUpdate objects that you want to insert into or delete from a Rule. For more information, see the applicable data types:

Returns:

  • (Array<Types::RuleUpdate>)

    An array of RuleUpdate objects that you want to insert into or delete from a Rule.