RuleProps
Properties for defining a Rule.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-eventbridge-rule
Initializer
import com.aliyun.ros.cdk.eventbridge.RuleProps;
RuleProps.builder()
.eventBusName(java.lang.String)
.eventBusName(IResolvable)
.filterPattern(IResolvable)
.filterPattern(java.util.Map<java.lang.String, java.lang.Object>)
.ruleName(java.lang.String)
.ruleName(IResolvable)
.targets(IResolvable)
.targets(java.util.List<IResolvable)
.targets(TargetsProperty>)
// .description(java.lang.String)
// .description(IResolvable)
// .status(java.lang.String)
// .status(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
eventBusName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property eventBusName: The name of the event bus. |
filterPattern | com.aliyun.ros.cdk.core.IResolvable OR java.util.Map | Property filterPattern: The event pattern, in JSON format. |
ruleName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ruleName: The name of the event rule. |
targets | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property targets: The event target to which events are delivered. |
description | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property description: The description of the event rule. |
status | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property status: The status of the event rule. |
eventBusNameRequired
public java.lang.Object getEventBusName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property eventBusName: The name of the event bus.
filterPatternRequired
public java.lang.Object getFilterPattern();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map
Property filterPattern: The event pattern, in JSON format.
Supported pattern types are stringEqual and stringExpression. Each field can contain a maximum of five expressions in a map structure.
ruleNameRequired
public java.lang.Object getRuleName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ruleName: The name of the event rule.
targetsRequired
public java.lang.Object getTargets();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
TargetsProperty>
Property targets: The event target to which events are delivered.
descriptionOptional
public java.lang.Object getDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: The description of the event rule.
statusOptional
public java.lang.Object getStatus();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property status: The status of the event rule.
Valid values: ENABLE: The event rule is enabled. It is the default state of the event rule. DISABLE: The event rule is disabled.