public LambdaInvocationRequest(string functionName, LambdaInvocationType invocationType, string payloadFilePath) { if (string.IsNullOrWhiteSpace(functionName)) { throw new InvalidOperationException($"The function name cannot be empty"); } FunctionName = functionName; InvocationType = invocationType; PayloadFilePath = payloadFilePath; }
public InvocationType Convert(LambdaInvocationType invocationType) { switch (invocationType) { case LambdaInvocationType.Event: return(InvocationType.Event); case LambdaInvocationType.RequestResponse: return(InvocationType.RequestResponse); } throw new NotImplementedException($"The invocation type '{invocationType.ToString("G")}' is not currently supported."); }