Class KubeRoleBinding.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static KubeRoleBinding.Builder create​(software.constructs.Construct scope,
                                                     String id)
        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.
        Returns:
        a new instance of KubeRoleBinding.Builder.
      • roleRef

        @Stability(Stable)
        public KubeRoleBinding.Builder roleRef​(RoleRef roleRef)
        RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace.

        If the RoleRef cannot be resolved, the Authorizer must return an error.

        Parameters:
        roleRef - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. This parameter is required.
        Returns:
        this
      • metadata

        @Stability(Stable)
        public KubeRoleBinding.Builder metadata​(ObjectMeta metadata)
        Standard object's metadata.

        Parameters:
        metadata - Standard object's metadata. This parameter is required.
        Returns:
        this
      • subjects

        @Stability(Stable)
        public KubeRoleBinding.Builder subjects​(List<? extends Subject> subjects)
        Subjects holds references to the objects the role applies to.

        Parameters:
        subjects - Subjects holds references to the objects the role applies to. This parameter is required.
        Returns:
        this