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

com.pulumi.awsnative.iotsitewise.kotlin.outputs.AlarmsProperties.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iotsitewise.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * Contains the configuration information of an alarm created in an AWS IoT SiteWise Monitor portal. You can use the alarm to monitor an asset property and get notified when the asset property value is outside a specified range.
 * @property alarmRoleArn The ARN of the IAM role that allows the alarm to perform actions and access AWS resources and services, such as AWS IoT Events.
 * @property notificationLambdaArn The ARN of the AWS Lambda function that manages alarm notifications. For more information, see Managing alarm notifications in the AWS IoT Events Developer Guide.
 */
public data class AlarmsProperties(
    public val alarmRoleArn: String? = null,
    public val notificationLambdaArn: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.iotsitewise.outputs.AlarmsProperties): AlarmsProperties = AlarmsProperties(
            alarmRoleArn = javaType.alarmRoleArn().map({ args0 -> args0 }).orElse(null),
            notificationLambdaArn = javaType.notificationLambdaArn().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy