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

com.pulumi.awsnative.gamelift.kotlin.inputs.ContainerGroupDefinitionContainerHealthCheckArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.gamelift.kotlin.inputs

import com.pulumi.awsnative.gamelift.inputs.ContainerGroupDefinitionContainerHealthCheckArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Specifies how the process manager checks the health of containers.
 * @property command A string array representing the command that the container runs to determine if it is healthy.
 * @property interval How often (in seconds) the health is checked.
 * @property retries How many times the process manager will retry the command after a timeout. (The first run of the command does not count as a retry.)
 * @property startPeriod The optional grace period (in seconds) to give a container time to boostrap before teh health check is declared failed.
 * @property timeout How many seconds the process manager allows the command to run before canceling it.
 */
public data class ContainerGroupDefinitionContainerHealthCheckArgs(
    public val command: Output>,
    public val interval: Output? = null,
    public val retries: Output? = null,
    public val startPeriod: Output? = null,
    public val timeout: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.gamelift.inputs.ContainerGroupDefinitionContainerHealthCheckArgs =
        com.pulumi.awsnative.gamelift.inputs.ContainerGroupDefinitionContainerHealthCheckArgs.builder()
            .command(command.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .interval(interval?.applyValue({ args0 -> args0 }))
            .retries(retries?.applyValue({ args0 -> args0 }))
            .startPeriod(startPeriod?.applyValue({ args0 -> args0 }))
            .timeout(timeout?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ContainerGroupDefinitionContainerHealthCheckArgs].
 */
@PulumiTagMarker
public class ContainerGroupDefinitionContainerHealthCheckArgsBuilder internal constructor() {
    private var command: Output>? = null

    private var interval: Output? = null

    private var retries: Output? = null

    private var startPeriod: Output? = null

    private var timeout: Output? = null

    /**
     * @param value A string array representing the command that the container runs to determine if it is healthy.
     */
    @JvmName("xjgrflesoyctonak")
    public suspend fun command(`value`: Output>) {
        this.command = value
    }

    @JvmName("vnipbdfnwpfdcncb")
    public suspend fun command(vararg values: Output) {
        this.command = Output.all(values.asList())
    }

    /**
     * @param values A string array representing the command that the container runs to determine if it is healthy.
     */
    @JvmName("beqoondswvslyojv")
    public suspend fun command(values: List>) {
        this.command = Output.all(values)
    }

    /**
     * @param value How often (in seconds) the health is checked.
     */
    @JvmName("nxikrbbnfnmxyjlb")
    public suspend fun interval(`value`: Output) {
        this.interval = value
    }

    /**
     * @param value How many times the process manager will retry the command after a timeout. (The first run of the command does not count as a retry.)
     */
    @JvmName("mwgfmjjnwvoeqdue")
    public suspend fun retries(`value`: Output) {
        this.retries = value
    }

    /**
     * @param value The optional grace period (in seconds) to give a container time to boostrap before teh health check is declared failed.
     */
    @JvmName("jshsfmdptbpbrebf")
    public suspend fun startPeriod(`value`: Output) {
        this.startPeriod = value
    }

    /**
     * @param value How many seconds the process manager allows the command to run before canceling it.
     */
    @JvmName("adybbeltfwnqxklc")
    public suspend fun timeout(`value`: Output) {
        this.timeout = value
    }

    /**
     * @param value A string array representing the command that the container runs to determine if it is healthy.
     */
    @JvmName("kpurxcjagbdxkpcs")
    public suspend fun command(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.command = mapped
    }

    /**
     * @param values A string array representing the command that the container runs to determine if it is healthy.
     */
    @JvmName("ejdrgmieqnopgcft")
    public suspend fun command(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.command = mapped
    }

    /**
     * @param value How often (in seconds) the health is checked.
     */
    @JvmName("tpbswkfemqjjgccq")
    public suspend fun interval(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.interval = mapped
    }

    /**
     * @param value How many times the process manager will retry the command after a timeout. (The first run of the command does not count as a retry.)
     */
    @JvmName("dvmlqfdydfcreljd")
    public suspend fun retries(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retries = mapped
    }

    /**
     * @param value The optional grace period (in seconds) to give a container time to boostrap before teh health check is declared failed.
     */
    @JvmName("ebsvtjqperidrtmq")
    public suspend fun startPeriod(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startPeriod = mapped
    }

    /**
     * @param value How many seconds the process manager allows the command to run before canceling it.
     */
    @JvmName("chlriqliqbcaydko")
    public suspend fun timeout(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeout = mapped
    }

    internal fun build(): ContainerGroupDefinitionContainerHealthCheckArgs =
        ContainerGroupDefinitionContainerHealthCheckArgs(
            command = command ?: throw PulumiNullFieldException("command"),
            interval = interval,
            retries = retries,
            startPeriod = startPeriod,
            timeout = timeout,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy