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

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

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.vault.database.inputs.SecretBackendConnectionSnowflakeArgs.builder
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property connectionUrl Connection string to use to connect to the database.
 * @property maxConnectionLifetime Maximum number of seconds a connection may be reused.
 * @property maxIdleConnections Maximum number of idle connections to the database.
 * @property maxOpenConnections Maximum number of open connections to the database.
 * @property password The root credential password used in the connection URL
 * @property username The root credential username used in the connection URL
 * @property usernameTemplate Username generation template.
 */
public data class SecretBackendConnectionSnowflakeArgs(
    public val connectionUrl: Output? = null,
    public val maxConnectionLifetime: Output? = null,
    public val maxIdleConnections: Output? = null,
    public val maxOpenConnections: Output? = null,
    public val password: Output? = null,
    public val username: Output? = null,
    public val usernameTemplate: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.database.inputs.SecretBackendConnectionSnowflakeArgs =
        com.pulumi.vault.database.inputs.SecretBackendConnectionSnowflakeArgs.builder()
            .connectionUrl(connectionUrl?.applyValue({ args0 -> args0 }))
            .maxConnectionLifetime(maxConnectionLifetime?.applyValue({ args0 -> args0 }))
            .maxIdleConnections(maxIdleConnections?.applyValue({ args0 -> args0 }))
            .maxOpenConnections(maxOpenConnections?.applyValue({ args0 -> args0 }))
            .password(password?.applyValue({ args0 -> args0 }))
            .username(username?.applyValue({ args0 -> args0 }))
            .usernameTemplate(usernameTemplate?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SecretBackendConnectionSnowflakeArgs].
 */
@PulumiTagMarker
public class SecretBackendConnectionSnowflakeArgsBuilder internal constructor() {
    private var connectionUrl: Output? = null

    private var maxConnectionLifetime: Output? = null

    private var maxIdleConnections: Output? = null

    private var maxOpenConnections: Output? = null

    private var password: Output? = null

    private var username: Output? = null

    private var usernameTemplate: Output? = null

    /**
     * @param value Connection string to use to connect to the database.
     */
    @JvmName("dwdtxbenbbhjbcxv")
    public suspend fun connectionUrl(`value`: Output) {
        this.connectionUrl = value
    }

    /**
     * @param value Maximum number of seconds a connection may be reused.
     */
    @JvmName("ifkpnufynhpsdxbl")
    public suspend fun maxConnectionLifetime(`value`: Output) {
        this.maxConnectionLifetime = value
    }

    /**
     * @param value Maximum number of idle connections to the database.
     */
    @JvmName("fmfdagjxhkkqnjuu")
    public suspend fun maxIdleConnections(`value`: Output) {
        this.maxIdleConnections = value
    }

    /**
     * @param value Maximum number of open connections to the database.
     */
    @JvmName("saavbpeproqlucgw")
    public suspend fun maxOpenConnections(`value`: Output) {
        this.maxOpenConnections = value
    }

    /**
     * @param value The root credential password used in the connection URL
     */
    @JvmName("jiuxuachnseaalls")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value The root credential username used in the connection URL
     */
    @JvmName("yvtbmfmhsfbmntfe")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value Username generation template.
     */
    @JvmName("ctijwwtaehcwjamv")
    public suspend fun usernameTemplate(`value`: Output) {
        this.usernameTemplate = value
    }

    /**
     * @param value Connection string to use to connect to the database.
     */
    @JvmName("dtvfnbqfibttqtei")
    public suspend fun connectionUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectionUrl = mapped
    }

    /**
     * @param value Maximum number of seconds a connection may be reused.
     */
    @JvmName("oidyikbijqrlqyma")
    public suspend fun maxConnectionLifetime(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxConnectionLifetime = mapped
    }

    /**
     * @param value Maximum number of idle connections to the database.
     */
    @JvmName("pxuesidrwmloaxas")
    public suspend fun maxIdleConnections(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxIdleConnections = mapped
    }

    /**
     * @param value Maximum number of open connections to the database.
     */
    @JvmName("krjsrpcsuebptpsx")
    public suspend fun maxOpenConnections(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxOpenConnections = mapped
    }

    /**
     * @param value The root credential password used in the connection URL
     */
    @JvmName("cujhjkaoauhwgibc")
    public suspend fun password(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value The root credential username used in the connection URL
     */
    @JvmName("evxxhubfcewcfdau")
    public suspend fun username(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.username = mapped
    }

    /**
     * @param value Username generation template.
     */
    @JvmName("mhyfwmbdeculqhdo")
    public suspend fun usernameTemplate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.usernameTemplate = mapped
    }

    internal fun build(): SecretBackendConnectionSnowflakeArgs = SecretBackendConnectionSnowflakeArgs(
        connectionUrl = connectionUrl,
        maxConnectionLifetime = maxConnectionLifetime,
        maxIdleConnections = maxIdleConnections,
        maxOpenConnections = maxOpenConnections,
        password = password,
        username = username,
        usernameTemplate = usernameTemplate,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy