GroupShareGroupArgs

data class GroupShareGroupArgs(val expiresAt: Output<String>? = null, val groupAccess: Output<String>? = null, val groupId: Output<String>? = null, val shareGroupId: Output<Int>? = null) : ConvertibleToJava<GroupShareGroupArgs>

The gitlab.GroupShareGroup resource allows to manage the lifecycle of group shared with another group. 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.GroupShareGroup;
import com.pulumi.gitlab.GroupShareGroupArgs;
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 GroupShareGroup("test", GroupShareGroupArgs.builder()
.groupId(gitlab_group.foo().id())
.shareGroupId(gitlab_group.bar().id())
.groupAccess("guest")
.expiresAt("2099-01-01")
.build());
}
}

Import

GitLab group shares can be imported using an id made up of mainGroupId:shareGroupId, e.g.

$ pulumi import gitlab:index/groupShareGroup:GroupShareGroup test 12345:1337

Constructors

Link copied to clipboard
constructor(expiresAt: Output<String>? = null, groupAccess: Output<String>? = null, groupId: Output<String>? = null, shareGroupId: Output<Int>? = null)

Properties

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

Share expiration date. Format: YYYY-MM-DD

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

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

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

The id of the main group to be shared.

Link copied to clipboard
val shareGroupId: Output<Int>? = null

The id of the additional group with which the main group will be shared.

Functions

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