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

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

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

Overview

Note:

When passing RuleUpdate as input to an Aws::Client method, you can use a vanilla 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.

Possible values:

  • INSERT
  • DELETE

Returns:

  • (String)

    Specify INSERT to add a Predicate to a Rule.

#predicateTypes::Predicate

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

Returns:

  • (Types::Predicate)

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