Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.iotoperations.kotlin.DataFlowArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.iotoperations.kotlin
import com.pulumi.azurenative.iotoperations.DataFlowArgs.builder
import com.pulumi.azurenative.iotoperations.kotlin.inputs.DataFlowPropertiesArgs
import com.pulumi.azurenative.iotoperations.kotlin.inputs.DataFlowPropertiesArgsBuilder
import com.pulumi.azurenative.iotoperations.kotlin.inputs.ExtendedLocationArgs
import com.pulumi.azurenative.iotoperations.kotlin.inputs.ExtendedLocationArgsBuilder
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.jvm.JvmName
/**
* Instance dataflowProfile dataflow resource
* Azure REST API version: 2024-07-01-preview.
* ## Example Usage
* ### DataFlow_CreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var dataFlow = new AzureNative.IoTOperations.DataFlow("dataFlow", new()
* {
* DataflowName = "aio-dataflow",
* DataflowProfileName = "aio-dataflowprofile",
* ExtendedLocation = new AzureNative.IoTOperations.Inputs.ExtendedLocationArgs
* {
* Name = "ycsyubcxttlusbhfdqaynmkaatnbyv",
* Type = AzureNative.IoTOperations.ExtendedLocationType.CustomLocation,
* },
* InstanceName = "aio-instance",
* Properties = new AzureNative.IoTOperations.Inputs.DataFlowPropertiesArgs
* {
* Mode = AzureNative.IoTOperations.OperationalMode.Enabled,
* Operations = new[]
* {
* new AzureNative.IoTOperations.Inputs.DataFlowOperationArgs
* {
* BuiltInTransformationSettings = new AzureNative.IoTOperations.Inputs.DataFlowBuiltInTransformationArgs
* {
* Datasets = new[]
* {
* new AzureNative.IoTOperations.Inputs.DataFlowBuiltInTransformationDatasetArgs
* {
* Description = "a description of this dataset",
* Expression = "$2 == $1",
* Inputs = new[]
* {
* "machineId",
* "$context(dataset-name-user-provided1).machine.details.id",
* },
* Key = "dataset-name-user-provided1",
* SchemaRef = "schemaRef-pointing-to-AIO-schema-registry-instance",
* },
* },
* Filter = new[]
* {
* new AzureNative.IoTOperations.Inputs.DataFlowBuiltInTransformationFilterArgs
* {
* Description = "this is a user generated string to provide context",
* Expression = "$1 == $3 && $2 > $4",
* Inputs = new[]
* {
* "machineId",
* "temperature",
* "$context(dataset-name-user-provided1).machine.details.id",
* "$context(dataset-name-user-provided2).machine.location.temperature",
* },
* Type = AzureNative.IoTOperations.FilterType.Filter,
* },
* },
* Map = new[]
* {
* new AzureNative.IoTOperations.Inputs.DataFlowBuiltInTransformationMapArgs
* {
* Description = "this is a user generated string to provide context for the operation",
* Expression = "400",
* Inputs = new() { },
* Output = "temperatureLimit",
* Type = AzureNative.IoTOperations.DataFlowMappingType.NewProperties,
* },
* new AzureNative.IoTOperations.Inputs.DataFlowBuiltInTransformationMapArgs
* {
* Description = "this is a user generated string to provide context for the operation",
* Expression = "$1 * 1000",
* Inputs = new[]
* {
* "speed ? $last",
* },
* Output = "speedLKV",
* },
* new AzureNative.IoTOperations.Inputs.DataFlowBuiltInTransformationMapArgs
* {
* Description = "this is a user generated string to provide context for the operation",
* Expression = "$1 * 9/5 + 32",
* Inputs = new[]
* {
* "temperature",
* },
* Output = "temperatureF",
* Type = AzureNative.IoTOperations.DataFlowMappingType.Compute,
* },
* },
* SchemaRef = "kszdaahrhhctjvusgakiz",
* SerializationFormat = AzureNative.IoTOperations.TransformationSerializationFormat.Delta,
* },
* DestinationSettings = new AzureNative.IoTOperations.Inputs.DataFlowDestinationOperationArgs
* {
* DataDestination = "hxwohipwddccefqrdz",
* EndpointRef = "hvexewvu",
* },
* Name = "hhoeuttlpjucxldumilbdbxsglpfhvamwrasjuroucjzutjamarau",
* OperationType = AzureNative.IoTOperations.OperationType.Source,
* SourceSettings = new AzureNative.IoTOperations.Inputs.DataFlowSourceOperationArgs
* {
* AssetRef = "eswnjlnapfrdeklaivntm",
* DataSources = new[]
* {
* "dvncbklqkvjygnjgatioaikaneue",
* },
* EndpointRef = "cqsvkqeuyjzci",
* SchemaRef = "uchmgqpworewvayionuwydneotyo",
* SerializationFormat = AzureNative.IoTOperations.SourceSerializationFormat.Json,
* },
* },
* },
* ProfileRef = "juecrpocwpcajelwiwrplvacf",
* },
* ResourceGroupName = "rgiotoperations",
* });
* });
* ```
* ```go
* package main
* import (
* iotoperations "github.com/pulumi/pulumi-azure-native-sdk/iotoperations/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := iotoperations.NewDataFlow(ctx, "dataFlow", &iotoperations.DataFlowArgs{
* DataflowName: pulumi.String("aio-dataflow"),
* DataflowProfileName: pulumi.String("aio-dataflowprofile"),
* ExtendedLocation: &iotoperations.ExtendedLocationArgs{
* Name: pulumi.String("ycsyubcxttlusbhfdqaynmkaatnbyv"),
* Type: pulumi.String(iotoperations.ExtendedLocationTypeCustomLocation),
* },
* InstanceName: pulumi.String("aio-instance"),
* Properties: &iotoperations.DataFlowPropertiesArgs{
* Mode: pulumi.String(iotoperations.OperationalModeEnabled),
* Operations: iotoperations.DataFlowOperationArray{
* &iotoperations.DataFlowOperationArgs{
* BuiltInTransformationSettings: &iotoperations.DataFlowBuiltInTransformationArgs{
* Datasets: iotoperations.DataFlowBuiltInTransformationDatasetArray{
* &iotoperations.DataFlowBuiltInTransformationDatasetArgs{
* Description: pulumi.String("a description of this dataset"),
* Expression: pulumi.String("$2 == $1"),
* Inputs: pulumi.StringArray{
* pulumi.String("machineId"),
* pulumi.String("$context(dataset-name-user-provided1).machine.details.id"),
* },
* Key: pulumi.String("dataset-name-user-provided1"),
* SchemaRef: pulumi.String("schemaRef-pointing-to-AIO-schema-registry-instance"),
* },
* },
* Filter: iotoperations.DataFlowBuiltInTransformationFilterArray{
* &iotoperations.DataFlowBuiltInTransformationFilterArgs{
* Description: pulumi.String("this is a user generated string to provide context"),
* Expression: pulumi.String("$1 == $3 && $2 > $4"),
* Inputs: pulumi.StringArray{
* pulumi.String("machineId"),
* pulumi.String("temperature"),
* pulumi.String("$context(dataset-name-user-provided1).machine.details.id"),
* pulumi.String("$context(dataset-name-user-provided2).machine.location.temperature"),
* },
* Type: pulumi.String(iotoperations.FilterTypeFilter),
* },
* },
* Map: iotoperations.DataFlowBuiltInTransformationMapArray{
* &iotoperations.DataFlowBuiltInTransformationMapArgs{
* Description: pulumi.String("this is a user generated string to provide context for the operation"),
* Expression: pulumi.String("400"),
* Inputs: pulumi.StringArray{},
* Output: pulumi.String("temperatureLimit"),
* Type: pulumi.String(iotoperations.DataFlowMappingTypeNewProperties),
* },
* &iotoperations.DataFlowBuiltInTransformationMapArgs{
* Description: pulumi.String("this is a user generated string to provide context for the operation"),
* Expression: pulumi.String("$1 * 1000"),
* Inputs: pulumi.StringArray{
* pulumi.String("speed ? $last"),
* },
* Output: pulumi.String("speedLKV"),
* },
* &iotoperations.DataFlowBuiltInTransformationMapArgs{
* Description: pulumi.String("this is a user generated string to provide context for the operation"),
* Expression: pulumi.String("$1 * 9/5 + 32"),
* Inputs: pulumi.StringArray{
* pulumi.String("temperature"),
* },
* Output: pulumi.String("temperatureF"),
* Type: pulumi.String(iotoperations.DataFlowMappingTypeCompute),
* },
* },
* SchemaRef: pulumi.String("kszdaahrhhctjvusgakiz"),
* SerializationFormat: pulumi.String(iotoperations.TransformationSerializationFormatDelta),
* },
* DestinationSettings: &iotoperations.DataFlowDestinationOperationArgs{
* DataDestination: pulumi.String("hxwohipwddccefqrdz"),
* EndpointRef: pulumi.String("hvexewvu"),
* },
* Name: pulumi.String("hhoeuttlpjucxldumilbdbxsglpfhvamwrasjuroucjzutjamarau"),
* OperationType: pulumi.String(iotoperations.OperationTypeSource),
* SourceSettings: &iotoperations.DataFlowSourceOperationArgs{
* AssetRef: pulumi.String("eswnjlnapfrdeklaivntm"),
* DataSources: pulumi.StringArray{
* pulumi.String("dvncbklqkvjygnjgatioaikaneue"),
* },
* EndpointRef: pulumi.String("cqsvkqeuyjzci"),
* SchemaRef: pulumi.String("uchmgqpworewvayionuwydneotyo"),
* SerializationFormat: pulumi.String(iotoperations.SourceSerializationFormatJson),
* },
* },
* },
* ProfileRef: pulumi.String("juecrpocwpcajelwiwrplvacf"),
* },
* ResourceGroupName: pulumi.String("rgiotoperations"),
* })
* 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.iotoperations.DataFlow;
* import com.pulumi.azurenative.iotoperations.DataFlowArgs;
* import com.pulumi.azurenative.iotoperations.inputs.ExtendedLocationArgs;
* import com.pulumi.azurenative.iotoperations.inputs.DataFlowPropertiesArgs;
* 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 dataFlow = new DataFlow("dataFlow", DataFlowArgs.builder()
* .dataflowName("aio-dataflow")
* .dataflowProfileName("aio-dataflowprofile")
* .extendedLocation(ExtendedLocationArgs.builder()
* .name("ycsyubcxttlusbhfdqaynmkaatnbyv")
* .type("CustomLocation")
* .build())
* .instanceName("aio-instance")
* .properties(DataFlowPropertiesArgs.builder()
* .mode("Enabled")
* .operations(DataFlowOperationArgs.builder()
* .builtInTransformationSettings(DataFlowBuiltInTransformationArgs.builder()
* .datasets(DataFlowBuiltInTransformationDatasetArgs.builder()
* .description("a description of this dataset")
* .expression("$2 == $1")
* .inputs(
* "machineId",
* "$context(dataset-name-user-provided1).machine.details.id")
* .key("dataset-name-user-provided1")
* .schemaRef("schemaRef-pointing-to-AIO-schema-registry-instance")
* .build())
* .filter(DataFlowBuiltInTransformationFilterArgs.builder()
* .description("this is a user generated string to provide context")
* .expression("$1 == $3 && $2 > $4")
* .inputs(
* "machineId",
* "temperature",
* "$context(dataset-name-user-provided1).machine.details.id",
* "$context(dataset-name-user-provided2).machine.location.temperature")
* .type("Filter")
* .build())
* .map(
* DataFlowBuiltInTransformationMapArgs.builder()
* .description("this is a user generated string to provide context for the operation")
* .expression("400")
* .inputs()
* .output("temperatureLimit")
* .type("NewProperties")
* .build(),
* DataFlowBuiltInTransformationMapArgs.builder()
* .description("this is a user generated string to provide context for the operation")
* .expression("$1 * 1000")
* .inputs("speed ? $last")
* .output("speedLKV")
* .build(),
* DataFlowBuiltInTransformationMapArgs.builder()
* .description("this is a user generated string to provide context for the operation")
* .expression("$1 * 9/5 + 32")
* .inputs("temperature")
* .output("temperatureF")
* .type("Compute")
* .build())
* .schemaRef("kszdaahrhhctjvusgakiz")
* .serializationFormat("Delta")
* .build())
* .destinationSettings(DataFlowDestinationOperationArgs.builder()
* .dataDestination("hxwohipwddccefqrdz")
* .endpointRef("hvexewvu")
* .build())
* .name("hhoeuttlpjucxldumilbdbxsglpfhvamwrasjuroucjzutjamarau")
* .operationType("Source")
* .sourceSettings(DataFlowSourceOperationArgs.builder()
* .assetRef("eswnjlnapfrdeklaivntm")
* .dataSources("dvncbklqkvjygnjgatioaikaneue")
* .endpointRef("cqsvkqeuyjzci")
* .schemaRef("uchmgqpworewvayionuwydneotyo")
* .serializationFormat("Json")
* .build())
* .build())
* .profileRef("juecrpocwpcajelwiwrplvacf")
* .build())
* .resourceGroupName("rgiotoperations")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:iotoperations:DataFlow gyhhonqupjblolottsc /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}
* ```
* @property dataflowName Name of Instance dataflowProfile dataflow resource
* @property dataflowProfileName Name of Instance dataflowProfile resource
* @property extendedLocation Edge location of the resource.
* @property instanceName Name of instance.
* @property properties The resource-specific properties for this resource.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
*/
public data class DataFlowArgs(
public val dataflowName: Output? = null,
public val dataflowProfileName: Output? = null,
public val extendedLocation: Output? = null,
public val instanceName: Output? = null,
public val properties: Output? = null,
public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.iotoperations.DataFlowArgs =
com.pulumi.azurenative.iotoperations.DataFlowArgs.builder()
.dataflowName(dataflowName?.applyValue({ args0 -> args0 }))
.dataflowProfileName(dataflowProfileName?.applyValue({ args0 -> args0 }))
.extendedLocation(extendedLocation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.instanceName(instanceName?.applyValue({ args0 -> args0 }))
.properties(properties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DataFlowArgs].
*/
@PulumiTagMarker
public class DataFlowArgsBuilder internal constructor() {
private var dataflowName: Output? = null
private var dataflowProfileName: Output? = null
private var extendedLocation: Output? = null
private var instanceName: Output? = null
private var properties: Output? = null
private var resourceGroupName: Output? = null
/**
* @param value Name of Instance dataflowProfile dataflow resource
*/
@JvmName("kodxqoxlgjysmphj")
public suspend fun dataflowName(`value`: Output) {
this.dataflowName = value
}
/**
* @param value Name of Instance dataflowProfile resource
*/
@JvmName("veubnxdqkgnkmbuk")
public suspend fun dataflowProfileName(`value`: Output) {
this.dataflowProfileName = value
}
/**
* @param value Edge location of the resource.
*/
@JvmName("jklxwampskvfmxma")
public suspend fun extendedLocation(`value`: Output) {
this.extendedLocation = value
}
/**
* @param value Name of instance.
*/
@JvmName("mkcxeuvohcdltaik")
public suspend fun instanceName(`value`: Output) {
this.instanceName = value
}
/**
* @param value The resource-specific properties for this resource.
*/
@JvmName("msgujdmhweaapqlg")
public suspend fun properties(`value`: Output) {
this.properties = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("krjkenavvrsedmqi")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Name of Instance dataflowProfile dataflow resource
*/
@JvmName("gggmnlinkskxxvxi")
public suspend fun dataflowName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dataflowName = mapped
}
/**
* @param value Name of Instance dataflowProfile resource
*/
@JvmName("epltgnjmoewkvdfa")
public suspend fun dataflowProfileName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dataflowProfileName = mapped
}
/**
* @param value Edge location of the resource.
*/
@JvmName("mcgcxsjnesnxecna")
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("rmkwshkpbljqyhly")
public suspend fun extendedLocation(argument: suspend ExtendedLocationArgsBuilder.() -> Unit) {
val toBeMapped = ExtendedLocationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.extendedLocation = mapped
}
/**
* @param value Name of instance.
*/
@JvmName("crvxctrlyjjikmqk")
public suspend fun instanceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.instanceName = mapped
}
/**
* @param value The resource-specific properties for this resource.
*/
@JvmName("iknldhjfwihemsxv")
public suspend fun properties(`value`: DataFlowPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.properties = mapped
}
/**
* @param argument The resource-specific properties for this resource.
*/
@JvmName("vxifxnaqjwyiiilf")
public suspend fun properties(argument: suspend DataFlowPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = DataFlowPropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.properties = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("jjcfkduptdgtdhho")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
internal fun build(): DataFlowArgs = DataFlowArgs(
dataflowName = dataflowName,
dataflowProfileName = dataflowProfileName,
extendedLocation = extendedLocation,
instanceName = instanceName,
properties = properties,
resourceGroupName = resourceGroupName,
)
}