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

com.pulumi.vault.database.kotlin.inputs.SecretsMountRediArgs.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.SecretsMountRediArgs.builder
import kotlin.Any
import kotlin.Boolean
import kotlin.Int
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 caCert The contents of a PEM-encoded CA cert file to use to verify the Redis server's identity.
 * @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 host Specifies the host to connect to
 * @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 port The transport port to use to connect to Redis.
 * @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 Redis.
 * @property username Specifies the username for Vault to use.
 * @property verifyConnection Whether the connection should be verified on
 * initial configuration or not.
 */
public data class SecretsMountRediArgs(
    public val allowedRoles: Output>? = null,
    public val caCert: Output? = null,
    public val `data`: Output>? = null,
    public val host: Output,
    public val insecureTls: Output? = null,
    public val name: Output,
    public val password: Output,
    public val pluginName: Output? = null,
    public val port: Output? = null,
    public val rootRotationStatements: Output>? = null,
    public val tls: Output? = null,
    public val username: Output,
    public val verifyConnection: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.database.inputs.SecretsMountRediArgs =
        com.pulumi.vault.database.inputs.SecretsMountRediArgs.builder()
            .allowedRoles(allowedRoles?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .caCert(caCert?.applyValue({ args0 -> args0 }))
            .`data`(`data`?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .host(host.applyValue({ args0 -> args0 }))
            .insecureTls(insecureTls?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .password(password.applyValue({ args0 -> args0 }))
            .pluginName(pluginName?.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 }))
            .rootRotationStatements(
                rootRotationStatements?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .tls(tls?.applyValue({ args0 -> args0 }))
            .username(username.applyValue({ args0 -> args0 }))
            .verifyConnection(verifyConnection?.applyValue({ args0 -> args0 })).build()
}

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

    private var caCert: Output? = null

    private var `data`: Output>? = null

    private var host: Output? = null

    private var insecureTls: Output? = null

    private var name: Output? = null

    private var password: Output? = null

    private var pluginName: Output? = null

    private var port: Output? = null

    private var rootRotationStatements: Output>? = null

    private var tls: Output? = null

    private var username: Output? = null

    private var verifyConnection: Output? = null

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

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

    /**
     * @param value The contents of a PEM-encoded CA cert file to use to verify the Redis server's identity.
     */
    @JvmName("igjqcivydiyckslm")
    public suspend fun caCert(`value`: Output) {
        this.caCert = 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("sblmyrmfgeikexra")
    public suspend fun `data`(`value`: Output>) {
        this.`data` = value
    }

    /**
     * @param value Specifies the host to connect to
     */
    @JvmName("plgppfemdvxcfkok")
    public suspend fun host(`value`: Output) {
        this.host = value
    }

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

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

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

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

    /**
     * @param value The transport port to use to connect to Redis.
     */
    @JvmName("ksmijthklkchauxd")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

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

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

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

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

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

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

    /**
     * @param value The contents of a PEM-encoded CA cert file to use to verify the Redis server's identity.
     */
    @JvmName("vvwnyxcajvbdbupp")
    public suspend fun caCert(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.caCert = 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("ttmiwftqcwtddthw")
    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("vdafvajxmvynlnip")
    public fun `data`(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`data` = mapped
    }

    /**
     * @param value Specifies the host to connect to
     */
    @JvmName("kmthtwneumfjodpt")
    public suspend fun host(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.host = mapped
    }

    /**
     * @param value Specifies whether to skip verification of the server certificate when using TLS.
     */
    @JvmName("fsygchmhtcvhcpwy")
    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("xugkbgknciwrnypv")
    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("ftuqbifllgmnqucv")
    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("svupmaqcrukdjmtb")
    public suspend fun pluginName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pluginName = mapped
    }

    /**
     * @param value The transport port to use to connect to Redis.
     */
    @JvmName("ysspalipxubciviw")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    /**
     * @param value A list of database statements to be executed to rotate the root user's credentials.
     */
    @JvmName("mihgdndhgjaorcnj")
    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("nlalngvyfylbstlh")
    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 Redis.
     */
    @JvmName("gtdegnfvgmnbendl")
    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("lamdlbgdnnivguve")
    public suspend fun username(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.username = mapped
    }

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

    internal fun build(): SecretsMountRediArgs = SecretsMountRediArgs(
        allowedRoles = allowedRoles,
        caCert = caCert,
        `data` = `data`,
        host = host ?: throw PulumiNullFieldException("host"),
        insecureTls = insecureTls,
        name = name ?: throw PulumiNullFieldException("name"),
        password = password ?: throw PulumiNullFieldException("password"),
        pluginName = pluginName,
        port = port,
        rootRotationStatements = rootRotationStatements,
        tls = tls,
        username = username ?: throw PulumiNullFieldException("username"),
        verifyConnection = verifyConnection,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy