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

com.pulumi.gcp.applicationintegration.kotlin.inputs.AuthConfigClientCertificateArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.applicationintegration.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.applicationintegration.inputs.AuthConfigClientCertificateArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property encryptedPrivateKey The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines.
 * @property passphrase 'passphrase' should be left unset if private key is not encrypted.
 * Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.
 * @property sslCertificate The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines.
 */
public data class AuthConfigClientCertificateArgs(
    public val encryptedPrivateKey: Output,
    public val passphrase: Output? = null,
    public val sslCertificate: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.applicationintegration.inputs.AuthConfigClientCertificateArgs =
        com.pulumi.gcp.applicationintegration.inputs.AuthConfigClientCertificateArgs.builder()
            .encryptedPrivateKey(encryptedPrivateKey.applyValue({ args0 -> args0 }))
            .passphrase(passphrase?.applyValue({ args0 -> args0 }))
            .sslCertificate(sslCertificate.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AuthConfigClientCertificateArgs].
 */
@PulumiTagMarker
public class AuthConfigClientCertificateArgsBuilder internal constructor() {
    private var encryptedPrivateKey: Output? = null

    private var passphrase: Output? = null

    private var sslCertificate: Output? = null

    /**
     * @param value The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines.
     */
    @JvmName("irvainensouunqll")
    public suspend fun encryptedPrivateKey(`value`: Output) {
        this.encryptedPrivateKey = value
    }

    /**
     * @param value 'passphrase' should be left unset if private key is not encrypted.
     * Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.
     */
    @JvmName("jksicvaidhqkvbxu")
    public suspend fun passphrase(`value`: Output) {
        this.passphrase = value
    }

    /**
     * @param value The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines.
     */
    @JvmName("xsexusxrblhukils")
    public suspend fun sslCertificate(`value`: Output) {
        this.sslCertificate = value
    }

    /**
     * @param value The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines.
     */
    @JvmName("krcljyfwguafglrg")
    public suspend fun encryptedPrivateKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.encryptedPrivateKey = mapped
    }

    /**
     * @param value 'passphrase' should be left unset if private key is not encrypted.
     * Note that 'passphrase' is not the password for web server, but an extra layer of security to protected private key.
     */
    @JvmName("faelhgoxtcovyjae")
    public suspend fun passphrase(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.passphrase = mapped
    }

    /**
     * @param value The ssl certificate encoded in PEM format. This string must include the begin header and end footer lines.
     */
    @JvmName("gsljweyjxtfesrlq")
    public suspend fun sslCertificate(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sslCertificate = mapped
    }

    internal fun build(): AuthConfigClientCertificateArgs = AuthConfigClientCertificateArgs(
        encryptedPrivateKey = encryptedPrivateKey ?: throw PulumiNullFieldException("encryptedPrivateKey"),
        passphrase = passphrase,
        sslCertificate = sslCertificate ?: throw PulumiNullFieldException("sslCertificate"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy