Flow Args
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());
}
}
Content copied to clipboard
Import
Serverless Workflow Flow can be imported using the id, e.g.
$ pulumi import alicloud:fnf/flow:Flow example <name>
Content copied to clipboard