Struct aws_sdk_swf::operation::terminate_workflow_execution::TerminateWorkflowExecutionInput
source · #[non_exhaustive]pub struct TerminateWorkflowExecutionInput {
pub domain: Option<String>,
pub workflow_id: Option<String>,
pub run_id: Option<String>,
pub reason: Option<String>,
pub details: Option<String>,
pub child_policy: Option<ChildPolicy>,
}
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.domain: Option<String>
The domain of the workflow execution to terminate.
workflow_id: Option<String>
The workflowId of the workflow execution to terminate.
run_id: Option<String>
The runId of the workflow execution to terminate.
reason: Option<String>
A descriptive reason for terminating the workflow execution.
details: Option<String>
Details for terminating the workflow execution.
child_policy: 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.
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
.
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 for TerminateWorkflowExecutionInput
impl PartialEq 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 ==
.impl StructuralPartialEq for TerminateWorkflowExecutionInput
Auto Trait Implementations§
impl Freeze for TerminateWorkflowExecutionInput
impl RefUnwindSafe for TerminateWorkflowExecutionInput
impl Send for TerminateWorkflowExecutionInput
impl Sync for TerminateWorkflowExecutionInput
impl Unpin for TerminateWorkflowExecutionInput
impl UnwindSafe for TerminateWorkflowExecutionInput
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