com.pulumi.vault.ad.kotlin.inputs.GetAccessCredentialsPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-vault-kotlin Show documentation
Show all versions of pulumi-vault-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.vault.ad.kotlin.inputs
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.vault.ad.inputs.GetAccessCredentialsPlainArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getAccessCredentials.
* @property backend The path to the AD 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 AD secret backend role to read
* credentials from, with no leading or trailing `/`s.
*/
public data class GetAccessCredentialsPlainArgs(
public val backend: String,
public val namespace: String? = null,
public val role: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.vault.ad.inputs.GetAccessCredentialsPlainArgs =
com.pulumi.vault.ad.inputs.GetAccessCredentialsPlainArgs.builder()
.backend(backend.let({ args0 -> args0 }))
.namespace(namespace?.let({ args0 -> args0 }))
.role(role.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetAccessCredentialsPlainArgs].
*/
@PulumiTagMarker
public class GetAccessCredentialsPlainArgsBuilder internal constructor() {
private var backend: String? = null
private var namespace: String? = null
private var role: String? = null
/**
* @param value The path to the AD secret backend to
* read credentials from, with no leading or trailing `/`s.
*/
@JvmName("csoretdiweifqbdu")
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("fjovsnkwibthtkfq")
public suspend fun namespace(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.namespace = mapped
}
/**
* @param value The name of the AD secret backend role to read
* credentials from, with no leading or trailing `/`s.
*/
@JvmName("vrdqapndtlaedchf")
public suspend fun role(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.role = mapped
}
internal fun build(): GetAccessCredentialsPlainArgs = GetAccessCredentialsPlainArgs(
backend = backend ?: throw PulumiNullFieldException("backend"),
namespace = namespace,
role = role ?: throw PulumiNullFieldException("role"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy