com.pulumi.awsnative.applicationinsights.kotlin.inputs.ApplicationProcessArgs.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.applicationinsights.kotlin.inputs
import com.pulumi.awsnative.applicationinsights.inputs.ApplicationProcessArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A process to be monitored for the component.
* @property alarmMetrics A list of metrics to monitor for the component.
* @property processName The name of the process to be monitored for the component.
*/
public data class ApplicationProcessArgs(
public val alarmMetrics: Output>,
public val processName: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.applicationinsights.inputs.ApplicationProcessArgs =
com.pulumi.awsnative.applicationinsights.inputs.ApplicationProcessArgs.builder()
.alarmMetrics(
alarmMetrics.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.processName(processName.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ApplicationProcessArgs].
*/
@PulumiTagMarker
public class ApplicationProcessArgsBuilder internal constructor() {
private var alarmMetrics: Output>? = null
private var processName: Output? = null
/**
* @param value A list of metrics to monitor for the component.
*/
@JvmName("gjnayhktxjtgigcm")
public suspend fun alarmMetrics(`value`: Output>) {
this.alarmMetrics = value
}
@JvmName("byqwduxtrdmijpbx")
public suspend fun alarmMetrics(vararg values: Output) {
this.alarmMetrics = Output.all(values.asList())
}
/**
* @param values A list of metrics to monitor for the component.
*/
@JvmName("plskdtesgounqhav")
public suspend fun alarmMetrics(values: List