
com.pulumi.awsnative.datapipeline.kotlin.Pipeline.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.datapipeline.kotlin
import com.pulumi.awsnative.datapipeline.kotlin.outputs.PipelineObject
import com.pulumi.awsnative.datapipeline.kotlin.outputs.PipelineParameterObject
import com.pulumi.awsnative.datapipeline.kotlin.outputs.PipelineParameterValue
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.core.Output
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
import com.pulumi.awsnative.datapipeline.kotlin.outputs.PipelineObject.Companion.toKotlin as pipelineObjectToKotlin
import com.pulumi.awsnative.datapipeline.kotlin.outputs.PipelineParameterObject.Companion.toKotlin as pipelineParameterObjectToKotlin
import com.pulumi.awsnative.datapipeline.kotlin.outputs.PipelineParameterValue.Companion.toKotlin as pipelineParameterValueToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [Pipeline].
*/
@PulumiTagMarker
public class PipelineResourceBuilder internal constructor() {
public var name: String? = null
public var args: PipelineArgs = PipelineArgs()
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 PipelineArgsBuilder.() -> Unit) {
val builder = PipelineArgsBuilder()
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(): Pipeline {
val builtJavaResource = com.pulumi.awsnative.datapipeline.Pipeline(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Pipeline(builtJavaResource)
}
}
/**
* An example resource schema demonstrating some basic constructs and validation rules.
*/
public class Pipeline internal constructor(
override val javaResource: com.pulumi.awsnative.datapipeline.Pipeline,
) : KotlinCustomResource(javaResource, PipelineMapper) {
/**
* Indicates whether to validate and start the pipeline or stop an active pipeline. By default, the value is set to true.
*/
public val activate: Output?
get() = javaResource.activate().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* A description of the pipeline.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The name of the pipeline.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* The parameter objects used with the pipeline.
*/
public val parameterObjects: Output>?
get() = javaResource.parameterObjects().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
pipelineParameterObjectToKotlin(args0)
})
})
}).orElse(null)
})
/**
* The parameter values used with the pipeline.
*/
public val parameterValues: Output>?
get() = javaResource.parameterValues().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
pipelineParameterValueToKotlin(args0)
})
})
}).orElse(null)
})
/**
* The ID of the pipeline.
*/
public val pipelineId: Output
get() = javaResource.pipelineId().applyValue({ args0 -> args0 })
/**
* The objects that define the pipeline. These objects overwrite the existing pipeline definition. Not all objects, fields, and values can be updated. For information about restrictions, see Editing Your Pipeline in the AWS Data Pipeline Developer Guide.
*/
public val pipelineObjects: Output>?
get() = javaResource.pipelineObjects().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0.let({ args0 -> pipelineObjectToKotlin(args0) }) })
}).orElse(null)
})
/**
* A list of arbitrary tags (key-value pairs) to associate with the pipeline, which you can use to control permissions. For more information, see Controlling Access to Pipelines and Resources in the AWS Data Pipeline Developer Guide.
*/
public val pipelineTags: Output>?
get() = javaResource.pipelineTags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
}
public object PipelineMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.datapipeline.Pipeline::class == javaResource::class
override fun map(javaResource: Resource): Pipeline = Pipeline(
javaResource as
com.pulumi.awsnative.datapipeline.Pipeline,
)
}
/**
* @see [Pipeline].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [Pipeline].
*/
public suspend fun pipeline(name: String, block: suspend PipelineResourceBuilder.() -> Unit): Pipeline {
val builder = PipelineResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [Pipeline].
* @param name The _unique_ name of the resulting resource.
*/
public fun pipeline(name: String): Pipeline {
val builder = PipelineResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy