com.pulumi.vault.database.kotlin.outputs.SecretsMountElasticsearch.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.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 caCert The path to a PEM-encoded CA cert file to use to verify the Elasticsearch server's identity
* @property caPath The path to a directory of PEM-encoded CA cert files to use to verify the Elasticsearch server's identity
* @property clientCert The path to the certificate for the Elasticsearch client to present for communication
* @property clientKey The path to the key for the Elasticsearch client to use for communication
* @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 insecure Whether to disable certificate verification
* @property name Name of the database connection.
* @property password The password to be 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 tlsServerName This, if set, is used to set the SNI host when connecting via TLS
* @property url The URL for Elasticsearch's API
* @property username The username to be used in the connection URL
* @property usernameTemplate Template describing how dynamic usernames are generated.
* @property verifyConnection Whether the connection should be verified on
* initial configuration or not.
*/
public data class SecretsMountElasticsearch(
public val allowedRoles: List? = null,
public val caCert: String? = null,
public val caPath: String? = null,
public val clientCert: String? = null,
public val clientKey: String? = null,
public val `data`: Map? = null,
public val insecure: Boolean? = null,
public val name: String,
public val password: String,
public val pluginName: String? = null,
public val rootRotationStatements: List? = null,
public val tlsServerName: String? = null,
public val url: String,
public val username: String,
public val usernameTemplate: String? = null,
public val verifyConnection: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.vault.database.outputs.SecretsMountElasticsearch): SecretsMountElasticsearch = SecretsMountElasticsearch(
allowedRoles = javaType.allowedRoles().map({ args0 -> args0 }),
caCert = javaType.caCert().map({ args0 -> args0 }).orElse(null),
caPath = javaType.caPath().map({ args0 -> args0 }).orElse(null),
clientCert = javaType.clientCert().map({ args0 -> args0 }).orElse(null),
clientKey = javaType.clientKey().map({ args0 -> args0 }).orElse(null),
`data` = javaType.`data`().map({ args0 -> args0.key.to(args0.value) }).toMap(),
insecure = javaType.insecure().map({ args0 -> args0 }).orElse(null),
name = javaType.name(),
password = javaType.password(),
pluginName = javaType.pluginName().map({ args0 -> args0 }).orElse(null),
rootRotationStatements = javaType.rootRotationStatements().map({ args0 -> args0 }),
tlsServerName = javaType.tlsServerName().map({ args0 -> args0 }).orElse(null),
url = javaType.url(),
username = javaType.username(),
usernameTemplate = javaType.usernameTemplate().map({ args0 -> args0 }).orElse(null),
verifyConnection = javaType.verifyConnection().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy