# RateLimitLabelNamespaceProperty

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](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-label-requirements.html) in the *AWS WAF Developer Guide* .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wafv2 as wafv2 } from 'aws-cdk-lib';
const rateLimitLabelNamespaceProperty: wafv2.CfnRuleGroup.RateLimitLabelNamespaceProperty = {
  namespace: 'namespace',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_wafv2 as wafv2

rate_limit_label_namespace_property = wafv2.CfnRuleGroup.RateLimitLabelNamespaceProperty(
    namespace="namespace"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.wafv2.*;

RateLimitLabelNamespaceProperty rateLimitLabelNamespaceProperty = RateLimitLabelNamespaceProperty.builder()
        .namespace("namespace")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFv2;

var rateLimitLabelNamespaceProperty = new RateLimitLabelNamespaceProperty {
    Namespace = "namespace"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rateLimitLabelNamespaceProperty := &RateLimitLabelNamespaceProperty{
	Namespace: jsii.String("namespace"),
}
```

## Properties

- `namespace`: string (required) — The namespace to use for aggregation.
