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

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

package com.pulumi.awsnative.lightsail.kotlin.inputs

import com.pulumi.awsnative.lightsail.inputs.ContainerServiceDeploymentArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 * Describes a container deployment configuration of an Amazon Lightsail container service.
 * @property containers An object that describes the configuration for the containers of the deployment.
 * @property publicEndpoint An object that describes the endpoint of the deployment.
 */
public data class ContainerServiceDeploymentArgs(
    public val containers: Output>? = null,
    public val publicEndpoint: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lightsail.inputs.ContainerServiceDeploymentArgs =
        com.pulumi.awsnative.lightsail.inputs.ContainerServiceDeploymentArgs.builder()
            .containers(
                containers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .publicEndpoint(
                publicEndpoint?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ContainerServiceDeploymentArgs].
 */
@PulumiTagMarker
public class ContainerServiceDeploymentArgsBuilder internal constructor() {
    private var containers: Output>? = null

    private var publicEndpoint: Output? = null

    /**
     * @param value An object that describes the configuration for the containers of the deployment.
     */
    @JvmName("ujdysbjjqcsvlcqe")
    public suspend fun containers(`value`: Output>) {
        this.containers = value
    }

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

    /**
     * @param values An object that describes the configuration for the containers of the deployment.
     */
    @JvmName("chlpmvnspsgmhlhi")
    public suspend fun containers(values: List>) {
        this.containers = Output.all(values)
    }

    /**
     * @param value An object that describes the endpoint of the deployment.
     */
    @JvmName("fxrguxcuavxhbpri")
    public suspend fun publicEndpoint(`value`: Output) {
        this.publicEndpoint = value
    }

    /**
     * @param value An object that describes the configuration for the containers of the deployment.
     */
    @JvmName("hvxxumygfrhvngwe")
    public suspend fun containers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containers = mapped
    }

    /**
     * @param argument An object that describes the configuration for the containers of the deployment.
     */
    @JvmName("axttunaxwludjoab")
    public suspend fun containers(argument: List Unit>) {
        val toBeMapped = argument.toList().map { ContainerArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.containers = mapped
    }

    /**
     * @param argument An object that describes the configuration for the containers of the deployment.
     */
    @JvmName("kjmcnjdnjamprbxi")
    public suspend fun containers(vararg argument: suspend ContainerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { ContainerArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.containers = mapped
    }

    /**
     * @param argument An object that describes the configuration for the containers of the deployment.
     */
    @JvmName("bhedllyobxxoacqv")
    public suspend fun containers(argument: suspend ContainerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ContainerArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.containers = mapped
    }

    /**
     * @param values An object that describes the configuration for the containers of the deployment.
     */
    @JvmName("wffupcjaxvegioth")
    public suspend fun containers(vararg values: ContainerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.containers = mapped
    }

    /**
     * @param value An object that describes the endpoint of the deployment.
     */
    @JvmName("rucmcruhhvcvchym")
    public suspend fun publicEndpoint(`value`: ContainerPublicEndpointArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicEndpoint = mapped
    }

    /**
     * @param argument An object that describes the endpoint of the deployment.
     */
    @JvmName("tvbcjenuvpopapqk")
    public suspend fun publicEndpoint(argument: suspend ContainerPublicEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = ContainerPublicEndpointArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.publicEndpoint = mapped
    }

    internal fun build(): ContainerServiceDeploymentArgs = ContainerServiceDeploymentArgs(
        containers = containers,
        publicEndpoint = publicEndpoint,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy