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.String
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 idleTimeout Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 30 seconds. If set to 0s, the timeout will be disabled.
* A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
* @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 idleTimeout: String? = 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)
})
}),
idleTimeout = javaType.idleTimeout().map({ args0 -> args0 }).orElse(null),
originalDestination = javaType.originalDestination().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy