# CfnEventActionProps

Properties for defining a `CfnEventAction`.

Extends: CfnEventActionProps
Used as props by: CfnEventAction

- Source: Generated code
- Type last changed: v2.268.0 · 2 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_dataexchange as dataexchange } from 'aws-cdk-lib';
const cfnEventActionProps: dataexchange.CfnEventActionProps = {
  action: {
    exportRevisionToS3: {
      revisionDestination: {
        bucket: 'bucket',

        // the properties below are optional
        keyPattern: 'keyPattern',
      },

      // the properties below are optional
      encryption: {
        type: 'type',

        // the properties below are optional
        kmsKeyArn: 'kmsKeyArn',
      },
    },
  },
  event: {
    revisionPublished: {
      dataSetId: 'dataSetId',
    },
  },

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

## Properties

- `action`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEventAction.ActionProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_dataexchange.CfnEventAction.ActionProperty.html) (required) — What occurs after a certain event.

- `event`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEventAction.EventProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_dataexchange.CfnEventAction.EventProperty.html) (required) — What occurs to start an action.

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