io.burkard.cdk.services.autoscaling.cfnScalingPolicy.MetricStatProperty.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.autoscaling.cfnScalingPolicy
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object MetricStatProperty {
def apply(
stat: String,
metric: software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.MetricProperty,
unit: Option[String] = None
): software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.MetricStatProperty =
(new software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.MetricStatProperty.Builder)
.stat(stat)
.metric(metric)
.unit(unit.orNull)
.build()
}