EventBus

class aws_cdk.aws_events_targets.EventBus(event_bus, *, role=None)

Bases: object

Notify an existing Event Bus of an event.

Parameters
  • event_bus (IEventBus) –

  • role (Optional[IRole]) – Role to be used to publish the event. Default: a new role is created.

Methods

bind(rule, _id=None)

Returns the rule target specification.

NOTE: Do not use the various inputXxx options. They can be set in a call to addTarget.

Parameters
  • rule (IRule) –

  • _id (Optional[str]) –

Return type

RuleTargetConfig