![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.sagemaker.kotlin.Pipeline.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.sagemaker.kotlin
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.sagemaker.kotlin.outputs.ParallelismConfigurationProperties
import com.pulumi.awsnative.sagemaker.kotlin.outputs.PipelineDefinition0Properties
import com.pulumi.awsnative.sagemaker.kotlin.outputs.PipelineDefinition1Properties
import com.pulumi.core.Either
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.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
import com.pulumi.awsnative.sagemaker.kotlin.outputs.ParallelismConfigurationProperties.Companion.toKotlin as parallelismConfigurationPropertiesToKotlin
/**
* 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.sagemaker.Pipeline(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Pipeline(builtJavaResource)
}
}
/**
* Resource Type definition for AWS::SageMaker::Pipeline
* ## Example Usage
* ### Example
* No Java example available.
* ### Example
* No Java example available.
*/
public class Pipeline internal constructor(
override val javaResource: com.pulumi.awsnative.sagemaker.Pipeline,
) : KotlinCustomResource(javaResource, PipelineMapper) {
/**
* The parallelism configuration applied to the pipeline.
*/
public val parallelismConfiguration: Output?
get() = javaResource.parallelismConfiguration().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> parallelismConfigurationPropertiesToKotlin(args0) })
}).orElse(null)
})
/**
* The definition of the pipeline. This can be either a JSON string or an Amazon S3 location.
*/
public val pipelineDefinition:
Output>
get() = javaResource.pipelineDefinition().applyValue({ args0 ->
args0.transform(
{ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.sagemaker.kotlin.outputs.PipelineDefinition0Properties.Companion.toKotlin(args0)
})
},
{ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.sagemaker.kotlin.outputs.PipelineDefinition1Properties.Companion.toKotlin(args0)
})
},
)
})
/**
* The description of the Pipeline.
*/
public val pipelineDescription: Output?
get() = javaResource.pipelineDescription().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The display name of the Pipeline.
*/
public val pipelineDisplayName: Output?
get() = javaResource.pipelineDisplayName().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The name of the Pipeline.
*/
public val pipelineName: Output
get() = javaResource.pipelineName().applyValue({ args0 -> args0 })
/**
* Role Arn
*/
public val roleArn: Output
get() = javaResource.roleArn().applyValue({ args0 -> args0 })
/**
* The tags of the pipeline.
*/
public val tags: Output>?
get() = javaResource.tags().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.sagemaker.Pipeline::class == javaResource::class
override fun map(javaResource: Resource): Pipeline = Pipeline(
javaResource as
com.pulumi.awsnative.sagemaker.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