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

Class: Aws::WAF::Types::RuleUpdate

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

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

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)


3979
3980
3981
3982
3983
# File 'gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb', line 3979

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

#predicateTypes::Predicate

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

Returns:



3979
3980
3981
3982
3983
# File 'gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb', line 3979

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