Share via


Role.Rules Property

Definition

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

[YamlDotNet.Serialization.YamlMember(Alias="rules")]
public System.Collections.Generic.List<Aspire.Hosting.Kubernetes.Resources.PolicyRuleV1> Rules { get; }
[<YamlDotNet.Serialization.YamlMember(Alias="rules")>]
member this.Rules : System.Collections.Generic.List<Aspire.Hosting.Kubernetes.Resources.PolicyRuleV1>
Public ReadOnly Property Rules As List(Of PolicyRuleV1)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

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 objects and dictates the Role's scope and access within the Kubernetes environment.

Applies to