pub struct RespondDecisionTaskCompleted { /* 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 RespondDecisionTaskCompleted
impl RespondDecisionTaskCompleted
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<RespondDecisionTaskCompleted, AwsResponseRetryClassifier>, SdkError<RespondDecisionTaskCompletedError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<RespondDecisionTaskCompleted, AwsResponseRetryClassifier>, SdkError<RespondDecisionTaskCompletedError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<RespondDecisionTaskCompletedOutput, SdkError<RespondDecisionTaskCompletedError>>
pub async fn send(
self
) -> Result<RespondDecisionTaskCompletedOutput, SdkError<RespondDecisionTaskCompletedError>>
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 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 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 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.
Trait Implementations§
source§impl Clone for RespondDecisionTaskCompleted
impl Clone for RespondDecisionTaskCompleted
source§fn clone(&self) -> RespondDecisionTaskCompleted
fn clone(&self) -> RespondDecisionTaskCompleted
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more