class Shawarma::Context

Represents the context passed to the AWS Lambda function. This object provides details about the execution state and environment of the Lambda function.

Public Instance Methods

client_context() click to toggle source

Provides information about the client application and device when invoked through the AWS Mobile SDK.

@return [ClientContext, nil]

# File lib/shawarma/context.rb, line 39
def client_context; end
function_name() click to toggle source

@return [String] name of the function being executed

# File lib/shawarma/context.rb, line 21
def function_name; end
function_version() click to toggle source

@return [String] version of the function being executed

# File lib/shawarma/context.rb, line 24
def function_version; end
identity() click to toggle source

Provides information about the Amazon Cognito identity provider when invoked through the AWS Mobile SDK.

@return [CognitoIdentity, nil]

# File lib/shawarma/context.rb, line 33
def identity; end
invoked_function_arn() click to toggle source

@return [String] function Arn of the resource being invoked

# File lib/shawarma/context.rb, line 27
def invoked_function_arn; end
log_group_name() click to toggle source

@return [String, nil] name of CloudWatch log group container is configured to log to

# File lib/shawarma/context.rb, line 15
def log_group_name; end
log_stream_name() click to toggle source

@return [String, nil] name of CloudWatch log stream container is configured to log to

# File lib/shawarma/context.rb, line 18
def log_stream_name; end
logger() click to toggle source

@return [LambdaLogger] logger instance for this context

# File lib/shawarma/context.rb, line 48
def logger; end
memory_limit() click to toggle source

@return [Fixnum] memory size configured for the Lambda function in megabytes

# File lib/shawarma/context.rb, line 45
def memory_limit; end
remaining_time() click to toggle source

@return [Fixnum] time remaining for this execution in milliseconds

# File lib/shawarma/context.rb, line 42
def remaining_time; end
request_id() click to toggle source

This is the same ID returned to the client that called invoke(). This ID is reused for retries on the same request.

@return [String] AWS request ID associated with the request

# File lib/shawarma/context.rb, line 12
def request_id; end