# Role Properties

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

Defines a Kubernetes Role resource within the "rbac.authorization.k8s.io/v1" API group.

## Rules

- Name: `Rules`
- Modifiers: `get`
- Returns: [List<PolicyRuleV1>](/reference/api/csharp/aspire.hosting.kubernetes/policyrulev1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/RoleV1.cs#L32)

Represents the list of policy rules associated with a Kubernetes Role resource.

```csharp
public List<PolicyRuleV1> Rules { get; }
```

## Remarks

The Rules property defines the set of permissions assigned to the Role in the form of policy rules. Each rule specifies which actions are permitted or denied for particular resources, resource names, API groups, verbs, or non-resource URLs. The property is a collection of [PolicyRuleV1](/reference/api/csharp/aspire.hosting.kubernetes/policyrulev1.md) objects and dictates the Role's scope and access within the Kubernetes environment.
