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

com.pulumi.vault.database.kotlin.SecretBackendConnectionArgs.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.6.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.vault.database.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.vault.database.SecretBackendConnectionArgs.builder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionCassandraArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionCassandraArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionCouchbaseArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionCouchbaseArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionElasticsearchArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionElasticsearchArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionHanaArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionHanaArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionInfluxdbArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionInfluxdbArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionMongodbArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionMongodbArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionMongodbatlasArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionMongodbatlasArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionMssqlArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionMssqlArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionMysqlArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionMysqlArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionMysqlAuroraArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionMysqlAuroraArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionMysqlLegacyArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionMysqlLegacyArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionMysqlRdsArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionMysqlRdsArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionOracleArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionOracleArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionPostgresqlArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionPostgresqlArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionRedisArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionRedisArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionRedisElasticacheArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionRedisElasticacheArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionRedshiftArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionRedshiftArgsBuilder
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionSnowflakeArgs
import com.pulumi.vault.database.kotlin.inputs.SecretBackendConnectionSnowflakeArgsBuilder
import kotlin.Any
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as vault from "@pulumi/vault";
 * const db = new vault.Mount("db", {
 *     path: "postgres",
 *     type: "database",
 * });
 * const postgres = new vault.database.SecretBackendConnection("postgres", {
 *     backend: db.path,
 *     name: "postgres",
 *     allowedRoles: [
 *         "dev",
 *         "prod",
 *     ],
 *     postgresql: {
 *         connectionUrl: "postgres://username:password@host:port/database",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_vault as vault
 * db = vault.Mount("db",
 *     path="postgres",
 *     type="database")
 * postgres = vault.database.SecretBackendConnection("postgres",
 *     backend=db.path,
 *     name="postgres",
 *     allowed_roles=[
 *         "dev",
 *         "prod",
 *     ],
 *     postgresql=vault.database.SecretBackendConnectionPostgresqlArgs(
 *         connection_url="postgres://username:password@host:port/database",
 *     ))
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Vault = Pulumi.Vault;
 * return await Deployment.RunAsync(() =>
 * {
 *     var db = new Vault.Mount("db", new()
 *     {
 *         Path = "postgres",
 *         Type = "database",
 *     });
 *     var postgres = new Vault.Database.SecretBackendConnection("postgres", new()
 *     {
 *         Backend = db.Path,
 *         Name = "postgres",
 *         AllowedRoles = new[]
 *         {
 *             "dev",
 *             "prod",
 *         },
 *         Postgresql = new Vault.Database.Inputs.SecretBackendConnectionPostgresqlArgs
 *         {
 *             ConnectionUrl = "postgres://username:password@host:port/database",
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-vault/sdk/v6/go/vault"
 * 	"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/database"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		db, err := vault.NewMount(ctx, "db", &vault.MountArgs{
 * 			Path: pulumi.String("postgres"),
 * 			Type: pulumi.String("database"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = database.NewSecretBackendConnection(ctx, "postgres", &database.SecretBackendConnectionArgs{
 * 			Backend: db.Path,
 * 			Name:    pulumi.String("postgres"),
 * 			AllowedRoles: pulumi.StringArray{
 * 				pulumi.String("dev"),
 * 				pulumi.String("prod"),
 * 			},
 * 			Postgresql: &database.SecretBackendConnectionPostgresqlArgs{
 * 				ConnectionUrl: pulumi.String("postgres://username:password@host:port/database"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.vault.Mount;
 * import com.pulumi.vault.MountArgs;
 * import com.pulumi.vault.database.SecretBackendConnection;
 * import com.pulumi.vault.database.SecretBackendConnectionArgs;
 * import com.pulumi.vault.database.inputs.SecretBackendConnectionPostgresqlArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var db = new Mount("db", MountArgs.builder()
 *             .path("postgres")
 *             .type("database")
 *             .build());
 *         var postgres = new SecretBackendConnection("postgres", SecretBackendConnectionArgs.builder()
 *             .backend(db.path())
 *             .name("postgres")
 *             .allowedRoles(
 *                 "dev",
 *                 "prod")
 *             .postgresql(SecretBackendConnectionPostgresqlArgs.builder()
 *                 .connectionUrl("postgres://username:password@host:port/database")
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   db:
 *     type: vault:Mount
 *     properties:
 *       path: postgres
 *       type: database
 *   postgres:
 *     type: vault:database:SecretBackendConnection
 *     properties:
 *       backend: ${db.path}
 *       name: postgres
 *       allowedRoles:
 *         - dev
 *         - prod
 *       postgresql:
 *         connectionUrl: postgres://username:password@host:port/database
 * ```
 * 
 * ## Import
 * Database secret backend connections can be imported using the `backend`, `/config/`, and the `name` e.g.
 * ```sh
 * $ pulumi import vault:database/secretBackendConnection:SecretBackendConnection example postgres/config/postgres
 * ```
 * @property allowedRoles A list of roles that are allowed to use this
 * connection.
 * @property backend The unique name of the Vault mount to configure.
 * @property cassandra A nested block containing configuration options for Cassandra connections.
 * @property couchbase A nested block containing configuration options for Couchbase connections.
 * @property data A map of sensitive data to pass to the endpoint. Useful for templated connection strings.
 * @property elasticsearch A nested block containing configuration options for Elasticsearch connections.
 * @property hana A nested block containing configuration options for SAP HanaDB connections.
 * @property influxdb A nested block containing configuration options for InfluxDB connections.
 * @property mongodb A nested block containing configuration options for MongoDB connections.
 * @property mongodbatlas A nested block containing configuration options for MongoDB Atlas connections.
 * @property mssql A nested block containing configuration options for MSSQL connections.
 * @property mysql A nested block containing configuration options for MySQL connections.
 * @property mysqlAurora A nested block containing configuration options for Aurora MySQL connections.
 * @property mysqlLegacy A nested block containing configuration options for legacy MySQL connections.
 * @property mysqlRds A nested block containing configuration options for RDS MySQL connections.
 * @property name A unique name to give the database connection.
 * @property namespace The namespace to provision the resource in.
 * The value should not contain leading or trailing forward slashes.
 * The `namespace` is always relative to the provider's configured namespace.
 * *Available only for Vault Enterprise*.
 * @property oracle A nested block containing configuration options for Oracle connections.
 * @property pluginName Specifies the name of the plugin to use.
 * @property postgresql A nested block containing configuration options for PostgreSQL connections.
 * @property redis A nested block containing configuration options for Redis connections.
 * @property redisElasticache A nested block containing configuration options for Redis ElastiCache connections.
 * Exactly one of the nested blocks of configuration options must be supplied.
 * @property redshift Connection parameters for the redshift-database-plugin plugin.
 * @property rootRotationStatements A list of database statements to be executed to rotate the root user's credentials.
 * @property snowflake A nested block containing configuration options for Snowflake connections.
 * @property verifyConnection Whether the connection should be verified on
 * initial configuration or not.
 */
public data class SecretBackendConnectionArgs(
    public val allowedRoles: Output>? = null,
    public val backend: Output? = null,
    public val cassandra: Output? = null,
    public val couchbase: Output? = null,
    public val `data`: Output>? = null,
    public val elasticsearch: Output? = null,
    public val hana: Output? = null,
    public val influxdb: Output? = null,
    public val mongodb: Output? = null,
    public val mongodbatlas: Output? = null,
    public val mssql: Output? = null,
    public val mysql: Output? = null,
    public val mysqlAurora: Output? = null,
    public val mysqlLegacy: Output? = null,
    public val mysqlRds: Output? = null,
    public val name: Output? = null,
    public val namespace: Output? = null,
    public val oracle: Output? = null,
    public val pluginName: Output? = null,
    public val postgresql: Output? = null,
    public val redis: Output? = null,
    public val redisElasticache: Output? = null,
    public val redshift: Output? = null,
    public val rootRotationStatements: Output>? = null,
    public val snowflake: Output? = null,
    public val verifyConnection: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.database.SecretBackendConnectionArgs =
        com.pulumi.vault.database.SecretBackendConnectionArgs.builder()
            .allowedRoles(allowedRoles?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .backend(backend?.applyValue({ args0 -> args0 }))
            .cassandra(cassandra?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .couchbase(couchbase?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .`data`(`data`?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .elasticsearch(elasticsearch?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .hana(hana?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .influxdb(influxdb?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .mongodb(mongodb?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .mongodbatlas(mongodbatlas?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .mssql(mssql?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .mysql(mysql?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .mysqlAurora(mysqlAurora?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .mysqlLegacy(mysqlLegacy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .mysqlRds(mysqlRds?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .namespace(namespace?.applyValue({ args0 -> args0 }))
            .oracle(oracle?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .pluginName(pluginName?.applyValue({ args0 -> args0 }))
            .postgresql(postgresql?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .redis(redis?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .redisElasticache(redisElasticache?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .redshift(redshift?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .rootRotationStatements(
                rootRotationStatements?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .snowflake(snowflake?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .verifyConnection(verifyConnection?.applyValue({ args0 -> args0 })).build()
}

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

    private var backend: Output? = null

    private var cassandra: Output? = null

    private var couchbase: Output? = null

    private var `data`: Output>? = null

    private var elasticsearch: Output? = null

    private var hana: Output? = null

    private var influxdb: Output? = null

    private var mongodb: Output? = null

    private var mongodbatlas: Output? = null

    private var mssql: Output? = null

    private var mysql: Output? = null

    private var mysqlAurora: Output? = null

    private var mysqlLegacy: Output? = null

    private var mysqlRds: Output? = null

    private var name: Output? = null

    private var namespace: Output? = null

    private var oracle: Output? = null

    private var pluginName: Output? = null

    private var postgresql: Output? = null

    private var redis: Output? = null

    private var redisElasticache: Output? = null

    private var redshift: Output? = null

    private var rootRotationStatements: Output>? = null

    private var snowflake: Output? = null

    private var verifyConnection: Output? = null

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

    @JvmName("nxxosnrwniuhcjwn")
    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("fslhhcqboocteluo")
    public suspend fun allowedRoles(values: List>) {
        this.allowedRoles = Output.all(values)
    }

    /**
     * @param value The unique name of the Vault mount to configure.
     */
    @JvmName("gifgsngotwxfbywo")
    public suspend fun backend(`value`: Output) {
        this.backend = value
    }

    /**
     * @param value A nested block containing configuration options for Cassandra connections.
     */
    @JvmName("hvppqalnyuqsgond")
    public suspend fun cassandra(`value`: Output) {
        this.cassandra = value
    }

    /**
     * @param value A nested block containing configuration options for Couchbase connections.
     */
    @JvmName("cjscxqcihpwdcqji")
    public suspend fun couchbase(`value`: Output) {
        this.couchbase = value
    }

    /**
     * @param value A map of sensitive data to pass to the endpoint. Useful for templated connection strings.
     */
    @JvmName("raygaseckftlqrjy")
    public suspend fun `data`(`value`: Output>) {
        this.`data` = value
    }

    /**
     * @param value A nested block containing configuration options for Elasticsearch connections.
     */
    @JvmName("vhqmyjvhexxytepw")
    public suspend fun elasticsearch(`value`: Output) {
        this.elasticsearch = value
    }

    /**
     * @param value A nested block containing configuration options for SAP HanaDB connections.
     */
    @JvmName("vxakppegfyjfxybo")
    public suspend fun hana(`value`: Output) {
        this.hana = value
    }

    /**
     * @param value A nested block containing configuration options for InfluxDB connections.
     */
    @JvmName("uxojpjqpjdihevjf")
    public suspend fun influxdb(`value`: Output) {
        this.influxdb = value
    }

    /**
     * @param value A nested block containing configuration options for MongoDB connections.
     */
    @JvmName("ykotqrvnwbjkeuku")
    public suspend fun mongodb(`value`: Output) {
        this.mongodb = value
    }

    /**
     * @param value A nested block containing configuration options for MongoDB Atlas connections.
     */
    @JvmName("iudpmwsxsvhjtdeh")
    public suspend fun mongodbatlas(`value`: Output) {
        this.mongodbatlas = value
    }

    /**
     * @param value A nested block containing configuration options for MSSQL connections.
     */
    @JvmName("fhrwvxqqnuomrlip")
    public suspend fun mssql(`value`: Output) {
        this.mssql = value
    }

    /**
     * @param value A nested block containing configuration options for MySQL connections.
     */
    @JvmName("gqmmseojrwtbxbwp")
    public suspend fun mysql(`value`: Output) {
        this.mysql = value
    }

    /**
     * @param value A nested block containing configuration options for Aurora MySQL connections.
     */
    @JvmName("lhbxilqgngxlitcc")
    public suspend fun mysqlAurora(`value`: Output) {
        this.mysqlAurora = value
    }

    /**
     * @param value A nested block containing configuration options for legacy MySQL connections.
     */
    @JvmName("ycpnmhjsfhdaytmn")
    public suspend fun mysqlLegacy(`value`: Output) {
        this.mysqlLegacy = value
    }

    /**
     * @param value A nested block containing configuration options for RDS MySQL connections.
     */
    @JvmName("utegdyibwixqurru")
    public suspend fun mysqlRds(`value`: Output) {
        this.mysqlRds = value
    }

    /**
     * @param value A unique name to give the database connection.
     */
    @JvmName("dbnckgwaheyurlen")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The namespace to provision the resource in.
     * The value should not contain leading or trailing forward slashes.
     * The `namespace` is always relative to the provider's configured namespace.
     * *Available only for Vault Enterprise*.
     */
    @JvmName("hulgyrqnviecfeds")
    public suspend fun namespace(`value`: Output) {
        this.namespace = value
    }

    /**
     * @param value A nested block containing configuration options for Oracle connections.
     */
    @JvmName("btbithlkrhdwcxvl")
    public suspend fun oracle(`value`: Output) {
        this.oracle = value
    }

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

    /**
     * @param value A nested block containing configuration options for PostgreSQL connections.
     */
    @JvmName("ckgwneuvhxgawlbt")
    public suspend fun postgresql(`value`: Output) {
        this.postgresql = value
    }

    /**
     * @param value A nested block containing configuration options for Redis connections.
     */
    @JvmName("mkrfgfdsnbauyjiu")
    public suspend fun redis(`value`: Output) {
        this.redis = value
    }

    /**
     * @param value A nested block containing configuration options for Redis ElastiCache connections.
     * Exactly one of the nested blocks of configuration options must be supplied.
     */
    @JvmName("qkwhfeljdmkvoqeh")
    public suspend fun redisElasticache(`value`: Output) {
        this.redisElasticache = value
    }

    /**
     * @param value Connection parameters for the redshift-database-plugin plugin.
     */
    @JvmName("tdqlchttwchtncmu")
    public suspend fun redshift(`value`: Output) {
        this.redshift = value
    }

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

    @JvmName("mirejjdatxynuwqq")
    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("kbagjyixdboldmeh")
    public suspend fun rootRotationStatements(values: List>) {
        this.rootRotationStatements = Output.all(values)
    }

    /**
     * @param value A nested block containing configuration options for Snowflake connections.
     */
    @JvmName("lisoxyxguclnsphi")
    public suspend fun snowflake(`value`: Output) {
        this.snowflake = value
    }

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

    /**
     * @param value A list of roles that are allowed to use this
     * connection.
     */
    @JvmName("qtjlonpivkijhdbq")
    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("ffwshbrbhqraisgd")
    public suspend fun allowedRoles(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedRoles = mapped
    }

    /**
     * @param value The unique name of the Vault mount to configure.
     */
    @JvmName("ycaubbhxmsrsyrcm")
    public suspend fun backend(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backend = mapped
    }

    /**
     * @param value A nested block containing configuration options for Cassandra connections.
     */
    @JvmName("kpkjhjsqnnaoqybq")
    public suspend fun cassandra(`value`: SecretBackendConnectionCassandraArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cassandra = mapped
    }

    /**
     * @param argument A nested block containing configuration options for Cassandra connections.
     */
    @JvmName("bfxvprkkhvfshkjn")
    public suspend fun cassandra(argument: suspend SecretBackendConnectionCassandraArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionCassandraArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.cassandra = mapped
    }

    /**
     * @param value A nested block containing configuration options for Couchbase connections.
     */
    @JvmName("thcyscygnxgjdrrr")
    public suspend fun couchbase(`value`: SecretBackendConnectionCouchbaseArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.couchbase = mapped
    }

    /**
     * @param argument A nested block containing configuration options for Couchbase connections.
     */
    @JvmName("fwivigjrtvblbxab")
    public suspend fun couchbase(argument: suspend SecretBackendConnectionCouchbaseArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionCouchbaseArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.couchbase = mapped
    }

    /**
     * @param value A map of sensitive data to pass to the endpoint. Useful for templated connection strings.
     */
    @JvmName("xbqvafuknalpdbku")
    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.
     */
    @JvmName("iehxpvqrekluidgo")
    public fun `data`(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`data` = mapped
    }

    /**
     * @param value A nested block containing configuration options for Elasticsearch connections.
     */
    @JvmName("tvconkgmqjyxqdck")
    public suspend fun elasticsearch(`value`: SecretBackendConnectionElasticsearchArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.elasticsearch = mapped
    }

    /**
     * @param argument A nested block containing configuration options for Elasticsearch connections.
     */
    @JvmName("lqomumcauflhdotu")
    public suspend fun elasticsearch(argument: suspend SecretBackendConnectionElasticsearchArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionElasticsearchArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.elasticsearch = mapped
    }

    /**
     * @param value A nested block containing configuration options for SAP HanaDB connections.
     */
    @JvmName("rqhuuvxfgtnwdwgx")
    public suspend fun hana(`value`: SecretBackendConnectionHanaArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hana = mapped
    }

    /**
     * @param argument A nested block containing configuration options for SAP HanaDB connections.
     */
    @JvmName("jrllywsbxuuwojav")
    public suspend fun hana(argument: suspend SecretBackendConnectionHanaArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionHanaArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.hana = mapped
    }

    /**
     * @param value A nested block containing configuration options for InfluxDB connections.
     */
    @JvmName("rgaghgrpcwajgpdl")
    public suspend fun influxdb(`value`: SecretBackendConnectionInfluxdbArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.influxdb = mapped
    }

    /**
     * @param argument A nested block containing configuration options for InfluxDB connections.
     */
    @JvmName("qrgonwbyocdxprmv")
    public suspend fun influxdb(argument: suspend SecretBackendConnectionInfluxdbArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionInfluxdbArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.influxdb = mapped
    }

    /**
     * @param value A nested block containing configuration options for MongoDB connections.
     */
    @JvmName("prhrffsuvbvqoqtr")
    public suspend fun mongodb(`value`: SecretBackendConnectionMongodbArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mongodb = mapped
    }

    /**
     * @param argument A nested block containing configuration options for MongoDB connections.
     */
    @JvmName("gdyodwxvisdrwmha")
    public suspend fun mongodb(argument: suspend SecretBackendConnectionMongodbArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionMongodbArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.mongodb = mapped
    }

    /**
     * @param value A nested block containing configuration options for MongoDB Atlas connections.
     */
    @JvmName("hsvwegohbqasiuja")
    public suspend fun mongodbatlas(`value`: SecretBackendConnectionMongodbatlasArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mongodbatlas = mapped
    }

    /**
     * @param argument A nested block containing configuration options for MongoDB Atlas connections.
     */
    @JvmName("pfrvdnocasqbgxhr")
    public suspend fun mongodbatlas(argument: suspend SecretBackendConnectionMongodbatlasArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionMongodbatlasArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.mongodbatlas = mapped
    }

    /**
     * @param value A nested block containing configuration options for MSSQL connections.
     */
    @JvmName("ldyfshmtgffxdaih")
    public suspend fun mssql(`value`: SecretBackendConnectionMssqlArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mssql = mapped
    }

    /**
     * @param argument A nested block containing configuration options for MSSQL connections.
     */
    @JvmName("swidnancugkrufqo")
    public suspend fun mssql(argument: suspend SecretBackendConnectionMssqlArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionMssqlArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.mssql = mapped
    }

    /**
     * @param value A nested block containing configuration options for MySQL connections.
     */
    @JvmName("irrtpmealxdbbrrr")
    public suspend fun mysql(`value`: SecretBackendConnectionMysqlArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mysql = mapped
    }

    /**
     * @param argument A nested block containing configuration options for MySQL connections.
     */
    @JvmName("hxqswpqctxepmjjc")
    public suspend fun mysql(argument: suspend SecretBackendConnectionMysqlArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionMysqlArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.mysql = mapped
    }

    /**
     * @param value A nested block containing configuration options for Aurora MySQL connections.
     */
    @JvmName("roaucmqfgwbrmkjl")
    public suspend fun mysqlAurora(`value`: SecretBackendConnectionMysqlAuroraArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mysqlAurora = mapped
    }

    /**
     * @param argument A nested block containing configuration options for Aurora MySQL connections.
     */
    @JvmName("mbdmauhrksidwuno")
    public suspend fun mysqlAurora(argument: suspend SecretBackendConnectionMysqlAuroraArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionMysqlAuroraArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.mysqlAurora = mapped
    }

    /**
     * @param value A nested block containing configuration options for legacy MySQL connections.
     */
    @JvmName("jwiyddvguthklyux")
    public suspend fun mysqlLegacy(`value`: SecretBackendConnectionMysqlLegacyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mysqlLegacy = mapped
    }

    /**
     * @param argument A nested block containing configuration options for legacy MySQL connections.
     */
    @JvmName("xgjrrhftwseabrah")
    public suspend fun mysqlLegacy(argument: suspend SecretBackendConnectionMysqlLegacyArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionMysqlLegacyArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.mysqlLegacy = mapped
    }

    /**
     * @param value A nested block containing configuration options for RDS MySQL connections.
     */
    @JvmName("cehrtslutdvglshh")
    public suspend fun mysqlRds(`value`: SecretBackendConnectionMysqlRdsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mysqlRds = mapped
    }

    /**
     * @param argument A nested block containing configuration options for RDS MySQL connections.
     */
    @JvmName("fdsrrupnrfmgnfpp")
    public suspend fun mysqlRds(argument: suspend SecretBackendConnectionMysqlRdsArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionMysqlRdsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.mysqlRds = mapped
    }

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

    /**
     * @param value The namespace to provision the resource in.
     * The value should not contain leading or trailing forward slashes.
     * The `namespace` is always relative to the provider's configured namespace.
     * *Available only for Vault Enterprise*.
     */
    @JvmName("umuxmvoxghcuynem")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    /**
     * @param value A nested block containing configuration options for Oracle connections.
     */
    @JvmName("vdysnbohipwseujw")
    public suspend fun oracle(`value`: SecretBackendConnectionOracleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.oracle = mapped
    }

    /**
     * @param argument A nested block containing configuration options for Oracle connections.
     */
    @JvmName("nmrylmjqwfjwmxqt")
    public suspend fun oracle(argument: suspend SecretBackendConnectionOracleArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionOracleArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.oracle = mapped
    }

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

    /**
     * @param value A nested block containing configuration options for PostgreSQL connections.
     */
    @JvmName("llbdilxhboptndfk")
    public suspend fun postgresql(`value`: SecretBackendConnectionPostgresqlArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.postgresql = mapped
    }

    /**
     * @param argument A nested block containing configuration options for PostgreSQL connections.
     */
    @JvmName("qydmvxucssssbgme")
    public suspend fun postgresql(argument: suspend SecretBackendConnectionPostgresqlArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionPostgresqlArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.postgresql = mapped
    }

    /**
     * @param value A nested block containing configuration options for Redis connections.
     */
    @JvmName("jjwklnrujqcekccb")
    public suspend fun redis(`value`: SecretBackendConnectionRedisArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.redis = mapped
    }

    /**
     * @param argument A nested block containing configuration options for Redis connections.
     */
    @JvmName("vircnpxxedkpijrn")
    public suspend fun redis(argument: suspend SecretBackendConnectionRedisArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionRedisArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.redis = mapped
    }

    /**
     * @param value A nested block containing configuration options for Redis ElastiCache connections.
     * Exactly one of the nested blocks of configuration options must be supplied.
     */
    @JvmName("dnhwlrqmagpgbnbv")
    public suspend fun redisElasticache(`value`: SecretBackendConnectionRedisElasticacheArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.redisElasticache = mapped
    }

    /**
     * @param argument A nested block containing configuration options for Redis ElastiCache connections.
     * Exactly one of the nested blocks of configuration options must be supplied.
     */
    @JvmName("qmmabkvvlyrthfrr")
    public suspend fun redisElasticache(argument: suspend SecretBackendConnectionRedisElasticacheArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionRedisElasticacheArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.redisElasticache = mapped
    }

    /**
     * @param value Connection parameters for the redshift-database-plugin plugin.
     */
    @JvmName("gtbcfheyiwbshecr")
    public suspend fun redshift(`value`: SecretBackendConnectionRedshiftArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.redshift = mapped
    }

    /**
     * @param argument Connection parameters for the redshift-database-plugin plugin.
     */
    @JvmName("nfnnfdvnrnfpftah")
    public suspend fun redshift(argument: suspend SecretBackendConnectionRedshiftArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionRedshiftArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.redshift = mapped
    }

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

    /**
     * @param value A nested block containing configuration options for Snowflake connections.
     */
    @JvmName("pufxebmlnkpajerf")
    public suspend fun snowflake(`value`: SecretBackendConnectionSnowflakeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.snowflake = mapped
    }

    /**
     * @param argument A nested block containing configuration options for Snowflake connections.
     */
    @JvmName("jxknlgujocfjsovo")
    public suspend fun snowflake(argument: suspend SecretBackendConnectionSnowflakeArgsBuilder.() -> Unit) {
        val toBeMapped = SecretBackendConnectionSnowflakeArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.snowflake = mapped
    }

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

    internal fun build(): SecretBackendConnectionArgs = SecretBackendConnectionArgs(
        allowedRoles = allowedRoles,
        backend = backend,
        cassandra = cassandra,
        couchbase = couchbase,
        `data` = `data`,
        elasticsearch = elasticsearch,
        hana = hana,
        influxdb = influxdb,
        mongodb = mongodb,
        mongodbatlas = mongodbatlas,
        mssql = mssql,
        mysql = mysql,
        mysqlAurora = mysqlAurora,
        mysqlLegacy = mysqlLegacy,
        mysqlRds = mysqlRds,
        name = name,
        namespace = namespace,
        oracle = oracle,
        pluginName = pluginName,
        postgresql = postgresql,
        redis = redis,
        redisElasticache = redisElasticache,
        redshift = redshift,
        rootRotationStatements = rootRotationStatements,
        snowflake = snowflake,
        verifyConnection = verifyConnection,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy