com.pulumi.gcp.appengine.kotlin.outputs.FlexibleAppVersionNetwork.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.appengine.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property forwardedPorts List of ports, or port pairs, to forward from the virtual machine to the application container.
* @property instanceTag Tag to apply to the instance during creation.
* @property name Google Compute Engine network where the virtual machines are created. Specify the short name, not the resource path.
* @property sessionAffinity Enable session affinity.
* @property subnetwork Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path.
* If the network that the instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.
* If the network that the instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetworkName) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network.
* If the network that the instance is being created in is a custom Subnet Mode Network, then the subnetworkName must be specified and the IP address is created from the IPCidrRange of the subnetwork.
* If specified, the subnetwork must exist in the same region as the App Engine flexible environment application.
*/
public data class FlexibleAppVersionNetwork(
public val forwardedPorts: List? = null,
public val instanceTag: String? = null,
public val name: String,
public val sessionAffinity: Boolean? = null,
public val subnetwork: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.appengine.outputs.FlexibleAppVersionNetwork): FlexibleAppVersionNetwork = FlexibleAppVersionNetwork(
forwardedPorts = javaType.forwardedPorts().map({ args0 -> args0 }),
instanceTag = javaType.instanceTag().map({ args0 -> args0 }).orElse(null),
name = javaType.name(),
sessionAffinity = javaType.sessionAffinity().map({ args0 -> args0 }).orElse(null),
subnetwork = javaType.subnetwork().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy