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
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
@return [String] name of the function being executed
# File lib/shawarma/context.rb, line 21 def function_name; end
@return [String] version of the function being executed
# File lib/shawarma/context.rb, line 24 def function_version; end
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
@return [String] function Arn of the resource being invoked
# File lib/shawarma/context.rb, line 27 def invoked_function_arn; end
@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
@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
@return [LambdaLogger] logger instance for this context
# File lib/shawarma/context.rb, line 48 def logger; end
@return [Fixnum] memory size configured for the Lambda function in megabytes
# File lib/shawarma/context.rb, line 45 def memory_limit; end
@return [Fixnum] time remaining for this execution in milliseconds
# File lib/shawarma/context.rb, line 42 def remaining_time; end
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