# ReceiptRuleActionConfig

Properties for a receipt rule action.

- Source: [`aws-ses/lib/receipt-rule-action.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ses/lib/receipt-rule-action.ts#L205)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ses as ses } from 'aws-cdk-lib';
const receiptRuleActionConfig: ses.ReceiptRuleActionConfig = {
  addHeaderAction: {
    headerName: 'headerName',
    headerValue: 'headerValue',
  },
  bounceAction: {
    message: 'message',
    sender: 'sender',
    smtpReplyCode: 'smtpReplyCode',

    // the properties below are optional
    statusCode: 'statusCode',
    topicArn: 'topicArn',
  },
  lambdaAction: {
    functionArn: 'functionArn',

    // the properties below are optional
    invocationType: 'invocationType',
    topicArn: 'topicArn',
  },
  s3Action: {
    bucketName: 'bucketName',

    // the properties below are optional
    kmsKeyArn: 'kmsKeyArn',
    objectKeyPrefix: 'objectKeyPrefix',
    topicArn: 'topicArn',
  },
  snsAction: {
    encoding: 'encoding',
    topicArn: 'topicArn',
  },
  stopAction: {
    scope: 'scope',

    // the properties below are optional
    topicArn: 'topicArn',
  },
  workmailAction: {
    organizationArn: 'organizationArn',

    // the properties below are optional
    topicArn: 'topicArn',
  },
};
```

## Properties

- `addHeaderAction`: [AddHeaderActionConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_ses.AddHeaderActionConfig.html) — Adds a header to the received email.

- `bounceAction`: [BounceActionConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_ses.BounceActionConfig.html) — Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon SNS.

- `lambdaAction`: [LambdaActionConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_ses.LambdaActionConfig.html) — Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.

- `s3Action`: [S3ActionConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_ses.S3ActionConfig.html) — Saves the received message to an Amazon S3 bucket and, optionally, publishes a notification to Amazon SNS.

- `snsAction`: [SNSActionConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_ses.SNSActionConfig.html) — Publishes the email content within a notification to Amazon SNS.

- `stopAction`: [StopActionConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_ses.StopActionConfig.html) — Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.

- `workmailAction`: [WorkmailActionConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_ses.WorkmailActionConfig.html) — Calls Amazon WorkMail and, optionally, publishes a notification to Amazon SNS.
