
com.pulumi.awsnative.applicationinsights.kotlin.outputs.ApplicationAlarm.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.applicationinsights.kotlin.outputs
import com.pulumi.awsnative.applicationinsights.kotlin.enums.ApplicationAlarmSeverity
import kotlin.String
import kotlin.Suppress
/**
* 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 ApplicationAlarm(
public val alarmName: String,
public val severity: ApplicationAlarmSeverity? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.applicationinsights.outputs.ApplicationAlarm): ApplicationAlarm = ApplicationAlarm(
alarmName = javaType.alarmName(),
severity = javaType.severity().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.applicationinsights.kotlin.enums.ApplicationAlarmSeverity.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy