CloudWatchObservabilityAdminService / Client / exceptions / ValidationException

ValidationException

class CloudWatchObservabilityAdminService.Client.exceptions.ValidationException

Indicates input validation failed. Check your request parameters and retry the request.

Example

try:
  ...
except client.exceptions.ValidationException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Message': 'string',
    'Errors': [
        {
            'Message': 'string',
            'Reason': 'string',
            'FieldMap': {
                'string': 'string'
            }
        },
    ],
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    Indicates input validation failed. Check your request parameters and retry the request.

    • Message (string) –

    • Errors (list) –

      The errors in the input which caused the exception.

      • (dict) –

        Represents a detailed validation error with message, reason, and field mapping for comprehensive error reporting.

        • Message (string) –

          The error message describing the validation issue.

        • Reason (string) –

          The reason code or category for the validation error.

        • FieldMap (dict) –

          A mapping of field names to specific validation issues within the configuration.

          • (string) –

            • (string) –

    • 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.