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: 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§
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.