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

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

  def apply(
    title: String,
    functionArn: String,
    params: Option[AnyRef] = None,
    height: Option[Number] = None,
    updateOnRefresh: Option[Boolean] = None,
    updateOnResize: Option[Boolean] = None,
    width: Option[Number] = None,
    updateOnTimeRangeChange: Option[Boolean] = None
  ): software.amazon.awscdk.services.cloudwatch.CustomWidget =
    software.amazon.awscdk.services.cloudwatch.CustomWidget.Builder
      .create()
      .title(title)
      .functionArn(functionArn)
      .params(params.orNull)
      .height(height.orNull)
      .updateOnRefresh(updateOnRefresh.map(Boolean.box).orNull)
      .updateOnResize(updateOnResize.map(Boolean.box).orNull)
      .width(width.orNull)
      .updateOnTimeRangeChange(updateOnTimeRangeChange.map(Boolean.box).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy