io.burkard.cdk.services.opsworks.cfnLayer.LoadBasedAutoScalingProperty.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.opsworks.cfnLayer
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object LoadBasedAutoScalingProperty {
def apply(
enable: Option[Boolean] = None,
downScaling: Option[software.amazon.awscdk.services.opsworks.CfnLayer.AutoScalingThresholdsProperty] = None,
upScaling: Option[software.amazon.awscdk.services.opsworks.CfnLayer.AutoScalingThresholdsProperty] = None
): software.amazon.awscdk.services.opsworks.CfnLayer.LoadBasedAutoScalingProperty =
(new software.amazon.awscdk.services.opsworks.CfnLayer.LoadBasedAutoScalingProperty.Builder)
.enable(enable.map(Boolean.box).orNull)
.downScaling(downScaling.orNull)
.upScaling(upScaling.orNull)
.build()
}