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

io.burkard.cdk.services.autoscaling.cfnAutoScalingGroup.InstancesDistributionProperty.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.autoscaling.cfnAutoScalingGroup

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object InstancesDistributionProperty {

  def apply(
    onDemandAllocationStrategy: Option[String] = None,
    spotMaxPrice: Option[String] = None,
    spotAllocationStrategy: Option[String] = None,
    onDemandBaseCapacity: Option[Number] = None,
    onDemandPercentageAboveBaseCapacity: Option[Number] = None,
    spotInstancePools: Option[Number] = None
  ): software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.InstancesDistributionProperty =
    (new software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.InstancesDistributionProperty.Builder)
      .onDemandAllocationStrategy(onDemandAllocationStrategy.orNull)
      .spotMaxPrice(spotMaxPrice.orNull)
      .spotAllocationStrategy(spotAllocationStrategy.orNull)
      .onDemandBaseCapacity(onDemandBaseCapacity.orNull)
      .onDemandPercentageAboveBaseCapacity(onDemandPercentageAboveBaseCapacity.orNull)
      .spotInstancePools(spotInstancePools.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy