com.pulumi.gcp.networkservices.kotlin.outputs.TcpRouteRuleAction.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.networkservices.kotlin.outputs
import kotlin.Boolean
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property destinations The destination services to which traffic should be forwarded. At least one destination service is required.
* Structure is documented below.
* @property originalDestination If true, Router will use the destination IP and port of the original connection as the destination of the request.
*/
public data class TcpRouteRuleAction(
public val destinations: List? = null,
public val originalDestination: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.networkservices.outputs.TcpRouteRuleAction): TcpRouteRuleAction = TcpRouteRuleAction(
destinations = javaType.destinations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.networkservices.kotlin.outputs.TcpRouteRuleActionDestination.Companion.toKotlin(args0)
})
}),
originalDestination = javaType.originalDestination().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy