ProjectTagArgs

data class ProjectTagArgs(val message: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val ref: Output<String>? = null) : ConvertibleToJava<ProjectTagArgs>

The gitlab.ProjectTag resource allows to manage the lifecycle of a tag in a project. Upstream API: GitLab API docs

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.Project;
import com.pulumi.gitlab.ProjectArgs;
import com.pulumi.gitlab.ProjectTag;
import com.pulumi.gitlab.ProjectTagArgs;
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 exampleProject = new Project("exampleProject", ProjectArgs.builder()
.description("An example project")
.namespaceId(gitlab_group.example().id())
.build());
var exampleProjectTag = new ProjectTag("exampleProjectTag", ProjectTagArgs.builder()
.ref("main")
.project(exampleProject.id())
.build());
}
}

Import

Gitlab project tags can be imported with a key composed of <project_id>:<tag_name>, e.g.

$ pulumi import gitlab:index/projectTag:ProjectTag example "12345:develop"

NOTEthe ref attribute won't be available for imported gitlab_project_tag resources.

Constructors

Link copied to clipboard
constructor(message: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null, ref: Output<String>? = null)

Properties

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

The message of the annotated tag.

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

The name of a tag.

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

The ID or URL-encoded path of the project owned by the authenticated user.

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

Create tag using commit SHA, another tag name, or branch name. This attribute is not available for imported resources.

Functions

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