Class: AWSCDK::WAFv2::CfnWebACL::RateLimitLabelNamespaceProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(namespace:) ⇒ RateLimitLabelNamespaceProperty

Returns a new instance of RateLimitLabelNamespaceProperty.

Parameters:

  • namespace (String)

    The namespace to use for aggregation.



4601
4602
4603
4604
# File 'wa_fv2/cfn_web_acl.rb', line 4601

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

Instance Attribute Details

#namespaceString (readonly)

The namespace to use for aggregation.



4610
4611
4612
# File 'wa_fv2/cfn_web_acl.rb', line 4610

def namespace
  @namespace
end

Class Method Details

.jsii_propertiesObject



4612
4613
4614
4615
4616
# File 'wa_fv2/cfn_web_acl.rb', line 4612

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

Instance Method Details

#to_jsiiObject



4618
4619
4620
4621
4622
4623
4624
# File 'wa_fv2/cfn_web_acl.rb', line 4618

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