| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
RuleProps |
build()
Builds the configured instance.
|
RuleProps.Builder |
crossStackScope(software.constructs.Construct crossStackScope)
Sets the value of
EventCommonOptions.getCrossStackScope() |
RuleProps.Builder |
description(String description)
Sets the value of
EventCommonOptions.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
EventCommonOptions.getEventPattern() |
RuleProps.Builder |
ruleName(String ruleName)
Sets the value of
EventCommonOptions.getRuleName() |
RuleProps.Builder |
schedule(Schedule schedule)
Sets the value of
RuleProps.getSchedule() |
RuleProps.Builder |
targets(List<? extends IRuleTarget> targets)
Sets the value of
RuleProps.getTargets() |
@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 schedule(Schedule schedule)
RuleProps.getSchedule()schedule - The schedule or rate (frequency) that determines when EventBridge runs the rule.
You must specify this property, the eventPattern property, or both.
For more information, see Schedule Expression Syntax for Rules in the Amazon EventBridge User Guide.
this@Stability(value=Stable) public RuleProps.Builder targets(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@Stability(value=Stable) public RuleProps.Builder crossStackScope(software.constructs.Construct crossStackScope)
EventCommonOptions.getCrossStackScope()crossStackScope - The scope to use if the source of the rule and its target are in different Stacks (but in the same account & region).
This helps dealing with cycles that often arise in these situations.this@Stability(value=Stable) public RuleProps.Builder description(String description)
EventCommonOptions.getDescription()description - A description of the rule's purpose.this@Stability(value=Stable) public RuleProps.Builder eventPattern(EventPattern eventPattern)
EventCommonOptions.getEventPattern()eventPattern - Additional restrictions for the event to route to the specified target.
The method that generates the rule probably imposes some type of event
filtering. The filtering implied by what you pass here is added
on top of that filtering.this@Stability(value=Stable) public RuleProps.Builder ruleName(String ruleName)
EventCommonOptions.getRuleName()ruleName - A name for the rule.this@Stability(value=Stable) public RuleProps build()
build in interface software.amazon.jsii.Builder<RuleProps>RulePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.