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

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

@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