Class: AWSCDK::WAFv2::CfnWebACL::ImmunityTimePropertyProperty

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

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 .



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_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.



3140
3141
3142
# File 'wa_fv2/cfn_web_acl.rb', line 3140

def immunity_time
  @immunity_time
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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