com.pulumi.awsnative.sagemaker.kotlin.outputs.ModelPackageAdditionalInferenceSpecificationDefinition.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.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* Additional Inference Specification specifies details about inference jobs that can be run with models based on this model package.AdditionalInferenceSpecifications can be added to existing model packages using AdditionalInferenceSpecificationsToAdd.
* @property containers The Amazon ECR registry path of the Docker image that contains the inference code.
* @property description A description of the additional Inference specification.
* @property name A unique name to identify the additional inference specification. The name must be unique within the list of your additional inference specifications for a particular model package.
* @property supportedContentTypes The supported MIME types for the input data.
* @property supportedRealtimeInferenceInstanceTypes A list of the instance types that are used to generate inferences in real-time
* @property supportedResponseMimeTypes The supported MIME types for the output data.
* @property supportedTransformInstanceTypes A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
*/
public data class ModelPackageAdditionalInferenceSpecificationDefinition(
public val containers: List,
public val description: String? = null,
public val name: String,
public val supportedContentTypes: List? = null,
public val supportedRealtimeInferenceInstanceTypes: List? = null,
public val supportedResponseMimeTypes: List? = null,
public val supportedTransformInstanceTypes: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.sagemaker.outputs.ModelPackageAdditionalInferenceSpecificationDefinition): ModelPackageAdditionalInferenceSpecificationDefinition =
ModelPackageAdditionalInferenceSpecificationDefinition(
containers = javaType.containers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.sagemaker.kotlin.outputs.ModelPackageContainerDefinition.Companion.toKotlin(args0)
})
}),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
name = javaType.name(),
supportedContentTypes = javaType.supportedContentTypes().map({ args0 -> args0 }),
supportedRealtimeInferenceInstanceTypes = javaType.supportedRealtimeInferenceInstanceTypes().map({ args0 ->
args0
}),
supportedResponseMimeTypes = javaType.supportedResponseMimeTypes().map({ args0 -> args0 }),
supportedTransformInstanceTypes = javaType.supportedTransformInstanceTypes().map({ args0 -> args0 }),
)
}
}