

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::Glue::Trigger Action
<a name="aws-properties-glue-trigger-action"></a>

Defines an action to be initiated by a trigger.

## Syntax
<a name="aws-properties-glue-trigger-action-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-glue-trigger-action-syntax.json"></a>

```
{
  "[Arguments](#cfn-glue-trigger-action-arguments)" : Json,
  "[CrawlerName](#cfn-glue-trigger-action-crawlername)" : String,
  "[JobName](#cfn-glue-trigger-action-jobname)" : String,
  "[NotificationProperty](#cfn-glue-trigger-action-notificationproperty)" : NotificationProperty,
  "[SecurityConfiguration](#cfn-glue-trigger-action-securityconfiguration)" : String,
  "[Timeout](#cfn-glue-trigger-action-timeout)" : Integer
}
```

### YAML
<a name="aws-properties-glue-trigger-action-syntax.yaml"></a>

```
  [Arguments](#cfn-glue-trigger-action-arguments): Json
  [CrawlerName](#cfn-glue-trigger-action-crawlername): String
  [JobName](#cfn-glue-trigger-action-jobname): String
  [NotificationProperty](#cfn-glue-trigger-action-notificationproperty): 
    NotificationProperty
  [SecurityConfiguration](#cfn-glue-trigger-action-securityconfiguration): String
  [Timeout](#cfn-glue-trigger-action-timeout): Integer
```

## Properties
<a name="aws-properties-glue-trigger-action-properties"></a>

`Arguments`  <a name="cfn-glue-trigger-action-arguments"></a>
The job arguments used when this trigger fires. For this job run, they replace the default arguments set in the job definition itself.  
You can specify arguments here that your own job-execution script consumes, in addition to arguments that Amazon Glue itself consumes.  
For information about how to specify and consume your own job arguments, see [Calling Amazon Glue APIs in Python](https://docs.amazonaws.cn/glue/latest/dg/aws-glue-programming-python-calling.html) in the *Amazon Glue Developer Guide*.  
For information about the key-value pairs that Amazon Glue consumes to set up your job, see the [Special Parameters Used by Amazon Glue](https://docs.amazonaws.cn/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html) topic in the developer guide.  
*Required*: No  
*Type*: Json  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`CrawlerName`  <a name="cfn-glue-trigger-action-crawlername"></a>
The name of the crawler to be used with this action.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`JobName`  <a name="cfn-glue-trigger-action-jobname"></a>
The name of a job to be executed.  
*Required*: No  
*Type*: String  
*Pattern*: `[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*`  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`NotificationProperty`  <a name="cfn-glue-trigger-action-notificationproperty"></a>
Specifies configuration properties of a job run notification.  
*Required*: No  
*Type*: [NotificationProperty](aws-properties-glue-trigger-notificationproperty.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SecurityConfiguration`  <a name="cfn-glue-trigger-action-securityconfiguration"></a>
The name of the `SecurityConfiguration` structure to be used with this action.  
*Required*: No  
*Type*: String  
*Pattern*: `[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*`  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Timeout`  <a name="cfn-glue-trigger-action-timeout"></a>
The `JobRun` timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours). This overrides the timeout value set in the parent job.  
*Required*: No  
*Type*: Integer  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## See also
<a name="aws-properties-glue-trigger-action--seealso"></a>
+ [Action Structure](https://docs.amazonaws.cn/glue/latest/dg/aws-glue-api-jobs-trigger.html#aws-glue-api-jobs-trigger-Action) in the *Amazon Glue Developer Guide*

