
com.pulumi.awsnative.applicationinsights.kotlin.inputs.ApplicationAlarmArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.applicationinsights.kotlin.inputs
import com.pulumi.awsnative.applicationinsights.inputs.ApplicationAlarmArgs.builder
import com.pulumi.awsnative.applicationinsights.kotlin.enums.ApplicationAlarmSeverity
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A CloudWatch alarm to be monitored for the component.
* @property alarmName The name of the CloudWatch alarm to be monitored for the component.
* @property severity Indicates the degree of outage when the alarm goes off.
*/
public data class ApplicationAlarmArgs(
public val alarmName: Output,
public val severity: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.applicationinsights.inputs.ApplicationAlarmArgs =
com.pulumi.awsnative.applicationinsights.inputs.ApplicationAlarmArgs.builder()
.alarmName(alarmName.applyValue({ args0 -> args0 }))
.severity(severity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ApplicationAlarmArgs].
*/
@PulumiTagMarker
public class ApplicationAlarmArgsBuilder internal constructor() {
private var alarmName: Output? = null
private var severity: Output? = null
/**
* @param value The name of the CloudWatch alarm to be monitored for the component.
*/
@JvmName("rcdhfnwwbgjjqiso")
public suspend fun alarmName(`value`: Output) {
this.alarmName = value
}
/**
* @param value Indicates the degree of outage when the alarm goes off.
*/
@JvmName("pmsheivxbrhnrllg")
public suspend fun severity(`value`: Output) {
this.severity = value
}
/**
* @param value The name of the CloudWatch alarm to be monitored for the component.
*/
@JvmName("sgjrxtrrupwelnhp")
public suspend fun alarmName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.alarmName = mapped
}
/**
* @param value Indicates the degree of outage when the alarm goes off.
*/
@JvmName("xkelcaijxrbynran")
public suspend fun severity(`value`: ApplicationAlarmSeverity?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.severity = mapped
}
internal fun build(): ApplicationAlarmArgs = ApplicationAlarmArgs(
alarmName = alarmName ?: throw PulumiNullFieldException("alarmName"),
severity = severity,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy