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

io.burkard.cdk.services.stepfunctions.tasks.emrModifyInstanceGroupByName.InstanceGroupModifyConfigProperty.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.stepfunctions.tasks.emrModifyInstanceGroupByName

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object InstanceGroupModifyConfigProperty {

  def apply(
    instanceCount: Option[Number] = None,
    configurations: Option[List[_ <: software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.ConfigurationProperty]] = None,
    eC2InstanceIdsToTerminate: Option[List[String]] = None,
    shrinkPolicy: Option[software.amazon.awscdk.services.stepfunctions.tasks.EmrModifyInstanceGroupByName.ShrinkPolicyProperty] = None
  ): software.amazon.awscdk.services.stepfunctions.tasks.EmrModifyInstanceGroupByName.InstanceGroupModifyConfigProperty =
    (new software.amazon.awscdk.services.stepfunctions.tasks.EmrModifyInstanceGroupByName.InstanceGroupModifyConfigProperty.Builder)
      .instanceCount(instanceCount.orNull)
      .configurations(configurations.map(_.asJava).orNull)
      .eC2InstanceIdsToTerminate(eC2InstanceIdsToTerminate.map(_.asJava).orNull)
      .shrinkPolicy(shrinkPolicy.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy