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

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

  def apply(
    internalResourceId: String,
    metricMathAnomalyDetector: Option[software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.MetricMathAnomalyDetectorProperty] = None,
    stat: Option[String] = None,
    metricName: Option[String] = None,
    configuration: Option[software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.ConfigurationProperty] = None,
    dimensions: Option[List[_]] = None,
    singleMetricAnomalyDetector: Option[software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty] = None,
    namespace: Option[String] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector =
    software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.Builder
      .create(stackCtx, internalResourceId)
      .metricMathAnomalyDetector(metricMathAnomalyDetector.orNull)
      .stat(stat.orNull)
      .metricName(metricName.orNull)
      .configuration(configuration.orNull)
      .dimensions(dimensions.map(_.asJava).orNull)
      .singleMetricAnomalyDetector(singleMetricAnomalyDetector.orNull)
      .namespace(namespace.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy