| Modifier and Type | Method and Description |
|---|---|
Rule |
build() |
static Rule.Builder |
create(software.constructs.Construct scope,
String id) |
Rule.Builder |
description(String description)
(experimental) A description of the rule's purpose.
|
Rule.Builder |
enabled(Boolean enabled)
(experimental) Indicates whether the rule is enabled.
|
Rule.Builder |
eventBus(IEventBus eventBus)
(experimental) The event bus to associate with this rule.
|
Rule.Builder |
eventPattern(EventPattern eventPattern)
(experimental) Describes which events EventBridge routes to the specified target.
|
Rule.Builder |
ruleName(String ruleName)
(experimental) A name for the rule.
|
Rule.Builder |
schedule(Schedule schedule)
(experimental) The schedule or rate (frequency) that determines when EventBridge runs the rule.
|
Rule.Builder |
targets(List<? extends IRuleTarget> targets)
(experimental) Targets to invoke when this rule matches an event.
|
@Stability(value=Experimental) public static Rule.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.Rule.Builder.@Stability(value=Experimental) public Rule.Builder description(String description)
Default: - No description.
description - A description of the rule's purpose. This parameter is required.this@Stability(value=Experimental) public Rule.Builder enabled(Boolean enabled)
Default: true
enabled - Indicates whether the rule is enabled. This parameter is required.this@Stability(value=Experimental) public Rule.Builder eventBus(IEventBus eventBus)
Default: - The default event bus.
eventBus - The event bus to associate with this rule. This parameter is required.this@Stability(value=Experimental) public Rule.Builder eventPattern(EventPattern eventPattern)
These routed events are matched events. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
Default: - None.
eventPattern - Describes which events EventBridge routes to the specified target. This parameter is required.thisYou 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.@Stability(value=Experimental) public Rule.Builder ruleName(String ruleName)
Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the rule name. For more information, see Name Type.
ruleName - A name for the rule. This parameter is required.this@Stability(value=Experimental) public Rule.Builder schedule(Schedule schedule)
For more information, see Schedule Expression Syntax for Rules in the Amazon EventBridge User Guide.
Default: - None.
schedule - The schedule or rate (frequency) that determines when EventBridge runs the rule. This parameter is required.thisYou must specify this property, the `eventPattern` property, or both.@Stability(value=Experimental) public Rule.Builder targets(List<? extends IRuleTarget> targets)
Input will be the full matched event. If you wish to specify custom
target input, use addTarget(target[, inputOptions]).
Default: - No targets.
targets - Targets to invoke when this rule matches an event. This parameter is required.thisCopyright © 2021. All rights reserved.