ConditionalValidation
Per-rule validation constraints that override the field's default validation when the containing rule matches. All fields are optional; only the constraints that need to differ from the field's default validation are provided.
Contents
- AllowedValues
-
The allowed values for a select field when this rule applies. A subset of the field's full option list.
Type: Array of strings
Array Members: Minimum number of 0 items. Maximum number of 100 items.
Length Constraints: Minimum length of 1. Maximum length of 256.
Required: No
- MaxLength
-
The maximum length for the field value when this rule applies.
Type: Integer
Valid Range: Minimum value of 0.
Required: No
- MinLength
-
The minimum length for the field value when this rule applies.
Type: Integer
Valid Range: Minimum value of 0.
Required: No
- Pattern
-
A regular expression that the field value must match when this rule applies.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 2048.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: