@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.326Z") @Stability(value=Stable) public class EventBus extends software.amazon.jsii.JsiiObject implements IRuleTarget
Example:
Rule rule = Rule.Builder.create(this, "Rule")
.schedule(Schedule.expression("rate(1 minute)"))
.build();
rule.addTarget(new EventBus(EventBus.fromEventBusArn(this, "External", "arn:aws:events:eu-west-1:999999999999:event-bus/test-bus")));
| Modifier and Type | Class and Description |
|---|---|
static class |
EventBus.Builder
A fluent builder for
EventBus. |
software.amazon.jsii.JsiiObject.InitializationModeIRuleTarget.Jsii$Default, IRuleTarget.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
EventBus(IEventBus eventBus) |
|
EventBus(IEventBus eventBus,
EventBusProps props) |
protected |
EventBus(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
EventBus(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
RuleTargetConfig |
bind(IRule rule)
Returns the rule target specification.
|
RuleTargetConfig |
bind(IRule rule,
String _id)
Returns the rule target specification.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected EventBus(software.amazon.jsii.JsiiObjectRef objRef)
protected EventBus(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public EventBus(@NotNull
IEventBus eventBus,
@Nullable
EventBusProps props)
eventBus - This parameter is required.props - @Stability(value=Stable)
public EventBus(@NotNull
IEventBus eventBus)
eventBus - This parameter is required.@Stability(value=Stable) @NotNull public RuleTargetConfig bind(@NotNull IRule rule, @Nullable String _id)
NOTE: Do not use the various inputXxx options. They can be set in a call to addTarget.
bind in interface IRuleTargetrule - This parameter is required._id - @Stability(value=Stable) @NotNull public RuleTargetConfig bind(@NotNull IRule rule)
NOTE: Do not use the various inputXxx options. They can be set in a call to addTarget.
bind in interface IRuleTargetrule - This parameter is required.Copyright © 2022. All rights reserved.