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

com.pulumi.awsnative.lightsail.kotlin.inputs.ContainerHealthCheckConfigArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.lightsail.kotlin.inputs

import com.pulumi.awsnative.lightsail.inputs.ContainerHealthCheckConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Describes the health check configuration of an Amazon Lightsail container service.
 * @property healthyThreshold The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.
 * @property intervalSeconds The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.
 * @property path The path on the container on which to perform the health check. The default value is /.
 * @property successCodes The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. You can specify multiple values (for example, 200,202) or a range of values (for example, 200-299).
 * @property timeoutSeconds The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.
 * @property unhealthyThreshold The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.
 */
public data class ContainerHealthCheckConfigArgs(
    public val healthyThreshold: Output? = null,
    public val intervalSeconds: Output? = null,
    public val path: Output? = null,
    public val successCodes: Output? = null,
    public val timeoutSeconds: Output? = null,
    public val unhealthyThreshold: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lightsail.inputs.ContainerHealthCheckConfigArgs =
        com.pulumi.awsnative.lightsail.inputs.ContainerHealthCheckConfigArgs.builder()
            .healthyThreshold(healthyThreshold?.applyValue({ args0 -> args0 }))
            .intervalSeconds(intervalSeconds?.applyValue({ args0 -> args0 }))
            .path(path?.applyValue({ args0 -> args0 }))
            .successCodes(successCodes?.applyValue({ args0 -> args0 }))
            .timeoutSeconds(timeoutSeconds?.applyValue({ args0 -> args0 }))
            .unhealthyThreshold(unhealthyThreshold?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ContainerHealthCheckConfigArgs].
 */
@PulumiTagMarker
public class ContainerHealthCheckConfigArgsBuilder internal constructor() {
    private var healthyThreshold: Output? = null

    private var intervalSeconds: Output? = null

    private var path: Output? = null

    private var successCodes: Output? = null

    private var timeoutSeconds: Output? = null

    private var unhealthyThreshold: Output? = null

    /**
     * @param value The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.
     */
    @JvmName("rksvutmfapasyqiv")
    public suspend fun healthyThreshold(`value`: Output) {
        this.healthyThreshold = value
    }

    /**
     * @param value The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.
     */
    @JvmName("gnbcrvlfsnfxdddt")
    public suspend fun intervalSeconds(`value`: Output) {
        this.intervalSeconds = value
    }

    /**
     * @param value The path on the container on which to perform the health check. The default value is /.
     */
    @JvmName("xfpettcynjyygpou")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. You can specify multiple values (for example, 200,202) or a range of values (for example, 200-299).
     */
    @JvmName("bqgxwufgmyhitbpx")
    public suspend fun successCodes(`value`: Output) {
        this.successCodes = value
    }

    /**
     * @param value The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.
     */
    @JvmName("qucsxdiwolhurdak")
    public suspend fun timeoutSeconds(`value`: Output) {
        this.timeoutSeconds = value
    }

    /**
     * @param value The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.
     */
    @JvmName("tpaeefubdypadusl")
    public suspend fun unhealthyThreshold(`value`: Output) {
        this.unhealthyThreshold = value
    }

    /**
     * @param value The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.
     */
    @JvmName("mvcnoosmgfajkmdj")
    public suspend fun healthyThreshold(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.healthyThreshold = mapped
    }

    /**
     * @param value The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.
     */
    @JvmName("twyjvxwqqreoahqh")
    public suspend fun intervalSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.intervalSeconds = mapped
    }

    /**
     * @param value The path on the container on which to perform the health check. The default value is /.
     */
    @JvmName("ykwjtfnxjtlbruta")
    public suspend fun path(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param value The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. You can specify multiple values (for example, 200,202) or a range of values (for example, 200-299).
     */
    @JvmName("hdooxyheqpotvpge")
    public suspend fun successCodes(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.successCodes = mapped
    }

    /**
     * @param value The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.
     */
    @JvmName("qfhekmvjtsfdrwnv")
    public suspend fun timeoutSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeoutSeconds = mapped
    }

    /**
     * @param value The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.
     */
    @JvmName("pqousrbskkhyqrbp")
    public suspend fun unhealthyThreshold(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.unhealthyThreshold = mapped
    }

    internal fun build(): ContainerHealthCheckConfigArgs = ContainerHealthCheckConfigArgs(
        healthyThreshold = healthyThreshold,
        intervalSeconds = intervalSeconds,
        path = path,
        successCodes = successCodes,
        timeoutSeconds = timeoutSeconds,
        unhealthyThreshold = unhealthyThreshold,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy