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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-wafregional/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
  },
}

This is AWS WAF Classic documentation. For more information, see AWS WAF Classic 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.

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

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 'gems/aws-sdk-wafregional/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 'gems/aws-sdk-wafregional/lib/aws-sdk-wafregional/types.rb', line 5292

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