Class: AWSCDK::WAFv2::CfnWebACL::NotStatementProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wa_fv2/cfn_web_acl.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:



3822
3823
3824
3825
# File 'wa_fv2/cfn_web_acl.rb', line 3822

def initialize(statement:)
  @statement = statement.is_a?(Hash) ? ::AWSCDK::WAFv2::CfnWebACL::StatementProperty.new(**statement.transform_keys(&:to_sym)) : statement
  Jsii::Type.check_type(@statement, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193YWZ2Mi5DZm5XZWJBQ0wuU3RhdGVtZW50UHJvcGVydHkifV19fQ==")), "statement")
end

Instance Attribute Details

#statementAWSCDK::IResolvable, AWSCDK::WAFv2::CfnWebACL::StatementProperty (readonly)

The statement to negate.

You can use any statement that can be nested.



3833
3834
3835
# File 'wa_fv2/cfn_web_acl.rb', line 3833

def statement
  @statement
end

Class Method Details

.jsii_propertiesObject



3835
3836
3837
3838
3839
# File 'wa_fv2/cfn_web_acl.rb', line 3835

def self.jsii_properties
  {
    :statement => "statement",
  }
end

Instance Method Details

#to_jsiiObject



3841
3842
3843
3844
3845
3846
3847
# File 'wa_fv2/cfn_web_acl.rb', line 3841

def to_jsii
  result = {}
  result.merge!({
    "statement" => @statement,
  })
  result.compact
end