io.burkard.cdk.services.cloudwatch.CompositeAlarmProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.cloudwatch
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CompositeAlarmProps {
def apply(
alarmRule: software.amazon.awscdk.services.cloudwatch.IAlarmRule,
actionsEnabled: Option[Boolean] = None,
alarmDescription: Option[String] = None,
compositeAlarmName: Option[String] = None
): software.amazon.awscdk.services.cloudwatch.CompositeAlarmProps =
(new software.amazon.awscdk.services.cloudwatch.CompositeAlarmProps.Builder)
.alarmRule(alarmRule)
.actionsEnabled(actionsEnabled.map(Boolean.box).orNull)
.alarmDescription(alarmDescription.orNull)
.compositeAlarmName(compositeAlarmName.orNull)
.build()
}