Class: AWSCDK::WAFv2::CfnRuleGroup::ImmunityTimePropertyProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(immunity_time:) ⇒ ImmunityTimePropertyProperty

Returns a new instance of ImmunityTimePropertyProperty.

Parameters:

  • immunity_time (Numeric)

    The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by AWS WAF .



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_timeNumeric (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_propertiesObject



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_jsiiObject



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