
com.pulumi.awsnative.cloudwatch.kotlin.outputs.AlarmMetric.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.cloudwatch.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* The ``Metric`` property type represents a specific metric. ``Metric`` is a property of the [MetricStat](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricstat.html) property type.
* @property dimensions The metric dimensions that you want to be used for the metric that the alarm will watch.
* @property metricName The name of the metric that you want the alarm to watch. This is a required field.
* @property namespace The namespace of the metric that the alarm will watch.
*/
public data class AlarmMetric(
public val dimensions: List? = null,
public val metricName: String? = null,
public val namespace: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.cloudwatch.outputs.AlarmMetric): AlarmMetric = AlarmMetric(
dimensions = javaType.dimensions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.cloudwatch.kotlin.outputs.AlarmDimension.Companion.toKotlin(args0)
})
}),
metricName = javaType.metricName().map({ args0 -> args0 }).orElse(null),
namespace = javaType.namespace().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy