![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.applicationsignals.kotlin.inputs.ServiceLevelObjectiveDimensionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.applicationsignals.kotlin.inputs
import com.pulumi.awsnative.applicationsignals.inputs.ServiceLevelObjectiveDimensionArgs.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
/**
* A dimension is a name/value pair that is part of the identity of a metric. Because dimensions are part of the unique identifier for a metric, whenever you add a unique name/value pair to one of your metrics, you are creating a new variation of that metric. For example, many Amazon EC2 metrics publish `InstanceId` as a dimension name, and the actual instance ID as the value for that dimension. You can assign up to 30 dimensions to a metric.
* @property name The name of the dimension. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:). ASCII control characters are not supported as part of dimension names.
* @property value The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character. ASCII control characters are not supported as part of dimension values
*/
public data class ServiceLevelObjectiveDimensionArgs(
public val name: Output,
public val `value`: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.applicationsignals.inputs.ServiceLevelObjectiveDimensionArgs =
com.pulumi.awsnative.applicationsignals.inputs.ServiceLevelObjectiveDimensionArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceLevelObjectiveDimensionArgs].
*/
@PulumiTagMarker
public class ServiceLevelObjectiveDimensionArgsBuilder internal constructor() {
private var name: Output? = null
private var `value`: Output? = null
/**
* @param value The name of the dimension. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:). ASCII control characters are not supported as part of dimension names.
*/
@JvmName("rpeeqmngorqvloir")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character. ASCII control characters are not supported as part of dimension values
*/
@JvmName("qtfygwycutvgbefp")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value The name of the dimension. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:). ASCII control characters are not supported as part of dimension names.
*/
@JvmName("hbcepbryiplkekwc")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character. ASCII control characters are not supported as part of dimension values
*/
@JvmName("xyhkkgifsyyvdhst")
public suspend fun `value`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): ServiceLevelObjectiveDimensionArgs = ServiceLevelObjectiveDimensionArgs(
name = name ?: throw PulumiNullFieldException("name"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy