GroupSamlLinkArgs

data class GroupSamlLinkArgs(val accessLevel: Output<String>? = null, val group: Output<String>? = null, val memberRoleId: Output<Int>? = null, val samlGroupName: Output<String>? = null) : ConvertibleToJava<GroupSamlLinkArgs>

The gitlab.GroupSamlLink resource allows to manage the lifecycle of an SAML integration with a group. Upstream API: GitLab REST API docs

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
// Basic example
const test = new gitlab.GroupSamlLink("test", {
group: "12345",
accessLevel: "developer",
samlGroupName: "samlgroupname1",
});
// Example using a Custom Role (Ultimate only)
// When using the custom role, the `access_level` must match the
// base role used to create the custom role.
const testCustomRole = new gitlab.GroupSamlLink("test_custom_role", {
group: "12345",
accessLevel: "developer",
samlGroupName: "samlgroupname1",
memberRoleId: 123,
});
import pulumi
import pulumi_gitlab as gitlab
# Basic example
test = gitlab.GroupSamlLink("test",
group="12345",
access_level="developer",
saml_group_name="samlgroupname1")
# Example using a Custom Role (Ultimate only)
# When using the custom role, the `access_level` must match the
# base role used to create the custom role.
test_custom_role = gitlab.GroupSamlLink("test_custom_role",
group="12345",
access_level="developer",
saml_group_name="samlgroupname1",
member_role_id=123)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
// Basic example
var test = new GitLab.GroupSamlLink("test", new()
{
Group = "12345",
AccessLevel = "developer",
SamlGroupName = "samlgroupname1",
});
// Example using a Custom Role (Ultimate only)
// When using the custom role, the `access_level` must match the
// base role used to create the custom role.
var testCustomRole = new GitLab.GroupSamlLink("test_custom_role", new()
{
Group = "12345",
AccessLevel = "developer",
SamlGroupName = "samlgroupname1",
MemberRoleId = 123,
});
});
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 {
// Basic example
_, err := gitlab.NewGroupSamlLink(ctx, "test", &gitlab.GroupSamlLinkArgs{
Group: pulumi.String("12345"),
AccessLevel: pulumi.String("developer"),
SamlGroupName: pulumi.String("samlgroupname1"),
})
if err != nil {
return err
}
// Example using a Custom Role (Ultimate only)
// When using the custom role, the `access_level` must match the
// base role used to create the custom role.
_, err = gitlab.NewGroupSamlLink(ctx, "test_custom_role", &gitlab.GroupSamlLinkArgs{
Group: pulumi.String("12345"),
AccessLevel: pulumi.String("developer"),
SamlGroupName: pulumi.String("samlgroupname1"),
MemberRoleId: pulumi.Int(123),
})
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.GroupSamlLink;
import com.pulumi.gitlab.GroupSamlLinkArgs;
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) {
// Basic example
var test = new GroupSamlLink("test", GroupSamlLinkArgs.builder()
.group("12345")
.accessLevel("developer")
.samlGroupName("samlgroupname1")
.build());
// Example using a Custom Role (Ultimate only)
// When using the custom role, the `access_level` must match the
// base role used to create the custom role.
var testCustomRole = new GroupSamlLink("testCustomRole", GroupSamlLinkArgs.builder()
.group("12345")
.accessLevel("developer")
.samlGroupName("samlgroupname1")
.memberRoleId(123)
.build());
}
}
resources:
# Basic example
test:
type: gitlab:GroupSamlLink
properties:
group: '12345'
accessLevel: developer
samlGroupName: samlgroupname1
# Example using a Custom Role (Ultimate only)
# When using the custom role, the `access_level` must match the
# base role used to create the custom role.
testCustomRole:
type: gitlab:GroupSamlLink
name: test_custom_role
properties:
group: '12345'
accessLevel: developer
samlGroupName: samlgroupname1
memberRoleId: 123

Import

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

$ pulumi import gitlab:index/groupSamlLink:GroupSamlLink test "12345:samlgroupname1"

Constructors

Link copied to clipboard
constructor(accessLevel: Output<String>? = null, group: Output<String>? = null, memberRoleId: Output<Int>? = null, samlGroupName: Output<String>? = null)

Properties

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

Access level for members of the SAML group. Valid values are: guest, reporter, developer, maintainer, owner.

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

The ID or path of the group to add the SAML Group Link to.

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

The ID of a custom member role. Only available for Ultimate instances. When using a custom role, the access_level must match the base role used to create the custom role.

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

The name of the SAML group.

Functions

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