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

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

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 UpdateRuleRequest data as a 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, SizeConstraint, XssMatch
        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)


3492
3493
3494
3495
3496
3497
# File 'gems/aws-sdk-wafregional/lib/aws-sdk-wafregional/types.rb', line 3492

class UpdateRuleRequest < Struct.new(
  :rule_id,
  :change_token,
  :updates)
  include Aws::Structure
end

#rule_idString

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

Returns:

  • (String)


3492
3493
3494
3495
3496
3497
# File 'gems/aws-sdk-wafregional/lib/aws-sdk-wafregional/types.rb', line 3492

class UpdateRuleRequest < Struct.new(
  :rule_id,
  :change_token,
  :updates)
  include Aws::Structure
end

#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:

  • RuleUpdate: Contains Action and Predicate

  • Predicate: Contains DataId, Negated, and Type

  • FieldToMatch: Contains Data and Type

Returns:



3492
3493
3494
3495
3496
3497
# File 'gems/aws-sdk-wafregional/lib/aws-sdk-wafregional/types.rb', line 3492

class UpdateRuleRequest < Struct.new(
  :rule_id,
  :change_token,
  :updates)
  include Aws::Structure
end