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

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

  def apply(
    internalResourceId: String,
    periodOverride: Option[software.amazon.awscdk.services.cloudwatch.PeriodOverride] = None,
    dashboardName: Option[String] = None,
    end: Option[String] = None,
    widgets: Option[List[_ <: List[_ <: software.amazon.awscdk.services.cloudwatch.IWidget]]] = None,
    start: Option[String] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.cloudwatch.Dashboard =
    software.amazon.awscdk.services.cloudwatch.Dashboard.Builder
      .create(stackCtx, internalResourceId)
      .periodOverride(periodOverride.orNull)
      .dashboardName(dashboardName.orNull)
      .end(end.orNull)
      .widgets(widgets.map(_.map(_.asJava).asJava).orNull)
      .start(start.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy