Class: AWSCDK::WAFv2::CfnRuleGroup::BlockProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnRuleGroup::BlockProperty
- Defined in:
- wa_fv2/cfn_rule_group.rb
Overview
Block traffic towards application.
Instance Attribute Summary collapse
-
#custom_response ⇒ AWSCDK::IResolvable, ...
readonly
Custom response.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(custom_response: nil) ⇒ BlockProperty
constructor
A new instance of BlockProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(custom_response: nil) ⇒ BlockProperty
Returns a new instance of BlockProperty.
796 797 798 799 |
# File 'wa_fv2/cfn_rule_group.rb', line 796 def initialize(custom_response: nil) @custom_response = custom_response.is_a?(Hash) ? ::AWSCDK::WAFv2::CfnRuleGroup::CustomResponseProperty.new(**custom_response.transform_keys(&:to_sym)) : custom_response Jsii::Type.check_type(@custom_response, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193YWZ2Mi5DZm5SdWxlR3JvdXAuQ3VzdG9tUmVzcG9uc2VQcm9wZXJ0eSJ9XX19")), "customResponse") unless @custom_response.nil? end |
Instance Attribute Details
#custom_response ⇒ AWSCDK::IResolvable, ... (readonly)
Custom response.
805 806 807 |
# File 'wa_fv2/cfn_rule_group.rb', line 805 def custom_response @custom_response end |
Class Method Details
.jsii_properties ⇒ Object
807 808 809 810 811 |
# File 'wa_fv2/cfn_rule_group.rb', line 807 def self.jsii_properties { :custom_response => "customResponse", } end |
Instance Method Details
#to_jsii ⇒ Object
813 814 815 816 817 818 819 |
# File 'wa_fv2/cfn_rule_group.rb', line 813 def to_jsii result = {} result.merge!({ "customResponse" => @custom_response, }) result.compact end |