pub struct SimulatorConfig {Show 13 fields
pub invocation_timeout_ms: u64,
pub init_timeout_ms: u64,
pub function_name: String,
pub function_version: String,
pub memory_size_mb: u32,
pub log_group_name: String,
pub log_stream_name: String,
pub extension_ready_timeout_ms: u64,
pub shutdown_timeout_ms: u64,
pub instance_id: String,
pub handler: Option<String>,
pub account_id: Option<String>,
pub region: String,
}Expand description
Configuration for the Lambda runtime simulator.
§Timeout Limitations
Timeout values are used for calculating invocation deadlines
(the Lambda-Runtime-Deadline-Ms header). Actual timeout enforcement
is not yet implemented - invocations will not be automatically
terminated when they exceed their configured timeout.
Fields§
§invocation_timeout_ms: u64Default timeout for invocations in milliseconds.
Used for deadline calculation in the Lambda-Runtime-Deadline-Ms header.
Timeout enforcement is not currently implemented.
init_timeout_ms: u64Timeout for initialisation phase in milliseconds.
Not currently enforced.
function_name: StringLambda function name, used in telemetry events and environment variables.
function_version: StringLambda function version (e.g., “$LATEST” or a published version number).
memory_size_mb: u32Function memory allocation in MB, used in telemetry metrics.
log_group_name: StringCloudWatch Logs group name for the function.
log_stream_name: StringCloudWatch Logs stream name for this execution environment.
extension_ready_timeout_ms: u64Timeout for waiting for extensions to be ready in milliseconds.
After the runtime completes an invocation, this is the maximum time to wait for all extensions to signal readiness before proceeding with platform.report emission and process freezing.
shutdown_timeout_ms: u64Timeout for graceful shutdown in milliseconds.
During graceful shutdown, this is the maximum time to wait for
extensions subscribed to SHUTDOWN events to complete their cleanup
work by polling /next again.
instance_id: StringUnique instance identifier for this simulator run.
Used in telemetry events to identify the Lambda execution environment.
handler: Option<String>Function handler name (e.g., “index.handler”).
Used in extension registration responses.
account_id: Option<String>AWS account ID.
Used in extension registration responses and ARN construction.
region: StringAWS region.
Used for environment variables and ARN construction. Defaults to “us-east-1”.
Trait Implementations§
Source§impl Clone for SimulatorConfig
impl Clone for SimulatorConfig
Source§fn clone(&self) -> SimulatorConfig
fn clone(&self) -> SimulatorConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more