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

com.pulumi.awsnative.sagemaker.kotlin.inputs.InferenceComponentStartupParametersArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.sagemaker.kotlin.inputs

import com.pulumi.awsnative.sagemaker.inputs.InferenceComponentStartupParametersArgs.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.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property containerStartupHealthCheckTimeoutInSeconds The timeout value, in seconds, for your inference container to pass health check by Amazon S3 Hosting. For more information about health check, see [How Your Container Should Respond to Health Check (Ping) Requests](https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-inference-code.html#your-algorithms-inference-algo-ping-requests) .
 * @property modelDataDownloadTimeoutInSeconds The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the individual inference instance associated with this inference component.
 */
public data class InferenceComponentStartupParametersArgs(
    public val containerStartupHealthCheckTimeoutInSeconds: Output? = null,
    public val modelDataDownloadTimeoutInSeconds: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.InferenceComponentStartupParametersArgs =
        com.pulumi.awsnative.sagemaker.inputs.InferenceComponentStartupParametersArgs.builder()
            .containerStartupHealthCheckTimeoutInSeconds(
                containerStartupHealthCheckTimeoutInSeconds?.applyValue({ args0 ->
                    args0
                }),
            )
            .modelDataDownloadTimeoutInSeconds(
                modelDataDownloadTimeoutInSeconds?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

/**
 * Builder for [InferenceComponentStartupParametersArgs].
 */
@PulumiTagMarker
public class InferenceComponentStartupParametersArgsBuilder internal constructor() {
    private var containerStartupHealthCheckTimeoutInSeconds: Output? = null

    private var modelDataDownloadTimeoutInSeconds: Output? = null

    /**
     * @param value The timeout value, in seconds, for your inference container to pass health check by Amazon S3 Hosting. For more information about health check, see [How Your Container Should Respond to Health Check (Ping) Requests](https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-inference-code.html#your-algorithms-inference-algo-ping-requests) .
     */
    @JvmName("ayuuqrhwtsccihjy")
    public suspend fun containerStartupHealthCheckTimeoutInSeconds(`value`: Output) {
        this.containerStartupHealthCheckTimeoutInSeconds = value
    }

    /**
     * @param value The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the individual inference instance associated with this inference component.
     */
    @JvmName("wynfmcmxydawainj")
    public suspend fun modelDataDownloadTimeoutInSeconds(`value`: Output) {
        this.modelDataDownloadTimeoutInSeconds = value
    }

    /**
     * @param value The timeout value, in seconds, for your inference container to pass health check by Amazon S3 Hosting. For more information about health check, see [How Your Container Should Respond to Health Check (Ping) Requests](https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-inference-code.html#your-algorithms-inference-algo-ping-requests) .
     */
    @JvmName("scbflryhaxjnreuc")
    public suspend fun containerStartupHealthCheckTimeoutInSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerStartupHealthCheckTimeoutInSeconds = mapped
    }

    /**
     * @param value The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the individual inference instance associated with this inference component.
     */
    @JvmName("awdaxmsulkbuinbx")
    public suspend fun modelDataDownloadTimeoutInSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.modelDataDownloadTimeoutInSeconds = mapped
    }

    internal fun build(): InferenceComponentStartupParametersArgs =
        InferenceComponentStartupParametersArgs(
            containerStartupHealthCheckTimeoutInSeconds = containerStartupHealthCheckTimeoutInSeconds,
            modelDataDownloadTimeoutInSeconds = modelDataDownloadTimeoutInSeconds,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy