Class: AWSCDK::WAFv2::CfnWebACL::TextTransformationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnWebACL::TextTransformationProperty
- 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
-
#priority ⇒ Numeric
readonly
Sets the relative processing order for multiple transformations.
-
#type ⇒ String
readonly
For detailed descriptions of each of the transformation types, see Text transformations in the AWS WAF Developer Guide .
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(priority:, type:) ⇒ TextTransformationProperty
constructor
A new instance of TextTransformationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(priority:, type:) ⇒ TextTransformationProperty
Returns a new instance of TextTransformationProperty.
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
#priority ⇒ Numeric (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 |
#type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |