public static final class EventRuleProps.Builder extends Object
EventRuleProps.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
EventRuleProps |
build() |
EventRuleProps.Builder |
withDescription(String value)
A description of the rule's purpose.
|
EventRuleProps.Builder |
withEnabled(Boolean value)
Indicates whether the rule is enabled.
|
EventRuleProps.Builder |
withEventPattern(EventPattern value)
Describes which events CloudWatch Events routes to the specified target.
|
EventRuleProps.Builder |
withRuleName(String value)
A name for the rule.
|
EventRuleProps.Builder |
withScheduleExpression(String value)
The schedule or rate (frequency) that determines when CloudWatch Events
runs the rule.
|
EventRuleProps.Builder |
withTargets(List<IEventRuleTarget> value)
Targets to invoke when this rule matches an event.
|
public EventRuleProps.Builder withDescription(String value)
public EventRuleProps.Builder withRuleName(String value)
public EventRuleProps.Builder withEnabled(Boolean value)
public EventRuleProps.Builder withScheduleExpression(String value)
You must specify this property, the `eventPattern` property, or both.public EventRuleProps.Builder withEventPattern(EventPattern value)
You must specify this property (either via props or via `addEventPattern`), the `scheduleExpression` property, or both. The method `addEventPattern` can be used to add filter values to the event pattern.public EventRuleProps.Builder withTargets(List<IEventRuleTarget> value)
public EventRuleProps build()
Copyright © 2018. All rights reserved.