Class: AWSCDK::WAFv2::CfnWebACL::CaptchaConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnWebACL::CaptchaConfigProperty
- Defined in:
- wa_fv2/cfn_web_acl.rb
Overview
Specifies how AWS WAF should handle CAPTCHA evaluations for rules that don't have their own CaptchaConfig settings.
If you don't specify this, AWS WAF uses its default settings for CaptchaConfig .
Instance Attribute Summary collapse
-
#immunity_time_property ⇒ AWSCDK::IResolvable, ...
readonly
Determines how long a
CAPTCHAtimestamp in the token remains valid after the client successfully solves aCAPTCHApuzzle.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(immunity_time_property: nil) ⇒ CaptchaConfigProperty
constructor
A new instance of CaptchaConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(immunity_time_property: nil) ⇒ CaptchaConfigProperty
Returns a new instance of CaptchaConfigProperty.
1552 1553 1554 1555 |
# File 'wa_fv2/cfn_web_acl.rb', line 1552 def initialize(immunity_time_property: nil) @immunity_time_property = immunity_time_property.is_a?(Hash) ? ::AWSCDK::WAFv2::CfnWebACL::ImmunityTimePropertyProperty.new(**immunity_time_property.transform_keys(&:to_sym)) : immunity_time_property Jsii::Type.check_type(@immunity_time_property, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193YWZ2Mi5DZm5XZWJBQ0wuSW1tdW5pdHlUaW1lUHJvcGVydHlQcm9wZXJ0eSJ9XX19")), "immunityTimeProperty") unless @immunity_time_property.nil? end |
Instance Attribute Details
#immunity_time_property ⇒ AWSCDK::IResolvable, ... (readonly)
Determines how long a CAPTCHA timestamp in the token remains valid after the client successfully solves a CAPTCHA puzzle.
1561 1562 1563 |
# File 'wa_fv2/cfn_web_acl.rb', line 1561 def immunity_time_property @immunity_time_property end |
Class Method Details
.jsii_properties ⇒ Object
1563 1564 1565 1566 1567 |
# File 'wa_fv2/cfn_web_acl.rb', line 1563 def self.jsii_properties { :immunity_time_property => "immunityTimeProperty", } end |
Instance Method Details
#to_jsii ⇒ Object
1569 1570 1571 1572 1573 1574 1575 |
# File 'wa_fv2/cfn_web_acl.rb', line 1569 def to_jsii result = {} result.merge!({ "immunityTimeProperty" => @immunity_time_property, }) result.compact end |