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

com.pulumi.gcp.apigee.kotlin.EnvGroupAttachmentArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.gcp.apigee.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.apigee.EnvGroupAttachmentArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * An `Environment Group attachment` in Apigee.
 * To get more information about EnvgroupAttachment, see:
 * * [API documentation](https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.envgroups.attachments/create)
 * * How-to Guides
 *     * [Creating an environment](https://cloud.google.com/apigee/docs/api-platform/get-started/create-environment)
 * ## Example Usage
 * ## Import
 * EnvgroupAttachment can be imported using any of these accepted formats:
 * * `{{envgroup_id}}/attachments/{{name}}`
 * * `{{envgroup_id}}/{{name}}`
 * When using the `pulumi import` command, EnvgroupAttachment can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:apigee/envGroupAttachment:EnvGroupAttachment default {{envgroup_id}}/attachments/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:apigee/envGroupAttachment:EnvGroupAttachment default {{envgroup_id}}/{{name}}
 * ```
 * @property envgroupId The Apigee environment group associated with the Apigee environment,
 * in the format `organizations/{{org_name}}/envgroups/{{envgroup_name}}`.
 * - - -
 * @property environment The resource ID of the environment.
 */
public data class EnvGroupAttachmentArgs(
    public val envgroupId: Output? = null,
    public val environment: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.apigee.EnvGroupAttachmentArgs =
        com.pulumi.gcp.apigee.EnvGroupAttachmentArgs.builder()
            .envgroupId(envgroupId?.applyValue({ args0 -> args0 }))
            .environment(environment?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EnvGroupAttachmentArgs].
 */
@PulumiTagMarker
public class EnvGroupAttachmentArgsBuilder internal constructor() {
    private var envgroupId: Output? = null

    private var environment: Output? = null

    /**
     * @param value The Apigee environment group associated with the Apigee environment,
     * in the format `organizations/{{org_name}}/envgroups/{{envgroup_name}}`.
     * - - -
     */
    @JvmName("qdmigexqxvohfhqd")
    public suspend fun envgroupId(`value`: Output) {
        this.envgroupId = value
    }

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

    /**
     * @param value The Apigee environment group associated with the Apigee environment,
     * in the format `organizations/{{org_name}}/envgroups/{{envgroup_name}}`.
     * - - -
     */
    @JvmName("ckrgmprpkbcsewgp")
    public suspend fun envgroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.envgroupId = mapped
    }

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

    internal fun build(): EnvGroupAttachmentArgs = EnvGroupAttachmentArgs(
        envgroupId = envgroupId,
        environment = environment,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy