class SLS::Lambda::Runtime

Defined in:

serverless/lambda/runtime.cr

Constant Summary

BASE_URL = "/2018-06-01/runtime/invocation"

AWS Lambda request variables

CLIENT_CONTEXT_HEADER = "Lambda-Runtime-Client-Context"
COGNITO_IDENTITY_HEADER = "Lambda-Runtime-Cognito-Identity"
DEADLINE_HEADER = "Lambda-Runtime-Deadline-Ms"
FUNCTION_ARN_HEADER = "Lambda-Runtime-Invoked-Function-Arn"
FUNCTION_MEMORY_SIZE = "AWS_LAMBDA_FUNCTION_MEMORY_SIZE"
FUNCTION_VERSION = "AWS_LAMBDA_FUNCTION_VERSION"
LOG_GROUP_NAME = "AWS_LAMBDA_LOG_GROUP_NAME"
LOG_STREAM_NAME = "AWS_LAMBDA_LOG_STREAM_NAME"
NEXT_URL = BASE_URL + "/next"
REQUEST_ID_HEADER = "Lambda-Runtime-Aws-Request-Id"
RUNTIME_API = "AWS_LAMBDA_RUNTIME_API"

AWS Lambda Environment Variables

TRACE_ID = "_X_AMZN_TRACE_ID"
TRACE_ID_HEADER = "Lambda-Runtime-Trace-Id"

Class Method Summary

Class Method Detail

def self.break_loop=(val : Bool) #

[View source]
def self.run_handler(handler : Proc(Context, Nil)) #

[View source]