using System;
using System.Runtime.Serialization;
namespace Amazon.Lambda.TestTool.Runtime
{
///
/// The class represents the output of an executed Lambda function.
///
public class ExecutionResponse
{
///
/// The return data from a Lambda function.
///
public string Response { get; set; }
///
/// The logs captures from calls to ILambdaContext.Logger and Console.Write
///
public string Logs { get; set; }
///
/// If an unhandled exception occured in the Lambda function this will contain the error message and stack trace.
///
public string Error { get; set; }
///
/// True if the Lambda function was executed without any unhandled exceptions.
///
public bool IsSuccess => this.Error == null;
}
}