Exemple #1
0
 public MyStack()
 {
     var example = new Aws.Glue.Trigger("example", new Aws.Glue.TriggerArgs
     {
         Actions =
         {
             new Aws.Glue.Inputs.TriggerActionArgs
             {
                 JobName = aws_glue_job.Example1.Name,
             },
         },
         Predicate = new Aws.Glue.Inputs.TriggerPredicateArgs
         {
             Conditions =
             {
                 new Aws.Glue.Inputs.TriggerPredicateConditionArgs
                 {
                     JobName = aws_glue_job.Example2.Name,
                     State   = "SUCCEEDED",
                 },
             },
         },
         Type = "CONDITIONAL",
     });
 }
Exemple #2
0
 public MyStack()
 {
     var example = new Aws.Glue.Trigger("example", new Aws.Glue.TriggerArgs
     {
         Actions =
         {
             new Aws.Glue.Inputs.TriggerActionArgs
             {
                 JobName = aws_glue_job.Example.Name,
             },
         },
         Type = "ON_DEMAND",
     });
 }
Exemple #3
0
 public MyStack()
 {
     var example = new Aws.Glue.Trigger("example", new Aws.Glue.TriggerArgs
     {
         Actions =
         {
             new Aws.Glue.Inputs.TriggerActionArgs
             {
                 JobName = aws_glue_job.Example.Name,
             },
         },
         Schedule = "cron(15 12 * * ? *)",
         Type     = "SCHEDULED",
     });
 }
Exemple #4
0
 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,
     });
 }