com.pulumi.aws.computeoptimizer.kotlin.inputs.RecommendationPreferencesUtilizationPreferenceMetricParametersArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.computeoptimizer.kotlin.inputs
import com.pulumi.aws.computeoptimizer.inputs.RecommendationPreferencesUtilizationPreferenceMetricParametersArgs.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 headroom The headroom value in percentage used for the specified metric parameter. Valid values: `PERCENT_30`, `PERCENT_20`, `PERCENT_10`, `PERCENT_0`.
* @property threshold The threshold value used for the specified metric parameter. You can only specify the threshold value for CPU utilization. Valid values: `P90`, `P95`, `P99_5`.
*/
public data class RecommendationPreferencesUtilizationPreferenceMetricParametersArgs(
public val headroom: Output,
public val threshold: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.computeoptimizer.inputs.RecommendationPreferencesUtilizationPreferenceMetricParametersArgs =
com.pulumi.aws.computeoptimizer.inputs.RecommendationPreferencesUtilizationPreferenceMetricParametersArgs.builder()
.headroom(headroom.applyValue({ args0 -> args0 }))
.threshold(threshold?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RecommendationPreferencesUtilizationPreferenceMetricParametersArgs].
*/
@PulumiTagMarker
public class RecommendationPreferencesUtilizationPreferenceMetricParametersArgsBuilder internal constructor() {
private var headroom: Output? = null
private var threshold: Output? = null
/**
* @param value The headroom value in percentage used for the specified metric parameter. Valid values: `PERCENT_30`, `PERCENT_20`, `PERCENT_10`, `PERCENT_0`.
*/
@JvmName("hfpubugscaphkots")
public suspend fun headroom(`value`: Output) {
this.headroom = value
}
/**
* @param value The threshold value used for the specified metric parameter. You can only specify the threshold value for CPU utilization. Valid values: `P90`, `P95`, `P99_5`.
*/
@JvmName("bohvykqlseqchkkf")
public suspend fun threshold(`value`: Output) {
this.threshold = value
}
/**
* @param value The headroom value in percentage used for the specified metric parameter. Valid values: `PERCENT_30`, `PERCENT_20`, `PERCENT_10`, `PERCENT_0`.
*/
@JvmName("vyuxcukgjirnosqo")
public suspend fun headroom(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.headroom = mapped
}
/**
* @param value The threshold value used for the specified metric parameter. You can only specify the threshold value for CPU utilization. Valid values: `P90`, `P95`, `P99_5`.
*/
@JvmName("fodkaaohabhofwxs")
public suspend fun threshold(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.threshold = mapped
}
internal fun build(): RecommendationPreferencesUtilizationPreferenceMetricParametersArgs =
RecommendationPreferencesUtilizationPreferenceMetricParametersArgs(
headroom = headroom ?: throw PulumiNullFieldException("headroom"),
threshold = threshold,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy