io.burkard.cdk.services.autoscaling.CpuUtilizationScalingProps.scala Maven / Gradle / Ivy
package io.burkard.cdk.services.autoscaling
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CpuUtilizationScalingProps {
def apply(
disableScaleIn: Option[Boolean] = None,
targetUtilizationPercent: Option[Number] = None,
cooldown: Option[software.amazon.awscdk.Duration] = None,
estimatedInstanceWarmup: Option[software.amazon.awscdk.Duration] = None
): software.amazon.awscdk.services.autoscaling.CpuUtilizationScalingProps =
(new software.amazon.awscdk.services.autoscaling.CpuUtilizationScalingProps.Builder)
.disableScaleIn(disableScaleIn.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
.targetUtilizationPercent(targetUtilizationPercent.orNull)
.cooldown(cooldown.orNull)
.estimatedInstanceWarmup(estimatedInstanceWarmup.orNull)
.build()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy