Interface RuleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RuleProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:37.054Z")
@Stability(Stable)
public interface RuleProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining an EventBridge Rule.
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();
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuleProps.Builder
builder()
default String
A description of the rule's purpose.default Boolean
Indicates whether the rule is enabled.default IEventBus
The event bus to associate with this rule.default EventPattern
Describes which events EventBridge routes to the specified target.default String
A name for the rule.default Schedule
The schedule or rate (frequency) that determines when EventBridge runs the rule.default List<IRuleTarget>
Targets to invoke when this rule matches an event.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDescription
A description of the rule's purpose.Default: - No description.
-
getEnabled
Indicates whether the rule is enabled.Default: true
-
getEventBus
The event bus to associate with this rule.Default: - The default event bus.
-
getEventPattern
Describes which events EventBridge routes to the specified target.These routed events are matched events. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
Default: - None.
- See Also:
-
getRuleName
A name for the rule.Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the rule name. For more information, see Name Type.
-
getSchedule
The schedule or rate (frequency) that determines when EventBridge runs the rule.For more information, see Schedule Expression Syntax for Rules in the Amazon EventBridge User Guide.
Default: - None.
- See Also:
-
getTargets
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])
.Default: - No targets.
-
builder
- Returns:
- a
RuleProps.Builder
ofRuleProps
-