
com.pulumi.awsnative.personalize.kotlin.outputs.SolutionConfig.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.personalize.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
* The configuration to use with the solution. When performAutoML is set to true, Amazon Personalize only evaluates the autoMLConfig section of the solution configuration.
* @property algorithmHyperParameters Lists the hyperparameter names and ranges.
* @property autoMlConfig The AutoMLConfig object containing a list of recipes to search when AutoML is performed.
* @property eventValueThreshold Only events with a value greater than or equal to this threshold are used for training a model.
* @property featureTransformationParameters Lists the feature transformation parameters.
* @property hpoConfig Describes the properties for hyperparameter optimization (HPO)
*/
public data class SolutionConfig(
public val algorithmHyperParameters: Map? = null,
public val autoMlConfig: SolutionConfigAutoMlConfigProperties? = null,
public val eventValueThreshold: String? = null,
public val featureTransformationParameters: Map? = null,
public val hpoConfig: SolutionConfigHpoConfigProperties? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.personalize.outputs.SolutionConfig): SolutionConfig = SolutionConfig(
algorithmHyperParameters = javaType.algorithmHyperParameters().map({ args0 ->
args0.key.to(args0.value)
}).toMap(),
autoMlConfig = javaType.autoMlConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.personalize.kotlin.outputs.SolutionConfigAutoMlConfigProperties.Companion.toKotlin(args0)
})
}).orElse(null),
eventValueThreshold = javaType.eventValueThreshold().map({ args0 -> args0 }).orElse(null),
featureTransformationParameters = javaType.featureTransformationParameters().map({ args0 ->
args0.key.to(args0.value)
}).toMap(),
hpoConfig = javaType.hpoConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.personalize.kotlin.outputs.SolutionConfigHpoConfigProperties.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy