Struct aws_sdk_swf::input::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
sourceimpl TerminateWorkflowExecutionInput
impl TerminateWorkflowExecutionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TerminateWorkflowExecution, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TerminateWorkflowExecution, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<TerminateWorkflowExecution
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TerminateWorkflowExecutionInput
sourceimpl 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.
Trait Implementations
sourceimpl Clone for TerminateWorkflowExecutionInput
impl Clone for TerminateWorkflowExecutionInput
sourcefn clone(&self) -> TerminateWorkflowExecutionInput
fn clone(&self) -> TerminateWorkflowExecutionInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<TerminateWorkflowExecutionInput> for TerminateWorkflowExecutionInput
impl PartialEq<TerminateWorkflowExecutionInput> for TerminateWorkflowExecutionInput
sourcefn eq(&self, other: &TerminateWorkflowExecutionInput) -> bool
fn eq(&self, other: &TerminateWorkflowExecutionInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TerminateWorkflowExecutionInput) -> bool
fn ne(&self, other: &TerminateWorkflowExecutionInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for TerminateWorkflowExecutionInput
Auto Trait Implementations
impl RefUnwindSafe for TerminateWorkflowExecutionInput
impl Send for TerminateWorkflowExecutionInput
impl Sync for TerminateWorkflowExecutionInput
impl Unpin for TerminateWorkflowExecutionInput
impl UnwindSafe for TerminateWorkflowExecutionInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more