1. Packages
  2. AWS Classic
  3. API Docs
  4. glue
  5. Trigger

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.glue.Trigger

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Manages a Glue Trigger resource.

    Example Usage

    Conditional Trigger

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.glue.Trigger("example", {
        name: "example",
        type: "CONDITIONAL",
        actions: [{
            jobName: example1.name,
        }],
        predicate: {
            conditions: [{
                jobName: example2.name,
                state: "SUCCEEDED",
            }],
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.glue.Trigger("example",
        name="example",
        type="CONDITIONAL",
        actions=[{
            "jobName": example1["name"],
        }],
        predicate={
            "conditions": [{
                "jobName": example2["name"],
                "state": "SUCCEEDED",
            }],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := glue.NewTrigger(ctx, "example", &glue.TriggerArgs{
    			Name: pulumi.String("example"),
    			Type: pulumi.String("CONDITIONAL"),
    			Actions: glue.TriggerActionArray{
    				&glue.TriggerActionArgs{
    					JobName: pulumi.Any(example1.Name),
    				},
    			},
    			Predicate: &glue.TriggerPredicateArgs{
    				Conditions: glue.TriggerPredicateConditionArray{
    					&glue.TriggerPredicateConditionArgs{
    						JobName: pulumi.Any(example2.Name),
    						State:   pulumi.String("SUCCEEDED"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Glue.Trigger("example", new()
        {
            Name = "example",
            Type = "CONDITIONAL",
            Actions = new[]
            {
                new Aws.Glue.Inputs.TriggerActionArgs
                {
                    JobName = example1.Name,
                },
            },
            Predicate = new Aws.Glue.Inputs.TriggerPredicateArgs
            {
                Conditions = new[]
                {
                    new Aws.Glue.Inputs.TriggerPredicateConditionArgs
                    {
                        JobName = example2.Name,
                        State = "SUCCEEDED",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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 Trigger("example", TriggerArgs.builder()
                .name("example")
                .type("CONDITIONAL")
                .actions(TriggerActionArgs.builder()
                    .jobName(example1.name())
                    .build())
                .predicate(TriggerPredicateArgs.builder()
                    .conditions(TriggerPredicateConditionArgs.builder()
                        .jobName(example2.name())
                        .state("SUCCEEDED")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:glue:Trigger
        properties:
          name: example
          type: CONDITIONAL
          actions:
            - jobName: ${example1.name}
          predicate:
            conditions:
              - jobName: ${example2.name}
                state: SUCCEEDED
    

    On-Demand Trigger

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.glue.Trigger("example", {
        name: "example",
        type: "ON_DEMAND",
        actions: [{
            jobName: exampleAwsGlueJob.name,
        }],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.glue.Trigger("example",
        name="example",
        type="ON_DEMAND",
        actions=[{
            "jobName": example_aws_glue_job["name"],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := glue.NewTrigger(ctx, "example", &glue.TriggerArgs{
    			Name: pulumi.String("example"),
    			Type: pulumi.String("ON_DEMAND"),
    			Actions: glue.TriggerActionArray{
    				&glue.TriggerActionArgs{
    					JobName: pulumi.Any(exampleAwsGlueJob.Name),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Glue.Trigger("example", new()
        {
            Name = "example",
            Type = "ON_DEMAND",
            Actions = new[]
            {
                new Aws.Glue.Inputs.TriggerActionArgs
                {
                    JobName = exampleAwsGlueJob.Name,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.glue.Trigger;
    import com.pulumi.aws.glue.TriggerArgs;
    import com.pulumi.aws.glue.inputs.TriggerActionArgs;
    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 Trigger("example", TriggerArgs.builder()
                .name("example")
                .type("ON_DEMAND")
                .actions(TriggerActionArgs.builder()
                    .jobName(exampleAwsGlueJob.name())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:glue:Trigger
        properties:
          name: example
          type: ON_DEMAND
          actions:
            - jobName: ${exampleAwsGlueJob.name}
    

    Scheduled Trigger

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.glue.Trigger("example", {
        name: "example",
        schedule: "cron(15 12 * * ? *)",
        type: "SCHEDULED",
        actions: [{
            jobName: exampleAwsGlueJob.name,
        }],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.glue.Trigger("example",
        name="example",
        schedule="cron(15 12 * * ? *)",
        type="SCHEDULED",
        actions=[{
            "jobName": example_aws_glue_job["name"],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := glue.NewTrigger(ctx, "example", &glue.TriggerArgs{
    			Name:     pulumi.String("example"),
    			Schedule: pulumi.String("cron(15 12 * * ? *)"),
    			Type:     pulumi.String("SCHEDULED"),
    			Actions: glue.TriggerActionArray{
    				&glue.TriggerActionArgs{
    					JobName: pulumi.Any(exampleAwsGlueJob.Name),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Glue.Trigger("example", new()
        {
            Name = "example",
            Schedule = "cron(15 12 * * ? *)",
            Type = "SCHEDULED",
            Actions = new[]
            {
                new Aws.Glue.Inputs.TriggerActionArgs
                {
                    JobName = exampleAwsGlueJob.Name,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.glue.Trigger;
    import com.pulumi.aws.glue.TriggerArgs;
    import com.pulumi.aws.glue.inputs.TriggerActionArgs;
    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 Trigger("example", TriggerArgs.builder()
                .name("example")
                .schedule("cron(15 12 * * ? *)")
                .type("SCHEDULED")
                .actions(TriggerActionArgs.builder()
                    .jobName(exampleAwsGlueJob.name())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:glue:Trigger
        properties:
          name: example
          schedule: cron(15 12 * * ? *)
          type: SCHEDULED
          actions:
            - jobName: ${exampleAwsGlueJob.name}
    

    Conditional Trigger with Crawler Action

    Note: Triggers can have both a crawler action and a crawler condition, just no example provided.

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.glue.Trigger("example", {
        name: "example",
        type: "CONDITIONAL",
        actions: [{
            crawlerName: example1.name,
        }],
        predicate: {
            conditions: [{
                jobName: example2.name,
                state: "SUCCEEDED",
            }],
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.glue.Trigger("example",
        name="example",
        type="CONDITIONAL",
        actions=[{
            "crawlerName": example1["name"],
        }],
        predicate={
            "conditions": [{
                "jobName": example2["name"],
                "state": "SUCCEEDED",
            }],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := glue.NewTrigger(ctx, "example", &glue.TriggerArgs{
    			Name: pulumi.String("example"),
    			Type: pulumi.String("CONDITIONAL"),
    			Actions: glue.TriggerActionArray{
    				&glue.TriggerActionArgs{
    					CrawlerName: pulumi.Any(example1.Name),
    				},
    			},
    			Predicate: &glue.TriggerPredicateArgs{
    				Conditions: glue.TriggerPredicateConditionArray{
    					&glue.TriggerPredicateConditionArgs{
    						JobName: pulumi.Any(example2.Name),
    						State:   pulumi.String("SUCCEEDED"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Glue.Trigger("example", new()
        {
            Name = "example",
            Type = "CONDITIONAL",
            Actions = new[]
            {
                new Aws.Glue.Inputs.TriggerActionArgs
                {
                    CrawlerName = example1.Name,
                },
            },
            Predicate = new Aws.Glue.Inputs.TriggerPredicateArgs
            {
                Conditions = new[]
                {
                    new Aws.Glue.Inputs.TriggerPredicateConditionArgs
                    {
                        JobName = example2.Name,
                        State = "SUCCEEDED",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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 Trigger("example", TriggerArgs.builder()
                .name("example")
                .type("CONDITIONAL")
                .actions(TriggerActionArgs.builder()
                    .crawlerName(example1.name())
                    .build())
                .predicate(TriggerPredicateArgs.builder()
                    .conditions(TriggerPredicateConditionArgs.builder()
                        .jobName(example2.name())
                        .state("SUCCEEDED")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:glue:Trigger
        properties:
          name: example
          type: CONDITIONAL
          actions:
            - crawlerName: ${example1.name}
          predicate:
            conditions:
              - jobName: ${example2.name}
                state: SUCCEEDED
    

    Conditional Trigger with Crawler Condition

    Note: Triggers can have both a crawler action and a crawler condition, just no example provided.

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.glue.Trigger("example", {
        name: "example",
        type: "CONDITIONAL",
        actions: [{
            jobName: example1.name,
        }],
        predicate: {
            conditions: [{
                crawlerName: example2.name,
                crawlState: "SUCCEEDED",
            }],
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.glue.Trigger("example",
        name="example",
        type="CONDITIONAL",
        actions=[{
            "jobName": example1["name"],
        }],
        predicate={
            "conditions": [{
                "crawlerName": example2["name"],
                "crawlState": "SUCCEEDED",
            }],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glue"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := glue.NewTrigger(ctx, "example", &glue.TriggerArgs{
    			Name: pulumi.String("example"),
    			Type: pulumi.String("CONDITIONAL"),
    			Actions: glue.TriggerActionArray{
    				&glue.TriggerActionArgs{
    					JobName: pulumi.Any(example1.Name),
    				},
    			},
    			Predicate: &glue.TriggerPredicateArgs{
    				Conditions: glue.TriggerPredicateConditionArray{
    					&glue.TriggerPredicateConditionArgs{
    						CrawlerName: pulumi.Any(example2.Name),
    						CrawlState:  pulumi.String("SUCCEEDED"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Glue.Trigger("example", new()
        {
            Name = "example",
            Type = "CONDITIONAL",
            Actions = new[]
            {
                new Aws.Glue.Inputs.TriggerActionArgs
                {
                    JobName = example1.Name,
                },
            },
            Predicate = new Aws.Glue.Inputs.TriggerPredicateArgs
            {
                Conditions = new[]
                {
                    new Aws.Glue.Inputs.TriggerPredicateConditionArgs
                    {
                        CrawlerName = example2.Name,
                        CrawlState = "SUCCEEDED",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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 Trigger("example", TriggerArgs.builder()
                .name("example")
                .type("CONDITIONAL")
                .actions(TriggerActionArgs.builder()
                    .jobName(example1.name())
                    .build())
                .predicate(TriggerPredicateArgs.builder()
                    .conditions(TriggerPredicateConditionArgs.builder()
                        .crawlerName(example2.name())
                        .crawlState("SUCCEEDED")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:glue:Trigger
        properties:
          name: example
          type: CONDITIONAL
          actions:
            - jobName: ${example1.name}
          predicate:
            conditions:
              - crawlerName: ${example2.name}
                crawlState: SUCCEEDED
    

    Create Trigger Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Trigger(name: string, args: TriggerArgs, opts?: CustomResourceOptions);
    @overload
    def Trigger(resource_name: str,
                args: TriggerArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Trigger(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                actions: Optional[Sequence[TriggerActionArgs]] = None,
                type: Optional[str] = None,
                description: Optional[str] = None,
                enabled: Optional[bool] = None,
                event_batching_conditions: Optional[Sequence[TriggerEventBatchingConditionArgs]] = None,
                name: Optional[str] = None,
                predicate: Optional[TriggerPredicateArgs] = None,
                schedule: Optional[str] = None,
                start_on_creation: Optional[bool] = None,
                tags: Optional[Mapping[str, str]] = None,
                workflow_name: Optional[str] = None)
    func NewTrigger(ctx *Context, name string, args TriggerArgs, opts ...ResourceOption) (*Trigger, error)
    public Trigger(string name, TriggerArgs args, CustomResourceOptions? opts = null)
    public Trigger(String name, TriggerArgs args)
    public Trigger(String name, TriggerArgs args, CustomResourceOptions options)
    
    type: aws:glue:Trigger
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TriggerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TriggerArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TriggerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TriggerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TriggerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var awsTriggerResource = new Aws.Glue.Trigger("awsTriggerResource", new()
    {
        Actions = new[]
        {
            new Aws.Glue.Inputs.TriggerActionArgs
            {
                Arguments = 
                {
                    { "string", "string" },
                },
                CrawlerName = "string",
                JobName = "string",
                NotificationProperty = new Aws.Glue.Inputs.TriggerActionNotificationPropertyArgs
                {
                    NotifyDelayAfter = 0,
                },
                SecurityConfiguration = "string",
                Timeout = 0,
            },
        },
        Type = "string",
        Description = "string",
        Enabled = false,
        EventBatchingConditions = new[]
        {
            new Aws.Glue.Inputs.TriggerEventBatchingConditionArgs
            {
                BatchSize = 0,
                BatchWindow = 0,
            },
        },
        Name = "string",
        Predicate = new Aws.Glue.Inputs.TriggerPredicateArgs
        {
            Conditions = new[]
            {
                new Aws.Glue.Inputs.TriggerPredicateConditionArgs
                {
                    CrawlState = "string",
                    CrawlerName = "string",
                    JobName = "string",
                    LogicalOperator = "string",
                    State = "string",
                },
            },
            Logical = "string",
        },
        Schedule = "string",
        StartOnCreation = false,
        Tags = 
        {
            { "string", "string" },
        },
        WorkflowName = "string",
    });
    
    example, err := glue.NewTrigger(ctx, "awsTriggerResource", &glue.TriggerArgs{
    	Actions: glue.TriggerActionArray{
    		&glue.TriggerActionArgs{
    			Arguments: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    			CrawlerName: pulumi.String("string"),
    			JobName:     pulumi.String("string"),
    			NotificationProperty: &glue.TriggerActionNotificationPropertyArgs{
    				NotifyDelayAfter: pulumi.Int(0),
    			},
    			SecurityConfiguration: pulumi.String("string"),
    			Timeout:               pulumi.Int(0),
    		},
    	},
    	Type:        pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Enabled:     pulumi.Bool(false),
    	EventBatchingConditions: glue.TriggerEventBatchingConditionArray{
    		&glue.TriggerEventBatchingConditionArgs{
    			BatchSize:   pulumi.Int(0),
    			BatchWindow: pulumi.Int(0),
    		},
    	},
    	Name: pulumi.String("string"),
    	Predicate: &glue.TriggerPredicateArgs{
    		Conditions: glue.TriggerPredicateConditionArray{
    			&glue.TriggerPredicateConditionArgs{
    				CrawlState:      pulumi.String("string"),
    				CrawlerName:     pulumi.String("string"),
    				JobName:         pulumi.String("string"),
    				LogicalOperator: pulumi.String("string"),
    				State:           pulumi.String("string"),
    			},
    		},
    		Logical: pulumi.String("string"),
    	},
    	Schedule:        pulumi.String("string"),
    	StartOnCreation: pulumi.Bool(false),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	WorkflowName: pulumi.String("string"),
    })
    
    var awsTriggerResource = new Trigger("awsTriggerResource", TriggerArgs.builder()
        .actions(TriggerActionArgs.builder()
            .arguments(Map.of("string", "string"))
            .crawlerName("string")
            .jobName("string")
            .notificationProperty(TriggerActionNotificationPropertyArgs.builder()
                .notifyDelayAfter(0)
                .build())
            .securityConfiguration("string")
            .timeout(0)
            .build())
        .type("string")
        .description("string")
        .enabled(false)
        .eventBatchingConditions(TriggerEventBatchingConditionArgs.builder()
            .batchSize(0)
            .batchWindow(0)
            .build())
        .name("string")
        .predicate(TriggerPredicateArgs.builder()
            .conditions(TriggerPredicateConditionArgs.builder()
                .crawlState("string")
                .crawlerName("string")
                .jobName("string")
                .logicalOperator("string")
                .state("string")
                .build())
            .logical("string")
            .build())
        .schedule("string")
        .startOnCreation(false)
        .tags(Map.of("string", "string"))
        .workflowName("string")
        .build());
    
    aws_trigger_resource = aws.glue.Trigger("awsTriggerResource",
        actions=[{
            "arguments": {
                "string": "string",
            },
            "crawlerName": "string",
            "jobName": "string",
            "notificationProperty": {
                "notifyDelayAfter": 0,
            },
            "securityConfiguration": "string",
            "timeout": 0,
        }],
        type="string",
        description="string",
        enabled=False,
        event_batching_conditions=[{
            "batchSize": 0,
            "batchWindow": 0,
        }],
        name="string",
        predicate={
            "conditions": [{
                "crawlState": "string",
                "crawlerName": "string",
                "jobName": "string",
                "logicalOperator": "string",
                "state": "string",
            }],
            "logical": "string",
        },
        schedule="string",
        start_on_creation=False,
        tags={
            "string": "string",
        },
        workflow_name="string")
    
    const awsTriggerResource = new aws.glue.Trigger("awsTriggerResource", {
        actions: [{
            arguments: {
                string: "string",
            },
            crawlerName: "string",
            jobName: "string",
            notificationProperty: {
                notifyDelayAfter: 0,
            },
            securityConfiguration: "string",
            timeout: 0,
        }],
        type: "string",
        description: "string",
        enabled: false,
        eventBatchingConditions: [{
            batchSize: 0,
            batchWindow: 0,
        }],
        name: "string",
        predicate: {
            conditions: [{
                crawlState: "string",
                crawlerName: "string",
                jobName: "string",
                logicalOperator: "string",
                state: "string",
            }],
            logical: "string",
        },
        schedule: "string",
        startOnCreation: false,
        tags: {
            string: "string",
        },
        workflowName: "string",
    });
    
    type: aws:glue:Trigger
    properties:
        actions:
            - arguments:
                string: string
              crawlerName: string
              jobName: string
              notificationProperty:
                notifyDelayAfter: 0
              securityConfiguration: string
              timeout: 0
        description: string
        enabled: false
        eventBatchingConditions:
            - batchSize: 0
              batchWindow: 0
        name: string
        predicate:
            conditions:
                - crawlState: string
                  crawlerName: string
                  jobName: string
                  logicalOperator: string
                  state: string
            logical: string
        schedule: string
        startOnCreation: false
        tags:
            string: string
        type: string
        workflowName: string
    

    Trigger Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Trigger resource accepts the following input properties:

    Actions List<TriggerAction>
    List of actions initiated by this trigger when it fires. See Actions Below.
    Type string
    The type of trigger. Valid values are CONDITIONAL, EVENT, ON_DEMAND, and SCHEDULED.
    Description string
    A description of the new trigger.
    Enabled bool
    Start the trigger. Defaults to true.
    EventBatchingConditions List<TriggerEventBatchingCondition>
    Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. See Event Batching Condition.
    Name string
    The name of the trigger.
    Predicate TriggerPredicate
    A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL. See Predicate Below.
    Schedule string
    A cron expression used to specify the schedule. Time-Based Schedules for Jobs and Crawlers
    StartOnCreation bool
    Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers.
    Tags Dictionary<string, string>
    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.
    WorkflowName string
    A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers.
    Actions []TriggerActionArgs
    List of actions initiated by this trigger when it fires. See Actions Below.
    Type string
    The type of trigger. Valid values are CONDITIONAL, EVENT, ON_DEMAND, and SCHEDULED.
    Description string
    A description of the new trigger.
    Enabled bool
    Start the trigger. Defaults to true.
    EventBatchingConditions []TriggerEventBatchingConditionArgs
    Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. See Event Batching Condition.
    Name string
    The name of the trigger.
    Predicate TriggerPredicateArgs
    A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL. See Predicate Below.
    Schedule string
    A cron expression used to specify the schedule. Time-Based Schedules for Jobs and Crawlers
    StartOnCreation bool
    Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers.
    Tags map[string]string
    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.
    WorkflowName string
    A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers.
    actions List<TriggerAction>
    List of actions initiated by this trigger when it fires. See Actions Below.
    type String
    The type of trigger. Valid values are CONDITIONAL, EVENT, ON_DEMAND, and SCHEDULED.
    description String
    A description of the new trigger.
    enabled Boolean
    Start the trigger. Defaults to true.
    eventBatchingConditions List<TriggerEventBatchingCondition>
    Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. See Event Batching Condition.
    name String
    The name of the trigger.
    predicate TriggerPredicate
    A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL. See Predicate Below.
    schedule String
    A cron expression used to specify the schedule. Time-Based Schedules for Jobs and Crawlers
    startOnCreation Boolean
    Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers.
    tags Map<String,String>
    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.
    workflowName String
    A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers.
    actions TriggerAction[]
    List of actions initiated by this trigger when it fires. See Actions Below.
    type string
    The type of trigger. Valid values are CONDITIONAL, EVENT, ON_DEMAND, and SCHEDULED.
    description string
    A description of the new trigger.
    enabled boolean
    Start the trigger. Defaults to true.
    eventBatchingConditions TriggerEventBatchingCondition[]
    Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. See Event Batching Condition.
    name string
    The name of the trigger.
    predicate TriggerPredicate
    A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL. See Predicate Below.
    schedule string
    A cron expression used to specify the schedule. Time-Based Schedules for Jobs and Crawlers
    startOnCreation boolean
    Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers.
    tags {[key: string]: string}
    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.
    workflowName string
    A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers.
    actions Sequence[TriggerActionArgs]
    List of actions initiated by this trigger when it fires. See Actions Below.
    type str
    The type of trigger. Valid values are CONDITIONAL, EVENT, ON_DEMAND, and SCHEDULED.
    description str
    A description of the new trigger.
    enabled bool
    Start the trigger. Defaults to true.
    event_batching_conditions Sequence[TriggerEventBatchingConditionArgs]
    Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. See Event Batching Condition.
    name str
    The name of the trigger.
    predicate TriggerPredicateArgs
    A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL. See Predicate Below.
    schedule str
    A cron expression used to specify the schedule. Time-Based Schedules for Jobs and Crawlers
    start_on_creation bool
    Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers.
    tags Mapping[str, str]
    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.
    workflow_name str
    A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers.
    actions List<Property Map>
    List of actions initiated by this trigger when it fires. See Actions Below.
    type String
    The type of trigger. Valid values are CONDITIONAL, EVENT, ON_DEMAND, and SCHEDULED.
    description String
    A description of the new trigger.
    enabled Boolean
    Start the trigger. Defaults to true.
    eventBatchingConditions List<Property Map>
    Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. See Event Batching Condition.
    name String
    The name of the trigger.
    predicate Property Map
    A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL. See Predicate Below.
    schedule String
    A cron expression used to specify the schedule. Time-Based Schedules for Jobs and Crawlers
    startOnCreation Boolean
    Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers.
    tags Map<String>
    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.
    workflowName String
    A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Trigger resource produces the following output properties:

    Arn string
    Amazon Resource Name (ARN) of Glue Trigger
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current state of the trigger.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    Amazon Resource Name (ARN) of Glue Trigger
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current state of the trigger.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    Amazon Resource Name (ARN) of Glue Trigger
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current state of the trigger.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    Amazon Resource Name (ARN) of Glue Trigger
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The current state of the trigger.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    Amazon Resource Name (ARN) of Glue Trigger
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The current state of the trigger.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    Amazon Resource Name (ARN) of Glue Trigger
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current state of the trigger.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing Trigger Resource

    Get an existing Trigger resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TriggerState, opts?: CustomResourceOptions): Trigger
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            actions: Optional[Sequence[TriggerActionArgs]] = None,
            arn: Optional[str] = None,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            event_batching_conditions: Optional[Sequence[TriggerEventBatchingConditionArgs]] = None,
            name: Optional[str] = None,
            predicate: Optional[TriggerPredicateArgs] = None,
            schedule: Optional[str] = None,
            start_on_creation: Optional[bool] = None,
            state: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            type: Optional[str] = None,
            workflow_name: Optional[str] = None) -> Trigger
    func GetTrigger(ctx *Context, name string, id IDInput, state *TriggerState, opts ...ResourceOption) (*Trigger, error)
    public static Trigger Get(string name, Input<string> id, TriggerState? state, CustomResourceOptions? opts = null)
    public static Trigger get(String name, Output<String> id, TriggerState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Actions List<TriggerAction>
    List of actions initiated by this trigger when it fires. See Actions Below.
    Arn string
    Amazon Resource Name (ARN) of Glue Trigger
    Description string
    A description of the new trigger.
    Enabled bool
    Start the trigger. Defaults to true.
    EventBatchingConditions List<TriggerEventBatchingCondition>
    Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. See Event Batching Condition.
    Name string
    The name of the trigger.
    Predicate TriggerPredicate
    A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL. See Predicate Below.
    Schedule string
    A cron expression used to specify the schedule. Time-Based Schedules for Jobs and Crawlers
    StartOnCreation bool
    Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers.
    State string
    The current state of the trigger.
    Tags Dictionary<string, string>
    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.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Type string
    The type of trigger. Valid values are CONDITIONAL, EVENT, ON_DEMAND, and SCHEDULED.
    WorkflowName string
    A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers.
    Actions []TriggerActionArgs
    List of actions initiated by this trigger when it fires. See Actions Below.
    Arn string
    Amazon Resource Name (ARN) of Glue Trigger
    Description string
    A description of the new trigger.
    Enabled bool
    Start the trigger. Defaults to true.
    EventBatchingConditions []TriggerEventBatchingConditionArgs
    Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. See Event Batching Condition.
    Name string
    The name of the trigger.
    Predicate TriggerPredicateArgs
    A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL. See Predicate Below.
    Schedule string
    A cron expression used to specify the schedule. Time-Based Schedules for Jobs and Crawlers
    StartOnCreation bool
    Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers.
    State string
    The current state of the trigger.
    Tags map[string]string
    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.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Type string
    The type of trigger. Valid values are CONDITIONAL, EVENT, ON_DEMAND, and SCHEDULED.
    WorkflowName string
    A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers.
    actions List<TriggerAction>
    List of actions initiated by this trigger when it fires. See Actions Below.
    arn String
    Amazon Resource Name (ARN) of Glue Trigger
    description String
    A description of the new trigger.
    enabled Boolean
    Start the trigger. Defaults to true.
    eventBatchingConditions List<TriggerEventBatchingCondition>
    Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. See Event Batching Condition.
    name String
    The name of the trigger.
    predicate TriggerPredicate
    A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL. See Predicate Below.
    schedule String
    A cron expression used to specify the schedule. Time-Based Schedules for Jobs and Crawlers
    startOnCreation Boolean
    Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers.
    state String
    The current state of the trigger.
    tags Map<String,String>
    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.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    type String
    The type of trigger. Valid values are CONDITIONAL, EVENT, ON_DEMAND, and SCHEDULED.
    workflowName String
    A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers.
    actions TriggerAction[]
    List of actions initiated by this trigger when it fires. See Actions Below.
    arn string
    Amazon Resource Name (ARN) of Glue Trigger
    description string
    A description of the new trigger.
    enabled boolean
    Start the trigger. Defaults to true.
    eventBatchingConditions TriggerEventBatchingCondition[]
    Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. See Event Batching Condition.
    name string
    The name of the trigger.
    predicate TriggerPredicate
    A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL. See Predicate Below.
    schedule string
    A cron expression used to specify the schedule. Time-Based Schedules for Jobs and Crawlers
    startOnCreation boolean
    Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers.
    state string
    The current state of the trigger.
    tags {[key: string]: string}
    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.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    type string
    The type of trigger. Valid values are CONDITIONAL, EVENT, ON_DEMAND, and SCHEDULED.
    workflowName string
    A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers.
    actions Sequence[TriggerActionArgs]
    List of actions initiated by this trigger when it fires. See Actions Below.
    arn str
    Amazon Resource Name (ARN) of Glue Trigger
    description str
    A description of the new trigger.
    enabled bool
    Start the trigger. Defaults to true.
    event_batching_conditions Sequence[TriggerEventBatchingConditionArgs]
    Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. See Event Batching Condition.
    name str
    The name of the trigger.
    predicate TriggerPredicateArgs
    A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL. See Predicate Below.
    schedule str
    A cron expression used to specify the schedule. Time-Based Schedules for Jobs and Crawlers
    start_on_creation bool
    Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers.
    state str
    The current state of the trigger.
    tags Mapping[str, str]
    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.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    type str
    The type of trigger. Valid values are CONDITIONAL, EVENT, ON_DEMAND, and SCHEDULED.
    workflow_name str
    A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers.
    actions List<Property Map>
    List of actions initiated by this trigger when it fires. See Actions Below.
    arn String
    Amazon Resource Name (ARN) of Glue Trigger
    description String
    A description of the new trigger.
    enabled Boolean
    Start the trigger. Defaults to true.
    eventBatchingConditions List<Property Map>
    Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. See Event Batching Condition.
    name String
    The name of the trigger.
    predicate Property Map
    A predicate to specify when the new trigger should fire. Required when trigger type is CONDITIONAL. See Predicate Below.
    schedule String
    A cron expression used to specify the schedule. Time-Based Schedules for Jobs and Crawlers
    startOnCreation Boolean
    Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers.
    state String
    The current state of the trigger.
    tags Map<String>
    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.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    type String
    The type of trigger. Valid values are CONDITIONAL, EVENT, ON_DEMAND, and SCHEDULED.
    workflowName String
    A workflow to which the trigger should be associated to. Every workflow graph (DAG) needs a starting trigger (ON_DEMAND or SCHEDULED type) and can contain multiple additional CONDITIONAL triggers.

    Supporting Types

    TriggerAction, TriggerActionArgs

    Arguments Dictionary<string, string>
    Arguments to be passed to the job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes.
    CrawlerName string
    The name of the crawler to be executed. Conflicts with job_name.
    JobName string
    The name of a job to be executed. Conflicts with crawler_name.
    NotificationProperty TriggerActionNotificationProperty
    Specifies configuration properties of a job run notification. See Notification Property details below.
    SecurityConfiguration string
    The name of the Security Configuration structure to be used with this action.
    Timeout int
    The job run timeout in minutes. It overrides the timeout value of the job.
    Arguments map[string]string
    Arguments to be passed to the job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes.
    CrawlerName string
    The name of the crawler to be executed. Conflicts with job_name.
    JobName string
    The name of a job to be executed. Conflicts with crawler_name.
    NotificationProperty TriggerActionNotificationProperty
    Specifies configuration properties of a job run notification. See Notification Property details below.
    SecurityConfiguration string
    The name of the Security Configuration structure to be used with this action.
    Timeout int
    The job run timeout in minutes. It overrides the timeout value of the job.
    arguments Map<String,String>
    Arguments to be passed to the job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes.
    crawlerName String
    The name of the crawler to be executed. Conflicts with job_name.
    jobName String
    The name of a job to be executed. Conflicts with crawler_name.
    notificationProperty TriggerActionNotificationProperty
    Specifies configuration properties of a job run notification. See Notification Property details below.
    securityConfiguration String
    The name of the Security Configuration structure to be used with this action.
    timeout Integer
    The job run timeout in minutes. It overrides the timeout value of the job.
    arguments {[key: string]: string}
    Arguments to be passed to the job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes.
    crawlerName string
    The name of the crawler to be executed. Conflicts with job_name.
    jobName string
    The name of a job to be executed. Conflicts with crawler_name.
    notificationProperty TriggerActionNotificationProperty
    Specifies configuration properties of a job run notification. See Notification Property details below.
    securityConfiguration string
    The name of the Security Configuration structure to be used with this action.
    timeout number
    The job run timeout in minutes. It overrides the timeout value of the job.
    arguments Mapping[str, str]
    Arguments to be passed to the job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes.
    crawler_name str
    The name of the crawler to be executed. Conflicts with job_name.
    job_name str
    The name of a job to be executed. Conflicts with crawler_name.
    notification_property TriggerActionNotificationProperty
    Specifies configuration properties of a job run notification. See Notification Property details below.
    security_configuration str
    The name of the Security Configuration structure to be used with this action.
    timeout int
    The job run timeout in minutes. It overrides the timeout value of the job.
    arguments Map<String>
    Arguments to be passed to the job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes.
    crawlerName String
    The name of the crawler to be executed. Conflicts with job_name.
    jobName String
    The name of a job to be executed. Conflicts with crawler_name.
    notificationProperty Property Map
    Specifies configuration properties of a job run notification. See Notification Property details below.
    securityConfiguration String
    The name of the Security Configuration structure to be used with this action.
    timeout Number
    The job run timeout in minutes. It overrides the timeout value of the job.

    TriggerActionNotificationProperty, TriggerActionNotificationPropertyArgs

    NotifyDelayAfter int
    After a job run starts, the number of minutes to wait before sending a job run delay notification.
    NotifyDelayAfter int
    After a job run starts, the number of minutes to wait before sending a job run delay notification.
    notifyDelayAfter Integer
    After a job run starts, the number of minutes to wait before sending a job run delay notification.
    notifyDelayAfter number
    After a job run starts, the number of minutes to wait before sending a job run delay notification.
    notify_delay_after int
    After a job run starts, the number of minutes to wait before sending a job run delay notification.
    notifyDelayAfter Number
    After a job run starts, the number of minutes to wait before sending a job run delay notification.

    TriggerEventBatchingCondition, TriggerEventBatchingConditionArgs

    BatchSize int
    Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires.
    BatchWindow int
    Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received. Default value is 900.
    BatchSize int
    Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires.
    BatchWindow int
    Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received. Default value is 900.
    batchSize Integer
    Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires.
    batchWindow Integer
    Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received. Default value is 900.
    batchSize number
    Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires.
    batchWindow number
    Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received. Default value is 900.
    batch_size int
    Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires.
    batch_window int
    Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received. Default value is 900.
    batchSize Number
    Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires.
    batchWindow Number
    Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received. Default value is 900.

    TriggerPredicate, TriggerPredicateArgs

    Conditions List<TriggerPredicateCondition>
    A list of the conditions that determine when the trigger will fire. See Conditions.
    Logical string
    How to handle multiple conditions. Defaults to AND. Valid values are AND or ANY.
    Conditions []TriggerPredicateCondition
    A list of the conditions that determine when the trigger will fire. See Conditions.
    Logical string
    How to handle multiple conditions. Defaults to AND. Valid values are AND or ANY.
    conditions List<TriggerPredicateCondition>
    A list of the conditions that determine when the trigger will fire. See Conditions.
    logical String
    How to handle multiple conditions. Defaults to AND. Valid values are AND or ANY.
    conditions TriggerPredicateCondition[]
    A list of the conditions that determine when the trigger will fire. See Conditions.
    logical string
    How to handle multiple conditions. Defaults to AND. Valid values are AND or ANY.
    conditions Sequence[TriggerPredicateCondition]
    A list of the conditions that determine when the trigger will fire. See Conditions.
    logical str
    How to handle multiple conditions. Defaults to AND. Valid values are AND or ANY.
    conditions List<Property Map>
    A list of the conditions that determine when the trigger will fire. See Conditions.
    logical String
    How to handle multiple conditions. Defaults to AND. Valid values are AND or ANY.

    TriggerPredicateCondition, TriggerPredicateConditionArgs

    CrawlState string
    The condition crawl state. Currently, the values supported are RUNNING, SUCCEEDED, CANCELLED, and FAILED. If this is specified, crawler_name must also be specified. Conflicts with state.
    CrawlerName string
    The name of the crawler to watch. If this is specified, crawl_state must also be specified. Conflicts with job_name.
    JobName string
    The name of the job to watch. If this is specified, state must also be specified. Conflicts with crawler_name.
    LogicalOperator string
    A logical operator. Defaults to EQUALS.
    State string
    The condition job state. Currently, the values supported are SUCCEEDED, STOPPED, TIMEOUT and FAILED. If this is specified, job_name must also be specified. Conflicts with crawler_state.
    CrawlState string
    The condition crawl state. Currently, the values supported are RUNNING, SUCCEEDED, CANCELLED, and FAILED. If this is specified, crawler_name must also be specified. Conflicts with state.
    CrawlerName string
    The name of the crawler to watch. If this is specified, crawl_state must also be specified. Conflicts with job_name.
    JobName string
    The name of the job to watch. If this is specified, state must also be specified. Conflicts with crawler_name.
    LogicalOperator string
    A logical operator. Defaults to EQUALS.
    State string
    The condition job state. Currently, the values supported are SUCCEEDED, STOPPED, TIMEOUT and FAILED. If this is specified, job_name must also be specified. Conflicts with crawler_state.
    crawlState String
    The condition crawl state. Currently, the values supported are RUNNING, SUCCEEDED, CANCELLED, and FAILED. If this is specified, crawler_name must also be specified. Conflicts with state.
    crawlerName String
    The name of the crawler to watch. If this is specified, crawl_state must also be specified. Conflicts with job_name.
    jobName String
    The name of the job to watch. If this is specified, state must also be specified. Conflicts with crawler_name.
    logicalOperator String
    A logical operator. Defaults to EQUALS.
    state String
    The condition job state. Currently, the values supported are SUCCEEDED, STOPPED, TIMEOUT and FAILED. If this is specified, job_name must also be specified. Conflicts with crawler_state.
    crawlState string
    The condition crawl state. Currently, the values supported are RUNNING, SUCCEEDED, CANCELLED, and FAILED. If this is specified, crawler_name must also be specified. Conflicts with state.
    crawlerName string
    The name of the crawler to watch. If this is specified, crawl_state must also be specified. Conflicts with job_name.
    jobName string
    The name of the job to watch. If this is specified, state must also be specified. Conflicts with crawler_name.
    logicalOperator string
    A logical operator. Defaults to EQUALS.
    state string
    The condition job state. Currently, the values supported are SUCCEEDED, STOPPED, TIMEOUT and FAILED. If this is specified, job_name must also be specified. Conflicts with crawler_state.
    crawl_state str
    The condition crawl state. Currently, the values supported are RUNNING, SUCCEEDED, CANCELLED, and FAILED. If this is specified, crawler_name must also be specified. Conflicts with state.
    crawler_name str
    The name of the crawler to watch. If this is specified, crawl_state must also be specified. Conflicts with job_name.
    job_name str
    The name of the job to watch. If this is specified, state must also be specified. Conflicts with crawler_name.
    logical_operator str
    A logical operator. Defaults to EQUALS.
    state str
    The condition job state. Currently, the values supported are SUCCEEDED, STOPPED, TIMEOUT and FAILED. If this is specified, job_name must also be specified. Conflicts with crawler_state.
    crawlState String
    The condition crawl state. Currently, the values supported are RUNNING, SUCCEEDED, CANCELLED, and FAILED. If this is specified, crawler_name must also be specified. Conflicts with state.
    crawlerName String
    The name of the crawler to watch. If this is specified, crawl_state must also be specified. Conflicts with job_name.
    jobName String
    The name of the job to watch. If this is specified, state must also be specified. Conflicts with crawler_name.
    logicalOperator String
    A logical operator. Defaults to EQUALS.
    state String
    The condition job state. Currently, the values supported are SUCCEEDED, STOPPED, TIMEOUT and FAILED. If this is specified, job_name must also be specified. Conflicts with crawler_state.

    Import

    Using pulumi import, import Glue Triggers using name. For example:

    $ pulumi import aws:glue/trigger:Trigger MyTrigger MyTrigger
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi