Class: AWSCDK::WAFv2::CfnRuleGroup::NotStatementProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnRuleGroup::NotStatementProperty
- Defined in:
- wa_fv2/cfn_rule_group.rb
Overview
A logical rule statement used to negate the results of another rule statement.
You provide one Statement within the NotStatement .
Instance Attribute Summary collapse
-
#statement ⇒ AWSCDK::IResolvable, AWSCDK::WAFv2::CfnRuleGroup::StatementProperty
readonly
The statement to negate.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(statement:) ⇒ NotStatementProperty
constructor
A new instance of NotStatementProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(statement:) ⇒ NotStatementProperty
Returns a new instance of NotStatementProperty.
2678 2679 2680 2681 |
# File 'wa_fv2/cfn_rule_group.rb', line 2678 def initialize(statement:) @statement = statement.is_a?(Hash) ? ::AWSCDK::WAFv2::CfnRuleGroup::StatementProperty.new(**statement.transform_keys(&:to_sym)) : statement Jsii::Type.check_type(@statement, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193YWZ2Mi5DZm5SdWxlR3JvdXAuU3RhdGVtZW50UHJvcGVydHkifV19fQ==")), "statement") end |
Instance Attribute Details
#statement ⇒ AWSCDK::IResolvable, AWSCDK::WAFv2::CfnRuleGroup::StatementProperty (readonly)
The statement to negate.
You can use any statement that can be nested.
2689 2690 2691 |
# File 'wa_fv2/cfn_rule_group.rb', line 2689 def statement @statement end |
Class Method Details
.jsii_properties ⇒ Object
2691 2692 2693 2694 2695 |
# File 'wa_fv2/cfn_rule_group.rb', line 2691 def self.jsii_properties { :statement => "statement", } end |
Instance Method Details
#to_jsii ⇒ Object
2697 2698 2699 2700 2701 2702 2703 |
# File 'wa_fv2/cfn_rule_group.rb', line 2697 def to_jsii result = {} result.merge!({ "statement" => @statement, }) result.compact end |