GitLab v6.10.0 published on Monday, Mar 25, 2024 by Pulumi
gitlab.GroupSamlLink
Explore with Pulumi AI
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";
const test = new gitlab.GroupSamlLink("test", {
accessLevel: "developer",
group: "12345",
samlGroupName: "samlgroupname1",
});
import pulumi
import pulumi_gitlab as gitlab
test = gitlab.GroupSamlLink("test",
access_level="developer",
group="12345",
saml_group_name="samlgroupname1")
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gitlab.NewGroupSamlLink(ctx, "test", &gitlab.GroupSamlLinkArgs{
AccessLevel: pulumi.String("developer"),
Group: pulumi.String("12345"),
SamlGroupName: pulumi.String("samlgroupname1"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var test = new GitLab.GroupSamlLink("test", new()
{
AccessLevel = "developer",
Group = "12345",
SamlGroupName = "samlgroupname1",
});
});
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) {
var test = new GroupSamlLink("test", GroupSamlLinkArgs.builder()
.accessLevel("developer")
.group("12345")
.samlGroupName("samlgroupname1")
.build());
}
}
resources:
test:
type: gitlab:GroupSamlLink
properties:
accessLevel: developer
group: '12345'
samlGroupName: samlgroupname1
Create GroupSamlLink Resource
new GroupSamlLink(name: string, args: GroupSamlLinkArgs, opts?: CustomResourceOptions);
@overload
def GroupSamlLink(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_level: Optional[str] = None,
group: Optional[str] = None,
saml_group_name: Optional[str] = None)
@overload
def GroupSamlLink(resource_name: str,
args: GroupSamlLinkArgs,
opts: Optional[ResourceOptions] = None)
func NewGroupSamlLink(ctx *Context, name string, args GroupSamlLinkArgs, opts ...ResourceOption) (*GroupSamlLink, error)
public GroupSamlLink(string name, GroupSamlLinkArgs args, CustomResourceOptions? opts = null)
public GroupSamlLink(String name, GroupSamlLinkArgs args)
public GroupSamlLink(String name, GroupSamlLinkArgs args, CustomResourceOptions options)
type: gitlab:GroupSamlLink
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GroupSamlLinkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GroupSamlLinkArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GroupSamlLinkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GroupSamlLinkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GroupSamlLinkArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
GroupSamlLink Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The GroupSamlLink resource accepts the following input properties:
- Access
Level string - Access level for members of the SAML group. Valid values are:
guest
,reporter
,developer
,maintainer
,owner
. - Group string
- The ID or path of the group to add the SAML Group Link to.
- Saml
Group stringName - The name of the SAML group.
- Access
Level string - Access level for members of the SAML group. Valid values are:
guest
,reporter
,developer
,maintainer
,owner
. - Group string
- The ID or path of the group to add the SAML Group Link to.
- Saml
Group stringName - The name of the SAML group.
- access
Level String - Access level for members of the SAML group. Valid values are:
guest
,reporter
,developer
,maintainer
,owner
. - group String
- The ID or path of the group to add the SAML Group Link to.
- saml
Group StringName - The name of the SAML group.
- access
Level string - Access level for members of the SAML group. Valid values are:
guest
,reporter
,developer
,maintainer
,owner
. - group string
- The ID or path of the group to add the SAML Group Link to.
- saml
Group stringName - The name of the SAML group.
- access_
level str - Access level for members of the SAML group. Valid values are:
guest
,reporter
,developer
,maintainer
,owner
. - group str
- The ID or path of the group to add the SAML Group Link to.
- saml_
group_ strname - The name of the SAML group.
- access
Level String - Access level for members of the SAML group. Valid values are:
guest
,reporter
,developer
,maintainer
,owner
. - group String
- The ID or path of the group to add the SAML Group Link to.
- saml
Group StringName - The name of the SAML group.
Outputs
All input properties are implicitly available as output properties. Additionally, the GroupSamlLink resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing GroupSamlLink Resource
Get an existing GroupSamlLink resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: GroupSamlLinkState, opts?: CustomResourceOptions): GroupSamlLink
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_level: Optional[str] = None,
group: Optional[str] = None,
saml_group_name: Optional[str] = None) -> GroupSamlLink
func GetGroupSamlLink(ctx *Context, name string, id IDInput, state *GroupSamlLinkState, opts ...ResourceOption) (*GroupSamlLink, error)
public static GroupSamlLink Get(string name, Input<string> id, GroupSamlLinkState? state, CustomResourceOptions? opts = null)
public static GroupSamlLink get(String name, Output<String> id, GroupSamlLinkState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Access
Level string - Access level for members of the SAML group. Valid values are:
guest
,reporter
,developer
,maintainer
,owner
. - Group string
- The ID or path of the group to add the SAML Group Link to.
- Saml
Group stringName - The name of the SAML group.
- Access
Level string - Access level for members of the SAML group. Valid values are:
guest
,reporter
,developer
,maintainer
,owner
. - Group string
- The ID or path of the group to add the SAML Group Link to.
- Saml
Group stringName - The name of the SAML group.
- access
Level String - Access level for members of the SAML group. Valid values are:
guest
,reporter
,developer
,maintainer
,owner
. - group String
- The ID or path of the group to add the SAML Group Link to.
- saml
Group StringName - The name of the SAML group.
- access
Level string - Access level for members of the SAML group. Valid values are:
guest
,reporter
,developer
,maintainer
,owner
. - group string
- The ID or path of the group to add the SAML Group Link to.
- saml
Group stringName - The name of the SAML group.
- access_
level str - Access level for members of the SAML group. Valid values are:
guest
,reporter
,developer
,maintainer
,owner
. - group str
- The ID or path of the group to add the SAML Group Link to.
- saml_
group_ strname - The name of the SAML group.
- access
Level String - Access level for members of the SAML group. Valid values are:
guest
,reporter
,developer
,maintainer
,owner
. - group String
- The ID or path of the group to add the SAML Group Link to.
- saml
Group StringName - The name of the SAML group.
Import
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"
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlab
Terraform Provider.