public static final class EventRuleProps.Builder extends Object
EventRuleProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
EventRuleProps |
build()
Builds the configured instance.
|
EventRuleProps.Builder |
withDescription(String value)
Sets the value of Description
|
EventRuleProps.Builder |
withEnabled(Boolean value)
Sets the value of Enabled
|
EventRuleProps.Builder |
withEventPattern(EventPattern value)
Sets the value of EventPattern
|
EventRuleProps.Builder |
withRuleName(String value)
Sets the value of RuleName
|
EventRuleProps.Builder |
withScheduleExpression(String value)
Sets the value of ScheduleExpression
|
EventRuleProps.Builder |
withTargets(List<IEventRuleTarget> value)
Sets the value of Targets
|
public EventRuleProps.Builder withDescription(@Nullable String value)
value - A description of the rule's purpose.thispublic EventRuleProps.Builder withEnabled(@Nullable Boolean value)
value - Indicates whether the rule is enabled.thispublic EventRuleProps.Builder withEventPattern(@Nullable EventPattern value)
value - 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.thispublic EventRuleProps.Builder withRuleName(@Nullable String value)
value - A name for the rule. If you don't specify a name, AWS CloudFormation
generates a unique physical ID and uses that ID for the rule name. For
more information, see Name Type.thispublic EventRuleProps.Builder withScheduleExpression(@Nullable String value)
value - 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.thispublic EventRuleProps.Builder withTargets(@Nullable List<IEventRuleTarget> value)
value - 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])`.thispublic EventRuleProps build()
EventRulePropsNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.