
com.pulumi.awsnative.autoscaling.kotlin.outputs.ScalingPolicyMetricStat.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.autoscaling.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property metric The CloudWatch metric to return, including the metric name, namespace, and dimensions. To get the exact metric name, namespace, and dimensions, inspect the [Metric](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html) object that is returned by a call to [ListMetrics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html) .
* @property stat The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in [Statistics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic) in the *Amazon CloudWatch User Guide* .
* The most commonly used metrics for predictive scaling are `Average` and `Sum` .
* @property unit The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the [MetricDatum](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html) data type in the *Amazon CloudWatch API Reference* .
*/
public data class ScalingPolicyMetricStat(
public val metric: ScalingPolicyMetric,
public val stat: String,
public val unit: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.autoscaling.outputs.ScalingPolicyMetricStat): ScalingPolicyMetricStat = ScalingPolicyMetricStat(
metric = javaType.metric().let({ args0 ->
com.pulumi.awsnative.autoscaling.kotlin.outputs.ScalingPolicyMetric.Companion.toKotlin(args0)
}),
stat = javaType.stat(),
unit = javaType.unit().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy