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

com.pulumi.aws.opsworks.kotlin.inputs.EcsClusterLayerCloudwatchConfigurationArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.opsworks.kotlin.inputs

import com.pulumi.aws.opsworks.inputs.EcsClusterLayerCloudwatchConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property enabled
 * @property logStreams
 */
public data class EcsClusterLayerCloudwatchConfigurationArgs(
    public val enabled: Output? = null,
    public val logStreams: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.opsworks.inputs.EcsClusterLayerCloudwatchConfigurationArgs =
        com.pulumi.aws.opsworks.inputs.EcsClusterLayerCloudwatchConfigurationArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .logStreams(
                logStreams?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [EcsClusterLayerCloudwatchConfigurationArgs].
 */
@PulumiTagMarker
public class EcsClusterLayerCloudwatchConfigurationArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var logStreams: Output>? = null

    /**
     * @param value
     */
    @JvmName("nuqwqprrdratksgi")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value
     */
    @JvmName("ljnxjnrpguovfchw")
    public suspend fun logStreams(`value`: Output>) {
        this.logStreams = value
    }

    @JvmName("jvhnvipmjjunywfx")
    public suspend fun logStreams(vararg values: Output) {
        this.logStreams = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("waiqbngdvppfyfnr")
    public suspend fun logStreams(values: List>) {
        this.logStreams = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("hvltgesagqusywko")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value
     */
    @JvmName("yxntrmddwfqcaiqy")
    public suspend fun logStreams(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logStreams = mapped
    }

    /**
     * @param argument
     */
    @JvmName("inogtstflgffbvii")
    public suspend fun logStreams(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EcsClusterLayerCloudwatchConfigurationLogStreamArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.logStreams = mapped
    }

    /**
     * @param argument
     */
    @JvmName("igntfkgacthimksf")
    public suspend fun logStreams(vararg argument: suspend EcsClusterLayerCloudwatchConfigurationLogStreamArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EcsClusterLayerCloudwatchConfigurationLogStreamArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.logStreams = mapped
    }

    /**
     * @param argument
     */
    @JvmName("uouappvqnknhmyiy")
    public suspend fun logStreams(argument: suspend EcsClusterLayerCloudwatchConfigurationLogStreamArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                EcsClusterLayerCloudwatchConfigurationLogStreamArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.logStreams = mapped
    }

    /**
     * @param values
     */
    @JvmName("ttueuxtgkvetoawk")
    public suspend fun logStreams(vararg values: EcsClusterLayerCloudwatchConfigurationLogStreamArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.logStreams = mapped
    }

    internal fun build(): EcsClusterLayerCloudwatchConfigurationArgs =
        EcsClusterLayerCloudwatchConfigurationArgs(
            enabled = enabled,
            logStreams = logStreams,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy