Class: AWSCDK::WAFv2::CfnRuleGroup::TextTransformationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wa_fv2/cfn_rule_group.rb

Overview

Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(priority:, type:) ⇒ TextTransformationProperty

Returns a new instance of TextTransformationProperty.

Parameters:

  • priority (Numeric)

    Sets the relative processing order for multiple transformations.

  • type (String)

    For detailed descriptions of each of the transformation types, see Text transformations in the AWS WAF Developer Guide .



4328
4329
4330
4331
4332
4333
# File 'wa_fv2/cfn_rule_group.rb', line 4328

def initialize(priority:, type:)
  @priority = priority
  Jsii::Type.check_type(@priority, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "priority")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#priorityNumeric (readonly)

Sets the relative processing order for multiple transformations.

AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. The priorities don't need to be consecutive, but they must all be different.



4341
4342
4343
# File 'wa_fv2/cfn_rule_group.rb', line 4341

def priority
  @priority
end

#typeString (readonly)

For detailed descriptions of each of the transformation types, see Text transformations in the AWS WAF Developer Guide .



4346
4347
4348
# File 'wa_fv2/cfn_rule_group.rb', line 4346

def type
  @type
end

Class Method Details

.jsii_propertiesObject



4348
4349
4350
4351
4352
4353
# File 'wa_fv2/cfn_rule_group.rb', line 4348

def self.jsii_properties
  {
    :priority => "priority",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



4355
4356
4357
4358
4359
4360
4361
4362
# File 'wa_fv2/cfn_rule_group.rb', line 4355

def to_jsii
  result = {}
  result.merge!({
    "priority" => @priority,
    "type" => @type,
  })
  result.compact
end