ReleaseLinkArgs

data class ReleaseLinkArgs(val filepath: Output<String>? = null, val linkType: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val tagName: Output<String>? = null, val url: Output<String>? = null) : ConvertibleToJava<ReleaseLinkArgs>

The gitlab.ReleaseLink resource allows to manage the lifecycle of a release link. 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.Project;
import com.pulumi.gitlab.ProjectArgs;
import com.pulumi.gitlab.ReleaseLink;
import com.pulumi.gitlab.ReleaseLinkArgs;
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")
.build());
var exampleReleaseLink = new ReleaseLink("exampleReleaseLink", ReleaseLinkArgs.builder()
.project(exampleProject.id())
.tagName("tag_name_associated_with_release")
.url("https://test/")
.build());
}
}

Import

Gitlab release link can be imported with a key composed of <project>:<tag_name>:<link_id>, e.g.

$ pulumi import gitlab:index/releaseLink:ReleaseLink example "12345:test:2"

Constructors

Link copied to clipboard
constructor(filepath: Output<String>? = null, linkType: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null, tagName: Output<String>? = null, url: Output<String>? = null)

Properties

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

Relative path for a Direct Asset link.

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

The type of the link. Valid values are other, runbook, image, package. Defaults to other.

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

The name of the link. Link names must be unique within the release.

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

The tag associated with the Release.

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

The URL of the link. Link URLs must be unique within the release.

Functions

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