

# ValidationError

Describes one reason that a request failed validation. Exactly one member is set.

## Contents
<a name="API_ValidationError_Contents"></a>

**Important**  
This data type is a UNION, so only one of the following members can be specified when used or returned.

 ** fieldConstraint **   <a name="systemsmanagercloudextensions-Type-ValidationError-fieldConstraint"></a>
The value of a field failed a constraint, such as a length limit or a pattern.  
Type: [FieldConstraint](API_FieldConstraint.md) object  
Required: No

 ** semanticError **   <a name="systemsmanagercloudextensions-Type-ValidationError-semanticError"></a>
The request has a problem that a single constraint doesn't describe, such as an `approve` entry that names no capability, or an expired `nextToken`.  
Type: [SemanticError](API_SemanticError.md) object  
Required: No

## See Also
<a name="API_ValidationError_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/cloudextensions-2026-11-29/ValidationError) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/cloudextensions-2026-11-29/ValidationError) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/cloudextensions-2026-11-29/ValidationError) 