pub struct Builder { /* private fields */ }
Expand description
A builder for WorkflowExecutionConfiguration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn task_start_to_close_timeout(self, input: impl Into<String>) -> Self
pub fn task_start_to_close_timeout(self, input: impl Into<String>) -> Self
The maximum duration allowed for decision tasks for this workflow execution.
The duration is specified in seconds, an integer greater than or equal to 0
. You can use NONE
to specify unlimited duration.
sourcepub fn set_task_start_to_close_timeout(self, input: Option<String>) -> Self
pub fn set_task_start_to_close_timeout(self, input: Option<String>) -> Self
The maximum duration allowed for decision tasks for this workflow execution.
The duration is specified in seconds, an integer greater than or equal to 0
. You can use NONE
to specify unlimited duration.
sourcepub fn execution_start_to_close_timeout(self, input: impl Into<String>) -> Self
pub fn execution_start_to_close_timeout(self, input: impl Into<String>) -> Self
The total duration for this workflow execution.
The duration is specified in seconds, an integer greater than or equal to 0
. You can use NONE
to specify unlimited duration.
sourcepub fn set_execution_start_to_close_timeout(self, input: Option<String>) -> Self
pub fn set_execution_start_to_close_timeout(self, input: Option<String>) -> Self
The total duration for this workflow execution.
The duration is specified in seconds, an integer greater than or equal to 0
. You can use NONE
to specify unlimited duration.
sourcepub fn task_list(self, input: TaskList) -> Self
pub fn task_list(self, input: TaskList) -> Self
The task list used for the decision tasks generated for this workflow execution.
sourcepub fn set_task_list(self, input: Option<TaskList>) -> Self
pub fn set_task_list(self, input: Option<TaskList>) -> Self
The task list used for the decision tasks generated for this workflow execution.
sourcepub fn task_priority(self, input: impl Into<String>) -> Self
pub fn task_priority(self, input: impl Into<String>) -> Self
The priority assigned to decision tasks for this workflow execution. Valid values are integers that range from Java's Integer.MIN_VALUE
(-2147483648) to Integer.MAX_VALUE
(2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon SWF Developer Guide.
sourcepub fn set_task_priority(self, input: Option<String>) -> Self
pub fn set_task_priority(self, input: Option<String>) -> Self
The priority assigned to decision tasks for this workflow execution. Valid values are integers that range from Java's Integer.MIN_VALUE
(-2147483648) to Integer.MAX_VALUE
(2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon SWF Developer Guide.
sourcepub fn child_policy(self, input: ChildPolicy) -> Self
pub fn child_policy(self, input: ChildPolicy) -> Self
The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution
action explicitly or due to an expired timeout.
The supported child policies are:
-
TERMINATE
– The child executions are terminated. -
REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording aWorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. -
ABANDON
– No action is taken. The child executions continue to run.
sourcepub fn set_child_policy(self, input: Option<ChildPolicy>) -> Self
pub fn set_child_policy(self, input: Option<ChildPolicy>) -> Self
The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution
action explicitly or due to an expired timeout.
The supported child policies are:
-
TERMINATE
– The child executions are terminated. -
REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording aWorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. -
ABANDON
– No action is taken. The child executions continue to run.
sourcepub fn lambda_role(self, input: impl Into<String>) -> Self
pub fn lambda_role(self, input: impl Into<String>) -> Self
The IAM role attached to the child workflow execution.
sourcepub fn set_lambda_role(self, input: Option<String>) -> Self
pub fn set_lambda_role(self, input: Option<String>) -> Self
The IAM role attached to the child workflow execution.
sourcepub fn build(self) -> WorkflowExecutionConfiguration
pub fn build(self) -> WorkflowExecutionConfiguration
Consumes the builder and constructs a WorkflowExecutionConfiguration
.