io.burkard.cdk.CfnAutoScalingRollingUpdate.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnAutoScalingRollingUpdate {
def apply(
minSuccessfulInstancesPercent: Option[Number] = None,
minInstancesInService: Option[Number] = None,
pauseTime: Option[String] = None,
suspendProcesses: Option[List[String]] = None,
maxBatchSize: Option[Number] = None,
waitOnResourceSignals: Option[Boolean] = None
): software.amazon.awscdk.CfnAutoScalingRollingUpdate =
(new software.amazon.awscdk.CfnAutoScalingRollingUpdate.Builder)
.minSuccessfulInstancesPercent(minSuccessfulInstancesPercent.orNull)
.minInstancesInService(minInstancesInService.orNull)
.pauseTime(pauseTime.orNull)
.suspendProcesses(suspendProcesses.map(_.asJava).orNull)
.maxBatchSize(maxBatchSize.orNull)
.waitOnResourceSignals(waitOnResourceSignals.map(Boolean.box).orNull)
.build()
}