Class: AWSCDK::WAFv2::CfnRuleGroup::NotStatementProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(statement:) ⇒ NotStatementProperty

Returns a new instance of NotStatementProperty.

Parameters:



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

#statementAWSCDK::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_propertiesObject



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_jsiiObject



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