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

cloudshift.awscdk.dsl.services.personalize.CfnSolutionHpoResourceConfigPropertyDsl.kt Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package cloudshift.awscdk.dsl.services.personalize

import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import software.amazon.awscdk.services.personalize.CfnSolution

/**
 * Describes the resource configuration for hyperparameter optimization (HPO).
 *
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.personalize.*;
 * HpoResourceConfigProperty hpoResourceConfigProperty = HpoResourceConfigProperty.builder()
 * .maxNumberOfTrainingJobs("maxNumberOfTrainingJobs")
 * .maxParallelTrainingJobs("maxParallelTrainingJobs")
 * .build();
 * ```
 *
 * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-personalize-solution-hporesourceconfig.html)
 */
@CdkDslMarker
public class CfnSolutionHpoResourceConfigPropertyDsl {
  private val cdkBuilder: CfnSolution.HpoResourceConfigProperty.Builder =
      CfnSolution.HpoResourceConfigProperty.builder()

  /**
   * @param maxNumberOfTrainingJobs The maximum number of training jobs when you create a solution
   * version.
   * The maximum value for maxNumberOfTrainingJobs is 40.
   */
  public fun maxNumberOfTrainingJobs(maxNumberOfTrainingJobs: String) {
    cdkBuilder.maxNumberOfTrainingJobs(maxNumberOfTrainingJobs)
  }

  /**
   * @param maxParallelTrainingJobs The maximum number of parallel training jobs when you create a
   * solution version.
   * The maximum value for maxParallelTrainingJobs is 10.
   */
  public fun maxParallelTrainingJobs(maxParallelTrainingJobs: String) {
    cdkBuilder.maxParallelTrainingJobs(maxParallelTrainingJobs)
  }

  public fun build(): CfnSolution.HpoResourceConfigProperty = cdkBuilder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy