Project Label Args
data class ProjectLabelArgs(val color: Output<String>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<ProjectLabelArgs>
The gitlab.ProjectLabel
resource allows to manage the lifecycle of a project label. Upstream API: GitLab REST API docs
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.ProjectLabel;
import com.pulumi.gitlab.ProjectLabelArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var fixme = new ProjectLabel("fixme", ProjectLabelArgs.builder()
.project("example")
.description("issue with failing tests")
.color("#ffcc00")
.build());
var devopsCreate = new ProjectLabel("devopsCreate", ProjectLabelArgs.builder()
.project(gitlab_project.example().id())
.description("issue for creating infrastructure resources")
.color("#ffa500")
.build());
}
}
Content copied to clipboard
Import
Gitlab Project labels can be imported using an id made up of {project_id}:{group_label_id}
, e.g.
$ pulumi import gitlab:index/projectLabel:ProjectLabel example 12345:fixme
Content copied to clipboard
Constructors
Link copied to clipboard
fun ProjectLabelArgs(color: Output<String>? = null, description: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null)
Functions
Properties
Link copied to clipboard
The color of the label given in 6-digit hex notation with leading '#' sign (e.g. #FFAABB) or one of the CSS color names.
Link copied to clipboard