All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.autoscaling.kotlin.outputs.ScalingPolicyTargetTrackingMetricStat.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.autoscaling.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property metric The metric to use.
 * @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 metric for scaling is `Average` .
 * @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 ScalingPolicyTargetTrackingMetricStat(
    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.ScalingPolicyTargetTrackingMetricStat): ScalingPolicyTargetTrackingMetricStat = ScalingPolicyTargetTrackingMetricStat(
            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