com.pulumi.aws.appmesh.kotlin.outputs.RouteSpecGrpcRouteRetryPolicy.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.appmesh.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property grpcRetryEvents List of gRPC retry events.
* Valid values: `cancelled`, `deadline-exceeded`, `internal`, `resource-exhausted`, `unavailable`.
* @property httpRetryEvents List of HTTP retry events.
* Valid values: `client-error` (HTTP status code 409), `gateway-error` (HTTP status codes 502, 503, and 504), `server-error` (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), `stream-error` (retry on refused stream).
* @property maxRetries Maximum number of retries.
* @property perRetryTimeout Per-retry timeout.
* @property tcpRetryEvents List of TCP retry events. The only valid value is `connection-error`.
*/
public data class RouteSpecGrpcRouteRetryPolicy(
public val grpcRetryEvents: List? = null,
public val httpRetryEvents: List? = null,
public val maxRetries: Int,
public val perRetryTimeout: RouteSpecGrpcRouteRetryPolicyPerRetryTimeout,
public val tcpRetryEvents: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.aws.appmesh.outputs.RouteSpecGrpcRouteRetryPolicy): RouteSpecGrpcRouteRetryPolicy = RouteSpecGrpcRouteRetryPolicy(
grpcRetryEvents = javaType.grpcRetryEvents().map({ args0 -> args0 }),
httpRetryEvents = javaType.httpRetryEvents().map({ args0 -> args0 }),
maxRetries = javaType.maxRetries(),
perRetryTimeout = javaType.perRetryTimeout().let({ args0 ->
com.pulumi.aws.appmesh.kotlin.outputs.RouteSpecGrpcRouteRetryPolicyPerRetryTimeout.Companion.toKotlin(args0)
}),
tcpRetryEvents = javaType.tcpRetryEvents().map({ args0 -> args0 }),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy