# ICustomEventRule

Represents a custom event rule in AWS CodePipeline Actions.

This interface defines the structure for specifying a custom event rule
in the AWS CodePipeline Actions module. The event rule is defined by an
event pattern and a target.

- Source: [`aws-codepipeline-actions/lib/codecommit/source-action.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-codepipeline-actions/lib/codecommit/source-action.ts#L69)
- Type last changed: v2.122.0 · 18 Jan 2024

## Properties

- `description`: string — Description.

- `eventPattern`: [EventPattern](/cdk/api/v2/docs/aws-cdk-lib.aws_events.EventPattern.html) (required) — event pattern when this rule should be triggered.

- `ruleName`: string — Rulename.

- `target`: [IRuleTarget](/cdk/api/v2/docs/aws-cdk-lib.aws_events.IRuleTarget.html) (required) — Target e.g. Lambda when event pattern is fulfilled.
