

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::Pinpoint::Campaign EventDimensions
<a name="aws-properties-pinpoint-campaign-eventdimensions"></a>

Specifies the dimensions for an event filter that determines when a campaign is sent or a journey activity is performed.

## Syntax
<a name="aws-properties-pinpoint-campaign-eventdimensions-syntax"></a>

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

### JSON
<a name="aws-properties-pinpoint-campaign-eventdimensions-syntax.json"></a>

```
{
  "[Attributes](#cfn-pinpoint-campaign-eventdimensions-attributes)" : Json,
  "[EventType](#cfn-pinpoint-campaign-eventdimensions-eventtype)" : SetDimension,
  "[Metrics](#cfn-pinpoint-campaign-eventdimensions-metrics)" : Json
}
```

### YAML
<a name="aws-properties-pinpoint-campaign-eventdimensions-syntax.yaml"></a>

```
  [Attributes](#cfn-pinpoint-campaign-eventdimensions-attributes): Json
  [EventType](#cfn-pinpoint-campaign-eventdimensions-eventtype): 
    SetDimension
  [Metrics](#cfn-pinpoint-campaign-eventdimensions-metrics): Json
```

## Properties
<a name="aws-properties-pinpoint-campaign-eventdimensions-properties"></a>

`Attributes`  <a name="cfn-pinpoint-campaign-eventdimensions-attributes"></a>
One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.  
*Required*: No  
*Type*: Json  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`EventType`  <a name="cfn-pinpoint-campaign-eventdimensions-eventtype"></a>
The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard event that Amazon Pinpoint generates, such as `_email.delivered` or `_custom.delivered`. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see [Streaming Amazon Pinpoint Events](https://docs.amazonaws.cn/pinpoint/latest/developerguide/event-streams.html) in the *Amazon Pinpoint Developer Guide*.  
*Required*: No  
*Type*: [SetDimension](aws-properties-pinpoint-campaign-setdimension.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Metrics`  <a name="cfn-pinpoint-campaign-eventdimensions-metrics"></a>
One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.  
*Required*: No  
*Type*: Json  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)