# AggregationRuleV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/AggregationRuleV1.cs)

Represents an aggregation rule for ClusterRoles in a Kubernetes environment. Aggregation rules allow defining how to aggregate multiple cluster roles for easier role-based access control (RBAC) management.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class AggregationRuleV1
{
    // ...
}
```

## Constructors

- [AggregationRuleV1](/reference/api/csharp/aspire.hosting.kubernetes/aggregationrulev1/constructors.md#constructor)

## Properties

- [ClusterRoleSelectors](/reference/api/csharp/aspire.hosting.kubernetes/aggregationrulev1/properties.md#clusterroleselectors) : [List<LabelSelectorV1>](/reference/api/csharp/aspire.hosting.kubernetes/labelselectorv1.md) `get` -- Represents a collection of label selectors used to specify the aggregation behavior for cluster roles. Each label selector in the collection defines criteria to match certain cluster roles, allowing aggregation of permissions across multiple roles.
