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

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

  def apply(
    internalResourceId: String,
    alarmRule: String,
    alarmName: String,
    insufficientDataActions: Option[List[String]] = None,
    actionsSuppressor: Option[String] = None,
    okActions: Option[List[String]] = None,
    actionsSuppressorWaitPeriod: Option[Number] = None,
    actionsEnabled: Option[Boolean] = None,
    alarmActions: Option[List[String]] = None,
    alarmDescription: Option[String] = None,
    actionsSuppressorExtensionPeriod: Option[Number] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.cloudwatch.CfnCompositeAlarm =
    software.amazon.awscdk.services.cloudwatch.CfnCompositeAlarm.Builder
      .create(stackCtx, internalResourceId)
      .alarmRule(alarmRule)
      .alarmName(alarmName)
      .insufficientDataActions(insufficientDataActions.map(_.asJava).orNull)
      .actionsSuppressor(actionsSuppressor.orNull)
      .okActions(okActions.map(_.asJava).orNull)
      .actionsSuppressorWaitPeriod(actionsSuppressorWaitPeriod.orNull)
      .actionsEnabled(actionsEnabled.map(Boolean.box).orNull)
      .alarmActions(alarmActions.map(_.asJava).orNull)
      .alarmDescription(alarmDescription.orNull)
      .actionsSuppressorExtensionPeriod(actionsSuppressorExtensionPeriod.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy