# Functions
EnvAWSLambdaFunctionMemorySizeMB returns the amount of memory available to the function in MB.
EnvAWSLambdaFunctionName returns the name of the function.
EnvAWSLambdaFunctionVersion returns the version of the function being executed.
EnvAWSLambdaInitializationType returns the initialization type of the function, which is either on-demand or provisioned-concurrency.
EnvAWSLambdaRuntimeAPI returns the host and port of the runtime API for custom runtime.
EnvAWSRegion returns the AWS Region where the Lambda function is executed.
EnvXAmznTraceID returns X-Ray tracing header.
NewLogsSubscribeRequest creates LogsSubscribeRequest with sensible defaults.
NewTelemetrySubscribeRequest creates TelemetrySubscribeRequest with sensible defaults.
Register registers the extension with the Lambda Extensions API.
Run runs the Extension.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
ExtensionError is used when one of Client or Extension methods return error.
Failure is any other shutdown type, such as out-of-memory.
HTTPPost is to receive logs through POST.
No description provided by the author
HTTPPut is to receive logs through PUT.
Invoke is the lambda invoke event.
No description provided by the author
No description provided by the author
LogSubscriptionTypeExtension is to receive logs emitted by the extension.
LogSubscriptionTypeFunction is to receive logs emitted by the function.
LogSubscriptionTypePlatform is to receive logs emitted by the platform.
Shutdown is a shutdown event for the environment.
Spindown is a normal end to a function.
No description provided by the author
TelemetrySubscriptionTypeExtension is custom logs that the Lambda extension code generates.
TelemetrySubscriptionTypeFunction is custom logs that the Lambda function code generates.
TelemetrySubscriptionTypePlatform is logs, metrics, and traces, which describe events and errors related to the execution environment runtime lifecycle, extension lifecycle, and function invocations.
Timeout means the handler ran out of time.
# Structs
Client is a Low-level Lambda API client.
ErrorResponse is the body of the response for /init/error and /exit/error.
No description provided by the author
LogsBufferingCfg is the configuration set for receiving logs from Logs API.
LogsDestination is the configuration for listeners who would like to receive logs with HTTP.
LogsSubscribeRequest is the request body that is sent to Logs API on subscribe.
NextEventResponse is the response for /event/next.
No description provided by the author
RegisterResponse is the body of the response for /register.
TelemetryBufferingCfg is the configuration set for receiving events from Telemetry API.
TelemetryDestination is the configuration settings that define the telemetry event destination and the protocol for event delivery.
TelemetrySubscribeRequest is the request body that is sent to Telemetry API on subscribe.
Tracing is part of the response for /event/next.
# Type aliases
EventType represents the type of events received from /event/next.
LogsHTTPEncoding denotes what the content is encoded in.
LogsHTTPMethod represents the HTTP method used to receive logs from Logs API.
LogsHTTPProtocol is used to specify the protocol when subscribing to Logs API for HTTP.
No description provided by the author
LogSubscriptionType represents the type of logs in Lambda.
ShutdownReason represents the reason for a shutdown event.
No description provided by the author
TelemetrySubscriptionType represents the type of telemetry events in Lambda.