Class: AWSCDK::WAFv2::CfnRuleGroup::BlockProperty

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

Overview

Block traffic towards application.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(custom_response: nil) ⇒ BlockProperty

Returns a new instance of BlockProperty.

Parameters:



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_responseAWSCDK::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_propertiesObject



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_jsiiObject



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