Class: AWSCDK::WAFv2::CfnWebACL::RateLimitJA4FingerprintProperty

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

Overview

Use the request's JA4 fingerprint derived from the TLS Client Hello of an incoming request as an aggregate key.

If you use a single JA4 fingerprint as your custom key, then each value fully defines an aggregation instance.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fallback_behavior:) ⇒ RateLimitJA4FingerprintProperty

Returns a new instance of RateLimitJA4FingerprintProperty.

Parameters:

  • fallback_behavior (String)

    The match status to assign to the web request if there is insufficient TSL Client Hello information to compute the JA4 fingerprint.



4557
4558
4559
4560
# File 'wa_fv2/cfn_web_acl.rb', line 4557

def initialize(fallback_behavior:)
  @fallback_behavior = fallback_behavior
  Jsii::Type.check_type(@fallback_behavior, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fallbackBehavior")
end

Instance Attribute Details

#fallback_behaviorString (readonly)

The match status to assign to the web request if there is insufficient TSL Client Hello information to compute the JA4 fingerprint.

You can specify the following fallback behaviors:

  • MATCH - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
  • NO_MATCH - Treat the web request as not matching the rule statement.


4571
4572
4573
# File 'wa_fv2/cfn_web_acl.rb', line 4571

def fallback_behavior
  @fallback_behavior
end

Class Method Details

.jsii_propertiesObject



4573
4574
4575
4576
4577
# File 'wa_fv2/cfn_web_acl.rb', line 4573

def self.jsii_properties
  {
    :fallback_behavior => "fallbackBehavior",
  }
end

Instance Method Details

#to_jsiiObject



4579
4580
4581
4582
4583
4584
4585
# File 'wa_fv2/cfn_web_acl.rb', line 4579

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