Struct aws_sdk_swf::operation::terminate_workflow_execution::TerminateWorkflowExecutionInput
source · #[non_exhaustive]pub struct TerminateWorkflowExecutionInput { /* private fields */ }
Implementations§
source§impl TerminateWorkflowExecutionInput
impl TerminateWorkflowExecutionInput
sourcepub fn workflow_id(&self) -> Option<&str>
pub fn workflow_id(&self) -> Option<&str>
The workflowId of the workflow execution to terminate.
sourcepub fn reason(&self) -> Option<&str>
pub fn reason(&self) -> Option<&str>
A descriptive reason for terminating the workflow execution.
sourcepub fn child_policy(&self) -> Option<&ChildPolicy>
pub fn child_policy(&self) -> Option<&ChildPolicy>
If set, specifies the policy to use for the child workflow executions of the workflow execution being terminated. This policy overrides the child policy specified for the workflow execution at registration time or when starting the execution.
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.
A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault is returned.
source§impl TerminateWorkflowExecutionInput
impl TerminateWorkflowExecutionInput
sourcepub fn builder() -> TerminateWorkflowExecutionInputBuilder
pub fn builder() -> TerminateWorkflowExecutionInputBuilder
Creates a new builder-style object to manufacture TerminateWorkflowExecutionInput
.
source§impl TerminateWorkflowExecutionInput
impl TerminateWorkflowExecutionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TerminateWorkflowExecution, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation( &self, _config: &Config ) -> Result<Operation<TerminateWorkflowExecution, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<TerminateWorkflowExecution
>
Trait Implementations§
source§impl Clone for TerminateWorkflowExecutionInput
impl Clone for TerminateWorkflowExecutionInput
source§fn clone(&self) -> TerminateWorkflowExecutionInput
fn clone(&self) -> TerminateWorkflowExecutionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq<TerminateWorkflowExecutionInput> for TerminateWorkflowExecutionInput
impl PartialEq<TerminateWorkflowExecutionInput> for TerminateWorkflowExecutionInput
source§fn eq(&self, other: &TerminateWorkflowExecutionInput) -> bool
fn eq(&self, other: &TerminateWorkflowExecutionInput) -> bool
self
and other
values to be equal, and is used
by ==
.