com.pulumi.vault.database.kotlin.outputs.SecretsMountRedshift.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-vault-kotlin Show documentation
Show all versions of pulumi-vault-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.vault.database.kotlin.outputs
import kotlin.Any
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
*
* @property allowedRoles A list of roles that are allowed to use this
* connection.
* @property connectionUrl Connection string to use to connect to the database.
* @property data A map of sensitive data to pass to the endpoint. Useful for templated connection strings.
* Supported list of database secrets engines that can be configured:
* @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 name Name of the database connection.
* @property password The root credential password used in the connection URL
* @property pluginName Specifies the name of the plugin to use.
* @property rootRotationStatements A list of database statements to be executed to rotate the root user's credentials.
* @property username The root credential username used in the connection URL
* @property usernameTemplate Username generation template.
* @property verifyConnection Whether the connection should be verified on
* initial configuration or not.
*/
public data class SecretsMountRedshift(
public val allowedRoles: List? = null,
public val connectionUrl: String? = null,
public val `data`: Map? = null,
public val disableEscaping: Boolean? = null,
public val maxConnectionLifetime: Int? = null,
public val maxIdleConnections: Int? = null,
public val maxOpenConnections: Int? = null,
public val name: String,
public val password: String? = null,
public val pluginName: String? = null,
public val rootRotationStatements: List? = null,
public val username: String? = null,
public val usernameTemplate: String? = null,
public val verifyConnection: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.vault.database.outputs.SecretsMountRedshift): SecretsMountRedshift = SecretsMountRedshift(
allowedRoles = javaType.allowedRoles().map({ args0 -> args0 }),
connectionUrl = javaType.connectionUrl().map({ args0 -> args0 }).orElse(null),
`data` = javaType.`data`().map({ args0 -> args0.key.to(args0.value) }).toMap(),
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),
name = javaType.name(),
password = javaType.password().map({ args0 -> args0 }).orElse(null),
pluginName = javaType.pluginName().map({ args0 -> args0 }).orElse(null),
rootRotationStatements = javaType.rootRotationStatements().map({ args0 -> args0 }),
username = javaType.username().map({ args0 -> args0 }).orElse(null),
usernameTemplate = javaType.usernameTemplate().map({ args0 -> args0 }).orElse(null),
verifyConnection = javaType.verifyConnection().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy