
com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageSourceAlgorithmArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.sagemaker.kotlin.inputs
import com.pulumi.awsnative.sagemaker.inputs.ModelPackageSourceAlgorithmArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Specifies an algorithm that was used to create the model package. The algorithm must be either an algorithm resource in your Amazon SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.
* @property algorithmName The name of an algorithm that was used to create the model package. The algorithm must be either an algorithm resource in your Amazon SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.
* @property modelDataUrl The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
*/
public data class ModelPackageSourceAlgorithmArgs(
public val algorithmName: Output,
public val modelDataUrl: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.ModelPackageSourceAlgorithmArgs =
com.pulumi.awsnative.sagemaker.inputs.ModelPackageSourceAlgorithmArgs.builder()
.algorithmName(algorithmName.applyValue({ args0 -> args0 }))
.modelDataUrl(modelDataUrl?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ModelPackageSourceAlgorithmArgs].
*/
@PulumiTagMarker
public class ModelPackageSourceAlgorithmArgsBuilder internal constructor() {
private var algorithmName: Output? = null
private var modelDataUrl: Output? = null
/**
* @param value The name of an algorithm that was used to create the model package. The algorithm must be either an algorithm resource in your Amazon SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.
*/
@JvmName("davxjsodflnfbqis")
public suspend fun algorithmName(`value`: Output) {
this.algorithmName = value
}
/**
* @param value The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
*/
@JvmName("wdgvmhggwpeuanuf")
public suspend fun modelDataUrl(`value`: Output) {
this.modelDataUrl = value
}
/**
* @param value The name of an algorithm that was used to create the model package. The algorithm must be either an algorithm resource in your Amazon SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.
*/
@JvmName("aijpurqedxsfwycr")
public suspend fun algorithmName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.algorithmName = mapped
}
/**
* @param value The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
*/
@JvmName("jbeneggcieoyjekx")
public suspend fun modelDataUrl(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.modelDataUrl = mapped
}
internal fun build(): ModelPackageSourceAlgorithmArgs = ModelPackageSourceAlgorithmArgs(
algorithmName = algorithmName ?: throw PulumiNullFieldException("algorithmName"),
modelDataUrl = modelDataUrl,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy