Class: AWSCDK::WAFv2::CfnRuleGroup::CaptchaConfigProperty

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

Overview

Specifies how AWS WAF should handle CAPTCHA evaluations.

This is available at the web ACL level and in each rule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(immunity_time_property: nil) ⇒ CaptchaConfigProperty

Returns a new instance of CaptchaConfigProperty.

Parameters:



996
997
998
999
# File 'wa_fv2/cfn_rule_group.rb', line 996

def initialize(immunity_time_property: nil)
  @immunity_time_property = immunity_time_property.is_a?(Hash) ? ::AWSCDK::WAFv2::CfnRuleGroup::ImmunityTimePropertyProperty.new(**immunity_time_property.transform_keys(&:to_sym)) : immunity_time_property
  Jsii::Type.check_type(@immunity_time_property, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193YWZ2Mi5DZm5SdWxlR3JvdXAuSW1tdW5pdHlUaW1lUHJvcGVydHlQcm9wZXJ0eSJ9XX19")), "immunityTimeProperty") unless @immunity_time_property.nil?
end

Instance Attribute Details

#immunity_time_propertyAWSCDK::IResolvable, ... (readonly)

Determines how long a CAPTCHA timestamp in the token remains valid after the client successfully solves a CAPTCHA puzzle.



1005
1006
1007
# File 'wa_fv2/cfn_rule_group.rb', line 1005

def immunity_time_property
  @immunity_time_property
end

Class Method Details

.jsii_propertiesObject



1007
1008
1009
1010
1011
# File 'wa_fv2/cfn_rule_group.rb', line 1007

def self.jsii_properties
  {
    :immunity_time_property => "immunityTimeProperty",
  }
end

Instance Method Details

#to_jsiiObject



1013
1014
1015
1016
1017
1018
1019
# File 'wa_fv2/cfn_rule_group.rb', line 1013

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