Class CfnTrigger
A CloudFormation AWS::Glue::Trigger
.
Inherited Members
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.AWS.Glue.dll
Syntax (csharp)
public class CfnTrigger : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnTrigger
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
The AWS::Glue::Trigger
resource specifies triggers that run AWS Glue jobs. For more information, see Triggering Jobs in AWS Glue and Trigger Structure in the AWS Glue Developer Guide .
CloudformationResource: AWS::Glue::Trigger
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-trigger.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;
var arguments_;
var tags;
var cfnTrigger = new CfnTrigger(this, "MyCfnTrigger", new CfnTriggerProps {
Actions = new [] { new ActionProperty {
Arguments = arguments_,
CrawlerName = "crawlerName",
JobName = "jobName",
NotificationProperty = new NotificationPropertyProperty {
NotifyDelayAfter = 123
},
SecurityConfiguration = "securityConfiguration",
Timeout = 123
} },
Type = "type",
// the properties below are optional
Description = "description",
EventBatchingCondition = new EventBatchingConditionProperty {
BatchSize = 123,
// the properties below are optional
BatchWindow = 123
},
Name = "name",
Predicate = new PredicateProperty {
Conditions = new [] { new ConditionProperty {
CrawlerName = "crawlerName",
CrawlState = "crawlState",
JobName = "jobName",
LogicalOperator = "logicalOperator",
State = "state"
} },
Logical = "logical"
},
Schedule = "schedule",
StartOnCreation = false,
Tags = tags,
WorkflowName = "workflowName"
});
Synopsis
Constructors
CfnTrigger(Construct, String, ICfnTriggerProps) | Create a new |
CfnTrigger(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnTrigger(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Actions | The actions initiated by this trigger. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Description | A description of this trigger. |
EventBatchingCondition | Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. |
Name | The name of the trigger. |
Predicate | The predicate of this trigger, which defines when it will fire. |
Schedule | A |
StartOnCreation | Set to true to start |
Tags | The tags to use with this trigger. |
Type | The type of trigger that this is. |
WorkflowName | The name of the workflow associated with the trigger. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnTrigger(Construct, String, ICfnTriggerProps)
Create a new AWS::Glue::Trigger
.
public CfnTrigger(Construct scope, string id, ICfnTriggerProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnTriggerProps
- resource properties.
CfnTrigger(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnTrigger(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnTrigger(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnTrigger(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Actions
The actions initiated by this trigger.
public virtual object Actions { get; set; }
Property Value
System.Object
Remarks
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Description
A description of this trigger.
public virtual string Description { get; set; }
Property Value
System.String
Remarks
EventBatchingCondition
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.
public virtual object EventBatchingCondition { get; set; }
Property Value
System.Object
Remarks
Name
The name of the trigger.
public virtual string Name { get; set; }
Property Value
System.String
Remarks
Predicate
The predicate of this trigger, which defines when it will fire.
public virtual object Predicate { get; set; }
Property Value
System.Object
Remarks
Schedule
A cron
expression used to specify the schedule.
public virtual string Schedule { get; set; }
Property Value
System.String
Remarks
For more information, see Time-Based Schedules for Jobs and Crawlers in the AWS Glue Developer Guide . For example, to run something every day at 12:15 UTC, specify cron(15 12 * * ? *)
.
StartOnCreation
Set to true to start SCHEDULED
and CONDITIONAL
triggers when created.
public virtual object StartOnCreation { get; set; }
Property Value
System.Object
Remarks
True is not supported for ON_DEMAND
triggers.
Tags
The tags to use with this trigger.
public virtual TagManager Tags { get; }
Property Value
Remarks
Type
The type of trigger that this is.
public virtual string Type { get; set; }
Property Value
System.String
Remarks
WorkflowName
The name of the workflow associated with the trigger.
public virtual string WorkflowName { get; set; }
Property Value
System.String
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>