Struct aws_sdk_swf::operation::respond_decision_task_completed::builders::RespondDecisionTaskCompletedFluentBuilder
source · pub struct RespondDecisionTaskCompletedFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to RespondDecisionTaskCompleted
.
Used by deciders to tell the service that the DecisionTask
identified by the taskToken
has successfully completed. The decisions
argument specifies the list of decisions made while processing the task.
A DecisionTaskCompleted
event is added to the workflow history. The executionContext
specified is attached to the event in the workflow execution history.
Access Control
If an IAM policy grants permission to use RespondDecisionTaskCompleted
, it can express permissions for the list of decisions in the decisions
parameter. Each of the decisions has one or more parameters, much like a regular API call. To allow for policies to be as readable as possible, you can express permissions on decisions as if they were actual API calls, including applying conditions to some parameters. For more information, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.
Implementations§
source§impl RespondDecisionTaskCompletedFluentBuilder
impl RespondDecisionTaskCompletedFluentBuilder
sourcepub fn as_input(&self) -> &RespondDecisionTaskCompletedInputBuilder
pub fn as_input(&self) -> &RespondDecisionTaskCompletedInputBuilder
Access the RespondDecisionTaskCompleted as a reference.
sourcepub async fn send(
self,
) -> Result<RespondDecisionTaskCompletedOutput, SdkError<RespondDecisionTaskCompletedError, HttpResponse>>
pub async fn send( self, ) -> Result<RespondDecisionTaskCompletedOutput, SdkError<RespondDecisionTaskCompletedError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<RespondDecisionTaskCompletedOutput, RespondDecisionTaskCompletedError, Self>
pub fn customize( self, ) -> CustomizableOperation<RespondDecisionTaskCompletedOutput, RespondDecisionTaskCompletedError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn task_token(self, input: impl Into<String>) -> Self
pub fn task_token(self, input: impl Into<String>) -> Self
The taskToken
from the DecisionTask
.
taskToken
is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken
must also be passed. This enables it to provide its progress and respond with results.
sourcepub fn set_task_token(self, input: Option<String>) -> Self
pub fn set_task_token(self, input: Option<String>) -> Self
The taskToken
from the DecisionTask
.
taskToken
is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken
must also be passed. This enables it to provide its progress and respond with results.
sourcepub fn get_task_token(&self) -> &Option<String>
pub fn get_task_token(&self) -> &Option<String>
The taskToken
from the DecisionTask
.
taskToken
is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken
must also be passed. This enables it to provide its progress and respond with results.
sourcepub fn decisions(self, input: Decision) -> Self
pub fn decisions(self, input: Decision) -> Self
Appends an item to decisions
.
To override the contents of this collection use set_decisions
.
The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision
structure for details.
sourcepub fn set_decisions(self, input: Option<Vec<Decision>>) -> Self
pub fn set_decisions(self, input: Option<Vec<Decision>>) -> Self
The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision
structure for details.
sourcepub fn get_decisions(&self) -> &Option<Vec<Decision>>
pub fn get_decisions(&self) -> &Option<Vec<Decision>>
The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision
structure for details.
sourcepub fn execution_context(self, input: impl Into<String>) -> Self
pub fn execution_context(self, input: impl Into<String>) -> Self
User defined context to add to workflow execution.
sourcepub fn set_execution_context(self, input: Option<String>) -> Self
pub fn set_execution_context(self, input: Option<String>) -> Self
User defined context to add to workflow execution.
sourcepub fn get_execution_context(&self) -> &Option<String>
pub fn get_execution_context(&self) -> &Option<String>
User defined context to add to workflow execution.
sourcepub fn task_list(self, input: TaskList) -> Self
pub fn task_list(self, input: TaskList) -> Self
The task list to use for the future decision tasks of this workflow execution. This list overrides the original task list you specified while starting the 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 to use for the future decision tasks of this workflow execution. This list overrides the original task list you specified while starting the workflow execution.
sourcepub fn get_task_list(&self) -> &Option<TaskList>
pub fn get_task_list(&self) -> &Option<TaskList>
The task list to use for the future decision tasks of this workflow execution. This list overrides the original task list you specified while starting the workflow execution.
sourcepub fn task_list_schedule_to_start_timeout(
self,
input: impl Into<String>,
) -> Self
pub fn task_list_schedule_to_start_timeout( self, input: impl Into<String>, ) -> Self
Specifies a timeout (in seconds) for the task list override. When this parameter is missing, the task list override is permanent. This parameter makes it possible to temporarily override the task list. If a decision task scheduled on the override task list is not started within the timeout, the decision task will time out. Amazon SWF will revert the override and schedule a new decision task to the original task list.
If a decision task scheduled on the override task list is started within the timeout, but not completed within the start-to-close timeout, Amazon SWF will also revert the override and schedule a new decision task to the original task list.
sourcepub fn set_task_list_schedule_to_start_timeout(
self,
input: Option<String>,
) -> Self
pub fn set_task_list_schedule_to_start_timeout( self, input: Option<String>, ) -> Self
Specifies a timeout (in seconds) for the task list override. When this parameter is missing, the task list override is permanent. This parameter makes it possible to temporarily override the task list. If a decision task scheduled on the override task list is not started within the timeout, the decision task will time out. Amazon SWF will revert the override and schedule a new decision task to the original task list.
If a decision task scheduled on the override task list is started within the timeout, but not completed within the start-to-close timeout, Amazon SWF will also revert the override and schedule a new decision task to the original task list.
sourcepub fn get_task_list_schedule_to_start_timeout(&self) -> &Option<String>
pub fn get_task_list_schedule_to_start_timeout(&self) -> &Option<String>
Specifies a timeout (in seconds) for the task list override. When this parameter is missing, the task list override is permanent. This parameter makes it possible to temporarily override the task list. If a decision task scheduled on the override task list is not started within the timeout, the decision task will time out. Amazon SWF will revert the override and schedule a new decision task to the original task list.
If a decision task scheduled on the override task list is started within the timeout, but not completed within the start-to-close timeout, Amazon SWF will also revert the override and schedule a new decision task to the original task list.
Trait Implementations§
source§impl Clone for RespondDecisionTaskCompletedFluentBuilder
impl Clone for RespondDecisionTaskCompletedFluentBuilder
source§fn clone(&self) -> RespondDecisionTaskCompletedFluentBuilder
fn clone(&self) -> RespondDecisionTaskCompletedFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for RespondDecisionTaskCompletedFluentBuilder
impl !RefUnwindSafe for RespondDecisionTaskCompletedFluentBuilder
impl Send for RespondDecisionTaskCompletedFluentBuilder
impl Sync for RespondDecisionTaskCompletedFluentBuilder
impl Unpin for RespondDecisionTaskCompletedFluentBuilder
impl !UnwindSafe for RespondDecisionTaskCompletedFluentBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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