@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:31.231Z") @Stability(value=Experimental) public class Rule extends Resource implements IRule
| Modifier and Type | Class and Description |
|---|---|
static class |
Rule.Builder
(experimental) A fluent builder for
Rule. |
software.amazon.jsii.JsiiObject.InitializationModeIRule.Jsii$Default, IRule.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Rule(software.constructs.Construct scope,
String id) |
|
Rule(software.constructs.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()
(experimental) Adds an event pattern filter to this rule.
|
void |
addEventPattern(EventPattern eventPattern)
(experimental) Adds an event pattern filter to this rule.
|
void |
addTarget()
(experimental) Adds a target to the rule.
|
void |
addTarget(IRuleTarget target)
(experimental) Adds a target to the rule.
|
static IRule |
fromEventRuleArn(software.constructs.Construct scope,
String id,
String eventRuleArn)
(experimental) Import an existing EventBridge Rule provided an ARN.
|
String |
getRuleArn()
(experimental) The value of the event rule Amazon Resource Name (ARN), such as arn:aws:events:us-east-2:123456789012:rule/example.
|
String |
getRuleName()
(experimental) The name event rule.
|
protected List<String> |
validateRule() |
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Rule(software.amazon.jsii.JsiiObjectRef objRef)
protected Rule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Rule(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
RuleProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public Rule(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public static IRule fromEventRuleArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String eventRuleArn)
scope - The parent creating construct (usually `this`). This parameter is required.id - The construct's name. This parameter is required.eventRuleArn - Event Rule ARN (i.e. arn:aws:events:@Stability(value=Experimental)
public void addEventPattern(@Nullable
EventPattern eventPattern)
If a pattern was already specified, these values are merged into the existing pattern.
For example, if the rule already contains the pattern:
{
"resources": [ "r1" ],
"detail": {
"hello": [ 1 ]
}
}
And addEventPattern is called with the pattern:
{
"resources": [ "r2" ],
"detail": {
"foo": [ "bar" ]
}
}
The resulting event pattern will be:
{
"resources": [ "r1", "r2" ],
"detail": {
"hello": [ 1 ],
"foo": [ "bar" ]
}
}
eventPattern - @Stability(value=Experimental) public void addEventPattern()
If a pattern was already specified, these values are merged into the existing pattern.
For example, if the rule already contains the pattern:
{
"resources": [ "r1" ],
"detail": {
"hello": [ 1 ]
}
}
And addEventPattern is called with the pattern:
{
"resources": [ "r2" ],
"detail": {
"foo": [ "bar" ]
}
}
The resulting event pattern will be:
{
"resources": [ "r1", "r2" ],
"detail": {
"hello": [ 1 ],
"foo": [ "bar" ]
}
}
@Stability(value=Experimental)
public void addTarget(@Nullable
IRuleTarget target)
No-op if target is undefined.
target - @Stability(value=Experimental) public void addTarget()
No-op if target is undefined.
@Stability(value=Experimental) @NotNull public String getRuleArn()
getRuleArn in interface IRule@Stability(value=Experimental) @NotNull public String getRuleName()
getRuleName in interface IRuleCopyright © 2021. All rights reserved.