# CfnEventSourceProps

Properties for defining a `CfnEventSource`.

Extends: CfnEventSourceProps
Used as props by: CfnEventSource

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eventsv2 as eventsv2 } from 'aws-cdk-lib';
const cfnEventSourceProps: eventsv2.CfnEventSourceProps = {
  configuration: {
    awsServiceEventsConfiguration: {
      awsService: 'awsService',

      // the properties below are optional
      onFailureConfiguration: {
        arn: 'arn',
      },
      pattern: 'pattern',
    },
    partnerEventsConfiguration: {
      partnerEventSourceArn: 'partnerEventSourceArn',

      // the properties below are optional
      onFailureConfiguration: {
        arn: 'arn',
      },
      partnerBusKmsKeyIdentifier: 'partnerBusKmsKeyIdentifier',
      pattern: 'pattern',
    },
  },
  eventBusArn: 'eventBusArn',
  name: 'name',

  // the properties below are optional
  description: 'description',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `configuration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEventSource.EventSourceConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_eventsv2.CfnEventSource.EventSourceConfigurationProperty.html) (required) — Event source configuration.

  Exactly one of the two variants must be set.

- `description`: string — A description of the event source.

  Control characters and Unicode line separators are not allowed.

- `eventBusArn`: string (required) — The ARN of the custom event bus the event source forwards onto.

- `name`: string (required) — The name of the event source.

  The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'. Names cannot begin with the reserved aws. prefix.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags assigned to the event source.
