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

io.burkard.cdk.services.lookoutmetrics.CfnAlert.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.lookoutmetrics

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnAlert {

  def apply(
    internalResourceId: String,
    alertSensitivityThreshold: Number,
    anomalyDetectorArn: String,
    action: software.amazon.awscdk.services.lookoutmetrics.CfnAlert.ActionProperty,
    alertName: Option[String] = None,
    alertDescription: Option[String] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.lookoutmetrics.CfnAlert =
    software.amazon.awscdk.services.lookoutmetrics.CfnAlert.Builder
      .create(stackCtx, internalResourceId)
      .alertSensitivityThreshold(alertSensitivityThreshold)
      .anomalyDetectorArn(anomalyDetectorArn)
      .action(action)
      .alertName(alertName.orNull)
      .alertDescription(alertDescription.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy