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

com.pulumi.vault.database.kotlin.outputs.SecretsMountCassandra.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.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 connectTimeout The number of seconds to use as a connection timeout.
 * @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 hosts Cassandra hosts to connect to.
 * @property insecureTls Whether to skip verification of the server certificate when using TLS.
 * @property name Name of the database connection.
 * @property password The password to use when authenticating with Cassandra.
 * @property pemBundle Concatenated PEM blocks containing a certificate and private key; a certificate, private key, and issuing CA certificate; or just a CA certificate.
 * @property pemJson Specifies JSON containing a certificate and private key; a certificate, private key, and issuing CA certificate; or just a CA certificate.
 * @property pluginName Specifies the name of the plugin to use.
 * @property port The transport port to use to connect to Cassandra.
 * @property protocolVersion The CQL protocol version to use.
 * @property rootRotationStatements A list of database statements to be executed to rotate the root user's credentials.
 * @property tls Whether to use TLS when connecting to Cassandra.
 * @property username The username to use when authenticating with Cassandra.
 * @property verifyConnection Whether the connection should be verified on
 * initial configuration or not.
 */
public data class SecretsMountCassandra(
    public val allowedRoles: List? = null,
    public val connectTimeout: Int? = null,
    public val `data`: Map? = null,
    public val hosts: List? = null,
    public val insecureTls: Boolean? = null,
    public val name: String,
    public val password: String? = null,
    public val pemBundle: String? = null,
    public val pemJson: String? = null,
    public val pluginName: String? = null,
    public val port: Int? = null,
    public val protocolVersion: Int? = null,
    public val rootRotationStatements: List? = null,
    public val tls: Boolean? = null,
    public val username: String? = null,
    public val verifyConnection: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.vault.database.outputs.SecretsMountCassandra): SecretsMountCassandra = SecretsMountCassandra(
            allowedRoles = javaType.allowedRoles().map({ args0 -> args0 }),
            connectTimeout = javaType.connectTimeout().map({ args0 -> args0 }).orElse(null),
            `data` = javaType.`data`().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            hosts = javaType.hosts().map({ args0 -> args0 }),
            insecureTls = javaType.insecureTls().map({ args0 -> args0 }).orElse(null),
            name = javaType.name(),
            password = javaType.password().map({ args0 -> args0 }).orElse(null),
            pemBundle = javaType.pemBundle().map({ args0 -> args0 }).orElse(null),
            pemJson = javaType.pemJson().map({ args0 -> args0 }).orElse(null),
            pluginName = javaType.pluginName().map({ args0 -> args0 }).orElse(null),
            port = javaType.port().map({ args0 -> args0 }).orElse(null),
            protocolVersion = javaType.protocolVersion().map({ args0 -> args0 }).orElse(null),
            rootRotationStatements = javaType.rootRotationStatements().map({ args0 -> args0 }),
            tls = javaType.tls().map({ args0 -> args0 }).orElse(null),
            username = javaType.username().map({ args0 -> args0 }).orElse(null),
            verifyConnection = javaType.verifyConnection().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy