Package org.cdk8s.plus24
Class RoleBinding
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.constructs.Construct
-
- org.cdk8s.plus24.Resource
-
- org.cdk8s.plus24.RoleBinding
-
- All Implemented Interfaces:
IApiEndpoint
,IApiResource
,IResource
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.75.0 (build 63bb957)", date="2023-02-20T02:42:01.938Z") @Stability(Stable) public class RoleBinding extends Resource
A RoleBinding grants permissions within a specific namespace to a user or set of users.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RoleBinding.Builder
A fluent builder forRoleBinding
.-
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
RoleBinding(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected
RoleBinding(software.amazon.jsii.JsiiObjectRef objRef)
RoleBinding(software.constructs.Construct scope, String id, RoleBindingProps 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.IRole
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
-
RoleBinding
protected RoleBinding(software.amazon.jsii.JsiiObjectRef objRef)
-
RoleBinding
protected RoleBinding(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
RoleBinding
@Stability(Stable) public RoleBinding(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull RoleBindingProps 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 IRole getRole()
-
-