MCPcopy Index your code
hub / github.com/aws/aws-lambda-rust-runtime / with_events

Method with_events

lambda-extension/src/extension.rs:109–114  ·  view source on GitHub ↗

Create a new [`Extension`] with a list of given events. The only accepted events are `INVOKE` and `SHUTDOWN`.

(self, events: &'a [&'a str])

Source from the content-addressed store, hash-verified

107 /// Create a new [`Extension`] with a list of given events.
108 /// The only accepted events are `INVOKE` and `SHUTDOWN`.
109 pub fn with_events(self, events: &'a [&'a str]) -> Self {
110 Extension {
111 events: Some(events),
112 ..self
113 }
114 }
115
116 /// Create a new [`Extension`] with a service that receives Lambda events.
117 pub fn with_events_processor<N>(self, ep: N) -> Extension<'a, N, L, T, TL>

Callers 3

mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected