Class: Aws::WAFRegional::Types::RuleUpdate

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-wafregional/types.rb

Overview

Note:

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

{
  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
  },
}

<note markdown=“1”> This is **AWS WAF Classic** documentation. For more information, see

AWS WAF Classic][1

in the developer guide.

**For the latest version of AWS WAF**, use the AWS WAFV2 API and see

the [AWS WAF Developer Guide]. With the latest version, AWS WAF has a single set of endpoints for regional and global use.

</note>

Specifies a `Predicate` (such as an `IPSet`) and indicates whether you want to add it to a `Rule` or delete it from a `Rule`.

[1]: docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html [2]: docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#actionString

Specify `INSERT` to add a `Predicate` to a `Rule`. Use `DELETE` to remove a `Predicate` from a `Rule`.

Returns:

  • (String)

5292
5293
5294
5295
5296
5297
# File 'lib/aws-sdk-wafregional/types.rb', line 5292

class RuleUpdate < Struct.new(
  :action,
  :predicate)
  SENSITIVE = []
  include Aws::Structure
end

#predicateTypes::Predicate

The ID of the `Predicate` (such as an `IPSet`) that you want to add to a `Rule`.

Returns:


5292
5293
5294
5295
5296
5297
# File 'lib/aws-sdk-wafregional/types.rb', line 5292

class RuleUpdate < Struct.new(
  :action,
  :predicate)
  SENSITIVE = []
  include Aws::Structure
end