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

com.pulumi.vault.database.kotlin.inputs.SecretsMountCouchbaseArgs.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.SecretsMountCouchbaseArgs.builder
import kotlin.Any
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property allowedRoles A list of roles that are allowed to use this
 * connection.
 * @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 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 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 name Name of the database connection.
 * @property password Specifies the password corresponding to the given username.
 * @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 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.
 * @property verifyConnection Whether the connection should be verified on
 * initial configuration or not.
 */
public data class SecretsMountCouchbaseArgs(
    public val allowedRoles: Output>? = null,
    public val base64Pem: Output? = null,
    public val bucketName: Output? = null,
    public val `data`: Output>? = null,
    public val hosts: Output>,
    public val insecureTls: Output? = null,
    public val name: Output,
    public val password: Output,
    public val pluginName: Output? = null,
    public val rootRotationStatements: Output>? = null,
    public val tls: Output? = null,
    public val username: Output,
    public val usernameTemplate: Output? = null,
    public val verifyConnection: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.database.inputs.SecretsMountCouchbaseArgs =
        com.pulumi.vault.database.inputs.SecretsMountCouchbaseArgs.builder()
            .allowedRoles(allowedRoles?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .base64Pem(base64Pem?.applyValue({ args0 -> args0 }))
            .bucketName(bucketName?.applyValue({ args0 -> args0 }))
            .`data`(`data`?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .hosts(hosts.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .insecureTls(insecureTls?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .password(password.applyValue({ args0 -> args0 }))
            .pluginName(pluginName?.applyValue({ args0 -> args0 }))
            .rootRotationStatements(
                rootRotationStatements?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .tls(tls?.applyValue({ args0 -> args0 }))
            .username(username.applyValue({ args0 -> args0 }))
            .usernameTemplate(usernameTemplate?.applyValue({ args0 -> args0 }))
            .verifyConnection(verifyConnection?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SecretsMountCouchbaseArgs].
 */
@PulumiTagMarker
public class SecretsMountCouchbaseArgsBuilder internal constructor() {
    private var allowedRoles: Output>? = null

    private var base64Pem: Output? = null

    private var bucketName: Output? = null

    private var `data`: Output>? = null

    private var hosts: Output>? = null

    private var insecureTls: Output? = null

    private var name: Output? = null

    private var password: Output? = null

    private var pluginName: Output? = null

    private var rootRotationStatements: Output>? = null

    private var tls: Output? = null

    private var username: Output? = null

    private var usernameTemplate: Output? = null

    private var verifyConnection: Output? = null

    /**
     * @param value A list of roles that are allowed to use this
     * connection.
     */
    @JvmName("kvhomdruvcfhvasf")
    public suspend fun allowedRoles(`value`: Output>) {
        this.allowedRoles = value
    }

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

    /**
     * @param values A list of roles that are allowed to use this
     * connection.
     */
    @JvmName("cysmyhyfnqibevyn")
    public suspend fun allowedRoles(values: List>) {
        this.allowedRoles = Output.all(values)
    }

    /**
     * @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("psiodiqmaapkywlu")
    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("yiqixqrklwstquyk")
    public suspend fun bucketName(`value`: Output) {
        this.bucketName = value
    }

    /**
     * @param value 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:
     */
    @JvmName("dqffvfcdsovlrsab")
    public suspend fun `data`(`value`: Output>) {
        this.`data` = value
    }

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

    @JvmName("nvlvekbpvweaipju")
    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("vslwinjlsyyaxijb")
    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("uysbajlqocuiabni")
    public suspend fun insecureTls(`value`: Output) {
        this.insecureTls = value
    }

    /**
     * @param value Name of the database connection.
     */
    @JvmName("dtsfdujgiuswpsrj")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

    /**
     * @param value Specifies the name of the plugin to use.
     */
    @JvmName("kiiqncjciggrvwbe")
    public suspend fun pluginName(`value`: Output) {
        this.pluginName = value
    }

    /**
     * @param value A list of database statements to be executed to rotate the root user's credentials.
     */
    @JvmName("ratqbjmnysgpyxbc")
    public suspend fun rootRotationStatements(`value`: Output>) {
        this.rootRotationStatements = value
    }

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

    /**
     * @param values A list of database statements to be executed to rotate the root user's credentials.
     */
    @JvmName("iseaspocpcpqbafo")
    public suspend fun rootRotationStatements(values: List>) {
        this.rootRotationStatements = Output.all(values)
    }

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

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

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

    /**
     * @param value Whether the connection should be verified on
     * initial configuration or not.
     */
    @JvmName("wgwnqdruatlbxugl")
    public suspend fun verifyConnection(`value`: Output) {
        this.verifyConnection = value
    }

    /**
     * @param value A list of roles that are allowed to use this
     * connection.
     */
    @JvmName("vsydiyhlpwcocugn")
    public suspend fun allowedRoles(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedRoles = mapped
    }

    /**
     * @param values A list of roles that are allowed to use this
     * connection.
     */
    @JvmName("tcawkjlsmchaiixy")
    public suspend fun allowedRoles(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedRoles = mapped
    }

    /**
     * @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("hppejofjjfllehqy")
    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("ftejrybcxiqtohib")
    public suspend fun bucketName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bucketName = mapped
    }

    /**
     * @param value 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:
     */
    @JvmName("meurhkwdwgmbtqwp")
    public suspend fun `data`(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`data` = mapped
    }

    /**
     * @param values 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:
     */
    @JvmName("ptpqogssdcaacmjc")
    public fun `data`(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`data` = mapped
    }

    /**
     * @param value A set of Couchbase URIs to connect to. Must use `couchbases://` scheme if `tls` is `true`.
     */
    @JvmName("hcnexnaxlpmsvnoc")
    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("cugsceordwcugpnu")
    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("yotkdbjjafulckwc")
    public suspend fun insecureTls(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.insecureTls = mapped
    }

    /**
     * @param value Name of the database connection.
     */
    @JvmName("sopupcggbfaywect")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

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

    /**
     * @param value Specifies the name of the plugin to use.
     */
    @JvmName("nejafouuawldjvon")
    public suspend fun pluginName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pluginName = mapped
    }

    /**
     * @param value A list of database statements to be executed to rotate the root user's credentials.
     */
    @JvmName("dbxtrvamparantvi")
    public suspend fun rootRotationStatements(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rootRotationStatements = mapped
    }

    /**
     * @param values A list of database statements to be executed to rotate the root user's credentials.
     */
    @JvmName("tvlxkwhnhpyqnrfv")
    public suspend fun rootRotationStatements(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rootRotationStatements = mapped
    }

    /**
     * @param value Specifies whether to use TLS when connecting to Couchbase.
     */
    @JvmName("yyheywefedrgbxic")
    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("aroiekwegcojsouo")
    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("rwgfevfytqeynjqv")
    public suspend fun usernameTemplate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.usernameTemplate = mapped
    }

    /**
     * @param value Whether the connection should be verified on
     * initial configuration or not.
     */
    @JvmName("xklwmwoghgclofvm")
    public suspend fun verifyConnection(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.verifyConnection = mapped
    }

    internal fun build(): SecretsMountCouchbaseArgs = SecretsMountCouchbaseArgs(
        allowedRoles = allowedRoles,
        base64Pem = base64Pem,
        bucketName = bucketName,
        `data` = `data`,
        hosts = hosts ?: throw PulumiNullFieldException("hosts"),
        insecureTls = insecureTls,
        name = name ?: throw PulumiNullFieldException("name"),
        password = password ?: throw PulumiNullFieldException("password"),
        pluginName = pluginName,
        rootRotationStatements = rootRotationStatements,
        tls = tls,
        username = username ?: throw PulumiNullFieldException("username"),
        usernameTemplate = usernameTemplate,
        verifyConnection = verifyConnection,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy