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

com.pulumi.gcp.apigee.kotlin.InstanceAttachmentArgs.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.10.0.0
Show newest version
@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.InstanceAttachmentArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

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

/**
 * Builder for [InstanceAttachmentArgs].
 */
@PulumiTagMarker
public class InstanceAttachmentArgsBuilder internal constructor() {
    private var environment: Output? = null

    private var instanceId: Output? = null

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

    /**
     * @param value The Apigee instance associated with the Apigee environment,
     * in the format `organizations/{{org_name}}/instances/{{instance_name}}`.
     * - - -
     */
    @JvmName("tjbsksieblsmlucw")
    public suspend fun instanceId(`value`: Output) {
        this.instanceId = value
    }

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

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

    internal fun build(): InstanceAttachmentArgs = InstanceAttachmentArgs(
        environment = environment,
        instanceId = instanceId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy