Package org.cdk8s.plus24.k8s
Class KubeSelfSubjectRulesReview
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- org.cdk8s.ApiObject
-
- org.cdk8s.plus24.k8s.KubeSelfSubjectRulesReview
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.82.0 (build 2d2ddd7)", date="2023-05-25T02:26:40.976Z") @Stability(Stable) public class KubeSelfSubjectRulesReview extends org.cdk8s.ApiObject
SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace.The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KubeSelfSubjectRulesReview.Builder
A fluent builder forKubeSelfSubjectRulesReview
.
-
Field Summary
Fields Modifier and Type Field Description static org.cdk8s.GroupVersionKind
GVK
Returns the apiVersion and kind for "io.k8s.api.authorization.v1.SelfSubjectRulesReview".
-
Constructor Summary
Constructors Modifier Constructor Description protected
KubeSelfSubjectRulesReview(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected
KubeSelfSubjectRulesReview(software.amazon.jsii.JsiiObjectRef objRef)
KubeSelfSubjectRulesReview(software.constructs.Construct scope, String id, KubeSelfSubjectRulesReviewProps props)
Defines a "io.k8s.api.authorization.v1.SelfSubjectRulesReview" API object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Object
manifest(KubeSelfSubjectRulesReviewProps props)
Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.SelfSubjectRulesReview".Object
toJson()
Renders the object to Kubernetes JSON.-
Methods inherited from class org.cdk8s.ApiObject
addDependency, addJsonPatch, getApiGroup, getApiVersion, getChart, getKind, getMetadata, getName, isApiObject, of
-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
KubeSelfSubjectRulesReview
protected KubeSelfSubjectRulesReview(software.amazon.jsii.JsiiObjectRef objRef)
-
KubeSelfSubjectRulesReview
protected KubeSelfSubjectRulesReview(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
KubeSelfSubjectRulesReview
@Stability(Stable) public KubeSelfSubjectRulesReview(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull KubeSelfSubjectRulesReviewProps props)
Defines a "io.k8s.api.authorization.v1.SelfSubjectRulesReview" API object.- Parameters:
scope
- the scope in which to define this object. This parameter is required.id
- a scope-local name for the object. This parameter is required.props
- initialization props. This parameter is required.
-
-
Method Detail
-
manifest
@Stability(Stable) @NotNull public static Object manifest(@NotNull KubeSelfSubjectRulesReviewProps props)
Renders a Kubernetes manifest for "io.k8s.api.authorization.v1.SelfSubjectRulesReview".This can be used to inline resource manifests inside other objects (e.g. as templates).
- Parameters:
props
- initialization props. This parameter is required.
-
toJson
@Stability(Stable) @NotNull public Object toJson()
Renders the object to Kubernetes JSON.- Overrides:
toJson
in classorg.cdk8s.ApiObject
-
-