All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.cloudwatch.AlarmStatusWidgetProps.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 AlarmStatusWidgetProps {

  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.AlarmStatusWidgetProps =
    (new software.amazon.awscdk.services.cloudwatch.AlarmStatusWidgetProps.Builder)
      .alarms(alarms.asJava)
      .sortBy(sortBy.orNull)
      .height(height.orNull)
      .title(title.orNull)
      .width(width.orNull)
      .states(states.map(_.asJava).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy