
com.pulumi.awsnative.ecs.kotlin.outputs.ServiceTimeoutConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.ecs.kotlin.outputs
import kotlin.Int
import kotlin.Suppress
/**
* An object that represents the timeout configurations for Service Connect.
* If ``idleTimeout`` is set to a time that is less than ``perRequestTimeout``, the connection will close when the ``idleTimeout`` is reached and not the ``perRequestTimeout``.
* @property idleTimeoutSeconds The amount of time in seconds a connection will stay active while idle. A value of ``0`` can be set to disable ``idleTimeout``.
* The ``idleTimeout`` default for ``HTTP``/``HTTP2``/``GRPC`` is 5 minutes.
* The ``idleTimeout`` default for ``TCP`` is 1 hour.
* @property perRequestTimeoutSeconds The amount of time waiting for the upstream to respond with a complete response per request. A value of ``0`` can be set to disable ``perRequestTimeout``. ``perRequestTimeout`` can only be set if Service Connect ``appProtocol`` isn't ``TCP``. Only ``idleTimeout`` is allowed for ``TCP`` ``appProtocol``.
*/
public data class ServiceTimeoutConfiguration(
public val idleTimeoutSeconds: Int? = null,
public val perRequestTimeoutSeconds: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ecs.outputs.ServiceTimeoutConfiguration): ServiceTimeoutConfiguration = ServiceTimeoutConfiguration(
idleTimeoutSeconds = javaType.idleTimeoutSeconds().map({ args0 -> args0 }).orElse(null),
perRequestTimeoutSeconds = javaType.perRequestTimeoutSeconds().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy