Class: AWSCDK::WAFv2::CfnWebACL::NotStatementProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnWebACL::NotStatementProperty
- 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
-
#statement ⇒ AWSCDK::IResolvable, AWSCDK::WAFv2::CfnWebACL::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.
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
#statement ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |