Class: AWSCDK::WAFRegional::CfnWebACL::ActionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
waf_regional/cfn_web_acl.rb

Overview

Specifies the action AWS WAF takes when a web request matches or doesn't match all rule conditions.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:) ⇒ ActionProperty

Returns a new instance of ActionProperty.

Parameters:

  • type (String)

    For actions that are associated with a rule, the action that AWS WAF takes when a web request matches all conditions in a rule.



553
554
555
556
# File 'waf_regional/cfn_web_acl.rb', line 553

def initialize(type:)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#typeString (readonly)

For actions that are associated with a rule, the action that AWS WAF takes when a web request matches all conditions in a rule.

For the default action of a web access control list (ACL), the action that AWS WAF takes when a web request doesn't match all conditions in any rule.

Valid settings include the following:

  • ALLOW : AWS WAF allows requests
  • BLOCK : AWS WAF blocks requests
  • COUNT : AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify COUNT for the default action for a WebACL.


570
571
572
# File 'waf_regional/cfn_web_acl.rb', line 570

def type
  @type
end

Class Method Details

.jsii_propertiesObject



572
573
574
575
576
# File 'waf_regional/cfn_web_acl.rb', line 572

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

Instance Method Details

#to_jsiiObject



578
579
580
581
582
583
584
# File 'waf_regional/cfn_web_acl.rb', line 578

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