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

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

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

package com.pulumi.awsnative.finspace.kotlin

import com.pulumi.awsnative.finspace.EnvironmentArgs.builder
import com.pulumi.awsnative.finspace.kotlin.enums.EnvironmentFederationMode
import com.pulumi.awsnative.finspace.kotlin.inputs.EnvironmentFederationParametersArgs
import com.pulumi.awsnative.finspace.kotlin.inputs.EnvironmentFederationParametersArgsBuilder
import com.pulumi.awsnative.finspace.kotlin.inputs.EnvironmentSuperuserParametersArgs
import com.pulumi.awsnative.finspace.kotlin.inputs.EnvironmentSuperuserParametersArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
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

/**
 * An example resource schema demonstrating some basic constructs and validation rules.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property dataBundles ARNs of FinSpace Data Bundles to install
 * @property description Description of the Environment
 * @property federationMode Federation mode used with the Environment
 * @property federationParameters Configuration information when authentication mode is FEDERATED.
 * @property kmsKeyId KMS key used to encrypt customer data within FinSpace Environment infrastructure
 * @property name Name of the Environment
 * @property superuserParameters Configuration information for the superuser.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class EnvironmentArgs(
    public val dataBundles: Output>? = null,
    public val description: Output? = null,
    public val federationMode: Output? = null,
    public val federationParameters: Output? = null,
    public val kmsKeyId: Output? = null,
    public val name: Output? = null,
    public val superuserParameters: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.finspace.EnvironmentArgs =
        com.pulumi.awsnative.finspace.EnvironmentArgs.builder()
            .dataBundles(dataBundles?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .federationMode(federationMode?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .federationParameters(
                federationParameters?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .kmsKeyId(kmsKeyId?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .superuserParameters(
                superuserParameters?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var description: Output? = null

    private var federationMode: Output? = null

    private var federationParameters: Output? = null

    private var kmsKeyId: Output? = null

    private var name: Output? = null

    private var superuserParameters: Output? = null

    private var tags: Output>? = null

    /**
     * @param value ARNs of FinSpace Data Bundles to install
     */
    @JvmName("emvshcmqetstsnug")
    public suspend fun dataBundles(`value`: Output>) {
        this.dataBundles = value
    }

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

    /**
     * @param values ARNs of FinSpace Data Bundles to install
     */
    @JvmName("xhoednjaldlcycms")
    public suspend fun dataBundles(values: List>) {
        this.dataBundles = Output.all(values)
    }

    /**
     * @param value Description of the Environment
     */
    @JvmName("lbyuxshkrfbfxony")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Federation mode used with the Environment
     */
    @JvmName("cwwksnwdclljqfyt")
    public suspend fun federationMode(`value`: Output) {
        this.federationMode = value
    }

    /**
     * @param value Configuration information when authentication mode is FEDERATED.
     */
    @JvmName("bwjkhcuwvaykodlw")
    public suspend fun federationParameters(`value`: Output) {
        this.federationParameters = value
    }

    /**
     * @param value KMS key used to encrypt customer data within FinSpace Environment infrastructure
     */
    @JvmName("dmwxpymndtbhhflp")
    public suspend fun kmsKeyId(`value`: Output) {
        this.kmsKeyId = value
    }

    /**
     * @param value Name of the Environment
     */
    @JvmName("liotwfueeqrhkcoy")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Configuration information for the superuser.
     */
    @JvmName("bgytdqhbbuoeuclu")
    public suspend fun superuserParameters(`value`: Output) {
        this.superuserParameters = value
    }

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

    @JvmName("bbpwdlutkuwfekwr")
    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("nwqstoxrrxtgsipe")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value ARNs of FinSpace Data Bundles to install
     */
    @JvmName("kaugoofjkbpkleey")
    public suspend fun dataBundles(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataBundles = mapped
    }

    /**
     * @param values ARNs of FinSpace Data Bundles to install
     */
    @JvmName("rvmollvtcrlxefbg")
    public suspend fun dataBundles(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataBundles = mapped
    }

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

    /**
     * @param value Federation mode used with the Environment
     */
    @JvmName("xsaeodyoevbujcme")
    public suspend fun federationMode(`value`: EnvironmentFederationMode?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.federationMode = mapped
    }

    /**
     * @param value Configuration information when authentication mode is FEDERATED.
     */
    @JvmName("hqhfolwstbayvgao")
    public suspend fun federationParameters(`value`: EnvironmentFederationParametersArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.federationParameters = mapped
    }

    /**
     * @param argument Configuration information when authentication mode is FEDERATED.
     */
    @JvmName("skugeewlweqcjtks")
    public suspend fun federationParameters(argument: suspend EnvironmentFederationParametersArgsBuilder.() -> Unit) {
        val toBeMapped = EnvironmentFederationParametersArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.federationParameters = mapped
    }

    /**
     * @param value KMS key used to encrypt customer data within FinSpace Environment infrastructure
     */
    @JvmName("wpdxtmgdnwytabya")
    public suspend fun kmsKeyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyId = mapped
    }

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

    /**
     * @param value Configuration information for the superuser.
     */
    @JvmName("qjlpfvygjddqhnpa")
    public suspend fun superuserParameters(`value`: EnvironmentSuperuserParametersArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.superuserParameters = mapped
    }

    /**
     * @param argument Configuration information for the superuser.
     */
    @JvmName("pyxotkrnixhdevug")
    public suspend fun superuserParameters(argument: suspend EnvironmentSuperuserParametersArgsBuilder.() -> Unit) {
        val toBeMapped = EnvironmentSuperuserParametersArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.superuserParameters = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("vwxultmoqdolnylq")
    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("gmgiebocprfnqosx")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

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

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

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

    internal fun build(): EnvironmentArgs = EnvironmentArgs(
        dataBundles = dataBundles,
        description = description,
        federationMode = federationMode,
        federationParameters = federationParameters,
        kmsKeyId = kmsKeyId,
        name = name,
        superuserParameters = superuserParameters,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy