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

com.pulumi.awsnative.datazone.kotlin.EnvironmentArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.datazone.kotlin

import com.pulumi.awsnative.datazone.EnvironmentArgs.builder
import com.pulumi.awsnative.datazone.kotlin.inputs.EnvironmentParameterArgs
import com.pulumi.awsnative.datazone.kotlin.inputs.EnvironmentParameterArgsBuilder
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

/**
 * Definition of AWS::DataZone::Environment Resource Type
 * @property description The description of the Amazon DataZone environment.
 * @property domainIdentifier The identifier of the Amazon DataZone domain in which the environment would be created.
 * @property environmentProfileIdentifier The ID of the environment profile with which the Amazon DataZone environment would be created.
 * @property glossaryTerms The glossary terms that can be used in the Amazon DataZone environment.
 * @property name The name of the environment.
 * @property projectIdentifier The ID of the Amazon DataZone project in which the environment would be created.
 * @property userParameters The user parameters of the Amazon DataZone environment.
 */
public data class EnvironmentArgs(
    public val description: Output? = null,
    public val domainIdentifier: Output? = null,
    public val environmentProfileIdentifier: Output? = null,
    public val glossaryTerms: Output>? = null,
    public val name: Output? = null,
    public val projectIdentifier: Output? = null,
    public val userParameters: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datazone.EnvironmentArgs =
        com.pulumi.awsnative.datazone.EnvironmentArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .domainIdentifier(domainIdentifier?.applyValue({ args0 -> args0 }))
            .environmentProfileIdentifier(environmentProfileIdentifier?.applyValue({ args0 -> args0 }))
            .glossaryTerms(glossaryTerms?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .projectIdentifier(projectIdentifier?.applyValue({ args0 -> args0 }))
            .userParameters(
                userParameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var domainIdentifier: Output? = null

    private var environmentProfileIdentifier: Output? = null

    private var glossaryTerms: Output>? = null

    private var name: Output? = null

    private var projectIdentifier: Output? = null

    private var userParameters: Output>? = null

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

    /**
     * @param value The identifier of the Amazon DataZone domain in which the environment would be created.
     */
    @JvmName("vphpfawflqhufwfs")
    public suspend fun domainIdentifier(`value`: Output) {
        this.domainIdentifier = value
    }

    /**
     * @param value The ID of the environment profile with which the Amazon DataZone environment would be created.
     */
    @JvmName("uqcasapdqfleeeie")
    public suspend fun environmentProfileIdentifier(`value`: Output) {
        this.environmentProfileIdentifier = value
    }

    /**
     * @param value The glossary terms that can be used in the Amazon DataZone environment.
     */
    @JvmName("pekosqofvkeotdin")
    public suspend fun glossaryTerms(`value`: Output>) {
        this.glossaryTerms = value
    }

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

    /**
     * @param values The glossary terms that can be used in the Amazon DataZone environment.
     */
    @JvmName("wsjdyqlwktlnsplc")
    public suspend fun glossaryTerms(values: List>) {
        this.glossaryTerms = Output.all(values)
    }

    /**
     * @param value The name of the environment.
     */
    @JvmName("rvslgucddiiqclxh")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ID of the Amazon DataZone project in which the environment would be created.
     */
    @JvmName("tihcjnrenaefykwg")
    public suspend fun projectIdentifier(`value`: Output) {
        this.projectIdentifier = value
    }

    /**
     * @param value The user parameters of the Amazon DataZone environment.
     */
    @JvmName("mllhakqdiaynoiyj")
    public suspend fun userParameters(`value`: Output>) {
        this.userParameters = value
    }

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

    /**
     * @param values The user parameters of the Amazon DataZone environment.
     */
    @JvmName("hkcxrnvlsagvuaya")
    public suspend fun userParameters(values: List>) {
        this.userParameters = Output.all(values)
    }

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

    /**
     * @param value The identifier of the Amazon DataZone domain in which the environment would be created.
     */
    @JvmName("qwenfbdeykndrqyl")
    public suspend fun domainIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainIdentifier = mapped
    }

    /**
     * @param value The ID of the environment profile with which the Amazon DataZone environment would be created.
     */
    @JvmName("eigmcygcgkcalwcc")
    public suspend fun environmentProfileIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentProfileIdentifier = mapped
    }

    /**
     * @param value The glossary terms that can be used in the Amazon DataZone environment.
     */
    @JvmName("iyvkcjahxfdqkwkg")
    public suspend fun glossaryTerms(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.glossaryTerms = mapped
    }

    /**
     * @param values The glossary terms that can be used in the Amazon DataZone environment.
     */
    @JvmName("rxqxvyxsybgbcink")
    public suspend fun glossaryTerms(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.glossaryTerms = mapped
    }

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

    /**
     * @param value The ID of the Amazon DataZone project in which the environment would be created.
     */
    @JvmName("ulfhuwhloebopqhr")
    public suspend fun projectIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.projectIdentifier = mapped
    }

    /**
     * @param value The user parameters of the Amazon DataZone environment.
     */
    @JvmName("oweagsltgcopyaob")
    public suspend fun userParameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userParameters = mapped
    }

    /**
     * @param argument The user parameters of the Amazon DataZone environment.
     */
    @JvmName("lourqhgphigatvud")
    public suspend fun userParameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EnvironmentParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.userParameters = mapped
    }

    /**
     * @param argument The user parameters of the Amazon DataZone environment.
     */
    @JvmName("nromqpmewtbqekmm")
    public suspend fun userParameters(vararg argument: suspend EnvironmentParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EnvironmentParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.userParameters = mapped
    }

    /**
     * @param argument The user parameters of the Amazon DataZone environment.
     */
    @JvmName("hvqvmgpivququwcd")
    public suspend fun userParameters(argument: suspend EnvironmentParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(EnvironmentParameterArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.userParameters = mapped
    }

    /**
     * @param values The user parameters of the Amazon DataZone environment.
     */
    @JvmName("pamtoarldpsyvbuy")
    public suspend fun userParameters(vararg values: EnvironmentParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.userParameters = mapped
    }

    internal fun build(): EnvironmentArgs = EnvironmentArgs(
        description = description,
        domainIdentifier = domainIdentifier,
        environmentProfileIdentifier = environmentProfileIdentifier,
        glossaryTerms = glossaryTerms,
        name = name,
        projectIdentifier = projectIdentifier,
        userParameters = userParameters,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy