Class: AWSCDK::WAFv2::CfnWebACL::DataProtectProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wa_fv2/cfn_web_acl.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action:, field:, exclude_rate_based_details: nil, exclude_rule_match_details: nil) ⇒ DataProtectProperty

Returns a new instance of DataProtectProperty.

Parameters:



2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
# File 'wa_fv2/cfn_web_acl.rb', line 2200

def initialize(action:, field:, exclude_rate_based_details: nil, exclude_rule_match_details: nil)
  @action = action
  Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "action")
  @field = field.is_a?(Hash) ? ::AWSCDK::WAFv2::CfnWebACL::FieldToProtectProperty.new(**field.transform_keys(&:to_sym)) : field
  Jsii::Type.check_type(@field, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193YWZ2Mi5DZm5XZWJBQ0wuRmllbGRUb1Byb3RlY3RQcm9wZXJ0eSJ9XX19")), "field")
  @exclude_rate_based_details = exclude_rate_based_details
  Jsii::Type.check_type(@exclude_rate_based_details, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "excludeRateBasedDetails") unless @exclude_rate_based_details.nil?
  @exclude_rule_match_details = exclude_rule_match_details
  Jsii::Type.check_type(@exclude_rule_match_details, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "excludeRuleMatchDetails") unless @exclude_rule_match_details.nil?
end

Instance Attribute Details

#actionString (readonly)



2213
2214
2215
# File 'wa_fv2/cfn_web_acl.rb', line 2213

def action
  @action
end

#exclude_rate_based_detailsBoolean, ... (readonly)



2221
2222
2223
# File 'wa_fv2/cfn_web_acl.rb', line 2221

def exclude_rate_based_details
  @exclude_rate_based_details
end

#exclude_rule_match_detailsBoolean, ... (readonly)



2224
2225
2226
# File 'wa_fv2/cfn_web_acl.rb', line 2224

def exclude_rule_match_details
  @exclude_rule_match_details
end

Class Method Details

.jsii_propertiesObject



2226
2227
2228
2229
2230
2231
2232
2233
# File 'wa_fv2/cfn_web_acl.rb', line 2226

def self.jsii_properties
  {
    :action => "action",
    :field => "field",
    :exclude_rate_based_details => "excludeRateBasedDetails",
    :exclude_rule_match_details => "excludeRuleMatchDetails",
  }
end

Instance Method Details

#to_jsiiObject



2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
# File 'wa_fv2/cfn_web_acl.rb', line 2235

def to_jsii
  result = {}
  result.merge!({
    "action" => @action,
    "field" => @field,
    "excludeRateBasedDetails" => @exclude_rate_based_details,
    "excludeRuleMatchDetails" => @exclude_rule_match_details,
  })
  result.compact
end