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

com.pulumi.aws.sagemaker.kotlin.inputs.EndpointConfigurationAsyncInferenceConfigArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.aws.sagemaker.kotlin.inputs

import com.pulumi.aws.sagemaker.inputs.EndpointConfigurationAsyncInferenceConfigArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property clientConfig Configures the behavior of the client used by Amazon SageMaker to interact with the model container during asynchronous inference.
 * @property outputConfig Specifies the configuration for asynchronous inference invocation outputs.
 */
public data class EndpointConfigurationAsyncInferenceConfigArgs(
    public val clientConfig: Output? =
        null,
    public val outputConfig: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.sagemaker.inputs.EndpointConfigurationAsyncInferenceConfigArgs =
        com.pulumi.aws.sagemaker.inputs.EndpointConfigurationAsyncInferenceConfigArgs.builder()
            .clientConfig(clientConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .outputConfig(outputConfig.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [EndpointConfigurationAsyncInferenceConfigArgs].
 */
@PulumiTagMarker
public class EndpointConfigurationAsyncInferenceConfigArgsBuilder internal constructor() {
    private var clientConfig: Output? =
        null

    private var outputConfig: Output? =
        null

    /**
     * @param value Configures the behavior of the client used by Amazon SageMaker to interact with the model container during asynchronous inference.
     */
    @JvmName("moxnppvnqvbgydtk")
    public suspend fun clientConfig(`value`: Output) {
        this.clientConfig = value
    }

    /**
     * @param value Specifies the configuration for asynchronous inference invocation outputs.
     */
    @JvmName("mmuikcjvctexrhhu")
    public suspend fun outputConfig(`value`: Output) {
        this.outputConfig = value
    }

    /**
     * @param value Configures the behavior of the client used by Amazon SageMaker to interact with the model container during asynchronous inference.
     */
    @JvmName("htbbashpdwpvcxum")
    public suspend fun clientConfig(`value`: EndpointConfigurationAsyncInferenceConfigClientConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientConfig = mapped
    }

    /**
     * @param argument Configures the behavior of the client used by Amazon SageMaker to interact with the model container during asynchronous inference.
     */
    @JvmName("qpmkkaunkpmmhjol")
    public suspend fun clientConfig(argument: suspend EndpointConfigurationAsyncInferenceConfigClientConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            EndpointConfigurationAsyncInferenceConfigClientConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.clientConfig = mapped
    }

    /**
     * @param value Specifies the configuration for asynchronous inference invocation outputs.
     */
    @JvmName("linlcqksfvjchinv")
    public suspend fun outputConfig(`value`: EndpointConfigurationAsyncInferenceConfigOutputConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.outputConfig = mapped
    }

    /**
     * @param argument Specifies the configuration for asynchronous inference invocation outputs.
     */
    @JvmName("kvygfbquksjeuyhc")
    public suspend fun outputConfig(argument: suspend EndpointConfigurationAsyncInferenceConfigOutputConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            EndpointConfigurationAsyncInferenceConfigOutputConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.outputConfig = mapped
    }

    internal fun build(): EndpointConfigurationAsyncInferenceConfigArgs =
        EndpointConfigurationAsyncInferenceConfigArgs(
            clientConfig = clientConfig,
            outputConfig = outputConfig ?: throw PulumiNullFieldException("outputConfig"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy