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

com.pulumi.awsnative.ecs.kotlin.inputs.ClusterSettingsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ecs.kotlin.inputs

import com.pulumi.awsnative.ecs.inputs.ClusterSettingsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The settings to use when creating a cluster. This parameter is used to turn on CloudWatch Container Insights for a cluster.
 * @property name The name of the cluster setting. The value is ``containerInsights`` .
 * @property value The value to set for the cluster setting. The supported values are ``enabled`` and ``disabled``.
 *  If you set ``name`` to ``containerInsights`` and ``value`` to ``enabled``, CloudWatch Container Insights will be on for the cluster, otherwise it will be off unless the ``containerInsights`` account setting is turned on. If a cluster value is specified, it will override the ``containerInsights`` value set with [PutAccountSetting](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSetting.html) or [PutAccountSettingDefault](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSettingDefault.html).
 */
public data class ClusterSettingsArgs(
    public val name: Output? = null,
    public val `value`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ecs.inputs.ClusterSettingsArgs =
        com.pulumi.awsnative.ecs.inputs.ClusterSettingsArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterSettingsArgs].
 */
@PulumiTagMarker
public class ClusterSettingsArgsBuilder internal constructor() {
    private var name: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The name of the cluster setting. The value is ``containerInsights`` .
     */
    @JvmName("oceqobiwqswwtiga")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The value to set for the cluster setting. The supported values are ``enabled`` and ``disabled``.
     *  If you set ``name`` to ``containerInsights`` and ``value`` to ``enabled``, CloudWatch Container Insights will be on for the cluster, otherwise it will be off unless the ``containerInsights`` account setting is turned on. If a cluster value is specified, it will override the ``containerInsights`` value set with [PutAccountSetting](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSetting.html) or [PutAccountSettingDefault](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSettingDefault.html).
     */
    @JvmName("ethvqbwnanvunagg")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The name of the cluster setting. The value is ``containerInsights`` .
     */
    @JvmName("hdongyycdnwomxdl")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The value to set for the cluster setting. The supported values are ``enabled`` and ``disabled``.
     *  If you set ``name`` to ``containerInsights`` and ``value`` to ``enabled``, CloudWatch Container Insights will be on for the cluster, otherwise it will be off unless the ``containerInsights`` account setting is turned on. If a cluster value is specified, it will override the ``containerInsights`` value set with [PutAccountSetting](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSetting.html) or [PutAccountSettingDefault](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutAccountSettingDefault.html).
     */
    @JvmName("stiaidsfgbsyevfl")
    public suspend fun `value`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): ClusterSettingsArgs = ClusterSettingsArgs(
        name = name,
        `value` = `value`,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy