Struct aws_sdk_lambda::operation::invoke::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>,
/* private fields */
}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: i32The 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§
source§impl 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.
source§impl InvokeOutput
impl InvokeOutput
sourcepub fn builder() -> InvokeOutputBuilder
pub fn builder() -> InvokeOutputBuilder
Creates a new builder-style object to manufacture InvokeOutput.
Trait Implementations§
source§impl Clone for InvokeOutput
impl Clone for InvokeOutput
source§fn clone(&self) -> InvokeOutput
fn clone(&self) -> InvokeOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for InvokeOutput
impl Debug for InvokeOutput
source§impl PartialEq for InvokeOutput
impl PartialEq for InvokeOutput
source§fn eq(&self, other: &InvokeOutput) -> bool
fn eq(&self, other: &InvokeOutput) -> bool
self and other values to be equal, and is used
by ==.source§impl RequestId for InvokeOutput
impl RequestId for InvokeOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.impl StructuralPartialEq for InvokeOutput
Auto Trait Implementations§
impl Freeze for InvokeOutput
impl RefUnwindSafe for InvokeOutput
impl Send for InvokeOutput
impl Sync for InvokeOutput
impl Unpin for InvokeOutput
impl UnwindSafe for InvokeOutput
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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