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

com.pulumi.vault.okta.kotlin.AuthBackendGroupArgs.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: 6.4.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.vault.okta.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.vault.okta.AuthBackendGroupArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Provides a resource to create a group in an
 * [Okta auth backend within Vault](https://www.vaultproject.io/docs/auth/okta.html).
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as vault from "@pulumi/vault";
 * const example = new vault.okta.AuthBackend("example", {
 *     path: "group_okta",
 *     organization: "dummy",
 * });
 * const foo = new vault.okta.AuthBackendGroup("foo", {
 *     path: example.path,
 *     groupName: "foo",
 *     policies: [
 *         "one",
 *         "two",
 *     ],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_vault as vault
 * example = vault.okta.AuthBackend("example",
 *     path="group_okta",
 *     organization="dummy")
 * foo = vault.okta.AuthBackendGroup("foo",
 *     path=example.path,
 *     group_name="foo",
 *     policies=[
 *         "one",
 *         "two",
 *     ])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Vault = Pulumi.Vault;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Vault.Okta.AuthBackend("example", new()
 *     {
 *         Path = "group_okta",
 *         Organization = "dummy",
 *     });
 *     var foo = new Vault.Okta.AuthBackendGroup("foo", new()
 *     {
 *         Path = example.Path,
 *         GroupName = "foo",
 *         Policies = new[]
 *         {
 *             "one",
 *             "two",
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/okta"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := okta.NewAuthBackend(ctx, "example", &okta.AuthBackendArgs{
 * 			Path:         pulumi.String("group_okta"),
 * 			Organization: pulumi.String("dummy"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = okta.NewAuthBackendGroup(ctx, "foo", &okta.AuthBackendGroupArgs{
 * 			Path:      example.Path,
 * 			GroupName: pulumi.String("foo"),
 * 			Policies: pulumi.StringArray{
 * 				pulumi.String("one"),
 * 				pulumi.String("two"),
 * 			},
 * 		})
 * 		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.vault.okta.AuthBackend;
 * import com.pulumi.vault.okta.AuthBackendArgs;
 * import com.pulumi.vault.okta.AuthBackendGroup;
 * import com.pulumi.vault.okta.AuthBackendGroupArgs;
 * 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 example = new AuthBackend("example", AuthBackendArgs.builder()
 *             .path("group_okta")
 *             .organization("dummy")
 *             .build());
 *         var foo = new AuthBackendGroup("foo", AuthBackendGroupArgs.builder()
 *             .path(example.path())
 *             .groupName("foo")
 *             .policies(
 *                 "one",
 *                 "two")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: vault:okta:AuthBackend
 *     properties:
 *       path: group_okta
 *       organization: dummy
 *   foo:
 *     type: vault:okta:AuthBackendGroup
 *     properties:
 *       path: ${example.path}
 *       groupName: foo
 *       policies:
 *         - one
 *         - two
 * ```
 * 
 * ## Import
 * Okta authentication backend groups can be imported using the format `backend/groupName` e.g.
 * ```sh
 * $ pulumi import vault:okta/authBackendGroup:AuthBackendGroup foo okta/foo
 * ```
 * @property groupName Name of the group within the Okta
 * @property namespace The namespace to provision the resource in.
 * The value should not contain leading or trailing forward slashes.
 * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
 * *Available only for Vault Enterprise*.
 * @property path The path where the Okta auth backend is mounted
 * @property policies Vault policies to associate with this group
 */
public data class AuthBackendGroupArgs(
    public val groupName: Output? = null,
    public val namespace: Output? = null,
    public val path: Output? = null,
    public val policies: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.okta.AuthBackendGroupArgs =
        com.pulumi.vault.okta.AuthBackendGroupArgs.builder()
            .groupName(groupName?.applyValue({ args0 -> args0 }))
            .namespace(namespace?.applyValue({ args0 -> args0 }))
            .path(path?.applyValue({ args0 -> args0 }))
            .policies(policies?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [AuthBackendGroupArgs].
 */
@PulumiTagMarker
public class AuthBackendGroupArgsBuilder internal constructor() {
    private var groupName: Output? = null

    private var namespace: Output? = null

    private var path: Output? = null

    private var policies: Output>? = null

    /**
     * @param value Name of the group within the Okta
     */
    @JvmName("bmymtcsmkqhpmetr")
    public suspend fun groupName(`value`: Output) {
        this.groupName = value
    }

    /**
     * @param value The namespace to provision the resource in.
     * The value should not contain leading or trailing forward slashes.
     * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
     * *Available only for Vault Enterprise*.
     */
    @JvmName("romcdwnyrlpeavof")
    public suspend fun namespace(`value`: Output) {
        this.namespace = value
    }

    /**
     * @param value The path where the Okta auth backend is mounted
     */
    @JvmName("feciwpvfraqnpcru")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value Vault policies to associate with this group
     */
    @JvmName("mldqnoqoswviewfd")
    public suspend fun policies(`value`: Output>) {
        this.policies = value
    }

    @JvmName("tshnwwvnxjgebvsn")
    public suspend fun policies(vararg values: Output) {
        this.policies = Output.all(values.asList())
    }

    /**
     * @param values Vault policies to associate with this group
     */
    @JvmName("wfvivbhqmojnchsf")
    public suspend fun policies(values: List>) {
        this.policies = Output.all(values)
    }

    /**
     * @param value Name of the group within the Okta
     */
    @JvmName("euxwyghqnvlveviw")
    public suspend fun groupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupName = mapped
    }

    /**
     * @param value The namespace to provision the resource in.
     * The value should not contain leading or trailing forward slashes.
     * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
     * *Available only for Vault Enterprise*.
     */
    @JvmName("hlouffuhpufogubo")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    /**
     * @param value The path where the Okta auth backend is mounted
     */
    @JvmName("qvdlkcigdqfcjxww")
    public suspend fun path(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param value Vault policies to associate with this group
     */
    @JvmName("bqpquihecoewdxoe")
    public suspend fun policies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policies = mapped
    }

    /**
     * @param values Vault policies to associate with this group
     */
    @JvmName("giuocdternbnsepp")
    public suspend fun policies(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.policies = mapped
    }

    internal fun build(): AuthBackendGroupArgs = AuthBackendGroupArgs(
        groupName = groupName,
        namespace = namespace,
        path = path,
        policies = policies,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy