com.pulumi.gcp.apigee.kotlin.SharedflowArgs.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.SharedflowArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* You can combine policies and resources into a shared flow that you can consume from multiple API proxies, and even from other shared flows. Although it's like a proxy, a shared flow has no endpoint. It can be used only from an API proxy or shared flow that's in the same organization as the shared flow itself.
* To get more information about SharedFlow, see:
* * [API documentation](https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.sharedflows)
* * How-to Guides
* * [Sharedflows](https://cloud.google.com/apigee/docs/resources)
* ## Import
* SharedFlow can be imported using any of these accepted formats:
* * `{{org_id}}/sharedflows/{{name}}`
* * `{{org_id}}/{{name}}`
* When using the `pulumi import` command, SharedFlow can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:apigee/sharedflow:Sharedflow default {{org_id}}/sharedflows/{{name}}
* ```
* ```sh
* $ pulumi import gcp:apigee/sharedflow:Sharedflow default {{org_id}}/{{name}}
* ```
* @property configBundle Path to the config zip bundle.
* - - -
* @property detectMd5hash
* @property name The ID of the shared flow.
* @property orgId The Apigee Organization name associated with the Apigee instance.
*/
public data class SharedflowArgs(
public val configBundle: Output? = null,
public val detectMd5hash: Output? = null,
public val name: Output? = null,
public val orgId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.apigee.SharedflowArgs =
com.pulumi.gcp.apigee.SharedflowArgs.builder()
.configBundle(configBundle?.applyValue({ args0 -> args0 }))
.detectMd5hash(detectMd5hash?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.orgId(orgId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SharedflowArgs].
*/
@PulumiTagMarker
public class SharedflowArgsBuilder internal constructor() {
private var configBundle: Output? = null
private var detectMd5hash: Output? = null
private var name: Output? = null
private var orgId: Output? = null
/**
* @param value Path to the config zip bundle.
* - - -
*/
@JvmName("alrljthlgpuqmdgk")
public suspend fun configBundle(`value`: Output) {
this.configBundle = value
}
/**
* @param value
*/
@JvmName("ywummvlugqgslhha")
public suspend fun detectMd5hash(`value`: Output) {
this.detectMd5hash = value
}
/**
* @param value The ID of the shared flow.
*/
@JvmName("ikvtytgkqdvhsaan")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The Apigee Organization name associated with the Apigee instance.
*/
@JvmName("medkajruextswyjd")
public suspend fun orgId(`value`: Output) {
this.orgId = value
}
/**
* @param value Path to the config zip bundle.
* - - -
*/
@JvmName("ddcnflvwxqoeqokf")
public suspend fun configBundle(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.configBundle = mapped
}
/**
* @param value
*/
@JvmName("aaqqjlngitqwpcdb")
public suspend fun detectMd5hash(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.detectMd5hash = mapped
}
/**
* @param value The ID of the shared flow.
*/
@JvmName("upccnqtvbelwoear")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The Apigee Organization name associated with the Apigee instance.
*/
@JvmName("julbocvxlloydnwu")
public suspend fun orgId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.orgId = mapped
}
internal fun build(): SharedflowArgs = SharedflowArgs(
configBundle = configBundle,
detectMd5hash = detectMd5hash,
name = name,
orgId = orgId,
)
}