Class: AWSCDK::WAFv2::CfnRuleGroup::OrStatementProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnRuleGroup::OrStatementProperty
- Defined in:
- wa_fv2/cfn_rule_group.rb
Overview
A logical rule statement used to combine other rule statements with OR logic.
You provide more than one Statement within the OrStatement .
Instance Attribute Summary collapse
-
#statements ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::WAFv2::CfnRuleGroup::StatementProperty>
readonly
The statements to combine with OR logic.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(statements:) ⇒ OrStatementProperty
constructor
A new instance of OrStatementProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(statements:) ⇒ OrStatementProperty
Returns a new instance of OrStatementProperty.
2715 2716 2717 2718 |
# File 'wa_fv2/cfn_rule_group.rb', line 2715 def initialize(statements:) @statements = statements Jsii::Type.check_type(@statements, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2FmdjIuQ2ZuUnVsZUdyb3VwLlN0YXRlbWVudFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "statements") end |
Instance Attribute Details
#statements ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::WAFv2::CfnRuleGroup::StatementProperty> (readonly)
The statements to combine with OR logic.
You can use any statements that can be nested.
2726 2727 2728 |
# File 'wa_fv2/cfn_rule_group.rb', line 2726 def statements @statements end |
Class Method Details
.jsii_properties ⇒ Object
2728 2729 2730 2731 2732 |
# File 'wa_fv2/cfn_rule_group.rb', line 2728 def self.jsii_properties { :statements => "statements", } end |
Instance Method Details
#to_jsii ⇒ Object
2734 2735 2736 2737 2738 2739 2740 |
# File 'wa_fv2/cfn_rule_group.rb', line 2734 def to_jsii result = {} result.merge!({ "statements" => @statements, }) result.compact end |