pub struct EventContext {
pub invoked_function_arn: String,
pub aws_request_id: String,
pub xray_trace_id: Option<String>,
pub deadline: i64,
pub client_context: Option<ClientContext>,
pub identity: Option<CognitoIdentity>,
}
Expand description
The Lambda function execution context. The values in this struct
are populated using the Lambda environment variables
and the headers returned by the poll request to the Runtime APIs.
A new instance of the Context
object is passed to each handler invocation.
Fields§
§invoked_function_arn: String
The ARN of the Lambda function being invoked.
aws_request_id: String
The AWS request ID generated by the Lambda service.
xray_trace_id: Option<String>
The X-Ray trace ID for the current invocation.
deadline: i64
The execution deadline for the current invocation in milliseconds.
client_context: Option<ClientContext>
The client context object sent by the AWS mobile SDK. This field is empty unless the function is invoked using an AWS mobile SDK.
identity: Option<CognitoIdentity>
The Cognito identity that invoked the function. This field is empty unless the invocation request to the Lambda APIs was made using AWS credentials issues by Amazon Cognito Identity Pools.
Trait Implementations§
Source§impl Clone for EventContext
impl Clone for EventContext
Source§fn clone(&self) -> EventContext
fn clone(&self) -> EventContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for EventContext
impl RefUnwindSafe for EventContext
impl Send for EventContext
impl Sync for EventContext
impl Unpin for EventContext
impl UnwindSafe for EventContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more