com.pulumi.gcp.networkservices.kotlin.outputs.GrpcRouteRuleAction.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.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property destinations The destination to which traffic should be forwarded.
* Structure is documented below.
* @property faultInjectionPolicy The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure.
* Structure is documented below.
* @property retryPolicy Specifies the retry policy associated with this route.
* Structure is documented below.
* @property timeout Specifies the timeout for selected route.
*/
public data class GrpcRouteRuleAction(
public val destinations: List? = null,
public val faultInjectionPolicy: GrpcRouteRuleActionFaultInjectionPolicy? = null,
public val retryPolicy: GrpcRouteRuleActionRetryPolicy? = null,
public val timeout: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.networkservices.outputs.GrpcRouteRuleAction): GrpcRouteRuleAction = GrpcRouteRuleAction(
destinations = javaType.destinations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.networkservices.kotlin.outputs.GrpcRouteRuleActionDestination.Companion.toKotlin(args0)
})
}),
faultInjectionPolicy = javaType.faultInjectionPolicy().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.networkservices.kotlin.outputs.GrpcRouteRuleActionFaultInjectionPolicy.Companion.toKotlin(args0)
})
}).orElse(null),
retryPolicy = javaType.retryPolicy().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.networkservices.kotlin.outputs.GrpcRouteRuleActionRetryPolicy.Companion.toKotlin(args0)
})
}).orElse(null),
timeout = javaType.timeout().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy