| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
RuleProps |
build()
Builds the configured instance.
|
RuleProps.Builder |
description(String description)
Sets the value of
RuleProps.getDescription() |
RuleProps.Builder |
enabled(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(String ruleName)
Sets the value of
RuleProps.getRuleName() |
RuleProps.Builder |
schedule(Schedule schedule)
Sets the value of
RuleProps.getSchedule() |
RuleProps.Builder |
targets(List<IRuleTarget> targets)
Sets the value of
RuleProps.getTargets() |
@Stability(value=Stable) public RuleProps.Builder description(String description)
RuleProps.getDescription()description - A description of the rule's purpose.this@Stability(value=Stable) public RuleProps.Builder enabled(Boolean enabled)
RuleProps.getEnabled()enabled - Indicates whether the rule is enabled.this@Stability(value=Stable) public RuleProps.Builder eventBus(IEventBus eventBus)
RuleProps.getEventBus()eventBus - The event bus to associate with this rule.this@Stability(value=Stable) public RuleProps.Builder eventPattern(EventPattern eventPattern)
RuleProps.getEventPattern()eventPattern - Describes which events CloudWatch Events routes to the specified target.
These routed events are matched events. For more information, see Events
and Event Patterns in the Amazon CloudWatch User Guide.this@Stability(value=Stable) public RuleProps.Builder ruleName(String ruleName)
RuleProps.getRuleName()ruleName - A name for the rule.this@Stability(value=Stable) public RuleProps.Builder schedule(Schedule schedule)
RuleProps.getSchedule()schedule - The schedule or rate (frequency) that determines when CloudWatch Events runs the rule.
For more information, see Schedule Expression Syntax for
Rules in the Amazon CloudWatch User Guide.this@Stability(value=Stable) public RuleProps.Builder targets(List<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@Stability(value=Stable) public RuleProps build()
RulePropsNullPointerException - if any required attribute was not providedCopyright © 2020. All rights reserved.