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

Class: Aws::WAF::Types::SizeConstraintSetUpdate

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 SizeConstraintSetUpdate data as a hash:

{
  action: "INSERT", # required, accepts INSERT, DELETE
  size_constraint: { # required
    field_to_match: { # required
      type: "URI", # required, accepts URI, QUERY_STRING, HEADER, METHOD, BODY
      data: "MatchFieldData",
    },
    text_transformation: "NONE", # required, accepts NONE, COMPRESS_WHITE_SPACE, HTML_ENTITY_DECODE, LOWERCASE, CMD_LINE, URL_DECODE
    comparison_operator: "EQ", # required, accepts EQ, NE, LE, LT, GE, GT
    size: 1, # required
  },
}

Specifies the part of a web request that you want to inspect the size of and indicates whether you want to add the specification to a SizeConstraintSet or delete it from a SizeConstraintSet.

Instance Attribute Summary collapse

Instance Attribute Details

#actionString

Specify INSERT to add a SizeConstraintSetUpdate to a SizeConstraintSet. Use DELETE to remove a SizeConstraintSetUpdate from a SizeConstraintSet.

Returns:

  • (String)


4282
4283
4284
4285
4286
# File 'gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb', line 4282

class SizeConstraintSetUpdate < Struct.new(
  :action,
  :size_constraint)
  include Aws::Structure
end

#size_constraintTypes::SizeConstraint

Specifies a constraint on the size of a part of the web request. AWS WAF uses the Size, ComparisonOperator, and FieldToMatch to build an expression in the form of "Size ComparisonOperator size in bytes of FieldToMatch". If that expression is true, the SizeConstraint is considered to match.



4282
4283
4284
4285
4286
# File 'gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb', line 4282

class SizeConstraintSetUpdate < Struct.new(
  :action,
  :size_constraint)
  include Aws::Structure
end