WorkflowArgs

data class WorkflowArgs(val defaultRunProperties: Output<Map<String, Any>>? = null, val description: Output<String>? = null, val maxConcurrentRuns: Output<Int>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<WorkflowArgs>

Provides a Glue Workflow resource. The workflow graph (DAG) can be build using the aws.glue.Trigger resource. See the example below for creating a graph with four nodes (two triggers and two jobs).

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.glue.Workflow;
import com.pulumi.aws.glue.Trigger;
import com.pulumi.aws.glue.TriggerArgs;
import com.pulumi.aws.glue.inputs.TriggerActionArgs;
import com.pulumi.aws.glue.inputs.TriggerPredicateArgs;
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 example = new Workflow("example");
var example_start = new Trigger("example-start", TriggerArgs.builder()
.type("ON_DEMAND")
.workflowName(example.name())
.actions(TriggerActionArgs.builder()
.jobName("example-job")
.build())
.build());
var example_inner = new Trigger("example-inner", TriggerArgs.builder()
.type("CONDITIONAL")
.workflowName(example.name())
.predicate(TriggerPredicateArgs.builder()
.conditions(TriggerPredicateConditionArgs.builder()
.jobName("example-job")
.state("SUCCEEDED")
.build())
.build())
.actions(TriggerActionArgs.builder()
.jobName("another-example-job")
.build())
.build());
}
}

Import

Glue Workflows can be imported using name, e.g.,

$ pulumi import aws:glue/workflow:Workflow MyWorkflow MyWorkflow

Constructors

Link copied to clipboard
constructor(defaultRunProperties: Output<Map<String, Any>>? = null, description: Output<String>? = null, maxConcurrentRuns: Output<Int>? = null, name: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val defaultRunProperties: Output<Map<String, Any>>? = null

A map of default run properties for this workflow. These properties are passed to all jobs associated to the workflow.

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

Description of the workflow.

Link copied to clipboard
val maxConcurrentRuns: Output<Int>? = null

Prevents exceeding the maximum number of concurrent runs of any of the component jobs. If you leave this parameter blank, there is no limit to the number of concurrent workflow runs.

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

The name you assign to this workflow.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

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