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

com.pulumi.vault.kotlin.inputs.GetNomadAccessTokenPlainArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.vault.kotlin.inputs

import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.vault.inputs.GetNomadAccessTokenPlainArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getNomadAccessToken.
 * @property backend The path to the Nomad secret backend to
 * read credentials from, with no leading or trailing `/`s.
 * @property namespace The namespace of the target resource.
 * 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 role The name of the Nomad secret backend role to generate
 * a token for, with no leading or trailing `/`s.
 */
public data class GetNomadAccessTokenPlainArgs(
    public val backend: String,
    public val namespace: String? = null,
    public val role: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.inputs.GetNomadAccessTokenPlainArgs =
        com.pulumi.vault.inputs.GetNomadAccessTokenPlainArgs.builder()
            .backend(backend.let({ args0 -> args0 }))
            .namespace(namespace?.let({ args0 -> args0 }))
            .role(role.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetNomadAccessTokenPlainArgs].
 */
@PulumiTagMarker
public class GetNomadAccessTokenPlainArgsBuilder internal constructor() {
    private var backend: String? = null

    private var namespace: String? = null

    private var role: String? = null

    /**
     * @param value The path to the Nomad secret backend to
     * read credentials from, with no leading or trailing `/`s.
     */
    @JvmName("ibibldwftofcofan")
    public suspend fun backend(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.backend = mapped
    }

    /**
     * @param value The namespace of the target resource.
     * 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("wmlctxfiphxtpmpo")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.namespace = mapped
    }

    /**
     * @param value The name of the Nomad secret backend role to generate
     * a token for, with no leading or trailing `/`s.
     */
    @JvmName("glncpkdlqyfjxxlu")
    public suspend fun role(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.role = mapped
    }

    internal fun build(): GetNomadAccessTokenPlainArgs = GetNomadAccessTokenPlainArgs(
        backend = backend ?: throw PulumiNullFieldException("backend"),
        namespace = namespace,
        role = role ?: throw PulumiNullFieldException("role"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy