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

com.pulumi.gcp.alloydb.kotlin.inputs.InstancePscInstanceConfigArgs.kt Maven / Gradle / Ivy

@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.InstancePscInstanceConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allowedConsumerProjects List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
 * These should be specified as project numbers only.
 * @property pscDnsName (Output)
 * The DNS name of the instance for PSC connectivity.
 * Name convention: ...alloydb-psc.goog
 * @property serviceAttachmentLink (Output)
 * The service attachment created when Private Service Connect (PSC) is enabled for the instance.
 * The name of the resource will be in the format of
 * `projects//regions//serviceAttachments/`
 */
public data class InstancePscInstanceConfigArgs(
    public val allowedConsumerProjects: Output>? = null,
    public val pscDnsName: Output? = null,
    public val serviceAttachmentLink: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.alloydb.inputs.InstancePscInstanceConfigArgs =
        com.pulumi.gcp.alloydb.inputs.InstancePscInstanceConfigArgs.builder()
            .allowedConsumerProjects(
                allowedConsumerProjects?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .pscDnsName(pscDnsName?.applyValue({ args0 -> args0 }))
            .serviceAttachmentLink(serviceAttachmentLink?.applyValue({ args0 -> args0 })).build()
}

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

    private var pscDnsName: Output? = null

    private var serviceAttachmentLink: Output? = null

    /**
     * @param value List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
     * These should be specified as project numbers only.
     */
    @JvmName("xtmdhdaddyojgabh")
    public suspend fun allowedConsumerProjects(`value`: Output>) {
        this.allowedConsumerProjects = value
    }

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

    /**
     * @param values List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
     * These should be specified as project numbers only.
     */
    @JvmName("fvlsembvwcbptklu")
    public suspend fun allowedConsumerProjects(values: List>) {
        this.allowedConsumerProjects = Output.all(values)
    }

    /**
     * @param value (Output)
     * The DNS name of the instance for PSC connectivity.
     * Name convention: ...alloydb-psc.goog
     */
    @JvmName("cdwbblieakijemjh")
    public suspend fun pscDnsName(`value`: Output) {
        this.pscDnsName = value
    }

    /**
     * @param value (Output)
     * The service attachment created when Private Service Connect (PSC) is enabled for the instance.
     * The name of the resource will be in the format of
     * `projects//regions//serviceAttachments/`
     */
    @JvmName("dpmshliggertfwac")
    public suspend fun serviceAttachmentLink(`value`: Output) {
        this.serviceAttachmentLink = value
    }

    /**
     * @param value List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
     * These should be specified as project numbers only.
     */
    @JvmName("rssffbhufuepboyj")
    public suspend fun allowedConsumerProjects(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedConsumerProjects = mapped
    }

    /**
     * @param values List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
     * These should be specified as project numbers only.
     */
    @JvmName("yuvsejksbfbyxeow")
    public suspend fun allowedConsumerProjects(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedConsumerProjects = mapped
    }

    /**
     * @param value (Output)
     * The DNS name of the instance for PSC connectivity.
     * Name convention: ...alloydb-psc.goog
     */
    @JvmName("agbpdvvgafutnwtu")
    public suspend fun pscDnsName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pscDnsName = mapped
    }

    /**
     * @param value (Output)
     * The service attachment created when Private Service Connect (PSC) is enabled for the instance.
     * The name of the resource will be in the format of
     * `projects//regions//serviceAttachments/`
     */
    @JvmName("nroxkixllgkwurik")
    public suspend fun serviceAttachmentLink(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceAttachmentLink = mapped
    }

    internal fun build(): InstancePscInstanceConfigArgs = InstancePscInstanceConfigArgs(
        allowedConsumerProjects = allowedConsumerProjects,
        pscDnsName = pscDnsName,
        serviceAttachmentLink = serviceAttachmentLink,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy