@Generated(value="jsii-pacmak/0.20.4 (build 96d89e1)", date="2019-11-12T11:54:41.049Z") @Stability(value=Stable) public class Rule extends Resource implements IRule
| Modifier and Type | Class and Description |
|---|---|
static class |
Rule.Builder
A fluent builder for
Rule. |
software.amazon.jsii.JsiiObject.InitializationModeIRule.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Rule(Construct scope,
String id) |
|
Rule(Construct scope,
String id,
RuleProps props) |
protected |
Rule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Rule(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventPattern()
Adds an event pattern filter to this rule.
|
void |
addEventPattern(EventPattern eventPattern)
Adds an event pattern filter to this rule.
|
void |
addTarget()
Adds a target to the rule.
|
void |
addTarget(IRuleTarget target)
Adds a target to the rule.
|
static IRule |
fromEventRuleArn(Construct scope,
String id,
String eventRuleArn) |
String |
getRuleArn()
The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example.
|
String |
getRuleName()
The name event rule.
|
protected List<String> |
validate()
Validate the current construct.
|
generatePhysicalName, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStackgetNode, isConstruct, prepare, synthesize, toStringjsiiAsyncCall, jsiiCall, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticGet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNodeprotected Rule(software.amazon.jsii.JsiiObjectRef objRef)
protected Rule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public Rule(Construct scope, String id, RuleProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable) public static IRule fromEventRuleArn(Construct scope, String id, String eventRuleArn)
scope - This parameter is required.id - This parameter is required.eventRuleArn - This parameter is required.@Stability(value=Stable) public void addEventPattern(EventPattern eventPattern)
eventPattern - @Stability(value=Stable) public void addEventPattern()
@Stability(value=Stable) public void addTarget(IRuleTarget target)
target - @Stability(value=Stable) public void addTarget()
@Stability(value=Stable) protected List<String> validate()
@Stability(value=Stable) public String getRuleArn()
getRuleArn in interface IRule@Stability(value=Stable) public String getRuleName()
getRuleName in interface IRuleCopyright © 2019. All rights reserved.