Class CfnTrigger
The AWS::Glue::Trigger
resource specifies triggers that run AWS Glue jobs.
Inherited Members
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnTrigger : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnTrigger
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
For more information, see Triggering Jobs in AWS Glue and Trigger Structure in the AWS Glue Developer Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-trigger.html
CloudformationResource: AWS::Glue::Trigger
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(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 |
CfnTrigger(Construct, String, ICfnTriggerProps) |
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 | Tag Manager which manages the tags for this resource. |
TagsRaw | 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(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
CfnTrigger(Construct, String, ICfnTriggerProps)
public CfnTrigger(Construct scope, string id, ICfnTriggerProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnTriggerProps
Resource properties.
Properties
Actions
The actions initiated by this trigger.
public virtual object Actions { get; set; }
Property Value
System.Object
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
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
Name
The name of the trigger.
public virtual string Name { get; set; }
Property Value
System.String
Predicate
The predicate of this trigger, which defines when it will fire.
public virtual object Predicate { get; set; }
Property Value
System.Object
Schedule
A cron
expression used to specify the schedule.
public virtual string Schedule { get; set; }
Property Value
System.String
StartOnCreation
Set to true to start SCHEDULED
and CONDITIONAL
triggers when created.
public virtual object StartOnCreation { get; set; }
Property Value
System.Object
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
The tags to use with this trigger.
public virtual object TagsRaw { get; set; }
Property Value
System.Object
Type
The type of trigger that this is.
public virtual string Type { get; set; }
Property Value
System.String
WorkflowName
The name of the workflow associated with the trigger.
public virtual string WorkflowName { get; set; }
Property Value
System.String
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>