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

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

package com.pulumi.gcp.vertex.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.vertex.inputs.AiEndpointPrivateServiceConnectConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property enablePrivateServiceConnect Required. If true, expose the IndexEndpoint via private service connect.
 * @property enableSecurePrivateServiceConnect If set to true, enable secure private service connect with IAM authorization. Otherwise, private service connect will be done without authorization. Note latency will be slightly increased if authorization is enabled.
 * @property projectAllowlists A list of Projects from which the forwarding rule will target the service attachment.
 */
public data class AiEndpointPrivateServiceConnectConfigArgs(
    public val enablePrivateServiceConnect: Output,
    public val enableSecurePrivateServiceConnect: Output? = null,
    public val projectAllowlists: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vertex.inputs.AiEndpointPrivateServiceConnectConfigArgs =
        com.pulumi.gcp.vertex.inputs.AiEndpointPrivateServiceConnectConfigArgs.builder()
            .enablePrivateServiceConnect(enablePrivateServiceConnect.applyValue({ args0 -> args0 }))
            .enableSecurePrivateServiceConnect(
                enableSecurePrivateServiceConnect?.applyValue({ args0 ->
                    args0
                }),
            )
            .projectAllowlists(projectAllowlists?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [AiEndpointPrivateServiceConnectConfigArgs].
 */
@PulumiTagMarker
public class AiEndpointPrivateServiceConnectConfigArgsBuilder internal constructor() {
    private var enablePrivateServiceConnect: Output? = null

    private var enableSecurePrivateServiceConnect: Output? = null

    private var projectAllowlists: Output>? = null

    /**
     * @param value Required. If true, expose the IndexEndpoint via private service connect.
     */
    @JvmName("drqseakvsysaqhra")
    public suspend fun enablePrivateServiceConnect(`value`: Output) {
        this.enablePrivateServiceConnect = value
    }

    /**
     * @param value If set to true, enable secure private service connect with IAM authorization. Otherwise, private service connect will be done without authorization. Note latency will be slightly increased if authorization is enabled.
     */
    @JvmName("dnpcsfoxvalnpmak")
    public suspend fun enableSecurePrivateServiceConnect(`value`: Output) {
        this.enableSecurePrivateServiceConnect = value
    }

    /**
     * @param value A list of Projects from which the forwarding rule will target the service attachment.
     */
    @JvmName("alqngmviklywkuuc")
    public suspend fun projectAllowlists(`value`: Output>) {
        this.projectAllowlists = value
    }

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

    /**
     * @param values A list of Projects from which the forwarding rule will target the service attachment.
     */
    @JvmName("lbfuarncdwwklqnd")
    public suspend fun projectAllowlists(values: List>) {
        this.projectAllowlists = Output.all(values)
    }

    /**
     * @param value Required. If true, expose the IndexEndpoint via private service connect.
     */
    @JvmName("kscveihlgqxvekou")
    public suspend fun enablePrivateServiceConnect(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enablePrivateServiceConnect = mapped
    }

    /**
     * @param value If set to true, enable secure private service connect with IAM authorization. Otherwise, private service connect will be done without authorization. Note latency will be slightly increased if authorization is enabled.
     */
    @JvmName("qvadikghqwhmwdyw")
    public suspend fun enableSecurePrivateServiceConnect(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableSecurePrivateServiceConnect = mapped
    }

    /**
     * @param value A list of Projects from which the forwarding rule will target the service attachment.
     */
    @JvmName("nulvoguvwghbysyg")
    public suspend fun projectAllowlists(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.projectAllowlists = mapped
    }

    /**
     * @param values A list of Projects from which the forwarding rule will target the service attachment.
     */
    @JvmName("qvgfbtmdosujmmmi")
    public suspend fun projectAllowlists(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.projectAllowlists = mapped
    }

    internal fun build(): AiEndpointPrivateServiceConnectConfigArgs =
        AiEndpointPrivateServiceConnectConfigArgs(
            enablePrivateServiceConnect = enablePrivateServiceConnect ?: throw
                PulumiNullFieldException("enablePrivateServiceConnect"),
            enableSecurePrivateServiceConnect = enableSecurePrivateServiceConnect,
            projectAllowlists = projectAllowlists,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy