Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RuleProps |
build()
Builds the configured instance.
|
RuleProps.Builder |
description(java.lang.String description)
Sets the value of
RuleProps.getDescription() |
RuleProps.Builder |
enabled(java.lang.Boolean enabled)
Sets the value of
RuleProps.getEnabled() |
RuleProps.Builder |
eventBus(IEventBus eventBus)
Sets the value of
RuleProps.getEventBus() |
RuleProps.Builder |
eventPattern(EventPattern eventPattern)
Sets the value of
RuleProps.getEventPattern() |
RuleProps.Builder |
ruleName(java.lang.String ruleName)
Sets the value of
RuleProps.getRuleName() |
RuleProps.Builder |
schedule(Schedule schedule)
Sets the value of
RuleProps.getSchedule() |
RuleProps.Builder |
targets(java.util.List<? extends IRuleTarget> targets)
Sets the value of
RuleProps.getTargets() |
public RuleProps.Builder description(java.lang.String description)
RuleProps.getDescription()
description
- A description of the rule's purpose.this
public RuleProps.Builder enabled(java.lang.Boolean enabled)
RuleProps.getEnabled()
enabled
- Indicates whether the rule is enabled.this
public RuleProps.Builder eventBus(IEventBus eventBus)
RuleProps.getEventBus()
eventBus
- The event bus to associate with this rule.this
public RuleProps.Builder eventPattern(EventPattern eventPattern)
RuleProps.getEventPattern()
eventPattern
- Describes which events EventBridge routes to the specified target.
These routed events are matched events. For more information, see Events
and Event Patterns in the Amazon EventBridge User Guide.this
public RuleProps.Builder ruleName(java.lang.String ruleName)
RuleProps.getRuleName()
ruleName
- A name for the rule.this
public RuleProps.Builder schedule(Schedule schedule)
RuleProps.getSchedule()
schedule
- The schedule or rate (frequency) that determines when EventBridge runs the rule.
For more information, see Schedule Expression Syntax for
Rules in the Amazon EventBridge User Guide.this
public RuleProps.Builder targets(java.util.List<? extends IRuleTarget> targets)
RuleProps.getTargets()
targets
- Targets to invoke when this rule matches an event.
Input will be the full matched event. If you wish to specify custom
target input, use addTarget(target[, inputOptions])
.this