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

com.pulumi.awsnative.sagemaker.kotlin.outputs.ModelPackageTransformJobDefinition.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.sagemaker.kotlin.outputs

import com.pulumi.awsnative.sagemaker.kotlin.enums.ModelPackageTransformJobDefinitionBatchStrategy
import kotlin.Int
import kotlin.Suppress

/**
 * Defines the input needed to run a transform job using the inference specification specified in the algorithm.
 * @property batchStrategy A string that determines the number of records included in a single mini-batch.
 * @property environment The environment variables to set in the Docker container. We support up to 16 key and values entries in the map.
 * @property maxConcurrentTransforms The maximum number of parallel requests that can be sent to each instance in a transform job. The default value is 1.
 * @property maxPayloadInMb The maximum payload size allowed, in MB. A payload is the data portion of a record (without metadata).
 * @property transformInput A description of the input source and the way the transform job consumes it.
 * @property transformOutput Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job.
 * @property transformResources Identifies the ML compute instances for the transform job.
 */
public data class ModelPackageTransformJobDefinition(
    public val batchStrategy: ModelPackageTransformJobDefinitionBatchStrategy? = null,
    public val environment: ModelPackageEnvironment? = null,
    public val maxConcurrentTransforms: Int? = null,
    public val maxPayloadInMb: Int? = null,
    public val transformInput: ModelPackageTransformInput,
    public val transformOutput: ModelPackageTransformOutput,
    public val transformResources: ModelPackageTransformResources,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.sagemaker.outputs.ModelPackageTransformJobDefinition): ModelPackageTransformJobDefinition = ModelPackageTransformJobDefinition(
            batchStrategy = javaType.batchStrategy().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.sagemaker.kotlin.enums.ModelPackageTransformJobDefinitionBatchStrategy.Companion.toKotlin(args0)
                })
            }).orElse(null),
            environment = javaType.environment().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.sagemaker.kotlin.outputs.ModelPackageEnvironment.Companion.toKotlin(args0)
                })
            }).orElse(null),
            maxConcurrentTransforms = javaType.maxConcurrentTransforms().map({ args0 -> args0 }).orElse(null),
            maxPayloadInMb = javaType.maxPayloadInMb().map({ args0 -> args0 }).orElse(null),
            transformInput = javaType.transformInput().let({ args0 ->
                com.pulumi.awsnative.sagemaker.kotlin.outputs.ModelPackageTransformInput.Companion.toKotlin(args0)
            }),
            transformOutput = javaType.transformOutput().let({ args0 ->
                com.pulumi.awsnative.sagemaker.kotlin.outputs.ModelPackageTransformOutput.Companion.toKotlin(args0)
            }),
            transformResources = javaType.transformResources().let({ args0 ->
                com.pulumi.awsnative.sagemaker.kotlin.outputs.ModelPackageTransformResources.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy