io.burkard.cdk.services.emr.CfnInstanceGroupConfigProps.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 CfnInstanceGroupConfigProps {
def apply(
instanceRole: String,
instanceType: String,
jobFlowId: String,
instanceCount: Number,
ebsConfiguration: Option[software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.EbsConfigurationProperty] = None,
name: Option[String] = None,
market: Option[String] = None,
customAmiId: Option[String] = None,
bidPrice: Option[String] = None,
autoScalingPolicy: Option[software.amazon.awscdk.services.emr.CfnInstanceGroupConfig.AutoScalingPolicyProperty] = None,
configurations: Option[List[_]] = None
): software.amazon.awscdk.services.emr.CfnInstanceGroupConfigProps =
(new software.amazon.awscdk.services.emr.CfnInstanceGroupConfigProps.Builder)
.instanceRole(instanceRole)
.instanceType(instanceType)
.jobFlowId(jobFlowId)
.instanceCount(instanceCount)
.ebsConfiguration(ebsConfiguration.orNull)
.name(name.orNull)
.market(market.orNull)
.customAmiId(customAmiId.orNull)
.bidPrice(bidPrice.orNull)
.autoScalingPolicy(autoScalingPolicy.orNull)
.configurations(configurations.map(_.asJava).orNull)
.build()
}