ProjectCustomAttributeArgs

data class ProjectCustomAttributeArgs(val key: Output<String>? = null, val project: Output<Int>? = null, val value: Output<String>? = null) : ConvertibleToJava<ProjectCustomAttributeArgs>

The gitlab.ProjectCustomAttribute resource allows to manage custom attributes for a project. 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.ProjectCustomAttribute;
import com.pulumi.gitlab.ProjectCustomAttributeArgs;
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 attr = new ProjectCustomAttribute("attr", ProjectCustomAttributeArgs.builder()
.key("location")
.project("42")
.value("Greenland")
.build());
}
}

Import

You can import a project custom attribute using an id made up of {project-id}:{key}, e.g.

$ pulumi import gitlab:index/projectCustomAttribute:ProjectCustomAttribute attr 42:location

Constructors

Link copied to clipboard
constructor(key: Output<String>? = null, project: Output<Int>? = null, value: Output<String>? = null)

Properties

Link copied to clipboard
val key: Output<String>? = null

Key for the Custom Attribute.

Link copied to clipboard
val project: Output<Int>? = null

The id of the project.

Link copied to clipboard
val value: Output<String>? = null

Value for the Custom Attribute.

Functions

Link copied to clipboard
open override fun toJava(): ProjectCustomAttributeArgs