FlowArgs

data class FlowArgs(val definition: Output<String>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val roleArn: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<FlowArgs>

Provides a Serverless Workflow Flow resource. For information about Serverless Workflow Flow and how to use it, see What is Flow.

NOTE: Available in v1.105.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ram.Role;
import com.pulumi.alicloud.ram.RoleArgs;
import com.pulumi.alicloud.fnf.Flow;
import com.pulumi.alicloud.fnf.FlowArgs;
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 default_ = new Role("default", RoleArgs.builder()
.document("""
{
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"fnf.aliyuncs.com"
]
}
}
],
"Version": "1"
}
""")
.build());
var example = new Flow("example", FlowArgs.builder()
.definition("""
version: v1beta1
type: flow
steps:
- type: pass
name: helloworld
""")
.roleArn(default_.arn())
.description("Test for terraform fnf_flow.")
.type("FDL")
.build());
}
}

Import

Serverless Workflow Flow can be imported using the id, e.g.

$ pulumi import alicloud:fnf/flow:Flow example <name>

Constructors

Link copied to clipboard
fun FlowArgs(definition: Output<String>? = null, description: Output<String>? = null, name: Output<String>? = null, roleArn: Output<String>? = null, type: Output<String>? = null)

Functions

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

Properties

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

The definition of the flow. It must comply with the Flow Definition Language (FDL) syntax.

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

The description of the flow.

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

The name of the flow. The name must be unique in an Alibaba Cloud account.

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

The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow.

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

The type of the flow. Valid values are FDL or DEFAULT.