All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.sagemaker.kotlin.PipelineArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.sagemaker.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.sagemaker.PipelineArgs.builder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ParallelismConfigurationPropertiesArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ParallelismConfigurationPropertiesArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.PipelineDefinition0PropertiesArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.PipelineDefinition1PropertiesArgs
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::SageMaker::Pipeline
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property parallelismConfiguration The parallelism configuration applied to the pipeline.
 * @property pipelineDefinition The definition of the pipeline. This can be either a JSON string or an Amazon S3 location.
 * @property pipelineDescription The description of the Pipeline.
 * @property pipelineDisplayName The display name of the Pipeline.
 * @property pipelineName The name of the Pipeline.
 * @property roleArn Role Arn
 * @property tags The tags of the pipeline.
 */
public data class PipelineArgs(
    public val parallelismConfiguration: Output? = null,
    public val pipelineDefinition: Output>? = null,
    public val pipelineDescription: Output? = null,
    public val pipelineDisplayName: Output? = null,
    public val pipelineName: Output? = null,
    public val roleArn: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.PipelineArgs =
        com.pulumi.awsnative.sagemaker.PipelineArgs.builder()
            .parallelismConfiguration(
                parallelismConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .pipelineDefinition(
                pipelineDefinition?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .pipelineDescription(pipelineDescription?.applyValue({ args0 -> args0 }))
            .pipelineDisplayName(pipelineDisplayName?.applyValue({ args0 -> args0 }))
            .pipelineName(pipelineName?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [PipelineArgs].
 */
@PulumiTagMarker
public class PipelineArgsBuilder internal constructor() {
    private var parallelismConfiguration: Output? = null

    private var pipelineDefinition:
        Output>? = null

    private var pipelineDescription: Output? = null

    private var pipelineDisplayName: Output? = null

    private var pipelineName: Output? = null

    private var roleArn: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The parallelism configuration applied to the pipeline.
     */
    @JvmName("edddafemwvycrcca")
    public suspend fun parallelismConfiguration(`value`: Output) {
        this.parallelismConfiguration = value
    }

    /**
     * @param value The definition of the pipeline. This can be either a JSON string or an Amazon S3 location.
     */
    @JvmName("ldqgadcdvlxmjfut")
    public suspend fun pipelineDefinition(`value`: Output>) {
        this.pipelineDefinition = value
    }

    /**
     * @param value The description of the Pipeline.
     */
    @JvmName("hqausfqviqkklkji")
    public suspend fun pipelineDescription(`value`: Output) {
        this.pipelineDescription = value
    }

    /**
     * @param value The display name of the Pipeline.
     */
    @JvmName("twwtugmxirwgxota")
    public suspend fun pipelineDisplayName(`value`: Output) {
        this.pipelineDisplayName = value
    }

    /**
     * @param value The name of the Pipeline.
     */
    @JvmName("hsvxtcipaqgkhket")
    public suspend fun pipelineName(`value`: Output) {
        this.pipelineName = value
    }

    /**
     * @param value Role Arn
     */
    @JvmName("dudkkdsxgkiivxwx")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The tags of the pipeline.
     */
    @JvmName("nmhabdlpnxcwalav")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("jcqnsiscpnooxhhr")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values The tags of the pipeline.
     */
    @JvmName("jiunggvdkwxdotxw")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The parallelism configuration applied to the pipeline.
     */
    @JvmName("wrnbgsxcspfarkbm")
    public suspend fun parallelismConfiguration(`value`: ParallelismConfigurationPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parallelismConfiguration = mapped
    }

    /**
     * @param argument The parallelism configuration applied to the pipeline.
     */
    @JvmName("bsnokpqofxenychd")
    public suspend fun parallelismConfiguration(argument: suspend ParallelismConfigurationPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = ParallelismConfigurationPropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.parallelismConfiguration = mapped
    }

    /**
     * @param value The definition of the pipeline. This can be either a JSON string or an Amazon S3 location.
     */
    @JvmName("cgujflreqtclfxts")
    public suspend fun pipelineDefinition(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pipelineDefinition = mapped
    }

    /**
     * @param value The definition of the pipeline. This can be either a JSON string or an Amazon S3 location.
     */
    @JvmName("iboapunqtswhuirl")
    public fun pipelineDefinition(`value`: PipelineDefinition0PropertiesArgs) {
        val toBeMapped = Either.ofLeft<
            PipelineDefinition0PropertiesArgs,
            PipelineDefinition1PropertiesArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pipelineDefinition = mapped
    }

    /**
     * @param value The definition of the pipeline. This can be either a JSON string or an Amazon S3 location.
     */
    @JvmName("hqopxyjdtarvjtgi")
    public fun pipelineDefinition(`value`: PipelineDefinition1PropertiesArgs) {
        val toBeMapped = Either.ofRight<
            PipelineDefinition0PropertiesArgs,
            PipelineDefinition1PropertiesArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pipelineDefinition = mapped
    }

    /**
     * @param value The description of the Pipeline.
     */
    @JvmName("oprnuuwuhvrvmndk")
    public suspend fun pipelineDescription(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pipelineDescription = mapped
    }

    /**
     * @param value The display name of the Pipeline.
     */
    @JvmName("xehcgpmybnhtqben")
    public suspend fun pipelineDisplayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pipelineDisplayName = mapped
    }

    /**
     * @param value The name of the Pipeline.
     */
    @JvmName("cxnocaaxdkbmkerj")
    public suspend fun pipelineName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pipelineName = mapped
    }

    /**
     * @param value Role Arn
     */
    @JvmName("qbybanwbakprqmqn")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value The tags of the pipeline.
     */
    @JvmName("rnyhtkqmepvjvrxf")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags of the pipeline.
     */
    @JvmName("lbmbbpxjtaeomaor")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags of the pipeline.
     */
    @JvmName("gvvjfcpggdwdvkhk")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags of the pipeline.
     */
    @JvmName("cktdwpcjklyucrjo")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags of the pipeline.
     */
    @JvmName("rxghedefxxrliryw")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): PipelineArgs = PipelineArgs(
        parallelismConfiguration = parallelismConfiguration,
        pipelineDefinition = pipelineDefinition,
        pipelineDescription = pipelineDescription,
        pipelineDisplayName = pipelineDisplayName,
        pipelineName = pipelineName,
        roleArn = roleArn,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy