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