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

com.pulumi.gcp.alloydb.kotlin.inputs.InstanceClientConnectionConfigArgs.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.alloydb.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.alloydb.inputs.InstanceClientConnectionConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property requireConnectors Configuration to enforce connectors only (ex: AuthProxy) connections to the database.
 * @property sslConfig SSL config option for this instance.
 * Structure is documented below.
 */
public data class InstanceClientConnectionConfigArgs(
    public val requireConnectors: Output? = null,
    public val sslConfig: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.alloydb.inputs.InstanceClientConnectionConfigArgs =
        com.pulumi.gcp.alloydb.inputs.InstanceClientConnectionConfigArgs.builder()
            .requireConnectors(requireConnectors?.applyValue({ args0 -> args0 }))
            .sslConfig(sslConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [InstanceClientConnectionConfigArgs].
 */
@PulumiTagMarker
public class InstanceClientConnectionConfigArgsBuilder internal constructor() {
    private var requireConnectors: Output? = null

    private var sslConfig: Output? = null

    /**
     * @param value Configuration to enforce connectors only (ex: AuthProxy) connections to the database.
     */
    @JvmName("usqsinskiefnedjw")
    public suspend fun requireConnectors(`value`: Output) {
        this.requireConnectors = value
    }

    /**
     * @param value SSL config option for this instance.
     * Structure is documented below.
     */
    @JvmName("bcgggcubmggllhow")
    public suspend fun sslConfig(`value`: Output) {
        this.sslConfig = value
    }

    /**
     * @param value Configuration to enforce connectors only (ex: AuthProxy) connections to the database.
     */
    @JvmName("uxkhvnspgaiodhog")
    public suspend fun requireConnectors(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireConnectors = mapped
    }

    /**
     * @param value SSL config option for this instance.
     * Structure is documented below.
     */
    @JvmName("jvrdmtbkrbutiavr")
    public suspend fun sslConfig(`value`: InstanceClientConnectionConfigSslConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sslConfig = mapped
    }

    /**
     * @param argument SSL config option for this instance.
     * Structure is documented below.
     */
    @JvmName("djoqguxntyymlbci")
    public suspend fun sslConfig(argument: suspend InstanceClientConnectionConfigSslConfigArgsBuilder.() -> Unit) {
        val toBeMapped = InstanceClientConnectionConfigSslConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.sslConfig = mapped
    }

    internal fun build(): InstanceClientConnectionConfigArgs = InstanceClientConnectionConfigArgs(
        requireConnectors = requireConnectors,
        sslConfig = sslConfig,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy