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

com.pulumi.vault.database.kotlin.outputs.SecretBackendConnectionPostgresql.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.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 SecretBackendConnectionPostgresql(
    public val authType: String? = null,
    public val connectionUrl: String? = null,
    public val disableEscaping: Boolean? = null,
    public val maxConnectionLifetime: Int? = null,
    public val maxIdleConnections: Int? = null,
    public val maxOpenConnections: Int? = null,
    public val password: String? = null,
    public val serviceAccountJson: String? = null,
    public val username: String? = null,
    public val usernameTemplate: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.vault.database.outputs.SecretBackendConnectionPostgresql): SecretBackendConnectionPostgresql = SecretBackendConnectionPostgresql(
            authType = javaType.authType().map({ args0 -> args0 }).orElse(null),
            connectionUrl = javaType.connectionUrl().map({ args0 -> args0 }).orElse(null),
            disableEscaping = javaType.disableEscaping().map({ args0 -> args0 }).orElse(null),
            maxConnectionLifetime = javaType.maxConnectionLifetime().map({ args0 -> args0 }).orElse(null),
            maxIdleConnections = javaType.maxIdleConnections().map({ args0 -> args0 }).orElse(null),
            maxOpenConnections = javaType.maxOpenConnections().map({ args0 -> args0 }).orElse(null),
            password = javaType.password().map({ args0 -> args0 }).orElse(null),
            serviceAccountJson = javaType.serviceAccountJson().map({ args0 -> args0 }).orElse(null),
            username = javaType.username().map({ args0 -> args0 }).orElse(null),
            usernameTemplate = javaType.usernameTemplate().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy