Class ConditionalTriggerOptions
(experimental) Properties for configuring a Condition (Predicate) based Glue Trigger.
Inherited Members
Namespace: Amazon.CDK.AWS.Glue.Alpha
Assembly: Amazon.CDK.AWS.Glue.Alpha.dll
Syntax (csharp)
public class ConditionalTriggerOptions : IConditionalTriggerOptions, IDailyScheduleTriggerOptions, ITriggerOptions
Syntax (vb)
Public Class ConditionalTriggerOptions Implements IConditionalTriggerOptions, IDailyScheduleTriggerOptions, ITriggerOptions
Remarks
Stability: Experimental
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.Alpha;
using Amazon.CDK;
using Amazon.CDK.AWS.Glue;
CfnCrawler cfnCrawler;
Job job;
SecurityConfiguration securityConfiguration;
var conditionalTriggerOptions = new ConditionalTriggerOptions {
Actions = new [] { new Action {
Arguments = new Dictionary<string, string> {
{ "argumentsKey", "arguments" }
},
Crawler = cfnCrawler,
Job = job,
SecurityConfiguration = securityConfiguration,
Timeout = Duration.Minutes(30)
} },
Predicate = new Predicate {
Conditions = new [] { new Condition {
CrawlerName = "crawlerName",
CrawlState = CrawlerState.RUNNING,
Job = job,
LogicalOperator = ConditionLogicalOperator.EQUALS,
State = JobState.SUCCEEDED
} },
Logical = PredicateLogical.AND
},
// the properties below are optional
Description = "description",
Name = "name",
StartOnCreation = false
};
Synopsis
Constructors
| ConditionalTriggerOptions() | (experimental) Properties for configuring a Condition (Predicate) based Glue Trigger. |
Properties
| Actions | (experimental) The actions initiated by this trigger. |
| Description | (experimental) A description for the trigger. |
| Name | (experimental) A name for the trigger. |
| Predicate | (experimental) The predicate for the trigger. |
| StartOnCreation | (experimental) Whether to start the trigger on creation or not. |
Constructors
ConditionalTriggerOptions()
(experimental) Properties for configuring a Condition (Predicate) based Glue Trigger.
public ConditionalTriggerOptions()
Remarks
Stability: Experimental
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.Alpha;
using Amazon.CDK;
using Amazon.CDK.AWS.Glue;
CfnCrawler cfnCrawler;
Job job;
SecurityConfiguration securityConfiguration;
var conditionalTriggerOptions = new ConditionalTriggerOptions {
Actions = new [] { new Action {
Arguments = new Dictionary<string, string> {
{ "argumentsKey", "arguments" }
},
Crawler = cfnCrawler,
Job = job,
SecurityConfiguration = securityConfiguration,
Timeout = Duration.Minutes(30)
} },
Predicate = new Predicate {
Conditions = new [] { new Condition {
CrawlerName = "crawlerName",
CrawlState = CrawlerState.RUNNING,
Job = job,
LogicalOperator = ConditionLogicalOperator.EQUALS,
State = JobState.SUCCEEDED
} },
Logical = PredicateLogical.AND
},
// the properties below are optional
Description = "description",
Name = "name",
StartOnCreation = false
};
Properties
Actions
(experimental) The actions initiated by this trigger.
public IAction[] Actions { get; set; }
Property Value
IAction[]
Remarks
Stability: Experimental
Description
(experimental) A description for the trigger.
public string? Description { get; set; }
Property Value
Remarks
Default: - no description
Stability: Experimental
Name
(experimental) A name for the trigger.
public string? Name { get; set; }
Property Value
Remarks
Default: - no name is provided
Stability: Experimental
Predicate
(experimental) The predicate for the trigger.
public IPredicate Predicate { get; set; }
Property Value
Remarks
Stability: Experimental
StartOnCreation
(experimental) Whether to start the trigger on creation or not.
public bool? StartOnCreation { get; set; }
Property Value
bool?
Remarks
Default: - false
Stability: Experimental