com.pulumi.gcp.networkservices.kotlin.outputs.TlsRouteRule.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.networkservices.kotlin.outputs
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property action Required. A detailed rule defining how to route traffic.
* Structure is documented below.
* @property matches Matches define the predicate used to match requests to a given action.
* Structure is documented below.
*/
public data class TlsRouteRule(
public val action: TlsRouteRuleAction,
public val matches: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.networkservices.outputs.TlsRouteRule): TlsRouteRule = TlsRouteRule(
action = javaType.action().let({ args0 ->
com.pulumi.gcp.networkservices.kotlin.outputs.TlsRouteRuleAction.Companion.toKotlin(args0)
}),
matches = javaType.matches().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.networkservices.kotlin.outputs.TlsRouteRuleMatch.Companion.toKotlin(args0)
})
}),
)
}
}