
com.pulumi.awsnative.sagemaker.kotlin.outputs.InferenceComponentSpecification.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.sagemaker.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* The specification for the inference component
* @property computeResourceRequirements The compute resources allocated to run the model assigned to the inference component.
* @property container Defines a container that provides the runtime environment for a model that you deploy with an inference component.
* @property modelName The name of an existing SageMaker model object in your account that you want to deploy with the inference component.
* @property startupParameters Settings that take effect while the model container starts up.
*/
public data class InferenceComponentSpecification(
public val computeResourceRequirements: InferenceComponentComputeResourceRequirements,
public val container: InferenceComponentContainerSpecification? = null,
public val modelName: String? = null,
public val startupParameters: InferenceComponentStartupParameters? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.sagemaker.outputs.InferenceComponentSpecification): InferenceComponentSpecification = InferenceComponentSpecification(
computeResourceRequirements = javaType.computeResourceRequirements().let({ args0 ->
com.pulumi.awsnative.sagemaker.kotlin.outputs.InferenceComponentComputeResourceRequirements.Companion.toKotlin(args0)
}),
container = javaType.container().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.sagemaker.kotlin.outputs.InferenceComponentContainerSpecification.Companion.toKotlin(args0)
})
}).orElse(null),
modelName = javaType.modelName().map({ args0 -> args0 }).orElse(null),
startupParameters = javaType.startupParameters().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.sagemaker.kotlin.outputs.InferenceComponentStartupParameters.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy