Class EventBus
Notify an existing Event Bus of an event.
Inheritance
System.Object
EventBus
Implements
Namespace: Amazon.CDK.AWS.Events.Targets
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EventBus : DeputyBase, IRuleTarget
Syntax (vb)
Public Class EventBus
Inherits DeputyBase
Implements IRuleTarget
Remarks
ExampleMetadata: infused
Examples
var rule = new Rule(this, "Rule", new RuleProps {
Schedule = Schedule.Expression("rate(1 minute)")
});
rule.AddTarget(new EventBus(EventBus.FromEventBusArn(this, "External", "arn:aws:events:eu-west-1:999999999999:event-bus/test-bus")));
Synopsis
Constructors
EventBus(IEventBus, IEventBusProps) | |
EventBus(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
EventBus(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(IRule, String) | Returns the rule target specification. |
Constructors
EventBus(IEventBus, IEventBusProps)
public EventBus(IEventBus eventBus, IEventBusProps props = null)
Parameters
- eventBus IEventBus
- props IEventBusProps
EventBus(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected EventBus(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
EventBus(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected EventBus(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(IRule, String)
Returns the rule target specification.
public virtual IRuleTargetConfig Bind(IRule rule, string id = null)
Parameters
- rule IRule
- id System.String
Returns
Remarks
NOTE: Do not use the various inputXxx
options. They can be set in a call to addTarget
.