Exemplo n.º 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",
     });
 }
Exemplo n.º 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",
     });
 }
Exemplo n.º 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",
     });
 }
Exemplo n.º 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,
     });
 }