public static final class CfnTrigger.Builder
extends java.lang.Object
CfnTrigger
.Modifier and Type | Method and Description |
---|---|
CfnTrigger.Builder |
actions(IResolvable actions)
The actions initiated by this trigger.
|
CfnTrigger.Builder |
actions(java.util.List<? extends java.lang.Object> actions)
The actions initiated by this trigger.
|
CfnTrigger |
build() |
static CfnTrigger.Builder |
create(Construct scope,
java.lang.String id) |
CfnTrigger.Builder |
description(java.lang.String description)
A description of this trigger.
|
CfnTrigger.Builder |
eventBatchingCondition(CfnTrigger.EventBatchingConditionProperty eventBatchingCondition)
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.
|
CfnTrigger.Builder |
eventBatchingCondition(IResolvable eventBatchingCondition)
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.
|
CfnTrigger.Builder |
name(java.lang.String name)
The name of the trigger.
|
CfnTrigger.Builder |
predicate(CfnTrigger.PredicateProperty predicate)
The predicate of this trigger, which defines when it will fire.
|
CfnTrigger.Builder |
predicate(IResolvable predicate)
The predicate of this trigger, which defines when it will fire.
|
CfnTrigger.Builder |
schedule(java.lang.String schedule)
A `cron` expression used to specify the schedule.
|
CfnTrigger.Builder |
startOnCreation(java.lang.Boolean startOnCreation)
Set to true to start `SCHEDULED` and `CONDITIONAL` triggers when created.
|
CfnTrigger.Builder |
startOnCreation(IResolvable startOnCreation)
Set to true to start `SCHEDULED` and `CONDITIONAL` triggers when created.
|
CfnTrigger.Builder |
tags(java.lang.Object tags)
The tags to use with this trigger.
|
CfnTrigger.Builder |
type(java.lang.String type)
The type of trigger that this is.
|
CfnTrigger.Builder |
workflowName(java.lang.String workflowName)
The name of the workflow associated with the trigger.
|
public static CfnTrigger.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnTrigger.ActionProperty.Builder
.public CfnTrigger.Builder actions(IResolvable actions)
actions
- The actions initiated by this trigger. This parameter is required.this
public CfnTrigger.Builder actions(java.util.List<? extends java.lang.Object> actions)
actions
- The actions initiated by this trigger. This parameter is required.this
public CfnTrigger.Builder type(java.lang.String type)
type
- The type of trigger that this is. This parameter is required.this
public CfnTrigger.Builder description(java.lang.String description)
description
- A description of this trigger. This parameter is required.this
public CfnTrigger.Builder eventBatchingCondition(IResolvable eventBatchingCondition)
eventBatchingCondition
- Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. This parameter is required.this
public CfnTrigger.Builder eventBatchingCondition(CfnTrigger.EventBatchingConditionProperty eventBatchingCondition)
eventBatchingCondition
- Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. This parameter is required.this
public CfnTrigger.Builder name(java.lang.String name)
name
- The name of the trigger. This parameter is required.this
public CfnTrigger.Builder predicate(IResolvable predicate)
predicate
- The predicate of this trigger, which defines when it will fire. This parameter is required.this
public CfnTrigger.Builder predicate(CfnTrigger.PredicateProperty predicate)
predicate
- The predicate of this trigger, which defines when it will fire. This parameter is required.this
public CfnTrigger.Builder schedule(java.lang.String schedule)
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 * * ? *)
.
schedule
- A `cron` expression used to specify the schedule. This parameter is required.this
public CfnTrigger.Builder startOnCreation(java.lang.Boolean startOnCreation)
True is not supported for ON_DEMAND
triggers.
startOnCreation
- Set to true to start `SCHEDULED` and `CONDITIONAL` triggers when created. This parameter is required.this
public CfnTrigger.Builder startOnCreation(IResolvable startOnCreation)
True is not supported for ON_DEMAND
triggers.
startOnCreation
- Set to true to start `SCHEDULED` and `CONDITIONAL` triggers when created. This parameter is required.this
public CfnTrigger.Builder tags(java.lang.Object tags)
tags
- The tags to use with this trigger. This parameter is required.this
public CfnTrigger.Builder workflowName(java.lang.String workflowName)
workflowName
- The name of the workflow associated with the trigger. This parameter is required.this
public CfnTrigger build()