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

com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionCouchbaseArgs.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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.vault.database.inputs.SecretBackendConnectionCouchbaseArgs.builder
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property base64Pem Required if `tls` is `true`. Specifies the certificate authority of the Couchbase server, as a PEM certificate that has been base64 encoded.
 * @property bucketName Required for Couchbase versions prior to 6.5.0. This is only used to verify vault's connection to the server.
 * @property hosts A set of Couchbase URIs to connect to. Must use `couchbases://` scheme if `tls` is `true`.
 * @property insecureTls Specifies whether to skip verification of the server certificate when using TLS.
 * @property password Specifies the password corresponding to the given username.
 * @property tls Specifies whether to use TLS when connecting to Couchbase.
 * @property username Specifies the username for Vault to use.
 * @property usernameTemplate Template describing how dynamic usernames are generated.
 */
public data class SecretBackendConnectionCouchbaseArgs(
    public val base64Pem: Output? = null,
    public val bucketName: Output? = null,
    public val hosts: Output>,
    public val insecureTls: Output? = null,
    public val password: Output,
    public val tls: Output? = null,
    public val username: Output,
    public val usernameTemplate: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.database.inputs.SecretBackendConnectionCouchbaseArgs =
        com.pulumi.vault.database.inputs.SecretBackendConnectionCouchbaseArgs.builder()
            .base64Pem(base64Pem?.applyValue({ args0 -> args0 }))
            .bucketName(bucketName?.applyValue({ args0 -> args0 }))
            .hosts(hosts.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .insecureTls(insecureTls?.applyValue({ args0 -> args0 }))
            .password(password.applyValue({ args0 -> args0 }))
            .tls(tls?.applyValue({ args0 -> args0 }))
            .username(username.applyValue({ args0 -> args0 }))
            .usernameTemplate(usernameTemplate?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SecretBackendConnectionCouchbaseArgs].
 */
@PulumiTagMarker
public class SecretBackendConnectionCouchbaseArgsBuilder internal constructor() {
    private var base64Pem: Output? = null

    private var bucketName: Output? = null

    private var hosts: Output>? = null

    private var insecureTls: Output? = null

    private var password: Output? = null

    private var tls: Output? = null

    private var username: Output? = null

    private var usernameTemplate: Output? = null

    /**
     * @param value Required if `tls` is `true`. Specifies the certificate authority of the Couchbase server, as a PEM certificate that has been base64 encoded.
     */
    @JvmName("tqfyqbpqmlmifmqw")
    public suspend fun base64Pem(`value`: Output) {
        this.base64Pem = value
    }

    /**
     * @param value Required for Couchbase versions prior to 6.5.0. This is only used to verify vault's connection to the server.
     */
    @JvmName("eiwrpjqjxpxgeyox")
    public suspend fun bucketName(`value`: Output) {
        this.bucketName = value
    }

    /**
     * @param value A set of Couchbase URIs to connect to. Must use `couchbases://` scheme if `tls` is `true`.
     */
    @JvmName("bgsknmwnellwagyd")
    public suspend fun hosts(`value`: Output>) {
        this.hosts = value
    }

    @JvmName("mhmwkwcqnwpthucy")
    public suspend fun hosts(vararg values: Output) {
        this.hosts = Output.all(values.asList())
    }

    /**
     * @param values A set of Couchbase URIs to connect to. Must use `couchbases://` scheme if `tls` is `true`.
     */
    @JvmName("cvleidugiytexmpq")
    public suspend fun hosts(values: List>) {
        this.hosts = Output.all(values)
    }

    /**
     * @param value Specifies whether to skip verification of the server certificate when using TLS.
     */
    @JvmName("qhpeapobuqcgqkqs")
    public suspend fun insecureTls(`value`: Output) {
        this.insecureTls = value
    }

    /**
     * @param value Specifies the password corresponding to the given username.
     */
    @JvmName("cmshbolkpfrygcxj")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value Specifies whether to use TLS when connecting to Couchbase.
     */
    @JvmName("svsxfubsqegpukmg")
    public suspend fun tls(`value`: Output) {
        this.tls = value
    }

    /**
     * @param value Specifies the username for Vault to use.
     */
    @JvmName("seijrfauapurcgvn")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value Template describing how dynamic usernames are generated.
     */
    @JvmName("gyfpjtnutwhwtpof")
    public suspend fun usernameTemplate(`value`: Output) {
        this.usernameTemplate = value
    }

    /**
     * @param value Required if `tls` is `true`. Specifies the certificate authority of the Couchbase server, as a PEM certificate that has been base64 encoded.
     */
    @JvmName("wswdihubusmdnvei")
    public suspend fun base64Pem(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.base64Pem = mapped
    }

    /**
     * @param value Required for Couchbase versions prior to 6.5.0. This is only used to verify vault's connection to the server.
     */
    @JvmName("axxgkkbibadpdcsi")
    public suspend fun bucketName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bucketName = mapped
    }

    /**
     * @param value A set of Couchbase URIs to connect to. Must use `couchbases://` scheme if `tls` is `true`.
     */
    @JvmName("tnluglhpwpsnslma")
    public suspend fun hosts(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hosts = mapped
    }

    /**
     * @param values A set of Couchbase URIs to connect to. Must use `couchbases://` scheme if `tls` is `true`.
     */
    @JvmName("rdnvojxwsstioptw")
    public suspend fun hosts(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hosts = mapped
    }

    /**
     * @param value Specifies whether to skip verification of the server certificate when using TLS.
     */
    @JvmName("psrmmsfrkvjwxcpn")
    public suspend fun insecureTls(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.insecureTls = mapped
    }

    /**
     * @param value Specifies the password corresponding to the given username.
     */
    @JvmName("paanoutwrpdcpowm")
    public suspend fun password(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value Specifies whether to use TLS when connecting to Couchbase.
     */
    @JvmName("sedyjcryaloiowyc")
    public suspend fun tls(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tls = mapped
    }

    /**
     * @param value Specifies the username for Vault to use.
     */
    @JvmName("tnjywmdrticuldht")
    public suspend fun username(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.username = mapped
    }

    /**
     * @param value Template describing how dynamic usernames are generated.
     */
    @JvmName("tlrsemxrypifxxjs")
    public suspend fun usernameTemplate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.usernameTemplate = mapped
    }

    internal fun build(): SecretBackendConnectionCouchbaseArgs = SecretBackendConnectionCouchbaseArgs(
        base64Pem = base64Pem,
        bucketName = bucketName,
        hosts = hosts ?: throw PulumiNullFieldException("hosts"),
        insecureTls = insecureTls,
        password = password ?: throw PulumiNullFieldException("password"),
        tls = tls,
        username = username ?: throw PulumiNullFieldException("username"),
        usernameTemplate = usernameTemplate,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy