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

com.pulumi.azurenative.iotoperationsdataprocessor.kotlin.PipelineArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.iotoperationsdataprocessor.kotlin

import com.pulumi.azurenative.iotoperationsdataprocessor.PipelineArgs.builder
import com.pulumi.azurenative.iotoperationsdataprocessor.kotlin.inputs.ExtendedLocationArgs
import com.pulumi.azurenative.iotoperationsdataprocessor.kotlin.inputs.ExtendedLocationArgsBuilder
import com.pulumi.azurenative.iotoperationsdataprocessor.kotlin.inputs.PipelineInputArgs
import com.pulumi.azurenative.iotoperationsdataprocessor.kotlin.inputs.PipelineInputArgsBuilder
import com.pulumi.azurenative.iotoperationsdataprocessor.kotlin.inputs.PipelineStageArgs
import com.pulumi.azurenative.iotoperationsdataprocessor.kotlin.inputs.PipelineStageArgsBuilder
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.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A Pipeline resource belonging to an Instance resource.
 * Azure REST API version: 2023-10-04-preview.
 * ## Example Usage
 * ### Pipelines create or update - generated by [MaximumSet] rule
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var pipeline = new AzureNative.IoTOperationsDataProcessor.Pipeline("pipeline", new()
 *     {
 *         Description = "vayzklhg",
 *         Enabled = true,
 *         ExtendedLocation = new AzureNative.IoTOperationsDataProcessor.Inputs.ExtendedLocationArgs
 *         {
 *             Name = "/subscriptions/e0aaa3df-e9a4-456a-9824-3c3b5c438110/resourceGroups/IoTOperationsDataProcessor-rg/providers/Microsoft.ExtendedLocation/customLocations/dev-space",
 *             Type = "CustomLocation",
 *         },
 *         Input = new AzureNative.IoTOperationsDataProcessor.Inputs.PipelineInputArgs
 *         {
 *             Next = new[]
 *             {
 *                 "umnuwjk",
 *             },
 *             Type = "xrnubjkvzajxjzb",
 *         },
 *         InstanceName = "056k5pl8t7761-2--ej25u2l28ttb-22mh79-75-2ch-t8",
 *         Location = "westus",
 *         PipelineName = "j8-8--3",
 *         ResourceGroupName = "rgopenapi",
 *         Stages =
 *         {
 *             { "stageId", new AzureNative.IoTOperationsDataProcessor.Inputs.PipelineStageArgs
 *             {
 *                 Next = new[]
 *                 {
 *                     "gxqgqh",
 *                 },
 *                 Type = "cxqgblrzqniowabexbztempdpkuib",
 *             } },
 *         },
 *         Tags = null,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	iotoperationsdataprocessor "github.com/pulumi/pulumi-azure-native-sdk/iotoperationsdataprocessor/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := iotoperationsdataprocessor.NewPipeline(ctx, "pipeline", &iotoperationsdataprocessor.PipelineArgs{
 * 			Description: pulumi.String("vayzklhg"),
 * 			Enabled:     pulumi.Bool(true),
 * 			ExtendedLocation: &iotoperationsdataprocessor.ExtendedLocationArgs{
 * 				Name: pulumi.String("/subscriptions/e0aaa3df-e9a4-456a-9824-3c3b5c438110/resourceGroups/IoTOperationsDataProcessor-rg/providers/Microsoft.ExtendedLocation/customLocations/dev-space"),
 * 				Type: pulumi.String("CustomLocation"),
 * 			},
 * 			Input: &iotoperationsdataprocessor.PipelineInputTypeArgs{
 * 				Next: pulumi.StringArray{
 * 					pulumi.String("umnuwjk"),
 * 				},
 * 				Type: pulumi.String("xrnubjkvzajxjzb"),
 * 			},
 * 			InstanceName:      pulumi.String("056k5pl8t7761-2--ej25u2l28ttb-22mh79-75-2ch-t8"),
 * 			Location:          pulumi.String("westus"),
 * 			PipelineName:      pulumi.String("j8-8--3"),
 * 			ResourceGroupName: pulumi.String("rgopenapi"),
 * 			Stages: iotoperationsdataprocessor.PipelineStageMap{
 * 				"stageId": &iotoperationsdataprocessor.PipelineStageArgs{
 * 					Next: pulumi.StringArray{
 * 						pulumi.String("gxqgqh"),
 * 					},
 * 					Type: pulumi.String("cxqgblrzqniowabexbztempdpkuib"),
 * 				},
 * 			},
 * 			Tags: nil,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.iotoperationsdataprocessor.Pipeline;
 * import com.pulumi.azurenative.iotoperationsdataprocessor.PipelineArgs;
 * import com.pulumi.azurenative.iotoperationsdataprocessor.inputs.ExtendedLocationArgs;
 * import com.pulumi.azurenative.iotoperationsdataprocessor.inputs.PipelineInputArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var pipeline = new Pipeline("pipeline", PipelineArgs.builder()
 *             .description("vayzklhg")
 *             .enabled(true)
 *             .extendedLocation(ExtendedLocationArgs.builder()
 *                 .name("/subscriptions/e0aaa3df-e9a4-456a-9824-3c3b5c438110/resourceGroups/IoTOperationsDataProcessor-rg/providers/Microsoft.ExtendedLocation/customLocations/dev-space")
 *                 .type("CustomLocation")
 *                 .build())
 *             .input(PipelineInputArgs.builder()
 *                 .next("umnuwjk")
 *                 .type("xrnubjkvzajxjzb")
 *                 .build())
 *             .instanceName("056k5pl8t7761-2--ej25u2l28ttb-22mh79-75-2ch-t8")
 *             .location("westus")
 *             .pipelineName("j8-8--3")
 *             .resourceGroupName("rgopenapi")
 *             .stages(Map.of("stageId", Map.ofEntries(
 *                 Map.entry("next", "gxqgqh"),
 *                 Map.entry("type", "cxqgblrzqniowabexbztempdpkuib")
 *             )))
 *             .tags()
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:iotoperationsdataprocessor:Pipeline IoTOperationsDataProcessor-pipeline-name /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsDataProcessor/instances/{instanceName}/pipelines/{pipelineName}
 * ```
 * @property description Detailed description of the Pipeline.
 * @property enabled Flag indicating whether the pipeline should be running or not.
 * @property extendedLocation Edge location of the resource.
 * @property input Information about where to pull input data from.
 * @property instanceName Name of instance.
 * @property location The geo-location where the resource lives
 * @property pipelineName Name of pipeline
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property stages Map of stage ids to stage configurations for all pipeline processing and output stages.
 * @property tags Resource tags.
 */
public data class PipelineArgs(
    public val description: Output? = null,
    public val enabled: Output? = null,
    public val extendedLocation: Output? = null,
    public val input: Output? = null,
    public val instanceName: Output? = null,
    public val location: Output? = null,
    public val pipelineName: Output? = null,
    public val resourceGroupName: Output? = null,
    public val stages: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.iotoperationsdataprocessor.PipelineArgs =
        com.pulumi.azurenative.iotoperationsdataprocessor.PipelineArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .extendedLocation(extendedLocation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .input(input?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .instanceName(instanceName?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .pipelineName(pipelineName?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .stages(
                stages?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(
                            args0.value.let({ args0 ->
                                args0.toJava()
                            }),
                        )
                    }).toMap()
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    private var enabled: Output? = null

    private var extendedLocation: Output? = null

    private var input: Output? = null

    private var instanceName: Output? = null

    private var location: Output? = null

    private var pipelineName: Output? = null

    private var resourceGroupName: Output? = null

    private var stages: Output>? = null

    private var tags: Output>? = null

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

    /**
     * @param value Flag indicating whether the pipeline should be running or not.
     */
    @JvmName("qceduyuoroinqvxy")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Edge location of the resource.
     */
    @JvmName("evnnebhpktqnywpj")
    public suspend fun extendedLocation(`value`: Output) {
        this.extendedLocation = value
    }

    /**
     * @param value Information about where to pull input data from.
     */
    @JvmName("ewspmmeooulfbrkg")
    public suspend fun input(`value`: Output) {
        this.input = value
    }

    /**
     * @param value Name of instance.
     */
    @JvmName("vmehbyjqywxhbrhs")
    public suspend fun instanceName(`value`: Output) {
        this.instanceName = value
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("jtoioqwmirfhajfh")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Name of pipeline
     */
    @JvmName("xesuxtdbyvgincee")
    public suspend fun pipelineName(`value`: Output) {
        this.pipelineName = value
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("dlexkmolakvwhfpl")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value Map of stage ids to stage configurations for all pipeline processing and output stages.
     */
    @JvmName("hyxwjruvayckqjms")
    public suspend fun stages(`value`: Output>) {
        this.stages = value
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("ohyfkaoyjipyarvq")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param value Flag indicating whether the pipeline should be running or not.
     */
    @JvmName("gmslbwbhcmnhwdyx")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Edge location of the resource.
     */
    @JvmName("bhqubbjteexpsdsd")
    public suspend fun extendedLocation(`value`: ExtendedLocationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.extendedLocation = mapped
    }

    /**
     * @param argument Edge location of the resource.
     */
    @JvmName("ljvddnjamrjkjpwi")
    public suspend fun extendedLocation(argument: suspend ExtendedLocationArgsBuilder.() -> Unit) {
        val toBeMapped = ExtendedLocationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.extendedLocation = mapped
    }

    /**
     * @param value Information about where to pull input data from.
     */
    @JvmName("ssnfnhopiqfhkotu")
    public suspend fun input(`value`: PipelineInputArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.input = mapped
    }

    /**
     * @param argument Information about where to pull input data from.
     */
    @JvmName("quioggicftiyysqu")
    public suspend fun input(argument: suspend PipelineInputArgsBuilder.() -> Unit) {
        val toBeMapped = PipelineInputArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.input = mapped
    }

    /**
     * @param value Name of instance.
     */
    @JvmName("tmgcgdqxmwhmphwx")
    public suspend fun instanceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceName = mapped
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("mlmfmffdbduqmypq")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Name of pipeline
     */
    @JvmName("reovmwsoawcgboma")
    public suspend fun pipelineName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pipelineName = mapped
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("ubomrohdgjfcisuu")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value Map of stage ids to stage configurations for all pipeline processing and output stages.
     */
    @JvmName("hxwngkiaedrdfcff")
    public suspend fun stages(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.stages = mapped
    }

    /**
     * @param argument Map of stage ids to stage configurations for all pipeline processing and output stages.
     */
    @JvmName("tnoalhtiqlefpjlm")
    public suspend fun stages(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                PipelineStageArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.stages = mapped
    }

    /**
     * @param values Map of stage ids to stage configurations for all pipeline processing and output stages.
     */
    @JvmName("yvsihcpcptofmqjr")
    public fun stages(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.stages = mapped
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("auuocuseebvqgabm")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Resource tags.
     */
    @JvmName("rtnosjojhbgmrwss")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): PipelineArgs = PipelineArgs(
        description = description,
        enabled = enabled,
        extendedLocation = extendedLocation,
        input = input,
        instanceName = instanceName,
        location = location,
        pipelineName = pipelineName,
        resourceGroupName = resourceGroupName,
        stages = stages,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy