io.burkard.cdk.services.cloudwatch.CfnAlarmProps.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 CfnAlarmProps {
def apply(
comparisonOperator: String,
evaluationPeriods: Number,
statistic: Option[String] = None,
insufficientDataActions: Option[List[String]] = None,
evaluateLowSampleCountPercentile: Option[String] = None,
metricName: Option[String] = None,
datapointsToAlarm: Option[Number] = None,
okActions: Option[List[String]] = None,
treatMissingData: Option[String] = None,
threshold: Option[Number] = None,
dimensions: Option[List[_]] = None,
thresholdMetricId: Option[String] = None,
metrics: Option[List[_]] = None,
actionsEnabled: Option[Boolean] = None,
unit: Option[String] = None,
alarmActions: Option[List[String]] = None,
alarmName: Option[String] = None,
period: Option[Number] = None,
namespace: Option[String] = None,
extendedStatistic: Option[String] = None,
alarmDescription: Option[String] = None
): software.amazon.awscdk.services.cloudwatch.CfnAlarmProps =
(new software.amazon.awscdk.services.cloudwatch.CfnAlarmProps.Builder)
.comparisonOperator(comparisonOperator)
.evaluationPeriods(evaluationPeriods)
.statistic(statistic.orNull)
.insufficientDataActions(insufficientDataActions.map(_.asJava).orNull)
.evaluateLowSampleCountPercentile(evaluateLowSampleCountPercentile.orNull)
.metricName(metricName.orNull)
.datapointsToAlarm(datapointsToAlarm.orNull)
.okActions(okActions.map(_.asJava).orNull)
.treatMissingData(treatMissingData.orNull)
.threshold(threshold.orNull)
.dimensions(dimensions.map(_.asJava).orNull)
.thresholdMetricId(thresholdMetricId.orNull)
.metrics(metrics.map(_.asJava).orNull)
.actionsEnabled(actionsEnabled.map(Boolean.box).orNull)
.unit(unit.orNull)
.alarmActions(alarmActions.map(_.asJava).orNull)
.alarmName(alarmName.orNull)
.period(period.orNull)
.namespace(namespace.orNull)
.extendedStatistic(extendedStatistic.orNull)
.alarmDescription(alarmDescription.orNull)
.build()
}