com.pulumi.gcp.apigee.kotlin.InstanceAttachmentArgs.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.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("vfgtymhjwhhaxnwy")
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("rfkgrmrgtklppxfv")
public suspend fun instanceId(`value`: Output) {
this.instanceId = value
}
/**
* @param value The resource ID of the environment.
*/
@JvmName("gsksqehqytaumxqu")
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("rqyysxuclysqnibd")
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,
)
}