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