pub struct RespondDecisionTaskCompleted<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* 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
impl<C, M, R> RespondDecisionTaskCompleted<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> RespondDecisionTaskCompleted<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<RespondDecisionTaskCompletedOutput, SdkError<RespondDecisionTaskCompletedError>> where
R::Policy: SmithyRetryPolicy<RespondDecisionTaskCompletedInputOperationOutputAlias, RespondDecisionTaskCompletedOutput, RespondDecisionTaskCompletedError, RespondDecisionTaskCompletedInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<RespondDecisionTaskCompletedOutput, SdkError<RespondDecisionTaskCompletedError>> where
R::Policy: SmithyRetryPolicy<RespondDecisionTaskCompletedInputOperationOutputAlias, RespondDecisionTaskCompletedOutput, RespondDecisionTaskCompletedError, RespondDecisionTaskCompletedInputOperationRetryAlias>,
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.
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.
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.
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.
The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision
structure for details.
User defined context to add to workflow execution.
User defined context to add to workflow execution.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for RespondDecisionTaskCompleted<C, M, R>
impl<C, M, R> Send for RespondDecisionTaskCompleted<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for RespondDecisionTaskCompleted<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for RespondDecisionTaskCompleted<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for RespondDecisionTaskCompleted<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more