FlowArgs

data class FlowArgs(val connectionName: Output<String>? = null, val flowName: Output<String>? = null, val identity: Output<ManagedServiceIdentityArgs>? = null, val location: Output<String>? = null, val plan: Output<PlanArgs>? = null, val properties: Output<FlowPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<FlowArgs>

The flow resource definition. Uses Azure REST API version 2024-09-27. In version 2.x of the Azure Native provider, it used API version 2023-10-11-preview. Other available API versions: 2023-10-11-preview, 2024-01-25, 2024-05-07, 2024-09-11, 2025-03-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native azuredatatransfer [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Creates or updates the flow resource

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var flow = new AzureNative.AzureDataTransfer.Flow("flow", new()
{
ConnectionName = "testConnection",
FlowName = "testFlow",
Location = "East US",
Properties = new AzureNative.AzureDataTransfer.Inputs.FlowPropertiesArgs
{
Connection = new AzureNative.AzureDataTransfer.Inputs.SelectedResourceArgs
{
Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/testConnection",
},
FlowType = AzureNative.AzureDataTransfer.FlowType.Standard,
StorageAccountName = "testsa",
StorageContainerName = "testcontainer",
},
ResourceGroupName = "testRG",
});
});
package main
import (
azuredatatransfer "github.com/pulumi/pulumi-azure-native-sdk/azuredatatransfer/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azuredatatransfer.NewFlow(ctx, "flow", &azuredatatransfer.FlowArgs{
ConnectionName: pulumi.String("testConnection"),
FlowName: pulumi.String("testFlow"),
Location: pulumi.String("East US"),
Properties: &azuredatatransfer.FlowPropertiesArgs{
Connection: &azuredatatransfer.SelectedResourceArgs{
Id: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/testConnection"),
},
FlowType: pulumi.String(azuredatatransfer.FlowTypeStandard),
StorageAccountName: pulumi.String("testsa"),
StorageContainerName: pulumi.String("testcontainer"),
},
ResourceGroupName: pulumi.String("testRG"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.azuredatatransfer.Flow;
import com.pulumi.azurenative.azuredatatransfer.FlowArgs;
import com.pulumi.azurenative.azuredatatransfer.inputs.FlowPropertiesArgs;
import com.pulumi.azurenative.azuredatatransfer.inputs.SelectedResourceArgs;
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 flow = new Flow("flow", FlowArgs.builder()
.connectionName("testConnection")
.flowName("testFlow")
.location("East US")
.properties(FlowPropertiesArgs.builder()
.connection(SelectedResourceArgs.builder()
.id("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.AzureDataTransfer/connections/testConnection")
.build())
.flowType("Standard")
.storageAccountName("testsa")
.storageContainerName("testcontainer")
.build())
.resourceGroupName("testRG")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:azuredatatransfer:Flow myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureDataTransfer/connections/{connectionName}/flows/{flowName}

Constructors

Link copied to clipboard
constructor(connectionName: Output<String>? = null, flowName: Output<String>? = null, identity: Output<ManagedServiceIdentityArgs>? = null, location: Output<String>? = null, plan: Output<PlanArgs>? = null, properties: Output<FlowPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val connectionName: Output<String>? = null

The name for the connection that is to be requested.

Link copied to clipboard
val flowName: Output<String>? = null

The name for the flow that is to be onboarded.

Link copied to clipboard

The managed identity of the flow resource, if configured.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val plan: Output<PlanArgs>? = null

Plan for the resource.

Link copied to clipboard
val properties: Output<FlowPropertiesArgs>? = null

Properties of flow

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): FlowArgs