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

com.pulumi.gcp.container.kotlin.inputs.AwsNodePoolConfigAutoscalingMetricsCollectionArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@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>) {
        this.metrics = Output.all(values)
    }

    /**
     * @param value The frequency at which EC2 Auto Scaling sends aggregated data to AWS CloudWatch. The only valid value is "1Minute".
     */
    @JvmName("shqftvqjqhtuaidj")
    public suspend fun granularity(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.granularity = mapped
    }

    /**
     * @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("kaewkkypaccvulyi")
    public suspend fun metrics(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metrics = mapped
    }

    /**
     * @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("wtfkwevxvsknynej")
    public suspend fun metrics(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.metrics = mapped
    }

    internal fun build(): AwsNodePoolConfigAutoscalingMetricsCollectionArgs =
        AwsNodePoolConfigAutoscalingMetricsCollectionArgs(
            granularity = granularity ?: throw PulumiNullFieldException("granularity"),
            metrics = metrics,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy