Struct aws_sdk_lambda::output::InvokeOutput
source · [−]#[non_exhaustive]pub struct InvokeOutput {
pub status_code: i32,
pub function_error: Option<String>,
pub log_result: Option<String>,
pub payload: Option<Blob>,
pub executed_version: Option<String>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.status_code: i32
The HTTP status code is in the 200 range for a successful request. For the RequestResponse
invocation type, this status code is 200. For the Event
invocation type, this status code is 202. For the DryRun
invocation type, the status code is 204.
function_error: Option<String>
If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
log_result: Option<String>
The last 4 KB of the execution log, which is base64 encoded.
payload: Option<Blob>
The response from the function, or an error object.
executed_version: Option<String>
The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
Implementations
sourceimpl InvokeOutput
impl InvokeOutput
sourcepub fn status_code(&self) -> i32
pub fn status_code(&self) -> i32
The HTTP status code is in the 200 range for a successful request. For the RequestResponse
invocation type, this status code is 200. For the Event
invocation type, this status code is 202. For the DryRun
invocation type, the status code is 204.
sourcepub fn function_error(&self) -> Option<&str>
pub fn function_error(&self) -> Option<&str>
If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
sourcepub fn log_result(&self) -> Option<&str>
pub fn log_result(&self) -> Option<&str>
The last 4 KB of the execution log, which is base64 encoded.
sourcepub fn executed_version(&self) -> Option<&str>
pub fn executed_version(&self) -> Option<&str>
The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
sourceimpl InvokeOutput
impl InvokeOutput
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture InvokeOutput
.
Trait Implementations
sourceimpl Clone for InvokeOutput
impl Clone for InvokeOutput
sourcefn clone(&self) -> InvokeOutput
fn clone(&self) -> InvokeOutput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InvokeOutput
impl Debug for InvokeOutput
sourceimpl PartialEq<InvokeOutput> for InvokeOutput
impl PartialEq<InvokeOutput> for InvokeOutput
sourcefn eq(&self, other: &InvokeOutput) -> bool
fn eq(&self, other: &InvokeOutput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InvokeOutput) -> bool
fn ne(&self, other: &InvokeOutput) -> bool
This method tests for !=
.
impl StructuralPartialEq for InvokeOutput
Auto Trait Implementations
impl RefUnwindSafe for InvokeOutput
impl Send for InvokeOutput
impl Sync for InvokeOutput
impl Unpin for InvokeOutput
impl UnwindSafe for InvokeOutput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more