com.pulumi.googlenative.clouddeploy.v1.kotlin.DeliveryPipeline.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.clouddeploy.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.googlenative.clouddeploy.v1.kotlin.outputs.PipelineConditionResponse
import com.pulumi.googlenative.clouddeploy.v1.kotlin.outputs.SerialPipelineResponse
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.Map
import com.pulumi.googlenative.clouddeploy.v1.kotlin.outputs.PipelineConditionResponse.Companion.toKotlin as pipelineConditionResponseToKotlin
import com.pulumi.googlenative.clouddeploy.v1.kotlin.outputs.SerialPipelineResponse.Companion.toKotlin as serialPipelineResponseToKotlin
/**
* Builder for [DeliveryPipeline].
*/
@PulumiTagMarker
public class DeliveryPipelineResourceBuilder internal constructor() {
public var name: String? = null
public var args: DeliveryPipelineArgs = DeliveryPipelineArgs()
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 DeliveryPipelineArgsBuilder.() -> Unit) {
val builder = DeliveryPipelineArgsBuilder()
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(): DeliveryPipeline {
val builtJavaResource =
com.pulumi.googlenative.clouddeploy.v1.DeliveryPipeline(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return DeliveryPipeline(builtJavaResource)
}
}
/**
* Creates a new DeliveryPipeline in a given project and location.
* Auto-naming is currently not supported for this resource.
*/
public class DeliveryPipeline internal constructor(
override val javaResource: com.pulumi.googlenative.clouddeploy.v1.DeliveryPipeline,
) : KotlinCustomResource(javaResource, DeliveryPipelineMapper) {
/**
* User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy.
*/
public val annotations: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy