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

io.burkard.cdk.services.emr.CfnInstanceFleetConfigProps.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.emr

import scala.collection.JavaConverters._

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

  def apply(
    clusterId: String,
    instanceFleetType: String,
    name: Option[String] = None,
    targetOnDemandCapacity: Option[Number] = None,
    instanceTypeConfigs: Option[List[_]] = None,
    launchSpecifications: Option[software.amazon.awscdk.services.emr.CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty] = None,
    targetSpotCapacity: Option[Number] = None
  ): software.amazon.awscdk.services.emr.CfnInstanceFleetConfigProps =
    (new software.amazon.awscdk.services.emr.CfnInstanceFleetConfigProps.Builder)
      .clusterId(clusterId)
      .instanceFleetType(instanceFleetType)
      .name(name.orNull)
      .targetOnDemandCapacity(targetOnDemandCapacity.orNull)
      .instanceTypeConfigs(instanceTypeConfigs.map(_.asJava).orNull)
      .launchSpecifications(launchSpecifications.orNull)
      .targetSpotCapacity(targetSpotCapacity.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy