Class: AWSCDK::WAFv2::CfnWebACL::DataProtectProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnWebACL::DataProtectProperty
- Defined in:
- wa_fv2/cfn_web_acl.rb
Overview
Instance Attribute Summary collapse
- #action ⇒ String readonly
- #exclude_rate_based_details ⇒ Boolean, ... readonly
- #exclude_rule_match_details ⇒ Boolean, ... readonly
-
#field ⇒ AWSCDK::IResolvable, AWSCDK::WAFv2::CfnWebACL::FieldToProtectProperty
readonly
Field in log to protect.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action:, field:, exclude_rate_based_details: nil, exclude_rule_match_details: nil) ⇒ DataProtectProperty
constructor
A new instance of DataProtectProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(action:, field:, exclude_rate_based_details: nil, exclude_rule_match_details: nil) ⇒ DataProtectProperty
Returns a new instance of DataProtectProperty.
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
#action ⇒ String (readonly)
2213 2214 2215 |
# File 'wa_fv2/cfn_web_acl.rb', line 2213 def action @action end |
#exclude_rate_based_details ⇒ Boolean, ... (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_details ⇒ Boolean, ... (readonly)
2224 2225 2226 |
# File 'wa_fv2/cfn_web_acl.rb', line 2224 def exclude_rule_match_details @exclude_rule_match_details end |
#field ⇒ AWSCDK::IResolvable, AWSCDK::WAFv2::CfnWebACL::FieldToProtectProperty (readonly)
Field in log to protect.
2218 2219 2220 |
# File 'wa_fv2/cfn_web_acl.rb', line 2218 def field @field end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |