com.pulumi.aws.autoscaling.kotlin.inputs.PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs.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.autoscaling.kotlin.inputs
import com.pulumi.aws.autoscaling.inputs.PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs.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.jvm.JvmName
/**
*
* @property metric Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions.
* @property stat Statistic of the metrics to return.
* @property unit Unit of the metrics to return.
*/
public data class
PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs(
public val metric: Output,
public val stat: Output,
public val unit: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.autoscaling.inputs.PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs =
com.pulumi.aws.autoscaling.inputs.PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs.builder()
.metric(metric.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.stat(stat.applyValue({ args0 -> args0 }))
.unit(unit?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs].
*/
@PulumiTagMarker
public class
PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgsBuilder
internal constructor() {
private var metric:
Output? =
null
private var stat: Output? = null
private var unit: Output? = null
/**
* @param value Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions.
*/
@JvmName("lwmiavdefakienkl")
public suspend fun metric(`value`: Output) {
this.metric = value
}
/**
* @param value Statistic of the metrics to return.
*/
@JvmName("itqyxujocgpsirma")
public suspend fun stat(`value`: Output) {
this.stat = value
}
/**
* @param value Unit of the metrics to return.
*/
@JvmName("cayiudaitovlefnk")
public suspend fun unit(`value`: Output) {
this.unit = value
}
/**
* @param value Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions.
*/
@JvmName("ysujctvfnmtgfijh")
public suspend fun metric(`value`: PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.metric = mapped
}
/**
* @param argument Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions.
*/
@JvmName("fdtsmkoqirjrbbgu")
public suspend fun metric(argument: suspend PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgsBuilder.() -> Unit) {
val toBeMapped =
PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.metric = mapped
}
/**
* @param value Statistic of the metrics to return.
*/
@JvmName("yaouatolihhuphaw")
public suspend fun stat(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.stat = mapped
}
/**
* @param value Unit of the metrics to return.
*/
@JvmName("xftfvqrdgytpkfdc")
public suspend fun unit(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.unit = mapped
}
internal fun build(): PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs =
PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs(
metric = metric ?: throw PulumiNullFieldException("metric"),
stat = stat ?: throw PulumiNullFieldException("stat"),
unit = unit,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy