io.burkard.cdk.services.lambda.AutoScalingOptions.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.lambda
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object AutoScalingOptions {
def apply(
maxCapacity: Number,
minCapacity: Option[Number] = None
): software.amazon.awscdk.services.lambda.AutoScalingOptions =
(new software.amazon.awscdk.services.lambda.AutoScalingOptions.Builder)
.maxCapacity(maxCapacity)
.minCapacity(minCapacity.orNull)
.build()
}