

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::EventsV2::EventSource EventSourceConfiguration
<a name="aws-properties-eventsv2-eventsource-eventsourceconfiguration"></a>

Event source configuration. Exactly one of the two variants must be set.

## Syntax
<a name="aws-properties-eventsv2-eventsource-eventsourceconfiguration-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-eventsv2-eventsource-eventsourceconfiguration-syntax.json"></a>

```
{
  "[AwsServiceEventsConfiguration](#cfn-eventsv2-eventsource-eventsourceconfiguration-awsserviceeventsconfiguration)" : {{AwsServiceEventsConfiguration}},
  "[PartnerEventsConfiguration](#cfn-eventsv2-eventsource-eventsourceconfiguration-partnereventsconfiguration)" : {{PartnerEventsConfiguration}}
}
```

### YAML
<a name="aws-properties-eventsv2-eventsource-eventsourceconfiguration-syntax.yaml"></a>

```
  [AwsServiceEventsConfiguration](#cfn-eventsv2-eventsource-eventsourceconfiguration-awsserviceeventsconfiguration): {{
    AwsServiceEventsConfiguration}}
  [PartnerEventsConfiguration](#cfn-eventsv2-eventsource-eventsourceconfiguration-partnereventsconfiguration): {{
    PartnerEventsConfiguration}}
```

## Properties
<a name="aws-properties-eventsv2-eventsource-eventsourceconfiguration-properties"></a>

`AwsServiceEventsConfiguration`  <a name="cfn-eventsv2-eventsource-eventsourceconfiguration-awsserviceeventsconfiguration"></a>
Configuration for forwarding a single Amazon service's events.  
*Required*: No  
*Type*: [AwsServiceEventsConfiguration](aws-properties-eventsv2-eventsource-awsserviceeventsconfiguration.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`PartnerEventsConfiguration`  <a name="cfn-eventsv2-eventsource-eventsourceconfiguration-partnereventsconfiguration"></a>
Configuration for forwarding a partner event source's events.  
*Required*: No  
*Type*: [PartnerEventsConfiguration](aws-properties-eventsv2-eventsource-partnereventsconfiguration.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)