Class: AWSCDK::WAFv2::CfnWebACL::TextTransformationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wa_fv2/cfn_web_acl.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 .



6345
6346
6347
6348
6349
6350
# File 'wa_fv2/cfn_web_acl.rb', line 6345

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.



6358
6359
6360
# File 'wa_fv2/cfn_web_acl.rb', line 6358

def priority
  @priority
end

#typeString (readonly)

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



6363
6364
6365
# File 'wa_fv2/cfn_web_acl.rb', line 6363

def type
  @type
end

Class Method Details

.jsii_propertiesObject



6365
6366
6367
6368
6369
6370
# File 'wa_fv2/cfn_web_acl.rb', line 6365

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

Instance Method Details

#to_jsiiObject



6372
6373
6374
6375
6376
6377
6378
6379
# File 'wa_fv2/cfn_web_acl.rb', line 6372

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