All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.apprunner.kotlin.outputs.ServiceHealthCheckConfiguration.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.apprunner.kotlin.outputs

import com.pulumi.awsnative.apprunner.kotlin.enums.ServiceHealthCheckConfigurationProtocol
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 * Health check configuration
 * @property healthyThreshold Health check Healthy Threshold
 * @property interval Health check Interval
 * @property path Health check Path
 * @property protocol Health Check Protocol
 * @property timeout Health check Timeout
 * @property unhealthyThreshold Health check Unhealthy Threshold
 */
public data class ServiceHealthCheckConfiguration(
    public val healthyThreshold: Int? = null,
    public val interval: Int? = null,
    public val path: String? = null,
    public val protocol: ServiceHealthCheckConfigurationProtocol? = null,
    public val timeout: Int? = null,
    public val unhealthyThreshold: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.apprunner.outputs.ServiceHealthCheckConfiguration): ServiceHealthCheckConfiguration = ServiceHealthCheckConfiguration(
            healthyThreshold = javaType.healthyThreshold().map({ args0 -> args0 }).orElse(null),
            interval = javaType.interval().map({ args0 -> args0 }).orElse(null),
            path = javaType.path().map({ args0 -> args0 }).orElse(null),
            protocol = javaType.protocol().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.apprunner.kotlin.enums.ServiceHealthCheckConfigurationProtocol.Companion.toKotlin(args0)
                })
            }).orElse(null),
            timeout = javaType.timeout().map({ args0 -> args0 }).orElse(null),
            unhealthyThreshold = javaType.unhealthyThreshold().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy