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

com.pulumi.gcp.composer.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: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.composer.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.composer.EnvironmentArgs.builder
import com.pulumi.gcp.composer.kotlin.inputs.EnvironmentConfigArgs
import com.pulumi.gcp.composer.kotlin.inputs.EnvironmentConfigArgsBuilder
import com.pulumi.gcp.composer.kotlin.inputs.EnvironmentStorageConfigArgs
import com.pulumi.gcp.composer.kotlin.inputs.EnvironmentStorageConfigArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * ## Import
 * Environment can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{region}}/environments/{{name}}`
 * * `{{project}}/{{region}}/{{name}}`
 * * `{{name}}`
 * When using the `pulumi import` command, Environment can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:composer/environment:Environment default projects/{{project}}/locations/{{region}}/environments/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:composer/environment:Environment default {{project}}/{{region}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:composer/environment:Environment default {{name}}
 * ```
 * @property config Configuration parameters for this environment.
 * @property labels User-defined labels for this environment. The labels map can contain no more than 64 entries. Entries of the labels map
 * are UTF8 strings that comply with the following restrictions: Label keys must be between 1 and 63 characters long and
 * must conform to the following regular expression: a-z?. Label values must be between 0 and 63 characters long and must
 * conform to the regular expression (a-z?)?. No more than 64 labels can be associated with a given environment. Both keys
 * and values must be <= 128 bytes in size. **Note**: This field is non-authoritative, and will only manage the labels
 * present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the
 * resource.
 * @property name Name of the environment.
 * @property project The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
 * @property region The location or Compute Engine region for the environment.
 * @property storageConfig Configuration options for storage used by Composer environment.
 */
public data class EnvironmentArgs(
    public val config: Output? = null,
    public val labels: Output>? = null,
    public val name: Output? = null,
    public val project: Output? = null,
    public val region: Output? = null,
    public val storageConfig: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.composer.EnvironmentArgs =
        com.pulumi.gcp.composer.EnvironmentArgs.builder()
            .config(config?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .name(name?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .region(region?.applyValue({ args0 -> args0 }))
            .storageConfig(storageConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var labels: Output>? = null

    private var name: Output? = null

    private var project: Output? = null

    private var region: Output? = null

    private var storageConfig: Output? = null

    /**
     * @param value Configuration parameters for this environment.
     */
    @JvmName("vlrkwombufipxuxe")
    public suspend fun config(`value`: Output) {
        this.config = value
    }

    /**
     * @param value User-defined labels for this environment. The labels map can contain no more than 64 entries. Entries of the labels map
     * are UTF8 strings that comply with the following restrictions: Label keys must be between 1 and 63 characters long and
     * must conform to the following regular expression: a-z?. Label values must be between 0 and 63 characters long and must
     * conform to the regular expression (a-z?)?. No more than 64 labels can be associated with a given environment. Both keys
     * and values must be <= 128 bytes in size. **Note**: This field is non-authoritative, and will only manage the labels
     * present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the
     * resource.
     */
    @JvmName("apqcqjvewkryqvxv")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

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

    /**
     * @param value The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
     */
    @JvmName("lhehqaejjkexxujl")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value The location or Compute Engine region for the environment.
     */
    @JvmName("fqlhhkwcivyolunh")
    public suspend fun region(`value`: Output) {
        this.region = value
    }

    /**
     * @param value Configuration options for storage used by Composer environment.
     */
    @JvmName("wrearyijvrculqpr")
    public suspend fun storageConfig(`value`: Output) {
        this.storageConfig = value
    }

    /**
     * @param value Configuration parameters for this environment.
     */
    @JvmName("xdccomwpjwaiecrp")
    public suspend fun config(`value`: EnvironmentConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.config = mapped
    }

    /**
     * @param argument Configuration parameters for this environment.
     */
    @JvmName("vlxvurevgoogxidt")
    public suspend fun config(argument: suspend EnvironmentConfigArgsBuilder.() -> Unit) {
        val toBeMapped = EnvironmentConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.config = mapped
    }

    /**
     * @param value User-defined labels for this environment. The labels map can contain no more than 64 entries. Entries of the labels map
     * are UTF8 strings that comply with the following restrictions: Label keys must be between 1 and 63 characters long and
     * must conform to the following regular expression: a-z?. Label values must be between 0 and 63 characters long and must
     * conform to the regular expression (a-z?)?. No more than 64 labels can be associated with a given environment. Both keys
     * and values must be <= 128 bytes in size. **Note**: This field is non-authoritative, and will only manage the labels
     * present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the
     * resource.
     */
    @JvmName("ghpustgjgkqsgktl")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values User-defined labels for this environment. The labels map can contain no more than 64 entries. Entries of the labels map
     * are UTF8 strings that comply with the following restrictions: Label keys must be between 1 and 63 characters long and
     * must conform to the following regular expression: a-z?. Label values must be between 0 and 63 characters long and must
     * conform to the regular expression (a-z?)?. No more than 64 labels can be associated with a given environment. Both keys
     * and values must be <= 128 bytes in size. **Note**: This field is non-authoritative, and will only manage the labels
     * present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the
     * resource.
     */
    @JvmName("rdtlvvvrnlxclxwc")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value Name of the environment.
     */
    @JvmName("rnlwoqyoopuexyxa")
    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 project in which the resource belongs. If it is not provided, the provider project is used.
     */
    @JvmName("gqafnuoiajytxjcu")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value The location or Compute Engine region for the environment.
     */
    @JvmName("blocborntxbjsdrr")
    public suspend fun region(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.region = mapped
    }

    /**
     * @param value Configuration options for storage used by Composer environment.
     */
    @JvmName("txltefuwsqsbmchf")
    public suspend fun storageConfig(`value`: EnvironmentStorageConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageConfig = mapped
    }

    /**
     * @param argument Configuration options for storage used by Composer environment.
     */
    @JvmName("sjjidpptheyjulvn")
    public suspend fun storageConfig(argument: suspend EnvironmentStorageConfigArgsBuilder.() -> Unit) {
        val toBeMapped = EnvironmentStorageConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.storageConfig = mapped
    }

    internal fun build(): EnvironmentArgs = EnvironmentArgs(
        config = config,
        labels = labels,
        name = name,
        project = project,
        region = region,
        storageConfig = storageConfig,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy