@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.311Z") @Stability(value=Stable) public interface RuleProps extends software.amazon.jsii.JsiiSerializable, EventCommonOptions
Example:
Connection connection = Connection.Builder.create(this, "Connection")
.authorization(Authorization.apiKey("x-api-key", SecretValue.secretsManager("ApiSecretName")))
.description("Connection with API Key x-api-key")
.build();
ApiDestination destination = ApiDestination.Builder.create(this, "Destination")
.connection(connection)
.endpoint("https://example.com")
.description("Calling example.com with API key x-api-key")
.build();
Rule rule = Rule.Builder.create(this, "Rule")
.schedule(Schedule.rate(Duration.minutes(1)))
.targets(List.of(new ApiDestination(destination)))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
RuleProps.Builder
A builder for
RuleProps |
static class |
RuleProps.Jsii$Proxy
An implementation for
RuleProps |
| Modifier and Type | Method and Description |
|---|---|
static RuleProps.Builder |
builder() |
default Boolean |
getEnabled()
Indicates whether the rule is enabled.
|
default IEventBus |
getEventBus()
The event bus to associate with this rule.
|
default Schedule |
getSchedule()
The schedule or rate (frequency) that determines when EventBridge runs the rule.
|
default List<IRuleTarget> |
getTargets()
Targets to invoke when this rule matches an event.
|
getCrossStackScope, getDescription, getEventPattern, getRuleName@Stability(value=Stable) @Nullable default Boolean getEnabled()
Default: true
@Stability(value=Stable) @Nullable default IEventBus getEventBus()
Default: - The default event bus.
@Stability(value=Stable) @Nullable default Schedule getSchedule()
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.
Default: - None.
@Stability(value=Stable) @Nullable default List<IRuleTarget> getTargets()
Input will be the full matched event. If you wish to specify custom
target input, use addTarget(target[, inputOptions]).
Default: - No targets.
@Stability(value=Stable) static RuleProps.Builder builder()
builder in interface EventCommonOptionsRuleProps.Builder of RulePropsCopyright © 2022. All rights reserved.