ScheduleArgs

data class ScheduleArgs(val cronExpression: Output<String>? = null, val description: Output<String>? = null, val enable: Output<Boolean>? = null, val flowName: Output<String>? = null, val payload: Output<String>? = null, val scheduleName: Output<String>? = null) : ConvertibleToJava<ScheduleArgs>

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

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.fnf.Flow;
import com.pulumi.alicloud.fnf.FlowArgs;
import com.pulumi.alicloud.fnf.Schedule;
import com.pulumi.alicloud.fnf.ScheduleArgs;
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 exampleFlow = new Flow("exampleFlow", FlowArgs.builder()
.definition("""
version: v1beta1
type: flow
steps:
- type: pass
name: helloworld
""")
.description("tf-testaccFnFFlow983041")
.type("FDL")
.build());
var exampleSchedule = new Schedule("exampleSchedule", ScheduleArgs.builder()
.cronExpression("30 9 * * * *")
.description("tf-testaccFnFSchedule983041")
.enable("true")
.flowName(exampleFlow.name())
.payload("{\"tf-test\": \"test success\"}")
.scheduleName("tf-testaccFnFSchedule983041")
.build());
}
}

Import

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

$ pulumi import alicloud:fnf/schedule:Schedule example <schedule_name>:<flow_name>

Constructors

Link copied to clipboard
fun ScheduleArgs(cronExpression: Output<String>? = null, description: Output<String>? = null, enable: Output<Boolean>? = null, flowName: Output<String>? = null, payload: Output<String>? = null, scheduleName: Output<String>? = null)

Functions

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

Properties

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

The CRON expression of the time-based schedule to be created.

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

The description of the time-based schedule to be created.

Link copied to clipboard
val enable: Output<Boolean>? = null

Specifies whether to enable the time-based schedule you want to create. Valid values: false, true.

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

The name of the flow bound to the time-based schedule you want to create.

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

The trigger message of the time-based schedule to be created. It must be in JSON object format.

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

The name of the time-based schedule to be created.