
com.pulumi.vault.appRole.kotlin.inputs.GetAuthBackendRoleIdPlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.vault.appRole.kotlin.inputs
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.vault.appRole.inputs.GetAuthBackendRoleIdPlainArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getAuthBackendRoleId.
* @property backend The unique name for the AppRole backend the role to
* retrieve a RoleID for resides in. Defaults to "approle".
* @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.
* *Available only for Vault Enterprise*.
* @property roleName The name of the role to retrieve the Role ID for.
*/
public data class GetAuthBackendRoleIdPlainArgs(
public val backend: String? = null,
public val namespace: String? = null,
public val roleName: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.vault.appRole.inputs.GetAuthBackendRoleIdPlainArgs =
com.pulumi.vault.appRole.inputs.GetAuthBackendRoleIdPlainArgs.builder()
.backend(backend?.let({ args0 -> args0 }))
.namespace(namespace?.let({ args0 -> args0 }))
.roleName(roleName.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetAuthBackendRoleIdPlainArgs].
*/
@PulumiTagMarker
public class GetAuthBackendRoleIdPlainArgsBuilder internal constructor() {
private var backend: String? = null
private var namespace: String? = null
private var roleName: String? = null
/**
* @param value The unique name for the AppRole backend the role to
* retrieve a RoleID for resides in. Defaults to "approle".
*/
@JvmName("axyfsjgbxppgguro")
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.
* *Available only for Vault Enterprise*.
*/
@JvmName("fpgvjkitlkmydkus")
public suspend fun namespace(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.namespace = mapped
}
/**
* @param value The name of the role to retrieve the Role ID for.
*/
@JvmName("ufwumdteitoypylo")
public suspend fun roleName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.roleName = mapped
}
internal fun build(): GetAuthBackendRoleIdPlainArgs = GetAuthBackendRoleIdPlainArgs(
backend = backend,
namespace = namespace,
roleName = roleName ?: throw PulumiNullFieldException("roleName"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy