# IRuleTarget

An abstract target for EventRules.

Extends: IRuleTarget
Implemented by: ApiDestination, ApiGateway, ApiGatewayV2, AppSync, AwsApi, BatchJob, CloudWatchLogGroup, CodeBuildProject, CodePipeline, EcsTask, EventBus, FirehoseDeliveryStream, KinesisFirehoseStream, KinesisFirehoseStreamV2, KinesisStream, LambdaFunction, RedshiftQuery, SfnStateMachine, SnsTopic, SqsQueue

- Source: [`aws-events/lib/target.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-events/lib/target.ts#L10)
- Type last changed: v2.235.0 · 15 Jan 2026

## Methods

- `bind(rule: IRuleRef, id?: string): RuleTargetConfig` — Returns the rule target specification.

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

  **Parameters**

  - `rule` — The EventBridge Rule that would trigger this target.
  - `id` — The id of the target that will be attached to the rule.
