Class: AWSCDK::WAFv2::CfnWebACL::ImmunityTimePropertyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnWebACL::ImmunityTimePropertyProperty
- Defined in:
- wa_fv2/cfn_web_acl.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.
3127 3128 3129 3130 |
# File 'wa_fv2/cfn_web_acl.rb', line 3127 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.
3140 3141 3142 |
# File 'wa_fv2/cfn_web_acl.rb', line 3140 def immunity_time @immunity_time end |
Class Method Details
.jsii_properties ⇒ Object
3142 3143 3144 3145 3146 |
# File 'wa_fv2/cfn_web_acl.rb', line 3142 def self.jsii_properties { :immunity_time => "immunityTime", } end |
Instance Method Details
#to_jsii ⇒ Object
3148 3149 3150 3151 3152 3153 3154 |
# File 'wa_fv2/cfn_web_acl.rb', line 3148 def to_jsii result = {} result.merge!({ "immunityTime" => @immunity_time, }) result.compact end |