com.pulumi.gcp.cloudrunv2.kotlin.inputs.ServiceTemplateVpcAccessArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.cloudrunv2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateVpcAccessArgs.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 connector VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
* @property egress Traffic VPC egress settings.
* Possible values are: `ALL_TRAFFIC`, `PRIVATE_RANGES_ONLY`.
* @property networkInterfaces Direct VPC egress settings. Currently only single network interface is supported.
* Structure is documented below.
*/
public data class ServiceTemplateVpcAccessArgs(
public val connector: Output? = null,
public val egress: Output? = null,
public val networkInterfaces: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateVpcAccessArgs =
com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateVpcAccessArgs.builder()
.connector(connector?.applyValue({ args0 -> args0 }))
.egress(egress?.applyValue({ args0 -> args0 }))
.networkInterfaces(
networkInterfaces?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [ServiceTemplateVpcAccessArgs].
*/
@PulumiTagMarker
public class ServiceTemplateVpcAccessArgsBuilder internal constructor() {
private var connector: Output? = null
private var egress: Output? = null
private var networkInterfaces: Output>? = null
/**
* @param value VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
*/
@JvmName("lhjnxxataawesxtk")
public suspend fun connector(`value`: Output) {
this.connector = value
}
/**
* @param value Traffic VPC egress settings.
* Possible values are: `ALL_TRAFFIC`, `PRIVATE_RANGES_ONLY`.
*/
@JvmName("sadcylfblwbauphr")
public suspend fun egress(`value`: Output) {
this.egress = value
}
/**
* @param value Direct VPC egress settings. Currently only single network interface is supported.
* Structure is documented below.
*/
@JvmName("yvckaprfnhslisia")
public suspend fun networkInterfaces(`value`: Output>) {
this.networkInterfaces = value
}
@JvmName("jeethdkbqkcahudh")
public suspend fun networkInterfaces(vararg values: Output) {
this.networkInterfaces = Output.all(values.asList())
}
/**
* @param values Direct VPC egress settings. Currently only single network interface is supported.
* Structure is documented below.
*/
@JvmName("tbelrxcewlyegqqv")
public suspend fun networkInterfaces(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy