
com.pulumi.awsnative.evidently.kotlin.inputs.LaunchMetricDefinitionObjectArgs.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.evidently.kotlin.inputs
import com.pulumi.awsnative.evidently.inputs.LaunchMetricDefinitionObjectArgs.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
/**
*
* @property entityIdKey The JSON path to reference the entity id in the event.
* @property eventPattern Event patterns have the same structure as the events they match. Rules use event patterns to select events. An event pattern either matches an event or it doesn't.
* @property metricName A name for the metric. It can include up to 255 characters.
* @property unitLabel A label for the units that the metric is measuring.
* @property valueKey The JSON path to reference the numerical metric value in the event.
*/
public data class LaunchMetricDefinitionObjectArgs(
public val entityIdKey: Output,
public val eventPattern: Output? = null,
public val metricName: Output,
public val unitLabel: Output? = null,
public val valueKey: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.evidently.inputs.LaunchMetricDefinitionObjectArgs =
com.pulumi.awsnative.evidently.inputs.LaunchMetricDefinitionObjectArgs.builder()
.entityIdKey(entityIdKey.applyValue({ args0 -> args0 }))
.eventPattern(eventPattern?.applyValue({ args0 -> args0 }))
.metricName(metricName.applyValue({ args0 -> args0 }))
.unitLabel(unitLabel?.applyValue({ args0 -> args0 }))
.valueKey(valueKey.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LaunchMetricDefinitionObjectArgs].
*/
@PulumiTagMarker
public class LaunchMetricDefinitionObjectArgsBuilder internal constructor() {
private var entityIdKey: Output? = null
private var eventPattern: Output? = null
private var metricName: Output? = null
private var unitLabel: Output? = null
private var valueKey: Output? = null
/**
* @param value The JSON path to reference the entity id in the event.
*/
@JvmName("jaibytmtwtablihb")
public suspend fun entityIdKey(`value`: Output) {
this.entityIdKey = value
}
/**
* @param value Event patterns have the same structure as the events they match. Rules use event patterns to select events. An event pattern either matches an event or it doesn't.
*/
@JvmName("ltrojsiqxlkhoeoy")
public suspend fun eventPattern(`value`: Output) {
this.eventPattern = value
}
/**
* @param value A name for the metric. It can include up to 255 characters.
*/
@JvmName("uogihfyxcfwulvym")
public suspend fun metricName(`value`: Output) {
this.metricName = value
}
/**
* @param value A label for the units that the metric is measuring.
*/
@JvmName("fxwubiblcwypysln")
public suspend fun unitLabel(`value`: Output) {
this.unitLabel = value
}
/**
* @param value The JSON path to reference the numerical metric value in the event.
*/
@JvmName("sjynnfehrrqnyepy")
public suspend fun valueKey(`value`: Output) {
this.valueKey = value
}
/**
* @param value The JSON path to reference the entity id in the event.
*/
@JvmName("vdmmfvqstgdfkpco")
public suspend fun entityIdKey(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.entityIdKey = mapped
}
/**
* @param value Event patterns have the same structure as the events they match. Rules use event patterns to select events. An event pattern either matches an event or it doesn't.
*/
@JvmName("pgtoylvcppuopluo")
public suspend fun eventPattern(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.eventPattern = mapped
}
/**
* @param value A name for the metric. It can include up to 255 characters.
*/
@JvmName("xooaaqyxrjovovhy")
public suspend fun metricName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.metricName = mapped
}
/**
* @param value A label for the units that the metric is measuring.
*/
@JvmName("qinbwrojwcaqpaio")
public suspend fun unitLabel(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.unitLabel = mapped
}
/**
* @param value The JSON path to reference the numerical metric value in the event.
*/
@JvmName("siomyihhryedsdif")
public suspend fun valueKey(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.valueKey = mapped
}
internal fun build(): LaunchMetricDefinitionObjectArgs = LaunchMetricDefinitionObjectArgs(
entityIdKey = entityIdKey ?: throw PulumiNullFieldException("entityIdKey"),
eventPattern = eventPattern,
metricName = metricName ?: throw PulumiNullFieldException("metricName"),
unitLabel = unitLabel,
valueKey = valueKey ?: throw PulumiNullFieldException("valueKey"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy