com.pulumi.digitalocean.kotlin.outputs.GetAppSpecServiceHealthCheck.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-digitalocean-kotlin Show documentation
Show all versions of pulumi-digitalocean-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.digitalocean.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property failureThreshold The number of failed health checks before considered unhealthy.
* @property httpPath The route path used for the HTTP health check ping.
* @property initialDelaySeconds The number of seconds to wait before beginning health checks.
* @property periodSeconds The number of seconds to wait between health checks.
* @property port The port on which the health check will be performed. If not set, the health check will be performed on the component's http_port.
* @property successThreshold The number of successful health checks before considered healthy.
* @property timeoutSeconds The number of seconds after which the check times out.
*/
public data class GetAppSpecServiceHealthCheck(
public val failureThreshold: Int? = null,
public val httpPath: String? = null,
public val initialDelaySeconds: Int? = null,
public val periodSeconds: Int? = null,
public val port: Int? = null,
public val successThreshold: Int? = null,
public val timeoutSeconds: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.GetAppSpecServiceHealthCheck): GetAppSpecServiceHealthCheck = GetAppSpecServiceHealthCheck(
failureThreshold = javaType.failureThreshold().map({ args0 -> args0 }).orElse(null),
httpPath = javaType.httpPath().map({ args0 -> args0 }).orElse(null),
initialDelaySeconds = javaType.initialDelaySeconds().map({ args0 -> args0 }).orElse(null),
periodSeconds = javaType.periodSeconds().map({ args0 -> args0 }).orElse(null),
port = javaType.port().map({ args0 -> args0 }).orElse(null),
successThreshold = javaType.successThreshold().map({ args0 -> args0 }).orElse(null),
timeoutSeconds = javaType.timeoutSeconds().map({ args0 -> args0 }).orElse(null),
)
}
}