Class: AWSCDK::WAFv2::CfnRuleGroup::ImmunityTimePropertyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnRuleGroup::ImmunityTimePropertyProperty
- Defined in:
- wa_fv2/cfn_rule_group.rb
Overview
Used for CAPTCHA and challenge token settings.
Determines how long a CAPTCHA or challenge timestamp remains valid after AWS WAF updates it for a successful CAPTCHA or challenge response.
Instance Attribute Summary collapse
-
#immunity_time ⇒ Numeric
readonly
The amount of time, in seconds, that a
CAPTCHAor challenge timestamp is considered valid by AWS WAF .
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(immunity_time:) ⇒ ImmunityTimePropertyProperty
constructor
A new instance of ImmunityTimePropertyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(immunity_time:) ⇒ ImmunityTimePropertyProperty
Returns a new instance of ImmunityTimePropertyProperty.
2192 2193 2194 2195 |
# File 'wa_fv2/cfn_rule_group.rb', line 2192 def initialize(immunity_time:) @immunity_time = immunity_time Jsii::Type.check_type(@immunity_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "immunityTime") end |
Instance Attribute Details
#immunity_time ⇒ Numeric (readonly)
The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF .
The default setting is 300.
For the Challenge action, the minimum setting is 300.
2205 2206 2207 |
# File 'wa_fv2/cfn_rule_group.rb', line 2205 def immunity_time @immunity_time end |
Class Method Details
.jsii_properties ⇒ Object
2207 2208 2209 2210 2211 |
# File 'wa_fv2/cfn_rule_group.rb', line 2207 def self.jsii_properties { :immunity_time => "immunityTime", } end |
Instance Method Details
#to_jsii ⇒ Object
2213 2214 2215 2216 2217 2218 2219 |
# File 'wa_fv2/cfn_rule_group.rb', line 2213 def to_jsii result = {} result.merge!({ "immunityTime" => @immunity_time, }) result.compact end |