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

com.pulumi.awsnative.sagemaker.kotlin.InferenceComponentArgs.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

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.sagemaker.InferenceComponentArgs.builder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.InferenceComponentRuntimeConfigArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.InferenceComponentRuntimeConfigArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.InferenceComponentSpecificationArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.InferenceComponentSpecificationArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::SageMaker::InferenceComponent
 * @property endpointArn The Amazon Resource Name (ARN) of the endpoint that hosts the inference component.
 * @property endpointName The name of the endpoint that hosts the inference component.
 * @property inferenceComponentName The name of the inference component.
 * @property runtimeConfig
 * @property specification
 * @property tags
 * @property variantName The name of the production variant that hosts the inference component.
 */
public data class InferenceComponentArgs(
    public val endpointArn: Output? = null,
    public val endpointName: Output? = null,
    public val inferenceComponentName: Output? = null,
    public val runtimeConfig: Output? = null,
    public val specification: Output? = null,
    public val tags: Output>? = null,
    public val variantName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.InferenceComponentArgs =
        com.pulumi.awsnative.sagemaker.InferenceComponentArgs.builder()
            .endpointArn(endpointArn?.applyValue({ args0 -> args0 }))
            .endpointName(endpointName?.applyValue({ args0 -> args0 }))
            .inferenceComponentName(inferenceComponentName?.applyValue({ args0 -> args0 }))
            .runtimeConfig(runtimeConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .specification(specification?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .variantName(variantName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InferenceComponentArgs].
 */
@PulumiTagMarker
public class InferenceComponentArgsBuilder internal constructor() {
    private var endpointArn: Output? = null

    private var endpointName: Output? = null

    private var inferenceComponentName: Output? = null

    private var runtimeConfig: Output? = null

    private var specification: Output? = null

    private var tags: Output>? = null

    private var variantName: Output? = null

    /**
     * @param value The Amazon Resource Name (ARN) of the endpoint that hosts the inference component.
     */
    @JvmName("arufgoilbxsjqikn")
    public suspend fun endpointArn(`value`: Output) {
        this.endpointArn = value
    }

    /**
     * @param value The name of the endpoint that hosts the inference component.
     */
    @JvmName("diiqlcclpqbyfqul")
    public suspend fun endpointName(`value`: Output) {
        this.endpointName = value
    }

    /**
     * @param value The name of the inference component.
     */
    @JvmName("utdusdxoyvmamsof")
    public suspend fun inferenceComponentName(`value`: Output) {
        this.inferenceComponentName = value
    }

    /**
     * @param value
     */
    @JvmName("dsgbbcspehccamoo")
    public suspend fun runtimeConfig(`value`: Output) {
        this.runtimeConfig = value
    }

    /**
     * @param value
     */
    @JvmName("irvfjdmhfefaydob")
    public suspend fun specification(`value`: Output) {
        this.specification = value
    }

    /**
     * @param value
     */
    @JvmName("ytfttccydhbfwtbw")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values
     */
    @JvmName("ruquopeojgtgeodq")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The name of the production variant that hosts the inference component.
     */
    @JvmName("qfhfjxleunrhpurf")
    public suspend fun variantName(`value`: Output) {
        this.variantName = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the endpoint that hosts the inference component.
     */
    @JvmName("fpudpkrecmbqvwwn")
    public suspend fun endpointArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointArn = mapped
    }

    /**
     * @param value The name of the endpoint that hosts the inference component.
     */
    @JvmName("cjytrififqqrunhk")
    public suspend fun endpointName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointName = mapped
    }

    /**
     * @param value The name of the inference component.
     */
    @JvmName("uqwwnbvqadhsqilj")
    public suspend fun inferenceComponentName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inferenceComponentName = mapped
    }

    /**
     * @param value
     */
    @JvmName("etpxkhottpkifxes")
    public suspend fun runtimeConfig(`value`: InferenceComponentRuntimeConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.runtimeConfig = mapped
    }

    /**
     * @param argument
     */
    @JvmName("rsaqiitbbdpfndxh")
    public suspend fun runtimeConfig(argument: suspend InferenceComponentRuntimeConfigArgsBuilder.() -> Unit) {
        val toBeMapped = InferenceComponentRuntimeConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.runtimeConfig = mapped
    }

    /**
     * @param value
     */
    @JvmName("amfaghnbfhmnnyat")
    public suspend fun specification(`value`: InferenceComponentSpecificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.specification = mapped
    }

    /**
     * @param argument
     */
    @JvmName("okyaytkxvummjvpg")
    public suspend fun specification(argument: suspend InferenceComponentSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = InferenceComponentSpecificationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.specification = mapped
    }

    /**
     * @param value
     */
    @JvmName("xnudfbosvlrfelbk")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument
     */
    @JvmName("sforxvtglvdxhucw")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument
     */
    @JvmName("drawdqfqkslqrlkf")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument
     */
    @JvmName("tiovrraaxmbdldnn")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values
     */
    @JvmName("pbyqtrkgdrrqokgr")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The name of the production variant that hosts the inference component.
     */
    @JvmName("cqwtjlmgogwxrviq")
    public suspend fun variantName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.variantName = mapped
    }

    internal fun build(): InferenceComponentArgs = InferenceComponentArgs(
        endpointArn = endpointArn,
        endpointName = endpointName,
        inferenceComponentName = inferenceComponentName,
        runtimeConfig = runtimeConfig,
        specification = specification,
        tags = tags,
        variantName = variantName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy