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

com.pulumi.awsnative.appconfig.kotlin.EnvironmentArgs.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.appconfig.kotlin

import com.pulumi.awsnative.appconfig.EnvironmentArgs.builder
import com.pulumi.awsnative.appconfig.kotlin.inputs.EnvironmentMonitorArgs
import com.pulumi.awsnative.appconfig.kotlin.inputs.EnvironmentMonitorArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::AppConfig::Environment
 * @property applicationId The application ID.
 * @property description A description of the environment.
 * @property monitors Amazon CloudWatch alarms to monitor during the deployment process.
 * @property name A name for the environment.
 * @property tags Metadata to assign to the environment. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
 */
public data class EnvironmentArgs(
    public val applicationId: Output? = null,
    public val description: Output? = null,
    public val monitors: Output>? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appconfig.EnvironmentArgs =
        com.pulumi.awsnative.appconfig.EnvironmentArgs.builder()
            .applicationId(applicationId?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .monitors(
                monitors?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [EnvironmentArgs].
 */
@PulumiTagMarker
public class EnvironmentArgsBuilder internal constructor() {
    private var applicationId: Output? = null

    private var description: Output? = null

    private var monitors: Output>? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The application ID.
     */
    @JvmName("vltxhxdwhnujinxh")
    public suspend fun applicationId(`value`: Output) {
        this.applicationId = value
    }

    /**
     * @param value A description of the environment.
     */
    @JvmName("ksakihnpwmtdqujk")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Amazon CloudWatch alarms to monitor during the deployment process.
     */
    @JvmName("trkbdttuvyrcwoln")
    public suspend fun monitors(`value`: Output>) {
        this.monitors = value
    }

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

    /**
     * @param values Amazon CloudWatch alarms to monitor during the deployment process.
     */
    @JvmName("lxdhcxqhuownejal")
    public suspend fun monitors(values: List>) {
        this.monitors = Output.all(values)
    }

    /**
     * @param value A name for the environment.
     */
    @JvmName("etmebifumqhordjf")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Metadata to assign to the environment. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
     */
    @JvmName("lrkscskyanmnsomt")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Metadata to assign to the environment. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
     */
    @JvmName("ogkgolkaxtkfaapx")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The application ID.
     */
    @JvmName("mqitdfgscqbaypax")
    public suspend fun applicationId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationId = mapped
    }

    /**
     * @param value A description of the environment.
     */
    @JvmName("nryiyhfmmieikcnt")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Amazon CloudWatch alarms to monitor during the deployment process.
     */
    @JvmName("nvujfccpwwvovwbp")
    public suspend fun monitors(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monitors = mapped
    }

    /**
     * @param argument Amazon CloudWatch alarms to monitor during the deployment process.
     */
    @JvmName("mefpmjpehaovxptn")
    public suspend fun monitors(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EnvironmentMonitorArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.monitors = mapped
    }

    /**
     * @param argument Amazon CloudWatch alarms to monitor during the deployment process.
     */
    @JvmName("ejkwllalrkdopvkg")
    public suspend fun monitors(vararg argument: suspend EnvironmentMonitorArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EnvironmentMonitorArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.monitors = mapped
    }

    /**
     * @param argument Amazon CloudWatch alarms to monitor during the deployment process.
     */
    @JvmName("cxjncpslayvdfept")
    public suspend fun monitors(argument: suspend EnvironmentMonitorArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(EnvironmentMonitorArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.monitors = mapped
    }

    /**
     * @param values Amazon CloudWatch alarms to monitor during the deployment process.
     */
    @JvmName("xioewbtdcyecvyws")
    public suspend fun monitors(vararg values: EnvironmentMonitorArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.monitors = mapped
    }

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

    /**
     * @param value Metadata to assign to the environment. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
     */
    @JvmName("ynoplnbqumdguith")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Metadata to assign to the environment. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
     */
    @JvmName("xsvlgjxepngfjawp")
    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 Metadata to assign to the environment. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
     */
    @JvmName("nvqmguobjayqmpme")
    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 Metadata to assign to the environment. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
     */
    @JvmName("qomaajplmtbsccle")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Metadata to assign to the environment. Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
     */
    @JvmName("ohtuvsqttdcnlqid")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): EnvironmentArgs = EnvironmentArgs(
        applicationId = applicationId,
        description = description,
        monitors = monitors,
        name = name,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy