![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.cloudwatch.kotlin.inputs.AlarmDimensionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cloudwatch.kotlin.inputs
import com.pulumi.awsnative.cloudwatch.inputs.AlarmDimensionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Dimension is an embedded property of the ``AWS::CloudWatch::Alarm`` type. Dimensions are name/value pairs that can be associated with a CW metric. You can specify a maximum of 10 dimensions for a given metric.
* @property name The name of the dimension, from 1–255 characters in length. This dimension name must have been included when the metric was published.
* @property value The value for the dimension, from 1–255 characters in length.
*/
public data class AlarmDimensionArgs(
public val name: Output,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.cloudwatch.inputs.AlarmDimensionArgs =
com.pulumi.awsnative.cloudwatch.inputs.AlarmDimensionArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AlarmDimensionArgs].
*/
@PulumiTagMarker
public class AlarmDimensionArgsBuilder internal constructor() {
private var name: Output? = null
private var `value`: Output? = null
/**
* @param value The name of the dimension, from 1–255 characters in length. This dimension name must have been included when the metric was published.
*/
@JvmName("amputiknekcsliql")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The value for the dimension, from 1–255 characters in length.
*/
@JvmName("xwvwxtmldufhphlw")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value The name of the dimension, from 1–255 characters in length. This dimension name must have been included when the metric was published.
*/
@JvmName("tqwmlajwhxcmdglx")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The value for the dimension, from 1–255 characters in length.
*/
@JvmName("fctcrupdudmpepik")
public suspend fun `value`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): AlarmDimensionArgs = AlarmDimensionArgs(
name = name ?: throw PulumiNullFieldException("name"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy