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

com.pulumi.gcp.looker.kotlin.inputs.InstancePscConfigArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.looker.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.looker.inputs.InstancePscConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allowedVpcs List of VPCs that are allowed ingress into the Looker instance.
 * @property lookerServiceAttachmentUri (Output)
 * URI of the Looker service attachment.
 * @property serviceAttachments List of egress service attachment configurations.
 * Structure is documented below.
 */
public data class InstancePscConfigArgs(
    public val allowedVpcs: Output>? = null,
    public val lookerServiceAttachmentUri: Output? = null,
    public val serviceAttachments: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.looker.inputs.InstancePscConfigArgs =
        com.pulumi.gcp.looker.inputs.InstancePscConfigArgs.builder()
            .allowedVpcs(allowedVpcs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .lookerServiceAttachmentUri(lookerServiceAttachmentUri?.applyValue({ args0 -> args0 }))
            .serviceAttachments(
                serviceAttachments?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

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

    private var lookerServiceAttachmentUri: Output? = null

    private var serviceAttachments: Output>? = null

    /**
     * @param value List of VPCs that are allowed ingress into the Looker instance.
     */
    @JvmName("vvysmaewgqllkpdw")
    public suspend fun allowedVpcs(`value`: Output>) {
        this.allowedVpcs = value
    }

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

    /**
     * @param values List of VPCs that are allowed ingress into the Looker instance.
     */
    @JvmName("jtfuymtsgeleifds")
    public suspend fun allowedVpcs(values: List>) {
        this.allowedVpcs = Output.all(values)
    }

    /**
     * @param value (Output)
     * URI of the Looker service attachment.
     */
    @JvmName("rrjypaqrkgkhlswy")
    public suspend fun lookerServiceAttachmentUri(`value`: Output) {
        this.lookerServiceAttachmentUri = value
    }

    /**
     * @param value List of egress service attachment configurations.
     * Structure is documented below.
     */
    @JvmName("hpdnafvcllgobfvx")
    public suspend fun serviceAttachments(`value`: Output>) {
        this.serviceAttachments = value
    }

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

    /**
     * @param values List of egress service attachment configurations.
     * Structure is documented below.
     */
    @JvmName("slvmafxlnnhcxlqt")
    public suspend fun serviceAttachments(values: List>) {
        this.serviceAttachments = Output.all(values)
    }

    /**
     * @param value List of VPCs that are allowed ingress into the Looker instance.
     */
    @JvmName("xffamymkbykgfonp")
    public suspend fun allowedVpcs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedVpcs = mapped
    }

    /**
     * @param values List of VPCs that are allowed ingress into the Looker instance.
     */
    @JvmName("mxjmnjawhmmywfka")
    public suspend fun allowedVpcs(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedVpcs = mapped
    }

    /**
     * @param value (Output)
     * URI of the Looker service attachment.
     */
    @JvmName("bvtwfiqlddvbverw")
    public suspend fun lookerServiceAttachmentUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lookerServiceAttachmentUri = mapped
    }

    /**
     * @param value List of egress service attachment configurations.
     * Structure is documented below.
     */
    @JvmName("gaptdlrlbcmeenrp")
    public suspend fun serviceAttachments(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceAttachments = mapped
    }

    /**
     * @param argument List of egress service attachment configurations.
     * Structure is documented below.
     */
    @JvmName("ntmncbdjgjdxlalw")
    public suspend fun serviceAttachments(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            InstancePscConfigServiceAttachmentArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.serviceAttachments = mapped
    }

    /**
     * @param argument List of egress service attachment configurations.
     * Structure is documented below.
     */
    @JvmName("vniyjyjsggaiengr")
    public suspend fun serviceAttachments(vararg argument: suspend InstancePscConfigServiceAttachmentArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            InstancePscConfigServiceAttachmentArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.serviceAttachments = mapped
    }

    /**
     * @param argument List of egress service attachment configurations.
     * Structure is documented below.
     */
    @JvmName("puggbayyulwraaia")
    public suspend fun serviceAttachments(argument: suspend InstancePscConfigServiceAttachmentArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            InstancePscConfigServiceAttachmentArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.serviceAttachments = mapped
    }

    /**
     * @param values List of egress service attachment configurations.
     * Structure is documented below.
     */
    @JvmName("ejwyppeepyqfdsyx")
    public suspend fun serviceAttachments(vararg values: InstancePscConfigServiceAttachmentArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceAttachments = mapped
    }

    internal fun build(): InstancePscConfigArgs = InstancePscConfigArgs(
        allowedVpcs = allowedVpcs,
        lookerServiceAttachmentUri = lookerServiceAttachmentUri,
        serviceAttachments = serviceAttachments,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy