# EventSourceConfigurationProperty

Event source configuration.

Exactly one of the two variants must be set.

- 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 eventSourceConfigurationProperty: eventsv2.CfnEventSource.EventSourceConfigurationProperty = {
  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',
  },
};
```

## Properties

- `awsServiceEventsConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEventSource.AwsServiceEventsConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_eventsv2.CfnEventSource.AwsServiceEventsConfigurationProperty.html) — Forward a single AWS service's events from the account's default event bus.

- `partnerEventsConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEventSource.PartnerEventsConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_eventsv2.CfnEventSource.PartnerEventsConfigurationProperty.html) — Forward a partner event source's events through a managed partner event bus.
