Package org.cdk8s.plus24.k8s
Class KubeRoleBinding
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- org.cdk8s.ApiObject
-
- org.cdk8s.plus24.k8s.KubeRoleBinding
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.80.0 (build bce6a1d)", date="2023-05-06T02:23:10.934Z") @Stability(Stable) public class KubeRoleBinding extends org.cdk8s.ApiObject
RoleBinding references a role, but does not contain it.It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KubeRoleBinding.Builder
A fluent builder forKubeRoleBinding
.
-
Field Summary
Fields Modifier and Type Field Description static org.cdk8s.GroupVersionKind
GVK
Returns the apiVersion and kind for "io.k8s.api.rbac.v1.RoleBinding".
-
Constructor Summary
Constructors Modifier Constructor Description protected
KubeRoleBinding(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected
KubeRoleBinding(software.amazon.jsii.JsiiObjectRef objRef)
KubeRoleBinding(software.constructs.Construct scope, String id, KubeRoleBindingProps props)
Defines a "io.k8s.api.rbac.v1.RoleBinding" API object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Object
manifest(KubeRoleBindingProps props)
Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.RoleBinding".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
-
KubeRoleBinding
protected KubeRoleBinding(software.amazon.jsii.JsiiObjectRef objRef)
-
KubeRoleBinding
protected KubeRoleBinding(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
KubeRoleBinding
@Stability(Stable) public KubeRoleBinding(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull KubeRoleBindingProps props)
Defines a "io.k8s.api.rbac.v1.RoleBinding" 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 KubeRoleBindingProps props)
Renders a Kubernetes manifest for "io.k8s.api.rbac.v1.RoleBinding".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
-
-