Class: AWSCDK::WAFv2::CfnRuleGroup::RateLimitLabelNamespaceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnRuleGroup::RateLimitLabelNamespaceProperty
- Defined in:
- wa_fv2/cfn_rule_group.rb
Overview
Specifies a label namespace to use as an aggregate key for a rate-based rule.
Each distinct fully qualified label name that has the specified label namespace contributes to the aggregation instance. If you use just one label namespace as your custom key, then each label name fully defines an aggregation instance.
This uses only labels that have been added to the request by rules that are evaluated before this rate-based rule in the web ACL.
For information about label namespaces and names, see Label syntax and naming requirements in the AWS WAF Developer Guide .
Instance Attribute Summary collapse
-
#namespace ⇒ String
readonly
The namespace to use for aggregation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(namespace:) ⇒ RateLimitLabelNamespaceProperty
constructor
A new instance of RateLimitLabelNamespaceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(namespace:) ⇒ RateLimitLabelNamespaceProperty
Returns a new instance of RateLimitLabelNamespaceProperty.
3369 3370 3371 3372 |
# File 'wa_fv2/cfn_rule_group.rb', line 3369 def initialize(namespace:) @namespace = namespace Jsii::Type.check_type(@namespace, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "namespace") end |
Instance Attribute Details
#namespace ⇒ String (readonly)
The namespace to use for aggregation.
3378 3379 3380 |
# File 'wa_fv2/cfn_rule_group.rb', line 3378 def namespace @namespace end |
Class Method Details
.jsii_properties ⇒ Object
3380 3381 3382 3383 3384 |
# File 'wa_fv2/cfn_rule_group.rb', line 3380 def self.jsii_properties { :namespace => "namespace", } end |
Instance Method Details
#to_jsii ⇒ Object
3386 3387 3388 3389 3390 3391 3392 |
# File 'wa_fv2/cfn_rule_group.rb', line 3386 def to_jsii result = {} result.merge!({ "namespace" => @namespace, }) result.compact end |