com.pulumi.gcp.container.kotlin.inputs.AwsNodePoolConfigAutoscalingMetricsCollectionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.container.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.AwsNodePoolConfigAutoscalingMetricsCollectionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property granularity The frequency at which EC2 Auto Scaling sends aggregated data to AWS CloudWatch. The only valid value is "1Minute".
* @property metrics The metrics to enable. For a list of valid metrics, see https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. If you specify granularity and don't specify any metrics, all metrics are enabled.
*/
public data class AwsNodePoolConfigAutoscalingMetricsCollectionArgs(
public val granularity: Output,
public val metrics: Output>? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.AwsNodePoolConfigAutoscalingMetricsCollectionArgs =
com.pulumi.gcp.container.inputs.AwsNodePoolConfigAutoscalingMetricsCollectionArgs.builder()
.granularity(granularity.applyValue({ args0 -> args0 }))
.metrics(metrics?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [AwsNodePoolConfigAutoscalingMetricsCollectionArgs].
*/
@PulumiTagMarker
public class AwsNodePoolConfigAutoscalingMetricsCollectionArgsBuilder internal constructor() {
private var granularity: Output? = null
private var metrics: Output>? = null
/**
* @param value The frequency at which EC2 Auto Scaling sends aggregated data to AWS CloudWatch. The only valid value is "1Minute".
*/
@JvmName("klrangknkuwvsyvg")
public suspend fun granularity(`value`: Output) {
this.granularity = value
}
/**
* @param value The metrics to enable. For a list of valid metrics, see https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. If you specify granularity and don't specify any metrics, all metrics are enabled.
*/
@JvmName("eduqrjtpygriryaa")
public suspend fun metrics(`value`: Output>) {
this.metrics = value
}
@JvmName("vuedswnhwkeclnpu")
public suspend fun metrics(vararg values: Output) {
this.metrics = Output.all(values.asList())
}
/**
* @param values The metrics to enable. For a list of valid metrics, see https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_EnableMetricsCollection.html. If you specify granularity and don't specify any metrics, all metrics are enabled.
*/
@JvmName("dkmpdomelugukfot")
public suspend fun metrics(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy