Package org.cdk8s.plus25.k8s
Interface PolicyRulesWithSubjectsV1Beta2
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PolicyRulesWithSubjectsV1Beta2.Jsii$Proxy
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.778Z") @Stability(Stable) public interface PolicyRulesWithSubjectsV1Beta2 extends software.amazon.jsii.JsiiSerializable
PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver.The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPolicyRulesWithSubjectsV1Beta2.BuilderA builder forPolicyRulesWithSubjectsV1Beta2static classPolicyRulesWithSubjectsV1Beta2.Jsii$ProxyAn implementation forPolicyRulesWithSubjectsV1Beta2
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static PolicyRulesWithSubjectsV1Beta2.Builderbuilder()default List<NonResourcePolicyRuleV1Beta2>getNonResourceRules()nonResourceRulesis a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.default List<ResourcePolicyRuleV1Beta2>getResourceRules()resourceRulesis a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource.List<SubjectV1Beta2>getSubjects()subjects is the list of normal user, serviceaccount, or group that this rule cares about.
-
-
-
Method Detail
-
getSubjects
@Stability(Stable) @NotNull List<SubjectV1Beta2> getSubjects()
subjects is the list of normal user, serviceaccount, or group that this rule cares about.There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.
-
getNonResourceRules
@Stability(Stable) @Nullable default List<NonResourcePolicyRuleV1Beta2> getNonResourceRules()
nonResourceRulesis a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.
-
getResourceRules
@Stability(Stable) @Nullable default List<ResourcePolicyRuleV1Beta2> getResourceRules()
resourceRulesis a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource.At least one of
resourceRulesandnonResourceRuleshas to be non-empty.
-
builder
@Stability(Stable) static PolicyRulesWithSubjectsV1Beta2.Builder builder()
-
-