Schedule

class Schedule : KotlinCustomResource

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>

Properties

Link copied to clipboard
val cronExpression: Output<String>

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

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

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

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

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

Link copied to clipboard
val flowName: Output<String>

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The time when the time-based schedule was last updated.

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

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val scheduleId: Output<String>

The ID of the time-based schedule.

Link copied to clipboard
val scheduleName: Output<String>

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

Link copied to clipboard
val urn: Output<String>