Class RoleBinding

  • All Implemented Interfaces:
    IApiEndpoint, IApiResource, IResource, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

    @Generated(value="jsii-pacmak/1.59.0 (build eb02c92)",
               date="2022-05-18T23:19:48.654Z")
    @Stability(Stable)
    public class RoleBinding
    extends Resource
    A RoleBinding grants permissions within a specific namespace to a user or set of users.
    • 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 class Resource
        See Also:
        base.Resource.apiObject
      • getRole

        @Stability(Stable)
        @NotNull
        public IRole getRole()
      • getSubjects

        @Stability(Stable)
        @NotNull
        public List<ISubject> getSubjects()