pub struct Builder { /* private fields */ }
Expand description
A builder for StartLambdaFunctionFailedEventAttributes
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn scheduled_event_id(self, input: i64) -> Self
pub fn scheduled_event_id(self, input: i64) -> Self
The ID of the ActivityTaskScheduled
event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
sourcepub fn set_scheduled_event_id(self, input: Option<i64>) -> Self
pub fn set_scheduled_event_id(self, input: Option<i64>) -> Self
The ID of the ActivityTaskScheduled
event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
sourcepub fn cause(self, input: StartLambdaFunctionFailedCause) -> Self
pub fn cause(self, input: StartLambdaFunctionFailedCause) -> Self
The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
If cause
is set to OPERATION_NOT_PERMITTED
, the decision failed because the IAM role attached to the execution lacked sufficient permissions. For details and example IAM policies, see Lambda Tasks in the Amazon SWF Developer Guide.
sourcepub fn set_cause(self, input: Option<StartLambdaFunctionFailedCause>) -> Self
pub fn set_cause(self, input: Option<StartLambdaFunctionFailedCause>) -> Self
The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
If cause
is set to OPERATION_NOT_PERMITTED
, the decision failed because the IAM role attached to the execution lacked sufficient permissions. For details and example IAM policies, see Lambda Tasks in the Amazon SWF Developer Guide.
sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
A description that can help diagnose the cause of the fault.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
A description that can help diagnose the cause of the fault.
sourcepub fn build(self) -> StartLambdaFunctionFailedEventAttributes
pub fn build(self) -> StartLambdaFunctionFailedEventAttributes
Consumes the builder and constructs a StartLambdaFunctionFailedEventAttributes
.