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

com.pulumi.vault.kotlin.inputs.ProviderClientAuthArgs.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.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.vault.inputs.ProviderClientAuthArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property certFile Path to a file containing the client certificate.
 * @property keyFile Path to a file containing the private key that the certificate was issued for.
 */
public data class ProviderClientAuthArgs(
    public val certFile: Output,
    public val keyFile: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.inputs.ProviderClientAuthArgs =
        com.pulumi.vault.inputs.ProviderClientAuthArgs.builder()
            .certFile(certFile.applyValue({ args0 -> args0 }))
            .keyFile(keyFile.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ProviderClientAuthArgs].
 */
@PulumiTagMarker
public class ProviderClientAuthArgsBuilder internal constructor() {
    private var certFile: Output? = null

    private var keyFile: Output? = null

    /**
     * @param value Path to a file containing the client certificate.
     */
    @JvmName("frnungbvntdhkljj")
    public suspend fun certFile(`value`: Output) {
        this.certFile = value
    }

    /**
     * @param value Path to a file containing the private key that the certificate was issued for.
     */
    @JvmName("fvjvomqujtldcxtf")
    public suspend fun keyFile(`value`: Output) {
        this.keyFile = value
    }

    /**
     * @param value Path to a file containing the client certificate.
     */
    @JvmName("tabkgqoapyejyvkd")
    public suspend fun certFile(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.certFile = mapped
    }

    /**
     * @param value Path to a file containing the private key that the certificate was issued for.
     */
    @JvmName("alpktrxapjdfigdg")
    public suspend fun keyFile(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyFile = mapped
    }

    internal fun build(): ProviderClientAuthArgs = ProviderClientAuthArgs(
        certFile = certFile ?: throw PulumiNullFieldException("certFile"),
        keyFile = keyFile ?: throw PulumiNullFieldException("keyFile"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy