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

com.pulumi.awsnative.cloudwatch.kotlin.outputs.GetCompositeAlarmResult.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cloudwatch.kotlin.outputs

import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property actionsEnabled Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
 * @property actionsSuppressor Actions will be suppressed if the suppressor alarm is in the ALARM state. ActionsSuppressor can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
 * @property actionsSuppressorExtensionPeriod Actions will be suppressed if WaitPeriod is active. The length of time that actions are suppressed is in seconds.
 * @property actionsSuppressorWaitPeriod Actions will be suppressed if ExtensionPeriod is active. The length of time that actions are suppressed is in seconds.
 * @property alarmActions The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN).
 * @property alarmDescription The description of the alarm
 * @property alarmRule Expression which aggregates the state of other Alarms (Metric or Composite Alarms)
 * @property arn Amazon Resource Name (ARN) of the alarm
 * @property insufficientDataActions The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).
 * @property okActions The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).
 * @property tags A list of key-value pairs to associate with the composite alarm. You can associate as many as 50 tags with an alarm.
 */
public data class GetCompositeAlarmResult(
    public val actionsEnabled: Boolean? = null,
    public val actionsSuppressor: String? = null,
    public val actionsSuppressorExtensionPeriod: Int? = null,
    public val actionsSuppressorWaitPeriod: Int? = null,
    public val alarmActions: List? = null,
    public val alarmDescription: String? = null,
    public val alarmRule: String? = null,
    public val arn: String? = null,
    public val insufficientDataActions: List? = null,
    public val okActions: List? = null,
    public val tags: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.cloudwatch.outputs.GetCompositeAlarmResult): GetCompositeAlarmResult = GetCompositeAlarmResult(
            actionsEnabled = javaType.actionsEnabled().map({ args0 -> args0 }).orElse(null),
            actionsSuppressor = javaType.actionsSuppressor().map({ args0 -> args0 }).orElse(null),
            actionsSuppressorExtensionPeriod = javaType.actionsSuppressorExtensionPeriod().map({ args0 ->
                args0
            }).orElse(null),
            actionsSuppressorWaitPeriod = javaType.actionsSuppressorWaitPeriod().map({ args0 ->
                args0
            }).orElse(null),
            alarmActions = javaType.alarmActions().map({ args0 -> args0 }),
            alarmDescription = javaType.alarmDescription().map({ args0 -> args0 }).orElse(null),
            alarmRule = javaType.alarmRule().map({ args0 -> args0 }).orElse(null),
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            insufficientDataActions = javaType.insufficientDataActions().map({ args0 -> args0 }),
            okActions = javaType.okActions().map({ args0 -> args0 }),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy