Class: AWSCDK::WAFv2::CfnWebACL::JA3FingerprintProperty

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

Overview

Available for use with Amazon CloudFront distributions and Application Load Balancers.

Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello information for the calculation. Almost all web requests include this information.

You can use this choice only with a string match ByteMatchStatement with the PositionalConstraint set to EXACTLY .

You can obtain the JA3 fingerprint for client requests from the web ACL logs. If AWS WAF is able to calculate the fingerprint, it includes it in the logs. For information about the logging fields, see Log fields in the AWS WAF Developer Guide .

Provide the JA3 fingerprint string from the logs in your string match statement specification, to match with any future requests that have the same TLS configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fallback_behavior:) ⇒ JA3FingerprintProperty

Returns a new instance of JA3FingerprintProperty.

Parameters:

  • fallback_behavior (String)

    The match status to assign to the web request if the request doesn't have a JA3 fingerprint.



3172
3173
3174
3175
# File 'wa_fv2/cfn_web_acl.rb', line 3172

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 the request doesn't have a JA3 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.


3186
3187
3188
# File 'wa_fv2/cfn_web_acl.rb', line 3186

def fallback_behavior
  @fallback_behavior
end

Class Method Details

.jsii_propertiesObject



3188
3189
3190
3191
3192
# File 'wa_fv2/cfn_web_acl.rb', line 3188

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

Instance Method Details

#to_jsiiObject



3194
3195
3196
3197
3198
3199
3200
# File 'wa_fv2/cfn_web_acl.rb', line 3194

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