@page "/runtime" @using Amazon.Lambda.TestTool.BlazorTester.Services @using Amazon.Lambda.TestTool.SampleRequests; @using Microsoft.AspNetCore.Http; @inject IHttpContextAccessor httpContextAccessor; @inject LocalLambdaOptions LambdaOptions @inject IRuntimeApiDataStore RuntimeApiModel @inject IModalService Modal
For Lambda functions written as executable assemblies, i.e. custom runtimes functions and top level statement functions, this page can be used for testing the functions locally. Set the AWS_LAMBDA_RUNTIME_API environment variable to @httpContextAccessor.HttpContext.Request.Host while debugging executable assembly Lambda function. More information can be found in the documentation.
Request ID: @RuntimeApiModel.ActiveEvent.AwsRequestId
Status: @RuntimeApiModel.ActiveEvent.EventStatus
Last Updated: @RuntimeApiModel.ActiveEvent.LastUpdated
Event JSON: ShowEventJson(RuntimeApiModel.ActiveEvent)">@CreateSnippet(RuntimeApiModel.ActiveEvent.EventJson)
@if (RuntimeApiModel.ActiveEvent.EventStatus == IEventContainer.Status.Failure) {Error Type: @RuntimeApiModel.ActiveEvent.ErrorType
Error Response:
@RuntimeApiModel.ActiveEvent.ErrorResponse} else {
Response:
@Amazon.Lambda.TestTool.Utils.TryPrettyPrintJson(RuntimeApiModel.ActiveEvent.Response)}