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

com.pulumi.vault.database.kotlin.inputs.SecretsMountMongodbatlaArgs.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.SecretsMountMongodbatlaArgs.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 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 name Name of the database connection.
 * @property pluginName Specifies the name of the plugin to use.
 * @property privateKey The Private Programmatic API Key used to connect with MongoDB Atlas API.
 * @property projectId The Project ID the Database User should be created within.
 * @property publicKey The Public Programmatic API Key used to authenticate with the MongoDB Atlas API.
 * @property rootRotationStatements A list of database statements to be executed to rotate the root user's credentials.
 * @property verifyConnection Whether the connection should be verified on
 * initial configuration or not.
 */
public data class SecretsMountMongodbatlaArgs(
    public val allowedRoles: Output>? = null,
    public val `data`: Output>? = null,
    public val name: Output,
    public val pluginName: Output? = null,
    public val privateKey: Output,
    public val projectId: Output,
    public val publicKey: Output,
    public val rootRotationStatements: Output>? = null,
    public val verifyConnection: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.database.inputs.SecretsMountMongodbatlaArgs =
        com.pulumi.vault.database.inputs.SecretsMountMongodbatlaArgs.builder()
            .allowedRoles(allowedRoles?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .`data`(`data`?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .name(name.applyValue({ args0 -> args0 }))
            .pluginName(pluginName?.applyValue({ args0 -> args0 }))
            .privateKey(privateKey.applyValue({ args0 -> args0 }))
            .projectId(projectId.applyValue({ args0 -> args0 }))
            .publicKey(publicKey.applyValue({ args0 -> args0 }))
            .rootRotationStatements(
                rootRotationStatements?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .verifyConnection(verifyConnection?.applyValue({ args0 -> args0 })).build()
}

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

    private var `data`: Output>? = null

    private var name: Output? = null

    private var pluginName: Output? = null

    private var privateKey: Output? = null

    private var projectId: Output? = null

    private var publicKey: Output? = null

    private var rootRotationStatements: Output>? = null

    private var verifyConnection: Output? = null

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

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

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

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

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

    /**
     * @param value The Private Programmatic API Key used to connect with MongoDB Atlas API.
     */
    @JvmName("vjqxbpnfmkfkrfhm")
    public suspend fun privateKey(`value`: Output) {
        this.privateKey = value
    }

    /**
     * @param value The Project ID the Database User should be created within.
     */
    @JvmName("asayfhgylghrovww")
    public suspend fun projectId(`value`: Output) {
        this.projectId = value
    }

    /**
     * @param value The Public Programmatic API Key used to authenticate with the MongoDB Atlas API.
     */
    @JvmName("srfigibunldsdqsk")
    public suspend fun publicKey(`value`: Output) {
        this.publicKey = value
    }

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

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

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

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

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

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

    /**
     * @param value The Private Programmatic API Key used to connect with MongoDB Atlas API.
     */
    @JvmName("imnjobhokyfxeoqp")
    public suspend fun privateKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privateKey = mapped
    }

    /**
     * @param value The Project ID the Database User should be created within.
     */
    @JvmName("mvjccnbrphdmqkim")
    public suspend fun projectId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.projectId = mapped
    }

    /**
     * @param value The Public Programmatic API Key used to authenticate with the MongoDB Atlas API.
     */
    @JvmName("aitqucobcvtmhqxo")
    public suspend fun publicKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicKey = mapped
    }

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

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

    internal fun build(): SecretsMountMongodbatlaArgs = SecretsMountMongodbatlaArgs(
        allowedRoles = allowedRoles,
        `data` = `data`,
        name = name ?: throw PulumiNullFieldException("name"),
        pluginName = pluginName,
        privateKey = privateKey ?: throw PulumiNullFieldException("privateKey"),
        projectId = projectId ?: throw PulumiNullFieldException("projectId"),
        publicKey = publicKey ?: throw PulumiNullFieldException("publicKey"),
        rootRotationStatements = rootRotationStatements,
        verifyConnection = verifyConnection,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy