ProjectBadge

class ProjectBadge : KotlinCustomResource

The gitlab.ProjectBadge resource allows to mange the lifecycle of project badges. 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.ProjectBadge;
import com.pulumi.gitlab.ProjectBadgeArgs;
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 foo = new Project("foo");
var example = new ProjectBadge("example", ProjectBadgeArgs.builder()
.project(foo.id())
.linkUrl("https://example.com/badge-123")
.imageUrl("https://example.com/badge-123.svg")
.build());
}
}

Import

GitLab project badges can be imported using an id made up of {project_id}:{badge_id}, e.g.

$ pulumi import gitlab:index/projectBadge:ProjectBadge foo 1:3

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val imageUrl: Output<String>

The image url which will be presented on project overview.

Link copied to clipboard
val linkUrl: Output<String>

The url linked with the badge.

Link copied to clipboard
val name: Output<String>

The name of the badge.

Link copied to clipboard
val project: Output<String>

The id of the project to add the badge to.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The image_url argument rendered (in case of use of placeholders).

Link copied to clipboard
val renderedLinkUrl: Output<String>

The link_url argument rendered (in case of use of placeholders).

Link copied to clipboard
val urn: Output<String>