# ReceiptRuleOptions

Options to add a receipt rule to a receipt rule set.

- Source: [`aws-ses/lib/receipt-rule.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-ses/lib/receipt-rule.ts#L45)
- Type last changed: v2.235.0 · 15 Jan 2026

## Example

```ts
const ruleSet = new ses.ReceiptRuleSet(this, 'RuleSet');

const awsRule = ruleSet.addRule('Aws', {
  recipients: ['aws.com'],
});
```

## Properties

- `actions`: [IReceiptRuleAction](/cdk/api/v2/docs/aws-cdk-lib.aws_ses.IReceiptRuleAction.html)[] = No actions. — An ordered list of actions to perform on messages that match at least one of the recipient email addresses or domains specified in the receipt rule.

- `after`: [IReceiptRuleRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ses.IReceiptRuleRef.html) = The new rule is inserted at the beginning of the rule list. — An existing rule after which the new rule will be placed.

  **Default:** The new rule is inserted at the beginning of the rule list.

- `enabled`: boolean = true — Whether the rule is active.

- `receiptRuleName`: string = A CloudFormation generated name. — The name for the rule.

- `recipients`: string[] = Match all recipients under all verified domains. — The recipient domains and email addresses that the receipt rule applies to.

  **Default:** Match all recipients under all verified domains.

- `scanEnabled`: boolean = false — Whether to scan for spam and viruses.

- `tlsPolicy`: [TlsPolicy](/cdk/api/v2/docs/aws-cdk-lib.aws_ses.TlsPolicy.html) = Optional which will not check for TLS. — Whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS).

  **Default:** Optional which will not check for TLS.
