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

com.pulumi.awsnative.lightsail.kotlin.ContainerArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.lightsail.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.lightsail.ContainerArgs.builder
import com.pulumi.awsnative.lightsail.kotlin.inputs.ContainerPrivateRegistryAccessArgs
import com.pulumi.awsnative.lightsail.kotlin.inputs.ContainerPrivateRegistryAccessArgsBuilder
import com.pulumi.awsnative.lightsail.kotlin.inputs.ContainerPublicDomainNameArgs
import com.pulumi.awsnative.lightsail.kotlin.inputs.ContainerPublicDomainNameArgsBuilder
import com.pulumi.awsnative.lightsail.kotlin.inputs.ContainerServiceDeploymentArgs
import com.pulumi.awsnative.lightsail.kotlin.inputs.ContainerServiceDeploymentArgsBuilder
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Lightsail::Container
 * @property containerServiceDeployment Describes a container deployment configuration of an Amazon Lightsail container service.
 * @property isDisabled A Boolean value to indicate whether the container service is disabled.
 * @property power The power specification for the container service.
 * @property privateRegistryAccess A Boolean value to indicate whether the container service has access to private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.
 * @property publicDomainNames The public domain names to use with the container service, such as example.com and www.example.com.
 * @property scale The scale specification for the container service.
 * @property serviceName The name for the container service.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class ContainerArgs(
    public val containerServiceDeployment: Output? = null,
    public val isDisabled: Output? = null,
    public val power: Output? = null,
    public val privateRegistryAccess: Output? = null,
    public val publicDomainNames: Output>? = null,
    public val scale: Output? = null,
    public val serviceName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lightsail.ContainerArgs =
        com.pulumi.awsnative.lightsail.ContainerArgs.builder()
            .containerServiceDeployment(
                containerServiceDeployment?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .isDisabled(isDisabled?.applyValue({ args0 -> args0 }))
            .power(power?.applyValue({ args0 -> args0 }))
            .privateRegistryAccess(
                privateRegistryAccess?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .publicDomainNames(
                publicDomainNames?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .scale(scale?.applyValue({ args0 -> args0 }))
            .serviceName(serviceName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ContainerArgs].
 */
@PulumiTagMarker
public class ContainerArgsBuilder internal constructor() {
    private var containerServiceDeployment: Output? = null

    private var isDisabled: Output? = null

    private var power: Output? = null

    private var privateRegistryAccess: Output? = null

    private var publicDomainNames: Output>? = null

    private var scale: Output? = null

    private var serviceName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Describes a container deployment configuration of an Amazon Lightsail container service.
     */
    @JvmName("cmlbqiirmmhkrmip")
    public suspend fun containerServiceDeployment(`value`: Output) {
        this.containerServiceDeployment = value
    }

    /**
     * @param value A Boolean value to indicate whether the container service is disabled.
     */
    @JvmName("ofrdqaxqssdmapyw")
    public suspend fun isDisabled(`value`: Output) {
        this.isDisabled = value
    }

    /**
     * @param value The power specification for the container service.
     */
    @JvmName("jgqyrcrmtdruidxd")
    public suspend fun power(`value`: Output) {
        this.power = value
    }

    /**
     * @param value A Boolean value to indicate whether the container service has access to private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.
     */
    @JvmName("mxkgkasjbpwvcbiu")
    public suspend fun privateRegistryAccess(`value`: Output) {
        this.privateRegistryAccess = value
    }

    /**
     * @param value The public domain names to use with the container service, such as example.com and www.example.com.
     */
    @JvmName("vqsdparwtxmipodw")
    public suspend fun publicDomainNames(`value`: Output>) {
        this.publicDomainNames = value
    }

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

    /**
     * @param values The public domain names to use with the container service, such as example.com and www.example.com.
     */
    @JvmName("jasjjwhuagqivcvg")
    public suspend fun publicDomainNames(values: List>) {
        this.publicDomainNames = Output.all(values)
    }

    /**
     * @param value The scale specification for the container service.
     */
    @JvmName("hlolvnguqprfrjxu")
    public suspend fun scale(`value`: Output) {
        this.scale = value
    }

    /**
     * @param value The name for the container service.
     */
    @JvmName("uiddyrivxxeabeuw")
    public suspend fun serviceName(`value`: Output) {
        this.serviceName = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("tqvvrtvnwhqaedqp")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("vnyhomsrqmcedlja")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Describes a container deployment configuration of an Amazon Lightsail container service.
     */
    @JvmName("tedplhurjfuusnrv")
    public suspend fun containerServiceDeployment(`value`: ContainerServiceDeploymentArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerServiceDeployment = mapped
    }

    /**
     * @param argument Describes a container deployment configuration of an Amazon Lightsail container service.
     */
    @JvmName("bcaevenyxbmeossc")
    public suspend fun containerServiceDeployment(argument: suspend ContainerServiceDeploymentArgsBuilder.() -> Unit) {
        val toBeMapped = ContainerServiceDeploymentArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.containerServiceDeployment = mapped
    }

    /**
     * @param value A Boolean value to indicate whether the container service is disabled.
     */
    @JvmName("ggjkxguthruleqlj")
    public suspend fun isDisabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isDisabled = mapped
    }

    /**
     * @param value The power specification for the container service.
     */
    @JvmName("jyrhtoiuoroffued")
    public suspend fun power(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.power = mapped
    }

    /**
     * @param value A Boolean value to indicate whether the container service has access to private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.
     */
    @JvmName("wxayvkqebmsvvdeh")
    public suspend fun privateRegistryAccess(`value`: ContainerPrivateRegistryAccessArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateRegistryAccess = mapped
    }

    /**
     * @param argument A Boolean value to indicate whether the container service has access to private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.
     */
    @JvmName("iyqqotawiehuchgk")
    public suspend fun privateRegistryAccess(argument: suspend ContainerPrivateRegistryAccessArgsBuilder.() -> Unit) {
        val toBeMapped = ContainerPrivateRegistryAccessArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.privateRegistryAccess = mapped
    }

    /**
     * @param value The public domain names to use with the container service, such as example.com and www.example.com.
     */
    @JvmName("ryfkuticbigeqrkf")
    public suspend fun publicDomainNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicDomainNames = mapped
    }

    /**
     * @param argument The public domain names to use with the container service, such as example.com and www.example.com.
     */
    @JvmName("jjkbyuoonqpdxptg")
    public suspend fun publicDomainNames(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ContainerPublicDomainNameArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.publicDomainNames = mapped
    }

    /**
     * @param argument The public domain names to use with the container service, such as example.com and www.example.com.
     */
    @JvmName("ainwmttlptqktyid")
    public suspend fun publicDomainNames(vararg argument: suspend ContainerPublicDomainNameArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ContainerPublicDomainNameArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.publicDomainNames = mapped
    }

    /**
     * @param argument The public domain names to use with the container service, such as example.com and www.example.com.
     */
    @JvmName("twqlkitpqsufbhmn")
    public suspend fun publicDomainNames(argument: suspend ContainerPublicDomainNameArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ContainerPublicDomainNameArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.publicDomainNames = mapped
    }

    /**
     * @param values The public domain names to use with the container service, such as example.com and www.example.com.
     */
    @JvmName("bkewfgliryohmwvo")
    public suspend fun publicDomainNames(vararg values: ContainerPublicDomainNameArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicDomainNames = mapped
    }

    /**
     * @param value The scale specification for the container service.
     */
    @JvmName("fkurjdbkmcgferoq")
    public suspend fun scale(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scale = mapped
    }

    /**
     * @param value The name for the container service.
     */
    @JvmName("jcdnsrjlodjmbdvk")
    public suspend fun serviceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceName = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("ircqhdjnkapfpare")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("htchlvggplnmhohl")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("birjmvccmdropdvf")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("nxedwuupwctvrrts")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("lpqsldnebuusffft")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ContainerArgs = ContainerArgs(
        containerServiceDeployment = containerServiceDeployment,
        isDisabled = isDisabled,
        power = power,
        privateRegistryAccess = privateRegistryAccess,
        publicDomainNames = publicDomainNames,
        scale = scale,
        serviceName = serviceName,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy