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

com.pulumi.awsnative.ecs.kotlin.inputs.ClusterConfigurationArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.ecs.inputs.ClusterConfigurationArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The execute command configuration for the cluster.
 * @property executeCommandConfiguration The details of the execute command configuration.
 * @property managedStorageConfiguration The details of the managed storage configuration.
 */
public data class ClusterConfigurationArgs(
    public val executeCommandConfiguration: Output? = null,
    public val managedStorageConfiguration: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ecs.inputs.ClusterConfigurationArgs =
        com.pulumi.awsnative.ecs.inputs.ClusterConfigurationArgs.builder()
            .executeCommandConfiguration(
                executeCommandConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .managedStorageConfiguration(
                managedStorageConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ClusterConfigurationArgs].
 */
@PulumiTagMarker
public class ClusterConfigurationArgsBuilder internal constructor() {
    private var executeCommandConfiguration: Output? = null

    private var managedStorageConfiguration: Output? = null

    /**
     * @param value The details of the execute command configuration.
     */
    @JvmName("ouiqpllglapxuocc")
    public suspend fun executeCommandConfiguration(`value`: Output) {
        this.executeCommandConfiguration = value
    }

    /**
     * @param value The details of the managed storage configuration.
     */
    @JvmName("bfbcgpgimtotrxrd")
    public suspend fun managedStorageConfiguration(`value`: Output) {
        this.managedStorageConfiguration = value
    }

    /**
     * @param value The details of the execute command configuration.
     */
    @JvmName("mqanuahhumlamtlc")
    public suspend fun executeCommandConfiguration(`value`: ClusterExecuteCommandConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.executeCommandConfiguration = mapped
    }

    /**
     * @param argument The details of the execute command configuration.
     */
    @JvmName("lkympoxxvbgwapgp")
    public suspend fun executeCommandConfiguration(argument: suspend ClusterExecuteCommandConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterExecuteCommandConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.executeCommandConfiguration = mapped
    }

    /**
     * @param value The details of the managed storage configuration.
     */
    @JvmName("svjfbmestecuwdwl")
    public suspend fun managedStorageConfiguration(`value`: ClusterManagedStorageConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedStorageConfiguration = mapped
    }

    /**
     * @param argument The details of the managed storage configuration.
     */
    @JvmName("uipqjqvglgtherjx")
    public suspend fun managedStorageConfiguration(argument: suspend ClusterManagedStorageConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterManagedStorageConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.managedStorageConfiguration = mapped
    }

    internal fun build(): ClusterConfigurationArgs = ClusterConfigurationArgs(
        executeCommandConfiguration = executeCommandConfiguration,
        managedStorageConfiguration = managedStorageConfiguration,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy