
com.pulumi.vault.pkiSecret.kotlin.inputs.GetBackendKeyPlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.vault.pkiSecret.kotlin.inputs
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.vault.pkiSecret.inputs.GetBackendKeyPlainArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getBackendKey.
* @property backend The path to the PKI secret backend to
* read the key from, with no leading or trailing `/`s.
* @property keyRef Reference to an existing key.
* @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*.
*/
public data class GetBackendKeyPlainArgs(
public val backend: String,
public val keyRef: String,
public val namespace: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.vault.pkiSecret.inputs.GetBackendKeyPlainArgs =
com.pulumi.vault.pkiSecret.inputs.GetBackendKeyPlainArgs.builder()
.backend(backend.let({ args0 -> args0 }))
.keyRef(keyRef.let({ args0 -> args0 }))
.namespace(namespace?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetBackendKeyPlainArgs].
*/
@PulumiTagMarker
public class GetBackendKeyPlainArgsBuilder internal constructor() {
private var backend: String? = null
private var keyRef: String? = null
private var namespace: String? = null
/**
* @param value The path to the PKI secret backend to
* read the key from, with no leading or trailing `/`s.
*/
@JvmName("oicrsqoelliutpxh")
public suspend fun backend(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.backend = mapped
}
/**
* @param value Reference to an existing key.
*/
@JvmName("ksauttbelrjcdqjx")
public suspend fun keyRef(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.keyRef = 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("ulumdlkmxbrvwmur")
public suspend fun namespace(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.namespace = mapped
}
internal fun build(): GetBackendKeyPlainArgs = GetBackendKeyPlainArgs(
backend = backend ?: throw PulumiNullFieldException("backend"),
keyRef = keyRef ?: throw PulumiNullFieldException("keyRef"),
namespace = namespace,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy