Skip to main content

error_to_json

Function error_to_json 

Source
pub fn error_to_json(error: &LogsError) -> Vec<u8> 
Expand description

Serialize a CloudWatch Logs error into a JSON response body.

The error format follows the AWS CloudWatch Logs JSON protocol:

{
  "__type": "ResourceNotFoundException",
  "message": "..."
}

Note: CloudWatch Logs uses short error type names and lowercase "message" field.