io.burkard.cdk.services.applicationautoscaling.BaseTargetTrackingProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.applicationautoscaling
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object BaseTargetTrackingProps {
def apply(
policyName: Option[String] = None,
disableScaleIn: Option[Boolean] = None,
scaleInCooldown: Option[software.amazon.awscdk.Duration] = None,
scaleOutCooldown: Option[software.amazon.awscdk.Duration] = None
): software.amazon.awscdk.services.applicationautoscaling.BaseTargetTrackingProps =
(new software.amazon.awscdk.services.applicationautoscaling.BaseTargetTrackingProps.Builder)
.policyName(policyName.orNull)
.disableScaleIn(disableScaleIn.map(Boolean.box).orNull)
.scaleInCooldown(scaleInCooldown.orNull)
.scaleOutCooldown(scaleOutCooldown.orNull)
.build()
}