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

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

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

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

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

/**
 * The infrastructure configuration for deploying the model to a real-time inference endpoint.
 * @property instanceCount The number of instances of the type specified by InstanceType.
 * @property instanceType The instance type the model is deployed to.
 */
public data class InferenceExperimentRealTimeInferenceConfigArgs(
    public val instanceCount: Output,
    public val instanceType: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.InferenceExperimentRealTimeInferenceConfigArgs =
        com.pulumi.awsnative.sagemaker.inputs.InferenceExperimentRealTimeInferenceConfigArgs.builder()
            .instanceCount(instanceCount.applyValue({ args0 -> args0 }))
            .instanceType(instanceType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InferenceExperimentRealTimeInferenceConfigArgs].
 */
@PulumiTagMarker
public class InferenceExperimentRealTimeInferenceConfigArgsBuilder internal constructor() {
    private var instanceCount: Output? = null

    private var instanceType: Output? = null

    /**
     * @param value The number of instances of the type specified by InstanceType.
     */
    @JvmName("rvdvkjtujrlqnjmk")
    public suspend fun instanceCount(`value`: Output) {
        this.instanceCount = value
    }

    /**
     * @param value The instance type the model is deployed to.
     */
    @JvmName("tfdbxaowcswifhhn")
    public suspend fun instanceType(`value`: Output) {
        this.instanceType = value
    }

    /**
     * @param value The number of instances of the type specified by InstanceType.
     */
    @JvmName("rtebptupfwygupnm")
    public suspend fun instanceCount(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instanceCount = mapped
    }

    /**
     * @param value The instance type the model is deployed to.
     */
    @JvmName("aybdvxmcarpakkhv")
    public suspend fun instanceType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instanceType = mapped
    }

    internal fun build(): InferenceExperimentRealTimeInferenceConfigArgs =
        InferenceExperimentRealTimeInferenceConfigArgs(
            instanceCount = instanceCount ?: throw PulumiNullFieldException("instanceCount"),
            instanceType = instanceType ?: throw PulumiNullFieldException("instanceType"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy