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

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

/**
 *
 * @property authType Specify alternative authorization type. (Only 'gcp_iam' is valid currently)
 * @property connectionUrl Connection string to use to connect to the database.
 * @property disableEscaping Disable special character escaping in username and password
 * @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 serviceAccountJson A JSON encoded credential for use with IAM authorization
 * @property username The root credential username used in the connection URL
 * @property usernameTemplate Username generation template.
 */
public data class SecretBackendConnectionPostgresqlArgs(
    public val authType: Output? = null,
    public val connectionUrl: Output? = null,
    public val disableEscaping: Output? = null,
    public val maxConnectionLifetime: Output? = null,
    public val maxIdleConnections: Output? = null,
    public val maxOpenConnections: Output? = null,
    public val password: Output? = null,
    public val serviceAccountJson: Output? = null,
    public val username: Output? = null,
    public val usernameTemplate: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.database.inputs.SecretBackendConnectionPostgresqlArgs =
        com.pulumi.vault.database.inputs.SecretBackendConnectionPostgresqlArgs.builder()
            .authType(authType?.applyValue({ args0 -> args0 }))
            .connectionUrl(connectionUrl?.applyValue({ args0 -> args0 }))
            .disableEscaping(disableEscaping?.applyValue({ args0 -> args0 }))
            .maxConnectionLifetime(maxConnectionLifetime?.applyValue({ args0 -> args0 }))
            .maxIdleConnections(maxIdleConnections?.applyValue({ args0 -> args0 }))
            .maxOpenConnections(maxOpenConnections?.applyValue({ args0 -> args0 }))
            .password(password?.applyValue({ args0 -> args0 }))
            .serviceAccountJson(serviceAccountJson?.applyValue({ args0 -> args0 }))
            .username(username?.applyValue({ args0 -> args0 }))
            .usernameTemplate(usernameTemplate?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SecretBackendConnectionPostgresqlArgs].
 */
@PulumiTagMarker
public class SecretBackendConnectionPostgresqlArgsBuilder internal constructor() {
    private var authType: Output? = null

    private var connectionUrl: Output? = null

    private var disableEscaping: Output? = null

    private var maxConnectionLifetime: Output? = null

    private var maxIdleConnections: Output? = null

    private var maxOpenConnections: Output? = null

    private var password: Output? = null

    private var serviceAccountJson: Output? = null

    private var username: Output? = null

    private var usernameTemplate: Output? = null

    /**
     * @param value Specify alternative authorization type. (Only 'gcp_iam' is valid currently)
     */
    @JvmName("khelltevytmqvqbf")
    public suspend fun authType(`value`: Output) {
        this.authType = value
    }

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

    /**
     * @param value Disable special character escaping in username and password
     */
    @JvmName("rucmudwaiiekfihs")
    public suspend fun disableEscaping(`value`: Output) {
        this.disableEscaping = value
    }

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

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

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

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

    /**
     * @param value A JSON encoded credential for use with IAM authorization
     */
    @JvmName("kvqpvltbyajudxwm")
    public suspend fun serviceAccountJson(`value`: Output) {
        this.serviceAccountJson = value
    }

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

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

    /**
     * @param value Specify alternative authorization type. (Only 'gcp_iam' is valid currently)
     */
    @JvmName("crlqrjctbemlcsxq")
    public suspend fun authType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authType = mapped
    }

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

    /**
     * @param value Disable special character escaping in username and password
     */
    @JvmName("rufbpxtrqtbxsbww")
    public suspend fun disableEscaping(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disableEscaping = mapped
    }

    /**
     * @param value Maximum number of seconds a connection may be reused.
     */
    @JvmName("wxdbjugpdlwowahy")
    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("mwstxfkqmuhsqdys")
    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("pqfxtbioutfvloek")
    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("fyydplflwshjkhyp")
    public suspend fun password(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value A JSON encoded credential for use with IAM authorization
     */
    @JvmName("fymgchkwileoofok")
    public suspend fun serviceAccountJson(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceAccountJson = mapped
    }

    /**
     * @param value The root credential username used in the connection URL
     */
    @JvmName("smialwxyieathwrv")
    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("fqpirjaidjcoyueb")
    public suspend fun usernameTemplate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.usernameTemplate = mapped
    }

    internal fun build(): SecretBackendConnectionPostgresqlArgs =
        SecretBackendConnectionPostgresqlArgs(
            authType = authType,
            connectionUrl = connectionUrl,
            disableEscaping = disableEscaping,
            maxConnectionLifetime = maxConnectionLifetime,
            maxIdleConnections = maxIdleConnections,
            maxOpenConnections = maxOpenConnections,
            password = password,
            serviceAccountJson = serviceAccountJson,
            username = username,
            usernameTemplate = usernameTemplate,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy