class SLS::Lambda::Context

Defined in:

serverless/lambda/http_context.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(function_name : String, function_version : String, memory_limit_in_mb : UInt32, log_group_name : String, log_stream_name : String, aws_request_id : String, invoked_function_arn : String, deadline_ms : Int64, identity : JSON::Any, client_context : JSON::Any, host : String, port : String, req : HTTPRequest, res : HTTPResponse) #

[View source]

Instance Method Detail

def aws_request_id : String #

The current request id from aws


[View source]
def client_context : JSON::Any #

[View source]
def deadline_ms : Int64 #

[View source]
def function_name : String #

The name of the lambda function


[View source]
def function_version : String #

The current function version


[View source]
def get_remaining_time_in_millis #

[View source]
def host : String #

[View source]
def identity : JSON::Any #

[View source]
def invoked_function_arn : String #

[View source]
def log_group_name : String #

[View source]
def log_stream_name : String #

[View source]
def memory_limit_in_mb : UInt32 #

The memory limit currently allocated to this function in Megabytes


[View source]
def port : String #

[View source]
def req : HTTPRequest #

[View source]
def res : HTTPResponse #

[View source]