# RoleBinding Constructors

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [RoleBinding](/reference/api/csharp/aspire.hosting.kubernetes/rolebinding.md)
- Kind: `Constructors`
- Members: `1`

Represents a Kubernetes RoleBinding resource, binding a Role or ClusterRole to a set of subjects (users, groups, or service accounts).

## RoleBinding

- Name: `Constructor`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/RoleBindingV1.cs#L17-L40)

Represents a Kubernetes RoleBinding resource, binding a Role or ClusterRole to a set of subjects (users, groups, or service accounts).

```csharp
public sealed class RoleBinding
{
    public RoleBinding()
    {
        // ...
    }
}
```

## Remarks

A RoleBinding grants the permissions defined in a Role to specific users, groups, or service accounts within a namespace. It supports the inclusion of multiple subjects and references a single role through the RoleRef property. The RoleBinding resource is namespace-scoped and helps manage access control within the Kubernetes RBAC framework.
