MWAAServerless / Client / exceptions / ValidationException
ValidationException¶
- class MWAAServerless.Client.exceptions.ValidationException¶
The specified request parameters are invalid, missing, or inconsistent with Amazon Managed Workflows for Apache Airflow Serverless service requirements. This can occur when workflow definitions contain unsupported operators, when required IAM permissions are missing, when S3 locations are inaccessible, or when network configurations are invalid. The service validates workflow definitions, execution roles, and resource configurations to ensure compatibility with the managed Airflow environment and security requirements.
Example
try: ... except client.exceptions.ValidationException as e: print(e.response)
- response¶
The parsed error response. All exceptions have a top level
Errorkey that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'Message': 'string', 'Reason': 'unknownOperation'|'cannotParse'|'fieldValidationFailed'|'other', 'FieldList': [ { 'Name': 'string', 'Message': 'string' }, ], 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The specified request parameters are invalid, missing, or inconsistent with Amazon Managed Workflows for Apache Airflow Serverless service requirements. This can occur when workflow definitions contain unsupported operators, when required IAM permissions are missing, when S3 locations are inaccessible, or when network configurations are invalid. The service validates workflow definitions, execution roles, and resource configurations to ensure compatibility with the managed Airflow environment and security requirements.
Message (string) –
Reason (string) –
The reason the request failed validation.
FieldList (list) –
The fields that failed validation.
(dict) –
Contains information about a field that failed validation, including the field name and a descriptive error message.
Name (string) –
The name of the field that failed validation.
Message (string) –
A message that describes why the field failed validation.
Error (dict) – Normalized access to common exception attributes.
Code (string) – An identifier specifying the exception type.
Message (string) – A descriptive message explaining why the exception occured.