View a markdown version of this page

ConditionalRule - AWS End User Messaging SMS

ConditionalRule

A single conditional rule that resolves to a field behavior when all of its conditions evaluate to true. Conditions within a rule are combined with logical AND: all conditions must match for the rule to fire.

Contents

Conditions

The conditions that must all evaluate to true for this rule to match. Conditions are combined with logical AND. Use multiple rules with the same RuleBehavior to express logical OR.

Type: Array of FieldCondition objects

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

Required: Yes

RuleBehavior

The field behavior that applies when all conditions in this rule match. Valid values are REQUIRED, OPTIONAL, and DISALLOWED.

Type: String

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

Pattern: [A-Za-z0-9_]+

Required: Yes

ConditionalValidation

Optional per-rule validation constraints (minimum length, maximum length, regex pattern, allowed select values) that override the field's default validation when this rule matches.

Type: ConditionalValidation object

Required: No

See Also

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