GroupProjectFileTemplate

class GroupProjectFileTemplate : KotlinCustomResource

The gitlab.GroupProjectFileTemplate resource allows setting a project from which custom file templates will be loaded. In order to use this resource, the project selected must be a direct child of the group selected. After the resource has run, gitlab_project_template.template_project_id is available for use. For more information about which file types are available as templates, view GitLab's documentation

This resource requires a GitLab Enterprise instance with a Premium license. 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.Group;
import com.pulumi.gitlab.GroupArgs;
import com.pulumi.gitlab.Project;
import com.pulumi.gitlab.ProjectArgs;
import com.pulumi.gitlab.GroupProjectFileTemplate;
import com.pulumi.gitlab.GroupProjectFileTemplateArgs;
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 Group("foo", GroupArgs.builder()
.path("group")
.description("An example group")
.build());
var bar = new Project("bar", ProjectArgs.builder()
.description("contains file templates")
.visibilityLevel("public")
.namespaceId(foo.id())
.build());
var templateLink = new GroupProjectFileTemplate("templateLink", GroupProjectFileTemplateArgs.builder()
.groupId(foo.id())
.project(bar.id())
.build());
}
}

Properties

Link copied to clipboard

The ID of the project that will be used for file templates. This project must be the direct child of the project defined by the group_id

Link copied to clipboard
val groupId: Output<Int>

The ID of the group that will use the file template project. This group must be the direct parent of the project defined by project_id

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>