Workflow Args
data class WorkflowArgs(val accessControl: Output<FlowAccessControlConfigurationArgs>? = null, val definition: Output<Any>? = null, val endpointsConfiguration: Output<FlowEndpointsConfigurationArgs>? = null, val identity: Output<ManagedServiceIdentityArgs>? = null, val integrationAccount: Output<ResourceReferenceArgs>? = null, val integrationServiceEnvironment: Output<ResourceReferenceArgs>? = null, val location: Output<String>? = null, val parameters: Output<Map<String, WorkflowParameterArgs>>? = null, val resourceGroupName: Output<String>? = null, val state: Output<Either<String, WorkflowState>>? = null, val tags: Output<Map<String, String>>? = null, val workflowName: Output<String>? = null) : ConvertibleToJava<WorkflowArgs>
The workflow type. Uses Azure REST API version 2019-05-01. In version 1.x of the Azure Native provider, it used API version 2019-05-01. Other available API versions: 2015-02-01-preview, 2016-06-01, 2018-07-01-preview.
Example Usage
Create or update a workflow
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workflow = new AzureNative.Logic.Workflow("workflow", new()
{
Definition = new Dictionary<string, object?>
{
["$schema"] = "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
["actions"] = new Dictionary<string, object?>
{
["Find_pet_by_ID"] = new Dictionary<string, object?>
{
["inputs"] = new Dictionary<string, object?>
{
["host"] = new Dictionary<string, object?>
{
["connection"] = new Dictionary<string, object?>
{
["name"] = "@parameters('$connections')['test-custom-connector']['connectionId']",
},
},
["method"] = "get",
["path"] = "/pet/@{encodeURIComponent('1')}",
},
["runAfter"] = new Dictionary<string, object?>
{
},
["type"] = "ApiConnection",
},
},
["contentVersion"] = "1.0.0.0",
["outputs"] = new Dictionary<string, object?>
{
},
["parameters"] = new Dictionary<string, object?>
{
["$connections"] = new Dictionary<string, object?>
{
["defaultValue"] = new Dictionary<string, object?>
{
},
["type"] = "Object",
},
},
["triggers"] = new Dictionary<string, object?>
{
["manual"] = new Dictionary<string, object?>
{
["inputs"] = new Dictionary<string, object?>
{
["schema"] = new Dictionary<string, object?>
{
},
},
["kind"] = "Http",
["type"] = "Request",
},
},
},
IntegrationAccount = new AzureNative.Logic.Inputs.ResourceReferenceArgs
{
Id = "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account",
},
Location = "brazilsouth",
Parameters =
{
{ "$connections", new AzureNative.Logic.Inputs.WorkflowParameterArgs
{
Value = new Dictionary<string, object?>
{
["test-custom-connector"] = new Dictionary<string, object?>
{
["connectionId"] = "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Web/connections/test-custom-connector",
["connectionName"] = "test-custom-connector",
["id"] = "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/locations/brazilsouth/managedApis/test-custom-connector",
},
},
} },
},
ResourceGroupName = "test-resource-group",
Tags = null,
WorkflowName = "test-workflow",
});
});
Content copied to clipboard
package main
import (
logic "github.com/pulumi/pulumi-azure-native-sdk/logic/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := logic.NewWorkflow(ctx, "workflow", &logic.WorkflowArgs{
Definition: pulumi.Any(map[string]interface{}{
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": map[string]interface{}{
"Find_pet_by_ID": map[string]interface{}{
"inputs": map[string]interface{}{
"host": map[string]interface{}{
"connection": map[string]interface{}{
"name": "@parameters('$connections')['test-custom-connector']['connectionId']",
},
},
"method": "get",
"path": "/pet/@{encodeURIComponent('1')}",
},
"runAfter": map[string]interface{}{},
"type": "ApiConnection",
},
},
"contentVersion": "1.0.0.0",
"outputs": map[string]interface{}{},
"parameters": map[string]interface{}{
"$connections": map[string]interface{}{
"defaultValue": map[string]interface{}{},
"type": "Object",
},
},
"triggers": map[string]interface{}{
"manual": map[string]interface{}{
"inputs": map[string]interface{}{
"schema": map[string]interface{}{},
},
"kind": "Http",
"type": "Request",
},
},
}),
IntegrationAccount: &logic.ResourceReferenceArgs{
Id: pulumi.String("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account"),
},
Location: pulumi.String("brazilsouth"),
Parameters: logic.WorkflowParameterMap{
"$connections": &logic.WorkflowParameterArgs{
Value: pulumi.Any(map[string]interface{}{
"test-custom-connector": map[string]interface{}{
"connectionId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Web/connections/test-custom-connector",
"connectionName": "test-custom-connector",
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/locations/brazilsouth/managedApis/test-custom-connector",
},
}),
},
},
ResourceGroupName: pulumi.String("test-resource-group"),
Tags: pulumi.StringMap{},
WorkflowName: pulumi.String("test-workflow"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.logic.Workflow;
import com.pulumi.azurenative.logic.WorkflowArgs;
import com.pulumi.azurenative.logic.inputs.ResourceReferenceArgs;
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 workflow = new Workflow("workflow", WorkflowArgs.builder()
.definition(Map.ofEntries(
Map.entry("$schema", "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#"),
Map.entry("actions", Map.of("Find_pet_by_ID", Map.ofEntries(
Map.entry("inputs", Map.ofEntries(
Map.entry("host", Map.of("connection", Map.of("name", "@parameters('$connections')['test-custom-connector']['connectionId']"))),
Map.entry("method", "get"),
Map.entry("path", "/pet/@{encodeURIComponent('1')}")
)),
Map.entry("runAfter", ),
Map.entry("type", "ApiConnection")
))),
Map.entry("contentVersion", "1.0.0.0"),
Map.entry("outputs", ),
Map.entry("parameters", Map.of("$connections", Map.ofEntries(
Map.entry("defaultValue", ),
Map.entry("type", "Object")
))),
Map.entry("triggers", Map.of("manual", Map.ofEntries(
Map.entry("inputs", Map.of("schema", )),
Map.entry("kind", "Http"),
Map.entry("type", "Request")
)))
))
.integrationAccount(ResourceReferenceArgs.builder()
.id("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account")
.build())
.location("brazilsouth")
.parameters(Map.of("$connections", Map.of("value", Map.of("test-custom-connector", Map.ofEntries(
Map.entry("connectionId", "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Web/connections/test-custom-connector"),
Map.entry("connectionName", "test-custom-connector"),
Map.entry("id", "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/locations/brazilsouth/managedApis/test-custom-connector")
)))))
.resourceGroupName("test-resource-group")
.tags()
.workflowName("test-workflow")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:logic:Workflow myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(accessControl: Output<FlowAccessControlConfigurationArgs>? = null, definition: Output<Any>? = null, endpointsConfiguration: Output<FlowEndpointsConfigurationArgs>? = null, identity: Output<ManagedServiceIdentityArgs>? = null, integrationAccount: Output<ResourceReferenceArgs>? = null, integrationServiceEnvironment: Output<ResourceReferenceArgs>? = null, location: Output<String>? = null, parameters: Output<Map<String, WorkflowParameterArgs>>? = null, resourceGroupName: Output<String>? = null, state: Output<Either<String, WorkflowState>>? = null, tags: Output<Map<String, String>>? = null, workflowName: Output<String>? = null)
Properties
Link copied to clipboard
The access control configuration.
Link copied to clipboard
The definition.
Link copied to clipboard
The endpoints configuration.
Link copied to clipboard
Managed service identity properties.
Link copied to clipboard
The integration account.
Link copied to clipboard
The integration service environment.
Link copied to clipboard
The parameters.
Link copied to clipboard
The resource group name.
Link copied to clipboard
The state.
Link copied to clipboard
The workflow name.