SimulatorConfig

Struct SimulatorConfig 

Source
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: u64

Default 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: u64

Timeout for initialisation phase in milliseconds.

Not currently enforced.

§function_name: String

Lambda function name, used in telemetry events and environment variables.

§function_version: String

Lambda function version (e.g., “$LATEST” or a published version number).

§memory_size_mb: u32

Function memory allocation in MB, used in telemetry metrics.

§log_group_name: String

CloudWatch Logs group name for the function.

§log_stream_name: String

CloudWatch Logs stream name for this execution environment.

§extension_ready_timeout_ms: u64

Timeout 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: u64

Timeout 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: String

Unique 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: String

AWS region.

Used for environment variables and ARN construction. Defaults to “us-east-1”.

Trait Implementations§

Source§

impl Clone for SimulatorConfig

Source§

fn clone(&self) -> SimulatorConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SimulatorConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SimulatorConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more