Class KubeClusterRole.Builder

    • Method Detail

      • create

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

        @Stability(Stable)
        public KubeClusterRole.Builder aggregationRule​(AggregationRule aggregationRule)
        AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.

        If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.

        Parameters:
        aggregationRule - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. This parameter is required.
        Returns:
        this
      • metadata

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

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

        @Stability(Stable)
        public KubeClusterRole.Builder rules​(List<? extends PolicyRule> rules)
        Rules holds all the PolicyRules for this ClusterRole.

        Parameters:
        rules - Rules holds all the PolicyRules for this ClusterRole. This parameter is required.
        Returns:
        this