Class Workflow
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
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Glue.Workflow("example", new Aws.Glue.WorkflowArgs
{
});
var example_start = new Aws.Glue.Trigger("example-start", new Aws.Glue.TriggerArgs
{
Actions =
{
new Aws.Glue.Inputs.TriggerActionArgs
{
JobName = "example-job",
},
},
Type = "ON_DEMAND",
WorkflowName = example.Name,
});
var example_inner = new Aws.Glue.Trigger("example-inner", new Aws.Glue.TriggerArgs
{
Actions =
{
new Aws.Glue.Inputs.TriggerActionArgs
{
JobName = "another-example-job",
},
},
Predicate = new Aws.Glue.Inputs.TriggerPredicateArgs
{
Conditions =
{
new Aws.Glue.Inputs.TriggerPredicateConditionArgs
{
JobName = "example-job",
State = "SUCCEEDED",
},
},
},
Type = "CONDITIONAL",
WorkflowName = example.Name,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Glue
Assembly: Pulumi.Aws.dll
Syntax
public class Workflow : CustomResource
Constructors
View SourceWorkflow(String, WorkflowArgs, CustomResourceOptions)
Create a Workflow resource with the given unique name, arguments, and options.
Declaration
public Workflow(string name, WorkflowArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| WorkflowArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDefaultRunProperties
A map of default run properties for this workflow. These properties are passed to all jobs associated to the workflow.
Declaration
public Output<ImmutableDictionary<string, object>> DefaultRunProperties { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Description
Description of the workflow.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name you assign to this workflow.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, WorkflowState, CustomResourceOptions)
Get an existing Workflow resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Workflow Get(string name, Input<string> id, WorkflowState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| WorkflowState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Workflow |