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

com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionRedisArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.vault.database.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.database.inputs.SecretBackendConnectionRedisArgs.builder
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property caCert The contents of a PEM-encoded CA cert file to use to verify the Redis server's identity.
 * @property host Specifies the host to connect to
 * @property insecureTls Specifies whether to skip verification of the server certificate when using TLS.
 * @property password Specifies the password corresponding to the given username.
 * @property port The transport port to use to connect to Redis.
 * @property tls Specifies whether to use TLS when connecting to Redis.
 * @property username Specifies the username for Vault to use.
 */
public data class SecretBackendConnectionRedisArgs(
    public val caCert: Output? = null,
    public val host: Output,
    public val insecureTls: Output? = null,
    public val password: Output,
    public val port: Output? = null,
    public val tls: Output? = null,
    public val username: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.database.inputs.SecretBackendConnectionRedisArgs =
        com.pulumi.vault.database.inputs.SecretBackendConnectionRedisArgs.builder()
            .caCert(caCert?.applyValue({ args0 -> args0 }))
            .host(host.applyValue({ args0 -> args0 }))
            .insecureTls(insecureTls?.applyValue({ args0 -> args0 }))
            .password(password.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 }))
            .tls(tls?.applyValue({ args0 -> args0 }))
            .username(username.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SecretBackendConnectionRedisArgs].
 */
@PulumiTagMarker
public class SecretBackendConnectionRedisArgsBuilder internal constructor() {
    private var caCert: Output? = null

    private var host: Output? = null

    private var insecureTls: Output? = null

    private var password: Output? = null

    private var port: Output? = null

    private var tls: Output? = null

    private var username: Output? = null

    /**
     * @param value The contents of a PEM-encoded CA cert file to use to verify the Redis server's identity.
     */
    @JvmName("bxhmenuhdbccbgpt")
    public suspend fun caCert(`value`: Output) {
        this.caCert = value
    }

    /**
     * @param value Specifies the host to connect to
     */
    @JvmName("gfobdauqrlaldwdr")
    public suspend fun host(`value`: Output) {
        this.host = value
    }

    /**
     * @param value Specifies whether to skip verification of the server certificate when using TLS.
     */
    @JvmName("dgtvqwgfslrcsyld")
    public suspend fun insecureTls(`value`: Output) {
        this.insecureTls = value
    }

    /**
     * @param value Specifies the password corresponding to the given username.
     */
    @JvmName("yobnerbocdjrblno")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value The transport port to use to connect to Redis.
     */
    @JvmName("waxigobmlepdsocl")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value Specifies whether to use TLS when connecting to Redis.
     */
    @JvmName("voeljiofnjisycsk")
    public suspend fun tls(`value`: Output) {
        this.tls = value
    }

    /**
     * @param value Specifies the username for Vault to use.
     */
    @JvmName("qycivxbpdnlpdatt")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value The contents of a PEM-encoded CA cert file to use to verify the Redis server's identity.
     */
    @JvmName("yxbmpkubtdbhgfyv")
    public suspend fun caCert(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.caCert = mapped
    }

    /**
     * @param value Specifies the host to connect to
     */
    @JvmName("wapvirooestlyjwv")
    public suspend fun host(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.host = mapped
    }

    /**
     * @param value Specifies whether to skip verification of the server certificate when using TLS.
     */
    @JvmName("ksfsimdqibedsmnk")
    public suspend fun insecureTls(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.insecureTls = mapped
    }

    /**
     * @param value Specifies the password corresponding to the given username.
     */
    @JvmName("nbpffnhyqrefcpei")
    public suspend fun password(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value The transport port to use to connect to Redis.
     */
    @JvmName("pwqarpuuddixebwh")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    /**
     * @param value Specifies whether to use TLS when connecting to Redis.
     */
    @JvmName("qwyosodxwtvdxydu")
    public suspend fun tls(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tls = mapped
    }

    /**
     * @param value Specifies the username for Vault to use.
     */
    @JvmName("uqcelqcdkmqrjoiw")
    public suspend fun username(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.username = mapped
    }

    internal fun build(): SecretBackendConnectionRedisArgs = SecretBackendConnectionRedisArgs(
        caCert = caCert,
        host = host ?: throw PulumiNullFieldException("host"),
        insecureTls = insecureTls,
        password = password ?: throw PulumiNullFieldException("password"),
        port = port,
        tls = tls,
        username = username ?: throw PulumiNullFieldException("username"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy