io.burkard.cdk.services.cloudwatch.AlarmStatusWidget.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.cloudwatch
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object AlarmStatusWidget {
def apply(
alarms: List[_ <: software.amazon.awscdk.services.cloudwatch.IAlarm],
sortBy: Option[software.amazon.awscdk.services.cloudwatch.AlarmStatusWidgetSortBy] = None,
height: Option[Number] = None,
title: Option[String] = None,
width: Option[Number] = None,
states: Option[List[_ <: software.amazon.awscdk.services.cloudwatch.AlarmState]] = None
): software.amazon.awscdk.services.cloudwatch.AlarmStatusWidget =
software.amazon.awscdk.services.cloudwatch.AlarmStatusWidget.Builder
.create()
.alarms(alarms.asJava)
.sortBy(sortBy.orNull)
.height(height.orNull)
.title(title.orNull)
.width(width.orNull)
.states(states.map(_.asJava).orNull)
.build()
}