Package org.cdk8s.plus24
Class ClusterRoleBinding
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- org.cdk8s.plus24.Resource
-
- org.cdk8s.plus24.ClusterRoleBinding
-
- All Implemented Interfaces:
IApiEndpoint
,IApiResource
,IResource
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-02-04T02:31:04.747Z") @Stability(Stable) public class ClusterRoleBinding extends Resource
A ClusterRoleBinding grants permissions cluster-wide to a user or set of users.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClusterRoleBinding.Builder
A fluent builder forClusterRoleBinding
.-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.IApiEndpoint
IApiEndpoint.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.IApiResource
IApiResource.Jsii$Default
-
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.IResource
IResource.Jsii$Default
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ClusterRoleBinding(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected
ClusterRoleBinding(software.amazon.jsii.JsiiObjectRef objRef)
ClusterRoleBinding(software.constructs.Construct scope, String id, ClusterRoleBindingProps props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSubjects(@NotNull ISubject... subjects)
Adds a subject to the role.protected org.cdk8s.ApiObject
getApiObject()
The underlying cdk8s API object.String
getResourceType()
The name of a resource type as it appears in the relevant API endpoint.IClusterRole
getRole()
List<ISubject>
getSubjects()
-
Methods inherited from class org.cdk8s.plus24.Resource
asApiResource, asNonApiResource, getApiGroup, getApiVersion, getKind, getMetadata, getName, getPermissions, getResourceName
-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
ClusterRoleBinding
protected ClusterRoleBinding(software.amazon.jsii.JsiiObjectRef objRef)
-
ClusterRoleBinding
protected ClusterRoleBinding(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
ClusterRoleBinding
@Stability(Stable) public ClusterRoleBinding(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ClusterRoleBindingProps props)
- Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Detail
-
addSubjects
@Stability(Stable) public void addSubjects(@NotNull @NotNull ISubject... subjects)
Adds a subject to the role.- Parameters:
subjects
- The subjects to add. This parameter is required.
-
getApiObject
@Stability(Stable) @NotNull protected org.cdk8s.ApiObject getApiObject()
The underlying cdk8s API object.- Specified by:
getApiObject
in classResource
- See Also:
- base.Resource.apiObject
-
getResourceType
@Stability(Stable) @NotNull public String getResourceType()
The name of a resource type as it appears in the relevant API endpoint.- Specified by:
getResourceType
in interfaceIApiResource
- Specified by:
getResourceType
in classResource
- See Also:
- https://kubernetes.io/docs/reference/access-authn-authz/rbac/#referring-to-resources
-
getRole
@Stability(Stable) @NotNull public IClusterRole getRole()
-
-