
com.pulumi.googlenative.apigee.v1.kotlin.Sharedflow.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.apigee.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.googlenative.apigee.v1.kotlin.outputs.GoogleCloudApigeeV1EntityMetadataResponse
import com.pulumi.googlenative.apigee.v1.kotlin.outputs.GoogleCloudApigeeV1EntityMetadataResponse.Companion.toKotlin
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
/**
* Builder for [Sharedflow].
*/
@PulumiTagMarker
public class SharedflowResourceBuilder internal constructor() {
public var name: String? = null
public var args: SharedflowArgs = SharedflowArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend SharedflowArgsBuilder.() -> Unit) {
val builder = SharedflowArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): Sharedflow {
val builtJavaResource = com.pulumi.googlenative.apigee.v1.Sharedflow(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Sharedflow(builtJavaResource)
}
}
/**
* Uploads a ZIP-formatted shared flow configuration bundle to an organization. If the shared flow already exists, this creates a new revision of it. If the shared flow does not exist, this creates it. Once imported, the shared flow revision must be deployed before it can be accessed at runtime. The size limit of a shared flow bundle is 15 MB.
*/
public class Sharedflow internal constructor(
override val javaResource: com.pulumi.googlenative.apigee.v1.Sharedflow,
) : KotlinCustomResource(javaResource, SharedflowMapper) {
/**
* Required. Must be set to either `import` or `validate`.
*/
public val action: Output
get() = javaResource.action().applyValue({ args0 -> args0 })
/**
* The id of the most recently created revision for this shared flow.
*/
public val latestRevisionId: Output
get() = javaResource.latestRevisionId().applyValue({ args0 -> args0 })
/**
* Metadata describing the shared flow.
*/
public val metaData: Output
get() = javaResource.metaData().applyValue({ args0 -> args0.let({ args0 -> toKotlin(args0) }) })
/**
* Required. The name to give the shared flow
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
public val organizationId: Output
get() = javaResource.organizationId().applyValue({ args0 -> args0 })
/**
* A list of revisions of this shared flow.
*/
public val revision: Output>
get() = javaResource.revision().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
}
public object SharedflowMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.googlenative.apigee.v1.Sharedflow::class == javaResource::class
override fun map(javaResource: Resource): Sharedflow = Sharedflow(
javaResource as
com.pulumi.googlenative.apigee.v1.Sharedflow,
)
}
/**
* @see [Sharedflow].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [Sharedflow].
*/
public suspend fun sharedflow(name: String, block: suspend SharedflowResourceBuilder.() -> Unit): Sharedflow {
val builder = SharedflowResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [Sharedflow].
* @param name The _unique_ name of the resulting resource.
*/
public fun sharedflow(name: String): Sharedflow {
val builder = SharedflowResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy