ProjectShareGroup

class ProjectShareGroup : KotlinCustomResource

The gitlab.ProjectShareGroup resource allows to manage the lifecycle of project shared with a group. Upstream API: GitLab REST API docs

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const test = new gitlab.ProjectShareGroup("test", {
project: "12345",
groupId: 1337,
groupAccess: "guest",
});
import pulumi
import pulumi_gitlab as gitlab
test = gitlab.ProjectShareGroup("test",
project="12345",
group_id=1337,
group_access="guest")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var test = new GitLab.ProjectShareGroup("test", new()
{
Project = "12345",
GroupId = 1337,
GroupAccess = "guest",
});
});
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gitlab.NewProjectShareGroup(ctx, "test", &gitlab.ProjectShareGroupArgs{
Project: pulumi.String("12345"),
GroupId: pulumi.Int(1337),
GroupAccess: pulumi.String("guest"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.ProjectShareGroup;
import com.pulumi.gitlab.ProjectShareGroupArgs;
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 test = new ProjectShareGroup("test", ProjectShareGroupArgs.builder()
.project("12345")
.groupId(1337)
.groupAccess("guest")
.build());
}
}
resources:
test:
type: gitlab:ProjectShareGroup
properties:
project: '12345'
groupId: 1337
groupAccess: guest

Import

Starting in Terraform v1.5.0 you can use an import block to import gitlab_project_share_group. For example: terraform import { to = gitlab_project_share_group.example id = "see CLI command below for ID" } Import using the CLI is supported using the following syntax: GitLab project group shares can be imported using an id made up of projectid:groupid, e.g.

$ pulumi import gitlab:index/projectShareGroup:ProjectShareGroup test 12345:1337

Properties

Link copied to clipboard
val accessLevel: Output<String>?

The access level to grant the group for the project. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner

Link copied to clipboard
val groupAccess: Output<String>?

The access level to grant the group for the project. Valid values are: no one, minimal, guest, reporter, developer, maintainer, owner

Link copied to clipboard
val groupId: Output<Int>

The id of the group.

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

The ID or URL-encoded path of the project.

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