IRuleTarget

class aws_cdk.aws_events.IRuleTarget(*args, **kwargs)

Bases: typing_extensions.Protocol

An abstract target for EventRules.

__init__(*args, **kwargs)

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) – The CloudWatch Event Rule that would trigger this target.

  • id (Optional[str]) – The id of the target that will be attached to the rule.

Return type

RuleTargetConfig