Class KubeClusterRoleBinding.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static KubeClusterRoleBinding.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 KubeClusterRoleBinding.Builder.
      • roleRef

        @Stability(Stable)
        public KubeClusterRoleBinding.Builder roleRef​(RoleRef roleRef)
        RoleRef can only reference a ClusterRole in the global namespace.

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

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

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

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

        @Stability(Stable)
        public KubeClusterRoleBinding.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