All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gitlab.kotlin.GroupSamlLinkArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.4.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gitlab.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gitlab.GroupSamlLinkArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The `gitlab.GroupSamlLink` resource allows to manage the lifecycle of an SAML integration with a group.
 * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/groups.html#saml-group-links)
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gitlab from "@pulumi/gitlab";
 * const test = new gitlab.GroupSamlLink("test", {
 *     group: "12345",
 *     accessLevel: "developer",
 *     samlGroupName: "samlgroupname1",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gitlab as gitlab
 * test = gitlab.GroupSamlLink("test",
 *     group="12345",
 *     access_level="developer",
 *     saml_group_name="samlgroupname1")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using GitLab = Pulumi.GitLab;
 * return await Deployment.RunAsync(() =>
 * {
 *     var test = new GitLab.GroupSamlLink("test", new()
 *     {
 *         Group = "12345",
 *         AccessLevel = "developer",
 *         SamlGroupName = "samlgroupname1",
 *     });
 * });
 * ```
 * ```go
 * 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.NewGroupSamlLink(ctx, "test", &gitlab.GroupSamlLinkArgs{
 * 			Group:         pulumi.String("12345"),
 * 			AccessLevel:   pulumi.String("developer"),
 * 			SamlGroupName: pulumi.String("samlgroupname1"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * 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()
 *             .group("12345")
 *             .accessLevel("developer")
 *             .samlGroupName("samlgroupname1")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   test:
 *     type: gitlab:GroupSamlLink
 *     properties:
 *       group: '12345'
 *       accessLevel: developer
 *       samlGroupName: samlgroupname1
 * ```
 * 
 * ## Import
 * GitLab group saml links can be imported using an id made up of `group_id:saml_group_name`, e.g.
 * ```sh
 * $ pulumi import gitlab:index/groupSamlLink:GroupSamlLink test "12345:samlgroupname1"
 * ```
 * @property accessLevel Access level for members of the SAML group. Valid values are: `guest`, `reporter`, `developer`, `maintainer`, `owner`.
 * @property group The ID or path of the group to add the SAML Group Link to.
 * @property samlGroupName The name of the SAML group.
 */
public data class GroupSamlLinkArgs(
    public val accessLevel: Output? = null,
    public val group: Output? = null,
    public val samlGroupName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gitlab.GroupSamlLinkArgs =
        com.pulumi.gitlab.GroupSamlLinkArgs.builder()
            .accessLevel(accessLevel?.applyValue({ args0 -> args0 }))
            .group(group?.applyValue({ args0 -> args0 }))
            .samlGroupName(samlGroupName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GroupSamlLinkArgs].
 */
@PulumiTagMarker
public class GroupSamlLinkArgsBuilder internal constructor() {
    private var accessLevel: Output? = null

    private var group: Output? = null

    private var samlGroupName: Output? = null

    /**
     * @param value Access level for members of the SAML group. Valid values are: `guest`, `reporter`, `developer`, `maintainer`, `owner`.
     */
    @JvmName("xwnekmncckadfvjs")
    public suspend fun accessLevel(`value`: Output) {
        this.accessLevel = value
    }

    /**
     * @param value The ID or path of the group to add the SAML Group Link to.
     */
    @JvmName("oymvrxdvwlkexhxh")
    public suspend fun group(`value`: Output) {
        this.group = value
    }

    /**
     * @param value The name of the SAML group.
     */
    @JvmName("rvpmmbsrwekngsnf")
    public suspend fun samlGroupName(`value`: Output) {
        this.samlGroupName = value
    }

    /**
     * @param value Access level for members of the SAML group. Valid values are: `guest`, `reporter`, `developer`, `maintainer`, `owner`.
     */
    @JvmName("ydmwvvbjkwvcsueq")
    public suspend fun accessLevel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessLevel = mapped
    }

    /**
     * @param value The ID or path of the group to add the SAML Group Link to.
     */
    @JvmName("fougljtngssxyjlm")
    public suspend fun group(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.group = mapped
    }

    /**
     * @param value The name of the SAML group.
     */
    @JvmName("unqofvfuxsrphoyj")
    public suspend fun samlGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.samlGroupName = mapped
    }

    internal fun build(): GroupSamlLinkArgs = GroupSamlLinkArgs(
        accessLevel = accessLevel,
        group = group,
        samlGroupName = samlGroupName,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy