Rule - Amazon SES Mail Manager API

Rule

A rule contains conditions, "unless conditions" and actions. For each envelope recipient of an email, if all conditions match and none of the "unless conditions" match, then all of the actions are executed sequentially. If no conditions are provided, the rule always applies and the actions are implicitly executed. If only "unless conditions" are provided, the rule applies if the email does not match the evaluation of the "unless conditions".

Contents

Actions

The list of actions to execute when the conditions match the incoming email, and none of the "unless conditions" match.

Type: Array of RuleAction objects

Array Members: Minimum number of 1 item. Maximum number of 10 items.

Required: Yes

Conditions

The conditions of this rule. All conditions must match the email for the actions to be executed. An empty list of conditions means that all emails match, but are still subject to any "unless conditions"

Type: Array of RuleCondition objects

Array Members: Minimum number of 0 items. Maximum number of 10 items.

Required: No

Name

The user-friendly name of the rule.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 32.

Pattern: ^[a-zA-Z0-9_.-]+$

Required: No

Unless

The "unless conditions" of this rule. None of the conditions can match the email for the actions to be executed. If any of these conditions do match the email, then the actions are not executed.

Type: Array of RuleCondition objects

Array Members: Minimum number of 0 items. Maximum number of 10 items.

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: